/* 117 結い処 てまり — K07 目次が横に固定された読み物。色と書体は共通の13変数だけ。動きの主役はメインビジュアルの寄り（CSSだけ） */
:root {
  --c-bg: #fff5f6;
  --c-bg-alt: #ffe6ec;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #f0a9bc;
  --c-accent: #c21d4a;
  --c-accent-text: #b81e45;
  --c-on-accent: #ffffff;
  --c-2: #ff5c8a;
  --c-3: #3a1420;
  --font-ja: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-head: "Yusei Magic", "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-en: "Cherry Bomb One", "Yusei Magic", "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --header-h: 64px;
  --toc-bar: 52px;
}
/* 地の色が変わる面は、同じ名前の変数を全部上書きする */
.t-pink { --c-bg: #ff5c8a; --c-bg-alt: #ff5c8a; --c-text: #3a1420; --c-sub: #3a1420; --c-line: #3a1420; --c-accent: #3a1420; --c-accent-text: #3a1420; --c-on-accent: #ffffff; }
.t-blush { --c-bg: #ffd1dc; --c-bg-alt: #ffd1dc; --c-text: #374151; --c-sub: #4b5563; --c-line: #c21d4a; --c-accent: #c21d4a; --c-accent-text: #b81e45; --c-on-accent: #ffffff; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--toc-bar) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-ja); font-size: 16px; line-height: 2; overflow-x: hidden; }
figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dd, dt, li { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 40; background: var(--c-bg); border-bottom: 3px solid var(--c-3); }
.header__inner { height: var(--header-h); padding: 0 20px; display: flex; align-items: center; gap: 10px; position: relative; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--c-3); white-space: nowrap; flex: none; min-height: 44px; }
.logo__ja { font-family: var(--font-head); font-size: 20px; line-height: 1.2; }
.s-ball { fill: var(--c-2); stroke: var(--c-3); stroke-width: 2; } .s-str { stroke: var(--c-bg); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 3px solid var(--c-3); background: var(--c-accent); color: var(--c-on-accent); font-family: var(--font-ja); font-weight: 700; font-size: 16px; line-height: 1.3; text-decoration: none; white-space: nowrap; flex: none; box-shadow: 0 4px 0 var(--c-3); cursor: pointer; }
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--c-3); }
.btn--line { background: var(--c-bg); color: var(--c-accent-text); }
.btn--lg { min-height: 56px; padding: 0 30px; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 18px; }
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--c-3); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 24px; height: 3px; border-radius: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -8px; } .spmenu__bar::after { top: 8px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; right: 12px; top: calc(100% + 6px); width: min(calc(100% - 24px), 340px); background: var(--c-bg); border: 3px solid var(--c-3); border-radius: 24px; box-shadow: 0 5px 0 var(--c-3); padding: 6px 20px 10px; display: flex; flex-direction: column; z-index: 50; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-3); text-decoration: none; border-bottom: 2px dotted var(--c-line); }
.spmenu__nav a:last-child { border-bottom: 0; }

.en { font-family: var(--font-en); font-size: 15px; letter-spacing: .1em; color: var(--c-accent-text); line-height: 1.5; margin-bottom: 8px; }

