/* =========================================================
   モカモコDAYS LP
   Brand: days-app src/theme/variables.css と同じラベンダー系パステル
   accent #a48ad4 / bg #f8f6fc / condition 4 色（高め・ふつう・ゆらぎ注意・休息向き）
   Font: Noto Sans JP + Lato（英数）— アプリと同じ
   ========================================================= */

:root {
  --accent:        #a48ad4;
  --accent-shade:  #9079bb;
  --accent-tint:   #ad96d8;
  --accent-soft:   #ece5f6;
  --bg:            #f8f6fc;
  --surface:       #ffffff;
  --surface-tint:  #f6f1fa;
  --ink-strong:    #3b3743;
  --ink:           #56515e;
  --ink-weak:      #6d6878;
  --ink-muted:     #999999;
  --border:        #e6e0f0;
  --border-strong: #d5cce4;
  --warning:       #d97706;
  --cond-high:      #efa8c6;
  --cond-normal:    #a5d4b0;
  --cond-sensitive: #f3c98a;
  --cond-rest:      #a8b8e6;
  --white:  #ffffff;
  --radius: 20px;
  --maxw:   1040px;
  --shadow-sm: 0 8px 20px rgba(59,55,67,.06);
  --shadow-md: 0 16px 38px rgba(59,55,67,.10);
  --shadow-accent: 0 8px 20px rgba(164,138,212,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lato", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { color: var(--ink-strong); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

.pc-only { display: inline; }
/* 折返し単位の制御（語の途中で改行させない） */
.nowrap { white-space: nowrap; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
/* 狭幅ではロゴ側を縮めて右側（言語切替 + DL ボタン）と重ならないようにする */
.brand { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 32px; height: 32px; border-radius: 9px; }
.brand-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-strong);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-dl-btn {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-accent);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.header-dl-btn:hover { transform: translateY(-2px); background: var(--accent-shade); }

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(760px 420px at 88% 0%, rgba(239,168,198,.28) 0%, rgba(239,168,198,0) 60%),
    radial-gradient(640px 400px at 0% 100%, rgba(168,184,230,.28) 0%, rgba(168,184,230,0) 60%),
    var(--bg);
  padding: 72px 0 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { padding-bottom: 88px; }
.hero-badge {
  display: inline-block;
  background: var(--white);
  color: var(--accent-shade);
  border: 1px solid var(--accent-soft);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  padding: 6px 16px;
  border-radius: 999px;
  margin: 0 0 18px;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: 44px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0 0 18px;
  letter-spacing: .01em;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-weak);
  text-wrap: balance; /* 折り返し時に末尾 1 文字だけが孤立するのを防ぐ */
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-strong);
  display: inline-block;
}
.hero-lead {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 28px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.store-badges--center { justify-content: center; }
.store-note {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-shade);
  margin: 12px 0 0;
}
.badge-img {
  height: 52px;
  width: auto;
  transition: transform .15s ease;
}
.badge-img:hover { transform: translateY(-2px); }

/* ヒーローの端末フレーム（スクショ）+ 前面のアプリアイコン */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
  padding-left: 24px;
}
.hero-phone {
  margin: 0;
  width: 250px;
  padding: 10px 10px 0;
  background: var(--ink-strong);
  border-radius: 40px 40px 0 0;
  box-shadow: 0 30px 60px rgba(59,55,67,.22);
}
.hero-screen {
  border-radius: 30px 30px 0 0;
  /* 幅はフレーム内いっぱい・高さを固定してセクション境界で切る（縦長スクショの余白を減らす）。
     max-height だと height:auto の縦横比維持で幅まで縮み、右側にフレームの余白が出る */
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top;
}
.hero-icon {
  position: absolute;
  left: 0;
  bottom: 96px;
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(59,55,67,.22);
  border: 4px solid var(--white);
}

/* ---------------- Section commons ---------------- */
.section-eyebrow {
  text-align: center;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 6px;
}
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0 0 44px;
  line-height: 1.5;
}

/* チェック付きリスト共通（recommend / plan-free） */
.check-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 14px;
}
.check-list li,
.recommend-list li,
.plan-free-list li,
.plan-includes li {
  position: relative;
}
.recommend-list li::before,
.plan-free-list li::before,
.plan-includes li::before {
  content: "✓";
  position: absolute;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  border-radius: 50%;
}

/* ---------------- Recommend (こんな方に) ---------------- */
.recommend { padding: 84px 0 0; }
.recommend-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 680px;
  display: grid;
  gap: 14px;
}
.recommend-list li {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px 16px 52px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-strong);
}
.recommend-list li::before { left: 18px; top: 50%; transform: translateY(-50%); }

