/*
 * Rain Child main stylesheet.
 * お手本：http://www.blue-eyes.tokyo/system/ のデザインに準拠。
 * 全ページ共通の基底スタイル + .rain-page ラッパで構造化。
 */

/* =========================================================
 * ヘッダ全体（site title + hero + phone bar + gold nav）
 * 旧テンプレートのナビは非表示にし、本テンプレートを表示
 * ========================================================= */

/* 旧 wp-block-navigation のラッパは余白だけ詰める */
.wp-block-navigation .wp-block-navigation-item__label {
	display: inline-block;
	white-space: pre-line;
	text-align: center;
	line-height: 1.3;
}

/* 親テーマのヘッダ wp-block-template-part 内コンテンツをまるごと隠し、自前ヘッダだけ見せる */
.wp-block-template-part .wp-block-group:has(.wp-block-site-title),
.wp-block-template-part > .wp-block-group:first-child:not(.rain-header) {
	display: none !important;
}

.rain-header {
	width: 100%;
	color: #FFF;
	font-family: "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3", sans-serif;
	position: relative;
	z-index: 2;
}

/* 1段目：小さなサイトロゴ／タイトル */
.rain-header__title-bar {
	background-color: rgba(0, 0, 0, 0.4);
	text-align: center;
	padding: 6px 8px;
}
.rain-header__title {
	color: #FFF !important;
	text-decoration: none;
	font-family: 'Playfair Display', serif;
	font-size: 14px;
	letter-spacing: 0.1em;
	display: inline-block;
	line-height: 1;
}
/* 管理画面「デザイン設定」でロゴ画像を設定した場合の表示 */
.rain-header__title-img {
	display: inline-block;
	height: 24px;
	width: auto;
	max-width: 100%;
	vertical-align: middle;
}

/* 2段目：ヒーロー（仮画像、ブランド表示） */
.rain-header__hero {
	width: 100%;
	height: 38vh;
	min-height: 220px;
	max-height: 480px;
	/* --rain-hero-url は管理画面「デザイン設定」から差し替え可能。未設定時は同梱画像。 */
	background-image:
		linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%),
		var(--rain-hero-url, url(../img/hero-placeholder.jpg));
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

/* 3段目：電話バー（黒・中央） */
.rain-header__opentel {
	background-color: rgba(0, 0, 0, 0.85);
	color: #FFF !important;
	text-align: center;
	padding: 8px 12px;
	font-size: 14px;
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	border-top: 1px solid rgba(255,255,255,0.1);
}
.rain-header__opentel-item {
	color: #FFF !important;
	text-decoration: none;
}
.rain-header__opentel-tel {
	color: #FFCC00 !important;
	font-weight: bold;
	font-size: 16px;
}
.rain-header__opentel .ico {
	margin-right: 4px;
}

/* 4段目：ゴールドグラデのメニューバー（英＋日本語2段） */
.rain-header__nav {
	background: rgb(206, 140, 16);
	background: linear-gradient(135deg, rgba(206,140,16,1) 0%, rgba(237,222,137,1) 50%, rgba(206,140,16,1) 100%);
	border-top: 4px solid #A27100;
	border-bottom: 1px solid #A27100;
}
.rain-header__nav ul {
	list-style: none;
	margin: 0 auto;
	padding: 4px 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	max-width: 1170px;
}
.rain-header__nav li {
	position: relative;
	flex: 0 0 auto;
}
.rain-header__nav li:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 22%;
	height: 56%;
	width: 1px;
	background-color: rgba(102, 70, 0, 0.4);
}
.rain-header__nav a {
	display: block;
	padding: 10px 22px;
	text-decoration: none;
	text-align: center;
	color: #443822 !important;
	transition: opacity 0.3s;
}
.rain-header__nav a:hover {
	opacity: 0.7;
}
.rain-header__nav .en {
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 17px;
	letter-spacing: 0.04em;
	font-weight: 400;
	line-height: 1.1;
}
.rain-header__nav .ja {
	display: block;
	font-family: "Times New Roman", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", serif;
	font-size: 10px;
	letter-spacing: 0.02em;
	margin-top: 2px;
	font-weight: normal;
}

/* ヒーロー画像の表示方法（管理画面「デザイン設定」のラジオで切替） */
/* 'cover' は既定値で .rain-header__hero / .rain-page .rain-hero の元定義そのまま */

