/* =========================================================
   当院について 専用CSS（page-about.php）
   そしがや駅前耳鼻咽喉科クリニック
   ---------------------------------------------------------
   ・PC：デザインカンプ（幅1280px）準拠
   ・タブレット（〜1024px）／SP（〜767px）はレスポンシブ調整
   ・クラス名は「p-about-」始まり。他ページには影響しません
========================================================= */

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

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

/* --- 全体 --- */
.p-about {
	overflow: hidden; /* 装飾・フォトスライダーのはみ出し防止 */
	color: var(--about-brown);
	font-family: var(--about-font);
	font-size: 15px;
	line-height: 1.95;
	letter-spacing: .04em;
	background: var(--about-cream);
}
.p-about *,
.p-about *::before,
.p-about *::after {
	box-sizing: border-box;
}
.p-about img {
	display: block;
	max-width: 100%;
	height: auto;
}
.p-about p {
	margin: 0;
}
.p-about ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.p-about h1,
.p-about h2,
.p-about h3,
.p-about h4 {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--about-font);
	letter-spacing: .08em;
}
.p-about h2::before,
.p-about h2::after,
.p-about h3::before,
.p-about h3::after,
.p-about h4::before,
.p-about h4::after {
	content: none; /* テーマ標準の見出し装飾を打ち消し */
}
.p-about__srOnly {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* =========================================================
   ページタイトル（ヒーロー）
========================================================= */
.p-about-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 245px;
	margin-top: var(--about-header-h);
	overflow: hidden;
	background: #8a8a8a;
}
.p-about-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .12);
}
.p-about-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center 52%;
}
.p-about .p-about-hero__title {
	position: relative;
	z-index: 1;
	color: #fff;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .1em;
	text-align: center;
	text-shadow: 0 0 12px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .3);
}

/* =========================================================
   地域のかかりつけ医として
========================================================= */
.p-about-intro {
	padding: 90px 0 80px;
}
.p-about-intro__inner {
	display: grid;
	grid-template-columns: 51% 1fr;
	gap: 60px;
	align-items: center;
	max-width: 1280px;
	margin-inline: auto;
}
.p-about-intro__img img {
	width: 100%;
	aspect-ratio: 650 / 398;
	object-fit: cover;
	border-radius: 0 var(--about-radius) var(--about-radius) 0;
}
.p-about-intro__body {
	padding-right: 40px;
}
.p-about .p-about-intro__title {
	color: var(--about-brown);
	font-size: 28px;
	font-weight: 700;
	line-height: 2.15;
	letter-spacing: .1em;
}
.p-about-intro__lead {
	margin-top: 50px !important;
	color: var(--about-teal);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.95;
	letter-spacing: .08em;
}
.p-about-intro__text {
	max-width: 400px;
	margin-top: 30px !important;
	line-height: 1.95;
}

/* =========================================================
   フォトスライダー（自動で左に流れる）
========================================================= */
.p-about-strip {
	position: relative;
	z-index: 1;
	overflow: hidden;
	background: linear-gradient(to bottom, var(--about-cream) 50%, #fff 50%);
}
.p-about .p-about-strip__track {
	display: flex;
	gap: 20px;
	width: max-content;
	padding-left: 4px;
	animation: pAboutStrip 40s linear infinite;
}
.p-about-strip:hover .p-about-strip__track {
	animation-play-state: paused;
}
.p-about-strip__item {
	flex: 0 0 auto;
	width: 380px;
}
.p-about-strip__item img {
	width: 100%;
	aspect-ratio: 380 / 250;
	object-fit: cover;
	border-radius: var(--about-radius);
}
@keyframes pAboutStrip {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(-50% - 10px)); } /* 1セット分（gapの半分を補正） */
}
@media (prefers-reduced-motion: reduce) {
	.p-about .p-about-strip__track {
		animation: none;
	}
}

