/* ==========================================================================
   ON-CLINIC TOP ページ専用スタイル（page-clinic-top.php）
   デザイン案: https://on-clinic-top-design-20261002.workspace-673159.chatgpt.site
   ========================================================================== */

:root {
	--oc-navy: #103e68;
	--oc-blue: #12639f;
	--oc-blue-2: #287fb6;
	--oc-ink: #152b3d;
	--oc-body: #526b7e;
	--oc-muted: #7890a2;
	--oc-pale: #eef7fc;
	--oc-pale-2: #f7fbfe;
	--oc-line: #d5e5ef;
	--oc-orange: #e87936;
	--oc-orange-pale: #fff4eb;
	--oc-white: #fff;
	--oc-shadow: 0 18px 50px rgba(17, 74, 113, .10);
	--oc-radius: 24px;
	--oc-header-h: 82px;
}

/* ---- base ------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.clinic-top-page {
	margin: 0;
	color: var(--oc-ink);
	background: var(--oc-white);
	font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
:where(body.clinic-top-page) *,
:where(body.clinic-top-page) *::before,
:where(body.clinic-top-page) *::after { box-sizing: border-box; }
:where(body.clinic-top-page) a { color: inherit; text-decoration: none; }
:where(body.clinic-top-page) img { display: block; max-width: 100%; height: auto; }
:where(body.clinic-top-page) button { font: inherit; cursor: pointer; }
:where(body.clinic-top-page) ul { list-style: none; margin: 0; padding: 0; }
:where(body.clinic-top-page) h1,
:where(body.clinic-top-page) h2,
:where(body.clinic-top-page) h3 { font-weight: 700; }
body.clinic-top-page.admin-bar .oc-header { top: 32px; }
@media (max-width: 782px) { body.clinic-top-page.admin-bar .oc-header { top: 46px; } }
/* 600px以下では WP 管理バーが position:absolute（スクロールで消える）になるため、ヘッダーは最上部に固定 */
@media (max-width: 600px) { body.clinic-top-page.admin-bar .oc-header { top: 0; } }

.oc-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.oc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.oc-section-head h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.25; letter-spacing: -.03em; }
.oc-section-head p { max-width: 560px; margin: 0; color: var(--oc-body); }
.oc-section-foot { margin: 34px 0 0; text-align: right; }
.oc-text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--oc-blue); font-size: .92rem; font-weight: 700; }
.oc-text-link::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.oc-text-link:hover { color: var(--oc-blue-2); }

.oc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 54px; padding: 0 24px;
	border: 1px solid var(--oc-blue); border-radius: 14px;
	color: var(--oc-blue); background: var(--oc-white);
	font-weight: 700; text-align: center;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.oc-btn:hover { opacity: .88; }
.oc-btn--primary { color: var(--oc-white); background: var(--oc-blue); }

.oc-main section { padding: 104px 0; }
.oc-main section[id] { scroll-margin-top: calc(var(--oc-header-h) + 8px); } /* ページ内リンク時に固定ヘッダーで隠れないように */

