@charset "UTF-8";

/*
 * theme-add.css
 *
 * main.css はビルド済みの成果物でテーマ内にソース（Sass等）が存在しないため、
 * 後から追加したマークアップのスタイルはこのファイルに記述する。
 * header.php で main.css の直後に読み込んでいる。
 *
 * ルール:
 * - 既存クラスの上書きは行わない（意図しない箇所へ波及するため）
 * - 新規に追加したコンポーネントのみを対象にする
 */

/* --------------------------------------------------
 * コラム詳細の2カラムレイアウト
 * 2026/08/05 追加
 * -------------------------------------------------- */

/*
 * グリッドの下端がサイドバー追従の停止位置になる。
 * 関連コラムのカード下端で止めたいので、フッターとの余白は
 * グリッドの内側（padding）ではなく外側（margin）に置くこと。
 */
.c-columnLayout {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
	max-width: 1240px;
	padding: 0 20px;
	margin: 0 auto 100px;
}

.c-columnLayout__main {
	min-width: 0;
}

/* 白カードは幅指定を親グリッドに委ねる。右上の角丸は付けない */
.c-columnLayout__main .s-articleDetail__inner {
	max-width: 100%;
	padding: 60px min(60px, 6%);
	margin: 0;
	border-radius: 0;
}

/* グリッド項目の最小幅を0にして、中身が本文幅を超えないようにする */
.c-columnLayout .s-articleDetail__contentArea {
	grid-template-columns: minmax(0, 1fr);
}

.c-columnLayout__side {
	min-width: 0;
}

/*
 * サイドバーをスクロール追従させる。
 *
 * ここでの top はJavaScriptが無効な場合のフォールバック。
 * 実際の top は assets/js/theme-add.js がサイドバーの実測高さから計算して上書きする
 * （「画面の高さ − サイドバーの高さ − 余白」を入れることで、下端が画面下に達した位置で止まる）。
 *
 * 関連コラムを本文カラムに含めているため、追従はグリッド下端＝関連コラムの下で止まる。
 */
@media screen and (width >= 1121px) {
	.c-columnLayout__side {
		position: sticky;
		top: 130px;
	}
}

/*
 * 関連コラム。本文カラム内に置いているため幅は本文と揃う。
 * 下パディングは持たせない（持たせるとサイドバーがカードより下まで伸びる）。
 * デスクトップでは .s-case__btmBtnWrap が display:none のため、カードの下に要素はない。
 */
.s-case.c-relatedColumn {
	padding: 80px 0 0;
}

.c-columnLayout__main .s-case__inner {
	max-width: 100%;
	padding-right: 0;
	padding-left: 0;
}

@media screen and (width <= 1120px) {
	.c-columnLayout {
		grid-template-columns: 1fr;
		gap: 50px;
	}
}

@media screen and (width <= 767px) {
	.c-columnLayout {
		gap: 40px;
		padding: 0 20px;
		margin-bottom: 60px;
	}

	.c-columnLayout__main .s-articleDetail__inner {
		padding: 40px 20px;
	}

	.s-case.c-relatedColumn {
		padding: 50px 0 0;
	}
}

/* --------------------------------------------------
 * 記事上部のアイキャッチ
 * -------------------------------------------------- */

.c-articleEyecatch {
	margin-top: 32px;
	overflow: hidden;
	border-radius: 0 16px 0 0;
}

.c-articleEyecatch__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

@media screen and (width <= 767px) {
	.c-articleEyecatch {
		margin-top: 24px;
	}
}

/* --------------------------------------------------
 * コラムのサイドバー
 * -------------------------------------------------- */

