/* トップページ。スマホの幅を基本に書き、広い画面は下の @media で整える。 */

:root {
  color-scheme: light; /* スマホがダークモードでも、いつも明るい配色で出す（2026-11-09） */
  font-family: system-ui, sans-serif;
  --bg: #fffdfa;
  --fg: #2b2723;
  --muted: #6b645c;
  --accent: #9a5f28; /* はちみつ色。ピンクはやめた（2026-11-11） */
  --accent-fg: #ffffff;
  --card: #ffffff;
  --line: #ece3d6;
  --hero-from: #fdf1dc;
  --hero-to: #fffdfa;
}


* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}


.hero {
  margin: 16px -16px 0;
  padding: 32px 16px 32px;
  background: linear-gradient(180deg, var(--hero-from), var(--hero-to));
}
.hero-title { margin: 0 0 12px; font-size: 2rem; line-height: 1.35; }
.hero-lead { margin: 0 0 16px; color: var(--muted); }

.badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 10px;
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.8rem;
  font-weight: 600;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.85rem;
}

/* スマホでは親指で押しやすいよう、画面の幅いっぱい・高さ52pxにする。 */
.button {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.button:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.button.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }

.section-title { margin: 0 0 12px; font-size: 1.15rem; }

.steps { margin: 24px 0 40px; }
.step-list { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: step; }
.step-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 0 12px 44px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.step-list li:last-child { border-bottom: 1px solid var(--line); }
.step-list li::before {
  content: counter(step);
  position: absolute;
  top: 12px;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}
.step-name { font-weight: 600; }
.step-text { color: var(--muted); font-size: 0.9rem; }

.page-title { margin: 32px 0 12px; font-size: 1.6rem; line-height: 1.4; }
.lead { color: var(--muted); }
.card {
  margin: 16px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
}
.card ul { margin: 0; padding-left: 1.2em; }
.muted { color: var(--muted); }


/* 数字で見る診断。事実として言える数だけを出す（受けた人の数などは、実際の数がそろってから）。 */
.numbers { margin: 24px 0 8px; }
.number-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.number-list li { display: grid; padding: 14px 12px; border-radius: 0; background: var(--card); border: 1px solid var(--line); text-align: center; }
.number { color: var(--accent); font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.number small { margin-left: 2px; font-size: 0.8rem; font-weight: 700; }
.number-label { color: var(--muted); font-size: 0.8rem; }

.features { margin: 32px 0; }
.feature-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 16px 18px; border-left: 4px solid var(--accent); border-radius: 0; background: var(--card); }
.feature-list h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature-list p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.feature-list .feature-wide { grid-column: 1 / -1; }
/* 理由ごとの小さなイラスト。説明は見出しと本文にあるので、絵は飾り（alt は空）。 */
.feature-illust { display: block; max-width: 100%; height: auto; margin: 0 auto 12px; }

.type-preview { margin: 32px 0; }
.type-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.type-gallery a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  text-align: center;
}
.type-gallery a:hover { border-color: var(--accent); color: var(--accent); }
.type-gallery .type-image { display: block; width: 100%; height: auto; }
.type-gallery-name { display: block; padding: 2px 2px 6px; font-size: 0.85rem; line-height: 1.8; }
.type-gallery-more { margin: 16px 0 0; text-align: center; }
@media (min-width: 900px) {
  .type-gallery { grid-template-columns: repeat(8, 1fr); }
}

.safety { margin: 32px 0; }
.safety-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.safety-list li { padding: 14px 16px; border-radius: 0; background: color-mix(in srgb, var(--accent) 8%, var(--card)); font-size: 0.92rem; }
.safety-list strong { display: block; }

.faq { margin: 32px 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; min-height: 52px; padding: 8px 0; font-weight: 600; cursor: pointer; }
.faq details p { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }

.final-cta { margin: 40px 0 0; padding: 32px 16px; border-radius: 0; background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); text-align: center; }

/* PCなど広い画面: ボタンを幅いっぱいにせず、見出しを少し大きくする。 */
@media (min-width: 600px) {
  .hero { margin: 16px 0 0; padding: 48px 32px 40px; border-radius: 0; }
  .hero-title { font-size: 2.4rem; }
  .button { display: inline-block; width: auto; }
}

