@charset "UTF-8";

/* ==========================================================================
   STORIES 詳細 — 見開きインタビュー × スクラップブック
   /stories/ の「物語を読む」から遷移する 1 人ぶんの記事ページ。
   構造は 1 カラムの読み物（5問のQ&A）、素材感は一覧ページのテープ・紙・傾き。
   長文の可読性を守るため、回転は写真枠・引用・注記カードにだけ掛ける。
   トークン（--scrap-*）は page-stories.css の .stories-main から継承する。
   ========================================================================== */

.story-detail {
	--story-tape: linear-gradient(180deg, rgba(216, 200, 164, 0.5) 0%, rgba(197, 177, 134, 0.78) 100%);
	--story-hand: 'Yomogi', var(--font-sans-serif);
	--story-hairline: 1px solid rgba(23, 25, 20, 0.18);
	padding-top: 7.2rem;
}

/* 一覧ページ（html.stories-enhanced）と同じヘッダーの見え方に合わせる。
   詳細だけ LINE バッジとスポットライトが復活すると、STORIES の中で
   章が変わったように見えてしまう。 */
body.is-story-detail .l-header__spotlight {
	display: none !important;
}

body.is-story-detail .l-header__nav {
	right: 8rem !important;
}

body.is-story-detail .l-header__nav__list {
	gap: 2rem;
}

body.is-story-detail .l-header__nav__list li:last-child {
	display: none;
}

@media screen and (max-width: 1180px) {
	body.is-story-detail .l-header__nav {
		display: none !important;
	}
}

/* 見出し・プロフィール帯・注記・本文・写真を 1 つの measure に揃える。
   本文カードだけ幅が狭いと、上下の帯とリズムがずれて雑誌の1ページに見えない。 */
.story-detail__inner {
	width: min(96rem, 92vw);
	margin-inline: auto;
	padding: 3.2rem 0 6.4rem;
}

/* ---------- 現在の位置 ---------- */
.story-crumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--font-size10);
	font-weight: 700;
}

.story-crumb li + li::before {
	content: "／";
	margin: 0 1rem;
	color: rgba(23, 25, 20, 0.42);
}

.story-crumb a {
	color: var(--scrap-ink);
	text-decoration: underline;
	text-underline-offset: 0.3rem;
}

.story-crumb a:hover {
	color: var(--scrap-green);
}

.story-crumb [aria-current] {
	color: rgba(23, 25, 20, 0.62);
}

/* ---------- 見出し（ポートレート＋氏名） ---------- */
.story-hero {
	display: grid;
	grid-template-columns: minmax(26rem, 0.42fr) minmax(0, 0.58fr);
	gap: 3rem 4.8rem;
	align-items: center;
	margin: 4rem 0 0;
}

.story-hero__photo {
	position: relative;
	margin: 0;
	padding: 1.4rem 1.4rem 4.8rem;
	background: var(--scrap-paper-strong);
	border: var(--story-hairline);
	box-shadow: 1rem 1.2rem 0 rgba(23, 25, 20, 0.14);
	transform: rotate(-1.4deg);
}

.story-hero__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: #e7e1d5;
}

/* マスキングテープ。写真の紙を留めているだけの装飾。 */
.story-hero__photo::before,
.story-hero__photo::after {
	content: "";
	position: absolute;
	z-index: 2;
	width: 10.4rem;
	height: 2.8rem;
	background: var(--story-tape);
	border-left: 1px solid rgba(255, 255, 255, 0.32);
	border-right: 1px solid rgba(255, 255, 255, 0.32);
}

.story-hero__photo::before {
	top: -1.2rem;
	left: -2.4rem;
	transform: rotate(-26deg);
}

.story-hero__photo::after {
	right: -2.6rem;
	bottom: 3.2rem;
	transform: rotate(-22deg);
}

.story-hero__no {
	position: absolute;
	top: -1.6rem;
	right: -1.6rem;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 7.2rem;
	height: 7.2rem;
	border-radius: 50%;
	background: var(--scrap-vermilion);
	color: #fff;
	font-family: var(--font-sans-serif);
	font-size: var(--font-size20);
	font-weight: 800;
}

.story-hero__label {
	margin: 0 0 1.2rem;
	font-family: var(--font-sans-serif);
	font-size: var(--font-size10);
	font-weight: 800;
	letter-spacing: 0.24em;
	color: var(--scrap-green);
}

