/*
Theme Name: こんかふぇch. Portal
Theme URI: http://localhost:9080
Author: DP-GUILD / コーダー
Description: コンカフェポータルサイト「こんかふぇch.」カスタムテーマ。Figma デザイン（三好氏）準拠。
Version: 0.3.0
Requires at least: 6.0
Requires PHP: 8.1
Text Domain: concafe-portal
*/

/* ============================================================
 * デザイントークン（Figma 三好氏デザイン準拠）
 * ============================================================ */
:root {
	/* カラー */
	--c-primary: #d36ba6;          /* メインピンク（CTA・バッジ） */
	--c-primary-dark: #b3265a;     /* 濃ピンク（見出しアクセント） */
	--c-primary-light: #f7d8e7;    /* 薄ピンク（表ヘッダ・背景） */
	--c-accent: #c2185b;           /* リンク・強調 */
	--c-lavender: #e9ddf6;         /* ラベンダー（グラデ終点） */
	--c-pink-bg: #fbe8f1;          /* ピンク（グラデ始点） */
	--c-text: #3a3a3a;
	--c-text-sub: #777;
	--c-border: #f0d4e4;
	--c-white: #fff;

	/* グラデーション */
	--grad-page: linear-gradient(160deg, var(--c-pink-bg) 0%, #f6e3f0 45%, var(--c-lavender) 100%);
	--grad-cta: linear-gradient(135deg, #e387b9 0%, #c75b9b 100%);

	/* タイポグラフィ */
	--font-base: -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;

	/* その他 */
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--shadow-card: 0 4px 20px rgba(195, 24, 91, 0.08);
	--w-content: 1200px;

	/* 旧トークン互換（既存テンプレ参照用） */
	--color-primary: #c2185b;
	--color-text: #3a3a3a;
	--color-text-sub: #777;
	--color-border: #f0d4e4;
	--radius-md-compat: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--c-text);
	background: var(--c-white);
	line-height: 1.8;
	font-size: 15px;
}

a { color: var(--c-accent); }
img { max-width: 100%; height: auto; }

/* ============================================================
 * ヘッダー（Figma 全ページ共通）
 * ============================================================ */
.site-header {
	background: var(--c-white);
	border-bottom: 1px solid var(--c-border);
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
}
.site-header__logo {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	white-space: nowrap;
}
.site-header__logo a {
	color: var(--c-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.site-nav {
	display: flex;
	gap: 20px;
	margin-left: auto;
	flex-wrap: wrap;
}
.site-nav a {
	color: var(--c-text);
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 500;
	padding: 6px 2px;
}
.site-nav a:hover { color: var(--c-accent); }
.site-header__cta {
	background: var(--grad-cta);
	color: #fff !important;
	padding: 9px 18px !important;
	border-radius: 999px;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(199, 91, 155, 0.4);
	white-space: nowrap;
	text-decoration: none;
	font-size: 13.5px;
}
.site-header__cta:hover { opacity: 0.9; }

@media (max-width: 782px) {
	.site-header__inner { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
	.site-nav { gap: 12px; width: 100%; order: 3; overflow-x: auto; }
	.site-nav a { font-size: 12px; white-space: nowrap; }
	.site-header__cta { margin-left: auto; padding: 7px 14px !important; font-size: 12px; }
}

/* ============================================================
 * パンくず
 * ============================================================ */
.breadcrumbs {
	padding: 12px 24px;
	font-size: 12.5px;
	color: var(--c-text-sub);
	max-width: var(--w-content);
	margin: 0 auto;
}
.breadcrumbs a { color: var(--c-accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ============================================================
 * 法務・静的ページ（Figma legal page カード）
 * ============================================================ */
.legal-bg {
	background: var(--grad-page);
	padding: 40px 16px 64px;
	min-height: 60vh;
}
.legal-card {
	max-width: var(--w-content);
	margin: 0 auto;
	background: var(--c-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	padding: 64px clamp(24px, 7vw, 90px);
}
.legal-card__date {
	text-align: right;
	color: var(--c-text-sub);
	font-size: 12.5px;
	margin: 0 0 8px;
}
.legal-card h1 {
	font-size: clamp(24px, 3.4vw, 32px);
	margin: 0 0 6px;
	color: var(--c-text);
	font-weight: 700;
}
.legal-card .legal-lead {
	color: var(--c-text-sub);
	font-size: 13.5px;
	margin: 0 0 36px;
}
.legal-card .legal-intro {
	font-size: 14.5px;
	margin-bottom: 40px;
}
.legal-card h2 {
	font-size: 19px;
	color: var(--c-primary-dark);
	border-left: 5px solid var(--c-primary-dark);
	padding-left: 14px;
	margin: 48px 0 18px;
	font-weight: 700;
	line-height: 1.4;
}
.legal-card h3 {
	font-size: 16px;
	color: var(--c-text);
	margin: 28px 0 12px;
	font-weight: 700;
}
.legal-card p { font-size: 14.5px; margin: 0 0 16px; }
.legal-card ul {
	margin: 0 0 20px;
	padding-left: 4px;
	list-style: none;
}
.legal-card ul li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 10px;
	font-size: 14.5px;
}
.legal-card ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c-primary);
}
.legal-card ol {
	margin: 0 0 20px;
	padding-left: 26px;
}
.legal-card ol li { margin-bottom: 10px; font-size: 14.5px; }

/* 表 */
.legal-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 24px;
	font-size: 14px;
}
.legal-table th,
.legal-table td {
	border: 1px solid var(--c-border);
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
}
.legal-table th {
	background: var(--c-primary-light);
	color: var(--c-text);
	font-weight: 700;
	width: 28%;
}
.legal-table--plans th { width: auto; }
.legal-table .price-main { font-weight: 700; font-size: 15px; }
.legal-table .price-sub { color: var(--c-text-sub); font-size: 12.5px; }

.legal-note {
	font-size: 12.5px;
	color: var(--c-text-sub);
	margin-top: -8px;
	margin-bottom: 24px;
}
.legal-card .legal-closing {
	margin-top: 48px;
	text-align: right;
	color: var(--c-text-sub);
	font-size: 13px;
}

@media (max-width: 600px) {
	.legal-card { padding: 36px 20px; }
	.legal-table th { width: 34%; }
}

/* ============================================================
 * フッター（Figma 全ページ共通: ロゴ + 4 カラム）
 * ============================================================ */
.site-footer {
	background: var(--c-white);
	border-top: 1px solid var(--c-border);
	font-size: 13px;
	color: var(--c-text-sub);
}
.site-footer__inner {
	max-width: var(--w-content);
	margin: 0 auto;
	padding: 48px 24px 24px;
}
.site-footer__logo {
	font-size: 24px;
	font-weight: 700;
	color: var(--c-primary);
	margin: 0 0 28px;
}
.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 24px;
	margin-bottom: 36px;
}
.site-footer__col h3 {
	font-size: 13px;
	color: var(--c-primary-dark);
	margin: 0 0 12px;
	font-weight: 700;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 8px; }
.site-footer__col a {
	color: var(--c-text);
	text-decoration: none;
	font-size: 13px;
}
.site-footer__col a:hover { color: var(--c-accent); }
.site-footer__copy {
	border-top: 1px solid var(--c-border);
	padding-top: 16px;
	font-size: 12px;
	color: var(--c-text-sub);
	text-align: center;
}

/* ============================================================
 * 既存テンプレ互換（一覧・詳細等は別途 Figma 反映予定）
 * ============================================================ */
.site-main { min-height: 50vh; max-width: none; margin: 0; padding: 0; }
.site-main > .shops-main,
.site-main > .archive-head { max-width: var(--w-content); margin-left: auto; margin-right: auto; padding: 16px 20px; }

.archive-head h1 { font-size: 24px; margin: 0 0 6px; }
.archive-head p { margin: 0; color: var(--c-text-sub); font-size: 14px; }

.shop-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}
@media (min-width: 720px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }

.shop-card {
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	padding: 18px 20px;
	transition: transform .15s ease;
	text-decoration: none;
	color: inherit;
	display: block;
}
.shop-card:hover { transform: translateY(-3px); }
.shop-card__title { margin: 0 0 6px; font-size: 18px; color: var(--c-accent); }
.shop-card__concept { margin: 0 0 10px; color: var(--c-text-sub); font-size: 14px; }
.shop-card__address { color: var(--c-text-sub); font-size: 12.5px; margin: 0; }
.shop-card__meta { font-size: 13px; color: var(--c-text-sub); }

.badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 999px;
	letter-spacing: .03em;
}
.badge--premium { background: var(--grad-cta); color: #fff; }
.badge--free { background: #eee; color: var(--c-text-sub); }

/* ---- 詳細（single）---- */
.shop-detail { max-width: 980px; margin: 0 auto; padding: 24px 20px; }
.shop-detail__title { font-size: 28px; margin: 0 0 8px; }
.shop-detail__concept { font-size: 16px; color: var(--c-text-sub); margin: 0 0 20px; }

.shop-section {
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-md);
	padding: 18px 22px;
	margin-bottom: 18px;
}
.shop-section h2 { font-size: 16px; margin: 0 0 12px; border-left: 4px solid var(--c-primary-dark); padding-left: 10px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th { text-align: left; width: 130px; color: var(--c-text-sub); padding: 6px 0; vertical-align: top; }
.spec-table td { padding: 6px 0; }

.cta-box {
	background: linear-gradient(135deg, #fce4ef, #ede9ff);
	border: 1px dashed var(--c-primary);
	border-radius: var(--radius-md);
	padding: 24px;
	text-align: center;
}
.cta-box p { margin: 0 0 12px; font-weight: 600; }
.cta-box .cta-note { font-weight: 400; font-size: 13px; color: var(--c-text-sub); }

.gallery-demo img { max-width: 100%; border-radius: 8px; }
.back-link { display: inline-block; margin-top: 24px; font-size: 14px; }
.pagination { text-align: center; padding: 24px; }


/* ============================================================
 * 店舗カード 横型（Figma「店舗情報カード-PC」無料/有料バリアント）
 * ============================================================ */
.shop-card-h {
	display: flex;
	background: var(--c-white);
	border: 1.5px solid var(--c-primary);
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: 16px;
	box-shadow: var(--shadow-card);
}
.shop-card-h__media {
	position: relative;
	flex: 0 0 30%;
	max-width: 300px;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fdf0f6;
}
.shop-card-h--paid .shop-card-h__media {
	background: linear-gradient(135deg, #f3d9ec 0%, #d9c4ef 100%);
}
.shop-card-h__media img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-h__noimg {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: #dba8c6;
	font-size: 12px;
}
.shop-card-h__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 999px;
	z-index: 2;
}
.shop-card-h__badge--pr { background: var(--grad-cta); color: #fff; }
.shop-card-h__badge--free { background: #fff; color: #999; border: 1px solid #ddd; }

.shop-card-h__body { flex: 1; padding: 18px 22px; display: flex; flex-direction: column; }
.shop-card-h__title { margin: 0 0 6px; font-size: 18px; color: var(--c-text); }
.shop-card-h__concept { margin: 0 0 8px; color: var(--c-accent); font-size: 13px; }
.shop-card-h__address { margin: 0 0 8px; font-size: 13px; color: var(--c-text); }
.shop-card-h__chips { margin: 0 0 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
	display: inline-block;
	background: var(--c-primary-light);
	color: var(--c-primary-dark);
	font-size: 11.5px;
	padding: 2px 10px;
	border-radius: 999px;
}
.shop-card-h__detail {
	border-top: 1px solid var(--c-border);
	padding-top: 10px;
	margin-bottom: 10px;
}
.shop-card-h__note { margin: 0 0 4px; font-size: 12px; color: #b9a3af; }
.shop-card-h__meta { margin: 0 0 4px; font-size: 12.5px; color: var(--c-text); }
.shop-card-h__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.shop-card-h__btn {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.shop-card-h__btn--paid { background: var(--grad-cta); }
.shop-card-h__btn--free { background: linear-gradient(135deg, #b389c9 0%, #9a6cb5 100%); }
.shop-card-h__updated { font-size: 11.5px; color: var(--c-text-sub); }

@media (max-width: 640px) {
	.shop-card-h { flex-direction: column; }
	.shop-card-h__media { max-width: none; min-height: 150px; }
}

/* ============================================================
 * 店舗一覧レイアウト（サイドバー絞り込み + カードリスト）
 * ============================================================ */
.shops-layout {
	max-width: var(--w-content);
	margin: 0 auto;
	padding: 24px 16px 48px;
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 24px;
	align-items: start;
}
@media (max-width: 860px) { .shops-layout { grid-template-columns: 1fr; } }

.shops-sidebar__box {
	background: var(--c-white);
	border: 1.5px solid var(--c-primary);
	border-radius: var(--radius-md);
	padding: 16px;
	margin-bottom: 16px;
}
.shops-sidebar__box h3 {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--c-primary-dark);
	border-bottom: 1px dashed var(--c-border);
	padding-bottom: 8px;
}
.shops-sidebar__box ul { list-style: none; margin: 0; padding: 0; }
.shops-sidebar__box li { margin-bottom: 6px; font-size: 13px; }
.shops-sidebar__box a { color: var(--c-text); text-decoration: none; }
.shops-sidebar__box a:hover { color: var(--c-accent); }
.shops-sidebar__count { color: var(--c-text-sub); font-size: 11.5px; margin-left: 4px; }

.shops-bg { background: var(--grad-page); }

/* ============================================================
 * TOP（Figma TOP セクション）
 * ============================================================ */
.top-hero {
	background: var(--grad-page);
	padding: 40px 16px 56px;
}
.top-hero__head { text-align: center; margin-bottom: 24px; }
.top-hero__eyebrow { color: var(--c-primary); font-size: 12px; letter-spacing: 0.2em; margin: 0 0 4px; }
.top-hero__title { font-size: clamp(22px, 3vw, 30px); margin: 0; color: var(--c-text); }
.top-hero__title strong { color: var(--c-primary-dark); }

.top-search {
	max-width: 640px;
	margin: 0 auto 36px;
	display: flex;
	background: #fff;
	border: 1.5px solid var(--c-primary);
	border-radius: 999px;
	overflow: hidden;
}
.top-search input {
	flex: 1;
	border: none;
	padding: 13px 22px;
	font-size: 14px;
	outline: none;
}
.top-search button {
	background: var(--grad-cta);
	color: #fff;
	border: none;
	padding: 0 28px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.top-map-area {
	max-width: 1040px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}
@media (max-width: 800px) { .top-map-area { grid-template-columns: 1fr; } }
.top-map-illust {
	background: #fff;
	border: 1.5px solid var(--c-primary);
	border-radius: var(--radius-md);
	padding: 24px;
	text-align: center;
}
.region-list { display: flex; flex-direction: column; gap: 10px; }
.region-list__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fff;
	border: 1.5px solid var(--c-primary);
	border-radius: 999px;
	padding: 10px 22px;
	color: var(--c-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}
.region-list__item:hover { background: var(--c-primary-light); }
.region-list__item .arrow { color: var(--c-primary); }

.top-about {
	background: linear-gradient(135deg, #e088b8 0%, #c763a4 100%);
	color: #fff;
	padding: 48px 16px;
	text-align: center;
}
.top-about__title { font-size: 24px; margin: 0 0 12px; }
.top-about__lead { font-size: 13.5px; max-width: 720px; margin: 0 auto 28px; }
.top-steps {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.top-step {
	background: #fff;
	color: var(--c-text);
	border-radius: var(--radius-md);
	padding: 22px 18px;
	text-align: left;
}
.top-step__num { color: var(--c-primary); font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.top-step__title { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.top-step__desc { font-size: 12.5px; color: var(--c-text-sub); margin: 0; }

.top-section { padding: 48px 16px; }
.top-section--alt { background: var(--grad-page); }
.top-section__head { text-align: center; margin-bottom: 28px; }
.top-section__eyebrow { color: var(--c-primary); font-size: 11px; letter-spacing: 0.2em; margin: 0 0 4px; }
.top-section__title { font-size: 22px; color: var(--c-primary-dark); margin: 0; }

.top-pr-grid {
	max-width: var(--w-content);
	margin: 0 auto 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}
.top-more { text-align: center; }
.top-more a {
	display: inline-block;
	background: var(--grad-cta);
	color: #fff;
	padding: 11px 34px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.concept-chips {
	max-width: 960px;
	margin: 0 auto;
	background: #fff;
	border: 1.5px solid var(--c-primary);
	border-radius: var(--radius-md);
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}
.concept-chips a {
	display: inline-block;
	border: 1px solid var(--c-primary);
	color: var(--c-primary-dark);
	background: #fff;
	font-size: 13px;
	padding: 6px 16px;
	border-radius: 999px;
	text-decoration: none;
}
.concept-chips a:hover { background: var(--c-primary-light); }
.concept-chips .cnt { color: var(--c-text-sub); font-size: 11px; }

.top-news {
	max-width: 860px;
	margin: 0 auto 24px;
	background: #fff;
	border: 1.5px solid var(--c-primary);
	border-radius: var(--radius-md);
	padding: 8px 24px;
}
.top-news__row {
	display: flex;
	gap: 16px;
	align-items: baseline;
	padding: 12px 0;
	border-bottom: 1px dashed var(--c-border);
	font-size: 13.5px;
}
.top-news__row:last-child { border-bottom: none; }
.top-news__date { color: var(--c-text-sub); font-size: 12px; flex: 0 0 auto; }
.top-news__cat {
	flex: 0 0 auto;
	background: var(--c-primary-light);
	color: var(--c-primary-dark);
	font-size: 11px;
	padding: 2px 10px;
	border-radius: 999px;
}
.top-news__row a { color: var(--c-text); text-decoration: none; flex: 1; }
.top-news__row a:hover { color: var(--c-accent); }

.top-owner-cta {
	background: linear-gradient(135deg, #e088b8 0%, #c763a4 100%);
	color: #fff;
	text-align: center;
	padding: 48px 16px;
}
.top-owner-cta h2 { font-size: 22px; margin: 0 0 10px; }
.top-owner-cta p { font-size: 13px; margin: 0 auto 24px; max-width: 640px; }
.top-owner-cta a {
	display: inline-block;
	background: #fff;
	color: var(--c-primary-dark);
	padding: 11px 34px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
}

.top-guide {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}
.top-guide__card {
	background: #fff;
	border: 1.5px solid var(--c-primary);
	border-radius: var(--radius-md);
	padding: 24px;
}
.top-guide__card h3 { margin: 0 0 8px; font-size: 16px; color: var(--c-primary-dark); }
.top-guide__card p { margin: 0 0 16px; font-size: 13px; color: var(--c-text-sub); }
.top-guide__card a {
	display: inline-block;
	background: var(--grad-cta);
	color: #fff;
	padding: 8px 22px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.top-sns { background: var(--c-lavender); text-align: center; padding: 32px 16px; }
.top-sns h2 { font-size: 15px; color: var(--c-primary-dark); margin: 0 0 14px; }
.top-sns__icons { display: flex; gap: 18px; justify-content: center; }
.top-sns__icons a {
	display: inline-flex;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--c-primary-dark);
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
}


/* ============================================================
 * 店舗詳細（Figma「店舗情報」有料/無料）
 * ============================================================ */
.sd-bg { background: var(--grad-page); padding-bottom: 48px; }

.sd-hero { max-width: var(--w-content); margin: 0 auto; padding: 16px 16px 0; }
.sd-hero__mv {
	border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/6;
	background: linear-gradient(135deg, #f3d9ec, #ddc9f0);
}
.sd-hero__mv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-hero__mv--placeholder { display: flex; }
.sd-hero__head { padding: 18px 4px 0; }
.sd-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.sd-hero__title { font-size: clamp(22px, 3vw, 30px); margin: 0; color: var(--c-text); }

.sd-layout {
	max-width: var(--w-content); margin: 0 auto; padding: 24px 16px;
	display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start;
}
@media (max-width: 900px) { .sd-layout { grid-template-columns: 1fr; } }

.sd-main {
	background: var(--c-white); border-radius: var(--radius-md);
	box-shadow: var(--shadow-card); padding: 32px clamp(20px, 4vw, 44px);
}

.sd-block { margin-bottom: 36px; }
.sd-block__title {
	font-size: 17px; font-weight: 700; color: var(--c-text);
	border-bottom: 2px solid var(--c-primary); padding-bottom: 8px; margin: 0 0 16px;
}
.sd-tag-opt { font-size: 11px; color: var(--c-text-sub); font-weight: 400; margin-left: 6px; }
.sd-sub { font-size: 13px; color: var(--c-text-sub); margin: 0 0 10px; }
.sd-note { font-size: 12px; color: var(--c-text-sub); margin: 8px 0 0; }

/* ギャラリー: 1枚大 + サムネ */
.sd-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sd-gallery__item { border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; background: #fbe8f1; display: block; }
.sd-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.sd-gallery__item--main { grid-column: span 2; grid-row: span 2; aspect-ratio: 1/1; }

.sd-intro { font-size: 14px; line-height: 1.9; }

/* テーブル */
.sd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sd-table th, .sd-table td { border: 1px solid var(--c-border); padding: 10px 14px; text-align: left; vertical-align: middle; }
.sd-table th { background: #fff5fa; color: var(--c-text); font-weight: 700; white-space: nowrap; width: 30%; }
.sd-table--price th { background: var(--c-primary-light); }
.sd-table .ta-r { text-align: right; white-space: nowrap; width: auto; }
.sd-cast th { width: auto; }

/* 求人 */
.sd-recruit__summary { font-weight: 700; margin: 0 0 8px; }
.sd-recruit__detail { font-size: 13.5px; color: var(--c-text-sub); margin: 0; }

/* イベント */
.sd-events { display: flex; flex-direction: column; gap: 14px; }
.sd-event { background: #fff5fa; border-radius: 8px; padding: 14px 16px; }
.sd-event__head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; margin: 0 0 6px; }
.sd-event__title { font-size: 14.5px; }
.sd-event__period { font-size: 12px; color: var(--c-text-sub); }
.sd-event__detail { font-size: 13px; color: var(--c-text-sub); margin: 0; }

/* 地図 */
.sd-map { aspect-ratio: 16/7; border-radius: 8px; overflow: hidden; background: #eee; }
.sd-map iframe { width: 100%; height: 100%; }
.sd-map--placeholder { display: flex; align-items: center; justify-content: center; color: #b9a3af; background: linear-gradient(135deg,#f3d9ec,#ddc9f0); }

/* 無料: 課金誘導 */
.sd-upsell {
	display: flex; gap: 16px; align-items: stretch;
	background: linear-gradient(135deg, #ece3f7, #f7d3e6);
	border-radius: var(--radius-md); padding: 24px; margin-bottom: 28px;
}
.sd-upsell__body { flex: 1; }
.sd-upsell__title { font-size: 16px; margin: 0 0 12px; color: var(--c-primary-dark); }
.sd-upsell__list { list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; }
.sd-upsell__list li { margin-bottom: 6px; }
.sd-upsell__chara { width: 110px; flex: 0 0 110px; background: rgba(255,255,255,0.4); border-radius: 8px; }
@media (max-width: 520px) { .sd-upsell__chara { display: none; } }
.sd-btn {
	display: inline-block; background: var(--grad-cta); color: #fff !important;
	padding: 9px 24px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none;
}

/* 無料: 来店前の確認 */
.sd-confirm { background: #fff5fa; border-radius: 8px; padding: 18px 20px; margin-top: 8px; }
.sd-confirm__title { font-size: 14px; margin: 0 0 8px; color: var(--c-primary-dark); }
.sd-confirm p { font-size: 12.5px; color: var(--c-text-sub); margin: 0; line-height: 1.8; }

/* サイドバー */
.sd-side__box {
	background: var(--c-white); border: 1.5px solid var(--c-primary);
	border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 16px;
}
.sd-side__box h3 { margin: 0 0 12px; font-size: 14px; color: var(--c-primary-dark); border-bottom: 1px dashed var(--c-border); padding-bottom: 8px; }
.sd-side__box ul { list-style: none; margin: 0; padding: 0; }
.sd-side__box li { margin-bottom: 8px; font-size: 13px; }
.sd-side__box a { color: var(--c-text); text-decoration: none; }
.sd-side__box a:hover { color: var(--c-accent); }
.sd-side__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

/* 関連店舗 / 記事 */
.sd-related { max-width: var(--w-content); margin: 24px auto 0; padding: 24px 16px; }
.sd-related__sub { font-size: 12px; color: var(--c-text-sub); margin: 4px 0 0; }
.sd-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.sd-article { background: #fff; border: 1.5px solid var(--c-primary); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: var(--c-text); display: flex; flex-direction: column; }
.sd-article__thumb { height: 90px; background: linear-gradient(135deg,#f3d9ec,#ddc9f0); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.sd-article__title { padding: 12px 14px; font-size: 13px; }

.sd-map--link { aspect-ratio: auto; background: #fff5fa; border: 1px dashed var(--c-primary); display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.sd-map-fallback { text-align: center; }
.sd-map-fallback__addr { font-size: 14px; margin: 0 0 14px; color: var(--c-text); }

/* サイドバー Figma Frame 330 準拠 */
.sd-side__box h3 { color: var(--c-primary-dark); border-bottom: 1px dashed var(--c-primary); }
.sd-side__cta { text-align: center; }
.sd-side__cta-label { font-size: 12px; color: var(--c-text-sub); margin: 0 0 6px; }
.sd-side__cta-price { font-size: 22px; font-weight: 800; color: var(--c-primary-dark); margin: 0 0 14px; }
.sd-side__cta-price span { font-size: 12px; font-weight: 400; color: var(--c-text-sub); }
.sd-side__follow {
	display: block; background: var(--grad-cta); color: #fff !important;
	padding: 12px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.sd-side__more { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--c-accent); text-decoration: none; }
.sd-side__more:hover { text-decoration: underline; }
.sd-side__taglist { list-style: none; margin: 0; padding: 0; }
.sd-side__taglist li { margin-bottom: 8px; font-size: 13.5px; }
.sd-side__taglist a { color: var(--c-text); text-decoration: none; }
.sd-side__taglist a:hover { color: var(--c-accent); }

/* ============================================================
 * 素材画像（三好氏デザイン素材 / Google Drive 受領）
 * ============================================================ */
.top-search { position: relative; }
.top-search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.top-search input { padding-left: 46px; }

.top-map-illust { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.top-map-illust__logo { max-width: 220px; height: auto; }
.top-map-illust__map { max-width: 100%; height: auto; }

.top-about { position: relative; overflow: hidden; }
.top-about__chara { position: absolute; bottom: 0; width: clamp(90px, 12vw, 170px); height: auto; z-index: 1; }
.top-about__chara--l { left: 2%; }
.top-about__chara--r { right: 2%; }
.top-about__title, .top-about__lead, .top-steps { position: relative; z-index: 2; }
@media (max-width: 860px) { .top-about__chara { display: none; } }

.top-owner-cta--chara { position: relative; overflow: hidden; }
.top-owner-cta__chara { position: absolute; right: 4%; bottom: 0; width: clamp(110px, 14vw, 200px); height: auto; }
.top-owner-cta--chara h2, .top-owner-cta--chara p, .top-owner-cta--chara a { position: relative; z-index: 2; }
@media (max-width: 720px) { .top-owner-cta__chara { display: none; } }

/* ご案内カード・プランカードのキャラ */
.top-guide__card--chara { position: relative; overflow: hidden; }
.top-guide__chara { position: absolute; right: 6px; bottom: 0; width: 84px; height: auto; opacity: 0.95; }
.top-guide__card--chara h3, .top-guide__card--chara p, .top-guide__card--chara a { position: relative; z-index: 2; }
.top-guide__card--chara { padding-right: 90px; }

.plan-card .plan-chara { position: absolute; right: -6px; top: 8px; width: 92px; height: auto; opacity: 0.92; z-index: 1; }
.plan-card > *:not(.plan-chara) { position: relative; z-index: 2; }