/* ===== メインビジュアル（分割3枚。A07：写真がゆっくり寄る） ===== */
.hero { padding: 28px 20px 40px; display: grid; gap: 26px; max-width: 1240px; margin: 0 auto; }
.hero__text h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(44px, 13vw, 64px); line-height: 1.25; color: var(--c-3); margin-bottom: 14px; }
.hero__lead { margin-bottom: 20px; }
.windows { position: relative; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px; align-items: end; }
.win { position: relative; overflow: hidden; border: 3px solid var(--c-3); border-radius: 999px 999px 18px 18px; background: var(--c-bg-alt); }
.win img { width: 100%; height: 100%; object-fit: cover; animation: slowzoom 7s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.win--1 { aspect-ratio: 3 / 5; } .win--2 { aspect-ratio: 3 / 4; margin-bottom: 18px; } .win--3 { aspect-ratio: 3 / 4.6; }
.win--2 img { animation-delay: .9s; } .win--3 img { animation-delay: 1.8s; }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.sticker { position: absolute; left: 50%; top: -10px; width: 64px; height: 64px; margin: 0 0 0 -32px; border-radius: 50%; background: var(--c-bg); border: 3px solid var(--c-3); display: grid; place-items: center; transform: rotate(8deg); }
.s-flower circle { fill: var(--c-2); stroke: var(--c-3); stroke-width: 1.4; } .s-core { fill: var(--c-bg); stroke: var(--c-3); stroke-width: 1.4; }

/* ===== 読み物＋目次（K07） ===== */
.read { max-width: 1240px; margin: 0 auto; }
.toc { position: sticky; top: var(--header-h); z-index: 20; background: var(--c-bg-alt); border-top: 3px solid var(--c-3); border-bottom: 3px solid var(--c-3); }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: var(--toc-bar); padding: 0 20px; font-weight: 700; color: var(--c-3); }
.toc summary::-webkit-details-marker { display: none; }
.toc__lead { font-family: var(--font-head); font-weight: 400; font-size: 17px; background: var(--c-3); color: var(--c-bg); border-radius: 999px; padding: 2px 14px; line-height: 1.6; }
.toc__now { flex: 1; font-size: 16px; }
.toc__chev { width: 12px; height: 12px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); margin-right: 4px; margin-top: -4px; }
.toc[open] .toc__chev { transform: rotate(-135deg); margin-top: 4px; }
.toc__list { padding: 4px 20px 8px; }
.toc__list a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--c-3); text-decoration: none; border-bottom: 2px dotted var(--c-line); }
.toc__list li:last-child a { border-bottom: 0; }
.toc__list a span { font-family: var(--font-en); font-size: 15px; color: var(--c-accent-text); min-width: 28px; }
.toc__list a[aria-current="true"] { font-weight: 700; }
.toc__btn { display: none; }
.js .toc__list { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-bg-alt); border-bottom: 3px solid var(--c-3); }

.read__body { padding: 36px 20px 48px; max-width: 760px; margin: 0 auto; }
.ch { padding-bottom: 48px; }
.ch__no { font-family: var(--font-en); font-size: 56px; line-height: 1; color: var(--c-accent-text); margin-bottom: 4px; }
.h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(30px, 8vw, 40px); line-height: 1.35; color: var(--c-3); margin-bottom: 14px; }
.lede { font-family: var(--font-head); font-size: 20px; line-height: 1.7; color: var(--c-accent-text); margin-bottom: 16px; }
.ch p + p { margin-top: 1em; }
.pull { margin: 28px -4px; padding: 22px 22px 18px; background: var(--c-bg); color: var(--c-text); border: 3px solid var(--c-3); border-radius: 28px; box-shadow: 0 6px 0 var(--c-3); transform: rotate(-1.2deg); }
.pull p { font-family: var(--font-head); font-size: 22px; line-height: 1.6; }
.pull footer { margin-top: 6px; font-size: 15px; font-weight: 700; }
.note { margin-top: 12px; font-size: 15px; color: var(--c-sub); }

