/*
 * 西にっぽり内科消化器クリニック：全ページ共通の CSS（nn-common）
 * 読み込み順：tokens.css → ds.css → この CSS → ページごとの CSS（assets/nn/<ページ>/style.css）
 *
 * 中身
 *   0. 共通の変数（tokens.css の var を部品の名前で使う）
 *   1. 全体の下地（リセット・body の字・スキップリンク・読み上げ用の文字）
 *   2. 下層ヘッダー（template-parts/parts/nn-site-header.php）… PC は 1025px 以上、それより狭いと SP の形（MENU）
 *   3. グローバルナビとプルダウン（PC）
 *   4. 言語の切り替え（nn-lang.php）
 *   5. SPメニュー（nn-menu.php。開閉は script.js）
 *   6. 予約のボタン（nn-rsv-btns.php）と予約の帯（nn-cta.php）
 *   7. フッター（nn-site-footer.php）
 *   8. 固定ボタン（nn-fixed.php）… PC は 768px 以上
 * 見た目の正：医院/nishinippori-scratch/HTML/診療時間・担当医表_PC_1604-212757/公開用 の s01（ヘッダー）・s03（予約の帯）・s04（フッター）
 * ホバーは注意書きどおり PC だけ（@media (hover: hover)）・0.3秒 Ease Out
 */

/* ========== 0. 共通の変数 ========== */
:root {
	--nn-text: var(--color-text-primary);
	--nn-ink: var(--color-text-secondary);
	--nn-bg: var(--color-background-main);
	--nn-white: var(--color-white);
	--nn-orange: var(--color-brand-orange);
	--nn-orange-dark: var(--color-brand-orange-dark);
	/* tokens.css は、注意書き「カラー」の Hover-orange・Active-orange の値（#faf0ed・#fae6e1）を Brand / Green・Green Dark の名前で出し、
	   Brand / Gold（#d7b56d）を Active-orange の名前で出している（作る道具が値と名前を取り違えた）。LINE 予約ボタン（ds.css）が緑にならないので、
	   注意書きどおりの名前と値をここで上書きする（tokens.css は手で直さない。作る道具 figma_tokens.py の直しは報告の「提案」） */
	--color-brand-green: #76983b;
	--color-brand-green-dark: #65980e;
	--color-brand-gold: #d7b56d;
	--color-hover-orange: #faf0ed;
	--color-active-orange: #fae6e1;
	--nn-green: var(--color-brand-green);
	--nn-green-dark: var(--color-brand-green-dark);
	--nn-gold: var(--color-brand-gold);          /* #d7b56d */
	--nn-gold-light: var(--color-brand-gold-light); /* #f0e2c4 */
	--nn-cream: var(--color-extra-fffdf5);
	--nn-gray: var(--color-extra-939393);
	--nn-line: var(--color-border-table);
	--nn-table-head: var(--color-background-table);
	/* 書体：Figma の見出しは Shippori Mincho B1（tokens の見出しの書体は Shippori Mincho が先） */
	--nn-serif: "Shippori Mincho B1", var(--font-family-heading), "Noto Serif JP", serif;
	--nn-sans: var(--font-family-body);
	--nn-en: var(--font-family-latin), "Noto Serif JP", serif;
	--nn-gutter: clamp(16px, 4vw, 40px);
	--nn-ease: 0.3s ease-out;
	--nn-fix-sp-h: 44px; /* SP の固定ボタンの高さ */
}

/* ========== 1. 全体の下地 ========== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	overflow-x: clip;
	background: var(--nn-bg);
	color: var(--nn-text);
	font: var(--font-body);
	letter-spacing: 0.05em; /* 静的 HTML の本文の下地と同じ */
	text-spacing-trim: space-all;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.nn-main { display: block; }
.nn-main:focus { outline: none; }

/* 小さなアイコン（nn_svg。文字の色で塗る） */
.nn-svg { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: middle; }

/* 読み上げ用の文字（画面には出さない） */
.nn-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* 本文へのスキップリンク（キーボードで選んだときだけ出る） */
.nn-skip {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 10000;
	padding: 12px 16px;
	border-radius: 4px;
	background: var(--nn-white);
	color: var(--nn-text);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
	clip-path: inset(50%);
	opacity: 0;
}
.nn-skip:focus { clip-path: none; opacity: 1; }

/* ========== 2. 下層ヘッダー ========== */
.nn-hd { position: relative; z-index: 30; }
.nn-hd ul { list-style: none; margin: 0; padding: 0; }
.nn-hd p { margin: 0; }
.nn-hd a { text-decoration: none; }

/* 上の細い帯（PC 高さ 30px） */
.nn-hd-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 30px;
	padding: 0 50px;
	background: var(--nn-gold-light);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
}
.nn-hd-info { display: flex; gap: 16px; letter-spacing: 0.05em; white-space: nowrap; }
.nn-hd-topbar-right { display: flex; align-items: center; gap: 30px; }
.nn-hd-links { display: flex; align-items: center; gap: 30px; }
.nn-hd-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	min-height: 44px;
	margin-block: -7px;
	letter-spacing: 0.1em;
	white-space: nowrap;
	transition: color var(--nn-ease);
}

