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

ご相談ページ（.pc-consult）
/wp-content/themes/purecon/consult-page/ に置いてください。
functions.php の追記コードで [pc_consult] のページだけ読み込みます。

色はロゴの5色（赤・緑・水色・黄・紺）と、PDFの緑の点線から取っています。

------------------------------------------------------------------------*/
@import url("https://fonts.googleapis.com/css2?family=Klee+One:wght@600&family=Zen+Maru+Gothic:wght@500;700&display=swap");

.pc-consult {
	--pc-ink: #3b2f28;      /* 本文（既存CSSの茶系） */
	--pc-sub: #6b5d52;
	--pc-navy: #183cb4;     /* ロゴの紺：ボタン・リンク */
	--pc-navy-dark: #10287a;
	--pc-yellow: #fcd800;   /* ロゴの黄：受付日 */
	--pc-red: #e40c18;      /* ロゴの赤：今日の丸 */
	--pc-leaf: #6eaf31;     /* サイトの緑：区切りの点線 */
	--pc-wash: #eef7fc;     /* ページヘッダーの波の水色 */

	--pc-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
	--pc-hand: "Klee One", "Zen Maru Gothic", sans-serif;

	color: var(--pc-ink);
	font-size: 16px;
	line-height: 1.85;
	max-width: 980px;
	margin: 0 auto 80px;
}
.pc-consult *,
.pc-consult *::before,
.pc-consult *::after { box-sizing: border-box; }

/* ---------- テーマ（Lightning / purecon）の共通スタイルを打ち消す ---------- */
.pc-consult h2,
.pc-consult h3,
.pc-consult h4 {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	box-shadow: none;
	color: var(--pc-ink);
	font-family: var(--pc-round);
	font-weight: 700;
	line-height: 1.45;
}
.pc-consult h2::before, .pc-consult h2::after,
.pc-consult h3::before, .pc-consult h3::after,
.pc-consult h4::before, .pc-consult h4::after { content: none; }
.pc-consult p { margin: 0; line-height: inherit; }
.pc-consult ul, .pc-consult ol { margin: 0; padding: 0; list-style: none; }
.pc-consult li { margin: 0; line-height: inherit; }
.pc-consult dl { margin: 0; padding: 0; }
.pc-consult dl dt,
.pc-consult dl dd {
	margin: 0;
	padding: 0;
	border: 0;
	float: none;
	background: none;
	line-height: inherit;
}

/* Googleフォント版の Zen Maru Gothic / Klee One は文字詰め（palt）に非対応のため、
   見出し・ラベルだけ字間を少し詰めて間延びを防ぐ（本文は詰めない） */
.pc-consult h2,
.pc-consult h3,
.pc-consult h4,
.pc-consult .pc-toc a,
.pc-consult .pc-btn,
.pc-consult .pc-meta dt,
.pc-consult .pc-flow__steps b {
	letter-spacing: -.02em;
}
.pc-consult .pc-way__hint,
.pc-consult .pc-week__time small {
	letter-spacing: -.04em;
}

