/*
Theme Name: O2 Reserve
Theme URI: https://www.granpeak.jp/
Author: 株式会社グランピーク
Description: 酸素カプセル予約システム専用のテーマです。ヘッダー・フッター・基本の文字組みだけを持つ軽量な構成で、予約プラグイン（Smart Resource Reservations）の画面を主役にします。店名・電話番号・住所・営業時間などは「外観 → カスタマイズ」から変更できます。
Version: 2.10.15
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: o2-reserve
Tags: one-column, custom-logo, custom-menu, translation-ready
*/

/* ==========================================================================
   配色
   O2BOX のパンフレット（深い紺から青の水中グラデーション＋明るい水色）に合わせる。
   予約プラグインは自前の色変数を持つため、同じ値をここで上書きして統一する。
   ========================================================================== */
:root {
	--o2-navy-900: #061b33;
	/* ヘッダーの一番濃いところ。ロゴ画像の黒背景に合わせている。 */
	--o2-navy-950: #000a29;
	--o2-navy-800: #0b2a4a;
	--o2-navy-700: #123a63;
	--o2-blue-600: #1f6fb2;
	--o2-blue-500: #2e8bd4;
	--o2-aqua-400: #6ecff0;
	--o2-aqua-100: #e6f5fc;
	--o2-ink: #16232f;
	--o2-muted: #46586a;
	--o2-line: #d9e4ec;
	--o2-bg: #f5fafd;
	--o2-white: #fff;
	--o2-radius: 12px;
	--o2-shadow: 0 12px 34px rgba(11, 42, 74, .12);
	--o2-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;
}

/* 予約プラグインの色を、テーマの青へ揃える。プラグイン本体は書き換えない。 */
body {
	--srr-primary: var(--o2-blue-600);
	--srr-primary-dark: var(--o2-navy-700);
	--srr-soft: var(--o2-aqua-100);
	--srr-line: var(--o2-line);
}

/* ==========================================================================
   土台
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--o2-bg);
	color: var(--o2-ink);
	font-family: var(--o2-font);
	font-size: 16px;
	line-height: 1.85;
	/* iOS で入力欄をタップしたときに画面が拡大しないよう、本文は16px以上を保つ。 */
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--o2-blue-600); }
a:hover { color: var(--o2-navy-700); }

/* キーボード操作でどこにいるか分かるようにする。 */
:focus-visible {
	outline: 3px solid rgba(31, 111, 178, .35);
	outline-offset: 2px;
}

.o2-skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--o2-navy-800);
	color: #fff;
	border-radius: 0 0 8px 0;
}
.o2-skip-link:focus {
	left: 0;
	top: 0;
	color: #fff;
}

.o2-shell {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ==========================================================================
   ヘッダー
   スマホを主役に組む。1行目に店名、2行目に電話とメニューを並べ、
   画面が広いときだけ横一列へ切り替える。
   ========================================================================== */
.o2-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background:
		radial-gradient(1100px 320px at 12% -40%, rgba(110, 207, 240, .28), transparent 60%),
		radial-gradient(700px 260px at 88% -10%, rgba(46, 139, 212, .30), transparent 62%),
		linear-gradient(155deg, var(--o2-navy-950) 0%, var(--o2-navy-800) 45%, var(--o2-navy-700) 100%);
	color: #fff;
	box-shadow: 0 2px 18px rgba(6, 27, 51, .28);
}

/* 水中の気泡をあしらう。画像を使わないので表示が軽く、拡大しても粗くならない。 */
.o2-header::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(3px 3px at 18% 72%, rgba(255, 255, 255, .34), transparent 60%),
		radial-gradient(2px 2px at 34% 34%, rgba(255, 255, 255, .28), transparent 60%),
		radial-gradient(4px 4px at 62% 78%, rgba(255, 255, 255, .22), transparent 60%),
		radial-gradient(2px 2px at 78% 26%, rgba(255, 255, 255, .30), transparent 60%),
		radial-gradient(3px 3px at 91% 62%, rgba(255, 255, 255, .20), transparent 60%);
}