/* ロゴ・電話・予約ボタンの段（高さ 80px） */
.nn-hd-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 80px;
	padding-left: 30px;
	background: var(--nn-white);
}
.nn-hd-logo { display: flex; flex-direction: column; gap: 4px; width: 228px; color: var(--nn-text); }
.nn-hd-logo-img { position: relative; display: block; width: 196px; height: 48px; }
.nn-hd-logo-mark { position: absolute; left: 0; top: 0; width: 71px; height: 48px; }
.nn-hd-logo-type { position: absolute; left: 55px; top: 6px; width: 141px; height: 37px; }
.nn-hd-logo-sub {
	display: block;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.12em;
	text-align: right;
	white-space: nowrap;
}
.nn-hd-contact { display: flex; align-items: stretch; height: 80px; }
.nn-hd-tel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 220px;
	padding-right: 14px;
}
.nn-hd-tel-label {
	padding-left: 4px;
	font-family: var(--nn-serif);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.1em;
	white-space: nowrap;
}
/* 電話：PC はリンクなし（注意書き） */
.nn-hd-tel-num {
	display: flex;
	align-items: center;
	margin-top: 11px;
	color: var(--nn-text);
	font-family: var(--nn-en);
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.1em;
	white-space: nowrap;
	pointer-events: none;
	cursor: default;
}
.nn-hd-tel-num .nn-svg { width: 24px; height: 24px; }
.nn-hd-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 130px;
	color: var(--nn-white);
	font-family: var(--nn-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.05em;
	white-space: nowrap;
	transition: background-color var(--nn-ease);
}
.nn-hd-btn .nn-svg { width: 20px; height: 20px; }
.nn-hd-btn--line .nn-svg { width: 22px; height: 22px; }
.nn-hd-btn--web { width: 129px; background: var(--nn-orange); }
.nn-hd-btn--line { background: var(--nn-green); }

/* MENU ボタン（SP の形のときだけ） */
.nn-hd-menu-btn,
.nn-hd-float {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 48px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--nn-text);
	cursor: pointer;
}
.nn-hd-menu-bars {
	display: block;
	width: 26px;
	height: 13px;
	background:
		linear-gradient(currentColor, currentColor) 0 0 / 100% 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) 0 50% / 100% 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
}
.nn-hd-menu-bars > span { display: none; }
.nn-hd-menu-label { font-family: var(--nn-en); font-size: 10px; line-height: 1; letter-spacing: 0.1em; }

