@charset "utf-8";

/* =============================================================================
 * Tsujimura Pharmacy A — 全ページ共通スタイル
 *
 * 確定ラフ design/tsujimura-pharmacy/r2/ を実装に起こしたもの。ラフは PC 版と SP 版が
 * 別ファイルなので、PC 版を土台にして SP 版からドロワー／ハンバーガー／縦積みを取り込み、
 * 1つのレスポンシブに統合している。
 *
 * 親テーマ Arkhe の dist/css/main.css は inc/assets.php で外している（自前のマークアップに対して
 * 指定先の無いセレクタが大半のため）。よってリセットもここで持つ。
 *
 * ▼ カスケードの約束（守らないとブロックエディタ本文が壊れる）
 *   - リセットは必ず @layer reset の中に置く。レイヤ外に出すと wp-block-library の
 *     余白指定に勝ってしまい、お知らせ投稿やプライバシーポリシー本文が潰れる。
 *   - 逆に、本テーマの通常の規則はレイヤに入れない（レイヤ外＝常に強い）。
 *   - レイヤ外の規則は必ずクラスから始める。素のタグセレクタ（p / ul / h2 …）は
 *     .tp-prose の中だけに書く。
 *
 * ▼ 配色の約束
 *   配色・書体の正は theme.json の settings.custom.brand で、ここでは var() で引く
 *   （第2引数は global styles が無い環境用のフォールバックで値は theme.json と同一）。
 *   白文字を載せる塗り色は WCAG AA（通常サイズ 4.5:1）を満たす値だけを使う:
 *   accent #3F7D5E=4.88:1 / accentDark #2F6248=7.09:1 / lineButton #04893B=4.52:1。
 *   LINE ブランド緑 #06C755 は白文字だと 2.26:1 のため装飾（枠線・アイコン）専用。
 *   decorative #E08A3C も装飾専用で本文テキストに使わない。
 *
 * ▼ ラフ → 実装のクラス対応
 *   wrap→tp-wrap / kicker→tp-kicker / btn→tp-btn / sec→tp-sec / sec-head→tp-secHead
 *   hd→tp-header / logo→tp-logo / nav→tp-gnav / drawer→tp-drawer / hamburger→tp-hamburger
 *   ft→tp-footer / qr-pair→tp-qrPair / news→tp-news
 *   接頭辞を付けるのは .wrap / .btn / .news などが WordPress のプラグイン資産と
 *   衝突しやすい語だから。BEM の構造はラフと同じに保っている。
 * ========================================================================== */

