﻿/* ================= Shared building blocks for the full version ================= */
.sec { position: relative; z-index: 1; padding: clamp(70px, 10vh, 120px) clamp(20px, 7vw, 120px); }
.sec__head { max-width: 980px; margin-bottom: 44px; }
.sec__head.center { text-align: center; margin-inline: auto; }
[data-lucide], svg.lucide { width: 1em; height: 1em; stroke-width: 2; }

.icon-dot { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
  background: #E6F3FF; color: var(--blue); }
.icon-dot--v { background: #F1EAFE; color: var(--violet); }
.icon-dot--g { background: #E3F6EF; color: #059669; }
.icon-dot--r { background: #FFE9EE; color: #E11D48; }
.icon-dot--gray { background: #EEF2F7; color: #64748B; }
.icon-dot--lg { width: 76px; height: 76px; font-size: 34px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 12.5px; padding: 6px 14px; border-radius: 99px; background: #EAF4FF; border: 1px solid #9CC8EE; }
.chips--v span { background: #F4EFFF; border-color: #C4B5FD; }

.callout { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.callout small { display: block; font-size: 10px; color: var(--blue); margin-bottom: 2px; }
.callout b { font-size: 16px; }
.callout--warn small { color: #E11D48; } .callout--ok small { color: #059669; }
.callout--big { align-items: flex-start; padding: 28px; }
.callout--big b { display: block; font-size: 19px; margin-bottom: 6px; }
.callout--big span:not(.icon-dot) { color: var(--muted); font-size: 14.5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.browser img { width: 100%; display: block; }
.phone { --bz: 9px; position: relative; padding: var(--bz); border-radius: 14% / 6.5%;
  background: linear-gradient(145deg, #4B5363 0%, #1A1E27 18%, #0B0D12 50%, #20242E 82%, #5A6272 100%);
  box-shadow: 0 50px 90px -30px rgba(15, 30, 61, 0.55), 0 18px 30px -18px rgba(15, 30, 61, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 3px #07090D;
  outline: 1px solid transparent; backface-visibility: hidden; }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.08)); mix-blend-mode: screen; }
.phone img { width: 100%; border-radius: 11.8% / 5.45%; display: block; outline: 1px solid transparent; backface-visibility: hidden; }

/* ================= Chapter dividers (PART 01/02/03) ================= */
.chapter { position: relative; z-index: 1; }
.chapter__pin { position: relative; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 28% 50%, rgba(56, 189, 248, 0.25), transparent 55%), radial-gradient(ellipse at 90% 10%, rgba(167, 139, 250, 0.22), transparent 50%); }
/* non-animated stage keeps rings and number concentric; sized to stay inside the left half */
.chapter__stage { position: absolute; left: 25%; top: 50%; width: min(78vh, 40vw); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; }
.chapter__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chapter__rings circle { fill: none; }
.ring-base { stroke: #CBD5E1; stroke-width: 2; opacity: 0.7; }
.ring-inner { stroke: url(#none); stroke: #93C5FD; stroke-width: 2.5; stroke-dasharray: 1433; stroke-dashoffset: 1433; }
.ring-arc { stroke-width: 7; stroke-linecap: round; stroke-dasharray: 471 1885; stroke-dashoffset: 471; transform-origin: 400px 400px; }
.ring-arc--b { stroke: #0EA5E9; transform: rotate(-90deg); }
.ring-arc--v { stroke: #7C3AED; transform: rotate(90deg); }
.chapter__num { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -0.4em; }
.chapter__digits { position: relative; display: block; }
.chapter__part { display: block; font-size: 16px; color: var(--blue); letter-spacing: 0.6em; margin: 0 0 6px 0.6em; }
.chapter__num b { display: block; font-family: var(--en); font-weight: 700; font-size: min(15vw, 29vh, 220px); line-height: 0.82; letter-spacing: -0.02em; }
.chapter__outline { color: transparent; -webkit-text-stroke: 2px rgba(2, 132, 199, 0.35); }
.chapter__fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(160deg, #0284C7, #22D3EE 55%, #7C3AED); -webkit-background-clip: text; background-clip: text; color: transparent; clip-path: inset(100% 0 0 0); }
.chapter__side { grid-column: 2; padding-right: clamp(20px, 7vw, 120px); }
.chapter__title { font-size: clamp(32px, 3.8vw, 54px); font-weight: 900; line-height: 1.25; margin-bottom: 36px; }
.chapter__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.chapter__list li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(8px); font-weight: 700; font-size: 16px; }
.chapter__list li > svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: #E6F3FF; color: var(--blue); }
.chapter__list li:nth-child(even) > svg { background: #F1EAFE; color: var(--violet); }
.chapter__list small { display: block; font-size: 11px; font-weight: 500; color: var(--blue); }

/* ================= DBMS overview ================= */
.overview__grid { display: grid; grid-template-columns: 0.85fr 1.25fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.role { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.role small { display: block; font-size: 10px; color: var(--violet); }
.role b { font-size: 18px; }
.lifecycle { margin-top: 38px; }
.lifecycle__label { font-size: 11px; color: var(--blue); margin-bottom: 18px; }
.lifecycle__track { position: relative; height: 3px; background: var(--line); margin: 0 9%; }
.lifecycle__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--violet)); transform-origin: 0 50%; transform: scaleX(0); }
.lifecycle__steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: -12px; text-align: center; font-size: 13px; font-weight: 700; }
.lifecycle__steps span { display: block; width: 20px; height: 20px; margin: 0 auto 10px; border-radius: 50%; background: #fff; border: 3px solid var(--line); transition: border-color 0.4s, background 0.4s, box-shadow 0.4s; }
.lifecycle__steps li.is-on span { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.15); }
.lifecycle__steps li:last-child.is-on span { border-color: var(--violet); background: var(--violet); box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.15); }
.overview__right { position: relative; perspective: 1400px; }
.browser--float { transform-style: preserve-3d; }

/* ================= きっかけ (scatter → converge) ================= */
.why { position: relative; z-index: 1; }
.why__pin { height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 90px clamp(20px, 7vw, 120px) 40px; overflow: hidden; }
.why__quote { margin: 22px 0 36px; font-size: clamp(16px, 1.5vw, 20px); color: var(--muted); line-height: 1.8; }
.why__states { position: relative; height: 170px; }
.why__state { position: absolute; inset: 0; padding: 24px 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.why__state p { font-size: 11px; margin-bottom: 6px; }
.why__state b { display: block; font-size: 21px; margin-bottom: 8px; }
.why__state span { color: var(--muted); font-size: 14px; }
.why__state--before p { color: #E11D48; }
.why__state--after { opacity: 0; } .why__state--after p { color: #059669; }
.why__stage { position: relative; height: min(70vh, 560px); }
.why__doc { position: absolute; left: 50%; top: 50%; width: 64px; height: 76px; margin: -38px 0 0 -32px; border-radius: 10px; background: #fff; border: 1px solid #C9D6EA; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 28px; color: #64748B; }
.why__doc { animation: bob 3s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.why__doc em { position: absolute; bottom: 6px; font-style: normal; font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; color: #94A3B8; background: none; -webkit-text-fill-color: currentColor; }
.why__core { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; translate: -50% -50%; border-radius: 36px; display: grid; place-items: center; align-content: center; gap: 6px; color: #fff; font-size: 54px;
  background: linear-gradient(135deg, var(--blue), var(--cyan) 60%, var(--violet)); box-shadow: 0 30px 60px -20px rgba(2, 132, 199, 0.6); opacity: 0; z-index: 2; }
.why__core span { font-size: 12px; }
.why__pulse { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; translate: -50% -50%; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; }

/* ================= 選択肢 ================= */
.options__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.opt, .pain { position: relative; padding: 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: filter 0.6s; }
.opt h3, .pain h3 { margin: 22px 0 8px; font-size: 18px; }
.opt p, .pain p { color: var(--muted); font-size: 14px; }
.opt__x { position: absolute; top: 26px; right: 26px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #FFE9EE; color: #E11D48; font-size: 22px; transform: scale(0) rotate(-90deg); }
.opt.is-out { filter: grayscale(0.7) opacity(0.6); }
.decision { margin-top: 34px; display: flex; align-items: center; gap: 22px; padding: 28px 32px; border-radius: 22px; background: #fff; border: 1px solid #9AE0C4; box-shadow: 0 20px 60px -24px rgba(5, 150, 105, 0.45); }
.decision__check svg { width: 56px; height: 56px; }
.decision__check circle { fill: #059669; }
.decision__check path { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.decision p { font-size: 11px; color: #059669; }
.decision b { font-size: clamp(18px, 1.8vw, 24px); }

/* ================= 課題と解決 ================= */
.chal { display: flex; flex-direction: column; gap: 20px; }
.chal__row { display: grid; grid-template-columns: 60px 1fr 90px 1.1fr; align-items: stretch; gap: 0; }
.chal__no { align-self: center; font-size: 26px; font-weight: 500; color: var(--blue); }
.chal__card { padding: 22px 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.chal__card--problem b { display: block; font-size: 17px; margin-bottom: 4px; }
.chal__card--problem span { color: var(--muted); font-size: 13.5px; }
.chal__card--solution { display: flex; gap: 14px; align-items: center; background: #F3FBF8; border-color: #9AE0C4; font-weight: 500; }
.chal__card--solution > svg { flex: none; font-size: 24px; color: #059669; }
.chal__arrow { position: relative; align-self: center; height: 2px; margin: 0 14px; }
.chal__arrow i { position: absolute; inset: 0; background: #059669; transform-origin: 0 50%; transform: scaleX(0); }
.chal__arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid #059669; opacity: 0; transition: opacity 0.3s 0.4s; }
.chal__row.is-in .chal__arrow::after { opacity: 1; }

/* ================= リリース ================= */
.release { position: relative; z-index: 1; padding: 140px 24px 150px; text-align: center; background: radial-gradient(ellipse at 50% 70%, rgba(56, 189, 248, 0.22), transparent 60%); }
.release__title { font-size: clamp(34px, 5vw, 68px); font-weight: 900; line-height: 1.25; }
.release__accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.release__accent .ch { background: inherit; -webkit-background-clip: text; background-clip: text; }
.milestones { position: relative; max-width: 900px; margin: 80px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.milestones__line { position: absolute; left: 12.5%; right: 12.5%; top: 32px; height: 3px; background: var(--line); }
.milestones__line i { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.ms { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 15px; }
.ms__dot { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: #fff; border: 3px solid var(--line); color: var(--dim); transition: all 0.5s; }
.ms.is-on .ms__dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.12); }
.ms--goal.is-on .ms__dot svg { animation: launch 1.6s ease-in-out infinite; }
@keyframes launch { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) rotate(-8deg); } }
.ms--goal.is-on .ms__dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 16px 40px -10px rgba(124, 58, 237, 0.6); }

/* ================= 実装 (architecture) ================= */
.arch__cols { display: grid; grid-template-columns: 1fr 80px 1fr 80px 1fr; align-items: center; }
.layer { padding: 32px 30px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.layer__en { font-size: 11px; color: var(--blue); margin: 22px 0 6px; }
.layer--v .layer__en { color: var(--violet); }
.layer h3 { font-size: 22px; }
.layer__desc { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.flow { position: relative; height: 2px; margin: 0 10px; background: repeating-linear-gradient(90deg, #9CC8EE 0 6px, transparent 6px 12px); }
.flow i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: packet 2.4s linear infinite; }
.flow i:nth-child(2) { animation-delay: 0.8s; } .flow i:nth-child(3) { animation-delay: 1.6s; }
@keyframes packet { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
.infra { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 24px; border-radius: 16px; background: rgba(255, 255, 255, 0.7); border: 1px dashed #9CC8EE; font-size: 14px; }
.infra > svg { font-size: 22px; color: var(--blue); }
.infra span { color: var(--muted); }

/* ================= TOEIC ================= */
.toeic__grid { display: grid; grid-template-columns: 0.72fr 1.4fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.whylist { list-style: none; margin: 30px 0 22px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.whylist li { display: flex; gap: 12px; align-items: center; }
.whylist svg { color: #64748B; font-size: 20px; }
.toeic__meta { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 16px; color: var(--muted); font-size: 14px; }
.toeic__big { font-family: var(--en); font-size: 20px; font-weight: 700; color: var(--ink); }
.toeic__big b { font-size: 52px; color: var(--violet); }
.toeic__visual { position: relative; height: clamp(420px, 42vw, 640px); }
.browser.toeic__b1 { position: absolute; left: 0; top: 0; width: 56%; }
.browser.toeic__b2 { position: absolute; right: 0; bottom: 0; width: 76%; }

/* ================= App covers ================= */
.appcover { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 120px clamp(20px, 7vw, 120px); overflow: hidden;
  background: radial-gradient(ellipse at 25% 50%, rgba(56, 189, 248, 0.22), transparent 50%), radial-gradient(ellipse at 80% 60%, rgba(167, 139, 250, 0.2), transparent 55%); }
.appcover__text { display: flex; flex-direction: column; align-items: flex-start; }
.appcover__icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 24px 50px -16px rgba(15, 30, 61, 0.45); margin: 10px 0 24px; }
.appcover__name { font-family: var(--en); font-size: clamp(56px, 7vw, 108px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.appcover__tag { margin: 14px 0 26px; font-size: 18px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 99px; color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 20px; }
.badge--green { background: #059669; box-shadow: 0 10px 30px -10px rgba(5, 150, 105, 0.7); }
.badge--gray { background: #64748B; }
.appcover__phones { position: relative; height: min(78vh, 700px); }
.appcover__phones .phone { position: absolute; width: min(19vw, calc((100vh - 150px) * 0.46), 330px); }
.phone--front { left: 18%; top: 4%; z-index: 2; }
.phone--back { left: 52%; top: 14%; opacity: 0.95; }
/* TimeLog cover: two phones fanned out in a V like a hand of cards */
#timelog .appcover__phones .phone { top: 8%; transform-origin: 50% 110%; }
#timelog .phone--front { left: 22%; z-index: 2; }
#timelog .phone--back { left: 44%; opacity: 1; }
.appcover--fm .phone--front { left: 30%; }
.phone--theme { overflow: hidden; }
.phone--theme img { border-radius: 11.8% / 5.45%; }
.phone--theme img { transition: none; }
.phone--theme .fm-bright { position: absolute; left: var(--bz); top: var(--bz); width: calc(100% - 2 * var(--bz)); clip-path: circle(0% at 85% 8%); }
.theme-toggle { margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 99px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); cursor: pointer; font: 700 14px var(--jp); color: var(--ink); }
.theme-toggle__knob { width: 44px; height: 26px; border-radius: 99px; background: #0F172A; position: relative; transition: background 0.4s; }
.theme-toggle__knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #67E8F9; transition: transform 0.4s cubic-bezier(.5, 1.6, .4, 1), background 0.4s; }
.theme-toggle.is-bright .theme-toggle__knob { background: #FDBA74; }
.theme-toggle.is-bright .theme-toggle__knob::after { transform: translateX(18px); background: #fff; }

/* ================= TimeLog midnight ================= */
.midnight__board { position: relative; padding: 96px 36px 30px 200px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.midnight__clock { position: absolute; left: 36px; top: 26px; font-size: 38px; font-weight: 500; color: var(--ink); letter-spacing: 0.04em; }
.midnight__axis { position: relative; height: 16px; font-size: 11px; color: var(--dim); margin-bottom: 18px; }
.midnight__axis span { position: absolute; top: 0; translate: -50% 0; }
.midnight__axis .is-zero { color: #E11D48; font-weight: 500; }
.midnight__row { position: relative; display: flex; align-items: center; margin-bottom: 18px; }
.midnight__row > b { position: absolute; left: -164px; font-size: 15px; color: #64748B; letter-spacing: 0.04em; }
.midnight__row > b.is-ours { color: var(--blue); }
.midnight__lane { position: relative; flex: 1; height: 56px; border-radius: 12px; background: #F1F5F9; }
.rec { position: absolute; top: 8px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; }
.rec--bad { left: calc(100% * 1.5 / 6); width: 0; background: #FCA5A5; color: #7F1D1D; }
.rec--a { left: calc(100% * 1.5 / 6); width: 0; background: #7DD3FC; color: #0C4A6E; }
.rec--b { left: calc(100% * 3 / 6 + 4px); width: 0; background: #C4B5FD; color: #4C1D95; }
.midnight__zero { position: absolute; top: 120px; bottom: 20px; left: calc(200px + (100% - 236px) * 3 / 6); width: 0; border-left: 2px dashed #E11D48; }
.midnight__callouts { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rec--bad.is-shake { animation: shake 0.5s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ================= App features (pinned phone) ================= */
.appfeat { position: relative; z-index: 1; }
.appfeat__pin { height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 90px clamp(20px, 7vw, 120px) 40px; overflow: hidden; }
.appfeat__list { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
.afeat { display: flex; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 18px; opacity: 0.35; transition: all 0.5s; }
.afeat.is-active { opacity: 1; background: #fff; box-shadow: var(--shadow); transform: translateX(10px); }
.afeat h3 { font-size: 18px; } .afeat p { color: var(--muted); font-size: 14px; }
.appfeat__right { position: relative; display: grid; place-items: center; }
.phone--solo { width: min(19vw, 300px); }
.phone--solo img { position: absolute; left: 10px; top: 10px; width: calc(100% - 20px); opacity: 0; transform: translateY(30px) scale(0.96); transition: opacity 0.6s, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.phone--solo img:first-child { position: relative; left: 0; top: 0; width: 100%; }
.phone--solo img.is-active { opacity: 1; transform: none; }
.orbit { position: absolute; width: min(34vw, 520px); aspect-ratio: 1; border-radius: 50%; border: 1px dashed #9CC8EE; z-index: -1; animation: spin 40s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); top: -7px; left: 50%; }
.orbit::after { background: var(--violet); box-shadow: 0 0 14px var(--violet); top: auto; bottom: -7px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= MyFMRadio details ================= */
.fm__why { display: grid; grid-template-columns: 1fr 1fr 80px 1.1fr; gap: 24px; align-items: stretch; }
.fm__why .opt__x { transform: none; }
.fm__arrow { position: relative; align-self: center; height: 2px; background: var(--blue); }
.fm__arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--blue); }
.gain { padding: 30px; border-radius: 22px; background: #fff; border: 1px solid #9CC8EE; box-shadow: 0 20px 60px -24px rgba(2, 132, 199, 0.45); }
.gain h3 { margin: 22px 0 8px; font-size: 19px; color: var(--blue); }
.gain p { color: var(--muted); font-size: 14px; }
.fm__sub { margin-top: 90px; }
.fm__feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ffeat { padding: 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ffeat h3 { margin: 22px 0 6px; font-size: 18px; } .ffeat p { color: var(--muted); font-size: 14px; }
.ffeat__visual { position: relative; height: 120px; border-radius: 16px; display: grid; place-items: center; font-size: 42px; overflow: hidden; }
.ffeat__visual--play { background: linear-gradient(135deg, #0F172A, #1E3A8A); color: #67E8F9; }
.ffeat__visual--play span { position: absolute; left: 18%; right: 18%; bottom: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.ffeat__visual--play span::after { content: ""; position: absolute; inset: 0; background: #67E8F9; animation: prog 4s linear infinite; transform-origin: 0 50%; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ffeat__visual--sun { background: linear-gradient(180deg, #5E76C4, #F2A894 70%, #FFD9A8); color: #fff; }
.ffeat__visual--sun svg { animation: rise 3.6s ease-in-out infinite; }
@keyframes rise { 0%, 100% { transform: translateY(18px); } 50% { transform: translateY(-6px); } }
.ffeat__visual--tap { background: linear-gradient(135deg, #F1EAFE, #E6F3FF); color: var(--violet); }
.ffeat__visual--tap span { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--violet); opacity: 0; animation: tap 2.4s ease-out infinite; }
.ffeat__visual--tap span:last-child { animation-delay: 0.35s; }
@keyframes tap { 0% { transform: scale(0.4); opacity: 0.9; } 40% { transform: scale(2.2); opacity: 0; } 100% { opacity: 0; } }
.footnote { margin-top: 26px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }

/* ================= AI① hub ================= */
.hub__stage { position: relative; height: 560px; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub__lines path { fill: none; stroke: #9CC8EE; stroke-width: 2; stroke-dasharray: 6 8; }
.hub__core { position: absolute; left: 50%; top: 250px; width: 170px; height: 170px; translate: -50% -50%; border-radius: 50%; z-index: 2; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; color: #fff; font-size: 34px;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 30px 60px -20px rgba(2, 132, 199, 0.65); }
.hub__core b { font-size: 15px; line-height: 1.4; }
.hub__wave { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan); animation: wave 3s ease-out infinite; }
.hub__wave--2 { animation-delay: 1.5s; }
@keyframes wave { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.9); opacity: 0; } }
.hnode { position: absolute; width: min(30%, 380px); display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 1; }
.hnode h3 { font-size: 16px; } .hnode p { font-size: 13px; color: var(--muted); }
.hnode--tl { left: 0; top: 50px; } .hnode--bl { left: 0; top: 330px; }
.hnode--tr { right: 0; top: 50px; } .hnode--br { right: 0; top: 330px; }
.hnode--b { left: 50%; top: 470px; translate: -50% 0; width: auto; }

/* ================= AI① award ================= */
.award__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: stretch; }
.award__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tile b { font-size: 18px; }
.tile__up { position: absolute; top: 28px; right: 28px; font-size: 26px; color: #059669; }
.trophy { position: relative; overflow: hidden; padding: 40px; border-radius: 26px; background: #fff; border: 1px solid #C4B5FD; box-shadow: 0 30px 70px -30px rgba(124, 58, 237, 0.5); }
.trophy > p.mono { margin-top: 26px; font-size: 12px; color: var(--violet); }
.trophy__num { font-size: 26px; font-weight: 700; }
.trophy__num b { font-family: var(--en); font-size: 96px; color: var(--violet); }
.trophy__desc { color: var(--muted); }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i { position: absolute; width: 8px; height: 8px; border-radius: 2px; }

/* ================= AI③ automation (pinned) ================= */
.auto { position: relative; z-index: 1; }
.auto__pin { height: 100vh; display: grid; grid-template-columns: 0.9fr 1.2fr; gap: clamp(30px, 4vw, 70px); align-items: center; padding: 90px clamp(20px, 6vw, 100px) 40px; overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(224, 236, 255, 0.55)); }
.auto__title { font-size: clamp(28px, 3vw, 42px); margin-bottom: 30px; }
.auto__steps { display: flex; flex-direction: column; gap: 8px; }
.astep { padding: 16px 20px; border-radius: 16px; opacity: 0.35; transition: all 0.5s; }
.astep span { font-size: 11px; color: var(--blue); }
.astep h3 { font-size: 18px; }
.astep p { font-size: 13.5px; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height 0.5s; }
.astep.is-active { opacity: 1; background: #fff; box-shadow: var(--shadow); transform: translateX(8px); }
.astep.is-active p { max-height: 120px; margin-top: 4px; }
.auto__right { position: relative; height: min(64vh, 520px); }
.apanel { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity 0.6s, transform 0.7s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.apanel.is-active { opacity: 1; transform: none; }
.aflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; }
.aflow__n { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px 20px; min-height: 200px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 15px; }
.aflow__n:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 50%; translate: 0 -50%; color: var(--blue); font-weight: 700; }
.astats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; }
.astat { padding: 28px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.astat b { font-family: var(--en); font-size: 40px; line-height: 1.1; white-space: nowrap; }
.astat small { margin-left: 4px; font-weight: 700; }
.astat p { margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.astat--red b { color: #E11D48; }
.acompare { width: 100%; padding: 36px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.acompare__row { margin-bottom: 24px; }
.acompare__row > span { font-size: 11px; color: var(--muted); }
.acompare__bar { margin-top: 8px; height: 50px; border-radius: 12px; display: flex; align-items: center; }
.acompare__bar i { font-style: normal; font-weight: 700; padding: 0 18px; white-space: nowrap; }
.acompare__bar--before { width: 100%; background: #E2E8F0; color: #334155; }
.acompare__bar--after { width: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); color: #fff; transform-origin: 0 50%; }
.acompare__saved { display: flex; align-items: baseline; gap: 14px; margin-top: 10px; }
.acompare__saved small { font-size: 11px; color: var(--violet); }
.acompare__saved b { font-family: var(--en); font-size: 72px; color: var(--violet); line-height: 1; }
.acompare__saved span { font-weight: 700; }

/* ================= PART 03 ================= */
.speed__board { padding: 36px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 28px; }
.speed__row { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 30px; padding: 16px 0; }
.speed__row + .speed__row { border-top: 1px solid var(--line); padding-top: 34px; }
.speed__row > b { font-size: 17px; }
.speed__bars { display: flex; flex-direction: column; gap: 12px; }
.sbar { position: relative; height: 40px; border-radius: 10px; overflow: hidden; background: #F1F5F9; }
.sbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 10px; }
.sbar--old i { background: #CBD5E1; } .sbar--new i { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.sbar span { position: relative; z-index: 1; line-height: 40px; padding-left: 16px; font-weight: 700; font-size: 14px; }
.sbar--new span { color: var(--blue); padding-left: calc(25% + 14px); }
.speed__timeline { position: relative; height: 70px; margin: 0 60px 0 10px; }
.stl__line { position: absolute; left: 0; right: 0; top: 16px; height: 3px; background: var(--line); }
.stl__line i { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.stl__pt { position: absolute; left: var(--x); top: 7px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; white-space: nowrap; }
.stl__pt span { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.stl__pt--goal span { border-color: var(--violet); background: var(--violet); box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.15); }
.stl__pt small { font-size: 13px; font-weight: 700; }
.org__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; perspective: 1200px; }
.ocard { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 20px; align-items: center; padding: 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transform-style: preserve-3d; }
.ocard .icon-dot { grid-row: span 2; }
.ocard h3 { font-size: 18px; } .ocard p { color: var(--muted); font-size: 14px; }
.goal { margin-top: 28px; display: flex; align-items: center; gap: 20px; padding: 26px 30px; border-radius: 22px; background: #fff; border: 1px solid #9CC8EE; box-shadow: 0 20px 60px -24px rgba(2, 132, 199, 0.4); }
.goal small { display: block; font-size: 10px; color: var(--blue); }
.goal b { font-size: clamp(18px, 1.8vw, 24px); }
.radar { position: relative; width: 220px; height: 220px; margin: -10px auto 50px; border-radius: 50%; display: grid; place-items: center; font-size: 60px; color: var(--blue);
  background: radial-gradient(circle, #fff 30%, #EAF4FF 31%, #fff 50%, #EAF4FF 51%, #fff 70%, #EAF4FF 71%); border: 1px solid #9CC8EE; box-shadow: var(--shadow); overflow: hidden; }
.radar > svg { position: relative; z-index: 2; }
.radar__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.45), transparent 70deg); animation: spin 3.2s linear infinite; }
.radar__blip { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #E11D48; transform: rotate(var(--a)) translateX(calc(var(--r) * 2.2)); animation: blip 3.2s ease-out infinite; }
@keyframes blip { 0%, 60% { opacity: 0; } 70% { opacity: 1; } 100% { opacity: 0; } }
.sec__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scard { padding: 34px 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.scard > p.mono { margin-top: 24px; font-size: 11px; color: var(--blue); }
.scard h3 { margin: 6px 0 10px; font-size: 19px; }
.scard p:not(.mono) { color: var(--muted); font-size: 14px; }
.scard small { display: block; margin-top: 14px; font-size: 12px; color: var(--dim); }

@media (max-width: 900px) {
  .chapter__pin, .overview__grid, .why__pin, .toeic__grid, .appcover, .appfeat__pin, .auto__pin, .award__grid, .grid-2, .org__grid, .midnight__callouts { grid-template-columns: 1fr; }
  .options__grid, .fm__feats, .sec__cards, .astats, .aflow { grid-template-columns: 1fr; }
  .arch__cols, .fm__why { grid-template-columns: 1fr; gap: 20px; }
  .flow, .fm__arrow, .chal__arrow { display: none; }
  .chal__row { grid-template-columns: 40px 1fr; gap: 12px; }
  .chal__card--solution { grid-column: 2; }
  .hub__stage { height: auto; display: flex; flex-direction: column; gap: 16px; }
  .hub__core, .hnode { position: relative; left: auto; right: auto; top: auto; translate: none; width: auto; }
  .hub__lines { display: none; }
}

.ccard { display: block; }
.toeic .h2 { white-space: nowrap; font-size: clamp(30px, 3.6vw, 52px); }

/* ================= v2: 課題と解決 (solve sequence) ================= */
.solve { position: relative; z-index: 1; }
.solve__pin { position: relative; height: 100vh; padding: 96px clamp(20px, 7vw, 120px) 40px; overflow: hidden; }
.solve__dock { display: flex; align-items: center; gap: 10px; min-height: 34px; margin: 14px 0 26px; }
.solve__dock-label { font-size: 10px; color: #059669; opacity: 0; }
.dock-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: #EEF2F7; color: #94A3B8; font-size: 12.5px; font-weight: 700; opacity: 0; }
.dock-chip svg { color: #059669; }
.solve__board { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 9vw, 150px); }
.solve__col { display: flex; flex-direction: column; gap: 16px; }
.solve__col-label { font-size: 11px; margin-bottom: 2px; }
.solve__col-label--p { color: #E11D48; } .solve__col-label--s { color: #059669; }
.prob { position: relative; display: flex; gap: 18px; align-items: center; padding: 22px 26px; min-height: 96px; border-radius: 18px; background: #fff; border: 1px solid #FBC4CF; box-shadow: var(--shadow); transform-origin: 0 0; }
.prob__no { font-size: 22px; color: #E11D48; }
.prob b { display: block; font-size: 17px; }
.prob div span { color: var(--muted); font-size: 13.5px; }
.prob__stamp { position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: #059669; color: #fff; box-shadow: 0 10px 24px -8px rgba(5, 150, 105, 0.7); opacity: 0; }
.sol { display: flex; gap: 16px; align-items: center; padding: 20px 24px; min-height: 96px; border-radius: 18px; background: #F3FBF8; border: 1px solid #9AE0C4; box-shadow: 0 16px 40px -20px rgba(5, 150, 105, 0.45); font-weight: 500; font-size: 14.5px; }
.sol small { display: block; font-size: 10px; color: #059669; font-weight: 500; }
.solve__release { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -40%; text-align: center; opacity: 0; pointer-events: none; }
.solve__release-title { font-size: clamp(30px, 4.2vw, 58px); font-weight: 900; line-height: 1.25; }
.solve__release-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.solve__release .milestones { margin-top: 56px; }

/* ================= v2: DBMS horizontal gallery ================= */
.gallery { position: relative; z-index: 1; }
.gallery__pin { position: relative; height: 100vh; overflow: hidden; background: linear-gradient(180deg, transparent, rgba(224, 236, 255, 0.6)); }
.gallery__head { position: absolute; left: clamp(20px, 7vw, 120px); top: 76px; z-index: 2; }
.gallery__head .h2 { font-size: clamp(26px, 3vw, 40px); }
.gallery__head .h2 { display: inline-block; margin-right: 26px; vertical-align: bottom; }
.gallery__head .gallery__dots { display: inline-flex; vertical-align: bottom; }
.gallery__dots { display: flex; gap: 8px; padding-bottom: 12px; }
.gallery__dots i { width: 28px; height: 4px; border-radius: 4px; background: var(--line); transition: background 0.4s, width 0.4s; }
.gallery__dots i.is-on { width: 44px; background: var(--grad); }
.gallery__track { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: flex-start; gap: 10vw; padding: calc(166px + 4vh) 14vw 3vh clamp(20px, 7vw, 120px); }
.gslide { position: relative; flex: none; width: min(64vw, calc((100vh - 368px) * 1.39)); }
/* feature number sits above its screenshot, never behind it */
.gslide__no { display: block; margin: 0 0 16px -2px; font-family: var(--en); font-weight: 700; font-size: clamp(44px, 4.6vw, 68px); line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px rgba(2, 132, 199, 0.5); }
.gslide .browser { box-shadow: 0 40px 90px -30px rgba(30, 58, 138, 0.45); }
.gslide__cap { position: absolute; right: -5vw; bottom: 64px; width: min(360px, 30vw); padding: 24px 26px; border-radius: 20px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(30, 58, 138, 0.4); }
.gslide__cap small { font-size: 10.5px; color: var(--violet); }
.gslide__cap h3 { font-size: 19px; margin: 4px 0 8px; }
.gslide__cap p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.gslide__cap .chips span { font-size: 11.5px; padding: 4px 11px; }

/* ================= v2: TimeLog features (centre stage + annotations) ================= */
.tlf { position: relative; z-index: 1; }
.tlf__pin { position: relative; height: 100vh; padding: 96px clamp(20px, 7vw, 120px) 30px; overflow: hidden; }
.tlf__head { position: relative; z-index: 3; }
.tlf__stage { position: absolute; inset: 0; }
.tlf__stage .phone { position: absolute; left: 50%; top: 54%; width: min(17vw, calc((100vh - 150px) * 0.45)); translate: -50% -50%; transition: transform 0.9s cubic-bezier(.2, .8, .2, 1), opacity 0.6s; }
.tlf__p1 { z-index: 2; } .tlf__p2 { z-index: 1; }
.tlf__p1 img { transition: opacity 0.6s; }
.tlf__p1 .tlf__b { position: absolute; left: var(--bz); top: var(--bz); width: calc(100% - 2 * var(--bz)); opacity: 0; }
.is-s0 .tlf__p1 { transform: translateX(-56%) rotate(-3deg); }
.is-s0 .tlf__p2 { transform: translateX(56%) rotate(3deg); }
.is-s1 .tlf__p1 { transform: none; } .is-s1 .tlf__p1 .tlf__b { opacity: 1; }
.is-s1 .tlf__p2 { transform: scale(0.85); opacity: 0; }
.is-s2 .tlf__p1, .is-s2 .tlf__p2 { transform: scale(0.8) translateY(40px); opacity: 0; pointer-events: none; }
.is-s2 .tlf__p1 .tlf__b { opacity: 1; }
.tlf__store { z-index: 5; position: absolute; left: 50%; top: 56%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; transform: scale(0.8); transition: opacity 0.6s 0.2s, transform 0.8s 0.2s cubic-bezier(.2, 1.4, .4, 1); pointer-events: none; }
.is-s2 .tlf__store { opacity: 1; transform: none; pointer-events: auto; }
.tlf__icon { width: 128px; height: 128px; border-radius: 30px; box-shadow: 0 30px 60px -20px rgba(15, 30, 61, 0.45); }
.tlf__store b { font-family: var(--en); font-size: 20px; }
.tlf__badge img { height: 58px; width: auto; transition: transform 0.3s; }
.tlf__badge:hover img { transform: scale(1.05); }
.note { position: absolute; width: min(300px, 24vw); display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.6s, box-shadow 0.4s; }
.note h3 { font-size: 16px; } .note p { font-size: 13px; color: var(--muted); }
.note small { font-size: 10px; color: var(--blue); }
.note::after { content: ""; position: absolute; top: 40px; width: 7vw; height: 0; border-top: 2px dashed #9CC8EE; }
.note::before { content: ""; position: absolute; top: 36px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.note--1 { left: 7vw; top: 34%; } .note--1::after { left: 100%; } .note--1::before { left: calc(100% + 7vw); }
.note--2 { right: 7vw; top: 30%; } .note--2::after { right: 100%; } .note--2::before { right: calc(100% + 7vw); }
.note--3 { right: 7vw; top: 62%; } .note--3::after { right: 100%; } .note--3::before { right: calc(100% + 7vw); }
.note.is-seen { opacity: 0.45; transform: none; }
.note.is-active { opacity: 1; transform: none; box-shadow: 0 24px 60px -20px rgba(2, 132, 199, 0.45); border-color: #9CC8EE; }

/* ================= v2: MyFMRadio day → night ================= */
.appcover--fm { transition: color 0.6s; }
.appcover__night { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at 70% 30%, rgba(76, 94, 180, 0.45), transparent 60%), linear-gradient(180deg, #050A1C, #0D1638 70%, #1A2455); }
.appcover--fm > * { position: relative; }
.appcover--fm .appcover__night { position: absolute; }
.appcover--fm.is-night { color: #fff; }
.appcover--fm.is-night .appcover__tag { color: rgba(226, 232, 255, 0.75); }
.appcover--fm.is-night .chips span { background: rgba(255, 255, 255, 0.08); border-color: rgba(165, 243, 252, 0.35); color: #E0F2FE; }
.appcover--fm.is-night .eyebrow { color: var(--cyan); }
.phone--theme .fm-night { position: absolute; left: var(--bz); top: var(--bz); width: calc(100% - 2 * var(--bz)); clip-path: circle(0% at 85% 8%); }
.theme-toggle { cursor: default; }
.theme-toggle__knob { background: #FDBA74; }
.theme-toggle__knob::after { background: #fff; }
.theme-toggle.is-night .theme-toggle__knob { background: #0F172A; }
.theme-toggle.is-night .theme-toggle__knob::after { transform: translateX(18px); background: #67E8F9; }
.theme-toggle__label { position: relative; display: grid; }
.theme-toggle__label b { grid-area: 1 / 1; transition: opacity 0.4s, transform 0.4s; }
.lbl-night { opacity: 0; transform: translateY(8px); }
.theme-toggle.is-night .lbl-day { opacity: 0; transform: translateY(-8px); }
.theme-toggle.is-night .lbl-night { opacity: 1; transform: none; }

/* ================= v2: AI③ vertical story line ================= */
.story__body { position: relative; max-width: 1180px; margin: 0 auto; }
.story__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--line); }
.story__line i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--blue), var(--violet)); transform-origin: 50% 0; transform: scaleY(0); }
.story__item { position: relative; display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; padding: 34px 0; }
.story__item--r .story__text { order: 3; } .story__item--r .story__node { order: 2; } .story__item--r .story__visual { order: 1; }
.story__text span { font-size: 11px; color: var(--blue); }
.story__text h3 { font-size: 26px; margin: 4px 0 10px; }
.story__text p { color: var(--muted); font-size: 15px; }
.story__node { justify-self: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--line); z-index: 1; transition: all 0.5s; }
.story__node.is-on { border-color: var(--blue); box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.15); }
.story .aflow { grid-template-columns: 1fr 1fr; }
.story .aflow__n { min-height: 0; padding: 20px; }
.story .aflow__n::after { display: none; }
.story .acompare { padding: 28px; }
.story .astats { gap: 12px; }
.story .astat { padding: 22px 16px; }
.story .astat b { font-size: 30px; }
.story .astat small { display: block; margin: 2px 0 0; }

/* ================= v3: click-to-zoom for screenshots ================= */
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4vh 4vw;
  background: rgba(8, 14, 32, 0.78); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; cursor: zoom-out; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6); transform: scale(0.94); transition: transform 0.45s cubic-bezier(.2, .8, .2, 1); }
.lightbox.is-open img { transform: none; }
.lightbox__hint { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; color: rgba(255, 255, 255, 0.7); font-size: 12px; letter-spacing: 0.1em; }
.zoom-tip { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(15, 30, 61, 0.72); backdrop-filter: blur(6px); opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.browser:hover .zoom-tip, .phone:hover .zoom-tip { opacity: 1; transform: none; }
/* short windows: keep the caption compact so the screenshot stays visible */
@media (max-height: 760px) {
  .gslide__cap { width: min(290px, 26vw); padding: 16px 18px; bottom: 58px; }
  .gslide__cap h3 { font-size: 15.5px; }
  .gslide__cap p { font-size: 12px; margin-bottom: 0; }
  .gslide__cap .chips { display: none; }
}

/* ================= v5: demo-data disclaimer under DBMS screenshots ================= */
.shot-note { margin-top: 12px; font-size: 11px; line-height: 1.6; color: #94A3B8; letter-spacing: 0.02em; }
.overview__right .shot-note { position: absolute; left: 0; right: 0; top: calc(100% + 26px); margin: 0; }
.gslide .shot-note { margin-top: 10px; max-width: 92%; }
.lightbox__note { position: absolute; left: 50%; bottom: 44px; translate: -50% 0; width: min(900px, 90vw); text-align: center; color: rgba(226, 232, 255, 0.72); font-size: 12px; line-height: 1.6; }

/* ================= v6: background music button (music notes) ================= */
.bgm { position: fixed; right: 26px; bottom: 94px; z-index: 55; width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer; padding: 10px;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: transform 0.3s, background 0.3s; }
.bgm:hover { transform: scale(1.06); }
.bgm svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bgm__notes { transform-origin: 24px 30px; }
.bgm__beam, .bgm__stem, .bgm__head { fill: #0284C7; transition: fill 0.3s; }
.bgm__head:last-of-type { fill: #7C3AED; }
.bgm__slash { stroke: #E11D48; stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 43; stroke-dashoffset: 43; transition: stroke-dashoffset 0.35s ease; }
/* playing: notes sway to the beat (104 BPM ≈ 0.577 s), little notes drift up */
.bgm.is-playing .bgm__notes { animation: bgm-sway 1.154s ease-in-out infinite; }
@keyframes bgm-sway { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-1.5px); } }
.bgm__float { position: absolute; left: 50%; top: 6px; font-size: 13px; line-height: 1; color: #22D3EE; opacity: 0; pointer-events: none; }
.bgm.is-playing .bgm__float--1 { animation: bgm-float 2.4s ease-out infinite; }
.bgm.is-playing .bgm__float--2 { animation: bgm-float 2.4s ease-out 1.2s infinite; color: #A78BFA; }
@keyframes bgm-float { 0% { transform: translate(-50%, 6px) scale(0.6); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(calc(-50% + 14px), -26px) scale(1); opacity: 0; } }
/* off or blocked by the browser: grey notes + red slash */
.bgm.is-off .bgm__beam, .bgm.is-off .bgm__stem, .bgm.is-off .bgm__head { fill: #94A3B8; }
.bgm.is-off .bgm__slash { stroke-dashoffset: 0; }
body.is-night .bgm { background: rgba(255, 255, 255, 0.14); }
body.is-night .bgm:not(.is-off) .bgm__beam, body.is-night .bgm:not(.is-off) .bgm__stem, body.is-night .bgm:not(.is-off) .bgm__head:first-of-type { fill: #67E8F9; }
@media (prefers-reduced-motion: reduce) { .bgm__notes, .bgm__float { animation: none !important; } }