/* ========== 3. グローバルナビとプルダウン（PC） ========== */
.nn-hd-nav {
	position: relative;
	background: var(--nn-cream);
	box-shadow: 0 2px 6px rgb(79 73 50 / 0.05);
}
.nn-hd-nav-list { display: flex; justify-content: center; gap: 38px; height: 52px; }
.nn-hd-nav-item { position: relative; }
.nn-hd-nav-link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 44px;
	height: 52px;
	padding-top: 4px;
	color: var(--nn-text);
	transition: color var(--nn-ease);
}
.nn-hd-nav-home { width: 24px; height: 24px; }
.nn-hd-nav-ja {
	display: flex;
	align-items: center;
	height: 24px;
	font-family: var(--nn-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.05em;
	white-space: nowrap;
}
.nn-hd-nav-en {
	display: block;
	height: 12px;
	padding-bottom: 2px;
	color: var(--nn-gray);
	font-family: var(--nn-en);
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.15em;
	white-space: nowrap;
	transition: color var(--nn-ease);
}
.nn-hd-nav-caret { width: 8px; height: 5px; color: var(--nn-gray); transition: color var(--nn-ease); }

/* プルダウン（項目へのホバーで出す。項目・プルダウンのどちらかにカーソルがある間は出したまま） */
.nn-hd-drop {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 40;
	padding-top: 4px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%);
	transition: opacity var(--nn-ease), visibility var(--nn-ease);
}
.nn-hd-drop-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px !important;
	border-radius: 5px;
	background: var(--nn-cream);
	box-shadow: 0 4px 12px rgb(79 73 50 / 0.12);
}
.nn-hd-drop-link {
	display: block;
	padding: 10px;
	border-radius: 5px;
	color: var(--nn-text);
	font-family: var(--nn-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.05em;
	white-space: nowrap;
	transition: background-color var(--nn-ease), color var(--nn-ease);
}
.nn-hd-nav-item.has-child:focus-within .nn-hd-drop { opacity: 1; visibility: visible; }

@media (hover: hover) {
	.nn-hd-links a:hover { color: var(--nn-orange); }
	.nn-hd-btn--web:hover { background: var(--nn-orange-dark); }
	.nn-hd-btn--line:hover { background: var(--nn-green-dark); }
	/* ナビ：文字とアイコンをオレンジへ（注意書き 1770:146793） */
	.nn-hd-nav-link:hover,
	.nn-hd-nav-link:hover .nn-hd-nav-en,
	.nn-hd-nav-link:hover .nn-hd-nav-caret,
	.nn-hd-nav-item.has-child:hover > .nn-hd-nav-link,
	.nn-hd-nav-item.has-child:hover > .nn-hd-nav-link .nn-hd-nav-en,
	.nn-hd-nav-item.has-child:hover > .nn-hd-nav-link .nn-hd-nav-caret { color: var(--nn-orange); }
	.nn-hd-nav-item.has-child:hover .nn-hd-drop { opacity: 1; visibility: visible; }
	/* プルダウンの項目：背景をオレンジ・文字を白へ（注意書き 1770:146792） */
	.nn-hd-drop-link:hover { background: var(--nn-orange); color: var(--nn-white); }
}

/* 間の幅：ナビの間を詰める */
@media (max-width: 1280px) {
	.nn-hd-nav-list { gap: 28px; }
}
@media (max-width: 1100px) {
	.nn-hd-topbar { padding-inline: var(--nn-gutter); }
	.nn-hd-nav-list { gap: 18px; }
	.nn-hd-nav-ja { font-size: 15px; letter-spacing: 0.02em; }
}

/* ========== 2'. SP の形のヘッダー（1024px 以下。Figma の SP Header 390×89） ========== */
@media (max-width: 1024px) {
	.nn-hd-topbar {
		justify-content: center;
		height: 18px;
		padding: 0 8px;
		font-size: 10px;
	}
	.nn-hd-info { gap: 12px; }
	/* 言語の切り替えは、ロゴの段の右（MENU の左）へ */
	.nn-hd-topbar-right { position: absolute; top: 18px; right: 64px; height: 71px; gap: 0; }
	.nn-hd-links { display: none; }

	.nn-hd-head { height: 71px; padding: 0 12px 0 11px; }
	.nn-hd-logo { width: auto; gap: 5px; }
	.nn-hd-logo-img { width: 162px; height: 40px; }
	.nn-hd-logo-mark { width: 59px; height: 40px; }
	.nn-hd-logo-type { left: 45px; top: 5px; width: 117px; height: 31px; }
	.nn-hd-logo-sub { font-size: 10px; letter-spacing: 0.08em; text-align: left; }
	.nn-hd-contact { display: none; }
	.nn-hd-nav { display: none; }
	.nn-hd-menu-btn { display: flex; }

	/* FV を過ぎたら、MENU ボタンだけを右上に固定（script.js が html に nn-past-fv） */
	.nn-hd-float {
		position: fixed;
		top: 8px;
		right: 8px;
		z-index: 950;
		display: flex;
		width: 56px;
		height: 56px;
		border-radius: 50%;
		background: var(--nn-white);
		box-shadow: 0 0 10px rgb(109 97 61 / 0.2);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--nn-ease), visibility var(--nn-ease);
	}
	.nn-hd-float .nn-hd-menu-bars { width: 22px; height: 11px; }
	.nn-hd-float { gap: 5px; }
	html.nn-past-fv .nn-hd-float { opacity: 1; visibility: visible; }
	html.nn-menu-open .nn-hd-float { opacity: 0; visibility: hidden; }

	/* 本人の指示（ADR-0084）：SP ヘッダーは全体を画面の上に付いてくる形（注意書きはメニューボタンだけ固定）。
	   下層ページはヘッダーを sticky にし、MENU だけの固定ボタンは出さない（トップは top/style.css） */
	.nn-hd { position: sticky; top: 0; z-index: 900; background: var(--nn-white); }
	.nn-hd + .nn-hd-float { display: none; }
	html { scroll-padding-top: 89px; }
}

/* ========== 4. 言語の切り替え ========== */
.nn-lang { position: relative; }
.nn-lang ul { list-style: none; margin: 0; padding: 0; }
.nn-lang-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 97px;
	height: 20px;
	padding: 0 8px 0 12px;
	border: 1px solid var(--nn-gray);
	border-radius: 2px;
	background: var(--nn-white);
	color: var(--nn-text);
	font-family: var(--nn-sans);
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	cursor: pointer;
	transition: color var(--nn-ease);
}
/* 押せる所は高さ 44px（見た目の箱は 20px のまま）。position:absolute は border の内側から測るので、border 1px 分（-1px）を足す */
.nn-lang-btn::after { content: ""; position: absolute; inset: -13px -1px; }
.nn-lang-arrow { width: 14px; height: 7px; margin-left: auto; transition: transform var(--nn-ease); }
.nn-lang.is-open .nn-lang-arrow { transform: rotate(180deg); }
.nn-lang-list {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 60;
	min-width: 100%;
	padding: 4px 0 !important;
	border: 1px solid var(--nn-gray);
	border-radius: 2px;
	background: var(--nn-white);
	box-shadow: 0 4px 10px rgb(79 73 50 / 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity var(--nn-ease), visibility var(--nn-ease), transform var(--nn-ease);
}
.nn-lang.is-open .nn-lang-list { opacity: 1; visibility: visible; transform: none; }
.nn-lang-list a,
.nn-lang-list span[aria-disabled] {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	color: var(--nn-text);
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.05em;
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--nn-ease);
}
.nn-lang-list a[aria-current] { font-weight: 700; }
.nn-lang-list span[aria-disabled] { cursor: default; }
@media (hover: hover) {
	.nn-lang-btn:hover,
	.nn-lang-list a:hover { color: var(--nn-orange); }
}
@media (max-width: 1024px) {
	.nn-lang-btn { width: 80px; height: 18px; padding: 0 6px 0 8px; font-size: 10px; gap: 2px; }
	.nn-lang-btn::after { inset: -14px -1px; }
}

