/* リカバリータッチ セルフケアガイド
 * スマホ縦画面（375px 前後）を基準に、1カラムで組む。
 * 見た目は GDT の Makuake LP に合わせる。ルールは DESIGN.md（無彩色＋紺1色、広い余白、控えめな角丸）。 */

:root {
  --bg: #eeeff1;          /* ページの地。LP の薄いグレー */
  --surface: #ffffff;
  --soft: #e3e7ee;        /* 部位ラベルの地。LP の薄い青グレー */
  --ink: #1f2226;
  --muted: #6b7079;
  --line: #dfe1e5;
  --navy: #344060;        /* 主アクセント。部位名・点・ピル・強調 */
  --slate: #687088;       /* 帯。セクション見出し */
  --accent: var(--navy);
  --accent-soft: var(--soft);
  --warn: #1f2226;        /* 注意は色ではなく、紺の罫線＋太字で立たせる */
  --warn-soft: #f3f4f6;
  --dot: #344060;         /* 図の上の点。LP の図と同じ紺。赤に戻すなら #d81b28 */
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 34, 38, .05), 0 6px 18px rgba(31, 34, 38, .06);
  --bar-h: 68px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
               system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .02em;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); }

/* 英字の小さなラベル（POINT 01 / ARM のような字間の広い大文字） */
.en-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}

/* --- ヘッダー --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-top, 0px));
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__home { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.site-header__brand { display: block; line-height: 0; margin-bottom: 3px; }
/* sology のロゴ（GDT 公式サイト／LP のワードマーク。img/brand/sology.png、透過）。文字で組まず画像で出す */
.brand-logo { display: block; height: 16px; width: auto; }
.brand-logo--large { height: 26px; margin: 0 auto; }
.site-header__title { font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--muted); line-height: 1.4; }
.site-header__guide {
  flex: none;
  font-size: 12.5px; font-weight: 600; text-decoration: none;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 5px 13px;
}

/* --- 画面 ------------------------------------------------------------- */
main { max-width: 640px; margin: 0 auto; padding: 20px 16px 48px; }
.screen[hidden] { display: none; }

