:root {
  --navy: #102a43;
  --navy-2: #1e3a5f;
  --blue: #2482f3;
  --blue-dark: #1266ce;
  --mint: #a7f3d0;
  --mint-deep: #37b88b;
  --coral: #ffb4a2;
  --cream: #fff9f4;
  --sky: #edf6ff;
  --paper: #ffffff;
  --ink: #172437;
  --muted: #607086;
  --line: #dbe4ed;
  --shadow-sm: 0 8px 24px rgba(16,42,67,.08);
  --shadow-lg: 0 24px 70px rgba(16,42,67,.14);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 98px; }
body { overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(167,243,208,.25), transparent 31rem),
    radial-gradient(circle at 90% 16%, rgba(255,180,162,.18), transparent 27rem),
    #f8fbfd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.skip-link {
  position: fixed; left: 14px; top: -60px; z-index: 9999;
  color: #fff; background: var(--navy); padding: 10px 14px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 14px; }

.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 32px), 930px); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(219,228,237,.85);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: max-content; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 8px 20px rgba(16,42,67,.18); }
.brand-text { display: grid; line-height: 1.12; }
.brand-text strong { font-size: 1.03rem; letter-spacing: -.02em; }
.brand-text small { margin-top: 5px; color: var(--muted); font-size: .67rem; letter-spacing: .17em; font-weight: 800; }
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a { text-decoration: none; color: var(--muted); padding: 10px 13px; border-radius: 999px; font-size: .92rem; font-weight: 700; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--navy); background: var(--sky); }
.desktop-nav a { display: inline-flex; align-items: center; gap: 6px; }
.guide-nav-status, .guide-status-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #fff2cf; color: #704700; font-size: .65rem; font-weight: 900; line-height: 1; }
.guide-nav-status { padding: 4px 7px; }
.guide-status-badge { margin-bottom: 10px; padding: 6px 9px; }
.header-cta { text-decoration: none; color: #fff; background: var(--navy); padding: 11px 17px; border-radius: 999px; font-size: .88rem; font-weight: 800; box-shadow: 0 8px 20px rgba(16,42,67,.17); }
.menu-button { display: none; border: 0; background: var(--sky); width: 46px; height: 46px; border-radius: 14px; color: var(--navy); cursor: pointer; }
.menu-button svg { width: 24px; margin: auto; }
.mobile-nav { display: none; }

.guide-notice { background: var(--navy); color: #fff; }
.guide-notice-inner { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .8rem; text-align: center; }
.guide-notice-dot { width: 8px; height: 8px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,180,162,.15); }

.hero { padding: 78px 0 58px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 58px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--navy-2); background: rgba(167,243,208,.55); border: 1px solid rgba(55,184,139,.25); padding: 8px 13px; border-radius: 999px; font-weight: 800; font-size: .78rem; letter-spacing: .06em; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-deep); }
h1, h2, h3 { margin: 0; line-height: 1.3; color: var(--navy); }
.hero h1 { margin-top: 22px; font-size: clamp(2.55rem, 5.5vw, 5.15rem); line-height: 1.08; letter-spacing: -.055em; }
.hero h1 span { color: var(--blue); }
.hero-copy { margin: 26px 0 0; max-width: 680px; font-size: clamp(1rem, 1.35vw, 1.17rem); color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 51px; padding: 0 21px; border-radius: 999px; text-decoration: none; font-weight: 850; border: 1px solid transparent; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 12px 28px rgba(36,130,243,.25); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { color: var(--navy); background: rgba(255,255,255,.84); border-color: var(--line); box-shadow: var(--shadow-sm); }
.hero-meta { display: flex; gap: 9px 18px; flex-wrap: wrap; margin-top: 23px; color: var(--muted); font-size: .83rem; font-weight: 700; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: "✓"; color: var(--mint-deep); font-weight: 900; }

.phone-stage { position: relative; min-height: 620px; display: grid; place-items: center; }
.stage-blob { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: linear-gradient(135deg, rgba(167,243,208,.8), rgba(237,246,255,.3) 55%, rgba(255,180,162,.46)); filter: blur(.1px); }
.phone { position: absolute; width: min(270px, 44vw); padding: 12px; background: #fff; border: 1px solid rgba(16,42,67,.1); border-radius: 38px; box-shadow: var(--shadow-lg); }
.phone::before { content: ""; position: absolute; z-index: 2; top: 18px; left: 50%; transform: translateX(-50%); width: 78px; height: 20px; border-radius: 999px; background: #111b28; }
.phone img { width: 100%; border-radius: 28px; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; }
.phone.a { transform: translate(-86px, -30px) rotate(-4deg); }
.phone.b { transform: translate(105px, 58px) rotate(5deg); width: min(238px, 40vw); }
.floating-card { position: absolute; z-index: 5; background: rgba(255,255,255,.92); border: 1px solid rgba(219,228,237,.95); box-shadow: var(--shadow-sm); border-radius: 18px; padding: 13px 16px; backdrop-filter: blur(14px); font-size: .82rem; font-weight: 800; color: var(--navy); }
.floating-card.win { right: 4px; top: 104px; }
.floating-card.step { left: 0; bottom: 104px; }
.floating-card b { color: var(--blue); font-size: 1.2rem; display: block; }

.section { padding: 78px 0; }
.section.tint { background: linear-gradient(180deg, rgba(237,246,255,.88), rgba(255,255,255,.85)); border-block: 1px solid rgba(219,228,237,.75); }
.section.cream { background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-heading .copy { max-width: 680px; }
.eyebrow { margin: 0 0 9px; color: var(--blue-dark); font-size: .77rem; letter-spacing: .16em; font-weight: 900; text-transform: uppercase; }
.section h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); letter-spacing: -.035em; }
.section-lead { margin: 13px 0 0; color: var(--muted); font-size: 1rem; }
.text-link { color: var(--blue-dark); font-weight: 850; text-underline-offset: 4px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 275px; padding: 27px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-sm); overflow: hidden; }
.feature-card::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -55px; bottom: -70px; background: rgba(167,243,208,.35); }
.feature-card.accent::after { background: rgba(255,180,162,.32); }
.feature-card.scoreboard::after { background: rgba(255,211,107,.3); }
.feature-card.dim { background: rgba(255,255,255,.66); box-shadow: none; }
.icon-box { width: 49px; height: 49px; border-radius: 15px; display: grid; place-items: center; color: var(--navy); background: var(--mint); margin-bottom: 22px; font-size: 1.3rem; }
.feature-card.accent .icon-box { background: var(--coral); }
.feature-card.scoreboard .icon-box { background: #fff2cf; }
.feature-card.dim .icon-box { background: #e8edf3; }
.feature-card h3 { font-size: 1.25rem; }
.feature-card p { margin: 10px 0 22px; color: var(--muted); font-size: .94rem; }
.feature-card a { position: relative; z-index: 2; color: var(--blue-dark); font-weight: 850; text-decoration: none; }
.status-pill { display: inline-flex; margin-top: 16px; padding: 5px 10px; border-radius: 999px; background: #eef1f5; color: #6d7785; font-size: .72rem; font-weight: 850; }

.journey { position: relative; display: grid; gap: 0; margin-top: 36px; }
.journey::before { content: ""; position: absolute; left: 50%; top: 22px; bottom: 22px; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--mint-deep), var(--blue), var(--coral)); opacity: .5; }
.journey-step { position: relative; display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; min-height: 280px; }
.journey-step .copy-card { padding: 25px 28px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
.journey-step:nth-child(odd) .copy-card { grid-column: 1; }
.journey-step:nth-child(even) .copy-card { grid-column: 3; }
.journey-step:nth-child(odd) .journey-image { grid-column: 3; }
.journey-step:nth-child(even) .journey-image { grid-column: 1; grid-row: 1; }
.journey-number { grid-column: 2; grid-row: 1; z-index: 3; justify-self: center; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--navy); border: 6px solid #f8fbfd; font-weight: 900; box-shadow: 0 8px 20px rgba(16,42,67,.2); }
.copy-card h3 { font-size: 1.3rem; }
.copy-card p { margin: 10px 0 0; color: var(--muted); }
.journey-image { justify-self: center; width: min(255px, 76%); padding: 10px; background: #fff; border-radius: 30px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.journey-image img { border-radius: 22px; max-height: 480px; width: 100%; object-fit: cover; object-position: top; cursor: zoom-in; }
.journey-image.short img { aspect-ratio: 1080/700; object-fit: contain; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 20px; border-radius: 19px; margin-top: 22px; border: 1px solid; }
.callout.info { background: var(--sky); border-color: #bfdcff; }
.callout.tip { background: #effcf6; border-color: #b5ecd4; }
.callout.warn { background: #fff8ec; border-color: #f2d39b; }
.callout-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.8); font-weight: 900; }
.callout h3 { font-size: 1rem; }
.callout p { margin: 5px 0 0; color: var(--muted); font-size: .92rem; }

.page-hero { padding: 62px 0 44px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; color: var(--muted); font-size: .84rem; }
.breadcrumbs a { color: var(--blue-dark); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 42px; align-items: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4.45rem); letter-spacing: -.045em; }
.page-hero p { margin: 18px 0 0; color: var(--muted); max-width: 700px; }
.page-chip { align-self: start; display: grid; gap: 8px; min-width: 220px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); font-size: .82rem; }
.page-chip span { display: flex; justify-content: space-between; gap: 14px; }
.page-chip b { color: var(--navy); }

.progress-nav { position: sticky; top: 78px; z-index: 80; background: rgba(248,251,253,.92); border-block: 1px solid var(--line); backdrop-filter: blur(14px); }
.progress-inner { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.progress-inner::-webkit-scrollbar { display: none; }
.progress-inner a { white-space: nowrap; text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); background: #fff; border: 1px solid var(--line); font-size: .78rem; font-weight: 800; }
.progress-inner a:hover { color: var(--navy); border-color: var(--mint-deep); }

.guide-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 38px; align-items: start; }
.guide-toc { position: sticky; top: 155px; padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.guide-toc h2 { font-size: .83rem; text-transform: uppercase; letter-spacing: .12em; }
.guide-toc ol { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; }
.guide-toc a { display: flex; gap: 9px; padding: 9px; border-radius: 11px; color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 750; }
.guide-toc a:hover { background: var(--sky); color: var(--navy); }
.guide-toc small { color: var(--blue); font-weight: 900; }
.guide-content { min-width: 0; }

.guide-section { scroll-margin-top: 160px; padding: 0 0 72px; }
.guide-section + .guide-section { padding-top: 4px; }
.step-label { display: inline-flex; gap: 8px; align-items: center; color: var(--blue-dark); font-size: .79rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.step-label b { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--blue); }
.guide-section h2 { margin-top: 14px; font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -.035em; }
.guide-section > p { color: var(--muted); }
.guide-panel { margin-top: 25px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 390px); gap: 30px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-sm); align-items: center; }
.guide-panel.reverse { grid-template-columns: minmax(270px, 390px) minmax(0, 1fr); }
.guide-panel.reverse .panel-image { grid-column: 1; grid-row: 1; }
.guide-panel.reverse .panel-copy { grid-column: 2; }
.panel-copy h3 { font-size: 1.28rem; }
.panel-copy p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; color: #fff; background: var(--mint-deep); border-radius: 7px; font-size: .72rem; font-weight: 900; }
.panel-image { justify-self: center; max-width: 350px; padding: 9px; background: #f8fafc; border: 1px solid var(--line); border-radius: 27px; }
.panel-image img { border-radius: 20px; max-height: 560px; object-fit: cover; object-position: top; cursor: zoom-in; }
.panel-image.short img { object-fit: contain; }
.figure-caption { color: var(--muted); font-size: .76rem; text-align: center; margin: 9px 8px 3px; }

.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 25px; }
.score-card { background: #fff; border: 1px solid var(--line); border-radius: 25px; padding: 20px; box-shadow: var(--shadow-sm); }
.score-card h3 { margin-bottom: 7px; font-size: 1.1rem; }
.score-card p { color: var(--muted); font-size: .9rem; }
.score-card .panel-image { margin: 15px auto 0; }

.next-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.next-card { padding: 25px; border-radius: 24px; text-decoration: none; background: var(--navy); color: #fff; transition: transform .18s; }
.next-card:nth-child(2) { background: var(--blue); }
.next-card:hover { transform: translateY(-3px); }
.next-card small { color: rgba(255,255,255,.72); font-weight: 800; }
.next-card strong { display: block; margin-top: 6px; font-size: 1.28rem; }

.site-footer { padding: 42px 0; background: var(--navy); color: #d9e5ef; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 13px; }
.footer-brand strong { color: #fff; }
.footer-brand p { margin: 3px 0 0; color: #aab9c7; font-size: .8rem; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #fff; font-size: .85rem; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(7,18,30,.88); }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: min(94vw, 820px); max-height: 92vh; }
.lightbox img { max-height: 88vh; border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.lightbox-close { position: absolute; right: -16px; top: -16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 1.35rem; cursor: pointer; box-shadow: var(--shadow-sm); }

@media (max-width: 980px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-button { display: grid; place-items: center; }
  .mobile-nav { position: absolute; top: 100%; right: 0; left: 0; z-index: 90; height: calc(100vh - 78px); background: rgba(248,251,253,.98); padding: 22px 16px; display: none; overflow-y: auto; }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 15px; margin-bottom: 7px; border-radius: 15px; text-decoration: none; background: #fff; border: 1px solid var(--line); font-weight: 800; }
  .mobile-nav a[aria-current="page"] { border-color: rgba(36,130,243,.35); background: var(--sky); color: var(--navy); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .phone-stage { min-height: 560px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { display: none; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-chip { width: min(100%, 390px); }
}

@media (max-width: 720px) {
  .header-inner { min-height: 70px; }
  .mobile-nav { height: calc(100vh - 70px); }
  .brand img { width: 39px; height: 39px; }
  .brand-text small { display: none; }
  .guide-notice-inner { padding-block: 8px; }
  .hero { padding: 54px 0 40px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 3.8rem); }
  .hero-grid { gap: 20px; }
  .phone-stage { min-height: 465px; transform: scale(.92); margin-inline: -20px; }
  .stage-blob { width: 420px; height: 420px; }
  .phone.a { transform: translate(-64px, -20px) rotate(-4deg); }
  .phone.b { transform: translate(80px, 48px) rotate(5deg); }
  .floating-card.win { right: -7px; }
  .floating-card.step { left: -4px; }
  .section { padding: 56px 0; }
  .section-heading { display: block; }
  .section-heading > a { display: inline-block; margin-top: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .journey::before { left: 23px; }
  .journey-step { grid-template-columns: 47px 1fr; gap: 12px; padding-bottom: 34px; min-height: 0; }
  .journey-number { grid-column: 1; grid-row: 1; width: 46px; height: 46px; border-width: 5px; }
  .journey-step .copy-card, .journey-step:nth-child(odd) .copy-card, .journey-step:nth-child(even) .copy-card { grid-column: 2; grid-row: 1; }
  .journey-image, .journey-step:nth-child(odd) .journey-image, .journey-step:nth-child(even) .journey-image { grid-column: 2; grid-row: 2; width: min(290px, 100%); margin-top: 14px; }
  .page-hero { padding: 45px 0 28px; }
  .progress-nav { top: 70px; }
  .guide-section { scroll-margin-top: 140px; padding-bottom: 56px; }
  .guide-panel, .guide-panel.reverse { grid-template-columns: 1fr; padding: 20px; }
  .guide-panel.reverse .panel-image, .guide-panel.reverse .panel-copy { grid-column: 1; }
  .guide-panel.reverse .panel-copy { grid-row: 1; }
  .guide-panel.reverse .panel-image { grid-row: 2; }
  .panel-image { max-width: 310px; }
  .score-grid { grid-template-columns: 1fr; }
  .next-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .container, .narrow { width: min(calc(100% - 22px), var(--max)); }
  .hero-actions .button { width: 100%; }
  .phone-stage { transform: scale(.78); min-height: 395px; margin: -20px -52px -30px; }
  .feature-card, .guide-panel { border-radius: 22px; }
  .guide-panel { padding: 16px; }
  .progress-inner a { font-size: .73rem; }
}

/* v2: event / match relationship */
.record-overview-section { background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(239,252,246,.72)); }
.record-model {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
}
.record-model.guide-model { margin-top: 25px; }
.model-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.record-model-copy h3 { margin-top: 13px; font-size: 1.55rem; }
.record-model-copy > p { color: var(--muted); }
.event-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 18px; }
.event-type-grid.compact { max-width: 620px; }
.event-type-card { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.event-type-card.tournament { background: var(--sky); }
.event-type-card.practice { background: #effcf6; }
.event-type-card b { color: var(--navy); }
.event-type-card span { color: var(--muted); font-size: .78rem; }
.record-tree { position: relative; display: grid; gap: 10px; padding: 20px; background: #f8fbfd; border: 1px solid var(--line); border-radius: 24px; }
.tree-root, .tree-match { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; min-height: 56px; padding: 11px 14px; border-radius: 15px; background: #fff; border: 1px solid var(--line); box-shadow: 0 5px 15px rgba(16,42,67,.05); }
.tree-root { grid-template-columns: 1fr auto; background: var(--navy); color: #fff; }
.tree-root span { font-weight: 900; }
.tree-root small { color: #cbd8e5; }
.tree-line { position: absolute; left: 36px; top: 73px; bottom: 27px; width: 2px; background: linear-gradient(var(--blue), var(--mint-deep)); opacity: .45; }
.tree-match { margin-left: 26px; }
.tree-match span { font-weight: 800; color: var(--navy); }
.tree-match b { color: var(--navy); }
.tree-match em { min-width: 48px; text-align: center; padding: 4px 7px; border-radius: 999px; background: #f2f4f7; color: var(--muted); font-size: .66rem; font-style: normal; font-weight: 900; }
.tree-match.win em { background: #def8ec; color: #18805f; }
.important-note { max-width: 940px; margin-inline: auto; }
.journey-step.text-only .journey-mini-model { align-self: center; }
.journey-mini-model { justify-self: center; width: min(275px, 86%); display: grid; place-items: center; gap: 5px; padding: 24px; background: linear-gradient(145deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); text-align: center; }
.journey-mini-model b { color: var(--mint); letter-spacing: .12em; font-size: .77rem; }
.journey-mini-model span { font-weight: 850; }
.journey-mini-model i { color: var(--coral); font-style: normal; font-size: 1.45rem; }
.term-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.term-compare > div { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.term-compare h3 { margin-top: 9px; font-size: 1.15rem; }
.term-compare p { margin: 7px 0 0; color: var(--muted); font-size: .9rem; }
.term-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--sky); color: var(--blue-dark); font-size: .68rem; font-weight: 900; }
.term-badge.alt { background: #effcf6; color: #18805f; }
.faq-list { display: grid; gap: 11px; margin-top: 22px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-list summary { cursor: pointer; padding: 17px 20px; color: var(--navy); font-weight: 850; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--blue); font-size: 1.3rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 20px 19px; color: var(--muted); }

@media (max-width: 820px) {
  .record-model { grid-template-columns: 1fr; padding: 22px; }
  .event-type-grid, .term-compare { grid-template-columns: 1fr; }
  .record-tree { padding: 15px; }
  .tree-match { margin-left: 18px; }
}

/* Scoreboard guide: page-scoped additions */
.scoreboard-page { background: #f8fbfe; }
.scoreboard-hero { overflow: hidden; padding: 72px 0 76px; background: radial-gradient(circle at 78% 24%, rgba(9,101,224,.13), transparent 34%), linear-gradient(145deg, #fff 0%, #f1f8ff 72%, #edf5fb 100%); }
.scoreboard-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); gap: clamp(44px, 7vw, 96px); align-items: center; }
.scoreboard-hero-copy h1 { margin-top: 15px; font-size: clamp(3rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.065em; white-space: nowrap; }
.scoreboard-lead { margin: 26px 0 0; color: var(--navy); font-size: clamp(1.55rem, 3vw, 2.5rem); font-weight: 850; line-height: 1.35; letter-spacing: -.03em; }
.scoreboard-description { max-width: 640px; margin: 20px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.9; }
.scoreboard-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 25px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.scoreboard-state { display: inline-flex; width: fit-content; padding: 6px 11px; border: 1px solid #e8bd62; border-radius: 999px; background: #fff6dd; color: #704700; font-size: .72rem; font-weight: 900; letter-spacing: .04em; }
.scoreboard-hero-visual { position: relative; justify-self: center; width: min(100%, 480px); margin: 0; padding: 18px; border: 1px solid rgba(178,199,220,.75); border-radius: 38px; background: rgba(255,255,255,.72); box-shadow: 0 32px 80px rgba(25,64,105,.18); }
.scoreboard-hero-visual::before { content: ""; position: absolute; inset: -18px 20% auto -14%; height: 120px; border-radius: 999px; background: rgba(88,213,171,.22); filter: blur(35px); }
.scoreboard-hero-visual img { position: relative; max-height: 690px; margin-inline: auto; border-radius: 26px; box-shadow: 0 18px 45px rgba(16,42,67,.16); }
.scoreboard-hero-visual figcaption, .scoreboard-shot figcaption { margin-top: 11px; color: var(--muted); font-size: .75rem; text-align: center; }
.scoreboard-quick-section { padding-top: 68px; background: #fff; }
.scoreboard-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 28px; }
.scoreboard-feature-grid article { min-height: 165px; padding: 23px; border: 1px solid var(--line); border-radius: 23px; background: linear-gradient(145deg, #fff, #f8fbfe); box-shadow: var(--shadow-sm); }
.scoreboard-feature-grid span { color: var(--blue); font-size: .72rem; font-weight: 950; letter-spacing: .12em; }
.scoreboard-feature-grid h3 { margin-top: 20px; font-size: 1.1rem; }
.scoreboard-feature-grid p { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.scoreboard-manual { padding-top: 78px; }
.scoreboard-step { scroll-margin-top: 155px; margin-top: 38px; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: var(--shadow-sm); }
.scoreboard-step h2 { margin-top: 15px; font-size: clamp(1.65rem, 3.5vw, 2.75rem); letter-spacing: -.035em; }
.scoreboard-step p { color: var(--muted); line-height: 1.85; }
.scoreboard-step-number { display: inline-flex; align-items: center; gap: 9px; color: var(--blue-dark); }
.scoreboard-step-number small { font-size: .7rem; font-weight: 950; letter-spacing: .14em; }
.scoreboard-step-number b { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: var(--blue); color: #fff; }
.scoreboard-step-simple { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 32px; }
.scoreboard-step-simple h2 { margin-top: 0; }
.scoreboard-mini-visual { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.scoreboard-mini-visual span, .scoreboard-mini-visual strong { padding: 9px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--sky); color: var(--navy); font-size: .82rem; }
.scoreboard-mini-visual strong { background: var(--blue); color: #fff; }
.scoreboard-mini-visual i { color: var(--blue); font-style: normal; }
.scoreboard-step-with-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: clamp(28px, 5vw, 65px); align-items: center; padding: clamp(25px, 5vw, 52px); }
.scoreboard-step-reverse { grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); }
.scoreboard-step-reverse .scoreboard-step-copy { grid-column: 2; grid-row: 1; }
.scoreboard-step-reverse .scoreboard-shot { grid-column: 1; grid-row: 1; }
.scoreboard-shot { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 27px; background: #f6f9fc; }
.scoreboard-shot img { width: 100%; border-radius: 20px; cursor: zoom-in; }
.scoreboard-shot.portrait { justify-self: center; width: min(100%, 410px); }
.scoreboard-shot.portrait img { max-height: 650px; object-fit: contain; }
.scoreboard-control-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
.scoreboard-control { margin-top: 0; padding: 26px; }
.scoreboard-control h2 { min-height: 2.6em; font-size: 1.35rem; }
.scoreboard-control p { min-height: 7em; font-size: .9rem; }
.scoreboard-ui-label, .scoreboard-result-button { display: inline-flex; margin-top: 10px; padding: 10px 14px; border-radius: 13px; background: #edf5ff; color: var(--blue-dark); font-size: .82rem; font-weight: 900; }
.scoreboard-limitation { margin-top: 22px; padding: 18px 20px; border-left: 4px solid #e3ae3f; border-radius: 14px; background: #fff8e9; }
.scoreboard-limitation strong { color: #704700; }
.scoreboard-limitation p { margin: 5px 0 0; color: #654f25; font-size: .88rem; }
.scoreboard-landscape-step { padding: clamp(25px, 5vw, 52px); }
.scoreboard-landscape-step .scoreboard-step-copy { max-width: 780px; }
.scoreboard-shot.landscape { margin-top: 30px; }
.scoreboard-score-entry { background: linear-gradient(145deg, #fff, #eef6ff); }
.scoreboard-result-button { background: var(--blue); color: #fff; }
.scoreboard-faq-section { background: linear-gradient(180deg, #edf6ff, #f8fbfe); }
.scoreboard-faq-section h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.scoreboard-bottom-state { padding: 80px 0; background: #fff; text-align: center; }
.scoreboard-bottom-state .scoreboard-state { margin-inline: auto; }
.scoreboard-bottom-state h2 { margin-top: 19px; font-size: clamp(2rem, 4vw, 3.2rem); }
.scoreboard-bottom-state p { max-width: 680px; margin: 16px auto 0; color: var(--muted); }
.scoreboard-bottom-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 980px) {
  .scoreboard-hero-grid { grid-template-columns: 1fr; }
  .scoreboard-hero-copy { max-width: 760px; }
  .scoreboard-hero-visual { width: min(100%, 520px); }
  .scoreboard-step-with-image, .scoreboard-step-reverse { grid-template-columns: 1fr; }
  .scoreboard-step-reverse .scoreboard-step-copy, .scoreboard-step-reverse .scoreboard-shot { grid-column: 1; }
  .scoreboard-step-reverse .scoreboard-step-copy { grid-row: 1; }
  .scoreboard-step-reverse .scoreboard-shot { grid-row: 2; }
  .scoreboard-control-grid { grid-template-columns: 1fr; }
  .scoreboard-control h2, .scoreboard-control p { min-height: 0; }
}

@media (max-width: 720px) {
  .scoreboard-hero { padding: 48px 0 56px; }
  .scoreboard-hero-grid { gap: 32px; }
  .scoreboard-hero-copy h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .scoreboard-lead { font-size: 1.55rem; }
  .scoreboard-description { font-size: .94rem; }
  .scoreboard-hero-visual { padding: 11px; border-radius: 29px; }
  .scoreboard-hero-visual img { max-height: none; border-radius: 21px; }
  .scoreboard-feature-grid { grid-template-columns: 1fr 1fr; }
  .scoreboard-feature-grid article { min-height: 145px; padding: 19px; }
  .scoreboard-step { border-radius: 23px; }
  .scoreboard-step-simple { grid-template-columns: 1fr; padding: 23px; }
  .scoreboard-step-with-image, .scoreboard-landscape-step { padding: 21px; }
  .scoreboard-shot.portrait { width: min(100%, 360px); }
  .scoreboard-bottom-actions .button { width: 100%; }
}

@media (max-width: 430px) {
  .scoreboard-feature-grid { grid-template-columns: 1fr; }
  .scoreboard-feature-grid article { min-height: 0; }
  .scoreboard-mini-visual i { transform: rotate(90deg); }
  .scoreboard-mini-visual { align-items: flex-start; flex-direction: column; }
}