/* 'contain' : 画像全体を領域内に収める（左右または上下に黒帯） */
body.rain-design-hero-mode-contain .rain-header__hero,
body.rain-design-hero-mode-contain .rain-page .rain-hero {
	background-size: contain;
	background-color: #000;
}

/* 'width' : 横幅100%・高さは画像のアスペクト比に従って自動 */
body.rain-design-hero-mode-width .rain-header__hero,
body.rain-design-hero-mode-width .rain-page .rain-hero {
	height: auto;
	min-height: 0;
	max-height: none;
	aspect-ratio: var(--rain-hero-aspect, 16 / 6);
	background-size: 100% auto;
}

@media (max-width: 768px) {
	.rain-header__hero {
		height: 28vh;
		min-height: 160px;
	}
	/* 'width' モードはモバイルでも縦比固定にする（高さ指定の上書きを再適用） */
	body.rain-design-hero-mode-width .rain-header__hero {
		height: auto;
		min-height: 0;
	}
	.rain-header__opentel {
		font-size: 12px;
		gap: 10px;
	}
	.rain-header__nav a {
		padding: 8px 12px;
	}
	.rain-header__nav .en {
		font-size: 14px;
	}
	.rain-header__nav .ja {
		font-size: 9px;
	}
}

/* =========================================================
 * サイト全体（全 page に適用）
 * Twenty Twenty-Four の白背景・幅制約・余白を上書きする
 * ========================================================= */

body {
	background-color: #000 !important;
	color: #FFF;
}

/* 背景画像（固定） */
/* --rain-bg-url は管理画面「デザイン設定」から差し替え可能。未設定時は同梱画像。 */
body::before {
	content: "";
	display: block;
	background-image: var(--rain-bg-url, url(../img/bg.jpg));
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	height: 100vh;
	left: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 0;
	opacity: 0.55;
	pointer-events: none;
}

/* テーマの白背景ブロックを透明化 */
body .wp-site-blocks,
body .wp-site-blocks .has-base-background-color,
body .wp-site-blocks .has-base-2-background-color {
	background-color: transparent !important;
}

/* メインのコンテンツ幅制約を解除 */
body main,
body main .wp-block-group {
	max-width: none !important;
	color: #FFF;
}

/* 投稿タイトル（テーマ側）を非表示にし、ヒーロー側で表現 */
body .wp-block-post-title {
	display: none !important;
}

/* page.html テンプレートが post-title 周辺に置く wp-block-spacer を非表示
   （ヘッダ→breadcrumb の間に大きな縦余白が出るのを防ぐ） */
body main > .wp-block-group.has-global-padding.is-layout-constrained:has(.wp-block-post-title) {
	display: none !important;
}
body main .wp-block-spacer {
	display: none !important;
}

/* テーマの上下マージンを詰める */
body .wp-site-blocks > * {
	margin-block-start: 0 !important;
}
body .entry-content > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* リンク色 */
body a {
	color: #FF0033;
	transition: 0.3s;
}
body a:hover {
	color: #FF0033;
	opacity: 0.6;
	text-decoration: none;
}

/* =========================================================
 * .rain-page ラッパ（各ページの本文コンテナ）
 * ========================================================= */
.rain-page {
	max-width: 1170px;
	margin: 0 auto;
	padding: 12px;
	color: #FFF;
	font-family: "メイリオ", "Meiryo", verdana, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", Sans-Serif;
	font-size: 13px;
	line-height: 1.6;
	font-feature-settings: "palt";
	position: relative;
	z-index: 1;
}

.rain-page * {
	box-sizing: border-box;
}

/* =========================================================
 * ヒーローセクション（仮画像）
 * ========================================================= */
