:root {
  --navy: #12233A;
  --paper: #F5F4F2;
  --white: #FFFFFF;
  --gray: #6B6F76;
  --line: #D9D7D2;
  --accent: #C8753A;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #E9E7E3;
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.8;
}
.page {
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper);
  overflow-x: hidden;
}
.part img { display: block; width: 100%; height: auto; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
h1, h2, h3, .headline { word-break: auto-phrase; text-wrap: balance; line-break: strict; }

/* ---- 悩み：カルーセル ---- */
.part--pain { background: var(--paper); }
.traps { padding: 4px 0 8px; }
.traps__hint {
  margin: 0 6% 12px;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: .04em;
}
.traps__hint span { color: var(--accent); }
.traps__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 18px 6% 18px;
  scroll-padding: 0 6%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
}
.traps__track::-webkit-scrollbar { display: none; }
.traps__track:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.trap {
  position: relative;
  flex: 0 0 76%;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px 22px 26px;
  min-height: 200px;
}
.trap__no {
  position: absolute;
  top: -14px; left: -1px;
  width: 44px; height: 40px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: .04em;
}
.trap__title {
  margin: 4px 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: .06em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.trap__text {
  margin: 0;
  font-size: 16px;
  color: var(--gray);
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
.traps__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
}
.traps__btn {
  width: 44px; height: 44px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
}
.traps__btn:disabled { opacity: .3; cursor: default; }
.traps__count { font-family: var(--serif); font-size: 15px; letter-spacing: .08em; min-width: 52px; text-align: center; }
.traps__close {
  margin: 36px 6% 0;
  padding-bottom: 64px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 5.4vw, 28px);
  line-height: 1.7;
  letter-spacing: .06em;
}
.bridge {
  margin: 0 6%;
  padding: 8px 0 56px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 4.8vw, 24px);
  line-height: 1.75;
  letter-spacing: .06em;
}
.traps__close .rule, .bridge .rule { display: block; width: 72px; height: 1px; background: var(--navy); margin-bottom: 18px; }

.foot {
  background: #132339;
  color: #D8DCE2;
  text-align: center;
  font-size: 12px;
  padding: 20px 0 28px;
}
.foot p { margin: 0; }

/* ---- 見せ場：FVを静かに表示 ---- */
.part--fv img { animation: fvIn 1.2s ease both; }
@keyframes fvIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .part--fv img { animation: none; }
  .traps__track { scroll-behavior: auto; }
}
@media (min-width: 600px) {
  body { padding: 24px 0; }
  .trap { flex-basis: 70%; }
}

.bridge { word-break: keep-all; overflow-wrap: anywhere; }

/* ---- 目次（PCだけ表示） ---- */
.toc { display: none; }

/* ---- PC：左に目次、右に本文の2段組み ---- */
@media (min-width: 1024px) {
  html { scroll-behavior: smooth; }
  body { padding: 0; }
  .shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 640px);
    justify-content: center;
    column-gap: clamp(48px, 6vw, 112px);
  }
  .page { max-width: none; margin: 0; }
  .part { scroll-margin-top: 0; }

  .toc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 40px 0;
  }
  .toc__label {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: .28em;
    color: var(--navy);
  }
  .toc__title {
    margin: 0 0 36px;
    font-family: var(--serif);
    font-weight: 300;
    font-size: 32px;
    letter-spacing: .12em;
    line-height: 1.4;
  }
  .toc__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .toc__list li { border-bottom: 1px solid var(--line); }
  .toc__list a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 9px 4px;
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: .06em;
    line-height: 1.6;
    transition: color .2s;
  }
  .toc__list a span {
    flex: 0 0 22px;
    font-family: var(--serif);
    font-size: 12px;
    color: var(--gray);
  }
  .toc__list a:hover, .toc__list a:focus-visible { color: var(--navy); }
  .toc__list a.is-current { color: var(--navy); }
  .toc__list a.is-current span { color: var(--accent); }
  .toc__list a.is-current::after {
    content: "";
    margin-left: auto;
    align-self: center;
    width: 18px; height: 1px;
    background: var(--accent);
  }
  .toc__company { margin: 32px 0 0; font-size: 12px; color: var(--gray); letter-spacing: .08em; }

  /* 悩みのカード：PCではスライドさせず、2列で全部見せる */
  .traps__hint, .traps__nav { display: none; }
  .traps__track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px 18px;
    overflow: visible;
    padding: 22px 6% 8px;
  }
  .trap { min-height: 0; padding: 34px 22px 24px; }
  .trap__title { font-size: 20px; }
  .trap__text { font-size: 15px; }
  .traps__close { font-size: 26px; }
  .bridge { font-size: 22px; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