/* さらに広い画面: 横幅を広げ、見出しと診断の流れを横に並べる。 */
@media (min-width: 900px) {
  main { max-width: 1080px; padding: 0 32px; }
  .hero { padding: 72px 56px 56px; }
  .hero-title { font-size: 3rem; }
  .hero-lead { max-width: 36em; font-size: 1.1rem; }
  .step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step-list li,
  .step-list li:last-child { padding: 56px 18px 18px; border: 1px solid var(--line); border-radius: 0; background: var(--card); }
  .step-list li::before { top: 16px; left: 18px; }
  .number-list { grid-template-columns: repeat(4, 1fr); }
  .feature-list { grid-template-columns: 1fr 1fr; gap: 16px; }
  .safety-list { grid-template-columns: repeat(3, 1fr); }
}

/* トップページ: 各セクションを画面の横幅いっぱいの帯にして、中身は中央に寄せる。
   帯の背景は交互に変え、区切りが分かるようにする。 */
main.wide { max-width: none; padding: 0; }
.wide .band { margin: 0; padding: 48px 16px; border-radius: 0; text-align: center; }
.wide .band:nth-of-type(even) { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.wide .band-inner { max-width: 1080px; margin: 0 auto; }
.wide .hero { padding: 56px 16px 48px; background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); }
.wide .hero-lead { max-width: 36em; margin-left: auto; margin-right: auto; }
.wide .facts { justify-content: center; }
.wide .section-title { margin-bottom: 20px; font-size: 1.4rem; }
.wide .type-preview .muted { margin: 0 0 8px; }

/* カードの中も中央寄せ。左の線は上の線に変える。 */
.wide .feature-list li { border-left: 0; border-top: 4px solid var(--accent); border-radius: 0; padding: 20px 18px; }
.wide .feature-list li,
.wide .safety-list li,
.wide .number-list li { max-width: 560px; margin-left: auto; margin-right: auto; width: 100%; }

/* 診断の流れ: 番号を上に置いて中央にそろえる。 */
.wide .step-list li,
.wide .step-list li:last-child { align-items: center; padding: 56px 18px 18px; border: 1px solid var(--line); border-radius: 0; background: var(--card); }
.wide .step-list { display: grid; gap: 12px; }
.wide .step-list li::before { top: 16px; left: 50%; transform: translateX(-50%); }

/* よくある質問は、読みやすいよう見出しだけ中央、問いと答えは左寄せの細い列にする。 */
.wide .faq details { max-width: 720px; margin: 0 auto; text-align: left; }

.wide .final-cta { margin: 0; padding: 56px 16px; }

@media (min-width: 600px) {
  .wide .hero { margin: 0; border-radius: 0; }
}
@media (min-width: 900px) {
  .wide .band { padding: 72px 32px; }
  .wide .hero { padding: 96px 32px 80px; }
  .wide .hero-lead { max-width: 36em; }
  .wide .section-title { font-size: 1.7rem; }
  .wide .step-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .wide .step-list li::before { left: 50%; }
  .wide .feature-list li,
  .wide .safety-list li,
  .wide .number-list li { max-width: none; }
}

/* 角丸は使わない（決定）。カードは四角・細い線で、番号を小さく添えて締める。 */
.wide .feature-list { counter-reset: feature; }
.wide .feature-list li {
  counter-increment: feature;
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--card);
}
.wide .feature-list li::before {
  content: counter(feature, decimal-leading-zero);
  display: block;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.wide .feature-list h3 { margin-bottom: 10px; font-size: 1.1rem; }
.wide .feature-list h3::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--accent);
}
.wide .safety-list li { border: 1px solid var(--line); background: var(--card); padding: 20px; }