.story-hero__name {
	margin: 0;
	font-family: var(--okn-serif);
	font-size: clamp(4rem, 4.4vw, 6.2rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.04em;
}

.story-hero__name::after {
	content: "";
	display: block;
	width: min(32rem, 68%);
	height: 0.6rem;
	margin-top: 1.8rem;
	background: var(--scrap-gold);
}

.story-hero__role {
	margin: 1.6rem 0 0;
	font-size: var(--font-size16);
	font-weight: 700;
}

.story-hero__note {
	margin: 1.4rem 0 0;
	font-family: var(--story-hand);
	font-size: var(--font-size16);
	line-height: 1.8;
	color: var(--scrap-green);
	transform: rotate(-1.1deg);
	transform-origin: left center;
}

/* ---------- プロフィール帯 ---------- */
.story-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	margin: 4.8rem 0 0;
	padding: 2rem 2.8rem;
	background: var(--scrap-paper-strong);
	border: var(--story-hairline);
	box-shadow: 0.7rem 0.8rem 0 rgba(23, 25, 20, 0.1);
	transform: rotate(0.45deg);
}

.story-meta__cell {
	padding: 0.4rem 2.2rem;
	border-left: 1px solid rgba(23, 25, 20, 0.18);
}

.story-meta__cell:first-child {
	padding-left: 0;
	border-left: 0;
}

.story-meta dt {
	font-family: var(--font-sans-serif);
	font-size: var(--font-size10);
	font-weight: 800;
	letter-spacing: 0.12em;
	color: var(--scrap-green);
}

.story-meta dd {
	margin: 0.7rem 0 0;
	font-size: var(--font-size15);
	font-weight: 800;
}

/* ---------- 掲載イメージの注記 ---------- */
.story-alert {
	margin: 3.2rem 0 0;
	padding: 2rem 2.4rem;
	background: #efece1;
	border: 1px solid var(--scrap-gold-soft);
	border-left: 0.4rem solid var(--scrap-gold);
	box-shadow: 0.8rem 0.9rem 0 rgba(23, 25, 20, 0.12);
	transform: rotate(-0.7deg);
}

.story-alert strong {
	display: block;
	margin-bottom: 0.8rem;
	font-size: var(--font-size12);
	font-weight: 800;
	letter-spacing: 0.08em;
}

.story-alert p {
	max-width: 58em;
	margin: 0;
	font-size: var(--font-size11);
	line-height: 1.9;
}

/* ---------- 本文：5問のQ&A ---------- */
.story-body {
	width: 100%;
	margin: 5.6rem auto 0;
	padding: clamp(3rem, 3.6vw, 4.8rem) clamp(2.4rem, 3.6vw, 5.2rem);
	background: var(--scrap-paper-strong);
	border: var(--story-hairline);
	box-shadow: 1rem 1.2rem 0 rgba(23, 25, 20, 0.12);
}

.story-qa + .story-qa {
	margin-top: 3.4rem;
	padding-top: 3.4rem;
	border-top: 1px solid rgba(23, 25, 20, 0.16);
}

.story-qa__question {
	display: flex;
	align-items: flex-start;
	gap: 1.4rem;
	margin: 0;
	font-family: var(--okn-serif);
	font-size: clamp(1.8rem, 1.5vw, 2.2rem);
	font-weight: 600;
	line-height: 1.6;
}

.story-qa__mark {
	flex: none;
	display: grid;
	place-items: center;
	width: 3.2rem;
	height: 3.2rem;
	margin-top: 0.2rem;
	border-radius: 50%;
	background: var(--scrap-vermilion);
	color: #fff;
	font-size: var(--font-size14);
	font-weight: 800;
}

/* 5問を通して読ませる本文。サイト共通の小さめ本文サイズだと、この長さでは
   読み進められないので、この記事ページだけ一段大きい設定にする。 */
.story-qa__answer {
	max-width: 52em;
	margin: 1.8rem 0 0;
	padding-left: 4.6rem;
	font-size: var(--font-size15);
	line-height: 2;
}

/* 破れ紙の引用。読みの途中で一度だけ挟む。 */
.story-quote {
	margin: 4.4rem -2.2rem;
	padding: 3.4rem 3.6rem;
	background: var(--scrap-vermilion);
	color: #fff;
	transform: rotate(-0.9deg);
	clip-path: polygon(
		0 7%, 5% 2%, 13% 6%, 24% 1%, 36% 6%, 48% 2%, 59% 6%, 71% 2%, 83% 6%, 93% 2%, 100% 7%,
		100% 93%, 92% 98%, 81% 94%, 69% 99%, 57% 94%, 45% 98%, 33% 94%, 21% 99%, 10% 95%, 0 98%
	);
}

.story-quote p {
	margin: 0;
	font-family: var(--okn-serif);
	font-size: clamp(2rem, 2.1vw, 2.8rem);
	font-weight: 600;
	line-height: 1.7;
}

/* ---------- 写真 ---------- */
.story-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4.8rem 5.2rem;
	width: 100%;
	margin: 6.4rem auto 0;
}

