  /* ===== Root ===== */
    :root {
      --bg: #f7f8fb;
      --card: #ffffff;
      --text: #1f2937;
      --muted: #4b5563;
      --border: rgba(15, 23, 42, 0.08);
      --brand1: #6b5cff;
      --brand2: #2fbf71;
      --radius: 16px;
      --radius-lg: 20px;
      --max: 1120px;
    }

    /* ===== Reset ===== */
    * {
      box-sizing: border-box;
    }

    html,
    body {
      margin: 0;
      padding: 0;
    }

    body {
      font-family: system-ui, -apple-system,
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Noto Sans JP",
        "Yu Gothic UI",
        "Meiryo",
        sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.7;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .container {
      max-width: var(--max);
      margin: 0 auto;
      padding-left: 16px;
      padding-right: 16px;
    }

    /* ===== Layout ===== */
    .main {
      max-width: var(--max);
      margin: 0 auto;
      padding: 10px 5px 10px 5px;
    }

    /* ===== Header ===== */
    header {
      background: #fff;
      border-bottom: 1px solid var(--border);
    }

    .topbar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 15px;
      position: relative;
    }

    /* ===== Brand ===== */
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .brand-mark {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: linear-gradient(135deg, #c8955f, #f06292);
      display: grid;
      place-items: center;
      color: #fff;
      font-weight: 800;
      font-size: 22px;
    }

    .brand-text {
      display: flex;
      flex-direction: column;
      line-height: 1.1;
    }

    .brand-name {
      font-size: 16px;
      font-weight: 800;
    }

    .brand-tagline {
      font-size: 11px;
      color: var(--muted);
    }

    /* ===== Nav (Desktop) ===== */
    nav {
      display: flex;
      gap: 10px;
    }

    .chip {
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: 999px;
      font-size: 13px;
      background: #fff;
      cursor: pointer;
    }

    .chip:hover,
    .chip:active {
      font-weight: 600;
      border: 1px solid #aaa;
    }

    /* ===== Right Area ===== */
    .right {
      display: flex;
      gap: 10px;
      margin-left: auto;
      align-items: center;
    }

    /* ===== Language Switch ===== */
    .lang-switch {
      position: relative;
    }

    .lang-btn {
      border: 1px solid var(--border);
      background: #fff;
      border-radius: 999px;
      padding: 6px 12px;
      font-size: 13px;
      cursor: pointer;
    }

    .lang-menu {
      list-style: none;
      margin: 0;
      display: none;
      position: absolute;
      top: 38px;
      right: 0;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 6px;
      z-index: 20;
    }

    .lang-switch.open .lang-menu {
      display: block;
    }

    .lang-menu a {
      display: block;
      padding: 8px 10px;
      border-radius: 8px;
      font-size: 13px;
      width: 90px;
    }

    .lang-menu a:hover {
      background: var(--bg);
    }



    /* ===== Footer ===== */
    .site-footer,
    footer {
      margin-top: 48px;
      background: #fafafa;
      border-top: 1px solid var(--border);
    }

    .footer-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 28px 20px 32px;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    /* ===== Brand ===== */
    .footer-brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .footer-brand .brand-mark {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: linear-gradient(135deg, #c8955f, #f06292);
      display: grid;
      place-items: center;
      color: #fff;
      font-weight: 800;
      font-size: 20px;
    }

    .footer-brand .brand-text {
      display: flex;
      flex-direction: column;
      line-height: 1.15;
    }

    .footer-brand .brand-name {
      font-size: 15px;
      font-weight: 800;
    }

    .footer-brand .brand-tagline {
      font-size: 12px;
      color: var(--muted);
    }

    /* ===== Category Nav ===== */
    .footer-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      font-size: 14px;
    }

    .footer-nav a,
    .footer-links a {
      position: relative;
      color: var(--text);
      font-weight: 500;
      text-decoration: none;
      padding-bottom: 2px;
    }

    /* ===== Utility Links ===== */
    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      font-size: 13px;
      color: var(--muted);
    }

    .footer-nav a:hover,
    .footer-links a:hover {
      font-weight: 600;
    }

    /* subtle underline */
    .footer-nav a::after,
    .footer-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 1px;
      background: currentColor;
      opacity: 0.25;
      transition: opacity .2s ease;
    }

    /* hover / focus */
    .footer-nav a:hover::after,
    .footer-links a:hover::after,
    .footer-nav a:focus-visible::after,
    .footer-links a:focus-visible::after {
      opacity: 0.7;
    }

    /* mobile active feedback */
    .footer-nav a:active,
    .footer-links a:active {
      opacity: 0.6;
    }

    /* ===== Notes ===== */
    .footer-note,
    .footer-disclosure {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.6;
    }

    /* ===== Copyright ===== */
    .footer-copy {
      margin-top: 6px;
      font-size: 12px;
      color: var(--muted);
    }

    input,
    select,
    textarea,
    button {
      min-height: 40px;
    }
 /* =========================================================
   Mobile
   ========================================================= */
    @media (max-width: 768px) {

      header {
        position: sticky;
        top: 0;
        z-index: 10;
        box-shadow: 0 4px 6px rgba(0, 0, 0, .12);
      }

      .topbar {
        flex-wrap: wrap;
        align-items: flex-start;
      }

      /* ----- Order Control ----- */
      .brand {
        order: 1;
      }

      .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        font-size: 20px;
      }

      .right {
        order: 2;
        width: 100%;
        margin-left: 0;
        /* margin-top: 12px; */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        /* display: none; */
      }

      .right .btn {
        display: none;
      }

      nav {
        order: 3;
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        /* margin-top: 12px; */
      }

      .nav::-webkit-scrollbar {
        height: 4px;
      }

      nav::-webkit-scrollbar-thumb {
        background: rgba(75, 85, 99, .28);
        border-radius: 999px;
      }

      nav .chip {
        padding: 5px 10px;
        font-size: 13px;
      }

      /* ----- Language Button fixed to top-right ----- */
      .lang-switch {
        position: absolute;
        top: 12px;
        right: 12px;
      }

      .lang-btn {
        padding: 5px 10px;
        font-size: 13px;
      }


      .foot {
        flex-direction: column;
        align-items: flex-start;
      }

      .footer-inner {
        padding: 22px 25px 28px;
        gap: 16px;
      }

      .footer-brand {
        gap: 10px;
      }

      .footer-brand .brand-mark {
        width: 32px;
        height: 32px;
        font-size: 18px;
        border-radius: 8px;
      }

      .footer-nav,
      .footer-links {
        gap: 12px;
      }

      .footer-nav a,
      .footer-links a {
        font-size: 13px;
        order: 2;
      }

      .footer-note,
      .footer-disclosure {
        font-size: 12.5px;
        order: 4;
      }

      .footer-copy {
        font-size: 12px;
        order: 6;
      }

      .btn,
      .btn.ghost {
        width: 100%;
      }
    }