/* ---- 01 header -------------------------------------------------------- */
.oc-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid rgba(213, 229, 239, .9);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.oc-header__inner { position: relative; min-height: var(--oc-header-h); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.oc-brand { display: inline-flex; align-items: center; min-height: 44px; }
.oc-brand img { width: 190px; height: auto; }
.oc-nav { margin-left: auto; }
.oc-nav__list { display: flex; align-items: center; gap: 6px; }
.oc-nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: #405a6f; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.oc-nav__link:not(.oc-nav__link--contact)::after { content: ""; position: absolute; left: 8px; right: 100%; bottom: 4px; height: 2px; background: var(--oc-blue); transition: right .2s ease; }
.oc-nav__link:not(.oc-nav__link--contact):hover::after { right: 8px; }
.oc-nav__item--contact { margin-left: 10px; }
.oc-nav__link--contact { padding: 0 19px; color: var(--oc-white); background: var(--oc-blue); border-radius: 12px; box-shadow: 0 8px 22px rgba(18, 99, 159, .18); }

.oc-menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid var(--oc-line); border-radius: 12px; background: var(--oc-white); color: var(--oc-blue); }
.oc-menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.oc-menu-toggle__bars,
.oc-menu-toggle__bars::before,
.oc-menu-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.oc-menu-toggle__bars { position: relative; margin: 0 auto; }
.oc-menu-toggle__bars::before,
.oc-menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.oc-menu-toggle__bars::before { top: -7px; }
.oc-menu-toggle__bars::after { top: 7px; }
.oc-menu-toggle[aria-expanded="true"] .oc-menu-toggle__bars { background: transparent; }
.oc-menu-toggle[aria-expanded="true"] .oc-menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.oc-menu-toggle[aria-expanded="true"] .oc-menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---- 02 hero ---------------------------------------------------------- */
.oc-hero { position: relative; min-height: 660px; overflow: hidden; background: var(--oc-pale); }
.oc-hero__visual { position: absolute; inset: 0 0 0 50%; display: block; }
.oc-hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.oc-hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(238, 247, 252, .94) 0%, rgba(238, 247, 252, .08) 44%, rgba(238, 247, 252, 0) 100%); }
.oc-hero__inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: 660px; }
.oc-hero__copy { width: 58%; padding: 80px 0 72px; }
.oc-hero__title { max-width: 720px; margin: 0 0 24px; font-size: clamp(2.55rem, 5vw, 4.7rem); line-height: 1.16; letter-spacing: -.055em; }
.oc-hero__accent { color: var(--oc-blue); }
.oc-hero__lead { max-width: 600px; margin: 0 0 34px; color: var(--oc-body); font-size: 1.04rem; }
.oc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- 03 news ---------------------------------------------------------- */
.oc-main .oc-news { padding: 38px 0; border-bottom: 1px solid var(--oc-line); background: var(--oc-white); }
.oc-news__row { display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 26px; }
.oc-news__title { margin: 0; font-size: 1.25rem; }
.oc-news__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.oc-news__item { min-width: 0; }
.oc-news__card { height: 100%; }
.oc-news__link { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--oc-line); border-radius: 14px; transition: border-color .2s ease; }
.oc-news__link:hover { border-color: #98c0d9; }
.oc-news__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; color: var(--oc-muted); font-size: .72rem; }
.oc-tag { padding: 2px 8px; color: var(--oc-orange); background: var(--oc-orange-pale); border-radius: 999px; font-weight: 700; }
.oc-news__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .88rem; font-weight: 700; line-height: 1.55; }
.oc-news__empty { margin: 0; color: var(--oc-body); font-size: .92rem; }