.story-gallery__item {
	position: relative;
	margin: 0;
	padding: 1.2rem 1.2rem 0;
	background: var(--scrap-paper-strong);
	border: var(--story-hairline);
	box-shadow: 0.9rem 1rem 0 rgba(23, 25, 20, 0.12);
}

.story-gallery__item::before {
	content: "";
	position: absolute;
	top: -1.1rem;
	left: 50%;
	z-index: 2;
	width: 9rem;
	height: 2.4rem;
	background: var(--story-tape);
	border-left: 1px solid rgba(255, 255, 255, 0.32);
	border-right: 1px solid rgba(255, 255, 255, 0.32);
	transform: translateX(-50%) rotate(-2.4deg);
}

.story-gallery__item:first-child {
	transform: rotate(-1.5deg);
}

.story-gallery__item:last-child {
	transform: rotate(1.5deg);
}

.story-gallery__item img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background: #e7e1d5;
}

.story-gallery__item figcaption {
	padding: 1.4rem 0.4rem 1.8rem;
	font-family: var(--story-hand);
	font-size: var(--font-size13);
	line-height: 1.75;
}

/* ---------- 連絡先 ----------
   ご本人が「連絡してほしい」と書いている回にだけ出る。読み物の外側に置く
   ものなので、本文の紙とは分けて、名刺を1枚挟んだような扱いにする。
   何を引き受けるかは本文（Q&A）が語っているので、ここは行き先だけ。 */
.story-contact {
	width: 100%;
	margin: 5.6rem auto 0;
	padding: clamp(2.4rem, 2.6vw, 3.2rem) clamp(2.4rem, 3.2vw, 4rem);
	background: var(--scrap-paper-strong);
	border: var(--story-hairline);
	border-top: 0.4rem solid var(--scrap-gold);
	box-shadow: 0.9rem 1rem 0 rgba(23, 25, 20, 0.12);
}

.story-contact__title {
	margin: 0 0 1.6rem;
	font-size: var(--font-size12);
	font-weight: 800;
	letter-spacing: 0.08em;
}

.story-contact__list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.story-contact__list a {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	/* 指で押す的。並んだ行が近すぎると隣を押すので、高さで間を取る。 */
	min-height: 44px;
	padding: 1rem 0;
	/* root は幅に追従する。狭い端末で連絡先だけ読めなくならないよう px の
	   下限を添える（page-business.css の各所と同じ書き方）。 */
	font-size: max(1.5rem, 14px);
	line-height: 1.6;
	/* メールアドレスは折り返せないと、狭い画面で紙からはみ出す。 */
	overflow-wrap: anywhere;
	/* 下線は中の文字にだけ引く。リンク側に引くと、下線が公式マークの下まで
	   走って印が別物に見える（下線は子孫では打ち消せない）。 */
	text-decoration: none;
}

.story-contact__list a span {
	text-decoration: underline;
	text-underline-offset: 0.4rem;
}

/* SNS の公式マーク。字と同じ濃さで、字の高さに合わせる。潰れると別の印に
   見えるので、本文と同じく px の下限を添える。 */
.story-contact__icon {
	flex: none;
	width: max(1.9rem, 17px);
	height: max(1.9rem, 17px);
	fill: currentColor;
}

/*
 * 輪郭で描く印（Instagram）。
 *
 * 塗りと線を SVG の属性（fill="none"）で書いてはいけない。common.min.css の
 * svg{fill:currentColor} は CSS なので、プレゼンテーション属性に必ず勝つ。
 * 属性で書くと無視され、角丸が真っ黒に塗り潰されて別の印に見える（実測）。
 * 同じ罠は theme-okunankai.css:1725 にも書いてある。
 */
