/* =========================================================
   そしがや駅前耳鼻咽喉科クリニック 固定ページ共通CSS
   対象：医師紹介／診療時間・アクセス／施設基準／プライバシーポリシー／お知らせ
   （当院について は page-about.css で単独管理）
   ---------------------------------------------------------
   ・PC：デザインカンプ（幅1280px）準拠
   ・タブレット（〜1024px）／SP（〜767px）はレスポンシブ調整
   ・クラス名は「p-ssg」始まり
========================================================= */

.p-ssgPage {
	/* 固定ヘッダーの高さ（ヘッダー差し替え時はここを調整） */
	--ssg-header-h: 0px;

	--ssg-teal: #05a9b5;
	--ssg-mint: #5ebeb0;
	--ssg-orange: #eb6100;
	--ssg-brown: #4c291b;
	--ssg-text: #222;
	--ssg-cream: #fcf9f4;
	--ssg-teal-pale: #eef8f6;
	--ssg-gray: #f4f4f4;
	--ssg-line: #d6d6d6;
	--ssg-font: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	--ssg-font-body: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	--ssg-radius: 8px;
	--ssg-inner: 920px;
	--ssg-wide: 1080px;
}
@media (min-width: 999px) {
	.p-ssgPage {
		--ssg-header-h: 70px;
	}
}