/* ---- 04 gateway ------------------------------------------------------- */
.oc-gateway { background: var(--oc-pale-2); }
.oc-gateway__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.oc-gateway-card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 32px; overflow: hidden; background: var(--oc-white); border: 1px solid var(--oc-line); border-radius: var(--oc-radius); box-shadow: 0 10px 30px rgba(19, 75, 112, .05); transition: transform .25s ease, box-shadow .25s ease; }
.oc-gateway-card:hover { border-color: #98c0d9; }
.oc-gateway-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--oc-blue); }
.oc-gateway-card--beauty { background: #fffaf6; }
.oc-gateway-card--beauty::before { background: var(--oc-orange); }
.oc-gateway-card__logo { display: flex; align-items: center; height: 44px; margin-bottom: 30px; }
.oc-gateway-card__logo img { width: auto; max-width: 100%; height: 30px; }
.oc-gateway-card__title { margin: 0 0 13px; font-size: 1.34rem; line-height: 1.4; }
.oc-gateway-card__text { margin: 0 0 26px; color: var(--oc-body); font-size: .94rem; }
.oc-gateway-card .oc-text-link { margin-top: auto; }

/* ---- 05-1 about ------------------------------------------------------- */
.oc-about { overflow: hidden; }
.oc-about__grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 76px; }
.oc-about__title { margin: 0 0 24px; font-size: clamp(2.15rem, 3vw, 2.55rem); line-height: 1.35; letter-spacing: -.035em; }
.oc-about__title span { display: block; white-space: nowrap; }
.oc-about__copy p { margin: 0 0 19px; color: var(--oc-body); }
.oc-about__services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0 34px; }
.oc-about__service { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 92px; padding: 16px 14px; background: var(--oc-white); border: 1px solid var(--oc-line); border-radius: 12px; transition: border-color .2s ease; }
.oc-about__service:hover { border-color: #98c0d9; }
.oc-about__service img { width: auto; max-width: 100%; height: 22px; }
.oc-about__service span { color: #37556a; font-size: .82rem; font-weight: 600; }
.oc-about__photo { position: relative; }
.oc-about__photo::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; right: -13%; top: -18%; background: var(--oc-pale); border-radius: 50%; }
.oc-about__photo img { position: relative; z-index: 2; width: 100%; border-radius: 20px; }

/* ---- 06 interviews (conditional) -------------------------------------- */
.oc-interviews { background: var(--oc-pale-2); }
.oc-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.oc-article-card { overflow: hidden; background: var(--oc-white); border: 1px solid var(--oc-line); border-radius: 20px; transition: transform .25s ease, box-shadow .25s ease; }
.oc-article-card:hover { border-color: #98c0d9; }
.oc-article-card__link { display: block; height: 100%; }
.oc-article-card__visual { display: block; height: 210px; overflow: hidden; background: linear-gradient(135deg, #e8f4fb, #d7eaf6); }
.oc-article-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.oc-article-card__body { display: block; padding: 24px; }
.oc-article-card__meta { display: block; margin: 0 0 10px; color: var(--oc-muted); font-size: .75rem; }
.oc-article-card__title { margin: 0 0 12px; font-size: 1.12rem; line-height: 1.55; }
.oc-article-card__excerpt { display: block; margin: 0 0 20px; color: var(--oc-body); font-size: .9rem; }

/* ---- 05-2 reasons ----------------------------------------------------- */
.oc-reasons { background: var(--oc-navy); color: var(--oc-white); }
.oc-reasons .oc-reasons .oc-section-head p { color: #c7d8e5; }
.oc-reasons__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.oc-reason-card { min-height: 260px; padding: 34px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; }
.oc-reason-card__number { margin: 0 0 38px; color: #8ec8ee; font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.oc-reason-card__title { margin: 0 0 16px; font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.35; }
.oc-reason-card__text { margin: 0; color: #c7d8e5; font-size: .92rem; }

/* ---- 07 contact / recruit --------------------------------------------- */
.oc-main .oc-actions { padding: 86px 0; }
.oc-action-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 52px; background: var(--oc-pale); border-radius: 28px; }
.oc-action-panel h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.3; }
.oc-action-panel p { margin: 0; color: var(--oc-body); }
.oc-action-panel__phone { margin-top: 14px !important; font-weight: 700; }
.oc-action-panel__phone a { color: var(--oc-blue); }
.oc-action-panel__buttons { display: grid; gap: 10px; }
.oc-action-panel__buttons .oc-btn { width: 100%; }
.oc-main .oc-recruit { padding: 0 0 90px; }
.oc-recruit__card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px 42px; background: #f2f7fb; border: 1px solid var(--oc-line); border-radius: 22px; }
.oc-recruit__card h2 { margin: 0 0 7px; font-size: 1.45rem; }
.oc-recruit__card p { margin: 0; color: var(--oc-body); }
.oc-recruit__card .oc-btn { flex: 0 0 auto; }

/* ---- 08 footer -------------------------------------------------------- */
.oc-footer { padding: 58px 0 24px; color: #d9e6ef; background: #0d3b63; }
.oc-footer__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }
.oc-footer__brand img { width: 205px; filter: brightness(0) invert(1); }
.oc-footer__brand p { max-width: 380px; margin: 18px 0 0; color: #9fb7c9; font-size: .85rem; }
.oc-footer__nav ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 22px; }
.oc-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: #d9e6ef; font-size: .86rem; }
.oc-footer__nav a:hover { text-decoration: underline; }
.oc-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; margin: 44px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); color: #91abbf; font-size: .72rem; }
.oc-footer__copy { margin: 0; }
.oc-footer__legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.oc-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: #c7d8e5; font-size: .78rem; }
.oc-footer__legal a:hover { text-decoration: underline; }

/* ---- responsive: tablet ------------------------------------------------ */
@media (max-width: 1040px) {
	.oc-menu-toggle { display: block; }
	.oc-header__inner { position: static; } /* メニューはヘッダー基準で全幅に */
	.oc-header { background: var(--oc-white); } /* 落ちてくるメニューをヘッダーの裏に隠す */
	.oc-nav {
		position: absolute; top: 100%; left: 0; right: 0; z-index: -1;
		margin: 0; padding: 12px 24px 24px;
		background: var(--oc-white); border-bottom: 1px solid var(--oc-line);
		box-shadow: 0 20px 30px rgba(15, 58, 91, .12);
		transform: translateY(-130%); opacity: 0; visibility: hidden;
		transition: transform .25s ease, opacity .25s ease, visibility .25s;
	}
	.oc-header { isolation: isolate; } /* z-index:-1 のメニューをヘッダー背景の裏に落とす */
	.oc-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
	.oc-nav__link:hover { background: #f4f8fb; }
	.oc-nav__list { display: block; }
	.oc-nav__item { border-bottom: 1px solid #edf3f7; }
	.oc-nav__link { display: flex; width: 100%; min-height: 50px; padding: 0 5px; font-size: 1rem; white-space: normal; }
	.oc-nav__link::after { display: none; }
	.oc-nav__item--contact { margin: 12px 0 0; border: 0; }
	.oc-nav__link--contact { justify-content: center; border-radius: 12px; }
	.oc-news__row { grid-template-columns: 1fr auto; }
	.oc-news__list { grid-column: 1 / -1; }
	.oc-about__grid { gap: 38px; }
}

/* ---- responsive: smartphone ------------------------------------------- */
@media (max-width: 760px) {
	:root { --oc-header-h: 68px; }
	.oc-container { width: min(100% - 32px, 680px); }
	.oc-brand img { width: 158px; }
	.oc-main section { padding: 76px 0; }
	.oc-section-head { display: block; margin-bottom: 26px; }
	.oc-section-head p { margin-top: 14px; }
	.oc-section-foot { text-align: left; }

	.oc-hero { min-height: 740px; background: var(--oc-white); }
	.oc-hero__visual { inset: 0; }
	.oc-hero__visual img { object-position: top center; }
	.oc-hero__visual::after { background: linear-gradient(180deg, rgba(238, 247, 252, .08) 18%, rgba(238, 247, 252, .96) 60%, #eef7fc 100%); }
	.oc-hero__inner { min-height: 740px; align-items: flex-end; }
	.oc-hero__copy { width: 100%; padding: 310px 0 46px; }
	.oc-hero__title { margin-bottom: 18px; font-size: clamp(1.9rem, 9.5vw, 2.3rem); letter-spacing: -.04em; }
	.oc-hero__lead { font-size: .93rem; }
	.oc-hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
	.oc-hero__actions .oc-btn { width: 100%; padding: 0 8px; font-size: clamp(.78rem, 3.4vw, .88rem); white-space: nowrap; }

	.oc-main .oc-news { padding: 30px 0; }
	.oc-news__row { grid-template-columns: 1fr; gap: 18px; }
	.oc-news__list { grid-template-columns: 1fr; gap: 8px; }
	.oc-news__row > .oc-text-link { justify-self: start; }

	.oc-gateway__grid,
	.oc-article-grid,
	.oc-reasons__grid { grid-template-columns: 1fr; }
	.oc-gateway-card { min-height: 250px; }

	.oc-about__grid { grid-template-columns: 1fr; }
	.oc-about__title { font-size: clamp(1.35rem, 6vw, 1.75rem); line-height: 1.45; letter-spacing: -.025em; }
	.oc-about__photo { order: -1; max-width: 520px; margin-inline: auto; }
	.oc-about__services { grid-template-columns: 1fr; }
	.oc-about__service { flex-direction: row; align-items: center; justify-content: space-between; min-height: 56px; }
	.oc-about__copy .oc-btn { width: 100%; }

	.oc-article-card__visual { height: 200px; }
	.oc-reason-card { min-height: auto; }
	.oc-reason-card__number { margin-bottom: 24px; }

	.oc-action-panel { grid-template-columns: 1fr; padding: 30px 22px; }
	.oc-recruit__card { display: block; padding: 30px 24px; }
	.oc-recruit__card .oc-btn { width: 100%; margin-top: 24px; }

	.oc-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.oc-footer__nav ul { grid-template-columns: repeat(2, 1fr); }
	.oc-footer__bottom { display: block; }
	.oc-footer__legal { margin-top: 6px; }
}

@media (max-width: 360px) {
	.oc-about__title span { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	body.clinic-top-page * { transition: none !important; }
}
