/* Sleep Music Alarm: トップ、規約、プライバシー、お問い合わせで共有するスタイル */

:root {
  --bg: #f7f4ee;
  --card: #fdfbf7;
  --raised: #efe9df;
  --line: rgba(31, 27, 22, .1);
  --txt: #1f1b16;
  --txt2: #5e554a;
  --txt3: #6f665a;
  --accent: #c63e36;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hdr: 64px;
  --font: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
html:lang(en) { --font: 'Instrument Sans', system-ui, -apple-system, sans-serif; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
html:lang(en) body { line-height: 1.55; }
html:lang(ja) body { word-break: auto-phrase; }
h1, h2, h3, figcaption, .hero-sub, .sec-sub { text-wrap: pretty; }

h1, h2, h3 { font-weight: 500; font-feature-settings: "palt"; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.ico {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* 時刻: このサイトのシグネチャー */
.clock { font-family: var(--mono); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ヘッダー */
.hdr {
  position: sticky; top: 0; z-index: 300;
  height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hdr-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  color: var(--txt); text-decoration: none;
  white-space: nowrap;
}
.hdr-logo img { width: 28px; height: 28px; border-radius: 6px; }
.hdr-nav { display: flex; align-items: center; gap: 24px; }
.hdr-nav > a {
  font-size: 14px; color: var(--txt2); text-decoration: none;
  transition: color .15s var(--ease);
}
.hdr-nav > a:hover { color: var(--txt); }
.lang-sw { display: flex; gap: 4px; }
.lang-sw a {
  display: flex; align-items: center;
  height: 32px; padding: 0 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 12px;
  color: var(--txt3); text-decoration: none;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.lang-sw a:hover { color: var(--txt); }
.lang-sw a.on { color: var(--txt); background: var(--raised); }

/* App Store バッジ */
.dl-btn { display: inline-block; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.dl-btn:hover { opacity: .85; }
.dl-btn:active { transform: scale(.98); }
.dl-btn img { height: 48px; width: auto; }

/* 実機の枠: 画面の下を切った形。比率で指定するので、どの幅でも角の丸みが揃う */
.phone {
  padding: 3% 3% 0;
  background: #0d0c0b;
  border-radius: 15% 15% 0 0 / 9.8% 9.8% 0 0;
  box-shadow: 0 0 0 1px rgba(31, 27, 22, .16), 0 8px 24px rgba(31, 27, 22, .12);
  clip-path: inset(-48px -48px 0 -48px);
}
.phone img {
  width: 100%; height: auto;
  aspect-ratio: 640 / 1024;
  object-fit: cover;
  border-radius: 12.8% 12.8% 0 0 / 8% 8% 0 0;
}

/* ヒーロー */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px; align-items: center;
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 0;
  overflow: hidden;
}
.hero-copy { padding-bottom: 64px; }
.hero-copy, .hero-visual { animation: rise .4s var(--ease) both; }
.hero-visual { animation-delay: 60ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.hero-icon { width: 56px; height: 56px; border-radius: 12px; margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.2;
  margin-bottom: 20px;
}
html:lang(en) .hero h1 { font-size: clamp(40px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.025em; }
.hero-sub {
  max-width: 28em;
  font-size: 18px; line-height: 1.75;
  color: var(--txt2);
  margin-bottom: 32px;
}
html:lang(en) .hero-sub { line-height: 1.55; }
.hero-proof { margin-top: 16px; font-size: 13px; color: var(--txt3); }

.hero-visual { align-self: end; display: flex; justify-content: flex-end; gap: 24px; }
.hero-visual figure { flex: 1; min-width: 0; max-width: 304px; }
.hero-visual figcaption,
.shot figcaption { display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; color: var(--txt2); }
.hero-visual figcaption { flex-direction: row; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.hero-visual .clock { font-size: 20px; color: var(--txt); }
.hero-visual figure:last-child .clock { color: var(--accent); }
.hero-visual .phone { box-shadow: 0 0 0 1px rgba(31, 27, 22, .16), 0 16px 48px rgba(31, 27, 22, .16); }

/* セクション共通 */
.sec { padding: 96px 32px; }
.sec-raised { background: var(--raised); }
.sec-line { border-top: 1px solid var(--line); }
.sec-tight { padding-top: 0; }
.sec-inner { width: 100%; max-width: 1136px; margin: 0 auto; }
.sec-head { margin-bottom: 40px; }
.sec-head:last-child { margin-bottom: 0; }
.sec-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; }
html:lang(en) .sec-title { line-height: 1.15; letter-spacing: -.02em; }
.sec-sub { max-width: 40em; margin-top: 12px; color: var(--txt2); }

/* 機能 */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fc { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.fc .ico { color: var(--txt2); margin-bottom: 12px; }
.fc h3 { font-size: 16px; line-height: 1.5; }
.fc p { margin-top: 8px; font-size: 14px; color: var(--txt2); }
.fc ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.fc li { font-size: 14px; line-height: 1.6; color: var(--txt2); }
.fc.wide { grid-column: span 2; }
.fc.wide .fc-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.fc.wide .fc-body ul { margin-top: 0; }
.fc ul.cols { display: block; columns: 2; column-gap: 24px; }
.fc ul.cols li { break-inside: avoid; margin-bottom: 4px; }

/* 実機画面の一覧 */
.shots {
  display: flex; justify-content: safe center; gap: 24px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 4px 4px 32px; margin: 0 -4px -32px;
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 200px; scroll-snap-align: center; }
.shot figcaption { margin-top: 12px; }
.shot .clock { font-size: 14px; color: var(--txt); }
.shot .clock.now { color: #b23730; }
.shots-note { margin-top: 24px; font-size: 13px; line-height: 1.7; color: var(--txt2); text-wrap: pretty; }

/* 信頼性 */
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.rel-item { display: flex; gap: 12px; }
.rel-item .ico { color: var(--txt2); margin-top: 4px; }
.rel-item h3 { font-size: 16px; line-height: 1.6; }
.rel-item p { margin-top: 4px; font-size: 14px; color: var(--txt2); }

/* プレミアム */
.prem {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.prem-l, .prem-r { padding: 40px; }
.prem-r { display: flex; align-items: center; border-left: 1px solid var(--line); }
.prem .sec-title { word-break: keep-all; }
.prem-label { font-size: 13px; color: var(--txt3); margin-bottom: 8px; }
.prem-desc { margin-top: 12px; color: var(--txt2); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 24px 0; }
.price-big { font-size: 48px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.price-per { font-size: 14px; color: var(--txt3); }
.prem-items { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.prem-items li { display: flex; gap: 12px; }
.prem-items .ico { color: var(--txt2); margin-top: 4px; }

/* FAQ */
.guide-entry { width: 100%; max-width: 1200px; margin: 32px auto; padding: 0 32px; font-size: 14px; color: var(--txt2); }
.guide-entry a, .fa a { color: var(--accent); text-underline-offset: 4px; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.faq-list { border-bottom: 1px solid var(--line); }
.fi { border-top: 1px solid var(--line); }
.fq {
  width: 100%; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0;
  background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--txt); text-align: left;
}
.fq .ico { color: var(--txt3); transition: transform .2s var(--ease); }
.fi.open .fq .ico { transform: rotate(180deg); }
.fa { display: none; padding: 0 32px 20px 0; font-size: 14px; color: var(--txt2); }
.fi.open .fa { display: block; animation: rise .2s var(--ease) both; }

/* CTA */
.cta-sec { padding: 96px 32px; text-align: center; border-top: 1px solid var(--line); }
.cta-sec .clock { display: block; font-size: 56px; line-height: 1; color: var(--accent); margin-bottom: 20px; }
.cta-sec p { margin: 12px 0 32px; color: var(--txt2); }

/* フッター */
.ftr {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--txt3);
}
.ftr nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ftr a { text-decoration: none; transition: color .15s var(--ease); }
.ftr a:hover { color: var(--txt); }
.ftr-note { flex-basis: 100%; font-size: 12px; }

/* 規約とプライバシー */
.legal-wrap, .contact-wrap { width: 100%; margin: 0 auto; padding: 64px 24px 96px; }
.legal-wrap { max-width: 720px; }
.legal-wrap h1, .contact-wrap h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.3; margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--txt3); margin-bottom: 40px; }
.legal-wrap > p { color: var(--txt2); margin-bottom: 32px; }
.legal-section { margin-bottom: 40px; }
.legal-section h2 { font-size: 18px; line-height: 1.5; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.legal-section p { font-size: 14px; line-height: 1.8; color: var(--txt2); margin-bottom: 12px; }
.legal-section ol, .legal-section ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; }
.legal-section li { font-size: 14px; line-height: 1.8; color: var(--txt2); }
.legal-section ul.sub { margin-top: 8px; padding-left: 16px; gap: 4px; }
.legal-section ul.sub li { font-size: 13px; }
.legal-section a, .form-note a { color: var(--accent); text-decoration: none; }
.legal-section a:hover, .form-note a:hover { text-decoration: underline; }

/* お問い合わせ */
.contact-wrap { max-width: 560px; flex: 1; }
.contact-desc { color: var(--txt2); margin-bottom: 40px; }
.success-box { padding: 24px; margin-bottom: 32px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  font: inherit; font-size: 14px; color: var(--txt);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  outline: none;
  transition: border-color .15s var(--ease);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--txt3); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  display: block; width: 100%; height: 48px;
  font: inherit; font-weight: 500; color: #fff;
  background: var(--accent); border: none; border-radius: 8px; cursor: pointer;
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.btn-submit:hover { background: #b23730; }
.btn-submit:active { transform: scale(.98); }
.form-note { margin-top: 16px; font-size: 12px; line-height: 1.7; color: var(--txt3); text-align: center; }

/* レスポンシブ */
@media (max-width: 960px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rel-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .prem { grid-template-columns: minmax(0, 1fr); }
  .prem-r { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; gap: 0; }
  .hero-copy { padding-bottom: 40px; }
  .hero-visual { justify-content: flex-start; gap: 16px; }
}
@media (max-width: 640px) {
  :root { --hdr: 56px; }
  .hdr { padding: 0 20px; }
  .hdr-nav > a[href^="#"] { display: none; }
  .hdr-nav .guide-nav-link { display: none; }
  .guide-entry { padding: 0 20px; }
  .hero { padding: 32px 20px 0; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 16px; }
  .hero-sub br { display: none; }
  .hero-visual figcaption { flex-direction: column; gap: 0; margin-bottom: 8px; }
  .hero-visual .clock { font-size: 18px; }
  .sec { padding: 64px 20px; }
  .feat-grid, .rel-grid { grid-template-columns: minmax(0, 1fr); }
  .fc.wide { grid-column: span 1; }
  .fc.wide .fc-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fc ul.cols { columns: 1; }
  .prem-l, .prem-r { padding: 24px; }
  .shot { width: 184px; }
  .cta-sec { padding: 64px 20px; }
  .ftr { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