/* ===== 00 tokens ========================================================== */
:root {
	--tp-ink: #33302b;
	--tp-bg: #fff;
	--tp-paper: #fbf7f0;
	--tp-line: #efe7da;
	--tp-muted: #6b6357;
	--tp-primary: var(--wp--custom--brand--accent, #3f7d5e);
	--tp-primary-dark: var(--wp--custom--brand--accent-dark, #2f6248);
	--tp-accent: var(--wp--custom--brand--decorative, #e08a3c);
	--tp-line-green: var(--wp--custom--brand--line, #06c755);
	--tp-line-btn: var(--wp--custom--brand--line-button, #04893b);
	--tp-round: var(--wp--custom--brand--font-heading, "Zen Maru Gothic", system-ui, sans-serif);
	--tp-sans: var(--wp--custom--brand--font-body, "Noto Sans JP", system-ui, sans-serif);
	--tp-wrap: 1160px;
	--tp-r: 16px;
	--tp-r-lg: 26px;
	--tp-shadow: 0 18px 50px rgba(51, 48, 43, 0.16);
	--tp-shadow-sm: 0 6px 20px rgba(51, 48, 43, 0.1);
	--tp-header-h: 72px;
}

/* ===== 05 reset（必ずレイヤ内） ========================================== */
@layer reset {
	*,
	*::before,
	*::after {
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}

	img {
		display: block;
		max-width: 100%;
	}

	button {
		font: inherit;
		color: inherit;
	}
}

/* ===== 10 base ============================================================ */
html {
	scroll-behavior: smooth;
}

/* ドロワー展開中は背面をスクロールさせない（drawer.js が付け外しする）。 */
html.is-drawer-open {
	overflow: hidden;
}

body {
	background: var(--tp-bg);
	color: var(--tp-ink);
	font-family: var(--tp-sans);
	font-weight: 400;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
}

/* リンクは原則まわりの文字色を継ぐ。ただしボタンは自前で色を持つので外す
   ――`.tp-site a`（詳細度 0-1-1）は `.tp-btn--primary`（0-1-0）に勝つため、
   除外しないとボタンの文字が親の色になる（塗りの上で黒文字になっていた）。 */
.tp-site a:not(.tp-btn) {
	color: inherit;
}

.tp-site a {
	text-decoration: none;
}

.tp-site h1,
.tp-site h2,
.tp-site h3 {
	font-family: var(--tp-round);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.01em;
}

/* スキップリンク等の視覚的非表示（Arkhe の CSS を外したため自前で持つ）。 */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/*
 * スキップリンクはフォーカス時に必ず見えるようにする。
 *
 * WordPress のインライン CSS が `.screen-reader-text:focus` で clip-path と width を
 * 戻すが、**旧 `clip` は戻さない**。上の `.screen-reader-text` は clip も持っているため、
 * これが無いと「箱は 206×53px に広がるのに一切描画されない」状態になる
 * （elementFromPoint が背後の要素を返す＝キーボード利用者に何も出ない）。
 * 2026-08-09 の内部テストで実測。まちコムは clip を持たず :focus も自前で書いており、
 * この不具合は辻村固有だった。
 */
.skip-link:focus {
	position: fixed;
	z-index: 100;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 12px 20px;
	overflow: visible;
	clip: auto;
	clip-path: none;
	border-radius: 8px;
	background: var(--tp-primary);
	color: #fff;
	font-family: var(--tp-round);
	font-size: 14px;
	white-space: nowrap;
}

/* ===== 15 layout ========================================================== */
.tp-wrap {
	max-width: var(--tp-wrap);
	margin-inline: auto;
	padding-inline: clamp(20px, 4vw, 44px);
}

.tp-wrap--narrow {
	max-width: 800px;
}

.tp-sec {
	padding-block: clamp(56px, 7vw, 104px);
}

.tp-sec--paper {
	background: var(--tp-paper);
}

.tp-sec__back {
	margin-top: 40px;
	text-align: center;
}

.tp-secHead {
	max-width: 62ch;
	margin: 0 auto 48px;
	text-align: center;
}

.tp-secHead .tp-kicker {
	display: block;
	margin-bottom: 12px;
}

.tp-secHead h2 {
	font-size: clamp(26px, 3.4vw, 40px);
	margin-bottom: 14px;
	/* 中央寄せの見出しは、折り返しの都合で最終行に1〜2文字だけ残ることがある
	   （例「辻村薬局が大切にしているこ／と」）。行の長さを均等に配分して防ぐ。
	   未対応のブラウザは通常の折り返しに落ちるだけで害はない。 */
	text-wrap: balance;
}

/* 見出し下のリード。
   ⚠ 型セレクタなので詳細度（0,1,1）が .tp-kicker（0,1,0）に勝ち、kicker も p 要素である
   ため英字ラベルはグレー 15px で描画される。一見バグに見えるが、確定ラフ
   design/tsujimura-pharmacy/r2/pc.html:78 の .sec-head p が同じカスケードで、
   甲が確認したのもその見え方。:not(.tp-kicker) で「直す」とラフから離れるので、
   変えるときはデザイン変更として甲のレビューに載せること。 */
.tp-secHead p {
	color: var(--tp-muted);
	font-size: 15px;
}

.tp-secHead--light h2 {
	color: #fff;
}

.tp-secHead--light p {
	color: rgba(255, 255, 255, 0.9);
}

/* ===== 20 typography ====================================================== */
.tp-kicker {
	font-size: 12px;
	letter-spacing: 0.18em;
	color: var(--tp-primary);
	font-weight: 700;
}

.tp-kicker--light {
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.tp-pageTitle {
	font-size: clamp(26px, 3.4vw, 40px);
	margin: 10px 0 28px;
}

.tp-lede {
	color: var(--tp-muted);
	font-size: 15px;
}

.tp-note {
	font-size: 12px;
	color: var(--tp-muted);
	line-height: 1.75;
}

.tp-tlink {
	font-weight: 700;
	color: var(--tp-primary);
}

.tp-tlink::after {
	content: " →";
}

/* ===== 25 buttons =========================================================
 * 塗りは緑・文字は白の 2 色だけに絞る。濃さで主従を示す。
 *   主操作   … --tp-primary（#3f7d5e）
 *   副次操作 … --tp-primary-dark（#2f6248）
 * 例外は公式LINEの友だち追加だけ＝LINE のブランドカラーを保つ。自社緑にすると
 * 「LINE のボタン」と認識されず、処方せん事前送信の導線を見失うため。
 * 白背景＋緑文字のゴースト系は廃止した（--ghost / --ghostLight / --lineGhost）。
 */
.tp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 700;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: 0.15s;
	text-align: center;
}

.tp-btn__ico {
	width: 18px;
	height: 18px;
	flex: none;
}

.tp-btn--primary {
	background: var(--tp-primary);
	color: #fff;
}

.tp-btn--primary:hover {
	background: var(--tp-primary-dark);
	color: #fff;
}

.tp-btn--line {
	background: var(--tp-line-btn);
	color: #fff;
}

.tp-btn--line:hover {
	filter: brightness(0.92);
	color: #fff;
}

/* 副次操作（一覧へ・詳細を見る等）。主操作と並べたとき、どちらを押すべきかが
   色の濃さで分かるようにする。 */
.tp-btn--secondary {
	background: var(--tp-primary-dark);
	color: #fff;
}

.tp-btn--secondary:hover {
	filter: brightness(0.9);
	color: #fff;
}

/* 写真の上に載る副次操作（ヒーロー）。塗りは同じで、写真から浮かせる影だけ足す。 */
.tp-btn--secondaryOnPhoto {
	background: var(--tp-primary-dark);
	color: #fff;
	box-shadow: 0 6px 20px rgba(24, 34, 28, 0.35);
}

.tp-btn--secondaryOnPhoto:hover {
	filter: brightness(0.9);
	color: #fff;
}

/* ===== 30 header ========================================================== */
.tp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(1.4) blur(6px);
	border-bottom: 1px solid var(--tp-line);
}

.tp-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--tp-header-h);
}

.tp-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.tp-logo__mark {
	width: 40px;
	height: 40px;
	flex: none;
}

.tp-logo__text {
	font-family: var(--tp-round);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.06em;
	color: var(--tp-ink);
}

.tp-logo__text small {
	display: block;
	font-family: var(--tp-sans);
	font-weight: 400;
	font-size: 9.5px;
	letter-spacing: 0.22em;
	color: var(--tp-muted);
	margin-top: -2px;
}

.tp-gnav {
	margin-left: auto;
}

/* ⚠ 子孫セレクタ（.tp-gnav ul）にしないこと。ドロップダウン（.tp-gnav__sub）も ul なので
   巻き込まれて display:flex になり、子3項目が横並びに潰れて各テキストが1文字ずつ
   縦に折り返される（2026-08-01 に発生）。トップレベルの ul だけに当てる。
   まちコム（.mk-gnav > ul）も同じ書き方。 */
.tp-gnav > ul {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
}

.tp-gnav__item {
	position: relative;
}

.tp-gnav__link {
	display: inline-block;
	padding: 6px 2px;
	font-size: 14px;
	font-weight: 500;
	color: var(--tp-ink);
}

.tp-gnav__link:hover,
.tp-gnav__link.is-current,
.tp-gnav__link.is-ancestor {
	color: var(--tp-primary);
}

.tp-gnav__link.is-current {
	font-weight: 700;
}

.tp-gnav__caret {
	font-size: 10px;
	margin-left: 4px;
	color: var(--tp-muted);
}

.tp-gnav__sub {
	position: absolute;
	top: 100%;
	left: 50%;
	translate: -50% 0;
	min-width: 190px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-r);
	box-shadow: var(--tp-shadow-sm);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transition: 0.15s;
}

.tp-gnav__item--has-sub:hover .tp-gnav__sub,
.tp-gnav__item--has-sub:focus-within .tp-gnav__sub {
	opacity: 1;
	visibility: visible;
}

.tp-gnav__sublink {
	display: block;
	padding: 9px 12px;
	font-size: 13.5px;
	border-radius: 10px;
}

.tp-gnav__sublink:hover,
.tp-gnav__sublink.is-current {
	background: #eaf3ec;
	color: var(--tp-primary);
}

.tp-header__line {
	flex: none;
	min-height: 44px;
	padding: 0 18px;
	font-size: 13px;
}

/* ===== 35 hamburger / drawer ============================================= */
.tp-hamburger {
	display: none;
	width: 44px;
	height: 44px;
	flex: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	cursor: pointer;
	border: 1px solid var(--tp-line);
	border-radius: 12px;
	background: #fff;
}

.tp-hamburger span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--tp-primary);
	border-radius: 2px;
}