/* メニュー：数字の穴に写真（F05。二色刷り） */
.menu { display: grid; gap: 28px; margin-top: 10px; }
.menu__item { display: grid; gap: 4px; }
.digit { font-family: var(--font-en); font-size: clamp(92px, 26vw, 128px); line-height: 1.1; color: transparent; background-size: cover; background-position: center; -webkit-background-clip: text; background-clip: text; filter: brightness(.8) contrast(1.9) url(#duo); width: fit-content; }
.digit--a { background-image: url(images/flower.webp); }
.digit--b { background-image: url(images/strip1.webp); }
.digit--c { background-image: url(images/mirror.webp); }
.menu h3 { font-family: var(--font-head); font-weight: 400; font-size: 24px; line-height: 1.4; color: var(--c-3); }
.menu h3 small { margin-left: 10px; font-family: var(--font-ja); font-weight: 700; font-size: 15px; color: var(--c-accent-text); }

.price { border-top: 3px solid var(--c-3); }
.price > div { padding: 14px 0; border-bottom: 2px dotted var(--c-line); }
.price dt { font-weight: 700; color: var(--c-3); }
.price b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 26px; line-height: 1.5; color: var(--c-accent-text); }
.price dd { font-size: 15px; line-height: 1.7; }

.flow { display: grid; gap: 22px; counter-reset: s; }
.flow li { position: relative; padding: 0 0 0 64px; }
.flow__n { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--c-2); color: var(--c-3); border: 3px solid var(--c-3); display: grid; place-items: center; font-family: var(--font-en); font-size: 22px; line-height: 1; }
.flow h3 { font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1.5; color: var(--c-3); }
.flow li::after { content: ""; position: absolute; left: 22px; top: 52px; bottom: -22px; border-left: 3px dotted var(--c-3); }
.flow li:last-child::after { display: none; }

.faq > div { padding: 14px 0; border-bottom: 2px dotted var(--c-line); }
.faq dt { font-weight: 700; color: var(--c-3); padding-left: 2em; text-indent: -2em; }
.faq dt::before { content: "Q."; display: inline-block; width: 2em; text-indent: 0; font-family: var(--font-en); color: var(--c-accent-text); }
.faq dd { padding-left: 2em; }

.ch--last { padding: 32px 22px; border: 3px solid var(--c-3); border-radius: 32px; background: var(--c-bg); box-shadow: 0 6px 0 var(--c-3); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 20px; }
.info > div { padding: 10px 0; border-top: 2px dotted var(--c-line); }
.info dt { font-size: 15px; font-weight: 700; color: var(--c-accent-text); line-height: 1.6; }
.info dd { line-height: 1.7; }

.footer { padding: 32px 20px 40px; text-align: center; background: var(--c-3); color: var(--c-bg); font-size: 15px; }
.footer__logo { font-family: var(--font-head); font-size: 20px; }
.footer__fiction { margin-top: 6px; }

@media (min-width: 768px) {
  .header__inner { padding: 0 40px; }
  .hero { padding: 40px 40px 56px; }
  .windows { gap: 16px; }
  .sticker { width: 76px; height: 76px; margin-left: -38px; }
  .read__body { padding: 40px 40px 64px; }
  .menu__item { grid-template-columns: minmax(200px, 280px) 1fr; align-items: center; gap: 24px; }
}

/* PC：目次は左に固定。読み物は右の1列 */
@media (min-width: 1080px) {
  .spmenu { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 40px; }
  .hero__text { display: flex; align-items: flex-start; gap: 28px; }
  .hero__text h1 { writing-mode: vertical-rl; font-size: 76px; line-height: 1.2; margin: 0; flex: none; letter-spacing: .06em; }
  .windows { gap: 18px; }
  .read { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 0 40px; align-items: start; }
  .toc { top: calc(var(--header-h) + 28px); border: 3px solid var(--c-3); border-radius: 28px; box-shadow: 0 6px 0 var(--c-3); background: var(--c-bg-alt); margin-top: 28px; z-index: 5; }
  .toc summary { pointer-events: none; padding: 16px 20px 6px; min-height: 0; }
  .toc__now, .toc__chev { display: none; }
  .toc__list, .js .toc__list { position: static; padding: 6px 20px 8px; background: transparent; border: 0; display: block; }
  .toc__list a { min-height: 44px; }
  .toc__list a[aria-current="true"] { color: var(--c-accent-text); }
  .toc__list a[aria-current="true"] span { background: var(--c-accent); color: var(--c-on-accent); border-radius: 999px; text-align: center; padding: 0 4px; }
  .toc__btn { display: flex; margin: 8px 20px 20px; }
  .read__body { padding: 44px 0 72px; margin: 0; max-width: 760px; }
  html { scroll-padding-top: calc(var(--header-h) + 16px); }
}

@media (prefers-reduced-motion: reduce) {
  .win img { animation: none; }
  html { scroll-behavior: auto; }
}
