@charset "utf-8";

p, ul {
	margin: 0;
}

button:hover {
  background-color: transparent;
  color: var(--color-txt);
  border-width: 2px;
}

/* -------------------------------------------------------------- */

body {
	display: flex;
	flex-direction: column;
}

main {
	flex-grow: 1;
}

/* -------------------------------------------------------------- */

.PageHeader {
	background-image: url(../img/home/kv_7.webp);
}

.no-webp .PageHeader {
	background-image: url(../img/home/kv_7.jpg);
}

.PageHeader::before {
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0)
}

/* -------------------------------------------------------------- */

#reservation {
    margin-block-start: 20px;
}

@media screen and (min-width: 768px) {
    #reservation {
        margin-block-start: 30px;
    }

	.section-header + * {
        margin-block-start: 40px;
    }

	.section-header__read {
		max-width: 100%;
		text-align: center;
	}
}

/* -------------------------------------------------------------- */

.tab {
	display: flex;
	flex-direction: column;
	row-gap: 12px;
}

@media screen and (min-width: 1080px) {
	.tab {
		row-gap: 20px;
	}
}

.tab__btns {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	row-gap: 10px;
}

@media screen and (min-width: 1080px) {
	.tab__btns {
		column-gap: 20px;
	}
}

@media screen and (min-width: 1280px) {
	.tab__btns {
		column-gap: 40px;
	}
}

.tab__btn {
	font-size: 1.6rem;
	line-height: 1.5;
	border-width: 2px;
	border-radius: 10px;
	font-weight: 600;
	grid-column: span 12;
	padding-block: 1.2rem;
	padding-inline: 1rem;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

@media screen and (min-width: 1080px) {
	.tab__btn {
		font-size: 1.7rem;
		line-height: 1.2;
		grid-column: span 4;
		padding-block: 1.4rem;
		padding-inline: 1.4rem;
	}
}

.tab__btn .small {
	font-size: 1.2rem;
}

@media screen and (min-width: 1080px) {
	.tab__btn .small {
		font-size: 1.4rem;
	}
}

.tab__btn[aria-selected="true"] {
	background-color: var(--color-txt);
	color: #fff;
}

.tab__extra {
	text-align: center;
}

.tab__extra-icon svg {
	width: 36px;
	height: 36px;
}

@media screen and (min-width: 1080px) {
	.tab__extra-icon {
		stroke-width: 0.5;
	}

	.tab__extra-icon svg {
		width: 48px;
		height: 48px;
	}
}

.tab__extra-title {
	font-size: 1.6rem;
	font-weight: bold;
}

@media screen and (min-width: 1080px) {
	.tab__extra-title {
		font-size: 1.8rem;
	}
}

.tab__extra-text {
	margin-top: 12px;
}

@media screen and (min-width: 1080px) {
	.tab__extra-text {
		margin-top: 20px;
	}
}

/* 注意喚起バッジ: 赤を増やさずに重要注釈の視認性を上げる */
.tab__extra-text.-notice,
.webres__contact-note.-notice {
	display: inline-block;
	margin: 0;
	padding: 8px 18px;
	background-color: #fff8e1;
	color: #5d4037;
	border: 1px solid #ffe082;
	border-radius: 6px;
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1.5;
}

.tab__extra-text.-notice::before,
.webres__contact-note.-notice::before {
	content: "⚠";
	margin-right: 6px;
}

@media screen and (min-width: 1080px) {
	.tab__extra-text.-notice,
	.webres__contact-note.-notice {
		font-size: 1.4rem;
	}
}

.tab__panels {
	position: relative;
	min-height: 0;
	transition: min-height 0.3s ease;
	overflow: hidden;
}

.tab.is-active .tab__panels {
	display: block;
}

.tab__panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	display: flex;
	flex-direction: column;
	row-gap: 20px;
	transform: translateY(40px);
	transition-property: opacity, transform;
	transition-duration: 0.3s;
	transition-timing-function: cubic-bezier(.17,.84,.44,1);
	transition-delay: 0s;
	pointer-events: none;
}

.tab__panel[aria-hidden="false"] {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.tab.is-active .tab__panel[aria-hidden="false"] {
	transition-delay: 0.3s;
}
/* -------------------------------------------------------------- */

.flow-table {
	line-height: 1.7;
}

.flow-table__row {
	--cols: 1;

	display: grid;
	column-gap: 20px;
	row-gap: 15px;
	grid-template-columns: repeat(var(--cols), 1fr);	
	padding-block: 20px 30px;
	border-top: 1px solid rgba(0,0,0,0.08);
}

@media screen and (min-width: 1080px) {
	.flow-table__row {
		--cols: 2;
		
		padding-block: 20px;
	}
}

.flow-table__list {
	line-height: 2;
}

.flow-table__item.bold {
	font-weight: bold;
}

.flow-table__item > .-small {
    font-size: 85%;
}

/* 電話予約のみとなる条件: コース・検査グループ／その他グループをカードで2列並列 */
.phone-only-conditions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-block: 14px 0;
}