.crumb { margin: 0 0 14px; font-size: 13px; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a::before { content: "← "; }

/* --- ホーム ----------------------------------------------------------- */
/* LP 2枚目「グレーの地に製品写真」の見せ方。写真は小さく（以前の線画と同じくらい）、見出しの横に置く。
 * 写真は AI 生成（img/home/hero.jpg・縦長）。大きくしない（越さんの指示 2026-09-17） */
.hero {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(160deg, #e2e3e6 0%, #f4f4f5 100%);
}
.hero__img {
  flex: none; width: 110px; height: auto;
  border-radius: 8px;
}
.hero__text { min-width: 0; }
.hero__title {
  margin: 0 0 8px;
  font-size: 19px; line-height: 1.45; letter-spacing: .04em; font-weight: 700;
  color: var(--ink);
}
.hero__lead { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* 見出しの上に置く小さな英字（LP の「POINT 01」「ARM」の字間） */
.section-label {
  display: block; margin: 0 0 4px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}

/* 「気になるところ」の一覧。LP の POINT カード：番号＋太い見出し＋薄い説明 */
.symptom-grid {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.symptom-grid a {
  display: flex; flex-direction: column; gap: 4px;
  height: 100%;
  padding: 12px 13px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
}
.symptom-grid a:active { background: var(--soft); }
.symptom-grid__num {
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  color: var(--navy); line-height: 1.2;
  padding-bottom: 4px; margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}
.symptom-grid__label { font-size: 14px; font-weight: 700; line-height: 1.5; }
.symptom-grid__sub { font-size: 11.5px; color: var(--muted); line-height: 1.55; margin-top: auto; }

.home__tagline {
  margin: 30px 0 0; text-align: center;
  font-size: 14.5px; font-weight: 700; color: var(--navy); line-height: 1.8; letter-spacing: .04em;
}

/* --- パネル ----------------------------------------------------------- */
.panel {
  margin: 22px 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* パネルの見出しは LP の「帯」：スレートの地に白い文字、中央揃え */
.panel__title {
  margin: -16px -16px 14px;
  padding: 9px 16px;
  background: var(--slate); color: #fff;
  font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-align: center;
  border-radius: var(--radius) var(--radius) 0 0;
}
.panel__sub { margin: 16px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }

.tick-list, .plain-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.tick-list li { padding-left: 20px; position: relative; }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--navy); font-weight: 700;
}
.plain-list li { padding-left: 16px; position: relative; margin-bottom: 4px; }
.plain-list li::before {
  content: ""; position: absolute; left: 3px; top: .72em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--navy);
}
.note-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; color: var(--muted); }
.note-list li { padding-left: 14px; position: relative; margin-bottom: 3px; }
.note-list li::before { content: "※"; position: absolute; left: 0; }

/* --- 結果 ------------------------------------------------------------- */
.result__title { font-size: 20px; line-height: 1.5; margin: 0 0 4px; letter-spacing: .04em; }
.result__sub { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.result__note {
  margin: 12px 0 0; padding: 10px 12px;
  background: var(--soft); border-radius: 8px;
  font-size: 13px; color: var(--navy); font-weight: 600;
}
.result__back { margin: 26px 0 0; text-align: center; }

.area-card {
  margin: 18px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);       /* LP の部位ブロックの紺を、カードの上端の帯で */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* 部位の頭。LP の部位ブロック：左に薄い青グレーの縦ブロック（漢字＋英字）、右に説明 */
.area-card__head { display: grid; grid-template-columns: 78px 1fr; }
.area-card__title {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 14px 6px;
  background: var(--soft);
  border-right: 1px solid var(--line);
}
.area-card__name {
  margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: .08em; color: var(--navy);
  text-align: center;
}
.area-card__en {
  font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--slate);
}
.area-card__meta { padding: 12px 14px 12px; }
.area-card__badge {
  display: inline-block; margin-bottom: 6px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
}
.area-card__badge--also { background: var(--slate); }
.area-card__full { margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.area-card__lead { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* 図の切り替え。LP のピル：選択中＝紺地・白、非選択＝白地・紺の枠 */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.tabs button {
  font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 5px 13px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--navy); border: 1px solid var(--navy);
}
.tabs button[aria-selected="true"] {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

.figure { margin: 4px 0 0; padding: 8px 16px 0; text-align: center; }
.figure__stage { position: relative; display: inline-block; }
.figure img {
  display: block;
  /* 点が見えるようカードの幅いっぱいまで使う。ただし腕のように縦長のものが
   * 画面を占領しないよう、高さにも上限を置く（比率は保たれる） */
  width: auto; height: auto;
  max-width: 320px; max-height: 560px;
  margin: 0 auto;
  border-radius: 10px;
}

/* 当てる場所を示す点。写真には点が印刷されていないので、これが唯一の手がかり。
 * 位置は content.json の views[].dots（取説の図の点を写真へ置き直したもの）。
 * 色は LP の図の点と同じ紺。白い縁で肌や髪の上でも輪郭が出る。
 * 「ポイントを順に見る」を押したときだけ、その点のまわりに輪が広がる。 */
.figure__dots { position: absolute; inset: 0; pointer-events: none; }
.figure__dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .95),
              0 1px 3px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%);
}
.figure__dot::after {
  content: "";
  position: absolute; inset: -7px;
  border: 2.5px solid var(--dot);
  border-radius: 50%;
  opacity: 0;
}
.figure__dot.is-on::after { animation: dot-ping .9s ease-out; }
@keyframes dot-ping {
  0%   { opacity: 0; transform: scale(.5); }
  22%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}

.figure__play {
  display: block;
  margin: 10px auto 0;
  font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--navy); border: 1px solid var(--navy);
}
.figure__play:disabled { opacity: .55; cursor: default; }
.figure__play[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .figure__dot.is-on::after { animation: none; opacity: 1; }
}

.area-card__body { padding: 4px 16px 16px; }
.points { list-style: none; margin: 0 0 4px; padding: 0; }
.points li { padding-left: 18px; position: relative; font-size: 14px; margin-bottom: 2px; }
.points li::before {
  content: ""; position: absolute; left: 2px; top: .68em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--navy);
}
.points__caution { display: block; font-size: 11.5px; color: var(--muted); }

.field { margin-top: 16px; }
.field[hidden] { display: none; }
/* 小見出しは LP の「PRESS / MOVE」：短い紺の下線を添える */
.field__label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--navy); margin: 0 0 6px; padding-bottom: 4px;
  position: relative;
}
.field__label::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 22px; height: 2px; background: var(--navy);
}
.field__text { margin: 0; font-size: 13.5px; line-height: 1.75; }

.caution {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 14px; padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px; line-height: 1.65;
}
/* 安全に関わる注意：色は増やさず、紺の左罫線＋太字で立たせる */
.caution--warn {
  background: var(--warn-soft); color: var(--ink); font-weight: 600;
  border-left: 3px solid var(--navy); border-radius: 0 8px 8px 0;
}
/* 「※」の注記：LP と同じく小さいグレーの文字。枠は付けない */
.caution--info { background: transparent; color: var(--muted); padding: 6px 0 0; font-size: 12.5px; }
.caution::before { content: "！"; font-weight: 700; flex: none; color: var(--navy); }
.caution--info::before { content: "※"; font-weight: 400; color: var(--muted); }