.rain-page .rain-hero {
	width: 100%;
	height: 50vh;
	min-height: 280px;
	max-height: 520px;
	/* --rain-hero-url は管理画面「デザイン設定」から差し替え可能。未設定時は同梱画像。 */
	background-image:
		linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%),
		var(--rain-hero-url, url(../img/hero-placeholder.jpg));
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	border: 2px solid #333;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	margin: 0 0 14px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.rain-page .rain-hero__inner {
	width: 100%;
	padding: 18px 24px;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
	text-align: center;
}
.rain-page .rain-hero__title {
	font-family: 'Playfair Display', serif;
	font-size: clamp(34px, 6vw, 72px);
	color: #edde89;
	letter-spacing: 0.08em;
	margin: 0;
	line-height: 1.1;
	text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.rain-page .rain-hero__sub {
	font-family: "Times New Roman", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", serif;
	font-size: 12px;
	color: #FFF;
	letter-spacing: 0.2em;
	margin: 6px 0 0;
}

/* =========================================================
 * パンくず
 * ========================================================= */
.rain-breadcrumb {
	background-color: transparent;
	max-width: 1170px !important;
	margin: 6px auto 6px !important;
	padding: 0 12px;
	font-size: 11px;
	line-height: 1.8;
	position: relative;
	z-index: 1;
}
.rain-breadcrumb a,
.rain-breadcrumb .current {
	background-color: #ffffff;
	color: #333 !important;
	padding: 3px 14px;
	border-radius: 14px;
	text-decoration: none;
	font-size: 11px;
	display: inline-block;
	border: 1px solid rgba(0, 0, 0, 0.15);
	font-weight: normal;
	opacity: 1;
}
.rain-breadcrumb a:hover {
	opacity: 0.85;
	text-decoration: none;
}
.rain-breadcrumb .sep {
	color: #fff;
	margin: 0 6px;
	font-size: 12px;
}

/* =========================================================
 * パネル
 * ========================================================= */
.rain-page .panel {
	background-color: rgba(0, 0, 0, 0.9);
	border: 2px solid #333;
	box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
	margin: 0 0 14px;
	padding: 14px;
}

.rain-page .panel-title {
	color: #333 !important;
	font-family: 'Playfair Display', serif !important;
	font-size: 28px;
	text-transform: uppercase;
	text-align: center;
	padding: 10px 5px;
	margin: 0 0 14px;
	border: 1px solid #B28A79;
	border-radius: 30px;
	background: rgb(206, 140, 16);
	background: linear-gradient(135deg, rgba(206,140,16,1) 0%, rgba(237,222,137,1) 50%, rgba(206,140,16,1) 100%);
	font-weight: 400;
	line-height: 1.1;
}
.rain-page .panel-title small {
	display: block;
	font-size: 10px;
	font-weight: normal;
	letter-spacing: 0;
	font-family: "Times New Roman", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "メイリオ", Meiryo, serif;
	color: #333;
	margin-top: 4px;
}

/* =========================================================
 * .res（料金システムなどの行ブロック）
 * ========================================================= */
.rain-page .res {
	border: 1px solid #333;
	background-color: rgba(0, 0, 0, 0.7);
	margin: 0 0 6px;
	padding: 3px;
}

.rain-page .res h3 {
	text-align: center;
	background-color: rgba(150, 139, 118, 0.7);
	padding: 12px;
	font-size: 14px !important;
	margin: 0 !important;
	color: #FFF !important;
	font-weight: bold;
	font-family: "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3", sans-serif !important;
	line-height: 1.3;
}

.rain-page .res p {
	margin: 0;
	padding: 10px;
	color: #FFF;
}

.rain-page .res .row-line {
	display: flex !important;
	border-top: 1px solid #333;
	margin: 0 !important;
}
.rain-page .res .row-line:first-of-type {
	border-top: none;
}
.rain-page .res .name {
	width: 40%;
	padding: 10px;
	color: #999;
	font-weight: bold;
	font-size: 14px;
	background-color: rgba(44, 44, 44, 0.5);
}
.rain-page .res .value {
	width: 60%;
	padding: 10px;
	color: #FFF;
}
.rain-page .res .value.note {
	width: 100%;
	color: #FFF;
	line-height: 1.7;
}

.rain-page .res .row-line.free .name,
.rain-page .res .row-line.free .value {
	background-color: #EEE;
	color: #000;
}
.rain-page .res .row-line.nofree .name,
.rain-page .res .row-line.nofree .value {
	background-color: rgba(212, 156, 39, 1);
	color: #FFF;
	font-weight: bold;
}

/* =========================================================
 * ページ本文（パネル内の汎用文字／h2/h3）
 * shortcode 出力等を見やすくする
 * ========================================================= */
.rain-page .panel h2 {
	color: #FFF;
	font-family: "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3", sans-serif !important;
	font-size: 18px;
	background-color: rgba(150, 139, 118, 0.7);
	padding: 10px 14px;
	margin: 0 0 10px;
	border-radius: 0;
	font-weight: bold;
}
.rain-page .panel h3:not([class]) {
	color: #FFF;
	font-family: "メイリオ", "Meiryo", sans-serif !important;
	font-size: 15px;
	margin: 14px 0 8px;
}
.rain-page .panel p {
	color: #FFF;
}

/* =========================================================
 * シングルキャストページ：プロフィール
 * ========================================================= */
.rain-page .rain-cast-profile {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}
.rain-page .rain-cast-profile__photo {
	flex: 0 0 42%;
	max-width: 42%;
	background-color: #000;
}
.rain-page .rain-cast-profile__img {
	display: block;
	width: 100%;
	height: auto;
	opacity: 1;
}
.rain-page .rain-cast-profile__noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 320px;
	background-color: #111;
	color: #666;
	font-family: 'Playfair Display', serif;
	font-size: 22px;
}
.rain-page .rain-cast-profile__info {
	flex: 1 1 auto;
	min-width: 0;
}
.rain-page .rain-cast-profile__text {
	margin-top: 12px;
	color: #FFF;
	font-size: 13px;
	line-height: 1.7;
}

