/* ishimura-style.com — ui-design-formats「editorial-magazine」を下敷きにした3ページ。
   テンプレからの逸脱（理由）:
   - アクセントは深紅バリアント #a3231f（テンプレ§4の差し替え案）。紹介動画のオレンジ系に寄せるため。
   - 2026-10-28 ペルソナレビュー（7人・AI臭さ40点）の指摘で、各欄の帯（No./柱/年）・巨大な英字の題字・縦書き・
     ドロップキャップ・大きな引用符・英字ラベルをやめた。英字の題字はナビとフッターだけ。
   - キャプション・ラベル 11〜12px → 16px、本文 16px → 17px（DADS の下限14px＋年配の方も読むため）。
   - スクロールで出す演出は入れない（読み込み時の stagger だけ。JS 不要の CSS アニメ）。 */
:root {
  --paper: #f6f1e7;
  --paper-deep: #ece4d4;
  --ink: #1a1714;
  --ink-muted: #5a5248;
  --ink-faint: #6b6259;
  --accent: #a3231f;
  --accent-light: #f0a8a4;
  --rule: #1a1714;
  --rule-hair: rgba(26, 23, 20, 0.22);
  /* 外部フォントは読まない（NEW-SITE-POLICY 2026-10-28）。端末にある書体だけで組む */
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --font-display: var(--font-sans);
  --font-heading: var(--font-sans);
  --font-body: var(--font-sans);
  --font-caption: var(--font-sans);
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px;
  --space-5: 64px; --space-6: 104px;
  --space-7: clamp(56px, 7vw, 96px);
  --gutter: clamp(20px, 5vw, 72px);
  --dur-micro: 200ms;
  --dur-reveal: 700ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-weight: 400; font-size: 17px;
  line-height: 1.9; letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; font-feature-settings: "palt" 1; word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.35; letter-spacing: 0.04em; }
h2 { font-size: clamp(26px, 3.5vw, 38px); line-height: 1.45; letter-spacing: 0.05em; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.55; letter-spacing: 0.05em; }

p { max-width: 36em; text-wrap: pretty; }
.nw { white-space: nowrap; }
.lede { font-weight: 500; font-size: 19px; letter-spacing: 0.05em; line-height: 1.9; }
.caption { font-family: var(--font-caption); font-size: 17px; line-height: 1.7; letter-spacing: 0.04em; color: var(--ink); }

a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--paper); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 12px 20px; background: var(--ink); color: var(--paper);
  font-family: var(--font-caption); font-size: 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.page-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 32px);
  max-width: 1360px; margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--space-7); }
.section-deep { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-title { grid-column: 1 / -1; margin-bottom: var(--space-4); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.section-dark .section-title { border-bottom-color: var(--paper); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--rule); background: var(--paper);
}
.nav__logo {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
}
.nav__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; font-family: var(--font-caption); font-size: 16px; font-weight: 500; letter-spacing: 0.06em; }
.nav__links a { text-decoration: none; padding-block: 10px; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }

.nav-mobile { display: none; }
.nav-mobile > summary {
  list-style: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink); cursor: pointer;
  font-family: var(--font-caption); font-size: 16px; font-weight: 500; white-space: nowrap;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary svg { width: 22px; height: 22px; }
.nav-mobile[open] > summary .i-open { display: none; }
.nav-mobile:not([open]) > summary .i-close { display: none; }
.nav-sheet {
  position: absolute; top: 56px; right: 0; z-index: 60;
  min-width: 240px; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--accent); padding: 8px;
}
.nav-sheet a {
  padding: 14px 12px; border-bottom: 1px solid var(--rule-hair);
  font-family: var(--font-caption); font-size: 17px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--ink); text-decoration: none;
}
.nav-sheet a:last-child { border-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 16px 28px;
  border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
  font-family: var(--font-caption); font-size: 17px; font-weight: 500; letter-spacing: 0.06em;
  transition: background-color var(--dur-micro) var(--ease-inout), color var(--dur-micro) var(--ease-inout);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); }
