    :root{
      --bg:#0b0d12;
      --card:#111521;
      --text:#e8ecf6;
      --muted:#aab3c7;
      --line:rgba(255,255,255,.10);
      --accent:#7dd3fc;
      --accent2:#a78bfa;
      --shadow:0 10px 35px rgba(0,0,0,.35);
      --radius:18px;
      --radius2:26px;
      --max:1040px;
      --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
    }
    *{ box-sizing:border-box; }
    html,body{ height:100%; }
    body{
      margin:0;
      font-family:var(--font);
      color:var(--text);
      background:
        radial-gradient(1200px 700px at 20% -10%, rgba(125,211,252,.16), transparent 60%),
        radial-gradient(1000px 600px at 90% 0%, rgba(167,139,250,.14), transparent 55%),
        radial-gradient(900px 600px at 40% 110%, rgba(52,211,153,.10), transparent 55%),
        var(--bg);
      line-height:1.65;
    }
    a{ color:inherit; text-decoration:none; }
    a:hover{ text-decoration:underline; text-underline-offset:4px; }

    .wrap{ width:min(var(--max), 100%); margin:0 auto; padding:24px 16px 56px; }

    header{
      position:sticky; top:0; z-index:20;
      backdrop-filter: blur(12px);
      background: rgba(11,13,18,.68);
      border-bottom:1px solid var(--line);
    }
    .nav{
      width:min(var(--max), 100%);
      margin:0 auto;
      padding:14px 16px;
      display:flex; align-items:center; justify-content:space-between; gap:14px;
    }
    .brand{
      display:flex; align-items:center; gap:10px;
      font-weight:800;
      letter-spacing:.2px;
      white-space:nowrap;
      min-width: 0;
    }
/* ===== brand stack: title on top, badge under it ===== */
.brand{
  display:flex;
  align-items:flex-start;     /* 上揃え */
  gap:10px;
}

.brand > div{                 /* "SamuraiRoad Project" の入っているdiv */
  display:flex;
  flex-direction:column;      /* タイトル→バッジを縦に */
  gap:6px;
  line-height:1.15;
  min-width:0;
}
    .logo{
      width:34px; height:34px; border-radius:12px;
      background: linear-gradient(135deg, rgba(125,211,252,.95), rgba(167,139,250,.9));
      box-shadow: 0 10px 28px rgba(125,211,252,.12);
      position:relative;
      flex: 0 0 auto;
    }
    .logo:after{
      content:"";
      position:absolute; inset:9px;
      border-radius:10px;
      border:1px solid rgba(255,255,255,.55);
      transform: rotate(10deg);
      opacity:.6;
    }
    .badge{
      display:inline-flex; align-items:center; gap:8px;
      border:1px solid var(--line);
      padding:6px 10px;
      border-radius:999px;
      font-size:12px;
      color:var(--muted);
      background: rgba(255,255,255,.04);
      width: fit-content;
      flex: 0 0 auto;
    }
/* バッジは「2段目」なので余計に横を取らないように */
.badge{
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 10px;          /* 少し薄く */
  font-size: 12px;
}