/* ========== 5. SPメニュー（1024px 以下で使う） ========== */
.nn-menu { position: fixed; inset: 0; z-index: 1000; }
.nn-menu[hidden] { display: none; }
.nn-menu ul { list-style: none; margin: 0; padding: 0; }
.nn-menu p { margin: 0; }
.nn-menu a { text-decoration: none; }
.nn-menu-backdrop {
	position: absolute;
	inset: 0;
	background: rgb(51 51 51 / 0.4);
	opacity: 0;
	transition: opacity 0.4s ease-out;
}
.nn-menu-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(100%, 480px);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: var(--nn-white);
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nn-menu.is-open .nn-menu-backdrop { opacity: 1; }
.nn-menu.is-open .nn-menu-panel { transform: none; }
/* 閉じるときは右へ戻る（.is-open を外すと戻る。少し速く） */
.nn-menu:not(.is-open) .nn-menu-panel { transition-duration: 0.3s; transition-timing-function: ease-in; }

/* 上：帯・ロゴ・言語・CLOSE（SP ヘッダーと同じ 18＋71px） */
.nn-menu-info {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	height: 18px;
	background: var(--nn-gold-light);
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.05em;
	white-space: nowrap;
}
.nn-menu-bar {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 71px;
	padding: 0 20px 0 11px;
}
.nn-menu-logo { display: flex; flex-direction: column; gap: 5px; margin-right: auto; color: var(--nn-text); }
.nn-menu-logo-img { position: relative; display: block; width: 162px; height: 40px; }
.nn-menu-logo-mark { position: absolute; left: 0; top: 0; width: 59px; height: 40px; }
.nn-menu-logo-type { position: absolute; left: 45px; top: 5px; width: 117px; height: 31px; }
.nn-menu-logo-sub { font-size: 10px; font-weight: 500; line-height: 1; letter-spacing: 0.08em; white-space: nowrap; }
.nn-menu-bar .nn-lang-btn { width: 80px; height: 18px; padding: 0 6px 0 8px; font-size: 10px; gap: 2px; }
.nn-menu-bar .nn-lang-btn::after { inset: -14px -1px; }
.nn-menu-close {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 48px;
	margin-right: -6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--nn-orange);
	cursor: pointer;
}
.nn-menu-close .nn-svg { width: 32px; height: 32px; }
.nn-menu-close-label { color: var(--nn-text); font-family: var(--nn-en); font-size: 10px; line-height: 1; letter-spacing: 0.05em; }

/* 項目（350×88・間 10px） */
.nn-menu-nav { padding: 24px 20px 0; }
.nn-menu-list { display: flex; flex-direction: column; gap: 10px; }
.nn-menu-link {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 88px;
	padding: 0 20px;
	border: 0;
	border-radius: 2px;
	background: var(--nn-gold-light);
	color: var(--nn-text);
	text-align: left;
	cursor: pointer;
}
.nn-menu-icon { flex: none; width: 40px; height: 40px; }
.nn-menu-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.nn-menu-ja {
	font-family: var(--nn-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.03em; /* Figma の文字の幅（「一般内科・生活習慣病外来」227px）に収める */
}
.nn-menu-en {
	color: var(--nn-gray);
	font-family: var(--nn-en);
	font-size: 10px;
	line-height: 1;
	letter-spacing: 0.1em;
}
/* 右の丸（矢印・開閉の ＋／－） */
.nn-menu-mark {
	position: relative;
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--nn-orange);
	color: var(--nn-white);
}
.nn-menu-mark .nn-svg { --nn-ac-bg: var(--nn-orange); width: 20px; height: 20px; }
.nn-menu-mark--acc::before,
.nn-menu-mark--acc::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 9.25px;
	width: 10px;
	height: 1.5px;
	background: currentColor;
	transition: transform var(--nn-ease);
}
.nn-menu-mark--acc::after { transform: rotate(90deg); }
.nn-menu-item.is-open .nn-menu-mark--acc::after { transform: rotate(0deg); }