/* =========================================================
 * シングルキャストページ：週間スケジュール（テーブル）
 * ========================================================= */
.rain-page .rain-cast-schedule__title {
	text-align: center;
	background-color: rgba(150, 139, 118, 0.7);
	color: #FFF;
	font-family: "メイリオ", "Meiryo", sans-serif;
	font-size: 14px;
	font-weight: bold;
	padding: 10px;
	margin: 0 0 8px;
}
.rain-page .rain-cast-schedule {
	width: 100%;
	border-collapse: collapse;
	background-color: rgba(0, 0, 0, 0.7);
	color: #FFF;
	font-size: 13px;
	table-layout: fixed;
}
.rain-page .rain-cast-schedule th,
.rain-page .rain-cast-schedule td {
	border: 1px solid #333;
	padding: 8px 4px;
	text-align: center;
	vertical-align: middle;
	width: calc(100% / 7);
}
.rain-page .rain-cast-schedule__date {
	background-color: rgba(44, 44, 44, 0.7);
	color: #FFF;
	font-weight: bold;
}
.rain-page .rain-cast-schedule__date .md {
	display: block;
	font-size: 14px;
}
.rain-page .rain-cast-schedule__date .dow {
	display: block;
	font-size: 11px;
	color: #ccc;
}
.rain-page .rain-cast-schedule__date.is-sat .dow {
	color: #aabfff;
}
.rain-page .rain-cast-schedule__date.is-sun .dow {
	color: #ffaabe;
}
.rain-page .rain-cast-schedule__cell {
	background-color: rgba(0, 0, 0, 0.5);
	color: #FFF;
}
.rain-page .rain-cast-schedule__cell .from,
.rain-page .rain-cast-schedule__cell .to {
	display: block;
	font-size: 12px;
}
.rain-page .rain-cast-schedule__cell .sep {
	display: none;
}
.rain-page .rain-cast-schedule__cell .single {
	display: block;
	font-size: 12px;
	color: #999;
}

/* スマホ：写真を上に、情報を下に */
@media (max-width: 768px) {
	.rain-page .rain-cast-profile {
		flex-direction: column;
	}
	.rain-page .rain-cast-profile__photo {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
	}
	.rain-page .rain-cast-schedule th,
	.rain-page .rain-cast-schedule td {
		padding: 6px 2px;
		font-size: 11px;
	}
}

/* =========================================================
 * フッタ
 * ========================================================= */
.wp-block-template-part:has(.rain-footer) {
	background: transparent;
}
/* 親テーマの footer pattern を非表示にする（.rain-footer 以外の旧フッタ） */
.wp-block-template-part:has(.rain-footer) > *:not(.rain-footer):not(script) {
	display: none !important;
}

.rain-footer {
	background-color: rgba(0, 0, 0, 0.92);
	color: #FFF;
	padding: 28px 16px 22px;
	text-align: center;
	position: relative;
	font-family: "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3", sans-serif;
	border-top: 1px solid #333;
	margin-top: 24px;
}