.tp-scrim {
	position: fixed;
	inset: 0;
	background: rgba(44, 58, 49, 0.5);
	opacity: 0;
	transition: opacity 0.24s;
	z-index: 60;
}

.tp-scrim.is-open {
	opacity: 1;
}

.tp-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 84%;
	max-width: 320px;
	background: #fff;
	z-index: 61;
	padding: 16px 20px 28px;
	translate: 100% 0;
	visibility: hidden;
	transition: translate 0.24s, visibility 0.24s;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.tp-drawer.is-open {
	translate: 0 0;
	visibility: visible;

	/* 開くときの visibility は待たない。遷移の開始点は hidden のままで、focus() が無視される。 */
	transition-property: translate;
}

.tp-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.tp-drawer__title {
	font-family: var(--tp-round);
	font-weight: 700;
	font-size: 16px;
}

.tp-drawer__close {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: var(--tp-muted);
	cursor: pointer;
	border: 0;
	background: none;
	border-radius: 12px;
}

.tp-drawer__nav {
	list-style: none;
}

.tp-drawer__link {
	display: block;
	padding: 14px 6px;
	font-size: 15px;
	font-weight: 500;
	border-bottom: 1px solid var(--tp-line);
}

.tp-drawer__link.is-current,
.tp-drawer__link.is-ancestor {
	color: var(--tp-primary);
	font-weight: 700;
}