/* ---------------- Features ---------------- */
.features { padding: 84px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  color: var(--ink-strong);
}
.feature-icon--accent    { background: var(--accent-soft); color: var(--accent-shade); }
.feature-icon--high      { background: var(--cond-high); }
.feature-icon--normal    { background: var(--cond-normal); }
.feature-icon--sensitive { background: var(--cond-sensitive); }
.feature-icon--rest      { background: var(--cond-rest); }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.5;
}
.feature-card p {
  font-size: 14.5px;
  margin: 0;
  color: var(--ink);
}

/* ---------------- Screens (画面イメージ) ---------------- */
.screens {
  padding: 84px 0;
  background: var(--bg);
  overflow: hidden;
}
.screens-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 22px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* 収まる時は中央寄せ・あふれる時は左端から正しくスクロール（端が切れない） */
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
/* マウスでのドラッグスクロール（JS で .draggable / .dragging を付与） */
.screens-track.draggable { cursor: grab; }
.screens-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.screen img {
  -webkit-user-drag: none;
  user-select: none;
}
.screens-track::-webkit-scrollbar { height: 8px; }
.screens-track::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.screen {
  flex: 0 0 auto;
  width: 208px;
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}
.screen img {
  width: 100%;
  border-radius: 28px;
  border: 6px solid #fff;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.screen figcaption {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.6;
}

/* ---------------- Privacy（サーバーなし・端末内完結） ---------------- */
.privacy { padding: 84px 0; }
.privacy .section-title { margin-bottom: 18px; }
.privacy-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 16px;
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.privacy-card {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.privacy-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent-shade);
  box-shadow: var(--shadow-sm);
}
.privacy-card h3 { font-size: 17px; margin: 0 0 8px; }
.privacy-card p { font-size: 14.5px; margin: 0; }

/* ---------------- About（モカちゃん × コンディション） ---------------- */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
  padding: 84px 0;
}
.about .section-title { margin-bottom: 14px; }
.about-lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 16px;
}
.condition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.condition-card {
  --cond: var(--accent);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 6px solid var(--cond);
  border-radius: var(--radius);
  padding: 24px 18px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.condition-card--high      { --cond: var(--cond-high); }
.condition-card--normal    { --cond: var(--cond-normal); }
.condition-card--sensitive { --cond: var(--cond-sensitive); }
.condition-card--rest      { --cond: var(--cond-rest); }
.condition-moca {
  width: 120px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 8px 16px rgba(59,55,67,.12));
}
.condition-label {
  display: inline-block;
  background: var(--cond);
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.condition-card p { margin: 0; font-size: 14px; }
.about-note {
  text-align: center;
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--ink-weak);
}

/* ---------------- Plan（DAYS Premium） ---------------- */
.plan {
  padding: 84px 0;
  background: var(--bg);
}
.plan-lead {
  text-align: center;
  font-size: 16px;
  margin: -24px 0 36px;
}
.plan-free {
  max-width: 760px;
  margin: 0 auto 32px;
  background: var(--white);
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}
.plan-free-title {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-shade);
  letter-spacing: .04em;
  white-space: nowrap;
}
.plan-free-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.plan-free-list li {
  padding-left: 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-strong);
}
.plan-free-list li::before { left: 0; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; font-size: 12px; }
.plan-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.plan-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.plan-card--featured {
  border-color: var(--accent);
  background:
    radial-gradient(360px 200px at 50% -40%, rgba(236,229,246,.9), rgba(236,229,246,0) 70%),
    var(--white);
  box-shadow: 0 18px 40px rgba(164,138,212,.2);
}
.plan-offer-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-shade) 100%);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-accent);
  white-space: nowrap;
}
.plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-weak);
  margin: 0 0 8px;
}
.plan-price {
  font-family: "Lato", "Noto Sans JP", sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.2;
  margin: 0 0 6px;
}
.plan-per {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-left: 2px;
}
.plan-price-after {
  font-size: 13px;
  color: var(--ink-weak);
  margin: 0 0 14px;
}
.plan-includes {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--border-strong);
  display: grid;
  gap: 10px;
  text-align: left;
}
.plan-includes li {
  padding-left: 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-strong);
}
.plan-includes li::before { left: 0; top: 2px; }
.plan-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-weak);
  margin: 28px 0 0;
}
.plan-note + .plan-note {
  margin-top: 6px;
}