/* アフィリエイト（管理画面で ON にした枠）。広告であることを「PR」で必ず示す。 */
.affiliate { margin: 24px 0; padding: 12px 16px; border: 1px solid var(--line); background: var(--card); text-align: left; }
.affiliate ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.affiliate li { display: flex; align-items: center; gap: 8px; }
.affiliate .pr { flex: none; padding: 0 6px; border: 1px solid var(--muted); color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.affiliate a { color: var(--fg); }

/* タイプ名のふりがな（すべてのタイプに付ける）。 */
.type-ruby { ruby-position: over; }
.type-ruby rt { font-size: 0.5em; font-weight: 400; letter-spacing: 0.05em; line-height: 1.2; }

/* 利用規約とプライバシーポリシー。 */
.legal { max-width: 720px; margin: 0 auto; padding-bottom: 32px; line-height: 1.8; }
.legal-date { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; }
.legal h2 { margin: 28px 0 8px; font-size: 1.1rem; }
.legal ol { margin: 0; padding-left: 1.5em; }
.legal li + li { margin-top: 4px; }
.legal p { margin: 0 0 8px; }
.operator dl { display: grid; grid-template-columns: 7em 1fr; gap: 6px 12px; margin: 0; }
.operator dt { color: var(--muted); }
.operator dd { margin: 0; }

/* メインビジュアル: 16人が輪になって回る。CSS だけで動かし、動きを減らす設定では止める。 */
.hero-ring {
  /* 輪の横幅は、画面がせまいときは輪の幅（cqw）に合わせて縮める。はみ出して横に動くページにしない */
  container-type: inline-size;
  --ring-rx: min(132px, calc(50cqw - 40px));
  --ring-ry: 40px;
  --ring-size: min(104px, 34cqw);
  --ring-duration: 48s;
  position: relative;
  height: 230px;
  margin: 0 auto 8px;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.hero-ring li {
  position: absolute;
  max-width: none;
  top: 46%;
  left: 50%;
  width: var(--ring-size);
  height: var(--ring-size);
  animation: ring-orbit var(--ring-duration) linear infinite;
  will-change: transform;
}
.hero-ring img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-ring .ring-dance { opacity: 0; }
/* 正面の前後にいて、踊る絵が読み込めた子だけ入れ替える（front は static/js/hero-ring.js が付ける） */
.hero-ring li.front .ring-dance { opacity: 1; }
.hero-ring li.front .ring-still { opacity: 0; }
.hero-ring li:nth-child(1) { animation-delay: calc(var(--ring-duration) * 0.0000); }
.hero-ring li:nth-child(2) { animation-delay: calc(var(--ring-duration) * -0.0625); }
.hero-ring li:nth-child(3) { animation-delay: calc(var(--ring-duration) * -0.1250); }
.hero-ring li:nth-child(4) { animation-delay: calc(var(--ring-duration) * -0.1875); }
.hero-ring li:nth-child(5) { animation-delay: calc(var(--ring-duration) * -0.2500); }
.hero-ring li:nth-child(6) { animation-delay: calc(var(--ring-duration) * -0.3125); }
.hero-ring li:nth-child(7) { animation-delay: calc(var(--ring-duration) * -0.3750); }
.hero-ring li:nth-child(8) { animation-delay: calc(var(--ring-duration) * -0.4375); }
.hero-ring li:nth-child(9) { animation-delay: calc(var(--ring-duration) * -0.5000); }
.hero-ring li:nth-child(10) { animation-delay: calc(var(--ring-duration) * -0.5625); }
.hero-ring li:nth-child(11) { animation-delay: calc(var(--ring-duration) * -0.6250); }
.hero-ring li:nth-child(12) { animation-delay: calc(var(--ring-duration) * -0.6875); }
.hero-ring li:nth-child(13) { animation-delay: calc(var(--ring-duration) * -0.7500); }
.hero-ring li:nth-child(14) { animation-delay: calc(var(--ring-duration) * -0.8125); }
.hero-ring li:nth-child(15) { animation-delay: calc(var(--ring-duration) * -0.8750); }
.hero-ring li:nth-child(16) { animation-delay: calc(var(--ring-duration) * -0.9375); }
@keyframes ring-orbit {
  0.000% { transform: translate(calc(-50% + 0.0000 * var(--ring-rx)), calc(-50% + 1.0000 * var(--ring-ry))) scale(1.000); opacity: 1.000; z-index: 17; }
  4.167% { transform: translate(calc(-50% + 0.2588 * var(--ring-rx)), calc(-50% + 0.9659 * var(--ring-ry))) scale(0.992); opacity: 0.992; z-index: 17; }
  8.333% { transform: translate(calc(-50% + 0.5000 * var(--ring-rx)), calc(-50% + 0.8660 * var(--ring-ry))) scale(0.970); opacity: 0.970; z-index: 16; }
  12.500% { transform: translate(calc(-50% + 0.7071 * var(--ring-rx)), calc(-50% + 0.7071 * var(--ring-ry))) scale(0.934); opacity: 0.934; z-index: 15; }
  16.667% { transform: translate(calc(-50% + 0.8660 * var(--ring-rx)), calc(-50% + 0.5000 * var(--ring-ry))) scale(0.888); opacity: 0.888; z-index: 13; }
  20.833% { transform: translate(calc(-50% + 0.9659 * var(--ring-rx)), calc(-50% + 0.2588 * var(--ring-ry))) scale(0.833); opacity: 0.833; z-index: 11; }
  25.000% { transform: translate(calc(-50% + 1.0000 * var(--ring-rx)), calc(-50% + 0.0000 * var(--ring-ry))) scale(0.775); opacity: 0.775; z-index: 9; }
  29.167% { transform: translate(calc(-50% + 0.9659 * var(--ring-rx)), calc(-50% + -0.2588 * var(--ring-ry))) scale(0.717); opacity: 0.717; z-index: 7; }
  33.333% { transform: translate(calc(-50% + 0.8660 * var(--ring-rx)), calc(-50% + -0.5000 * var(--ring-ry))) scale(0.663); opacity: 0.663; z-index: 5; }
  37.500% { transform: translate(calc(-50% + 0.7071 * var(--ring-rx)), calc(-50% + -0.7071 * var(--ring-ry))) scale(0.616); opacity: 0.616; z-index: 3; }
  41.667% { transform: translate(calc(-50% + 0.5000 * var(--ring-rx)), calc(-50% + -0.8660 * var(--ring-ry))) scale(0.580); opacity: 0.580; z-index: 2; }
  45.833% { transform: translate(calc(-50% + 0.2588 * var(--ring-rx)), calc(-50% + -0.9659 * var(--ring-ry))) scale(0.558); opacity: 0.558; z-index: 1; }
  50.000% { transform: translate(calc(-50% + 0.0000 * var(--ring-rx)), calc(-50% + -1.0000 * var(--ring-ry))) scale(0.550); opacity: 0.550; z-index: 1; }
  54.167% { transform: translate(calc(-50% + -0.2588 * var(--ring-rx)), calc(-50% + -0.9659 * var(--ring-ry))) scale(0.558); opacity: 0.558; z-index: 1; }
  58.333% { transform: translate(calc(-50% + -0.5000 * var(--ring-rx)), calc(-50% + -0.8660 * var(--ring-ry))) scale(0.580); opacity: 0.580; z-index: 2; }
  62.500% { transform: translate(calc(-50% + -0.7071 * var(--ring-rx)), calc(-50% + -0.7071 * var(--ring-ry))) scale(0.616); opacity: 0.616; z-index: 3; }
  66.667% { transform: translate(calc(-50% + -0.8660 * var(--ring-rx)), calc(-50% + -0.5000 * var(--ring-ry))) scale(0.662); opacity: 0.662; z-index: 5; }
  70.833% { transform: translate(calc(-50% + -0.9659 * var(--ring-rx)), calc(-50% + -0.2588 * var(--ring-ry))) scale(0.717); opacity: 0.717; z-index: 7; }
  75.000% { transform: translate(calc(-50% + -1.0000 * var(--ring-rx)), calc(-50% + -0.0000 * var(--ring-ry))) scale(0.775); opacity: 0.775; z-index: 9; }
  79.167% { transform: translate(calc(-50% + -0.9659 * var(--ring-rx)), calc(-50% + 0.2588 * var(--ring-ry))) scale(0.833); opacity: 0.833; z-index: 11; }
  83.333% { transform: translate(calc(-50% + -0.8660 * var(--ring-rx)), calc(-50% + 0.5000 * var(--ring-ry))) scale(0.888); opacity: 0.888; z-index: 13; }
  87.500% { transform: translate(calc(-50% + -0.7071 * var(--ring-rx)), calc(-50% + 0.7071 * var(--ring-ry))) scale(0.934); opacity: 0.934; z-index: 15; }
  91.667% { transform: translate(calc(-50% + -0.5000 * var(--ring-rx)), calc(-50% + 0.8660 * var(--ring-ry))) scale(0.970); opacity: 0.970; z-index: 16; }
  95.833% { transform: translate(calc(-50% + -0.2588 * var(--ring-rx)), calc(-50% + 0.9659 * var(--ring-ry))) scale(0.992); opacity: 0.992; z-index: 17; }
  100.000% { transform: translate(calc(-50% + -0.0000 * var(--ring-rx)), calc(-50% + 1.0000 * var(--ring-ry))) scale(1.000); opacity: 1.000; z-index: 17; }
}

@media (min-width: 600px) {
  .hero-ring { --ring-rx: min(230px, calc(50cqw - 56px)); --ring-ry: 56px; --ring-size: 140px; height: 290px; }
}
@media (min-width: 900px) {
  .hero-ring { --ring-rx: min(330px, calc(50cqw - 68px)); --ring-ry: 78px; --ring-size: 170px; height: 340px; max-width: 900px; margin-top: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ring li, .hero-ring img { animation-play-state: paused; }
}

/* 見出し: 1行にして、輪の上半分（奥を回る子たち）に重ねる。一文字ずつ現れる。 */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* 輪の子と見出しの z-index（最大20）をこの中だけで比べ、上に固定したヘッダー（z-index: 10）より前に出さない */
.hero-stage { position: relative; container-type: inline-size; isolation: isolate; }
.hero-stage .hero-title {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  transform: translateY(-50%);
  /* 17文字（字間込み）が入れ物の幅に収まる大きさ。100vw はスクロールバーの幅を含むので cqw で測る。下限は付けない */
  font-size: min(2.8rem, calc(100cqw / 18.5));
  line-height: 1.3;
  white-space: nowrap;
  /* 端末に入っている明朝体で、細めに字間を空けて上品に。Web フォントは読み込まない（CSP を緩めない） */
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "BIZ UDPMincho", "Noto Serif JP", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #3a2a1c;
  /* 輪の子たちの上でも読めるよう、背景色のふちを細く付ける（ぼかしの光は付けない） */
  text-shadow: 0 0 1px var(--bg), 0 0 3px var(--bg), 0 0 6px var(--bg);
}
.hero-type > span {
  display: inline-block;
  opacity: 0;
  animation: hero-type-in 0.5s ease-out forwards;
}
@keyframes hero-type-in {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: none; }
}
.hero-type > span:nth-child(1) { animation-delay: 0.20s; }
.hero-type > span:nth-child(2) { animation-delay: 0.29s; }
.hero-type > span:nth-child(3) { animation-delay: 0.38s; }
.hero-type > span:nth-child(4) { animation-delay: 0.47s; }
.hero-type > span:nth-child(5) { animation-delay: 0.56s; }
.hero-type > span:nth-child(6) { animation-delay: 0.65s; }
.hero-type > span:nth-child(7) { animation-delay: 0.74s; }
.hero-type > span:nth-child(8) { animation-delay: 0.83s; }
.hero-type > span:nth-child(9) { animation-delay: 0.92s; }
.hero-type > span:nth-child(10) { animation-delay: 1.01s; }
.hero-type > span:nth-child(11) { animation-delay: 1.10s; }
.hero-type > span:nth-child(12) { animation-delay: 1.19s; }
.hero-type > span:nth-child(13) { animation-delay: 1.28s; }
.hero-type > span:nth-child(14) { animation-delay: 1.37s; }
.hero-type > span:nth-child(15) { animation-delay: 1.46s; }
.hero-type > span:nth-child(16) { animation-delay: 1.55s; }
.hero-type > span:nth-child(17) { animation-delay: 1.64s; }
@media (min-width: 600px) {
  .hero-stage .hero-title { top: 29%; }
}
@media (min-width: 900px) {
  .hero-stage .hero-title { top: 27%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-type > span { animation: none; opacity: 1; }
}

/* 輪が少しでもはみ出したときに、ページが横に動かないようにする保険 */
.hero { overflow-x: clip; }

/* ヒーローの下半分を上品に（2026-11-14）。角丸は使わない決まりなので、細い線、余白、明朝体、円の点で整える。 */
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 10px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "BIZ UDPMincho", "Noto Serif JP", serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #7a4a1e;
}
.hero-eyebrow::before,
.hero-eyebrow::after { content: ""; width: 32px; height: 1px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.hero .hero-lead { line-height: 1.95; letter-spacing: 0.03em; }
.hero .facts { gap: 4px 18px; margin: 0 0 28px; }
.hero .facts li {
  position: relative;
  padding: 0 0 0 23px;
  border: 0;
  color: #5a3e12;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
/* 丸の中のチェック（円はよい決まり）。CSP で data: の画像は使えないので、線で描く */
.hero .facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--accent);
}
.hero .facts li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 50%;
  width: 4px;
  height: 7.5px;
  margin-top: -5.5px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: min(100%, 300px);
  padding: 15px 36px;
  background: linear-gradient(180deg, #a26530, #8a5220  /* 上端でも白い字と 4.5:1 以上 */);
  letter-spacing: 0.12em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -10px rgba(122, 74, 30, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* ボタンの外に細い線を一本ずらして重ね、紙の上に置いたような奥行きを出す */
.hero-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translate(6px, 6px);
  pointer-events: none;
  transition: transform 0.2s ease;
}
.hero-cta-arrow { display: inline-block; font-weight: 400; transition: transform 0.2s ease; }
@media (hover: hover) {
  .hero-cta:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 28px -10px rgba(122, 74, 30, 0.7); }
  .hero-cta:hover::after { transform: translate(3px, 3px); }
  .hero-cta:hover .hero-cta-arrow { transform: translateX(4px); }
}
@media (max-width: 599px) {
  .hero-cta { display: flex; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta, .hero-cta::after, .hero-cta-arrow { transition: none; }
}

/* 16タイプの一覧へのボタン。文字のリンクでは目立たないので、枠の付いた四角いボタンにする（2026-11-14） */
.type-gallery-more { margin: 28px 0 0; }
.more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 32px;
  border: 1.5px solid var(--accent);
  background: var(--card);
  color: #7a4a1e;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent) 22%, transparent);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.more-button:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.more-button-arrow { display: inline-block; font-weight: 400; transition: transform 0.2s ease; }
@media (hover: hover) {
  .more-button:hover { background: var(--accent); color: var(--accent-fg); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent) 30%, transparent); }
  .more-button:hover .more-button-arrow { transform: translateX(4px); }
}
@media (max-width: 599px) {
  .more-button { display: flex; width: 100%; }
}

/* 「ていねいな理由」のカードを、画面に入ってくるときにふわっと出す。対応するブラウザだけ（JS は使わない） */
@supports (animation-timeline: view()) {
  .feature-list li {
    animation: feature-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  @keyframes feature-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .feature-list li { animation: none; }
  .more-button, .more-button-arrow { transition: none; }
}

/* お問い合わせ（2026-11-15） */
.contact { max-width: 640px; margin: 0 auto; padding-bottom: 40px; }
.contact-notice { margin: 16px 0; padding: 12px 14px; border-left: 4px solid #b3261e; background: #fdf0ee; color: #6b1a14; }
.contact-form { display: grid; gap: 20px; margin-top: 24px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font-weight: 600; }
.contact-form .required,
.contact-form .optional { margin-left: 8px; padding: 1px 6px; font-size: 0.75rem; font-weight: 600; }
.contact-form .required { background: var(--accent); color: var(--accent-fg); }
.contact-form .optional { background: var(--line); color: var(--muted); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cfc3b2;
  border-radius: 0;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 1rem; /* iPhone で入力時に拡大されないように 16px 以上 */
}
.contact-form textarea { min-height: 200px; resize: vertical; }
.contact-form :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.contact-form [aria-invalid="true"] { border-color: #b3261e; }
.contact-form .check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; }
.contact-form .check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.field-hint { margin: 0; color: var(--muted); font-size: 0.85rem; }
.field-error { margin: 0; color: #b3261e; font-size: 0.9rem; }
.contact .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }

/* メインビジュアルの背景を星空にする（2026-11-16）。画像の上に夜色を薄く重ね、白い文字を読みやすくする。
   画像は static/img/hero/。スマホには小さい方を送る。 */
.wide .hero {
  background-color: #1c1d3d;
  background-image:
    linear-gradient(180deg, rgba(16, 16, 44, 0.35), rgba(16, 16, 44, 0.55)),
    url("../img/hero/sky.9b7a9e2a51de.webp");
  background-size: cover;
  background-position: center;
  color: #f6f1ff;
}
@media (max-width: 599px) {
  .wide .hero {
    background-image:
      linear-gradient(180deg, rgba(16, 16, 44, 0.35), rgba(16, 16, 44, 0.55)),
      url("../img/hero/sky-small.95fb1cf477bb.webp");
  }
}
.wide .hero .hero-stage .hero-title {
  color: #fffaf0;
  /* 星の上でも読めるよう、夜色のふちを付ける */
  text-shadow: 0 0 2px #14143a, 0 0 6px rgba(20, 20, 58, 0.8), 0 0 14px rgba(20, 20, 58, 0.6);
}
/* 「成分」だけ金色にして目を留める（9・10文字目）。下線のマーカーは引かない（2026-11-16） */
.wide .hero .hero-type > span:nth-child(9),
.wide .hero .hero-type > span:nth-child(10) {
  color: #ffd98a;
  text-shadow: 0 0 2px #14143a, 0 0 6px rgba(20, 20, 58, 0.8);
}
.wide .hero .hero-eyebrow { color: #ffd98a; }
.wide .hero .hero-eyebrow::before,
.wide .hero .hero-eyebrow::after { background: rgba(255, 217, 138, 0.6); }
.wide .hero .hero-lead { color: rgba(246, 241, 255, 0.9); }
.wide .hero .facts li { color: #f6f1ff; }
.wide .hero .hero-cta::after { border-color: rgba(255, 217, 138, 0.55); }
/* 星空の上でも、キーボードの操作でいる場所が見えるよう、フォーカスの輪を金色にする */
.wide .hero .hero-cta:focus-visible { outline-color: #ffd98a; }
/* 印刷では背景が出ないので、文字を元の色に戻す */
@media print {
  .wide .hero { background: none; color: inherit; }
  .wide .hero .hero-stage .hero-title, .wide .hero .hero-type > span, .wide .hero .hero-eyebrow,
  .wide .hero .hero-lead, .wide .hero .facts li { color: #2b2723; text-shadow: none; }
}

/* 「数字で見る」の帯（2026-11-16）。数字は線で描き（templates/parts/digit.html）、片側にピンクの面を添える。
   カードは上下を紺、左右をピンクの線で囲む（角丸は使わない決まり）。画面に入ったら、線を描いてから面を出す
   （static/js/numbers-draw.js が .draw-wait と .draw-in を付ける。JS がない、動きを減らす設定なら最初から全部見える）。 */
.numbers { --num-ink: #1f2a63; --num-pink: #ec6f7b; }
.wide .band.numbers {
  background:
    radial-gradient(circle, rgba(236, 111, 123, 0.28) 1.5px, transparent 2px) 0 0 / 52px 52px,
    radial-gradient(circle, rgba(31, 42, 99, 0.16) 1px, transparent 1.5px) 26px 26px / 52px 52px,
    #fffaf6;
}
.numbers .number-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.numbers .number-list li {
  position: relative;
  justify-items: center;
  gap: 10px;
  padding: 24px 10px 18px;
  border: 0;
  border-top: 4px solid var(--num-ink);
  border-bottom: 4px solid var(--num-ink);
  box-shadow: inset 4px 0 0 var(--num-pink), inset -4px 0 0 var(--num-pink);
  background: #fff;
}
.numbers .number-list li:nth-child(1) { --d: 0s; }
.numbers .number-list li:nth-child(2) { --d: 0.2s; }
.numbers .number-list li:nth-child(3) { --d: 0.4s; }
.numbers .number-list li:nth-child(4) { --d: 0.6s; }
/* 右上の小さな星。読み上げない（content の / ""） */
.numbers .number-list li::after {
  content: "✦";
  content: "✦" / "";
  position: absolute;
  top: 8px;
  right: 12px;
  color: var(--num-pink);
  font-size: 0.85rem;
  line-height: 1;
  animation: number-twinkle 2.4s ease-in-out infinite;
  animation-delay: var(--d);
}
.numbers .number { color: var(--num-ink); font-size: 1rem; line-height: 1; }
.numbers .digits { display: inline-flex; align-items: flex-end; gap: 5px; height: 56px; }
.numbers .digit { display: block; width: 36px; height: 56px; overflow: visible; }
.numbers .digit-narrow { width: 19px; }
.numbers .digit-line { fill: none; stroke: var(--num-ink); stroke-width: 3.6; }
.numbers .digit-fill { fill: var(--num-pink); }
.numbers .digit-wave { align-self: center; color: var(--num-ink); font-size: 1.4rem; font-weight: 300; }
.numbers .digits small { margin-left: 3px; padding-bottom: 1px; color: var(--num-ink); font-size: 0.9rem; font-weight: 700; line-height: 1.2; }
.numbers .number-label { color: var(--fg); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
/* 320px ほどの狭い画面でも2列に収まるよう、数字を少し小さくする */
@media (max-width: 399px) {
  .numbers .digits { height: 46px; gap: 4px; }
  .numbers .digit { width: 30px; height: 46px; }
  .numbers .digit-narrow { width: 16px; }
  .numbers .digits small { font-size: 0.8rem; }
}
@media (min-width: 900px) {
  .numbers .number-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .numbers .digits { height: 68px; }
  .numbers .digit { width: 44px; height: 68px; }
  .numbers .digit-narrow { width: 23px; }
  .numbers .digits small { font-size: 1rem; }
}

/* 画面に入ったときの動き */
.numbers .draw-wait .digit-line,
.numbers .draw-in .digit-line { stroke-dasharray: 1.02 1.02; }
.numbers .draw-wait .digit-line { stroke-dashoffset: 1.02; }
.numbers .draw-wait .digit-fill,
.numbers .draw-wait .digit-wave,
.numbers .draw-wait .digits small,
.numbers .draw-wait .number-label { opacity: 0; }
.numbers .draw-in .digit-line { animation: digit-draw 1.2s cubic-bezier(0.6, 0, 0.3, 1) var(--d) both; }
.numbers .draw-in .digit-fill { animation: digit-fill 0.6s ease-out calc(var(--d) + 0.8s) both; }
.numbers .draw-in .digit-wave,
.numbers .draw-in .digits small,
.numbers .draw-in .number-label { animation: digit-pop 0.5s ease-out calc(var(--d) + 1s) both; }
@keyframes digit-draw {
  from { stroke-dashoffset: 1.02; }
  99% { stroke-dasharray: 1.02 1.02; stroke-dashoffset: 0; }
  /* 描き終わったら破線をやめる（閉じた形の描き始めに、細い欠けを残さない） */
  to { stroke-dasharray: none; stroke-dashoffset: 0; }
}
@keyframes digit-fill {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes digit-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes number-twinkle {
  0%, 100% { opacity: 0.3; scale: 0.8; }
  50% { opacity: 1; scale: 1.15; }
}
@media (prefers-reduced-motion: reduce), print {
  .numbers .number-list li::after { animation: none; }
  .numbers .draw-wait .digit-line, .numbers .draw-in .digit-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .numbers .draw-wait .digit-fill, .numbers .draw-wait .digit-wave, .numbers .draw-wait .digits small, .numbers .draw-wait .number-label,
  .numbers .draw-in .digit-fill, .numbers .draw-in .digit-wave, .numbers .draw-in .digits small, .numbers .draw-in .number-label { opacity: 1; animation: none; }
}

/* 会員の登録、ログイン、マイページ（2026-11-22） */
.member { max-width: 640px; margin: 0 auto; padding-bottom: 40px; display: grid; gap: 20px; }
.member .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.member .page-title, .member .lead { margin-bottom: 0; }
.member-actions { display: grid; gap: 12px; }
.member-message { margin: 0; min-height: 1.5em; color: var(--muted); }
.member-notice { margin: 0; padding: 12px 14px; border-left: 4px solid #b3261e; background: #fdf0ee; color: #6b1a14; }
.member-notice ul { margin: 8px 0; padding-left: 1.2em; }
.member-done { margin: 0; padding: 12px 14px; border-left: 4px solid #2e7d32; background: #eef7ee; color: #1b4d1f; }
.member-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.member-links a { display: block; min-height: 44px; line-height: 44px; }
.member-passkeys { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.member-passkey-name { margin: 0; font-weight: 600; }
.member button[disabled] { opacity: 0.6; cursor: progress; }
/* LINE の緑。白い文字で読めるよう、少し濃くする（コントラスト 4.5 以上）。 */
.button.line { background: #06833a; color: #fff; text-align: center; }
.button.danger { background: #b3261e; color: #fff; }
.member-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 18px; }
.member-steps li { display: grid; gap: 6px; }
.member-steps li p { margin: 0; }
.member-steps li.done .member-step-title { color: var(--muted); }
.member-step-title { font-weight: 600; }
.member-badge { margin-left: 8px; padding: 1px 8px; background: #eef7ee; color: #1b4d1f; font-size: 0.8rem; font-weight: 600; }
.member-fortune { margin: 0 0 8px; font-size: 1.15rem; font-weight: 600; }
.member-birth { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; border: 0; }
.member-birth legend { margin-bottom: 8px; font-weight: 600; }
.member-birth label { display: flex; align-items: center; gap: 6px; }
.member-birth select { min-height: 48px; padding: 8px; border: 1px solid #cfc3b2; background: var(--card); color: var(--fg); font-size: 1rem; }