.c-columnSide {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.c-columnSide__block {
	box-sizing: border-box;
}

.c-columnSide__head {
	padding-bottom: 12px;
	margin-bottom: 18px;
	font-size: 18px;
	font-weight: 700;
	line-height: 150%;
	color: #413c32;
	letter-spacing: 0.04em;
	border-bottom: 2px solid #dcd8d0;
}

/* カテゴリ */
.c-sideCategory {
	padding: 0;
	margin: 0;
	list-style: none;
}

.c-sideCategory__item + .c-sideCategory__item {
	border-top: 1px solid #ece7e1;
}

.c-sideCategory__link {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	padding: 12px 2px;
	font-size: 15px;
	line-height: 1.5;
	color: #413c32;
	text-decoration: none;
	transition: color 0.3s ease;
}

.c-sideCategory__link:hover {
	color: #46aa8c;
}

.c-sideCategory__count {
	flex-shrink: 0;
	min-width: 26px;
	padding: 2px 6px;
	font-family: Roboto, sans-serif;
	font-size: 12px;
	color: #645f5a;
	text-align: center;
	background-color: #f8f4f0;
	border-radius: 2px;
}

/* 最新記事 */
.c-sidePosts {
	padding: 0;
	margin: 0;
	list-style: none;
}

.c-sidePosts__item + .c-sidePosts__item {
	padding-top: 16px;
	margin-top: 16px;
	border-top: 1px solid #ece7e1;
}

.c-sidePosts__link {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.c-sidePosts__link:hover {
	opacity: 0.7;
}

.c-sidePosts__imgWrap {
	position: relative;
	overflow: hidden;
	border-radius: 0 8px 0 0;
}

.c-sidePosts__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.c-sidePosts__body {
	min-width: 0;
}

.c-sidePosts__cat {
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	color: #46aa8c;
	letter-spacing: 0.04em;
}

.c-sidePosts__title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	color: #413c32;
}

/* --------------------------------------------------
 * フッターCTAの背景オーバーレイ
 * 2026/08/07 追加
 *
 * 背景写真を明るいものへ差し替えたため、白抜き文字の可読性を確保する。
 * 本ファイルでは既存クラスを上書きしない方針だが、ここは意図した例外。
 *
 * 背景画像 bg-footer-top-cta.webp は main.css の2箇所で使われている。
 *   .c-footerTopCta__contentArea … トップページ（左に地図、右にCTA）
 *   .c-footerCta                 … 下層ページ（全幅のCTA帯）
 * 両方に同じ濃度をかけること。片方だけだとページによって見え方が変わる。
 *
 * .c-footerCta は display:flex だが、::before を position:absolute にしているため
 * フレックスアイテムにはならない。
 * -------------------------------------------------- */

.c-footerTopCta__contentArea,
.c-footerCta {
	position: relative;
	isolation: isolate;
}

.c-footerTopCta__contentArea::before,
.c-footerCta::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(35, 28, 20, 0.5);
	content: "";
}

/* --------------------------------------------------
 * 設備・機材・備品ページの入力内容の警告
 * 2026/08/09 追加
 *
 * 列数の過不足など、入力の取り違えを編集者にだけ知らせる。
 * 一般の来訪者には出さない（テンプレート側で権限を判定している）。
 * -------------------------------------------------- */

.p-equipmentNotice,
.p-flexNotice {
	box-sizing: border-box;
	max-width: 1240px;
	padding: 20px 24px;
	margin: 30px auto 0;
	font-size: 14px;
	line-height: 1.7;
	color: #7a3b1e;
	background-color: #fdf3ec;
	border-left: 4px solid #d9822b;
}

.p-equipmentNotice__head,
.p-flexNotice__head {
	margin-bottom: 8px;
	font-weight: 700;
}

.p-equipmentNotice__list,
.p-flexNotice__list {
	padding-left: 1.2em;
	margin: 0;
}

.p-equipmentNotice__item + .p-equipmentNotice__item,
.p-flexNotice__item + .p-flexNotice__item {
	margin-top: 4px;
}

@media screen and (width <= 767px) {
	.p-equipmentNotice,
	.p-flexNotice {
		padding: 16px;
		margin: 20px 20px 0;
		font-size: 13px;
	}
}

/* --------------------------------------------------
 * 目次（コラム詳細）
 * 2026/08/05 追加
 * -------------------------------------------------- */

.c-toc {
	box-sizing: border-box;
	max-width: 100%;
	margin: 0 0 50px;
	padding: 30px 40px;
	background-color: #f8f4f0;
}

.c-toc__head {
	margin-bottom: 16px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
	color: #413c32;
}