/* 店名を左、電話とハンバーガーを右に置いて1行に収める。
   メニューは折り返して、その下の段に開く。 */
.o2-header-inner {
	position: relative;
	/* オーバーレイ（z-index:1）より上に置く。メニューと閉じるボタンを覆わせないため。 */
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.o2-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	text-decoration: none;
	color: #fff;
	min-width: 0;
}
.o2-brand:hover { color: #fff; }

.o2-brand img {
	max-height: 50px;
	width: auto;
}

.o2-brand-text { min-width: 0; }

.o2-brand-name {
	display: block;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1.4;
}

.o2-brand-sub {
	display: block;
	margin-top: 2px;
	color: rgba(230, 245, 252, .82);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1.5;
}

.o2-header-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
}

/* 電話番号はスマホではそのまま発信できるようにする。
   狭い画面では番号を隠して丸いアイコンだけにし、ヘッダーの高さを抑える。
   番号は読み上げ用に aria-label で持たせてあるので、音声でも伝わる。 */
.o2-tel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	/* 指で押せる大きさを確保する。 */
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(230, 245, 252, .45);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #fff !important;
	text-decoration: none;
	font-weight: 800;
	font-size: 15px;
	white-space: nowrap;
}
.o2-tel:hover { background: rgba(255, 255, 255, .18); }
.o2-tel-icon { font-size: 18px; line-height: 1; }
.o2-tel-body { display: none; }
.o2-tel-note {
	display: block;
	color: rgba(230, 245, 252, .78);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
}

/* ハンバーガー。JSが動いたときだけ出る。 */
.o2-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(230, 245, 252, .45);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	cursor: pointer;
}
.o2-menu-toggle[hidden] { display: none; }
.o2-menu-toggle:hover { background: rgba(255, 255, 255, .18); }

.o2-menu-bars {
	display: block;
	width: 19px;
	height: 14px;
	position: relative;
}
.o2-menu-bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transition: transform .22s ease, opacity .18s ease;
}
.o2-menu-bars span:nth-child(1) { top: 0; }
.o2-menu-bars span:nth-child(2) { top: 6px; }
.o2-menu-bars span:nth-child(3) { top: 12px; }

/* 開いている間は×に変える。いま開いているかが一目で分かるようにする。 */
.o2-header.is-open .o2-menu-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.o2-header.is-open .o2-menu-bars span:nth-child(2) { opacity: 0; }
.o2-header.is-open .o2-menu-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 画面の右から引き出すメニュー。
   JSが動かない環境では、ヘッダーの下にそのまま並んで出るので導線は途切れない。 */
.o2-drawer { flex: 0 0 100%; width: 100%; }

.o2-header.o2-has-js .o2-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	/* 画面いっぱいにせず左を残すことで、背後がまだあると分かるようにする。 */
	width: min(84vw, 340px);
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: linear-gradient(170deg, var(--o2-navy-800) 0%, var(--o2-navy-900) 100%);
	box-shadow: -18px 0 44px rgba(3, 15, 30, .45);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .28s cubic-bezier(.22, .61, .36, 1), visibility .28s;
}
.o2-header.o2-has-js.is-open .o2-drawer {
	transform: translateX(0);
	visibility: visible;
}

.o2-drawer-head {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(230, 245, 252, .16);
}
.o2-header.o2-has-js .o2-drawer-head { display: flex; }

.o2-drawer-title {
	color: var(--o2-aqua-400);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .18em;
}

.o2-drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.o2-drawer-close:hover { background: rgba(255, 255, 255, .2); }

/* メニュー項目。小さなボタンではなく、幅いっぱいの行にする。 */
.o2-nav {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.o2-nav a {
	display: flex;
	align-items: center;
	/* 指で押しやすい大きさを確保する。 */
	min-height: 60px;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(230, 245, 252, .13);
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .02em;
}
.o2-nav a:hover,
.o2-nav a:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }

/* 行末の矢印。押せる場所だと分かるようにする。 */
.o2-nav a::after {
	content: "›";
	margin-left: auto;
	padding-left: 12px;
	color: var(--o2-aqua-400);
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
}