/* 本文を全幅で使う（テーマ標準の左右余白を解除） */
.p-ssgPage .l-content__body.l-container {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

/* --- 全体 --- */
.p-ssg {
	overflow: hidden;
	color: var(--ssg-brown);
	font-family: var(--ssg-font-body);
	font-size: 15px;
	line-height: 1.95;
	letter-spacing: .03em;
	background: #fff;
}
.p-ssg *,
.p-ssg *::before,
.p-ssg *::after {
	box-sizing: border-box;
}
.p-ssg img {
	display: block;
	max-width: 100%;
	height: auto;
}
.p-ssg p {
	margin: 0;
}
.p-ssg ul,
.p-ssg ol,
.p-ssg dl,
.p-ssg dd {
	margin: 0;
	padding: 0;
	list-style: none;
}
.p-ssg h1,
.p-ssg h2,
.p-ssg h3,
.p-ssg h4 {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: var(--ssg-font);
	letter-spacing: .06em;
}
.p-ssg h2::before,
.p-ssg h2::after,
.p-ssg h3::before,
.p-ssg h3::after,
.p-ssg h4::before,
.p-ssg h4::after {
	content: none; /* テーマ標準の見出し装飾を打ち消し */
}
.p-ssg a {
	color: inherit;
}
.p-ssg__srOnly {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* --- 幅 --- */
.p-ssg__inner {
	width: 100%;
	max-width: calc(var(--ssg-inner) + 40px);
	margin-inline: auto;
	padding-inline: 20px;
}
.p-ssg__inner--wide {
	max-width: calc(var(--ssg-wide) + 40px);
}

/* --- セクション背景 --- */
.p-ssgSec {
	position: relative;
	padding: 80px 0;
}
.p-ssgSec--white { background: #fff; }
.p-ssgSec--cream { background: var(--ssg-cream); }

/* 薄いグリーンの三角形装飾（左上／右下） */
.p-ssgSec.has-triTL::before,
.p-ssgSec.has-triBR::after {
	content: "";
	position: absolute;
	pointer-events: none;
	background: var(--ssg-teal-pale);
}
.p-ssgSec.has-triTL::before {
	top: 0;
	left: 0;
	width: 410px;
	height: 200px;
	clip-path: polygon(0 0, 100% 0, 0 100%);
}
.p-ssgSec.has-triBR::after {
	right: 0;
	bottom: 0;
	width: 380px;
	height: 300px;
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.p-ssgSec > * {
	position: relative;
	z-index: 1;
}

/* --- 波形の区切り --- */
/* 上のセクションの色で波を描き、下のセクションを波の位置まで持ち上げる。
   下のセクションの背景・三角形装飾が波の線のすぐ下から始まり、波の線で上下がきれいに分かれる */
.p-ssg {
	--ssg-wave-h: 70px; /* 波の高さ */
}
.p-ssgWave {
	position: relative;
	z-index: 2;
	display: block;
/* 	margin-top: calc(var(--ssg-wave-h) * -1); */
	line-height: 0;
	pointer-events: none;
}
.p-ssgWave svg {
	display: block;
	width: 100%;
	height: var(--ssg-wave-h);
}
.p-ssgWave.is-from-white path { fill: #fff; }
.p-ssgWave.is-from-cream path { fill: var(--ssg-cream); }
/* 波のすぐ下の要素：上に持ち上げ、持ち上げた分は透明の枠で確保（中身の位置は変わらない） */
.p-ssgWave + * {
	margin-top: calc(var(--ssg-wave-h) * -1);
	border-top: var(--ssg-wave-h) solid transparent;
}
.p-ssgWave + .has-triTL::before {
	top: calc(var(--ssg-wave-h) * -1);
}
/* ページ最後の波（下に要素がないとき）は、波の下側を下の色で塗る */
.p-ssgWave.is-to-white:last-child { background: #fff; }
.p-ssgWave.is-to-cream:last-child { background: var(--ssg-cream); }

/* =========================================================
   ページタイトル（写真の上に白文字）
========================================================= */
.p-ssgHero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 245px;
	margin-top: var(--ssg-header-h);
	padding: 0 20px;
	overflow: hidden;
	background: #8a8a8a;
}
.p-ssgHero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .14);
}
.p-ssgHero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none !important;
	height: 100% !important;
	object-fit: cover;
}
.p-ssg .p-ssgHero__title {
	position: relative;
	z-index: 1;
	color: #fff;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .08em;
	text-align: center;
	text-shadow: 0 0 12px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .3);
}

/* =========================================================
   見出し
========================================================= */
/* 英字＋日本語の中央見出し（例：Access／所在地） */
.p-ssgHeading {
	margin-bottom: 40px;
	text-align: center;
}
.p-ssgHeading__en {
	color: var(--ssg-mint);
	font-family: "Roboto", var(--ssg-font);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .04em;
}
.p-ssg .p-ssgHeading__main {
	margin-top: 14px;
	color: var(--ssg-brown);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.5;
}

/* 色付きの帯見出し */
.p-ssg .p-ssgBar {
	padding: 13px 20px;
	border-radius: var(--ssg-radius);
	background: var(--ssg-teal);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.75;
	text-align: center;
}

/* =========================================================
   ボタン
========================================================= */
.p-ssgBtn {
	--btn-color: var(--ssg-mint);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 10px 24px;
	border: 1px solid var(--btn-color);
	border-radius: 6px;
	background: var(--btn-color);
	color: #fff !important;
	font-family: var(--ssg-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .04em;
	text-align: center;
	text-decoration: none !important;
	transition: background-color .3s, color .3s;
}
/* ホバー：背景が白・文字が元の背景色（1pxの枠線だけ残る）※サイト共通の動き */
.p-ssgBtn:hover {
	background: #fff;
	color: var(--btn-color) !important;
}
.p-ssgBtn--teal   { --btn-color: var(--ssg-teal); }
.p-ssgBtn--orange { --btn-color: var(--ssg-orange); }
.p-ssgBtns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}
.p-ssgBtns .p-ssgBtn {
	width: 282px;
}

/* =========================================================
   プロフィールなどの項目（点線区切り＋見出し＋本文）
========================================================= */
.p-ssgDefs__item {
	padding: 22px 0 24px;
	border-top: 1px dotted var(--ssg-teal);
}
.p-ssg .p-ssgDefs__title {
	color: var(--ssg-teal);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .12em;
}
.p-ssgDefs__body {
	margin-top: 4px;
}
/* 年表（略歴） */
.p-ssgHistory {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0 22px;
	margin-top: 14px;
}
.p-ssgHistory dt {
	white-space: nowrap;
}

/* =========================================================
   文章ページ（施設基準・プライバシーポリシー・お知らせ本文）
========================================================= */
.p-ssgText {
	color: var(--ssg-brown);
	font-size: 15px;
	line-height: 1.95;
}
.p-ssgText > * + * {
	margin-top: 0;
}
.p-ssg .p-ssgText h2 {
	margin: 64px 0 32px;
	color: var(--ssg-teal);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .02em;
}
.p-ssg .p-ssgText h3 {
	margin: 36px 0 2px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .02em;
}
.p-ssg .p-ssgText h4 {
	margin: 28px 0 2px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .02em;
}
.p-ssg .p-ssgText > :first-child {
	margin-top: 0;
}
.p-ssg .p-ssgText ul.is-dot li {
	position: relative;
	padding-left: 1.05em;
}
.p-ssg .p-ssgText ul.is-dot li::before {
	content: "·";
	position: absolute;
	left: .1em;
	top: 0;
	font-weight: 700;
}
.p-ssg .p-ssgText ul.is-disc li {
	position: relative;
	padding-left: 1.6em;
}
.p-ssg .p-ssgText ul.is-disc li::before {
	content: "";
	position: absolute;
	left: .55em;
	top: .9em;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
}

/* =========================================================
   タブレット（〜1024px）
========================================================= */
@media (max-width: 1024px) {
	.p-ssgSec.has-triTL::before {
		width: 300px;
		height: 150px;
	}
	.p-ssgSec.has-triBR::after {
		width: 280px;
		height: 220px;
	}
}

/* =========================================================
   SP（〜767px）
========================================================= */
@media (max-width: 767px) {
	.p-ssg {
		font-size: 14px;
		line-height: 1.9;
	}
	.p-ssgSec {
		padding: 50px 0;
	}
	.p-ssgSec.has-triTL::before {
		width: 200px;
		height: 100px;
	}
	.p-ssgSec.has-triBR::after {
		width: 180px;
		height: 150px;
	}
	.p-ssg {
		--ssg-wave-h: 40px;
	}
	.p-ssgHero {
		height: 170px;
	}
	.p-ssg .p-ssgHero__title {
		font-size: 22px;
		line-height: 1.5;
	}
	.p-ssgHeading {
		margin-bottom: 28px;
	}
	.p-ssg .p-ssgHeading__main {
		margin-top: 6px;
		font-size: 22px;
	}
	.p-ssg .p-ssgBar {
		padding: 10px 16px;
		font-size: 16px;
	}
	.p-ssgBtn {
		min-height: 46px;
		font-size: 16px;
	}
	.p-ssgBtns {
		gap: 12px;
	}
	.p-ssgBtns .p-ssgBtn {
		width: 100%;
	}
	.p-ssg .p-ssgDefs__title {
		font-size: 17px;
	}
	.p-ssgHistory {
		gap: 0 14px;
	}
	.p-ssg .p-ssgText h2 {
		margin: 44px 0 20px;
		font-size: 22px;
	}
	.p-ssg .p-ssgText h3 {
		margin-top: 28px;
		font-size: 18px;
	}
	.p-ssg .p-ssgText h4 {
		margin-top: 22px;
		font-size: 16px;
	}
}