/* ---------------- Download ---------------- */
.download {
  padding: 88px 0;
  background:
    radial-gradient(700px 400px at 50% 120%, var(--accent-soft), rgba(236,229,246,0) 70%),
    var(--white);
}
.download-inner { text-align: center; }
.download-title { margin-bottom: 14px; }
.download-lead { margin: 0 0 32px; font-size: 16px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink-strong);
  color: rgba(255,255,255,.86);
  padding: 48px 0 36px;
}
.footer-inner { text-align: center; }
.footer-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  margin: 0 auto 12px;
}
.footer-appname { font-weight: 700; margin: 0 0 12px; color: var(--white); font-size: 15px; }
.footer-company { font-weight: 700; margin: 0 0 4px; color: var(--white); font-size: 14px; }
.footer-address { font-size: 13px; margin: 0 0 22px; color: rgba(255,255,255,.7); }
.footer-disclaimer {
  max-width: 760px;
  margin: 0 auto 26px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,.7);
  text-align: left;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-bottom: 22px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.footer-links a:hover { border-bottom-color: var(--accent-tint); }
.copyright { font-size: 12px; color: rgba(255,255,255,.6); margin: 0; }

/* ---------------- Design polish ---------------- */
/* sticky ヘッダー（64px）分、アンカー着地位置を下げる */
main [id] { scroll-margin-top: 80px; }

/* スクロールリビール（JS が .reveal を付与し、交差時に .is-visible。完了後は両クラスとも除去） */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .condition-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .pc-only { display: none; }

  .hero { padding: 48px 0 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .hero-copy { order: 1; padding-bottom: 0; }
  .hero-visual { order: 2; padding-left: 0; padding-top: 8px; }
  .hero-phone { width: 220px; }
  .hero-screen { height: 360px; }
  .hero-icon { left: calc(50% - 170px); bottom: 60px; width: 84px; height: 84px; border-radius: 20px; }
  .store-badges { justify-content: center; }
  .hero-title { font-size: 32px; }

  .features { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 18px; }
  .section-title { font-size: 24px; margin-bottom: 32px; }

  .privacy { padding: 60px 0; }
  .privacy-grid { grid-template-columns: 1fr; gap: 16px; }

  .about { padding: 60px 0; }
  .condition-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .condition-moca { width: 96px; }

  .plan { padding: 60px 0; }
  .plan-lead { margin: -16px 0 28px; }
  .plan-free { flex-direction: column; align-items: flex-start; }
  .plan-free-list { flex-direction: column; gap: 8px; }
  .plan-cards { grid-template-columns: 1fr; gap: 30px; }

  .download { padding: 64px 0; }
  .footer-links { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  /* 幅確保のため、ヘッダーはアイコンのみ（アプリ名は非表示。リンクの aria-label で補う） */
  .brand-name { display: none; }
}

@media (max-width: 420px) {
  .badge-img { height: 46px; }
  .hero-title { font-size: 27px; }
  .hero-icon { left: 4px; }
  .header-dl-btn { padding: 9px 16px; font-size: 13px; }
  .condition-grid { grid-template-columns: 1fr; }
  .plan-price { font-size: 32px; }
}

/* ---------------- 多言語 ---------------- */
/* ヘッダー言語切替ドロップダウン（details/summary で折りたたむ） */
.header-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-dl-btn { white-space: nowrap; }
.lang-menu { position: relative; }
.lang-menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-weak);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.lang-menu-btn::-webkit-details-marker { display: none; }
.lang-menu-btn:hover,
.lang-menu[open] .lang-menu-btn { border-color: var(--accent); background: var(--accent-soft); }
.lang-menu-chevron { transition: transform .15s ease; }
.lang-menu[open] .lang-menu-chevron { transform: rotate(180deg); }
.lang-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.lang-menu-list a,
.lang-menu-list .is-current {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--ink-strong);
}
.lang-menu-list a:hover { background: var(--accent-soft); }
.lang-menu-list .is-current { font-weight: 700; opacity: .55; }

/* フッターの言語リンク（横並び。現在の言語は非リンク表示） */
.footer-links--lang { gap: 16px; }
.footer-links--lang .is-current { font-size: 14px; color: rgba(255,255,255,.5); }

@media (max-width: 600px) {
  .header-inner { gap: 12px; }
  .header-right { gap: 8px; }
  /* 幅確保のため、ヘッダーの言語ボタンはアイコン + ▾ のみ表示 */
  .lang-menu-label { display: none; }
  .lang-menu-btn { padding: 6px 8px; }
  /* 切替ボタン分の幅を DL ボタンのコンパクト化で吸収（420px の既存ルールと同値） */
  .site-header .header-dl-btn { font-size: 13px; padding: 9px 14px; }
}