.o2-nav .o2-nav-primary a,
.o2-nav li.o2-nav-primary > a,
.o2-nav a.o2-nav-primary {
	background: var(--o2-aqua-400);
	color: var(--o2-navy-900);
	font-weight: 800;
}
.o2-nav .o2-nav-primary a::after,
.o2-nav a.o2-nav-primary::after { color: var(--o2-navy-800); }
.o2-nav .o2-nav-primary a:hover,
.o2-nav a.o2-nav-primary:hover { background: #8bdcf5; color: var(--o2-navy-900); }

.o2-drawer-foot {
	display: none;
	margin-top: auto;
	padding: 20px 18px 26px;
	border-top: 1px solid rgba(230, 245, 252, .16);
	text-align: center;
}
.o2-header.o2-has-js .o2-drawer-foot { display: block; }

.o2-drawer-foot-label {
	display: block;
	color: rgba(230, 245, 252, .72);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
}
.o2-drawer-tel {
	display: inline-block;
	margin: 6px 0 4px;
	color: #fff !important;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: .02em;
	text-decoration: none;
}
.o2-drawer-foot-note {
	display: block;
	color: rgba(230, 245, 252, .68);
	font-size: 12px;
	line-height: 1.7;
}

/* メニューの背後を覆って、視線をメニューへ集める。押すと閉じる。
   閉じている間は pointer-events を切る。透明でも残しておくと、
   本文のリンクやボタンが押せなくなるため。 */
.o2-overlay {
	position: fixed;
	inset: 0;
	z-index: 1;
	background: rgba(4, 18, 34, .58);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .28s ease, visibility .28s;
}
.o2-overlay[hidden] { display: none; }
.o2-header.is-open .o2-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* メニューを開いている間、背後の本文が動かないようにする。
   iOS は overflow だけでは止まらないため、JS側で位置を固定して戻している。 */
html.o2-menu-open,
body.o2-menu-open {
	overflow: hidden;
	touch-action: none;
}

/* 画面が広いときはハンバーガーをやめ、電話番号もメニューも出したままにする。 */
@media (min-width: 782px) {
	.o2-header-inner {
		flex-wrap: nowrap;
		gap: 20px;
		padding-top: 16px;
		padding-bottom: 16px;
	}
	.o2-brand img { max-height: 68px; }
	.o2-brand-name { font-size: 22px; }
	.o2-brand-sub { font-size: 13px; }
	.o2-header-actions { justify-content: flex-end; }

	.o2-tel {
		width: auto;
		height: auto;
		padding: 9px 16px;
	}
	.o2-tel-body { display: block; }

	.o2-menu-toggle { display: none !important; }
	.o2-overlay { display: none !important; }

	/* 引き出しをやめ、ヘッダーの横並びに戻す。 */
	.o2-header.o2-has-js .o2-drawer,
	.o2-drawer {
		position: static;
		flex: 0 0 auto;
		flex-direction: row;
		width: auto;
		overflow: visible;
		background: none;
		box-shadow: none;
		transform: none;
		visibility: visible;
	}
	.o2-header.o2-has-js .o2-drawer-head,
	.o2-header.o2-has-js .o2-drawer-foot { display: none; }

	.o2-nav {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}
	.o2-nav a {
		min-height: 42px;
		padding: 8px 16px;
		border: 1px solid rgba(230, 245, 252, .4);
		border-radius: 999px;
		font-size: 14px;
		white-space: nowrap;
	}
	.o2-nav a::after { content: none; }
	.o2-nav .o2-nav-primary a,
	.o2-nav li.o2-nav-primary > a,
	.o2-nav a.o2-nav-primary { border-color: transparent; }
}

/* ==========================================================================
   本文
   予約プラグインが自前の余白と枠を持つため、テーマ側は幅と上下の余白だけ与える。
   ========================================================================== */
.o2-main { padding: 24px 0 48px; }

.o2-page-title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: .02em;
}

.o2-entry p { margin: 0 0 1.2em; }