.tp-drawer__sub {
	list-style: none;
	padding-left: 14px;
}

.tp-drawer__sublink {
	display: block;
	padding: 12px 6px;
	font-size: 14px;
	color: var(--tp-muted);
	border-bottom: 1px solid var(--tp-line);
}

.tp-drawer__sublink::before {
	content: "└ ";
}

.tp-drawer__sublink.is-current {
	color: var(--tp-primary);
	font-weight: 700;
}

.tp-drawer__cta {
	margin-top: 20px;
}

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

/* ===== 40 breadcrumb ====================================================== */
.tp-crumb {
	background: var(--tp-paper);
	border-bottom: 1px solid var(--tp-line);
	font-size: 12.5px;
}

.tp-crumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	list-style: none;
	padding-block: 12px;
	color: var(--tp-muted);
}

.tp-crumb a {
	color: var(--tp-primary);
}

.tp-crumb__sep {
	color: var(--tp-line);
}

/* ===== 45 お知らせ一覧（TOP と一覧ページで共用） ========================= */
.tp-news {
	display: grid;
	gap: 12px;
}

.tp-news__item {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 16px;
	align-items: center;
	padding: 18px 22px;
	background: #fff;
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-r);
	box-shadow: var(--tp-shadow-sm);
	transition: 0.15s;
}

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

.tp-news__meta {
	display: flex;
	gap: 10px;
	align-items: center;
}

.tp-news time {
	font-size: 13px;
	color: var(--tp-muted);
	font-variant-numeric: tabular-nums;
}

.tp-news__cat {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--tp-primary-dark);
	background: #eaf3ec;
	border-radius: 100px;
	text-align: center;
	padding: 4px 12px;
}

.tp-news__title {
	font-size: 14.5px;
}

.tp-news__more {
	text-align: center;
	margin-top: 28px;
}