@media screen and (min-width: 1080px) {
	.phone-only-conditions {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
}

.phone-only-conditions__card {
	padding: 16px 18px;
	background-color: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-left: 4px solid var(--color-accent);
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.phone-only-conditions__title {
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 1.4rem;
	line-height: 1.5;
}

@media screen and (min-width: 1080px) {
	.phone-only-conditions__title {
		font-size: 1.5rem;
	}
}

.phone-only-conditions__list {
	margin: 0;
	padding-inline-start: 1.4em;
	font-size: 1.3rem;
	line-height: 1.75;
	list-style: disc;
}

.phone-only-conditions__list li {
	margin-top: 4px;
}

.phone-only-conditions__list li:first-child {
	margin-top: 0;
}

.phone-only-conditions__list li::marker {
	color: var(--color-accent);
}

.flow-table__reservation {
	text-align: center;
}

@media screen and (min-width: 1080px) {
	.flow-table__reservation {
        display: grid;
        place-self: flex-end;
		text-align: right;
	}
}

.flow-table__btn {
	padding-block: 17px;
	padding-inline: 25px 15px;
	border-radius: 10px;
	width: calc(100% - 2px);
}

.flow-table__btn:nth-child(n + 2) {
    margin-block-start: 10px;
}

@media screen and (min-width: 1080px) {
	.flow-table__btn {
		width: auto;
        transform: translateX(-1px);
	}
}

.flow-table__btn::before {
	border-radius: 10px;
}

.flow-table__tel {
	font-size: 2rem;
	line-height: 1.75;
	font-weight: bold;
}

.flow-table__time {
	font-size: 1.1rem;
	line-height: 1.36;
}

/* -------------------------------------------------------------- */

.popular-contents-inner {
	display: none;
}

.gf__sitemap {
	display: none;
}

/* --------------------------------------------------------------------------------------------- */

.ConversionPhone {
	margin-top: 10px;

	&.c-section {
		margin-top: 60px;
	}


	.ConversionPhone__read {
		display: flex;
		flex-direction: column;
		gap: 5px;
		text-align: center;
		align-items: center;
		margin-bottom: 5px;
		font-size: 1.3rem;

		& .accent {
			display: inline-block;
			background-color: var(--color-accent);
			color: var(--color-bg);
			text-align: center;
			padding: 5px 10px;
			border-radius: 30px;
			line-height: 1;
			font-size: 1.3rem;
		}
	}

	.ConversionPhone__num {
		margin-block: 5px;
		font-size: clamp(3.2rem, 4vw, 3.6rem);
	}

	.ConversionPhone__time {
		font-weight: 600;
	}
}

@media all and (min-width: 768px) {

	.ConversionPhone {

		&.c-section {
			margin-top: 80px;
		}
	}
}

@media all and (min-width: 1280px) {

	.ConversionPhone {

		&.c-section {
			margin-top: 100px;
		}

		.ConversionPhone__read {
			gap: 10px;
			flex-direction: row;
			margin-bottom: 10px;
		}
	}
}


/* ---------------------------------------------------------------------------------------------  */


/* -------------------------------------------------------------- */
/* WEB予約フォームのCSSをスコープ移植 */
/* スコープ: `.webres` 配下にだけ適用し、ページ内他要素には影響させない        */
/* -------------------------------------------------------------- */

/* 行レイアウトを単カラム中央配置に上書き */
.flow-table__row.-web-reservation {
	--cols: 1;
	justify-items: center;
	padding-block: 30px;
}

@media screen and (min-width: 1080px) {
	.flow-table__row.-web-reservation {
		--cols: 1;
	}
}

/* フォーム本体: 中央寄せ・最大幅 */
.webres {
	--input-color-main: #302e2e;
	--color-accent-webres: #b50023;
	--color-txt-webres: #645b5b;

	width: 100%;
	max-width: 640px;
	margin-inline: auto;
	color: var(--color-txt-webres);
	font-size: 1.4rem;
	line-height: 1.7;

	/* 固定ヘッダー(header.gh / 80px)分のオフセットを scrollIntoView に効かせる */
	scroll-margin-top: 100px;
}

.webres__result,
.webres__form {
	scroll-margin-top: 100px;
}

.webres__form,
.webres__result {
	padding-block-start: 36px;
}

.webres__header {
	text-align: center;
	margin-bottom: 30px;
}

.webres__title {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.5;
	margin: 0 0 12px;
}

@media screen and (min-width: 1080px) {
	.webres__title {
		font-size: 2rem;
	}
}

.webres__lead {
	font-size: 1.3rem;
	line-height: 1.8;
	margin: 0;
}

/* セクション間隔 */
.webres .c-section--0 { margin-top: 0; }
.webres .c-section--xxs { margin-top: 15px; }
.webres .c-section--xs { margin-top: 20px; }
.webres .c-section--s { margin-top: 25px; }

/* 入力要素の基本スタイル: .webres スコープに限定して上書き */
.webres input {
	-webkit-appearance: none;
	appearance: none;
	padding: 10px;
	outline: solid transparent;
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 2px;
	background-color: transparent;
	font-family: inherit;
	font-size: 1.6rem;
	line-height: 1.5;
	color: inherit;
	transition: 0.2s ease;
	transition-property: background, color, opacity, border;
}

.webres input:hover {
	border-color: #000;
}

.webres input:focus {
	border-color: var(--input-color-main) !important;
	box-shadow: inset 0 0 0 1px var(--input-color-main) !important;
}

/* mp-input ラッパー */
.webres .mp-input {
	margin-top: 20px;
	margin-right: 0;
}

.webres .mp-input:first-child {
	margin-top: 0;
}

/* mp-input サイズ */
.webres .mp-input--60p { width: 60%; }
.webres .mp-input--100p { width: 100%; }

@media screen and (max-width: 540px) {
	.webres .mp-input--60p { width: 100%; }
}

/* input-lbl: 必須/任意バッジ付きラベル */
.webres .input-lbl {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding-bottom: 5px;
	font-weight: bold;
	font-size: 1.5rem;
}

.webres .input-lbl::before {
	content: "任意";
	color: #fff;
	text-indent: 0;
	margin-right: 8px;
	font-size: 1.1rem;
	background-color: #999;
	padding: 0 8px;
	padding-block: 1px;
	border-radius: 3px;
	flex-shrink: 0;
}

.webres .input-lbl.-no-lbl::before {
	content: none;
}

.webres .mp-input.required > .input-lbl::before {
	content: "必須";
	background-color: #d64c66;
}

/* input-elm 入力欄ラッパー */
.webres .input-elm {
	width: 100%;
	font-size: 1.6rem;
}

.webres .input-elm > *:first-child {
	margin-top: 0;
}

.webres .input-elm > * {
	margin-top: 10px;
}

/* errorfield */
.webres .errorfield {
	color: red;
	font-size: 1.3rem;
	min-height: 0;
}

.webres .errorfield:empty {
	display: none;
}

/* note */
.webres .note {
	font-size: 1.2rem;
	line-height: 1.7;
	color: #555;
	margin: 0;
}

.webres .note a[target=_blank]::after {
	font-size: inherit;
}

/* color--important */
.webres .color--important {
	color: var(--color-accent-webres);
	font-weight: bold;
}

/* mc-form フォーム要素 */
.webres .mc-form__field {
	display: grid;
	row-gap: 10px;
}

.webres .mc-form__title {
	display: flex;
	flex-wrap: wrap;
	row-gap: 5px;
	align-items: baseline;
	font-size: 1.5rem;
	line-height: 1.7;
	letter-spacing: 0.02em;
}

.webres .mc-form__title.-bold {
	font-weight: 700;
}

.webres .mc-form__title.-badge::before {
	flex-shrink: 0;
	align-self: flex-start;
	width: fit-content;
	padding: 0 8px;
	padding-block: 1px;
	margin-right: 10px;
	font-size: 1.1rem;
	color: #fff;
	text-indent: 0;
	content: '任意';
	background-color: #999;
	border-radius: 5px;
}

.webres .mc-form__title.-badge.required::before {
	color: #fff;
	content: '必須';
	background-color: #d64c66;
}

/* mc-form-control */
.webres .mc-form-control {
	font-size: 1.6rem;
}

.webres .mc-form-control__list {
	display: flex;
	flex-direction: column;
	row-gap: 14px;
	column-gap: 40px;
	align-items: flex-start;
	padding-left: 0;
	margin-block-start: 0;
	margin-block-end: 0;
	line-height: 1.6;
	list-style: none;
}

@media screen and (min-width: 768px) {
	.webres .mc-form-control__list {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
	}
}

.webres .mc-form-control__item {
	display: flex;
	row-gap: 5px;
}

.webres .mc-form-control__label {
	display: flex;
	align-items: center;
}

.webres .mc-form-control__radio {
	margin-block: calc((1lh - 20px) / 2);
}

.webres .mc-form-control__text {
	font-weight: 600;
}

/* input--control: visually hidden */
.webres .input--control {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	margin: -1px;
	padding: 0;
	border: 0;
}

/* control: ラジオ/チェック共通の円形カスタム表示 */
.webres .control {
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-right: 7px;
	background-color: #fff;
	border: 2px solid rgba(0, 0, 0, 0.4);
	box-sizing: border-box;
	vertical-align: middle;
	transition: all 0.2s ease;
}

.webres .control::before,
.webres .control::after {
	position: absolute;
	content: "";
	display: inline-block;
	inset: 0;
	margin: auto;
	box-sizing: border-box;
	transition: all 0.2s ease-in-out;
}

.webres .control::before {
	display: none;
}

/* ラジオ円形 */
.webres [type=radio] + label .control {
	border-radius: 50%;
}

.webres [type=radio] + label .control::after {
	width: 62.5%;
	height: 62.5%;
	background: var(--input-color-main);
	border-radius: 50%;
	transform: scale(0, 0);
}

.webres [type=radio]:checked + label .control {
	border: 2px solid var(--input-color-main);
}

.webres [type=radio]:checked + label .control::after {
	transform: scale(1, 1);
	transition-timing-function: cubic-bezier(0, 0.8, 0.5, 2);
}

.webres [type=radio]:focus-visible + label .control {
	outline: 2px solid var(--input-color-main);
	outline-offset: 2px;
}

/* mc-form__panel: パネル切替アニメーション */
.webres .mc-form__panel {
	display: grid;
	grid-template-rows: 1fr;
	height: max-content;
	opacity: 1;
	transition-timing-function: cubic-bezier(0.05, 0.25, 0.25, 1);
	transition-duration: 0.25s;
	transition-property: opacity, grid-template-rows;
}

.webres .mc-form__panel[aria-hidden="true"] {
	grid-template-rows: 0fr;
	opacity: 0;
}

.webres .mc-form__panel[aria-hidden="false"] {
	opacity: 1;
}

.webres .mc-form__panel > div {
	display: grid;
	overflow: hidden;
}

/* hicard: 保険証サンプル画像 */
.webres .hicard {
	width: 100%;
	max-width: 320px;
	margin-right: auto;
	margin-left: auto;
}

.webres .hicard img {
	display: block;
	width: 100%;
}

/* エラーメッセージ (フォーム全体) */
.webres__error {
	margin: 16px 0 0;
	font-size: 1.3rem;
	line-height: 1.6;
	color: red;
	text-align: center;
}

/* フッター: 「次へ進む」ボタン */
.webres__footer {
	margin-top: 30px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

.webres__footer .flow-table__btn {
	width: auto;
	min-width: 240px;
	transform: none;
}

@media screen and (min-width: 1080px) {
	.webres__footer .flow-table__btn {
		min-width: 280px;
	}
}

/* ─ 「保険情報入力に戻る」ボタン ─ アイコンが先頭になるよう調整 */
.webres__footer .flow-table__btn.-back {
	padding-inline: 15px 25px;
}

.webres__footer .flow-table__btn.-back .icon {
	order: -1;
	margin-right: 6px;
}

/* ─ 案内画面 (result panels) ─ */
.webres__result {
	display: block;
}

.webres__result[hidden] {
	display: none;
}

.webres__form[hidden] {
	display: none;
}

/* ─ 利用経験ヒアリング (はい/いいえ) ─ */
.webres__usage {
	padding-block: 4px 24px;
}

.webres__usage .mc-form__title {
	justify-content: center;
	text-align: center;
}

/* 2択なので column-gap を詰めて中央寄せ */
.webres__usage .mc-form-control__list {
	column-gap: 24px;
	justify-content: center;
}

/* ─ 再利用者向けマイページ導線 (「はい」選択時) ─ */
.webres__returning {
	display: flex;
	justify-content: center;
	margin-block: 20px;
}

.webres__returning[hidden] {
	display: none;
}

.webres__returning .flow-table__btn {
	width: auto;
	min-width: 240px;
	transform: none;
}

@media screen and (min-width: 1080px) {
	.webres__returning .flow-table__btn {
		min-width: 280px;
	}
}

.webres__lead.-note {
	margin-top: 14px;
	font-size: 1.2rem;
	color: #555;
}

/* 連絡先カード */
.webres__contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	row-gap: 14px;
}

.webres__contact-note {
	margin: 6px 0 0;
	font-size: 1.2rem;
	line-height: 1.6;
	color: #555;
}

.webres__contact .flow-table__btn {
	width: auto;
	min-width: 240px;
	transform: none;
}

@media screen and (min-width: 1080px) {
	.webres__contact .flow-table__btn {
		min-width: 280px;
	}
}

/* 案内画面（WEB予約不可）のガイドステップ */
.webres__guide {
	display: flex;
	flex-direction: column;
	row-gap: 14px;
}

.webres__guide-step {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.7;
}

.webres__guide-step .color--important {
	margin-right: 4px;
}

.webres__guide .webres__footer {
	margin-top: 0;
}