/* 見出しは角丸の帯にする。目印は酸素をイメージした丸。 */
.o2-entry h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 2em 0 .7em;
	padding: 12px 18px;
	border-radius: 12px;
	background: var(--o2-aqua-100);
	font-size: 20px;
	line-height: 1.5;
}
.o2-entry h2::before {
	content: "";
	flex: 0 0 auto;
	width: 13px;
	height: 13px;
	border: 3px solid var(--o2-blue-600);
	border-radius: 50%;
}
.o2-entry h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 1.8em 0 .6em;
	font-size: 17px;
}
.o2-entry h3::before {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--o2-aqua-400);
}
.o2-entry ul, .o2-entry ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.o2-entry li { margin-bottom: .4em; }

/* 記事本文の表だけを整える。会員ページの表は予約プラグインが自前で組んでいるため、
   ここで display を変えると空き状況の表組みが崩れる。本文側だけに限定する。 */
body:not(.srr-member-page) .o2-entry table {
	display: block;
	overflow-x: auto;
	border-collapse: collapse;
}
body:not(.srr-member-page) .o2-entry th,
body:not(.srr-member-page) .o2-entry td { padding: 10px 12px; border: 1px solid var(--o2-line); }
body:not(.srr-member-page) .o2-entry th { background: var(--o2-aqua-100); text-align: left; }

.o2-notfound {
	max-width: 640px;
	margin: 40px auto;
	padding: 28px 22px;
	border-radius: var(--o2-radius);
	background: #fff;
	box-shadow: var(--o2-shadow);
	text-align: center;
}
.o2-notfound h1 { margin: 0 0 12px; font-size: 22px; }

.o2-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 22px;
	border-radius: 10px;
	background: var(--o2-blue-600);
	color: #fff !important;
	font-weight: 800;
	text-decoration: none;
}
.o2-button:hover { background: var(--o2-navy-700); }

@media (min-width: 782px) {
	.o2-main { padding: 34px 0 64px; }
	.o2-page-title { font-size: 27px; }
}

/* ==========================================================================
   フッター
   ========================================================================== */
.o2-footer {
	background: linear-gradient(165deg, var(--o2-navy-800) 0%, var(--o2-navy-900) 100%);
	color: rgba(233, 244, 251, .9);
	padding: 20px 0;
	text-align: center;
}
.o2-copyright {
	margin: 0;
	color: rgba(233, 244, 251, .72);
	font-size: 12px;
	letter-spacing: .02em;
}

/* 予約入口のボタン下に置く画像。 */
.o2-portal-image {
	margin: 18px 0 0;
}
.o2-portal-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--o2-radius);
}

/* 読み上げにだけ残して、画面からは隠す（ロゴのみ表示のとき）。 */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   予約プラグインとの調整
   会員ページはプラグインが全幅で組むため、テーマの余白と競合させない。
   ========================================================================== */
/* 予約プラグインのカードは自前で内側の余白を持っている。そこへテーマの見出し余白
   （2em ≒ 40px）が加わると、見出しの上に大きな空きができる。カード内では詰める。 */
.o2-entry .srr-card h2 { margin-top: 8px; }
.o2-entry .srr-card-heading h2 { margin-top: 0; }

/* カードの先頭に来る見出しは、カード上端から8px程度に収める。
   カードの内側の余白（PC 30px／スマホ 22px）から差し引いて位置を合わせる。 */
.o2-entry .srr-card > h2:first-child,
.o2-entry .srr-card > .srr-card-heading:first-child { margin-top: -22px; }
@media (max-width: 720px) {
	.o2-entry .srr-card > h2:first-child,
	.o2-entry .srr-card > .srr-card-heading:first-child { margin-top: -14px; }
}

body.srr-member-page .o2-main { padding-top: 14px; }
body.srr-member-page .o2-page-title { display: none; }
body.srr-member-page .o2-shell--content { padding: 0; }