/* ===== 50 店舗別QR（TOP・健康相談ページで共用） ========================= */
.tp-qrPair {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

.tp-qrItem {
	background: #fff;
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-r);
	padding: 12px 12px 14px;
	text-align: center;
	width: 160px;
	box-shadow: var(--tp-shadow-sm);
}

.tp-qrItem__label {
	font-family: var(--tp-round);
	font-size: 13px;
	font-weight: 700;
	color: var(--tp-primary);
	margin-bottom: 8px;
}

.tp-qrItem__qr {
	width: 118px;
	height: 118px;
	margin: 0 auto 8px;
}

.tp-qrItem .tp-btn {
	width: 100%;
	min-height: 44px;
	padding: 0 10px;
	font-size: 12px;
}

.tp-qrItem__note {
	display: block;
	font-size: 10.5px;
	color: var(--tp-muted);
	margin-top: 6px;
}

/* ===== 52 下層ページ共通部品 ============================================= */
/* 下層ページ（page-{slug}.php）が template-parts/section/* 経由で使う部品。
   TOP 専用のセクション（.tp-hero / .tp-values / .tp-svc / .tp-store / .tp-lineBand …）は
   pages/front.css 側にあり、名前は意図的に分けている（同名で再定義しない）。 */

/* --- 下層ページのヒーロー（TOP の .tp-hero とは別物） --- */
.tp-pageHero {
	background: var(--tp-paper);
}

.tp-pageHero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(28px, 5vw, 56px);
	align-items: center;
}

.tp-pageHero--solo .tp-pageHero__grid {
	grid-template-columns: minmax(0, 1fr);
	max-width: 800px;
}

.tp-pageHero__h {
	font-size: clamp(28px, 4vw, 44px);
	margin: 10px 0 18px;
}

.tp-pageHero__lead {
	color: var(--tp-muted);
	font-size: 15px;
}

.tp-pageHero__cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 26px;
}

/* --- 写真枠（素材が未着のあいだはプレースホルダ） --- */
.tp-ph {
	position: relative;
	overflow: hidden;
	border-radius: var(--tp-r-lg);
	/* 比率は component/photo.php が --tp-ph-ratio で渡す。先に枠を確保して CLS を出さない。 */
	aspect-ratio: var(--tp-ph-ratio, 4 / 3);
	background: linear-gradient(135deg, #efe9df, #e3ddd0);
	box-shadow: var(--tp-shadow-sm);
}

/* 素材待ちであることが一目で分かるように、枠だけのときは斜線を敷く。 */
.tp-ph::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		135deg,
		transparent,
		transparent 14px,
		rgba(51, 48, 43, 0.05) 14px,
		rgba(51, 48, 43, 0.05) 28px
	);
}

.tp-ph__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 縦長の素材を横長の枠に入れると中央クロップで人物の顔が枠外に出る。
	   component/photo.php が position 引数で寄せ先を渡す（TOP の .tp-svc__ph img と同じ対処）。 */
	object-position: var(--tp-ph-pos, 50% 50%);
}

.tp-ph__note {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 1;
	padding: 4px 10px;
	border-radius: 100px;
	background: rgba(51, 48, 43, 0.62);
	color: #fff;
	font-size: 10.5px;
	letter-spacing: 0.04em;
}

/* --- カードの並び --- */
.tp-cards {
	display: grid;
	gap: clamp(16px, 2vw, 24px);
}

.tp-cards--cols2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-cards--cols3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-cards--cols4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tp-card {
	display: block;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-r-lg);
	transition: 0.15s;
}

a.tp-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--tp-shadow-sm);
}

.tp-card__body {
	padding: clamp(20px, 2.4vw, 28px);
}

/* 写真を持たないカードは本文だけなので、余白を少し広げて間延びを防ぐ。 */
.tp-card--plain .tp-card__body {
	padding: clamp(22px, 2.8vw, 32px);
}

.tp-card__no {
	font-family: var(--tp-round);
	font-size: 20px;
	font-weight: 700;
	color: var(--tp-accent);
	line-height: 1.2;
}

.tp-card__label {
	font-size: 12px;
	letter-spacing: 0.14em;
	font-weight: 700;
	color: var(--tp-primary);
}

.tp-card__h {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	margin-bottom: 10px;
}

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

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

.tp-card__more {
	display: inline-block;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--tp-primary);
}