/* 下層（押すと真下に開く） */
.nn-menu-sub {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease-out;
}
.nn-menu-item.is-open .nn-menu-sub { grid-template-rows: 1fr; }
.nn-menu-sub-in { min-height: 0; overflow: hidden; }
/* 子リンクは2列（本人の指示 ADR-0084。注意書きは1列） */
.nn-menu-sub-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 10px 20px !important; background: var(--nn-cream); }
.nn-menu-item:not(.is-open) .nn-menu-sub-in { visibility: hidden; transition: visibility 0s 0.3s; }
.nn-menu-sub-link {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	color: var(--nn-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.05em;
}
.nn-menu-sub-text { flex: 1; min-width: 0; }
.nn-menu-sub-link .nn-svg { --nn-ac-bg: var(--nn-orange); width: 20px; height: 20px; color: var(--nn-white); }

/* 電話・予約 */
.nn-menu-contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 48px 20px calc(60px + env(safe-area-inset-bottom));
}
.nn-menu-tel-label {
	padding-bottom: 4px;
	border-bottom: 1px solid var(--nn-text);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.1em;
}
.nn-menu-tel {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	margin-top: 4px;
	color: var(--nn-text);
	font-family: var(--nn-en);
	font-size: 32px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.1em;
	white-space: nowrap;
}
.nn-menu-tel .nn-svg { width: 28px; height: 28px; }
.nn-menu-btns { display: flex; flex-direction: column; gap: 20px; width: 100%; margin-top: 24px; }

/* PC（1025px 以上）ではメニューを使わない */
@media (min-width: 1025px) {
	.nn-menu { display: none !important; }
}

