@charset "utf-8";

/* =============================================================================
 * Tsujimura Pharmacy A — TOP（front-page.php）専用スタイル
 *
 * ラフの正は design/tsujimura-pharmacy/r2/pc.html（PC）・sp.html（SP）で、
 * 2枚を1つのレスポンシブに統合したもの。900px / 560px で SP ラフの縦積みへ落とす。
 *
 * 共通部品（.tp-wrap / .tp-btn / .tp-sec / .tp-secHead / .tp-kicker / .tp-note /
 * .tp-news / .tp-qrPair / トークン）は assets/css/theme.css が持つ。
 * ここには TOP にしか出ないセクションだけを書く。
 *
 * 全幅は header.php が Arkhe のコンテナを出さないことで素直に成立する
 * （幅の抑制は各セクション内側の .tp-wrap が持つ）。
 * ========================================================================== */

/* ===== ヒーロー（フルブリード大判写真） ================================== */
.tp-hero {
	position: relative;
	min-height: clamp(560px, 72vh, 760px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	isolation: isolate;
}

.tp-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 人物の顔は写真の右上にある（2026-11-14 撮影）。既定の中央クロップだと、横長の画面で
	   額が切れ、スマートフォンの縦長の枠では人物が右端へ外れるので、顔の側へ寄せる. */
	object-position: 62% 20%;
	z-index: -2;
}

.tp-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(47, 98, 72, 0.15) 0%, rgba(51, 48, 43, 0.1) 40%, rgba(47, 98, 72, 0.78) 100%),
		linear-gradient(90deg, rgba(51, 48, 43, 0.45), rgba(51, 48, 43, 0) 60%);
}

.tp-hero__inner {
	padding-block: clamp(48px, 7vw, 96px);
	color: #fff;
	width: 100%;
}

.tp-hero__inner .tp-kicker {
	margin-bottom: 18px;
}

.tp-hero__title {
	font-size: clamp(38px, 6vw, 72px);
	line-height: 1.18;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
	margin-bottom: 22px;
}

.tp-hero__lead {
	font-size: clamp(15px, 1.5vw, 18px);
	color: #fff;
	max-width: 40ch;
	margin-bottom: 30px;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.tp-hero__cta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.tp-hero__badge {
	position: absolute;
	right: clamp(20px, 4vw, 44px);
	top: clamp(28px, 5vw, 56px);
	background: rgba(255, 255, 255, 0.94);
	border-radius: 100px;
	box-shadow: var(--tp-shadow);
	padding: 12px 22px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--tp-primary);
	z-index: 1;
}

.tp-hero__badge span {
	font-family: var(--tp-round);
	font-size: 20px;
	color: var(--tp-primary);
}

/* ===== ヒーロー直下：公式LINEパネル ====================================== */
.tp-lineHero {
	background: var(--tp-bg);
}

.tp-lineHero__panel {
	background: linear-gradient(135deg, #eaf3ec, #fbf7f0);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-r-lg);
	box-shadow: var(--tp-shadow-sm);
	padding: clamp(24px, 4vw, 44px);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	margin-top: calc(-1 * clamp(40px, 6vw, 80px));
	position: relative;
	z-index: 2;
}

.tp-lineHero__title {
	font-size: clamp(22px, 2.6vw, 30px);
	margin-bottom: 10px;
}

.tp-lineHero__text {
	color: var(--tp-muted);
	font-size: 14.5px;
	margin-bottom: 14px;
	max-width: 48ch;
}

.tp-lineHero__copy .tp-note + .tp-note {
	margin-top: 4px;
}

/* ===== 背景ブラー付きセクション（価値・強み） ============================ */
.tp-bgsec {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
}

.tp-bgsec::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--tp-bgimg);
	background-size: cover;
	background-position: center;
	filter: blur(9px) saturate(1.05);
	transform: scale(1.1);
	z-index: -2;
}

.tp-bgsec::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* 下地はブラー写真なので、明るい領域でも白文字が AA（4.5:1）を保つ濃さにする
	   （0.82/0.78 では 11px の注記が実効 4.0〜4.4:1 まで落ちていた）. */
	background: linear-gradient(180deg, rgba(47, 98, 72, 0.9), rgba(51, 48, 43, 0.88));
}

/* ===== 3つの価値（半透明カード） ========================================= */
.tp-values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.tp-value {
	background: rgba(255, 255, 255, 0.94);
	color: var(--tp-ink);
	border-radius: var(--tp-r-lg);
	padding: 34px 28px;
	text-align: center;
	box-shadow: var(--tp-shadow);
}

.tp-value__no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #eaf3ec;
	font-family: var(--tp-round);
	font-size: 17px;
	color: var(--tp-primary);
	margin-bottom: 16px;
}

.tp-value h3 {
	font-size: 20px;
	margin: 0 0 10px;
}

.tp-value p {
	font-size: 14px;
	color: var(--tp-muted);
}

/* ===== サービス：大判写真カード ========================================== */
.tp-services {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 26px;
}

.tp-svc {
	background: #fff;
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-r-lg);
	overflow: hidden;
	box-shadow: var(--tp-shadow-sm);
	transition: 0.18s;
}

.tp-svc:hover {
	transform: translateY(-4px);
	box-shadow: var(--tp-shadow);
}

.tp-svc__ph {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tp-paper);
}