/* --- 番号つきの項目（3つの価値・強み4本柱） --- */
.tp-points {
	display: grid;
	gap: clamp(20px, 2.4vw, 32px);
}

.tp-points--cols2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-points--cols3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-points--cols4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tp-point {
	padding-top: 18px;
	border-top: 2px solid var(--tp-line);
}

.tp-point__no {
	font-family: var(--tp-round);
	font-size: 22px;
	font-weight: 700;
	color: var(--tp-accent);
	line-height: 1.2;
	margin-bottom: 8px;
}

.tp-point__h {
	font-size: 17px;
	margin-bottom: 8px;
}

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

/* --- 定義テーブル（会社概要・店舗情報） --- */
.tp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.tp-table tr {
	border-bottom: 1px solid var(--tp-line);
}

.tp-table tr:first-child {
	border-top: 1px solid var(--tp-line);
}

.tp-table th {
	width: 140px;
	padding: 14px 16px 14px 0;
	text-align: left;
	vertical-align: top;
	font-family: var(--tp-round);
	font-weight: 700;
	color: var(--tp-primary);
}

.tp-table td {
	padding: 14px 0;
	vertical-align: top;
	color: var(--tp-muted);
}

/* --- ご利用の流れ（STEP） --- */
.tp-flow {
	display: grid;
	/* 列数は件数から決める（section/flow.php が --tp-flow を渡す）。 */
	grid-template-columns: repeat(var(--tp-flow, 3), minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
	list-style: none;
}

.tp-flow__step {
	position: relative;
	padding: clamp(22px, 2.6vw, 30px);
	background: #fff;
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-r-lg);
}

.tp-flow__no {
	font-size: 12px;
	letter-spacing: 0.16em;
	font-weight: 700;
	color: var(--tp-accent);
	margin-bottom: 8px;
}

.tp-flow__h {
	font-size: 17px;
	margin-bottom: 8px;
}

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

/* --- 目立たせる注記（処方せん原本・OTC のご利用にあたって） --- */
.tp-noteBox {
	margin-top: clamp(28px, 4vw, 40px);
	padding: clamp(20px, 2.6vw, 28px) clamp(20px, 3vw, 32px);
	background: #fff;
	border: 1px solid var(--tp-line);
	border-left: 5px solid var(--tp-accent);
	border-radius: var(--tp-r);
}

.tp-noteBox__title {
	font-family: var(--tp-round);
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 8px;
}

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

.tp-noteBox__list {
	margin: 6px 0 0;
	padding-left: 1.2em;
	color: var(--tp-muted);
	font-size: 14px;
}

.tp-noteBox__list li + li {
	margin-top: 6px;
}

/* --- よくあるご質問（details / summary・JS なし） --- */
.tp-faq {
	border-top: 1px solid var(--tp-line);
}

.tp-faq__item {
	border-bottom: 1px solid var(--tp-line);
}

.tp-faq__q {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 18px 34px 18px 0;
	position: relative;
	cursor: pointer;
	font-family: var(--tp-round);
	font-weight: 700;
	list-style: none;
}

/* 既定の三角マーカーを消して自前の＋に置き換える。 */
.tp-faq__q::-webkit-details-marker {
	display: none;
}

.tp-faq__q::after {
	content: "＋";
	position: absolute;
	right: 4px;
	color: var(--tp-primary);
	font-weight: 700;
}

.tp-faq__item[open] .tp-faq__q::after {
	content: "−";
}

.tp-faq__mark {
	flex: none;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--tp-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.tp-faq__a {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 0 0 20px;
	color: var(--tp-muted);
	font-size: 14px;
}

.tp-faq__a .tp-faq__mark {
	background: var(--tp-paper);
	color: var(--tp-primary);
	border: 1px solid var(--tp-line);
}

/* ［要確認］等のマーカー置き場（表示専用・構造化データへは出さない）。 */
.tp-faq__note {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--tp-accent);
}

/* --- ページ末尾の CTA ＋ RELATED --- */
/* TOP（front-page.php）の CTA セクションと共用するため pages/front.css から移した。 */
.tp-cta {
	text-align: center;
}