.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- hero ---------- */
.hero { padding-top: var(--space-4); padding-bottom: var(--space-5); }
.hero__grid { row-gap: 0; grid-template-rows: 1fr auto auto 1fr; }
.hero__title { grid-column: 1 / 8; grid-row: 1; align-self: end; }
.app-more > summary { font-size: 18px; }
.app-more > summary::before { content: "＋"; margin-right: 8px; }
.app-more[open] > summary::before, .more-photos[open] > summary::before { content: "－"; }
.more-photos > summary::before { content: "＋"; margin-right: 8px; }
.app-more__body figure:not(.app-more__wide) { max-width: 390px; }
.app-more .caption:last-child { margin-top: var(--space-2); }
.hero__figure { grid-column: 8 / 13; grid-row: 1 / 5; align-self: start; }
.hero__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__figure--wide { grid-column: 7 / 13; }
.hero__figure--wide ~ .hero__lede, .hero__grid:has(.hero__figure--wide) .hero__title { align-self: center; }
.hero__grid:has(.hero__figure--wide) { grid-template-rows: 1fr; align-items: center; }
.hero__grid:has(.hero__figure--wide) .hero__figure--wide { grid-row: 1; }
.hero__grid:has(.hero__figure--wide) .hero__figure--wide figcaption { margin-top: 10px; }
.hero__figure--wide img { aspect-ratio: 3 / 2; }
.hero__figure figcaption { margin-top: 18px; }
.hero__lede { grid-column: 1 / 8; grid-row: 2; margin-top: var(--space-3); }
.hero__meta { grid-column: 1 / 8; grid-row: 3; margin-top: var(--space-2); font-family: var(--font-caption); font-size: 16px; letter-spacing: 0.04em; color: var(--ink-muted); }
.hero__cta { grid-column: 1 / 8; grid-row: 4; margin-top: var(--space-4); align-self: start; }

/* 読み込み時の stagger（CSS だけ。動きを減らす設定では止まる） */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.rise { animation: rise var(--dur-reveal) var(--ease-out) both; }
.d1 { animation-delay: 0ms; } .d2 { animation-delay: 90ms; } .d3 { animation-delay: 180ms; }
.d4 { animation-delay: 270ms; } .d5 { animation-delay: 360ms; }
.unveil { animation: unveil 900ms var(--ease-out) 200ms both; }