/* ========== 6. 予約のボタン（白い札＋アイコン・文字・矢印） ========== */
.nn-rsv {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-height: 66px;
	padding: 13px 12px 12px;
	border-radius: 4px;
	color: var(--nn-white);
	text-decoration: none;
	transition: background-color var(--nn-ease);
}
.nn-rsv--web { background: var(--nn-orange-dark); }
.nn-rsv--line { background: var(--nn-green-dark); }
.nn-rsv-pill {
	display: block;
	width: min(182px, 100%);
	padding: 4px 0;
	border-radius: 50px;
	background: var(--nn-white);
	font-family: var(--nn-sans);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.05em;
	text-align: center;
	white-space: nowrap;
}
.nn-rsv--web .nn-rsv-pill { color: var(--nn-orange-dark); }
.nn-rsv--line .nn-rsv-pill { color: var(--nn-green-dark); }
.nn-rsv-main {
	display: flex;
	align-items: center;
	gap: 4px;
	padding-left: 16px;
	font-family: var(--nn-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	white-space: nowrap;
}
.nn-rsv--line .nn-rsv-main { gap: 0; }
.nn-rsv-icon { width: 16px; height: 16px; }
.nn-rsv--line .nn-rsv-icon { width: 20px; height: 16px; }
.nn-rsv-arrow { width: 16px; height: 16px; margin-left: 16px; }
.nn-rsv--web .nn-rsv-arrow { color: var(--nn-orange-dark); }
.nn-rsv--line .nn-rsv-arrow { color: var(--nn-green-dark); }
@media (hover: hover) {
	.nn-rsv--web:hover { background: color-mix(in srgb, var(--nn-orange-dark) 82%, #000); }
	.nn-rsv--line:hover { background: color-mix(in srgb, var(--nn-green-dark) 82%, #000); }
}
/* SPメニューの中（350×80） */
.nn-menu-btns .nn-rsv { min-height: 80px; padding: 16px 12px; gap: 8px; }
.nn-menu-btns .nn-rsv-pill { width: min(220px, 100%); }
.nn-menu-btns .nn-rsv-main { padding-left: 0; font-size: 18px; }
.nn-menu-btns .nn-rsv-icon { width: 20px; height: 20px; }
.nn-menu-btns .nn-rsv-arrow { width: 18px; height: 18px; margin-left: 20px; }

/* ========== 6'. 予約の帯「ご予約・お問い合わせ」（高さ 348px） ========== */
.nn-cta {
	--nn-cta-white-top: 184px; /* フッターの白い地が始まる位置（帯の上端から） */
	position: relative;
	padding-bottom: 18px;
}
.nn-cta p { margin: 0; }
/* フッターの白い地（上の角 30px）。フッターへ続く */
.nn-cta::before {
	content: "";
	position: absolute;
	inset: var(--nn-cta-white-top) 0 0;
	border-radius: 30px 30px 0 0;
	background: var(--nn-white);
}
.nn-cta-band {
	position: relative;
	z-index: 1;
	isolation: isolate;
	display: flex;
	align-items: center;
	gap: 40px;
	width: min(var(--w-inner), 100% - var(--nn-gutter) * 2);
	min-height: 330px;
	margin-left: max(var(--nn-gutter), 50% - 558px);
	padding: 60px 60px 60px 61px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--color-extra-877f6e);
}
.nn-cta-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.nn-cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(135 127 110 / 0.75);
}
.nn-cta-lead { flex: 0 0 393px; display: flex; flex-direction: column; gap: 24px; }
.nn-cta-title { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.nn-cta-title-ja {
	color: var(--nn-white);
	font-family: var(--nn-serif);
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.1em;
	white-space: nowrap;
}
.nn-cta-title-en {
	color: var(--nn-gold-light);
	font-family: var(--nn-en);
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.05em;
}
.nn-cta-text {
	color: var(--nn-white);
	font-family: var(--nn-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.1em;
}
.nn-cta-box {
	flex: 0 1 565px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 32px;
	border-radius: 10px;
	background: rgb(255 255 255 / 0.85);
}
.nn-cta-tel { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nn-cta-tel-label {
	padding-bottom: 4px;
	border-bottom: 1px solid var(--nn-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.1em;
}
/* PC はリンクにしない（SP だけタップで発信）。押す所は 44px、見た目の高さは 37px のまま */
.nn-cta-tel-num {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	min-height: 44px;
	margin-block: -3.5px;
	padding-block: 3.5px;
	color: var(--nn-text);
	text-decoration: none;
	pointer-events: none;
	cursor: default;
}
.nn-cta-tel-num .nn-svg { width: 35px; height: 35px; margin-bottom: 2px; }
.nn-cta-tel-num span {
	font-family: var(--nn-en);
	font-size: 36px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.1em;
	white-space: nowrap;
}
.nn-cta-btns { display: flex; justify-content: center; gap: 20px; width: 100%; }
.nn-cta-btns .nn-rsv { flex: 0 1 241px; min-width: 0; }

/* 中間幅：見出しの段と白い箱を縦に積む */
@media (max-width: 1100px) {
	.nn-cta { --nn-cta-white-top: 260px; }
	.nn-cta-band {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
		margin-inline: auto;
		padding: 48px clamp(20px, 5vw, 60px);
	}
	.nn-cta-lead { flex: none; }
	.nn-cta-box { flex: none; width: min(565px, 100%); align-self: center; }
}
/* SP（Figma の CTA 350×537） */
@media (max-width: 767px) {
	.nn-cta { --nn-cta-white-top: 270px; }
	.nn-cta-band { width: calc(100% - 40px); min-height: 0; gap: 20px; padding: 32px 10px; }
	.nn-cta-title { gap: 4px; }
	.nn-cta-title-ja { font-size: 26px; white-space: normal; }
	.nn-cta-title-en { font-size: 20px; }
	.nn-cta-text { font-size: 14px; line-height: 1.6; }
	.nn-cta-box { width: 100%; gap: 16px; padding: 32px 20px; }
	.nn-cta-tel { width: 100%; }
	.nn-cta-tel-label { font-size: 12px; }
	.nn-cta-tel-num { pointer-events: auto; cursor: pointer; }
	.nn-cta-tel-num .nn-svg { width: 31px; height: 31px; }
	.nn-cta-tel-num span { font-size: 32px; }
	.nn-cta-btns { flex-direction: column; gap: 16px; }
	.nn-cta-btns .nn-rsv { flex: none; min-height: 80px; padding: 16px 12px; gap: 8px; }
	.nn-cta-btns .nn-rsv-pill { width: min(220px, 100%); }
	.nn-cta-btns .nn-rsv-main { padding-left: 0; font-size: 18px; }
	.nn-cta-btns .nn-rsv-icon { width: 20px; height: 20px; }
	.nn-cta-btns .nn-rsv-arrow { width: 18px; height: 18px; margin-left: 20px; }
}

/* ========== 7. フッター ========== */
.nn-ft { background: var(--nn-white); }
.nn-ft p { margin: 0; }
.nn-ft a { text-decoration: none; }
.nn-ft-inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: clamp(40px, 5.6vw, 80px);
	width: min(1240px, 100% - var(--nn-gutter) * 2);
	margin-left: max(var(--nn-gutter), 50% - 620px);
	padding: 76px 0 80px;
}
/* 左：ロゴと医院の情報 */
.nn-ft-info { flex: 0 0 auto; min-width: 0; display: flex; flex-direction: column; gap: 38px; }
.nn-ft-logo { display: flex; flex-direction: column; gap: 5px; width: 400px; max-width: 100%; }
.nn-ft-logo-img { position: relative; display: block; width: 100%; aspect-ratio: 400 / 98; }
.nn-ft-logo-mark { position: absolute; left: 0; top: 0; width: 36.25%; height: 100%; }
.nn-ft-logo-type { position: absolute; left: 28%; top: 11.22%; width: 72%; height: 76.53%; }
.nn-ft-logo-sub {
	display: block;
	color: var(--nn-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.21em;
	text-align: right;
	white-space: nowrap;
}
.nn-ft-list { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.nn-ft-item { display: flex; align-items: flex-start; gap: 20px; }
.nn-ft-label {
	flex: none;
	width: 80px;
	padding: 4px 0;
	border-radius: 2px;
	background: var(--nn-gold);
	color: var(--nn-white);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.1em;
	text-align: center;
	white-space: nowrap;
}
.nn-ft-value { margin: 0; min-width: 0; font-size: 16px; line-height: 1.6; letter-spacing: 0.05em; }
/* 右：診療時間表 2つ */
.nn-ft-hours { flex: 0 1 686px; min-width: 0; display: flex; flex-direction: column; gap: 25px; }
.nn-ft-group { display: flex; flex-direction: column; gap: 6px; }
.nn-ft-group-title { margin: 0; font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: 0.1em; }
.nn-ft-table {
	--ht-head-size: 14px;
	--ht-head-pad: 7px;
	--ht-time-size: 16px;
	--ht-cell-size: 14px;
	--ht-row-h: 63px;
	--ht-first: 28.57%;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	border-top: 1px solid var(--nn-line);
	border-left: 1px solid var(--nn-line);
	border-radius: 5px 5px 0 0;
	color: var(--nn-text);
	font-weight: 500;
	letter-spacing: 0.05em;
	text-align: center;
}
.nn-ft-table th,
.nn-ft-table td {
	padding: 0 4px;
	border-right: 1px solid var(--nn-line);
	border-bottom: 1px solid var(--nn-line);
	font-weight: 500;
	vertical-align: middle;
}
.nn-ft-table thead th {
	padding-block: var(--ht-head-pad);
	background: var(--nn-table-head);
	font-size: var(--ht-head-size);
	line-height: 1;
}
.nn-ft-table thead th:first-child { width: var(--ht-first); border-top-left-radius: 5px; }
.nn-ft-table thead th:last-child { border-top-right-radius: 5px; }
.nn-ft-table tbody th,
.nn-ft-table tbody td { height: var(--ht-row-h); background: var(--nn-white); }
.nn-ft-table tbody th { font-size: var(--ht-time-size); line-height: 1.2; white-space: nowrap; }
.nn-ft-table tbody td { color: var(--nn-orange); font-size: var(--ht-cell-size); line-height: 1; letter-spacing: 0; }
.nn-ft-note { font-size: 12px; line-height: 1.2; letter-spacing: 0.1em; }
/* 下の帯 */
.nn-ft-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	height: 34px;
	padding: 0 40px;
	background: var(--nn-gold);
}
/* 押す所は 44px、帯の高さは変えない */
.nn-ft-privacy {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin-block: -5px;
	color: var(--nn-white);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.1em;
	white-space: nowrap;
	transition: opacity var(--nn-ease);
}
.nn-ft-copy { color: var(--nn-gold-light); font-size: 12px; line-height: 16px; letter-spacing: 0; }

/* 中間幅：情報と表を縦に積む */
@media (max-width: 1100px) {
	.nn-ft-inner {
		flex-direction: column;
		align-items: center;
		gap: 56px;
		width: min(686px, 100% - var(--nn-gutter) * 2);
		margin-inline: auto;
	}
	.nn-ft-info, .nn-ft-hours { flex: none; width: 100%; }
	.nn-ft-logo { align-self: center; }
}
/* SP（Figma：ロゴ 250px 中央・札は全幅・表 350px・帯 68px） */
@media (max-width: 767px) {
	.nn-ft-inner { gap: 60px; width: calc(100% - 40px); padding: 65px 0 80px; }
	.nn-ft-info { gap: 60px; }
	.nn-ft-logo { width: 250px; }
	.nn-ft-logo-sub { color: var(--nn-text); font-size: 12px; letter-spacing: 0.1em; text-align: center; }
	.nn-ft-list { gap: 24px; }
	.nn-ft-item { flex-direction: column; align-items: stretch; gap: 4px; }
	.nn-ft-label { width: 100%; font-size: 12px; }
	.nn-ft-value { font-size: 12px; }
	.nn-ft-hours { gap: 24px; }
	.nn-ft-group { gap: 12px; }
	.nn-ft-group-title { font-size: 14px; }
	.nn-ft-table { --ht-head-size: 12px; --ht-head-pad: 9px; --ht-time-size: 12px; --ht-cell-size: 12px; --ht-row-h: 40px; }
	.nn-ft-table th, .nn-ft-table td { padding-inline: 1px; }
	.nn-ft-table tbody th { letter-spacing: 0; }
	.nn-ft-note { letter-spacing: 0.05em; }
	.nn-ft-bar {
		flex-direction: column;
		justify-content: center;
		gap: 0;
		height: auto;
		min-height: 68px;
		padding: 4px 20px 8px;
	}
	.nn-ft-privacy { margin-block: 0; justify-content: center; }
	.nn-ft-copy { font-size: 10px; text-align: center; }
}
@media (hover: hover) {
	.nn-ft-privacy:hover { opacity: 0.7; }
}

/* ========== 8. 固定ボタン ========== */
.nn-fix a { text-decoration: none; }
/* メニューを開いている間は押せない */
html.nn-menu-open .nn-fix { pointer-events: none; }

/* PC（768px 以上）：Web・LINE 予約は右端の中央に縦。TOP は右下 */
@media (min-width: 768px) {
	.nn-fix-rsv {
		position: fixed;
		top: 50%;
		right: 0;
		z-index: 900;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 12px;
		transform: translateY(-50%);
	}
	.nn-fix-btn {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: 64px;
		height: 200px;
		border-radius: 5px 0 0 5px;
		box-shadow: 0 0 10px rgb(109 97 61 / 0.15);
		color: var(--nn-white);
		transition: width var(--nn-ease), background-color var(--nn-ease), box-shadow var(--nn-ease);
	}
	/* 固定CTAは Dark が通常表示・PC ホバーで Accent に反転（注意書き 1729:171350） */
	.nn-fix-btn--web { background: var(--nn-orange-dark); }
	.nn-fix-btn--line { height: 202px; background: var(--nn-green-dark); }
	.nn-fix-icon { width: 24px; height: 24px; }
	.nn-fix-btn--line .nn-fix-icon { height: 26px; }
	.nn-fix-label {
		writing-mode: vertical-rl;
		text-orientation: upright;
		font-family: var(--nn-serif);
		font-size: 18px;
		font-weight: 800;
		line-height: 1;
		letter-spacing: 0;
	}
	.nn-fix-top {
		position: fixed;
		right: 10px;
		bottom: 10px;
		z-index: 900;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 54px;
		height: 54px;
		border: 1px solid var(--nn-orange);
		border-radius: 50%;
		background: var(--nn-white);
		box-shadow: 0 0 10px rgb(109 97 61 / 0.15);
		color: var(--nn-orange-dark);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--nn-ease), visibility var(--nn-ease), background-color var(--nn-ease), color var(--nn-ease);
	}
	.nn-fix-top-icon { width: 24px; height: 24px; margin-bottom: -8px; }
	.nn-fix-top-label { font-family: var(--nn-en); font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: 0.05em; }
	html.nn-past-fv .nn-fix-top { opacity: 1; visibility: visible; }
}
@media (min-width: 768px) and (hover: hover) {
	/* ホバー：右端はそのまま左へ 12px 広がる・影を浅く・濃い色 */
	.nn-fix-btn:hover { width: 76px; box-shadow: 0 0 4px rgb(109 97 61 / 0.15); }
	.nn-fix-btn--web:hover { background: var(--nn-orange); }
	.nn-fix-btn--line:hover { background: var(--nn-green); }
	.nn-fix-top:hover { background: var(--nn-orange); color: var(--nn-white); }
}

/* SP（767px 以下）：Web予約・LINE予約（同じ幅）・TOP（右端）を画面の下に横並び。最大 390px で中央 */
@media (max-width: 767px) {
	.nn-fix {
		position: fixed;
		left: 50%;
		bottom: 0;
		z-index: 900;
		display: flex;
		width: min(100%, 390px);
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--nn-white);
		transform: translateX(-50%);
	}
	.nn-fix-rsv { display: flex; flex: 1; min-width: 0; }
	.nn-fix-btn {
		display: flex;
		flex: 1;
		align-items: center;
		justify-content: center;
		gap: 6px;
		min-width: 0;
		height: var(--nn-fix-sp-h);
		color: var(--nn-white);
		font-family: var(--nn-serif);
		font-size: 16px;
		font-weight: 700;
		line-height: 1;
		white-space: nowrap;
	}
	.nn-fix-btn--web { background: var(--nn-orange-dark); }
	.nn-fix-btn--line { background: var(--nn-green-dark); border-left: 1px solid var(--nn-white); }
	.nn-fix-icon { width: 20px; height: 20px; }
	.nn-fix-top {
		display: none;
		flex: none;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: var(--nn-fix-sp-h);
		background: var(--nn-gray);
		color: var(--nn-white);
	}
	html.nn-past-fv .nn-fix-top { display: flex; }
	.nn-fix-top-icon { width: 16px; height: 16px; margin-bottom: -2px; }
	.nn-fix-top-label { font-family: var(--nn-en); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0.05em; }
	/* ページの最後に固定ボタンの高さ分の余白（フッターが隠れない） */
	body { padding-bottom: calc(var(--nn-fix-sp-h) + env(safe-area-inset-bottom)); }
}

/* 動きを減らす設定：流れる・スライドする動きを止める */
@media (prefers-reduced-motion: reduce) {
	.nn-menu-panel,
	.nn-menu-backdrop,
	.nn-menu-sub,
	.nn-hd-drop,
	.nn-lang-list,
	.nn-fix-btn { transition: none !important; }
	html { scroll-behavior: auto !important; }
}