.tp-cta h2 {
	font-size: clamp(26px, 3vw, 34px);
	margin: 10px 0;
}

/* .tp-secHead p と同じく型セレクタのままにしてある（ラフ r2 準拠。上のコメント参照）。 */
.tp-cta p {
	color: var(--tp-muted);
	margin-bottom: 26px;
}

.tp-cta__btns {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

.tp-related {
	margin-top: clamp(40px, 5vw, 60px);
	padding-top: clamp(28px, 4vw, 40px);
	border-top: 1px solid var(--tp-line);
}

/* 上の .tp-cta p は RELATED の小見出し（p.tp-kicker）にも当たり 26px の余白が付く。
   ラベルの直下にリンクを置きたいので、ここだけ打ち消す。 */
.tp-related .tp-kicker {
	margin-bottom: 0;
}

.tp-related__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(12px, 1.6vw, 18px);
	margin-top: 18px;
	text-align: left;
}

.tp-related__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	background: #fff;
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-r);
	transition: 0.15s;
}

.tp-related__item:hover {
	border-color: var(--tp-primary);
}

.tp-related__h {
	display: block;
	font-family: var(--tp-round);
	font-weight: 700;
	font-size: 15px;
}

.tp-related__d {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--tp-muted);
}

.tp-related__arrow {
	flex: none;
	color: var(--tp-primary);
	font-weight: 700;
}

/* ===== 55 本文（ブロックエディタ） ======================================= */
.tp-prose {
	font-size: 15px;
}

.tp-prose > * + * {
	margin-top: 1.4em;
}

.tp-prose h2 {
	font-size: 22px;
	margin-top: 2em;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--tp-line);
}

.tp-prose h3 {
	font-size: 18px;
	margin-top: 1.8em;
}

.tp-prose ul,
.tp-prose ol {
	padding-left: 1.4em;
}

.tp-prose a {
	color: var(--tp-primary);
	text-decoration: underline;
}

.tp-prose img {
	border-radius: var(--tp-r);
}

.tp-pagelinks {
	margin-top: 32px;
	display: flex;
	gap: 10px;
	align-items: center;
}

/* ページネーション（the_posts_pagination）。 */
.tp-site .pagination {
	margin-top: 40px;
}

.tp-site .nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.tp-site .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--tp-line);
	border-radius: 100px;
	font-size: 14px;
}

.tp-site .page-numbers.current {
	background: var(--tp-primary);
	border-color: var(--tp-primary);
	color: #fff;
}

/* 検索フォーム（Arkhe の CSS を外したため最小限を自前で持つ）。 */
.tp-site .search-form {
	display: flex;
	gap: 8px;
	margin: 24px 0;
	flex-wrap: wrap;
}

.tp-site .search-form label {
	flex: 1 1 220px;
}

.tp-site .search-field {
	width: 100%;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--tp-line);
	border-radius: 100px;
	font: inherit;
}