/* ---------- movie ---------- */
.movie__player { grid-column: 1 / 6; }
.movie__player video { width: 100%; aspect-ratio: 9 / 16; background: var(--ink); border: 1px solid var(--ink); }
.movie__text { grid-column: 6 / 13; align-self: end; }
.speed { margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--rule-hair); }
.speed__label { font-family: var(--font-caption); font-size: 16px; font-weight: 500; letter-spacing: 0.06em; }
.speed__buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.speed button {
  min-height: 48px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--font-caption); font-size: 17px; font-weight: 500; letter-spacing: 0.04em;
}
.speed button:hover { background: var(--paper-deep); }
.speed button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- profile ---------- */
.profile__list { grid-column: 1 / 7; }
.profile__list div {
  display: grid; grid-template-columns: 5em 1fr; gap: 16px;
  padding-block: 16px; border-bottom: 1px solid var(--rule-hair);
}
.profile__list dt { font-family: var(--font-caption); font-size: 17px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink); padding-top: 3px; }
.profile__list dd { font-size: 18px; }
.profile__list .ruby { display: block; font-family: var(--font-caption); font-size: 17px; color: var(--ink); letter-spacing: 0.06em; }
.profile__episodes { grid-column: 8 / 13; }
.profile__episodes h3 { margin-bottom: var(--space-2); }
.profile__episodes p { font-size: 18px; }
.profile__app { grid-column: 1 / -1; margin-top: var(--space-6); max-width: 900px; }
.profile__app h3 { margin-bottom: var(--space-2); }
.profile__app > p { font-size: 18px; }
.hero__jump { display: inline-flex; flex-wrap: wrap; gap: 4px 20px; margin-left: 20px; vertical-align: middle; }
.hero__jump a { font-family: var(--font-caption); font-size: 17px; font-weight: 500; text-underline-offset: 5px; text-decoration-color: var(--accent); padding-block: 10px; }
.hero__jump--hub { grid-column: 1 / 7; grid-row: 2; display: none; margin: var(--space-2) 0 0; }
.pr { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--ink); font-size: 14px; font-weight: 700; line-height: 1.5; }
.more-photos { grid-column: 1 / -1; margin-top: var(--space-4); }
.more-photos .gallery { margin-top: var(--space-4); }
.app-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: var(--space-3); align-items: start; }
.app-pair img { width: 100%; border: 1px solid var(--rule-hair); background: #fff; }
.app-pair figcaption { margin-top: 8px; }
.app-more__ai { max-width: 350px; }
.app-block { grid-column: 1 / 10; }
.app-block > p { font-size: 18px; }
.app-block__ai { max-width: 350px; margin-top: var(--space-3); }
.app-block__ai img, .app-more__body img { width: 100%; border: 1px solid var(--rule-hair); background: #fff; }
.app-block__ai figcaption, .app-more__body figcaption { margin-top: 8px; }
.app-more { margin-top: var(--space-3); }
.more-photos > summary, .app-more > summary { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border: 1px solid var(--ink); cursor: pointer; font-family: var(--font-caption); font-size: 17px; font-weight: 500; }
.more-photos[open] > summary { background: var(--ink); color: var(--paper); }
.app-more[open] > summary { background: var(--ink); color: var(--paper); }
.app-more__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: var(--space-3); align-items: start; }
.app-more__wide { grid-column: 1 / -1; }
.app-block > .caption { margin-top: var(--space-2); }
.app-grid { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); gap: 24px; margin-top: var(--space-3); align-items: start; }
.app-grid figure img { width: 100%; border: 1px solid var(--rule-hair); background: #fff; }
.app-grid figcaption { margin-top: 8px; }
.app-grid__side { display: grid; gap: 24px; }
.app-grid__wide { grid-column: 1 / -1; }
.song__player { grid-column: 1 / 10; }
.song__player video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); }
.song__player .caption { margin-top: 10px; }
.app-shots { display: flex; flex-wrap: wrap; gap: 24px; margin-top: var(--space-3); align-items: flex-start; }
.app-shots figure { flex: 1 1 280px; max-width: 390px; border: 1px solid var(--rule-hair); background: #fff; }
.app-shots img { width: 100%; }
.profile__app .caption { margin-top: 10px; }
.app-credit { margin-top: var(--space-3); font-size: 17px; }
.app-credit a { text-underline-offset: 4px; text-decoration-color: var(--accent); }
.profile__episodes ul { list-style: none; }
.profile__episodes li { padding-block: 12px; border-bottom: 1px solid var(--rule-hair); font-size: 18px; }

/* ---------- story ---------- */
.story__text { grid-column: 1 / 5; }
.story__text p { font-size: 18px; }
.story__text p + p { margin-top: 1em; }
.story__go { grid-column: 1 / 5; }
.story__go ul { list-style: none; margin-top: var(--space-2); border-top: 1px solid var(--rule-hair); }
.story__go li { padding-block: 12px; border-bottom: 1px solid var(--rule-hair); font-size: 18px; }
.story__go h3 { margin-bottom: var(--space-2); }
.story__go p { font-size: 18px; }
.story__photo { align-self: start; }
.story__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story__photo figcaption { margin-top: 10px; }
.story__photo--cycle { grid-column: 5 / 9; }
.story__photo--rokko { grid-column: 9 / 13; }
.story__cambodia { grid-column: 1 / 7; margin-top: var(--space-6); }
.story__thanks { grid-column: 7 / 13; margin-top: var(--space-6); }
.story__words { grid-column: 1 / 7; margin-top: var(--space-6); }
.story__words ul { list-style: none; margin-top: var(--space-2); border-top: 1px solid var(--rule-hair); }
.story__words li { padding-block: 12px; border-bottom: 1px solid var(--rule-hair); font-family: var(--font-heading); font-weight: 600; font-size: 20px; letter-spacing: 0.06em; }
.story__cambodia h3, .story__thanks h3 { margin-bottom: var(--space-2); }
.story__cambodia p + p, .story__thanks p + p { margin-top: 1em; }

/* ---------- slider（写真のスライドショー） ---------- */
.slider { grid-column: 1 / 6; }
.slider__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-deep); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1400ms cubic-bezier(0.45, 0, 0.25, 1), visibility 0s linear 1400ms; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1000ms cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0s linear 0s; }
.slide img { width: 100%; height: calc(100% - 44px); object-fit: cover; }
.slide figcaption { height: 44px; display: flex; align-items: center; margin: 0; padding-inline: 2px; background: var(--paper); }
.slider-controls { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.slider-arrow, .slider-toggle { display: inline-flex; width: 48px; height: 48px; padding: 0; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.slider-arrow:hover, .slider-toggle:hover:not(:disabled) { background: var(--paper-deep); }
.slider-arrow svg, .slider-toggle svg { width: 22px; height: 22px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.slider-toggle { margin-left: 12px; }
.slider-toggle svg rect, .slider-toggle svg path { fill: currentColor; stroke: none; }
.slider-toggle:disabled { cursor: default; opacity: .5; }
.slider-toggle[data-slider-state="paused"] .slider-pause-icon, .slider-toggle[data-slider-state="playing"] .slider-play-icon { display: none; }
.slider-status { margin: 0 4px; min-width: 3.5em; text-align: center; font-family: var(--font-caption); font-size: 17px; font-weight: 500; }

/* ---------- gallery ---------- */
.gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) clamp(16px, 2.5vw, 32px); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery__item figcaption { margin-top: 10px; }
.gallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- doors (family top) ---------- */
.door { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.door__figure { display: block; overflow: hidden; }
.door__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--ease-out); }
.door:hover .door__figure img { transform: scale(1.03); }
.door__name { font-size: clamp(26px, 3vw, 34px); line-height: 1.4; letter-spacing: 0.08em; }
.door__name a { text-decoration: none; }
.door__name a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.door__name .ruby { display: block; font-family: var(--font-caption); font-size: 16px; font-weight: 400; letter-spacing: 0.06em; color: var(--ink-muted); }
.door__text { margin-top: var(--space-2); font-size: 18px; }
.door__cta { margin-top: var(--space-3); }

/* ---------- closing / footer ---------- */
.closing { padding-top: var(--space-5); }
.closing__title { grid-column: 1 / 11; font-size: clamp(28px, 4vw, 44px); line-height: 1.4; letter-spacing: 0.04em; }
.closing__title--small { font-size: clamp(24px, 3vw, 32px); }
.closing__text { grid-column: 1 / 9; margin-top: var(--space-3); font-size: 19px; }
.closing__sign { grid-column: 1 / 9; margin-top: var(--space-2); font-family: var(--font-heading); font-weight: 700; font-size: 20px; letter-spacing: 0.2em; }
.closing__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: var(--space-4); }
.textlink { font-family: var(--font-caption); font-size: 18px; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); padding-block: 10px; }
.textlink:hover { color: var(--accent); }