.rain-footer__nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 4px;
	margin-bottom: 18px;
	font-size: 13px;
}
.rain-footer__nav-link {
	color: #FFF !important;
	text-decoration: none;
	padding: 4px 10px;
	transition: opacity 0.3s;
}
.rain-footer__nav-link:hover {
	opacity: 0.7;
	text-decoration: none;
}
.rain-footer__nav-sep {
	color: #555;
	align-self: center;
}

.rain-footer__copyright {
	margin: 8px 0 6px;
	font-size: 13px;
	color: #FFF;
	letter-spacing: 0.02em;
}

.rain-footer__catch {
	margin: 6px 0 0;
	font-size: 12px;
	color: #FFF;
}

/* back-to-top 円形ボタン（右下） */
.rain-footer__totop {
	position: absolute;
	right: 18px;
	bottom: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgb(120, 90, 36);
	background: linear-gradient(135deg, rgba(160,120,46,1) 0%, rgba(110,80,32,1) 100%);
	border: 1px solid rgba(237,222,137,0.55);
	color: #FFF !important;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0,0,0,0.6);
	transition: opacity 0.3s, transform 0.2s;
}
.rain-footer__totop:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}
.rain-footer__totop-arrow {
	font-size: 18px;
	line-height: 1;
}

@media (max-width: 768px) {
	.rain-footer {
		padding: 22px 10px 60px;
	}
	.rain-footer__nav {
		font-size: 12px;
		gap: 4px 2px;
	}
	.rain-footer__copyright {
		font-size: 12px;
	}
	.rain-footer__totop {
		right: 12px;
		bottom: 12px;
		width: 40px;
		height: 40px;
	}
}

/* =========================================================
 * 後方互換：.rain-system は .rain-page と同等
 * ========================================================= */
.rain-system {
	max-width: 1170px;
	margin: 0 auto;
	padding: 12px;
	position: relative;
	z-index: 1;
}

/* レスポンシブ */
@media (max-width: 768px) {
	.rain-page {
		padding: 6px;
	}
	.rain-page .panel {
		padding: 8px;
	}
	.rain-page .panel-title {
		font-size: 22px;
	}
	.rain-page .res .name,
	.rain-page .res .value {
		width: 50%;
	}
	.rain-page .rain-hero {
		height: 30vh;
		min-height: 180px;
	}
	/* 'width' モードはモバイルでも縦比固定にする */
	body.rain-design-hero-mode-width .rain-page .rain-hero {
		height: auto;
		min-height: 0;
	}
}

/* =========================================================
 * SEO 施策で追加した要素（トップ即答ブロック・キャスト h1・内部リンク）
 * 既存のゴールド系トーン（#333 / Playfair / #CE8C10）に合わせる。
 * ========================================================= */

/* トップの即答ブロック */
.rain-intro {
	background-color: rgba(0, 0, 0, 0.9);
	border: 2px solid #333;
	box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
	margin: 0 0 14px;
	padding: 16px;
}
.rain-intro__title {
	font-family: 'Playfair Display', serif;
	color: #edde89;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.4;
	margin: 0 0 10px;
	text-align: center;
}
.rain-intro__lead {
	color: #f0f0f0;
	font-size: 14px;
	line-height: 1.9;
	margin: 0;
}
.rain-intro__benefit {
	margin: 12px 0 0;
	padding: 8px 12px;
	border: 1px solid #b28a79;
	border-radius: 6px;
	color: #edde89;
	font-size: 13px;
	text-align: center;
}

/* キャスト個別ページの h1（源氏名） */
.rain-page .rain-cast-h1 {
	font-family: 'Playfair Display', serif;
	color: #edde89;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
	margin: 0 0 12px;
	text-align: center;
}
.rain-page .rain-cast-h1 small {
	display: block;
	font-size: 12px;
	color: #c8c8d0;
	margin-top: 4px;
	font-family: inherit;
}

/* キャスト個別ページの内部リンク */
.rain-cast-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0 0 14px;
}
.rain-cast-nav__link {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid #b28a79;
	border-radius: 20px;
	color: #edde89;
	text-decoration: none;
	font-size: 13px;
	background-color: rgba(0, 0, 0, 0.6);
}
.rain-cast-nav__link:hover {
	background: linear-gradient(135deg, rgba(206,140,16,1) 0%, rgba(237,222,137,1) 50%, rgba(206,140,16,1) 100%);
	color: #333;
}