.tp-site .search-submit {
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 100px;
	background: var(--tp-primary);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* ===== 60 footer ========================================================== */
.tp-footer {
	background: #2c3a31;
	color: #d7ded6;
	font-size: 13.5px;
}

.tp-footer .tp-wrap {
	padding-block: 56px 28px;
}

.tp-footer__top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 36px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tp-footer .tp-logo__text {
	color: #fff;
}

.tp-footer .tp-logo__text small {
	color: #9db0a3;
}

.tp-logo--footer {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tp-footer__about {
	margin-top: 16px;
	color: #aebbb1;
	max-width: 34ch;
	font-size: 13px;
}

.tp-footer__assoc {
	margin-top: 14px;
	display: inline-block;
	font-size: 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 100px;
	padding: 6px 14px;
}

.tp-footer__head {
	color: #fff;
	font-family: var(--tp-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 14px;
}

.tp-fstore {
	margin-bottom: 16px;
}

.tp-fstore b {
	color: #fff;
	font-weight: 700;
}

.tp-fstore span {
	display: block;
	color: #aebbb1;
	font-size: 12.5px;
	line-height: 1.7;
}

.tp-fstore a {
	color: #aebbb1;
}

.tp-fnav ul {
	display: grid;
	gap: 9px;
	list-style: none;
}

.tp-fnav__link:hover {
	color: #fff;
}

.tp-footer__btm {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 22px;
	font-size: 12px;
	color: #9db0a3;
	flex-wrap: wrap;
	gap: 10px;
}

/* ===== 90 responsive ====================================================== */
@media (max-width: 900px) {
	.tp-gnav,
	.tp-header__line {
		display: none;
	}

	.tp-hamburger {
		display: flex;
		margin-left: auto;
	}

	.tp-logo__text {
		font-size: 17px;
	}

	.tp-logo__mark {
		width: 34px;
		height: 34px;
	}

	.tp-footer__top {
		grid-template-columns: 1fr 1fr;
	}

	.tp-pageHero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tp-cards--cols3,
	.tp-cards--cols4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* 件数ぶんの列（--tp-flow）は 900px 以下では横に狭すぎるので2列で折り返す。 */
	.tp-flow {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	body {
		line-height: 1.85;
	}

	.tp-cards--cols2,
	.tp-cards--cols3,
	.tp-cards--cols4,
	.tp-flow,
	.tp-related__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.tp-pageHero__cta,
	.tp-cta__btns {
		flex-direction: column;
	}

	.tp-pageHero__cta .tp-btn,
	.tp-cta__btns .tp-btn {
		width: 100%;
	}

	.tp-sec {
		padding-block: 48px;
	}

	.tp-secHead {
		margin-bottom: 28px;
	}

	.tp-footer__top {
		grid-template-columns: 1fr;
	}

	.tp-news__item {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	/* ラフ SP と同じく本店／ひがしわき店の QR は横並びを保つ。
	   375px 端末でも収まるよう固定幅ではなく可変にする。 */
	.tp-qrPair {
		gap: 12px;
	}

	/* 150px 固定だと 375px 端末（パネル内寸 301px）で 2枚 312px が入らず縦積みに崩れる。
	   1:1 で分け合う可変幅にして、狭い端末でも横並びを保つ. */
	.tp-qrItem {
		flex: 1 1 0;
		min-width: 0;
		max-width: 150px;
		padding: 12px;
	}

	.tp-qrItem__qr {
		width: 112px;
		max-width: 100%;
		height: auto;
	}
}

/* 動きを減らす設定を尊重する（ドロワーの移動・ホバーの浮き上がり）。 */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.tp-drawer,
	.tp-scrim,
	.tp-news__item,
	.tp-btn {
		transition: none;
	}
}

/* 掲示事項（オンライン資格確認・医療DX）。保険薬局の掲示義務にあたる内容なので、
   訴求ではなく「読める告知」として置く＝目立たせず、しかし小さくしすぎない。
   本文は甲から受領した原稿をそのまま出す（front-page.php のコメント参照）。 */
.tp-notice {
	background: var(--tp-paper);
	border-top: 1px solid var(--tp-line);
}

.tp-notice__h {
	font-size: clamp(17px, 2.2vw, 20px);
	margin-bottom: 20px;
}

.tp-notice__body {
	color: var(--tp-muted);
	font-size: 14px;
	line-height: 1.95;
}

.tp-notice__body p + p {
	margin-top: 12px;
}

/* --- 検索フォーム（検索結果・404 から呼ぶ。ヘッダーには置かない） --- */
.tp-searchform {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	max-width: 480px;
	margin-top: 28px;
}

.tp-searchform__field {
	flex: 1 1 220px;
	min-height: 44px;
	padding: 0 14px;
	background: var(--tp-bg);
	border: 1px solid var(--tp-line);
	border-radius: 8px;
	color: var(--tp-ink);
	font: inherit;
	font-size: 16px; /* 16px 未満だと iOS Safari がフォーカスで拡大する */
}

.tp-searchform__field:focus-visible {
	border-color: var(--tp-primary);
	outline: 2px solid var(--tp-primary);
	outline-offset: 1px;
}

.tp-searchform__submit {
	min-height: 44px;
	padding: 0 22px;
	background: var(--tp-primary);
	border: none;
	border-radius: 8px;
	color: #fff;
	font-size: 13px;
	letter-spacing: .06em;
	cursor: pointer;
}

.tp-searchform__submit:hover {
	background: var(--tp-primary-dark);
}