.footer {
  background: var(--paper); color: var(--ink);
  border-top: 1px solid var(--rule-hair);
  padding: var(--space-4) var(--gutter);
}
.footer__inner { max-width: 1360px; margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.footer__mark { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: 0.02em; }
.footer__meta { font-family: var(--font-caption); font-size: 16px; letter-spacing: 0.04em; line-height: 2; text-align: right; }
.footer a { color: var(--ink); text-underline-offset: 4px; }
.footer a:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; }
.notfound h1 { grid-column: 1 / 10; }
.notfound p { grid-column: 1 / 8; margin-top: var(--space-3); }
.notfound .btn { grid-column: 1 / 8; justify-self: start; margin-top: var(--space-4); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .movie__player { grid-column: 1 / 7; }
  .movie__text { grid-column: 7 / 13; }
  .profile__list { grid-column: 1 / 8; }
  .profile__episodes { grid-column: 8 / 13; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav-mobile { display: block; position: relative; }
  .door { grid-column: 1 / -1; }
  .door + .door { margin-top: var(--space-5); }
}
@media (max-width: 720px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .page-grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .hero { padding-top: var(--space-4); }
  .hero__figure { margin-top: var(--space-3); max-width: 420px; }
  .hero__figure--wide { max-width: none; }
  .hero__lede { margin-top: var(--space-3); }
  .hero__cta { margin-top: var(--space-3); }
  .movie__player { max-width: 400px; width: 100%; margin-inline: auto; }
  .movie__text { margin-top: var(--space-4); }
  .profile__list div { grid-template-columns: 1fr; gap: 2px; }
  .profile__episodes { margin-top: var(--space-5); }
  .story__photo { margin-top: var(--space-4); max-width: 420px; }
  .story__cambodia, .story__thanks, .story__words { margin-top: var(--space-5); }
  .hero__cta .btn, .door__cta .btn { width: 100%; justify-content: center; }
  .gallery, .gallery--two { grid-template-columns: minmax(0, 1fr); }
  .slider { max-width: 420px; }
  .app-grid, .app-more__body, .app-pair { grid-template-columns: minmax(0, 1fr); }
  .hero__jump { display: flex; margin: 12px 0 0; }
  .hero__jump--hub { display: flex; }
  .movie__text { align-self: start; }
  .app-grid__ai { max-width: 350px; }
  .gallery__item { max-width: 420px; }
  .door { grid-template-columns: minmax(0, 1fr); }
  .door__figure { max-width: 420px; }
  .door__body { margin-top: var(--space-3); }
  .closing__title { font-size: clamp(36px, 11vw, 64px); }
  .footer__meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