.pc-vh {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.pc-sp-only { display: none; }

/* ---------- ロゴの丸（相談方法の目印） ---------- */
.pc-dot {
	display: inline-block;
	flex: none;
	width: .62em;
	height: .62em;
	border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; /* 少しだけいびつな手描きの丸 */
	vertical-align: .08em;
	margin-right: .45em;
}
.pc-dot--tel    { background: #e40c18; }
.pc-dot--line   { background: #0c9c30; }
.pc-dot--mail   { background: #309ce4; }
.pc-dot--visit  { background: #fcd800; }
.pc-dot--doctor { background: #183cb4; }

/* ---------- 新設の目印「New!」（専門医への相談） ---------- */
.pc-consult .pc-new {
	display: inline-block;
	padding: 3px 10px 4px;
	background: var(--pc-red);
	border-radius: 46% 54% 42% 58% / 62% 48% 52% 38%; /* 手で貼った札のようにいびつに */
	color: #fff;
	font-family: var(--pc-hand);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: .02em;
	white-space: nowrap;
	transform: rotate(-8deg);
}
/* 見出しでは左上に貼る */
.pc-consult .pc-way__title { position: relative; }
.pc-consult .pc-way__title .pc-new {
	position: absolute;
	left: -8px;
	top: -24px;
}
/* 目次では名前のうしろに小さく */
.pc-consult .pc-toc .pc-new {
	margin-left: 6px;
	padding: 2px 7px 3px;
	font-size: 12px;
	transform: rotate(-6deg);
}

/* ---------- 導入 ---------- */
.pc-intro { margin: 0 0 8px; }
.pc-consult .pc-intro__title { font-size: 28px; }
.pc-consult .pc-intro__lead { margin-top: 6px; color: var(--pc-sub); }

.pc-toc {
	margin-top: 24px;
	padding: 6px 12px;
	background: var(--pc-wash);
	border-radius: 18px;
}
.pc-toc ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.pc-consult .pc-toc a {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 4px 14px;
	color: var(--pc-ink);
	font-family: var(--pc-round);
	font-weight: 700;
	font-size: 17px;
	border-radius: 10px;
}
.pc-consult .pc-toc a .pc-dot { width: 14px; height: 14px; }
.pc-consult .pc-toc a:hover { color: var(--pc-navy); background: #fff; }
.pc-consult .pc-toc a:focus-visible { outline: 3px solid var(--pc-navy); outline-offset: 2px; }

/* ---------- 相談方法ごとの行 ---------- */
.pc-way {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 0 32px;
	padding: 40px 0 36px;
	/* PDFと同じ、緑の丸い点線で区切る */
	background: radial-gradient(circle, var(--pc-leaf) 1.6px, transparent 2px) 0 0 / 11px 4px repeat-x;
	scroll-margin-top: 110px; /* 固定ヘッダー分 */
}
.pc-intro + .pc-way { margin-top: 32px; }

.pc-consult .pc-way__title {
	display: flex;
	align-items: center;
	font-size: 25px;
}
.pc-consult .pc-way__title .pc-dot { width: 20px; height: 20px; margin-right: 10px; }
.pc-consult .pc-way__hint {
	margin: 4px 0 0 30px;
	font-family: var(--pc-hand);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.6;
	color: var(--pc-sub);
	word-break: auto-phrase; /* 対応ブラウザでは文節の切れ目で改行 */
}

.pc-way__body {
	display: grid;
	grid-template-columns: 1fr 250px;
	gap: 20px 36px;
	align-items: start;
}
.pc-consult .pc-way__text > * + * { margin-top: 16px; }

/* お返事・場所など */
.pc-consult .pc-meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 18px;
	font-size: 15px;
	line-height: 1.75;
}
.pc-consult .pc-meta dt {
	font-family: var(--pc-round);
	font-weight: 700;
	white-space: nowrap;
}
.pc-consult .pc-meta dt::after { content: "："; }

.pc-consult .pc-note { font-size: 14px; color: var(--pc-sub); line-height: 1.75; }

.pc-consult .pc-link {
	color: var(--pc-navy);
	font-weight: 700;
	/* テーマが a の下線を !important で消しているため、線は背景で引く */
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	padding-bottom: 1px;
}
.pc-consult .pc-link:hover { color: var(--pc-navy-dark); background-size: 100% 2px; }

/* ---------- 電話がつながる曜日 ---------- */
.pc-consult .pc-week {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-top: 26px;
}
.pc-week__days { display: flex; gap: 6px; }
.pc-consult .pc-week__days li {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	font-family: var(--pc-round);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
}
.pc-consult .pc-week__days li.is-open {
	background: var(--pc-yellow);
	border-radius: 55% 45% 50% 50% / 48% 54% 46% 52%;
}
.pc-consult .pc-week__days li:nth-child(even).is-open {
	border-radius: 46% 54% 44% 56% / 55% 45% 55% 45%;
}
.pc-consult .pc-week__days li.is-closed {
	color: #a39488;
	background: repeating-linear-gradient(135deg, transparent 0 4px, #eee6df 4px 5px);
	border-radius: 50%;
}
/* 今日（JSで付与） */
.pc-consult .pc-week__days li.is-today::before {
	content: "今日";
	position: absolute;
	top: -24px;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--pc-hand);
	font-weight: 600;
	font-size: 13px;
	color: var(--pc-red);
	white-space: nowrap;
}
.pc-ring {
	position: absolute;
	inset: -9px;
	width: calc(100% + 18px);
	height: calc(100% + 18px);
	fill: none;
	stroke: var(--pc-red);
	stroke-width: 2.6;
	stroke-linecap: round;
	pointer-events: none;
	stroke-dasharray: 190;
	stroke-dashoffset: 0;
	animation: pc-draw .7s .4s ease-out backwards;
}
@keyframes pc-draw { from { stroke-dashoffset: 190; } }

.pc-consult .pc-week__time {
	font-family: var(--pc-round);
	font-weight: 700;
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: .02em;
}
.pc-week__time small {
	display: block;
	margin-top: 4px;
	font-family: var(--pc-hand);
	font-weight: 600;
	font-size: 14px;
	color: var(--pc-sub);
}

/* ---------- ボタン ---------- */
.pc-way__action { display: flex; flex-direction: column; gap: 8px; }
.pc-consult .pc-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 12px 18px;
	background: var(--pc-navy);
	border-radius: 12px;
	color: #fff;
	font-family: var(--pc-round);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.35;
	text-align: center;
	transition: background-color .15s ease;
}
.pc-consult .pc-btn:hover { background: var(--pc-navy-dark); color: #fff; }
.pc-consult .pc-btn:active { transform: translateY(1px); }
.pc-consult .pc-btn:focus-visible { outline: 3px solid var(--pc-yellow); outline-offset: 3px; box-shadow: 0 0 0 3px var(--pc-navy); }

.pc-consult .pc-btn--tel { font-size: 27px; letter-spacing: .03em; padding: 10px 18px 14px; }
.pc-btn__sub { font-size: 13px; letter-spacing: .08em; opacity: .85; }
/* LINE公式の緑を、白文字が読める濃さに */
.pc-consult .pc-btn--line { background: #03863a; }
.pc-consult .pc-btn--line:hover { background: #026a2e; }

.pc-consult .pc-way__after { font-size: 13px; color: var(--pc-sub); line-height: 1.6; }

/* ---------- ご利用にあたってのお願い ---------- */
.pc-rules { grid-column: 2; margin-top: 24px; }
.pc-consult .pc-rules summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	list-style: none;
	font-size: 15px;
	font-weight: 700;
	color: var(--pc-sub);
	border-radius: 6px;
}
.pc-rules summary::-webkit-details-marker { display: none; }
.pc-rules summary::before {
	content: "";
	width: 8px; height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .15s ease;
}
.pc-rules[open] summary::before { transform: rotate(45deg); }
.pc-consult .pc-rules summary:hover { color: var(--pc-ink); }
.pc-consult .pc-rules summary:focus-visible { outline: 3px solid var(--pc-navy); outline-offset: 3px; }
.pc-rules__body {
	margin-top: 12px;
	padding: 18px 22px;
	background: var(--pc-wash);
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--pc-sub);
	max-width: 46em;
}
.pc-consult .pc-rules__body > * + * { margin-top: 10px; }
.pc-consult .pc-rules__body li { position: relative; padding-left: 1.1em; }
.pc-consult .pc-rules__body li + li { margin-top: 6px; }
.pc-consult .pc-rules__body li::before {
	content: "";
	position: absolute;
	left: .15em; top: .72em;
	width: 5px; height: 5px;
	border-radius: 50%;
	background: currentColor;
}

/* ---------- 専門医：予約から相談までの流れ ---------- */
.pc-flow { grid-column: 2; margin-top: 32px; }
.pc-consult .pc-flow__title { font-size: 17px; margin-bottom: 14px; }
.pc-consult .pc-flow__steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 28px;
	counter-reset: pc-step;
	margin-bottom: 18px;
}
.pc-consult .pc-flow__steps li {
	position: relative;
	padding-top: 44px;
	font-size: 14px;
	line-height: 1.75;
	color: var(--pc-sub);
	counter-increment: pc-step;
}
.pc-consult .pc-flow__steps li::before {
	content: counter(pc-step);
	position: absolute;
	top: 0; left: 0;
	display: grid;
	place-items: center;
	width: 32px; height: 32px;
	border: 2px solid var(--pc-navy);
	border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
	color: var(--pc-navy);
	font-family: var(--pc-round);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	background: #fff;
	z-index: 1;
}
/* 番号どうしをつなぐ線 */
.pc-consult .pc-flow__steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 16px; left: 40px; right: -20px;
	border-top: 2px dashed #c9d3ea;
}
.pc-flow__steps b {
	display: block;
	color: var(--pc-ink);
	font-family: var(--pc-round);
	font-size: 16px;
	margin-bottom: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.pc-ring { animation: none; }
	.pc-consult .pc-btn,
	.pc-rules summary::before { transition: none; }
}

/* ---------- タブレット ---------- */
@media (max-width: 991px) {
	.pc-way { grid-template-columns: 180px 1fr; gap: 0 24px; }
	.pc-way__body { grid-template-columns: 1fr; }
	.pc-way__action { max-width: 320px; }
	.pc-toc ul { justify-content: flex-start; }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 767px) {
	.pc-consult { font-size: 15px; margin-bottom: 56px; }
	.pc-consult .pc-intro__title { font-size: 22px; }
	.pc-sp-only { display: inline; }

	.pc-toc { margin-top: 18px; padding: 6px; }
	.pc-toc ul { display: grid; grid-template-columns: 1fr 1fr; }
	.pc-consult .pc-toc a { min-height: 48px; padding: 4px 10px; font-size: 15px; }
	.pc-consult .pc-toc li:last-child { grid-column: 1 / -1; }

	.pc-way {
		grid-template-columns: 1fr;
		padding: 30px 0 28px;
		scroll-margin-top: 70px;
	}
	.pc-intro + .pc-way { margin-top: 24px; }
	.pc-way__head { margin-bottom: 16px; }
	.pc-consult .pc-way__title { font-size: 22px; }
	.pc-consult .pc-way__title .pc-dot { width: 18px; height: 18px; }
	.pc-consult .pc-way__title .pc-new { top: -20px; }
	.pc-consult .pc-way__hint { margin-left: 28px; font-size: 14px; }

	.pc-way__body { gap: 20px; }
	.pc-way__action { max-width: none; }
	.pc-consult .pc-meta { font-size: 14px; gap: 4px 12px; }

	.pc-consult .pc-week { gap: 12px; }
	.pc-week__days { gap: 4px; }
	.pc-consult .pc-week__days li { width: 36px; height: 36px; font-size: 15px; }
	.pc-consult .pc-week__time { font-size: 22px; width: 100%; }

	.pc-rules,
	.pc-flow { grid-column: 1; }
	.pc-rules__body { padding: 14px 16px; }

	.pc-consult .pc-flow__steps { grid-template-columns: 1fr; gap: 18px; }
	.pc-consult .pc-flow__steps li { padding: 4px 0 0 46px; }
	.pc-consult .pc-flow__steps li:not(:last-child)::after {
		top: 38px; bottom: -14px; left: 16px; right: auto;
		border-top: 0;
		border-left: 2px dashed #c9d3ea;
	}
}