.c-toc__list,
.c-toc__subList {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.c-toc__item,
.c-toc__subItem {
	position: relative;
	padding-left: 1.6em;
	counter-increment: toc;
}

.c-toc__item + .c-toc__item {
	margin-top: 12px;
}

.c-toc__item::before,
.c-toc__subItem::before {
	position: absolute;
	top: 0;
	left: 0;
	color: #aa9687;
	font-weight: 700;
	content: counter(toc) ".";
}

.c-toc__subItem::before {
	content: counter(toc, lower-alpha) ".";
}

.c-toc__subList {
	margin-top: 10px;
	padding-left: 1.2em;
}

.c-toc__subItem + .c-toc__subItem {
	margin-top: 8px;
}

.c-toc__link {
	display: inline-block;
	color: #413c32;
	font-size: 16px;
	line-height: 1.7;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.c-toc__subItem .c-toc__link {
	font-size: 15px;
}

.c-toc__link:hover {
	opacity: 0.6;
	text-decoration: underline;
}

/* 見出しがヘッダーに隠れないようにする */
.s-articleDetail__contentArea--wysiwyg h2[id],
.s-articleDetail__contentArea--wysiwyg h3[id] {
	scroll-margin-top: 100px;
}

@media screen and (max-width: 767px) {
	.c-toc {
		margin-bottom: 30px;
		padding: 20px;
	}

	.c-toc__head {
		margin-bottom: 12px;
		font-size: 18px;
	}

	.c-toc__link {
		font-size: 15px;
	}

	.c-toc__subItem .c-toc__link {
		font-size: 14px;
	}

	.s-articleDetail__contentArea--wysiwyg h2[id],
	.s-articleDetail__contentArea--wysiwyg h3[id] {
		scroll-margin-top: 70px;
	}
}

/* --------------------------------------------------
 * 汎用ページテンプレート（page-flexible.php）
 * 2026/08/10 追加
 *
 * 既存のセクションCSSを最大限そのまま流用しているため、ここに書くのは
 *   1. 既存に無いもの（CTA帯・カード一覧の並び・ギャラリーの横スクロール）
 *   2. 既存のユーティリティが効かない組み合わせの穴埋め
 * の2種類だけ。
 * -------------------------------------------------- */

/* セクションの見出しとリード文。既存の __titleWrap はセクションごとに
   クラス名も余白も違うため、汎用ページでは共通のものを1つ用意する */
.c-flexHead {
	margin-bottom: 40px;
}

.c-flexHead__lead {
	margin-top: 16px;
	font-size: 16px;
	font-weight: 500;
	line-height: 180%;
	letter-spacing: 0.02em;
	white-space: pre-line;
}

@media screen and (width <= 767px) {
	.c-flexHead {
		margin-bottom: 30px;
	}

	.c-flexHead__lead {
		margin-top: 12px;
		font-size: 14px;
		line-height: 160%;
	}
}

/* --- 画像1枚 --- */

.c-flexImage {
	margin: 0;
}

.c-flexImage__caption {
	margin-top: 12px;
	font-size: 14px;
	line-height: 170%;
	color: #645f5a;
}

/*
 * 全幅表示。s-notes__inner の max-width:1240px と padding:0 20px を打ち消す。
 * 100vw ではなく親要素の幅を基準にすると、縦スクロールバーの分だけ横に溢れる。
 */
.c-flexImage.u-wide {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.c-flexImage.u-wide .c-cfList__itemImgWrap {
	border-radius: 0;
}

@media screen and (width <= 767px) {
	.c-flexImage__caption {
		margin-top: 8px;
		font-size: 12px;
	}
}

/* --- 横スクロール領域のスクロールバー ---
 *
 * ギャラリーとSPのカード一覧はネイティブの横スクロールにしている。
 * OSの既定バーは太くて主張が強いため、細く控えめなものに置き換える。
 * Firefox は scrollbar-width、その他は ::-webkit-scrollbar が効く。
 */
.s-flexScroll {
	scrollbar-width: thin;
	scrollbar-color: rgba(65, 60, 50, 0.25) transparent;
}

.s-flexScroll::-webkit-scrollbar {
	height: 6px;
}

.s-flexScroll::-webkit-scrollbar-track {
	background-color: transparent;
}

.s-flexScroll::-webkit-scrollbar-thumb {
	background-color: rgba(65, 60, 50, 0.25);
	border-radius: 999px;
	transition: background-color 0.3s ease;
}

.s-flexScroll:hover::-webkit-scrollbar-thumb {
	background-color: rgba(65, 60, 50, 0.45);
}

/* --- カード一覧（事例／コラム／会場） ---
 *
 * 既存の s-case / s-spaceList は Swiper 前提（.swiper-wrapper と .swiper-slide が
 * 揃って初めてカード幅が決まる）なので、リストだけ別に用意する。
 * JSは使わず、SPでは横スクロールにする。
 */
.s-flexCardList {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.s-flexListBtn {
	display: flex;
	gap: 15px;
	align-items: center;
	justify-content: center;
	padding-top: 40px;
}

@media screen and (width <= 1120px) {
	.s-flexCardList {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (width <= 767px) {
	.s-flexCardList {
		display: flex;
		gap: 15px;
		padding-bottom: 10px;
		margin: 0 -20px;
		padding-inline: 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.s-flexCardList__item {
		flex: 0 0 auto;
		width: 275px;
		scroll-snap-align: start;
	}

	.s-flexListBtn {
		padding-top: 30px;
	}
}

/* --- ギャラリー ---
 *
 * カード自体（.s-gallery__item）は幅が固定で定義済み（PC 800px / SP 275px）なので、
 * 並べ方だけを与えれば既存の見た目のまま横スクロールになる。
 *
 * s-gallery は背景色 #faf8f4 がハードコードされており、共通枠の「背景」設定と食い違う。
 * そのままだと「前のセクションと同じ背景だから余白を詰める」という自動判定が外れ、
 * 見出しの直前で色が変わってしまう。汎用ページのギャラリーだけ背景を透明にして、
 * 他のセクションと同じ規則（なし／グレー）に従わせる。
 */
.s-flexGallery {
	background-color: transparent;
}

.s-flexGallery.u-bgGray {
	background-color: #f8f4f0;
}

.s-flexGallery.u-noPaddingTop {
	padding-top: 0;
}

/*
 * ページネーション（.swiper-pagination）は position:absolute なので基準が要る。
 * 下の余白は .s-gallery__listWrap の padding-bottom（PC 48px / SP 36px）が持つ。
 */
.s-flexGallery__listWrap {
	position: relative;
}

.s-flexGallery__list {
	display: flex;
	gap: 40px;
	padding: 0 max(20px, calc(50% - 600px));
	margin: 0;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;

	/* ドットで位置が分かるので、ネイティブのスクロールバーは隠す */
	scrollbar-width: none;
}

.s-flexGallery__list::-webkit-scrollbar {
	display: none;
}

.s-flexGallery__item {
	flex: 0 0 auto;
	scroll-snap-align: center;
}

@media screen and (width <= 767px) {
	.s-flexGallery__list {
		gap: 15px;
		padding: 0 20px;
	}
}

/* --- 問い合わせフォーム ---
 *
 * s-contact には共通の __inner が無く、__descArea--inner と __formArea--inner に
 * 個別に max-width が入っている（お問い合わせページが上下2ブロックで組まれているため）。
 * また __formArea が自前の背景色を持つので、そのまま使うと見出しだけ色が違ってしまう。
 * 汎用ページでは枠を自前で持ち、背景は共通枠の設定（なし／グレー）に従わせる。
 */
.s-flexForm {
	padding: 100px 0;
}

.s-flexForm.u-bgGray {
	background-color: #f8f4f0;
}

.s-flexForm.u-noPaddingTop {
	padding-top: 0;
}

.s-flexForm__inner {
	box-sizing: border-box;
	max-width: 1240px;
	padding: 0 20px;
	margin: 0 auto;
}

/* max-width は親（__inner）が持つので、流用先の値は打ち消す */
.s-flexForm__body {
	max-width: 100%;
	padding: 0;
}

@media screen and (width <= 767px) {
	.s-flexForm {
		padding: 60px 0;
	}
}

/* --- 埋め込み --- */

.s-flexEmbed__caption {
	margin-top: 12px;
	font-size: 14px;
	line-height: 170%;
	color: #645f5a;
}

.s-googleStreetView__iframeWrap.u-tall iframe {
	aspect-ratio: 4 / 3;
}

@media screen and (width <= 767px) {
	.s-flexEmbed__caption {
		margin-top: 8px;
		font-size: 12px;
	}

	.s-googleStreetView__iframeWrap.u-tall iframe {
		aspect-ratio: 3 / 4;
	}
}

/* --- CTA帯 ---
 * 汎用ページ専用の新規コンポーネント。既存に相当するものが無い唯一の箇所。
 */
.s-ctaBand {
	padding: 0 0 100px;
}

.s-ctaBand__inner {
	box-sizing: border-box;
	max-width: 1240px;
	padding: 0 20px;
	margin: 0 auto;
}

.s-ctaBand__box {
	padding: 60px 40px;
	text-align: center;
	background-color: #f8f4f0;
	border-radius: 0 16px 0 0;
}

/*
 * 帯はセクションの背景を引き継ぎ、中の箱だけ反転させる。
 * セクションが白なら箱はグレー（上の既定）、セクションがグレーなら箱は白。
 *
 * ここでの「白」は純白ではなく #fcfaf8。サイトの下地色（main.css の body の背景）で、
 * 背景「なし」のセクションの見た目と同じにするため。
 */
.s-ctaBand.u-bgGray {
	background-color: #f8f4f0;
}

.s-ctaBand.u-bgGray .s-ctaBand__box {
	background-color: #fcfaf8;
}

.s-ctaBand__title {
	font-size: 28px;
	font-weight: 700;
	line-height: 150%;
	color: #413c32;
	letter-spacing: 0.08em;
}

.s-ctaBand__desc {
	margin-top: 16px;
	font-size: 16px;
	font-weight: 500;
	line-height: 180%;
	color: #413c32;
	letter-spacing: 0.02em;
	white-space: pre-line;
}

.s-ctaBand__btnWrap {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	margin-top: 32px;
}

@media screen and (width <= 767px) {
	.s-ctaBand {
		padding-bottom: 60px;
	}

	.s-ctaBand__box {
		padding: 40px 20px;
	}

	.s-ctaBand__title {
		font-size: 20px;
		letter-spacing: normal;
	}

	.s-ctaBand__desc {
		margin-top: 12px;
		font-size: 14px;
		line-height: 160%;
	}

	.s-ctaBand__btnWrap {
		margin-top: 24px;
	}
}

/* --- ユーティリティのスコープ穴埋め ---
 *
 * u-bgGray / u-noPaddingTop は main.css ではセクションクラスと結合した形でしか
 * 定義されておらず、下の3つには効かない。汎用ページでは背景を選べるようにするため補う。
 * この組み合わせを使っている既存ページは無いので、波及しない。
 */
.s-photographingFlow.u-bgGray,
.s-ankerLinkList.u-bgGray {
	background-color: #f8f4f0;
}

.s-photographingFlow.u-noPaddingTop,
.s-ankerLinkList.u-noPaddingTop {
	padding-top: 0;
}

/* --- 目次リンクの着地位置 ---
 * ヘッダーが position:fixed（PC 90px / SP 60px）なので、そのままでは見出しが隠れる。
 * .p-flexPage に閉じているため既存ページには影響しない。
 */
.p-flexPage [id] {
	scroll-margin-top: 110px;
}

@media screen and (width <= 767px) {
	.p-flexPage [id] {
		scroll-margin-top: 70px;
	}
}

/* --- LPモード --- */

.c-header.u-lp .c-header__nav,
.c-header.u-lp .c-header__menuBtn {
	display: none;
}

.c-header.u-lp .c-header__inner {
	justify-content: space-between;
}

.c-header.u-lp .c-header__cta {
	display: flex;
	gap: 10px;
	align-items: center;
	padding-right: 10px;
}

.c-footer.u-lp {
	padding-top: 40px;
}

@media screen and (width <= 767px) {
	.c-header.u-lp .c-header__cta {
		padding-right: 0;
	}

	.c-header.u-lp .c-header__cta--btn {
		font-size: 12px;
	}
}