/* =========================================================
   当院の特徴（白背景・2カラム）
========================================================= */
.p-about-features {
	position: relative;
	padding: 80px 20px 150px;
	background: #fff;
}
/* 左上・右下の薄いグリーンの三角形装飾 */
.p-about-features::before,
.p-about-features::after {
	content: "";
	position: absolute;
	pointer-events: none;
	background: var(--about-teal-pale);
}
.p-about-features::before {
	top: 0;
	left: 0;
	width: 410px;
	height: 200px;
	clip-path: polygon(0 0, 100% 0, 0 100%);
}
.p-about-features::after {
	right: 0;
	bottom: 0;
	width: 380px;
	height: 300px;
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.p-about .p-about-features__list {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 41px;
	max-width: 920px;
	margin-inline: auto;
}
.p-about-features__img img {
	width: 100%;
	aspect-ratio: 440 / 304;
	object-fit: cover;
	border-radius: var(--about-radius);
}
.p-about .p-about-features__title {
	margin-top: 30px;
	color: var(--about-teal);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.95;
	text-align: center;
}
.p-about-features__text {
	margin-top: 18px;
	color: var(--about-brown);
}
/* 下端の波形（次のクリーム色セクションへつなぐ） */
.p-about-features__wave {
	position: absolute;
	left: 0;
	bottom: -1px;
	z-index: 2;
	display: block;
	width: 100%;
	height: 70px;
	color: var(--about-cream);
}

/* =========================================================
   院内ギャラリー・設備（クリーム背景）
========================================================= */
.p-about-facility {
	padding: 70px 20px 140px;
	background: var(--about-cream);
}
.p-about__heading {
	text-align: center;
}
.p-about__eyebrow {
	color: var(--about-mint);
	font-family: "Roboto", var(--about-font);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .06em;
}
.p-about .p-about__headingMain {
	margin-top: 14px;
	color: var(--about-brown);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.5;
}
.p-about-facility__block {
	max-width: 920px;
	margin: 90px auto 0;
}
.p-about-facility__block--wide {
	max-width: 1080px;
	margin-top: 80px;
}

/* --- 色付きの帯見出し（施設案内／医療機器・設備／感染対策機器） --- */
.p-about .p-about__bar {
	padding: 13px 20px;
	border-radius: var(--about-radius);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.75;
	letter-spacing: .06em;
	text-align: center;
}
.p-about .p-about__bar--teal   { background: var(--about-teal); }
.p-about .p-about__bar--mint   { background: var(--about-mint); }
.p-about .p-about__bar--orange { background: var(--about-orange); }

/* --- 院内ギャラリー --- */
.p-about-gallery {
	margin-top: 30px;
}
.p-about-gallery__main {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--about-radius);
	background: #e9e5df;
}
.p-about-gallery__main img {
	width: 100%;
	aspect-ratio: 1080 / 520;
	object-fit: cover;
	transition: opacity .3s;
}
.p-about-gallery__main img.is-fading {
	opacity: 0;
}
.p-about-gallery__caption {
	position: absolute;
	left: 0;
	bottom: 0;
	min-width: 380px;
	max-width: 70%;
	padding: 18px 30px 18px 17px;
	border-radius: 0 12px 0 0;
	background: rgba(255, 255, 255, .78);
	color: var(--about-brown);
}
.p-about-gallery__capTitle {
	display: block;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
}
.p-about-gallery__capText {
	display: block;
	margin-top: 4px;
	font-size: 15px;
	line-height: 1.6;
}
.p-about-gallery__capText:empty {
	display: none;
}
.p-about .p-about-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px 14px;
	margin-top: 22px !important;
}
.p-about-gallery__thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 3px;
	overflow: hidden;
	background: none;
	cursor: pointer;
	outline-offset: 3px;
	transition: opacity .2s, box-shadow .2s;
}
.p-about-gallery__thumb img {
	width: 100%;
	aspect-ratio: 200 / 90;
	object-fit: cover;
	transition: transform .4s;
}
.p-about-gallery__thumb:hover img {
	transform: scale(1.05);
}
.p-about-gallery__thumb[aria-pressed="true"] {
	box-shadow: 0 0 0 3px var(--about-teal);
}
.p-about-gallery__thumb:focus-visible {
	outline: 2px solid var(--about-teal);
}