/* 管理バーが出ているときも、固定ヘッダーが隠れないようにする。 */
.admin-bar .o2-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .o2-header { top: 46px; }
}
@media (max-width: 600px) {
	/* WordPress の管理バーは600px以下で固定表示ではなくなる。 */
	.admin-bar .o2-header { top: 0; }
}

/* ヘッダーの公式LINEボタン。電話ボタンと同じ振る舞いに揃える。
   スマホでは丸いアイコンだけになり、ハンバーガーの左に並ぶ。 */
.o2-line {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #06c755;
	color: #fff !important;
	font-weight: 800;
	font-size: 14px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: filter .18s;
}
.o2-line:hover { filter: brightness(1.08); color: #fff !important; }
.o2-line-icon { display: inline-flex; align-items: center; }

@media (max-width: 781px) {
	.o2-line { gap: 0; width: 42px; height: 42px; padding: 0; justify-content: center; }
	.o2-line-body { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ==========================================================================
   記事（投稿）
   予約画面には出てこない要素なので、名前を o2-post* / o2-single* に分けて
   既存の指定と混ざらないようにしている。
   ========================================================================== */

.o2-listhead { margin-bottom: 28px; }
.o2-listhead-lead {
	margin: 10px 0 0;
	color: var(--o2-muted);
	font-size: 15px;
	line-height: 1.9;
}

/* 一覧。画面幅に応じて1列→2列に変える。3列にすると1件あたりが小さくなり、
   タイトルが2行で切れて読みにくくなるため2列で止める。 */
.o2-postlist {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
@media (min-width: 760px) {
	.o2-postlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.o2-postcard {
	background: var(--o2-white);
	border: 1px solid var(--o2-line);
	border-radius: var(--o2-radius);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.o2-postcard:hover { box-shadow: var(--o2-shadow); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
	.o2-postcard { transition: none; }
	.o2-postcard:hover { transform: none; }
}

.o2-postcard-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.o2-postcard-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--o2-aqua-100);
	overflow: hidden;
}
.o2-postcard-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.o2-postcard-body {
	display: block;
	padding: 18px 20px 22px;
}
.o2-postcard-date {
	display: block;
	margin-bottom: 6px;
	color: var(--o2-blue-600);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
}
.o2-postcard-title {
	display: block;
	color: var(--o2-ink);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.6;
}
.o2-postcard-link:hover .o2-postcard-title { color: var(--o2-blue-600); }
.o2-postcard-excerpt {
	display: block;
	margin-top: 10px;
	color: var(--o2-muted);
	font-size: 14px;
	line-height: 1.9;
}

/* 画像が無い記事。画像枠を空けたままにせず、タイトルを主役にする。
   クライアントが毎回アイキャッチを用意できない前提での見せ方。 */
.o2-postcard.is-textonly .o2-postcard-body {
	padding: 26px 22px 28px;
	border-left: 4px solid var(--o2-aqua-400);
}
.o2-postcard.is-textonly .o2-postcard-title { font-size: 22px; }

/* ページ送り */
.o2-pagination { margin-top: 34px; }
.o2-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.o2-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--o2-line);
	border-radius: 8px;
	background: var(--o2-white);
	color: var(--o2-ink);
	font-weight: 700;
	text-decoration: none;
}
.o2-pagination .page-numbers:hover { border-color: var(--o2-blue-500); color: var(--o2-blue-600); }
.o2-pagination .page-numbers.current {
	background: var(--o2-navy-800);
	border-color: var(--o2-navy-800);
	color: var(--o2-white);
}
.o2-pagination .page-numbers.dots { border-color: transparent; background: none; }

/* 記事ページ */
.o2-single-head { margin-bottom: 18px; }
.o2-single-date {
	display: block;
	margin-bottom: 8px;
	color: var(--o2-blue-600);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
}
.o2-single-thumb {
	margin: 0 0 26px;
	border-radius: var(--o2-radius);
	overflow: hidden;
}
.o2-single-thumb img { width: 100%; height: auto; display: block; }

/* 前後の記事 */
.o2-postnav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 36px;
	padding-top: 26px;
	border-top: 1px solid var(--o2-line);
}
@media (min-width: 760px) {
	.o2-postnav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.o2-postnav-item {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--o2-line);
	border-radius: var(--o2-radius);
	background: var(--o2-white);
	color: inherit;
	text-decoration: none;
}
.o2-postnav-item:hover { border-color: var(--o2-blue-500); }
.o2-postnav-item.is-next { text-align: right; }
.o2-postnav-label {
	display: block;
	margin-bottom: 4px;
	color: var(--o2-muted);
	font-size: 12px;
	font-weight: 700;
}
.o2-postnav-title {
	display: block;
	color: var(--o2-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
}

.o2-backlink { margin-top: 28px; text-align: center; }
.o2-backlink a { color: var(--o2-blue-600); font-weight: 700; }

/* ==========================================================================
   パソコンでもハンバーガーにまとめる（外観 → カスタマイズ → 施設情報）
   HTMLとJSはスマートフォン用のものをそのまま使い、ここでは
   782px 以上向けの「横一列に戻す」指定だけを打ち消す。
   ========================================================================== */

@media (min-width: 782px) {
	.o2-drawer-always .o2-header-inner {
		flex-wrap: wrap;
		gap: 12px;
	}

	/* 電話・公式LINEは、スマートフォンと同じ丸いアイコンに戻す。 */
	.o2-drawer-always .o2-tel {
		width: 42px;
		height: 42px;
		padding: 0;
		justify-content: center;
	}
	.o2-drawer-always .o2-tel-body { display: none; }
	.o2-drawer-always .o2-line {
		gap: 0;
		width: 42px;
		height: 42px;
		padding: 0;
		justify-content: center;
	}
	.o2-drawer-always .o2-line-body {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	/* ハンバーガーと覆いを出す。 */
	.o2-drawer-always .o2-menu-toggle { display: inline-flex !important; }
	.o2-drawer-always .o2-menu-toggle[hidden] { display: none !important; }
	.o2-drawer-always .o2-overlay { display: block !important; }
	.o2-drawer-always .o2-overlay[hidden] { display: none !important; }

	/* 引き出しに戻す。
	   JSが動いたとき（.o2-has-js）だけに限る。JSが読み込めない環境でこれを当てると、
	   メニューが画面の外へ出たまま開く手段がなくなり、予約への導線が消える。 */
	.o2-drawer-always .o2-header.o2-has-js .o2-drawer {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		z-index: 60;
		display: flex;
		flex: 0 0 auto;
		flex-direction: column;
		width: min(360px, 86vw);
		overflow-y: auto;
		background: var(--o2-navy-900);
		box-shadow: -18px 0 40px rgba(0, 0, 0, .35);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .24s ease, visibility .24s;
	}
	.o2-drawer-always .o2-header.o2-has-js.is-open .o2-drawer {
		transform: translateX(0);
		visibility: visible;
	}
	.o2-drawer-always .o2-header.o2-has-js .o2-drawer-head,
	.o2-drawer-always .o2-header.o2-has-js .o2-drawer-foot { display: block; }
	.o2-drawer-always .o2-header.o2-has-js .o2-drawer-head { display: flex; }

	/* メニューは縦並びに戻す。 */
	.o2-drawer-always .o2-nav {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 4px;
		width: 100%;
		padding: 14px 18px 18px;
	}
	.o2-drawer-always .o2-nav a {
		width: 100%;
		justify-content: flex-start;
	}
}

@media (min-width: 782px) and (prefers-reduced-motion: reduce) {
	.o2-drawer-always .o2-header.o2-has-js .o2-drawer { transition: none; }
}

/* メニューの一番上に置く案内（酸素カプセルとは？）。
   予約の導線と役割が違うので、下に区切り線を入れて分ける。 */
.o2-nav-lead a {
	font-weight: 800;
}
.o2-nav-lead {
	position: relative;
	padding-bottom: 4px;
	margin-bottom: 4px;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
@media (min-width: 782px) {
	body:not(.o2-drawer-always) .o2-nav-lead {
		padding-bottom: 0;
		margin-bottom: 0;
		border-bottom: 0;
	}
}
