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

:root {
  --page-width: 393px; /* charmmate.jp と同じ、PCでもスマホ幅を基準に表示 */
  --navy:       #0d1f47;
  --navy-deep:  #081533;
  --navy-card:  #16295c;
  --gold:       #f2cb1f;
  --blue:       #0d3dc0;
  --red:        #e2001b;
  --light-bg:   #eef3fc;
  --white:      #FAF9F5; /* 現行サイトの背景色（--c_white-1）に統一 */
  --cream:      #FAF9F5;
  --text-dark:  #0d1f47;
  --text-gray:  #5a6b8c;
  --text-mute:  #8492ad;
  --gray-bar:   #d9dee8;
  --amazon:     #fdba18;
  --card-line:  #e1e7f4;
  --font-jp:    'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-en:    'Dosis', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  background-color: var(--navy-deep);
  background-image:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><circle cx="30" cy="46" r="1.5" fill="%23ffffff" opacity=".75"/><circle cx="150" cy="20" r="1.2" fill="%237a9bdc" opacity=".6"/><circle cx="260" cy="60" r="1.6" fill="%23ffffff" opacity=".65"/><circle cx="344" cy="24" r="1.3" fill="%237a9bdc" opacity=".65"/><circle cx="96" cy="130" r="1.4" fill="%237a9bdc" opacity=".6"/><circle cx="200" cy="150" r="1.3" fill="%23ffffff" opacity=".6"/><circle cx="320" cy="170" r="1.5" fill="%23ffffff" opacity=".65"/><circle cx="50" cy="230" r="1.3" fill="%237a9bdc" opacity=".6"/><circle cx="250" cy="260" r="1.4" fill="%237a9bdc" opacity=".6"/><circle cx="360" cy="290" r="1.3" fill="%23ffffff" opacity=".55"/><circle cx="140" cy="320" r="1.6" fill="%23ffffff" opacity=".65"/><circle cx="230" cy="370" r="1.3" fill="%237a9bdc" opacity=".55"/><path d="M210 90 C211 95 211 95 216 96 C211 97 211 97 210 102 C209 97 209 97 204 96 C209 95 209 95 210 90Z" fill="%23ffffff" opacity=".9"/><path d="M80 300 C81 305 81 305 86 306 C81 307 81 307 80 312 C79 307 79 307 74 306 C79 305 79 305 80 300Z" fill="%23ffffff" opacity=".85"/><path d="M300 340 C301 345 301 345 306 346 C301 347 301 347 300 352 C299 347 299 347 294 346 C299 345 299 345 300 340Z" fill="%23ffffff" opacity=".85"/></svg>'),
    radial-gradient(ellipse at center, #4a6bb0 0%, #253f7f 45%, #0f2048 75%);
  background-repeat: repeat, no-repeat;
  background-position: center top, center center;
  background-size: 400px 400px, 100% 100%;
  background-attachment: fixed, fixed;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

/* 現行サイト(#top-page)と同じく、PC幅でも393px固定・中央寄せでスマホ表示を基準にする */
.wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  background: var(--cream);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.num { font-family: var(--font-en); }

img { max-width: 100%; display: block; }

.center { text-align: center; }

/* ── shared type ─────────────────────────── */
.eyebrow-badge {
  display: inline-flex; align-items: center; align-self: center; gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  font-size: 12px; letter-spacing: .04em;
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 18px;
}
.h2 {
  font-size: 26px; font-weight: 700; line-height: 1.5; letter-spacing: .02em;
  color: var(--navy); text-align: center; margin-bottom: 20px;
}
.h2 .accent { color: var(--blue); }
.section-pad { padding: 48px 20px; }

/* ── P1 HERO（写真を背景いっぱいに敷き、上にテキストを乗せる） ─── */
.hero {
  position: relative;
  background: #050e26 url('../images/hero-product-photo.jpg?v=20261109') center top / cover no-repeat;
  color: var(--white);
  padding: 48px 20px 46px;
  text-align: center;
  min-height: 880px;
  display: flex;
  flex-direction: column;
}
.logo-lockup { margin-bottom: 6px; }
.logo-img { display: block; width: 300px; max-width: 100%; height: auto; margin: 0 auto 12px; }
.logo-sub-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.logo-sub {
  font-size: 17px; letter-spacing: .18em; color: rgba(255,255,255,.75);
}
.oyasumi-badge { width: 56px; height: 56px; flex: none; }
.hero h1 {
  font-size: 26px; line-height: 1.5; font-weight: 700; margin: 0;
}
.hero h1 .line2 { color: var(--gold); font-weight: 900; display: block; font-size: 38px; }
.hero-sub {
  font-size: 24px; font-weight: 700; line-height: 1.6; margin-bottom: auto; color: var(--white);
}
.hero-caption {
  font-size: 24px; font-weight: 700; line-height: 1.6; color: var(--white);
  max-width: 300px; margin: 26px auto 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.hero-caption .accent-gold { color: var(--gold); }

/* ── COLLAB CARD ─────────────────────────── */
.collab { background: #1d4875; padding: 0 20px 40px; text-align: center; }

/* 共同研究カード・教授カード（背景の濃紺の上に真っ白カード） */
.research-card, .professor-card {
  background: #ffffff; border-radius: 18px; padding: 28px 22px;
  margin-bottom: 20px; text-align: left;
}
.research-card { text-align: center; }

.collab-logos { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; }
.pulsync-mark { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.pulsync-ring { height: 38px; width: auto; display: block; }
.pulsync-text { font-family: var(--font-jp); font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.collab-x { color: var(--text-mute); font-size: 24px; }
.meiji-logo { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto; }
.ryukyu-logo { height: 48px; width: auto; display: block; margin: 0 auto; }
.collab-tag { font-size: 20px; font-weight: 700; color: var(--red); margin: 0; }

.prof-row { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.prof-photo { width: 50%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; flex: none; }
.prof-photo img { width: 100%; height: 100%; object-fit: cover; }
.prof-name { font-size: 14px; font-weight: 500; color: var(--blue); line-height: 1.5; margin-bottom: 4px; }
.prof-name strong { font-size: clamp(14px, 4.5vw, 17px); color: var(--navy); }
.prof-quote { font-size: 16px; font-weight: 500; color: var(--text-gray); line-height: 1.85; margin-top: 8px; }
.collab .btn-note { color: rgba(255,255,255,.65); }

.btn-amazon {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--amazon); color: var(--navy-deep);
  font-size: 18px; font-weight: 700; letter-spacing: .05em;
  padding: 19px 30px; border-radius: 999px;
  text-decoration: none; width: 100%; max-width: 333px;
}
.btn-amazon svg { flex: none; }
.btn-note { font-size: 14px; color: var(--text-mute); margin-top: 10px; }
/* Amazon公式「こちらで提供中」バッジ。単独表示・余白確保（Amazonブランドガイドライン準拠） */
.amazon-badge-wrap { margin: 0 auto 18px; }
.amazon-badge { width: 120px; height: auto; margin: 0 auto; }
.amazon-badge--wht, .amazon-badge--navy { width: 200px; }

/* ── BRIDGE（写真を背景いっぱいに敷く） ───────────────── */
.bridge {
  position: relative;
  background:
    linear-gradient(to bottom, rgba(5,10,25,0) 38%, rgba(5,10,25,.88) 100%),
    url('../images/bridge-nightstand-photo.webp?v=20261109') center / cover no-repeat;
  padding: 40px 20px 48px;
  min-height: 440px;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-align: center; color: var(--white);
}
.bridge p { font-size: 24px; font-weight: 700; line-height: 1.6; text-shadow: 0 2px 10px rgba(0,0,0,.4); }

/* ── STATS ───────────────────────────────── */
.stats { background: var(--light-bg); padding: 48px 20px; }
.stats .h2 { font-size: clamp(20px, 6.4vw, 25px); letter-spacing: 0; }
.stats .h2 span { display: inline-block; }
.stat-card {
  background: #ffffff; border-radius: 16px; padding: 22px 20px;
  margin-bottom: 22px;
}
.stat-card-title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bar-label { width: 70px; flex: none; font-size: 12px; color: var(--text-gray); }
.bar-track { flex: 1; height: 20px; background: transparent; position: relative; }
.bar-fill { height: 20px; border-radius: 4px; background: var(--gray-bar); }
.bar-fill.on { background: var(--blue); }
.bar-value { width: 62px; flex: none; font-size: 12px; font-weight: 700; color: var(--text-dark); text-align: right; }
.bar-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-mute); padding-left: 80px; margin-top: 2px; }
.stat-source { font-size: 10px; color: var(--text-mute); margin-top: 10px; }
.stats-sub { font-size: 26px; font-weight: 700; color: var(--navy); text-align: center; margin: 26px 0 22px; line-height: 1.6; }
.hosp-icon { width: 96px; margin: 0 auto 20px; }
.hosp-icon img { width: 100%; height: auto; display: block; }
.hosp-text { font-size: 18px; line-height: 1.9; color: var(--text-gray); text-align: left; }

/* ── ILLUSTRATION CARD ───────────────────── */
.illu-card { background: var(--navy) url('../images/starry-bg.jpg') center top / cover no-repeat; color: var(--white); padding: 40px 20px 0; text-align: center; }
.illu-card p { font-size: clamp(18px, 6.2vw, 24px); font-weight: 700; line-height: 1.5; margin-bottom: 20px; }
.illu-card p span { display: inline-block; }
.illu-photo { max-width: 240px; margin: 0 auto; border-radius: 16px 16px 0 0; overflow: hidden; }

.relax-block { background: var(--light-bg); padding: 40px 20px; text-align: center; }
.relax-block p { font-size: 18px; color: var(--text-gray); line-height: 1.9; }
.arrow-down { margin: 28px auto 24px; width: 22px; height: 34px; opacity: .5; }
.relax-photo {
  background: url('../images/relax-photo-bg.jpg?v=20261109') center top / cover no-repeat;
  min-height: 420px; border-radius: 16px; overflow: hidden;
  padding: 28px 20px 0; text-align: center;
  display: flex; flex-direction: column;
}
.relax-photo p.relax-cta { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.5; text-shadow: 0 0 6px rgba(255,255,255,1), 0 0 12px rgba(255,255,255,.85), 0 0 20px rgba(255,255,255,.6); }

/* ── RESEARCH INTRO ──────────────────────── */
.research { background: var(--light-bg); padding: 48px 20px; }
.research .h2 { margin-bottom: 26px; }
.overview-card { background: #ffffff; border-radius: 16px; padding: 4px 20px; }
.ov-row { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--card-line); align-items: flex-start; }
.ov-row:last-child { border-bottom: none; }
.ov-row svg { flex: none; margin-top: 2px; }
.ov-label { font-size: 16px; color: var(--text-mute); margin-bottom: 3px; }
.ov-value { font-size: 16px; color: var(--navy); font-weight: 700; line-height: 1.6; }

/* ── VOICES ──────────────────────────────── */
.voices { background: var(--light-bg); padding: 48px 20px; }
.voices-title { font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 18px; text-align: center; }

.voice-bubbles { margin-top: 18px; }
.voice-bubble {
  display: flex; gap: 14px; align-items: flex-start;
  background: #ffffff; border: 1px solid var(--card-line); border-radius: 14px;
  padding: 16px; margin-bottom: 12px;
}
.voice-bubble img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; }
.voice-bubble p { font-size: 16px; color: var(--text-dark); line-height: 1.7; }
.voice-bubble .who { font-size: 16px; color: var(--text-mute); margin-top: 8px; }
.voices-note { font-size: 14px; color: var(--text-mute); text-align: center; margin-top: 18px; line-height: 1.8; }

/* ── P4 INTRO ────────────────────────────── */
.p4-intro { background: var(--light-bg); padding: 48px 20px 1px; text-align: center; }
.p4-intro .h2 { margin-bottom: 14px; }
.p4-intro-copy { font-size: 18px; color: var(--text-gray); line-height: 1.9; margin-bottom: 26px; }
.p4-photo { max-width: 200px; margin: 0 auto 8px; }
.p4-photo img { filter: drop-shadow(0 14px 22px rgba(0,0,0,.28)); }

/* ── STEPS ───────────────────────────────── */
.steps { background: var(--light-bg); padding: 0 20px 48px; }
.steps-heading { font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.5; text-align: center; margin-bottom: 20px; }
.step-card { background: #ffffff; border: 1px solid var(--card-line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.step-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--white);
  font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none;
}
.step-card-title { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.step-card-photo img { width: 100%; height: auto; display: block; border-radius: 10px; }

.rhythm-callout { margin-top: 14px; background: #e5e081; border-radius: 16px; padding: 18px 20px; text-align: center; }
.rhythm-badge { display: inline-block; background: #ffffff; color: var(--navy); font-weight: 700; font-size: 18px; border-radius: 999px; padding: 8px 20px; margin-bottom: 10px; }
.rhythm-callout p { font-size: 16px; color: var(--navy); line-height: 1.7; font-weight: 500; }

.timer-card { margin-top: 14px; background: #ffffff; border: 1px solid var(--card-line); border-radius: 16px; padding: 22px 18px; text-align: center; }
.timer-title { display: inline-block; background: var(--navy); color: var(--white); font-size: 18px; font-weight: 700; border-radius: 999px; padding: 8px 20px; margin-bottom: 14px; }
.timer-text { font-size: 16px; color: var(--navy); line-height: 1.8; font-weight: 500; text-align: left; }
.timer-card img { width: 100%; height: auto; margin-top: 16px; }

/* ── FEATURES ────────────────────────────── */
.features { background: var(--light-bg); padding: 48px 20px; }
.feat-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: #ffffff; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px;
}
.feat-icon {
  width: 58px; height: 58px; border-radius: 50%; background: var(--light-bg);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.feat-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.feat-desc { font-size: 16px; color: var(--text-mute); }

/* ── SPECS ───────────────────────────────── */
.specs { background: var(--light-bg); padding: 8px 20px 48px; }
.specs-title { font-size: 20px; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 18px; }
.specs-table { width: 100%; border-collapse: collapse; background: #ffffff; border-radius: 14px; overflow: hidden; }
.specs-table th, .specs-table td { padding: 14px 18px; text-align: left; font-size: 16px; border-bottom: 1px solid var(--white); }
.specs-table th { color: var(--text-mute); font-weight: 500; width: 34%; }
.specs-table td { color: var(--navy); font-weight: 700; }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }
.specs-note { font-size: 14px; color: var(--text-mute); text-align: center; margin-top: 16px; line-height: 1.9; }
.specs-photo { max-width: 120px; margin: 22px auto 0; }

/* ── P5 + FOOTER ─────────────────────────── */
.p5 { background: var(--light-bg); padding: 44px 20px 36px; text-align: center; }
.p5-photo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.p5-photo a { display: block; }
.p5-photo img { width: 100%; border-radius: 16px; background: #ffffff; }
.p5-copy { font-size: 16px; color: var(--text-gray); line-height: 1.85; margin-bottom: 24px; }

.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 32px 20px; text-align: center; }
.footer-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 18px; }
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 12px; margin-bottom: 14px; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.4); }

/* ── PC MENU (desktop-only left sidebar) ─── */
.pc-menu { display: none; }
.pc-decor { display: none; }
@media (min-width: 1200px) {
  .footer { display: none; }
  .pc-decor {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 0; top: 0;
    width: calc((100vw - var(--page-width)) / 2); height: 100vh;
    pointer-events: none; z-index: 10;
  }
  .pc-decor img { max-width: 78%; height: auto; }
  .pc-menu {
    display: flex; flex-direction: column;
    position: fixed; left: calc((100vw - var(--page-width)) / 4 - 150px); top: 0; width: 300px; height: 100vh;
    background: none; padding: 48px 40px; box-sizing: border-box;
    z-index: 50;
  }
  .pc-menu-logo { display: block; width: 140px; margin-bottom: 56px; }
  .pc-menu-logo img { width: 100%; height: auto; display: block; }
  .pc-menu-list { list-style: none; padding: 0; margin: 0 0 32px; }
  .pc-menu-list li { border-bottom: 1px solid rgba(255,255,255,.25); }
  .pc-menu-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 2px 20px 4px; text-decoration: none; color: var(--white);
  }
  .pc-menu-list a:hover { opacity: .7; }
  .pc-menu-title { font-family: var(--font-en); font-size: 24px; font-weight: 600; letter-spacing: .1em; display: block; }
  .pc-menu-desc { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7); display: block; margin-top: 4px; }
  .pc-menu-list svg { flex: none; }
  .pc-menu-footer { margin-top: auto; }
  .pc-menu-footer-links { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
  .pc-menu-footer-links a { font-size: 14px; color: rgba(255,255,255,.6); text-decoration: none; }
  .pc-menu-copy { font-size: 14px; color: rgba(255,255,255,.5); }
}