.tp-svc__ph img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 素材は 3:2 の横長で、人物の顔が上寄りにある。16:10 の枠で上下を切るときに
	   顔が欠けないよう上へ寄せる. */
	object-position: 50% 25%;
}

.tp-svc__body {
	padding: 26px 28px;
}

.tp-svc h3 {
	font-size: 21px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tp-svc__ico {
	width: 24px;
	height: 24px;
	color: var(--tp-primary);
	flex: none;
}

.tp-svc p {
	font-size: 14px;
	color: var(--tp-muted);
}

/* 各カードから下層ページへの導線（調剤だけは詳細ページを持たないので出ない）。 */
.tp-svc__more {
	margin-top: 14px;
}

/* サービス紹介ページ全体への導線。 */
.tp-services__more {
	margin-top: clamp(28px, 3vw, 40px);
	text-align: center;
}

/* ===== 強み4本柱：背景ブラー＋大きな数値 ================================ */
.tp-pillars {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.tp-pillar {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--tp-r-lg);
	padding: 30px 24px;
	text-align: center;
	backdrop-filter: blur(3px);
}

.tp-pillar__no {
	font-family: var(--tp-round);
	font-size: 13px;
	color: #fff;
	letter-spacing: 0.14em;
	opacity: 0.85;
}

.tp-pillar h3 {
	font-size: 17px;
	margin: 8px 0 10px;
	color: #fff;
}

.tp-pillar p {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.95);
}

.tp-pillar__stat {
	margin-top: 14px;
	font-family: var(--tp-round);
	color: #fff;
}

.tp-pillar__stat b {
	font-size: 34px;
	color: #fff;
}

.tp-pillar__unit {
	font-size: 15px;
	font-weight: 500;
}

.tp-pillar__note {
	/* 写真背景の上なので 11px/0.72 だと AA 未達。サイズと不透明度の両方を上げる. */
	font-size: 12px;
	color: rgba(255, 255, 255, 0.95);
	margin-top: 4px;
}

/* ===== 2店舗：大判写真 =================================================== */
.tp-stores {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

.tp-store {
	background: #fff;
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-r-lg);
	overflow: hidden;
	box-shadow: var(--tp-shadow-sm);
}

.tp-store__ph {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--tp-paper);
}

.tp-store__ph img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp-store__body {
	padding: 26px 28px;
}

.tp-store h3 {
	font-size: 22px;
	margin-bottom: 6px;
}

.tp-store__tag {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--tp-primary-dark);
	background: #eaf3ec;
	border: 1px solid var(--tp-accent);
	border-radius: 100px;
	padding: 3px 12px;
	margin-bottom: 14px;
}

.tp-store__dl {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 6px 12px;
	font-size: 13.5px;
	margin: 0;
}

.tp-store__dl dt {
	color: var(--tp-muted);
	font-weight: 500;
}

.tp-store__dl dd {
	color: var(--tp-ink);
	margin: 0;
}

.tp-store__tel {
	font-family: var(--tp-round);
	font-size: 19px;
	color: var(--tp-primary);
	margin-top: 12px;
}

/* ===== 公式LINE帯（手順） ================================================ */
.tp-lineBand {
	background: linear-gradient(135deg, #3f7d5e, #2f6248);
	color: #fff;
	border-radius: var(--tp-r-lg);
	box-shadow: var(--tp-shadow);
}

.tp-lineBand__inner {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: clamp(24px, 4vw, 52px);
	align-items: center;
	padding: clamp(28px, 4vw, 48px);
}

.tp-lineBand h2 {
	color: #fff;
	font-size: clamp(22px, 2.6vw, 30px);
	margin-bottom: 16px;
}

.tp-steps {
	display: grid;
	gap: 12px;
	margin-bottom: 20px;
}

.tp-step {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 14px;
}

.tp-step b {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-family: var(--tp-round);
}

.tp-lineBand__note {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.75;
}

/* CTA（.tp-cta / .tp-cta__btns）は下層ページの section/cta と共用するため
   theme.css の「52 下層ページ共通部品」へ移した（同じ規則を2か所に持たない）。 */

/* ===== レスポンシブ（SP ラフ sp.html の縦積みへ） ======================== */
@media (max-width: 900px) {
	.tp-hero {
		min-height: clamp(480px, 80vh, 640px);
	}

	.tp-lineHero__panel,
	.tp-lineBand__inner {
		grid-template-columns: 1fr;
	}

	.tp-values,
	.tp-services,
	.tp-pillars,
	.tp-stores {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.tp-values,
	.tp-services,
	.tp-pillars,
	.tp-stores {
		grid-template-columns: 1fr;
	}

	.tp-hero__cta {
		flex-direction: column;
	}

	.tp-hero__cta .tp-btn {
		width: 100%;
	}

	.tp-hero__badge {
		display: none;
	}

	/* ラフ SP は LINE パネルだけ左右 16px（QR 2枚を横並びで収めるため）。 */
	.tp-lineHero .tp-wrap {
		padding-inline: 16px;
	}

	.tp-lineHero__panel {
		padding: 24px 20px;
		margin-top: -28px;
	}

	/* パネル内では本文と QR を罫線で仕切る（ラフ SP 準拠）。 */
	.tp-lineHero .tp-qrPair {
		margin-top: 16px;
		border-top: 1px dashed var(--tp-line);
		padding-top: 16px;
	}

	.tp-svc__body,
	.tp-store__body {
		padding: 22px;
	}

	.tp-store__dl {
		grid-template-columns: 56px 1fr;
	}
}