/* 小さめ画面ではバッジを自動で隠す（被り防止） */
@media (max-width: 980px){
  .badge{ display:none; }
}
    .dot{ width:8px; height:8px; border-radius:999px; background: var(--accent); box-shadow: 0 0 0 4px rgba(125,211,252,.12); }

    .navlinks{
      display:flex; gap:14px; align-items:center;
      font-size:14px; color:var(--muted);
    }
    .navlinks a{ padding:8px 10px; border-radius:12px; }
    .navlinks a:hover{ background: rgba(255,255,255,.06); text-decoration:none; }

    .btn{
      display:inline-flex; align-items:center; justify-content:center;
      gap:10px;
      padding:12px 14px;
      border-radius:14px;
      border:1px solid var(--line);
      background: rgba(255,255,255,.06);
      color:var(--text);
      font-weight:700;
      user-select:none;
      transition: transform .08s ease, background .15s ease, border-color .15s ease;
      white-space:nowrap;
    }
    .btn:hover{
      background: rgba(255,255,255,.09);
      border-color: rgba(255,255,255,.18);
      text-decoration:none;
    }
    .btn:active{ transform: translateY(1px); }
    .btn.primary{
      background: linear-gradient(135deg, rgba(125,211,252,.95), rgba(167,139,250,.92));
      border-color: rgba(255,255,255,.22);
      color:#06101a;
      box-shadow: 0 12px 30px rgba(167,139,250,.10);
    }
    .btn.primary:hover{ background: linear-gradient(135deg, rgba(125,211,252,1), rgba(167,139,250,1)); }

    .langSwitch{
      display:inline-flex; gap:8px; align-items:center;
      padding:6px; border-radius:14px; border:1px solid var(--line);
      background: rgba(255,255,255,.04);
    }
    .langSwitch button{
      border:0; background: transparent; color: var(--muted);
      font-weight:800; padding:8px 10px; border-radius:12px; cursor:pointer;
    }
    .langSwitch button[aria-pressed="true"]{
      background: rgba(255,255,255,.10);
      color: var(--text);
    }

    .hero{ padding:32px 0 8px; }
    .heroGrid{
      display:grid; gap:18px;
      grid-template-columns: 1.15fr .85fr;
      align-items:stretch;
    }
    .card{
      background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
      border:1px solid var(--line);
      border-radius: var(--radius2);
      box-shadow: var(--shadow);
    }
    .cardInner{ padding:18px; }

    h1{
      margin:12px 0 10px;
      font-size: clamp(26px, 4.8vw, 42px);
      line-height:1.15;
      letter-spacing:-.4px;
    }
    .lead{ margin:0; color: var(--muted); font-size: 15.5px; }

    .ctaRow{ display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
    .fine{ margin-top:10px; color: rgba(170,179,199,.85); font-size: 12.5px; }

    .statGrid{ display:grid; gap:12px; grid-template-columns: 1fr 1fr; }
    .stat{
      background: rgba(255,255,255,.04);
      border:1px solid var(--line);
      border-radius: var(--radius);
      padding:14px;
    }
    .stat b{ display:block; font-size:18px; }
    .stat span{ display:block; color:var(--muted); font-size:12.5px; margin-top:4px; }

    .section{ margin-top:26px; }
    .section h2{ margin:0 0 10px; font-size: clamp(18px, 3.8vw, 26px); letter-spacing:-.2px; }
    .section p{ margin:0 0 10px; color: var(--muted); }

    .grid3{ display:grid; gap:12px; grid-template-columns: repeat(3, 1fr); }
    .mini{
      background: rgba(255,255,255,.04);
      border:1px solid var(--line);
      border-radius: var(--radius);
      padding:14px;
    }
    .mini h3{ margin:0 0 6px; font-size:15px; }
    .mini p{ margin:0; font-size:13.5px; color:var(--muted); }

    .steps{ display:grid; gap:12px; grid-template-columns: 1fr 1fr; }
    .step{
      display:flex; gap:12px;
      background: rgba(255,255,255,.04);
      border:1px solid var(--line);
      border-radius: var(--radius);
      padding:14px;
    }
    .num{
      width:34px; height:34px; border-radius:14px;
      display:flex; align-items:center; justify-content:center;
      font-weight:900;
      background: rgba(125,211,252,.14);
      border:1px solid rgba(125,211,252,.25);
      color: rgba(125,211,252,.95);
      flex: 0 0 auto;
    }
    .step b{ display:block; margin-top:2px; }
    .step small{ display:block; color:var(--muted); margin-top:4px; }

    .pillRow{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
    .pill{
      border:1px solid var(--line);
      background: rgba(255,255,255,.04);
      padding:7px 10px;
      border-radius:999px;
      font-size:12.5px;
      color: var(--muted);
    }

    .callout{
      border-radius: var(--radius2);
      border:1px solid rgba(125,211,252,.22);
      background: linear-gradient(135deg, rgba(125,211,252,.12), rgba(167,139,250,.08));
      padding:16px;
    }
    .callout h3{ margin:0 0 8px; font-size:15.5px; }
    .callout p{ margin:0; color: rgba(232,236,246,.90); }

    .faq{ display:grid; gap:12px; grid-template-columns: 1fr 1fr; }
    details{
      background: rgba(255,255,255,.04);
      border:1px solid var(--line);
      border-radius: var(--radius);
      padding:12px 14px;
    }
    summary{ cursor:pointer; font-weight:800; list-style:none; }
    summary::-webkit-details-marker{ display:none; }
    details p{ margin:8px 0 0; color:var(--muted); font-size:13.5px; }

    /* Footer include placeholder styles */
    .sr-footer{
      margin-top:34px;
      padding-top:18px;
      border-top:1px solid var(--line);
      color: var(--muted);
      font-size:13px;
    }
    .sr-footRow{
      display:flex; gap:12px; flex-wrap:wrap;
      align-items:center; justify-content:space-between;
    }
    .sr-footLinks{ display:flex; gap:10px; flex-wrap:wrap; }
    .sr-footTitle{ color: var(--text); }
    .sr-footCopy{ margin:12px 0 0; }

    /* Mobile */
    @media (max-width: 920px){
      .heroGrid{ grid-template-columns: 1fr; }
      .grid3{ grid-template-columns: 1fr; }
      .steps{ grid-template-columns: 1fr; }
      .faq{ grid-template-columns: 1fr; }
      .navlinks{ display:none; }
      .badge{ display:none; }
    }

/* ===== header overlap fix (pinpoint) ===== */
.brand{
  min-width: 0;              /* これがないと縮められない */
  max-width: 520px;          /* 左側の取りすぎ防止（数値は好みで調整OK） */
}

.badge{
  min-width: 0;
  max-width: 220px;          /* バッジ文字を横に伸ばしすぎない */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;   /* はみ出したら … にする */
}

/* まだ窮屈な幅ではバッジを隠す（重なり完全防止） */
@media (max-width: 1100px){
  .badge{ display: none; }
}
.navlinks{ gap: 0px; }

/* ===== mobile optimization ===== */
@media (max-width: 768px){

  /* header */
  .nav{
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .navlinks{
    display:flex;
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .brand{
    max-width: 100%;
  }

  /* hero layout */
  .heroGrid{
    grid-template-columns: 1fr;   /* 2カラム → 1カラム */
    gap: 14px;
  }

  /* CTA buttons stack */
  .ctaRow{
    flex-direction: column;
    align-items: stretch;
  }

  .ctaRow .btn{
    width: 100%;
    justify-content: center;
  }

  /* cards padding slightly tighter */
  .cardInner{
    padding: 14px;
  }

  /* stat grid: 2 → 1 column */
  .statGrid{
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* text size tuning */
  h1{
    font-size: clamp(22px, 6vw, 28px);
  }

  .lead{
    font-size: 14px;
  }
}
/* hero subtitle only: wrap safely */
.hero .heroMain .subtitle {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal; /* 日本語も自然に */
}