:root {
    --paper:   #ffffff;
    --band:    #f1f8f4;   /* ミント寄りの帯 */
    --ink:     #0f1d16;   /* 緑バイアスの墨 */
    --ink-2:   #33463d;
    --muted:   #4c6157;   /* 白地 6.66:1 */
    --muted-2: #5e7367;   /* 白地 5.09:1(旧 #8aa094 は 2.79:1 で薄すぎた) */
    --edge:    #e2ede6;
    --edge-2:  #cfe0d6;

    --brand:   #0c8f63;   /* 塗りCTA・リンク */
    --brand-d: #0a7a55;
    --brand-t: #e6f6ef;   /* 緑チップ地 */

    --soon:    #8f5d05;   /* 近日チップ文字(旧 #a86e08 は白地 4.29:1) */
    --soon-bg: #fcf3e2;
    --soon-bd: #f0ddb8;

    --h1c: #2f6df6; --h2c: #17b981; --h3c: #f6b32b; --hot: #ff5b3d;
    --hot-d:   #c2380f;   /* --hot は装飾専用。文字に使うのはこちら(白地 5.43:1) */

    --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", system-ui, sans-serif;
    --mono: "SF Mono", "SFMono-Regular", "Menlo", "Roboto Mono", ui-monospace, "Hiragino Sans", "Hiragino Kaku Gothic ProN", monospace;

    --wrap: 1120px;
    color-scheme: light;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    text-rendering: optimizeLegibility;
    line-height: 1.7;
    overflow-x: hidden;
  }

  a { color: inherit; text-decoration: none; }
  img, svg, canvas { max-width: 100%; }
  :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

  .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
  .hero-grid > *, .ana-grid > *, .ai-grid > *, .now-grid > *, .dx-shots > *, .medals-in > * { min-width: 0; }

  h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: 0.005em; text-wrap: balance; }

  /* ---------- chips ---------- */
  .chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  }
  .chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .chip--live { color: var(--brand-d); background: var(--brand-t); border: 1px solid #bfe7d6; }
  .chip--soon { color: var(--soon); background: var(--soon-bg); border: 1px solid var(--soon-bd); }

  /* ---------- buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 15px 26px; border-radius: 10px;
    font-weight: 700; font-size: 15.5px; font-family: var(--sans);
    transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  }
  .btn--fill { background: var(--brand-d); color: #fff; box-shadow: 0 10px 26px -12px rgba(12,143,99,0.6); }
  .btn--fill:hover { background: #08694a; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(12,143,99,0.55); }
  .btn--line { border: 1.5px solid var(--brand); color: var(--brand-d); background: #fff; }
  .btn--line:hover { background: var(--brand-t); transform: translateY(-1px); }
  .store-badge { display: inline-flex; align-items: center; transition: transform .16s ease, opacity .16s ease; }
  .store-badge img { height: 52px; width: auto; display: block; }
  .store-badge--lg img { height: 58px; }
  .store-badge:hover { transform: translateY(-2px); opacity: 0.92; }
  .store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .cta-row .store-row { justify-content: flex-start; gap: 12px; }

  /* ---------- header ---------- */
  header.bar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--edge);
  }
  .bar-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
  .brandmark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
  /* ヘッダーのロゴはリンク(トップは #top で先頭へ / 下層は / へ)。押せることが分かるように */
  a.brandmark { transition: opacity .16s ease; }
  a.brandmark:hover { opacity: 0.72; }
  .logo-img { height: 34px; width: auto; display: block; }
  .logo-img--sm { height: 27px; }
  nav.links { display: flex; gap: 26px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
  nav.links a:hover { color: var(--brand-d); }
  .bar-cta { font-size: 13.5px; font-weight: 700; padding: 10px 18px; border-radius: 9px; background: var(--brand-d); color: #fff; transition: background .2s ease; }
  .bar-cta:hover { background: #08694a; }
  .bar-cta--store { display: none; }

  /* ---------- hero ---------- */
  .hero { padding: 64px 0 30px; }
  .hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 40px; align-items: center; }
  .kicker { color: var(--brand-d); font-weight: 800; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.6; letter-spacing: 0.01em; }
  .hero h1 { font-size: clamp(34px, 5.3vw, 58px); line-height: 1.22; margin-top: 14px; font-weight: 800; }
  .hero h1 .em { color: var(--brand); }
  .hero .soon-line { margin-top: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .lede { color: var(--muted); font-size: clamp(15px, 1.45vw, 16.5px); line-height: 2.0; margin: 14px 0 0; max-width: 44ch; }
  .lede b { color: var(--ink); font-weight: 700; }
  .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
  .fineprint { margin-top: 16px; font-size: 13px; color: var(--muted-2); letter-spacing: 0.02em; }
  .fineprint b { color: var(--brand-d); font-weight: 700; }
  /* 語の途中で切れてほしくない塊に付ける(「基本機能は/ずっと無料」等) */
  .nw { white-space: nowrap; }

  .hero-art { position: relative; }
  .hero-art svg { display: block; width: 100%; height: auto; }
  .art-cap { text-align: center; font-size: 12px; font-weight: 500; color: var(--muted-2); margin-top: 6px; font-family: var(--mono); letter-spacing: 0.03em; }

  /* float animation for illustration cards */
  .fl { transform-box: fill-box; transform-origin: center; animation: float 6s ease-in-out infinite; }
  .fl.d1 { animation-delay: -1.8s; }
  .fl.d2 { animation-delay: -3.6s; }
  .fl.d3 { animation-delay: -5.0s; }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

  /* ---------- laurel stats ---------- */
  .medals { padding: 54px 0 22px; }
  .medals-in { display: flex; justify-content: center; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
  .medal { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 10px; }
  .medal .laurel { width: 30px; height: 66px; }
  .medal .mid { text-align: center; min-width: 130px; }
  .medal .k { font-size: 12.5px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.04em; }
  .medal .n { font-family: var(--mono); font-size: clamp(34px, 4vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .medal .n small { font-size: 16px; font-weight: 600; color: var(--ink-2); margin-left: 2px; letter-spacing: 0; }
  .medal .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
  .medal .s .mini { color: var(--soon); font-weight: 700; }

  /* ---------- audience band ---------- */
  .aud { padding: 34px 0 58px; text-align: center; }
  .aud p { margin: 0 0 16px; font-size: clamp(16px, 2vw, 20px); font-weight: 800; color: var(--ink); }
  .aud-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
  .aud-chips span {
    font-size: 13px; font-weight: 600; color: var(--ink-2);
    background: var(--band); border: 1px solid var(--edge); border-radius: 999px; padding: 8px 18px;
  }

  /* ---------- section scaffold ---------- */
  .block { padding: 84px 0; }
  .block--band { background: var(--band); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
  .sec-head { text-align: center; max-width: 640px; margin: 0 auto; }
  .sec-head .eyebrow {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--brand-d); font-weight: 600;
  }
  .sec-head h2 { font-size: clamp(25px, 3.3vw, 38px); line-height: 1.35; margin-top: 12px; }
  .sec-head .sub { color: var(--muted); margin-top: 14px; font-size: 15.5px; line-height: 2.0; text-align: left; }
  .sec-head .sub b { color: var(--ink); font-weight: 700; }
  .sec-head .chiprow { margin-bottom: 14px; }

  /* ---------- analysis (teaser) ---------- */
  .ana-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: 52px; align-items: center; margin-top: 48px; }
  .steps { display: flex; flex-direction: column; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--edge); }
  .step:first-child { border-top: 0; padding-top: 0; }
  .step .no { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted-2); padding-top: 4px; font-variant-numeric: tabular-nums; }
  .step h3 { font-size: 17px; font-weight: 800; }
  .step p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
  .step p b { color: var(--ink); font-weight: 700; }

  .zone-card { background: #fff; border: 1px solid var(--edge); border-radius: 18px; padding: 18px; box-shadow: 0 18px 44px -26px rgba(15,29,22,0.25); }
  .zone-card--bare { background: transparent; border: 0; box-shadow: none; padding: 10px 4px; }
  .zone-cap { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; padding: 0 2px 12px; }
  /* --hot(#ff5b3d)は白地 3.08:1 で本文には薄い。ラベル用に一段濃いオレンジを使う */
  .zone-cap .hi { color: var(--hot-d); font-weight: 700; }
  #rally3d { display: block; width: 100%; aspect-ratio: 1 / 1.04; cursor: grab; touch-action: pan-y; }
  #rally3d:active { cursor: grabbing; }
  .znet { text-align: center; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted-2); letter-spacing: 0.24em; padding-top: 10px; }

  /* ---------- now cards ---------- */
  .now-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
  .card {
    background: #fff; border: 1px solid var(--edge); border-radius: 18px; padding: 28px 26px;
    box-shadow: 0 14px 34px -24px rgba(15,29,22,0.22);
    display: flex; flex-direction: column; gap: 13px;
  }
  .card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .card .ic { width: 40px; height: 40px; flex: 0 0 auto; }
  .card h3 { font-size: 19px; font-weight: 800; }
  .card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
  .card ul { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
  .card li { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--band); border: 1px solid var(--edge); border-radius: 8px; padding: 5px 10px; }

  /* ---------- AI coach report ---------- */
  .ai-grid { display: grid; grid-template-columns: 0.92fr 1fr; gap: 52px; align-items: center; margin-top: 72px; padding-top: 56px; border-top: 1px dashed var(--edge-2); }
  .ai-report { background: #fff; border: 1px solid var(--edge); border-radius: 18px; padding: 22px 22px 16px; box-shadow: 0 18px 44px -26px rgba(15,29,22,0.25); }
  .ai-report-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--edge); margin-bottom: 8px; }
  .ai-report-head .t { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
  .ai-report-head .t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
  .ai-row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 11px 0; align-items: start; }
  .ai-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 0; border-radius: 6px; text-align: center; }
  .ai-tag--s { color: #0b7d57; background: var(--brand-t); }
  .ai-tag--w { color: #c2410c; background: #fdeee8; }
  .ai-tag--n { color: #1d4ed8; background: #e8effd; }
  .ai-row p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); min-height: 3.7em; }
  .ai-row .caret { display: inline-block; width: 2px; height: 1em; background: var(--brand); vertical-align: -0.15em; animation: caretBlink 1s steps(1) infinite; }
  @keyframes caretBlink { 50% { opacity: 0; } }
  .ai-foot { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--muted-2); padding-top: 12px; border-top: 1px solid var(--edge); }
  .ai-copy h3 { font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; line-height: 1.42; margin-top: 14px; letter-spacing: 0.005em; }
  .ai-copy .sub2 { color: var(--muted); margin-top: 14px; font-size: 15px; line-height: 2.0; }
  .ai-copy .sub2 b { color: var(--ink); font-weight: 700; }
  .ai-points { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .ai-points li { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
  .ai-points li b { font-weight: 700; color: var(--ink); }

  /* ---------- real screenshots ---------- */
  .ai-carousel { min-width: 0; }
  .ai-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 6px 2px 4px; cursor: grab; }
  .ai-track::-webkit-scrollbar { display: none; }
  .ai-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; display: flex; flex-direction: column; align-items: center; }
  .ai-slide img { width: min(280px, 72vw); height: auto; filter: drop-shadow(0 26px 44px rgba(15,29,22,0.24)); }
  .ai-slide figcaption { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: 14px; }
  .ai-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
  .ai-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--edge-2); background: #fff; color: var(--brand-d); font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s ease, transform .15s ease; }
  .ai-btn:hover { background: var(--brand-t); transform: translateY(-1px); }
  .ai-dots { display: flex; gap: 8px; }
  .ai-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--edge-2); transition: background .2s ease, transform .2s ease; }
  .ai-dots span.on { background: var(--brand); transform: scale(1.25); }
  .ai-carousel-note { text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); margin: 10px 0 0; letter-spacing: 0.02em; }
  .dx-shots { display: grid; grid-template-columns: 1.85fr 1fr; gap: 24px; align-items: end; margin-top: 54px; }
  .dx-shots figure { margin: 0; }
  .dx-shots img { width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 40px rgba(15,29,22,0.16)); }
  .dx-shots figcaption { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 12px; text-align: center; letter-spacing: 0.02em; }

  /* ---------- tournament flow ---------- */
  .flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 46px; }
  .flow-step { position: relative; background: #fff; border: 1px solid var(--edge); border-radius: 14px; padding: 18px 16px 16px; box-shadow: 0 10px 26px -20px rgba(15,29,22,0.2); }
  .flow-step .fno { font-family: var(--mono); font-size: 11px; color: var(--brand-d); letter-spacing: 0.08em; font-weight: 600; }
  .flow-step h3 { font-size: 15px; font-weight: 800; margin-top: 6px; line-height: 1.45; }
  .flow-step p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
  .flow-step::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-weight: 700; }
  .flow-step:last-child::after { content: none; }
  .flow-note { text-align: center; margin-top: 24px; font-size: 12.5px; font-weight: 500; color: var(--muted); font-family: var(--mono); letter-spacing: 0.02em; }

  /* ---------- pricing ---------- */
  .price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 48px auto 0; max-width: 880px; }
  .plan-card { background: #fff; border: 1.5px solid var(--edge); border-radius: 20px; padding: 32px 30px; box-shadow: 0 16px 40px -28px rgba(15,29,22,0.22); display: flex; flex-direction: column; }
  .plan-card.pro { border-color: #ffd2c5; }
  .plan-top { display: flex; align-items: center; justify-content: space-between; }
  .plan-name { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-d); font-weight: 700; }
  .plan-card.pro .plan-name { color: var(--hot-d); }
  .price { font-family: var(--mono); font-size: 42px; font-weight: 700; margin-top: 14px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .price small { font-size: 15px; color: var(--muted); font-weight: 400; }
  .price-sub { color: var(--muted); font-size: 13px; margin-top: 2px; font-family: var(--mono); }
  .plist { list-style: none; margin: 22px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .plist li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.6; }
  .plist .ck { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 4px; }
  .plist li span { color: var(--muted); }
  .plist .divider { border-top: 1px dashed var(--edge-2); margin: 4px 0 0; font-size: 11px; font-weight: 700; color: var(--soon); letter-spacing: 0.06em; padding-top: 14px; }
  .plan-card .btn { width: 100%; margin-top: auto; }   /* 項目数が違っても2枚のCTAを揃える */
  .price-note { max-width: 880px; margin: 22px auto 0; font-size: 12.5px; color: var(--muted-2); line-height: 1.9; }

  /* ---------- final ---------- */
  .final { padding: 92px 0; text-align: center; background: linear-gradient(180deg, var(--band), #e7f4ec); border-top: 1px solid var(--edge); }
  .final h2 { font-size: clamp(27px, 3.8vw, 44px); line-height: 1.35; }
  .final p { color: var(--muted); max-width: 46ch; margin: 18px auto 30px; font-size: 15.5px; line-height: 2.0; }

  /* ---------- footer ---------- */
  footer { padding: 44px 0 64px; }
  .foot-in { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; justify-content: space-between; }
  .foot-note { font-size: 12.5px; color: var(--muted); line-height: 2.0; max-width: 54ch; }
  .foot-note b { color: var(--ink-2); font-weight: 700; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
  .foot-links a:hover { color: var(--brand-d); }

  /* ---------- responsive ---------- */
  @media (max-width: 940px) {
    nav.links { display: none; }
    .bar-cta--store { display: inline-block; }
    .bar-cta--web { display: none; }
    .hero { padding: 42px 0 16px; }
    .hero-grid, .ana-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-art { max-width: min(500px, 100%); margin: 0 auto; }
    .now-grid, .price-wrap { grid-template-columns: 1fr; }
    .zone-card { max-width: min(440px, 100%); margin: 0 auto; }
    .flow { grid-template-columns: 1fr 1fr; }
    .flow-step::after { content: none; }
    .ai-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 56px; padding-top: 44px; }
    .dx-shots { grid-template-columns: 1fr; }
    .block { padding: 64px 0; }
  }

  @media (max-width: 560px) {
    /* 2つのストアバッジが1行に収まるサイズまで縮める */
    .store-badge img, .store-badge--lg img { height: 46px; }
    .cta-row .store-row { gap: 10px; }
    /* 料金の項目は flex の兄弟同士(見出し/補足)なので、狭い幅だと見出し側が
       単語途中で折れる。補足を次の行に落として見出しに全幅を渡す */
    .plist li { flex-wrap: wrap; row-gap: 2px; }
    .plist li span { flex: 1 0 100%; padding-left: 27px; }
    /* 3Dコートは上下の余白が大きいので、狭い画面では箱を低くして詰める */
    #rally3d { aspect-ratio: 1 / 0.8; }
    /* 25px だと「バドミントンのぜんぶを1つに。」が3行になって最終行が「に。」だけになる */
    .sec-head h2 { font-size: 23px; }
    /* 2列だと1枚あたり約125pxしかなく、見出しが単語の途中で折れる */
    .flow { grid-template-columns: 1fr; gap: 12px; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
  }
