:root {
  --ink: #f4f5f0;
  --muted: #a8ada4;
  --paper: #0c0e0d;
  --panel: #151816;
  --panel-2: #1d211e;
  --lime: #c7f34a;
  --lime-dark: #8ab51c;
  --line: rgba(255,255,255,.11);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .03em; }
.brand b { color: var(--lime); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--lime); color: #111; font-weight: 900; font-size: 12px; transform: rotate(-3deg); }
.header-link { color: var(--muted); text-decoration: none; font-size: 14px; }

main { overflow: hidden; }
.hero {
  width: min(1120px, calc(100% - 40px));
  min-height: 720px;
  margin: auto;
  padding: 70px 0 90px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
}
.hero > * { min-width: 0; }
.eyebrow { margin: 0 0 10px; color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin: 0 0 24px; font-size: clamp(42px, 6vw, 76px); line-height: 1.07; letter-spacing: -.06em; }
.hero-copy > p:last-child { color: var(--muted); font-size: 18px; }

.timer-card {
  position: relative;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, #1c211d, #111411);
  box-shadow: 0 30px 80px rgba(0,0,0,.32);
}
.timer-card::before { content: ""; position: absolute; inset: -80px -100px auto auto; width: 240px; height: 240px; background: var(--lime); border-radius: 50%; filter: blur(120px); opacity: .14; pointer-events: none; }
.set-row { display: flex; justify-content: center; align-items: baseline; gap: 8px; color: var(--muted); font-size: 13px; }
.set-row strong { color: var(--lime); font-size: 34px; line-height: 1; }
.timer-display { margin: 18px 0 20px; text-align: center; font-family: Arial, Helvetica, sans-serif; font-size: clamp(64px, 11vw, 108px); font-weight: 800; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.presets button, .set-actions button, .body-parts button { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--ink); cursor: pointer; }
.presets button.is-selected { border-color: var(--lime); color: var(--lime); background: rgba(199,243,74,.08); }
.primary-action { width: 100%; min-height: 68px; border: 0; border-radius: 16px; background: var(--lime); color: #151713; font-size: 20px; font-weight: 900; cursor: pointer; box-shadow: 0 10px 30px rgba(199,243,74,.15); }
.primary-action:active { transform: translateY(1px); }
.set-actions { display: grid; grid-template-columns: 54px 1fr 54px; gap: 10px; margin-top: 12px; }

.quick-record, .placeholder-content { width: min(960px, calc(100% - 40px)); margin: 0 auto 110px; }
.quick-record { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; padding: 50px; border-radius: var(--radius); background: var(--panel); }
.quick-record h2, .placeholder-content h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.2; letter-spacing: -.04em; }
.body-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.body-parts button { font-weight: 700; }
.record-note { grid-column: 2; margin: -30px 0 0; color: var(--muted); font-size: 12px; }
.placeholder-content { min-height: 360px; padding: 80px 0; border-top: 1px solid var(--line); }
.placeholder-content p:last-child { max-width: 620px; color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header nav { display: flex; gap: 26px; }
.ad-wrap { width: min(970px, calc(100% - 28px)); margin-inline: auto; overflow: hidden; text-align: center; }
.ad-wrap:empty { display: none; }
.ad-wrap[hidden] { display: none; }
.ad-wrap:not(:empty) { min-height: 90px; margin-block: 20px; }
.ad-after-timer { margin-bottom: 54px !important; }
.ad-after-history { margin-top: -54px !important; margin-bottom: 90px !important; }
.ad-article { margin-block: 30px 60px !important; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--muted); font-size: 12px; }
.hero-points li::before { content: "✓"; margin-right: 6px; color: var(--lime); font-weight: 900; }
.custom-time { margin: -6px 0 14px; color: var(--muted); font-size: 12px; }
.custom-time summary { width: max-content; margin: auto; cursor: pointer; }
.custom-time > div { display: flex; justify-content: center; align-items: end; gap: 8px; margin: 12px 0; }
.custom-time label { display: grid; gap: 3px; text-align: center; }
.custom-time input { width: 64px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); text-align: center; font: inherit; font-size: 16px; }
.custom-time button { height: 42px; border: 0; border-radius: 10px; padding: 0 18px; background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; }
.timer-options { display: flex; justify-content: space-between; align-items: center; margin: 12px 2px 0; color: var(--muted); font-size: 12px; }
.timer-options button { border: 0; background: none; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sound-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.sound-toggle input { accent-color: var(--lime); }
.timer-card.is-completed { border-color: var(--lime); animation: timerGlow .8s ease-in-out 3; }
.timer-card.is-completed .timer-display { color: var(--lime); }
@keyframes timerGlow { 50% { box-shadow: 0 0 0 7px rgba(199,243,74,.13), 0 30px 80px rgba(0,0,0,.32); } }

.quick-record { margin-bottom: 34px; }
.record-heading > p:last-child { color: var(--muted); font-size: 14px; }
.body-parts button { transition: background .15s, color .15s, border-color .15s, transform .15s; }
.body-parts button:active { transform: scale(.97); }
.body-parts button.is-recorded { background: var(--lime); color: #111; border-color: var(--lime); }
.record-feedback { grid-column: 2; min-height: 1.6em; margin: -28px 0 0; color: var(--lime); font-size: 13px; font-weight: 700; }

.history-section { width: min(960px, calc(100% - 40px)); margin: 0 auto 90px; padding: 32px 50px 38px; border: 1px solid var(--line); border-radius: var(--radius); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.text-button { border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 12px; }
.empty-state { display: grid; place-items: center; min-height: 120px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); align-self: end; }
.empty-state span { align-self: start; font-size: 12px; }
.history-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.history-card { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 15px; background: var(--panel); }
.history-card .part-badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: rgba(199,243,74,.1); color: var(--lime); font-weight: 900; }
.history-card strong, .history-card span { display: block; }
.history-card span { color: var(--muted); font-size: 12px; }
.history-card em { color: var(--lime); font-style: normal; font-size: 13px; font-weight: 700; }
.medical-note { margin: 20px 0 0; color: var(--muted); font-size: 11px; }

.ios-cta { width: min(960px, calc(100% - 40px)); margin: 0 auto 120px; padding: 46px 52px; border-radius: 28px; background: var(--lime); color: #131512; }
.inline-cta { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 44px; }
.ios-cta .eyebrow { color: #405500; }
.ios-cta h2 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 42px); line-height: 1.2; letter-spacing: -.04em; }
.ios-cta p:not(.eyebrow) { margin: 0 0 22px; }
.phone-pulse { display: grid; place-items: center; width: 150px; height: 220px; border: 6px solid #111; border-radius: 28px; transform: rotate(-5deg); background: #171a17; box-shadow: 12px 14px 0 rgba(17,17,17,.2); }
.phone-pulse span { color: var(--lime); font: 900 34px ui-monospace, monospace; letter-spacing: -.08em; }
.app-store-link { display: inline-flex; gap: 10px; align-items: center; min-height: 50px; padding: 0 20px; border-radius: 12px; background: #111; color: #fff; text-decoration: none; font-weight: 800; }

.seo-content { width: min(960px, calc(100% - 40px)); margin: auto; }
.article-intro { max-width: 760px; margin-bottom: 90px; }
.article-intro h2 { margin: 0 0 24px; font-size: clamp(38px, 6vw, 70px); line-height: 1.1; letter-spacing: -.055em; }
.article-intro > p:last-child { max-width: 650px; color: var(--muted); font-size: 17px; }
.seo-content > section { display: grid; grid-template-columns: 100px 1fr; gap: 40px; padding: 80px 0; border-top: 1px solid var(--line); }
.number { color: var(--lime); font: 800 14px ui-monospace, monospace; }
.article-body h3 { margin: 0 0 24px; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; letter-spacing: -.04em; }
.article-body > p { color: #c5c9c1; }
.rest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 32px 0; }
.rest-grid > div, .schedule-grid > div { padding: 24px; border-radius: 18px; background: var(--panel); }
.rest-grid span { color: var(--lime); font-size: 12px; font-weight: 800; }
.rest-grid strong, .schedule-grid strong { display: block; margin: 5px 0 12px; font-size: 22px; }
.rest-grid p, .schedule-grid p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.rest-grid button { border: 0; background: none; color: var(--lime); padding: 0; cursor: pointer; font-weight: 700; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 28px 0; }
.schedule-grid b { color: var(--lime); font-size: 13px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 22px 5px; cursor: pointer; font-weight: 700; }
.faq details p { margin: -6px 5px 24px; color: var(--muted); }

footer { width: min(1120px, calc(100% - 40px)); margin: 100px auto 0; padding: 60px 0 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 40px; color: var(--muted); }
footer p { font-size: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer nav a { color: var(--muted); font-size: 12px; }
footer small { grid-column: 1 / -1; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 20; transform: translate(-50%, 20px); width: max-content; max-width: calc(100% - 28px); padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: #252a26; color: var(--ink); font-size: 13px; box-shadow: 0 10px 40px #000; opacity: 0; pointer-events: none; transition: .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.context-cta { position: fixed; top: 92px; right: 20px; bottom: auto; z-index: 30; width: min(420px, calc(100% - 40px)); max-height: calc(100dvh - 112px); overflow-y: auto; padding: 28px; border: 1px solid rgba(199,243,74,.35); border-radius: 22px; background: #1c211d; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.context-cta[hidden] { display: none; }
.context-cta h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; }
.context-cta > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.cta-close { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }

@media (hover:hover) {
  .presets button:hover, .set-actions button:hover, .body-parts button:hover { border-color: rgba(199,243,74,.6); }
  .header-link:hover { color: var(--ink); }
}
@media (max-width: 760px) {
  .site-header { width: min(100% - 28px, 1180px); height: 66px; }
  .brand > span:last-child { display: none; }
  .hero { width: min(100% - 28px, 1120px); min-height: auto; padding: 48px 0 70px; grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: 30px; overflow-wrap: anywhere; }
  .timer-card { width: 100%; min-width: 0; overflow: hidden; padding: 24px 16px; border-radius: 24px; }
  .timer-display { font-size: clamp(62px, 21vw, 90px); }
  .presets { gap: 5px; }
  .presets button { min-width: 0; padding: 0; font-size: 12px; }
  .quick-record { width: min(100% - 28px, 960px); margin-bottom: 70px; grid-template-columns: 1fr; gap: 28px; padding: 30px 20px; }
  .body-parts { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .body-parts button { font-size: 13px; padding: 0; }
  .record-note { grid-column: 1; margin: -12px 0 0; }
  .placeholder-content { width: min(100% - 28px, 960px); margin-bottom: 50px; }
  .site-header nav { gap: 14px; }
  .site-header nav .header-link:last-child { display: none; }
  .hero-points { justify-content: center; }
  .history-section { width: min(100% - 28px, 960px); padding: 26px 18px; margin-bottom: 70px; }
  .section-heading { align-items: start; }
  .history-list { grid-template-columns: 1fr; }
  .record-feedback { grid-column: 1; margin: -12px 0 0; }
  .inline-cta { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .phone-pulse { display: none; }
  .seo-content { width: min(100% - 28px, 960px); }
  .article-intro { margin-bottom: 60px; }
  .seo-content > section { grid-template-columns: 1fr; gap: 14px; padding: 60px 0; }
  .rest-grid, .schedule-grid { grid-template-columns: 1fr; }
  footer { width: min(100% - 28px, 1120px); grid-template-columns: 1fr; }
  footer small { grid-column: 1; }
  .context-cta { top: 78px; right: 14px; bottom: auto; width: calc(100% - 28px); max-height: calc(100dvh - 92px); padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