.area-video {
  display: block;
  width: 100%;
  max-width: 360px;
  /* 比率は動画そのものに任せる（GDT 撮影は 16:9、AI 生成は 3:2） */
  margin: 6px auto 0;
  border-radius: 10px;
  background: #1f2226;
}

.timer-button {
  margin-top: 16px; width: 100%;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  padding: 11px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--navy);
  border: 1px solid var(--navy);
}
.timer-button:disabled { opacity: .5; cursor: default; }

.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { border-top: 1px solid var(--line); }
.related-list li:first-child { border-top: 0; }
.related-list a { display: block; padding: 10px 0; font-size: 13.5px; text-decoration: none; }
.related-list a::after { content: " ›"; color: var(--muted); }

/* --- ボタン ----------------------------------------------------------- */
.btn {
  display: inline-block;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .06em;
  padding: 12px 26px; border-radius: 999px; cursor: pointer;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  text-decoration: none;
}
.btn--ghost { background: transparent; color: var(--navy); }

/* --- 使い方 ----------------------------------------------------------- */
.guide__title { font-size: 20px; margin: 0 0 4px; letter-spacing: .04em; }
.guide-figure { text-align: center; margin: 6px 0 10px; }
.guide-figure img { max-height: 200px; width: auto; mix-blend-mode: multiply; }

.panel--safety { border-color: var(--line); }
.panel--safety .panel__title { background: var(--ink); }   /* LP の「製品仕様」と同じ黒い帯 */
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top;
}
.spec-table th { width: 8.5em; font-weight: 600; color: var(--muted); }

/* アフターサービスの問い合わせボタン（紺のピル）と、その下に URL を小さく */
.support__contact { margin: 14px 0 4px; text-align: center; }
.support__contact-btn { display: block; width: 100%; font-size: 14px; padding: 11px 16px; }
.support__contact-url { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }

/* --- 「使うときの約束」バー ------------------------------------------ */
.promise-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: #f3f4f6;
  font-size: 12.5px; line-height: 1.55;
}
.promise-bar[hidden] { display: none; }
.promise-bar__text { margin: 0; flex: 1; }
.promise-bar__more {
  flex: none; font: inherit; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #f3f4f6; border: 1px solid #6b7079;
}
body.has-promise-bar main { padding-bottom: calc(var(--bar-h) + 40px); }
body.has-promise-bar .site-footer { padding-bottom: calc(var(--bar-h) + 24px); }

/* --- フッター --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 16px 32px;
  font-size: 11.5px; line-height: 1.7; color: var(--muted);
  text-align: center;
}
.site-footer p { margin: 0 0 4px; }
/* LP の締めと同じ、ブランドの文字を大きく静かに置く */
.site-footer__mark { margin: 0 0 16px !important; line-height: 0; }
.disclaimer { font-weight: 600; color: #4a4f57; }

/* --- 初回オーバーレイ ------------------------------------------------- */
.ack {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(31, 34, 38, .55);
}
.ack[hidden] { display: none; }
.ack__box {
  width: 100%; max-width: 420px; max-height: 100%; overflow-y: auto;
  background: var(--surface); border-radius: 14px; padding: 22px 20px;
}
.ack__title { margin: 0 0 12px; font-size: 17px; line-height: 1.5; letter-spacing: .04em; }
.ack__list { list-style: none; margin: 0 0 14px; padding: 0; font-size: 13px; line-height: 1.6; }
.ack__list li { padding-left: 20px; position: relative; margin-bottom: 8px; }
.ack__list li::before {
  content: ""; position: absolute; left: 3px; top: .58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--navy);
}
.ack__actions { margin-top: 16px; text-align: center; }
.ack__actions .btn { width: 100%; }
.ack__more { display: inline-block; margin-top: 12px; font-size: 12.5px; }

/* --- 10分タイマー ----------------------------------------------------- */
.timer-bar {
  position: fixed; left: 0; right: 0; z-index: 40;
  top: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  background: var(--navy); color: #fff;
}
.timer-bar[hidden] { display: none; }
.timer-bar__clock { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer-bar__label { flex: 1; font-size: 12.5px; line-height: 1.5; }
.timer-bar__stop {
  flex: none; font: inherit; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .5);
}
body.has-timer .site-header { top: 52px; }

/* --- 少し広い画面 ----------------------------------------------------- */
@media (min-width: 560px) {
  body { font-size: 16px; }
  .symptom-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__img { width: 140px; }
  .hero__title { font-size: 24px; }
}