/* --- 医療機器・感染対策機器（2カラム） --- */
.p-about .p-about-machine {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 70px 40px;
	margin-top: 40px !important;
}
.p-about-machine__img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 253px;
}
.p-about-machine__img img {
	width: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
/* 写真未支給の仮表示 */
.p-about-machine__img.is-noimg {
	background: var(--about-gray);
	color: #e5333f;
	font-family: var(--about-font-body);
	font-size: 16px;
	font-weight: 700;
}
.p-about .p-about-machine__title {
	margin-top: 26px;
	color: var(--about-teal);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.85;
	letter-spacing: .04em;
	text-align: center;
}
.p-about-machine--orange .p-about-machine__title {
	color: var(--about-orange) !important;
}
.p-about-machine__text {
	margin-top: 18px;
	color: var(--about-text);
	font-family: var(--about-font-body);
	line-height: 1.95;
	letter-spacing: .03em;
}
.p-about-machine__text sub {
	font-size: .7em;
	vertical-align: baseline;
	position: relative;
	top: .25em;
}

/* =========================================================
   タブレット（〜1024px）
========================================================= */
@media (max-width: 1024px) {
	.p-about-intro__inner {
		grid-template-columns: 48% 1fr;
		gap: 40px;
	}
	.p-about-intro__body {
		padding-right: 30px;
	}
	.p-about .p-about-intro__title {
		font-size: 24px;
		line-height: 1.9;
	}
	.p-about-intro__lead {
		margin-top: 30px !important;
		font-size: 20px;
	}
	.p-about-strip__item {
		width: 320px;
	}
	.p-about-features::before {
		width: 300px;
		height: 150px;
	}
	.p-about-features::after {
		width: 280px;
		height: 220px;
	}
	.p-about .p-about-features__title {
		font-size: 20px;
	}
	.p-about .p-about-machine__title {
		font-size: 21px;
	}
	.p-about-machine__img {
		height: 220px;
	}
}

/* =========================================================
   SP（〜767px）
========================================================= */
@media (max-width: 767px) {
	.p-about {
		font-size: 14px;
		line-height: 1.9;
	}

	/* ヒーロー */
	.p-about-hero {
		height: 170px;
	}
	.p-about .p-about-hero__title {
		font-size: 24px;
	}

	/* 地域のかかりつけ医として：縦積み */
	.p-about-intro {
		padding: 50px 0 50px;
	}
	.p-about-intro__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.p-about-intro__img {
		padding-right: 20px;
	}
	.p-about-intro__body {
		padding: 0 20px;
	}
	.p-about .p-about-intro__title {
		font-size: 21px;
		line-height: 1.8;
		letter-spacing: .06em;
	}
	.p-about-intro__lead {
		margin-top: 22px !important;
		font-size: 18px;
		line-height: 1.75;
	}
	.p-about-intro__text {
		max-width: none;
		margin-top: 18px !important;
	}

	/* フォトスライダー */
	.p-about .p-about-strip__track {
		gap: 12px;
		animation-duration: 30s;
	}
	@keyframes pAboutStrip {
		from { transform: translateX(0); }
		to   { transform: translateX(calc(-50% - 6px)); }
	}
	.p-about-strip__item {
		width: 220px;
	}

	/* 特徴：1カラム */
	.p-about-features {
		padding: 50px 20px 100px;
	}
	.p-about-features::before {
		width: 200px;
		height: 100px;
	}
	.p-about-features::after {
		width: 180px;
		height: 150px;
	}
	.p-about .p-about-features__list {
		grid-template-columns: 1fr;
		gap: 50px;
	}
	.p-about .p-about-features__title {
		margin-top: 20px;
		font-size: 19px;
		line-height: 1.7;
	}
	.p-about-features__text {
		margin-top: 12px;
	}
	.p-about-features__wave {
		height: 40px;
	}

	/* 院内ギャラリー・設備 */
	.p-about-facility {
		padding: 50px 20px 90px;
	}
	.p-about .p-about__headingMain {
		margin-top: 8px;
		font-size: 22px;
	}
	.p-about-facility__block,
	.p-about-facility__block--wide {
		margin-top: 50px;
	}
	.p-about .p-about__bar {
		padding: 10px 16px;
		font-size: 16px;
	}
	.p-about-gallery {
		margin-top: 20px;
	}
	.p-about-gallery__main img {
		aspect-ratio: 4 / 3;
	}
	.p-about-gallery__caption {
		position: static;
		min-width: 0;
		max-width: none;
		padding: 12px 14px;
		border-radius: 0;
		background: #fff;
	}
	.p-about-gallery__capTitle {
		font-size: 15px;
	}
	.p-about-gallery__capText {
		font-size: 13px;
	}
	.p-about .p-about-gallery__thumbs {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 6px;
		margin-top: 14px !important;
	}
	.p-about-gallery__thumb {
		border-radius: 4px;
	}

	/* 医療機器：1カラム */
	.p-about .p-about-machine {
		grid-template-columns: 1fr;
		gap: 50px;
		margin-top: 30px !important;
	}
	.p-about-machine__img {
		height: auto;
		min-height: 160px;
		max-height: 230px;
	}
	.p-about-machine__img img {
		max-height: 230px;
	}
	.p-about-machine__img.is-noimg {
		height: 200px;
	}
	.p-about .p-about-machine__title {
		margin-top: 18px;
		font-size: 19px;
		line-height: 1.6;
	}
	.p-about-machine__text {
		margin-top: 12px;
	}
}