.story-contact__icon--line rect,
.story-contact__icon--line circle {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

/* レンズの脇の点だけは塗る。 */
.story-contact__icon--line .story-contact__icon-dot {
	fill: currentColor;
	stroke: none;
}

/* ---------- 前後の物語 ---------- */
.story-pager {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-areas:
		"prev next"
		"index index";
	gap: 2.8rem 3.2rem;
	margin: 7.2rem 0 0;
}

.story-pager__item {
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr);
	grid-template-areas:
		"photo dir"
		"photo name";
	align-content: center;
	column-gap: 1.8rem;
	padding: 1.4rem;
	background: var(--scrap-paper-strong);
	border: 1px solid rgba(23, 25, 20, 0.22);
	box-shadow: 0.8rem 0.9rem 0 rgba(23, 25, 20, 0.12);
	color: var(--scrap-ink);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-pager__item.-prev {
	grid-area: prev;
	transform: rotate(-1.4deg);
}

.story-pager__item.-next {
	grid-area: next;
	grid-template-columns: minmax(0, 1fr) 9rem;
	grid-template-areas:
		"dir photo"
		"name photo";
	text-align: right;
	transform: rotate(1.4deg);
}

.story-pager__item:hover {
	transform: rotate(0) translateY(-0.5rem);
	box-shadow: 1.2rem 1.4rem 0 rgba(23, 25, 20, 0.16);
}

/* 台紙に貼るのは顔写真ではなく、その回の装丁（.story-book は page-stories.css）。 */
.story-pager__item .story-book {
	grid-area: photo;
	align-self: center;
}

/* 本が2行ぶんの高さを決めるので、行なりに置くと向きと名前が上下に離れる。
   境目へ寄せて、ひとかたまりの見出しとして読ませる。 */
.story-pager__dir {
	grid-area: dir;
	align-self: end;
	font-size: var(--font-size9);
	font-weight: 800;
	color: var(--scrap-green);
}

.story-pager__name {
	grid-area: name;
	align-self: start;
	margin-top: 0.6rem;
	font-size: var(--font-size15);
	font-weight: 800;
}

.story-pager__index {
	grid-area: index;
	justify-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 5.2rem;
	padding: 1.2rem 3.2rem;
	border: 2px solid var(--scrap-ink);
	color: var(--scrap-ink);
	font-size: var(--font-size12);
	font-weight: 800;
	transition: background 0.2s ease, color 0.2s ease;
}

.story-pager__index:hover {
	background: var(--scrap-ink);
	color: #fff;
}

.story-crumb a:focus-visible,
.story-pager__item:focus-visible,
.story-pager__index:focus-visible {
	outline: 3px solid var(--scrap-vermilion);
	outline-offset: 4px;
}

/* 深緑の帯の上だけ金。朱の輪郭は深緑に沈んで見えなくなる。 */
.story-detail .scrapbook__join a:focus-visible {
	outline: 3px solid var(--scrap-gold-light);
	outline-offset: 4px;
}

/* ---------- レスポンシブ ---------- */
@media screen and (max-width: 1023px) {
	.story-detail {
		padding-top: 5.8rem;
	}

	.story-hero {
		grid-template-columns: 1fr;
		gap: 3.4rem;
		margin-top: 3.4rem;
	}

	.story-hero__photo {
		width: min(38rem, 100%);
	}

	.story-hero__name::after {
		width: min(28rem, 60%);
	}

	.story-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.8rem 0;
	}

	.story-meta__cell {
		padding: 0.4rem 1.6rem;
	}

	.story-meta__cell:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.story-gallery {
		grid-template-columns: 1fr;
		gap: 4rem;
	}

	.story-gallery__item:first-child,
	.story-gallery__item:last-child {
		transform: none;
	}
}

@media screen and (max-width: 767px) {
	.story-detail__inner {
		width: min(92vw, 58rem);
		padding: 2.6rem 0 5rem;
	}

	.story-hero__photo {
		width: 100%;
		padding-bottom: 3.6rem;
		box-shadow: 0.6rem 0.7rem 0 rgba(23, 25, 20, 0.14);
	}

	.story-hero__no {
		top: -1.2rem;
		right: -1rem;
		width: 6rem;
		height: 6rem;
		font-size: var(--font-size16);
	}

	.story-hero__name {
		font-size: clamp(3.6rem, 11vw, 5rem);
	}

	.story-meta {
		grid-template-columns: 1fr;
		padding: 1.8rem 2rem;
		transform: none;
	}

	.story-meta__cell {
		padding: 1rem 0;
		border-left: 0;
		border-top: 1px solid rgba(23, 25, 20, 0.16);
	}

	.story-meta__cell:first-child {
		padding-top: 0;
		border-top: 0;
	}

	.story-alert {
		box-shadow: 0.5rem 0.6rem 0 rgba(23, 25, 20, 0.12);
		transform: none;
	}

	.story-body {
		margin-top: 4rem;
		box-shadow: 0.6rem 0.7rem 0 rgba(23, 25, 20, 0.12);
	}

	.story-qa__question {
		gap: 1rem;
		font-size: 1.8rem;
	}

	.story-qa__mark {
		width: 2.8rem;
		height: 2.8rem;
	}

	.story-qa__answer {
		max-width: none;
		padding-left: 0;
		font-size: var(--font-size14);
	}

	.story-quote {
		margin-inline: -1.6rem;
		padding: 2.8rem 2.6rem;
	}

	.story-quote p {
		font-size: 2rem;
	}

	.story-gallery {
		margin-top: 4.8rem;
	}

	.story-pager {
		grid-template-columns: 1fr;
		grid-template-areas:
			"prev"
			"next"
			"index";
		gap: 2rem;
		margin-top: 5.4rem;
	}

	.story-pager__item.-prev,
	.story-pager__item.-next {
		transform: none;
	}

	.story-pager__index {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.story-pager__item,
	.story-pager__index {
		transition: none;
	}
}
