@charset "UTF-8";
/* =========================================================
   オンライン診療受診サービス — メインスタイル
   FastDoctorのトンマナ（白基調＋コーラルレッド）を踏襲。
   ※色は実機CSSから抽出して上書き可能なよう CSS変数で集約。
========================================================= */

:root {
	/* メイン（CTA・強調） */
	--oc-primary:      #ef5350;
	--oc-primary-dark: #d84343;
	--oc-primary-soft: #fff1f0;

	/* サブ・補助 */
	--oc-accent: #00a99d;
	--oc-cream:  #fdf7f3;

	/* テキスト */
	--oc-text:      #2c3a45;
	--oc-text-sub:  #5e6c77;
	--oc-text-mute: #8a98a3;

	/* 構造色 */
	--oc-bg:      #ffffff;
	--oc-bg-soft: #fafbfc;
	--oc-border:  #e8ecef;

	/* 状態色 */
	--oc-success: #4caf50;
	--oc-warning: #f5a623;

	/* 角丸 */
	--oc-radius:    12px;
	--oc-radius-lg: 16px;

	/* レイアウト */
	--oc-header-h:    64px;
	--oc-container:   1080px;
	--oc-container-n: 760px;
}

/* ---------------------------------------------------------
   リセット & ベース
--------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--oc-header-h) + 12px);
}

body {
	margin: 0;
	color: var(--oc-text);
	background: var(--oc-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Meiryo", sans-serif;
	font-feature-settings: "palt";
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--oc-primary-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover {
	opacity: 0.85;
}

h1, h2, h3 {
	line-height: 1.4;
	font-weight: 700;
}

/* スキップリンク */
.oc-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 8px 16px;
	background: var(--oc-text);
	color: #fff;
	text-decoration: none;
}
.oc-skip-link:focus {
	left: 8px;
	top: 8px;
}

/* ---------------------------------------------------------
   レイアウト共通
--------------------------------------------------------- */
.oc-container {
	width: 100%;
	max-width: var(--oc-container);
	margin-inline: auto;
	padding-inline: 20px;
}
.oc-container--narrow {
	max-width: var(--oc-container-n);
}

.oc-main {
	display: block;
}

.oc-section {
	padding-block: 56px;
	background: var(--oc-bg);
}
.oc-section--soft {
	background: var(--oc-cream);
}

.oc-section__title {
	margin: 0 0 32px;
	font-size: 1.6rem;
	text-align: center;
	color: var(--oc-text);
}
.oc-section__title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin: 12px auto 0;
	background: var(--oc-primary);
	border-radius: 2px;
}

.oc-prose {
	color: var(--oc-text-sub);
	margin: 0 0 16px;
}

.oc-note {
	margin-top: 24px;
	font-size: 0.86rem;
	color: var(--oc-text-mute);
	text-align: center;
}

/* ---------------------------------------------------------
   ボタン
--------------------------------------------------------- */
.oc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border: none;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}
.oc-btn--primary {
	background: var(--oc-primary);
	color: #fff;
	box-shadow: 0 4px 14px rgba(239, 83, 80, 0.3);
}
.oc-btn--primary:hover {
	background: var(--oc-primary-dark);
	opacity: 1;
	color: #fff;
}
.oc-btn--lg {
	padding: 18px 44px;
	font-size: 1.12rem;
}
.oc-btn--sm {
	padding: 10px 20px;
	font-size: 0.92rem;
}
.oc-btn--block {
	width: 100%;
}

/* ---------------------------------------------------------
   ヘッダー
--------------------------------------------------------- */
.oc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(150%) blur(6px);
	border-bottom: 1px solid var(--oc-border);
}
.oc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--oc-header-h);
}
.oc-logo {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}
.oc-logo__text {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--oc-text);
	letter-spacing: 0.01em;
}
.oc-logo__img {
	display: block;
	width: auto;
	height: 40px;
}

.oc-global-nav__list {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.oc-global-nav__list a {
	color: var(--oc-text-sub);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
}
.oc-global-nav__list a:hover {
	color: var(--oc-primary-dark);
}
.oc-global-nav__cta a {
	color: #fff;
}

/* ハンバーガー（モバイルのみ表示） */
.oc-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}
.oc-nav-toggle__bar {
	display: block;
	width: 24px;
	height: 2px;
	margin-inline: auto;
	background: var(--oc-text);
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.oc-nav-toggle[aria-expanded="true"] .oc-nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.oc-nav-toggle[aria-expanded="true"] .oc-nav-toggle__bar:nth-child(2) {
	opacity: 0;
}
.oc-nav-toggle[aria-expanded="true"] .oc-nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------
   ファーストビュー
--------------------------------------------------------- */
.oc-fv {
	background:
		radial-gradient(120% 120% at 80% 0%, var(--oc-primary-soft) 0%, var(--oc-cream) 45%, var(--oc-bg) 100%);
	padding-block: 64px;
}
.oc-fv__lead {
	margin: 0 0 12px;
	color: var(--oc-primary-dark);
	font-weight: 700;
	font-size: 0.98rem;
}
.oc-fv__title {
	margin: 0 0 24px;
	font-size: 2.1rem;
	color: var(--oc-text);
}
.oc-fv__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}
.oc-fv__badges li {
	padding: 6px 16px;
	background: #fff;
	border: 1px solid var(--oc-border);
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--oc-text-sub);
}
.oc-fv__wait {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 28px;
	padding: 12px 20px;
	background: #fff;
	border: 1px solid var(--oc-border);
	border-radius: var(--oc-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.oc-fv__wait-label {
	font-size: 0.9rem;
	color: var(--oc-text-sub);
}
.oc-fv__wait-value {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--oc-primary-dark);
}
.oc-fv__cta {
	margin-top: 8px;
}
.oc-fv__cta-note {
	margin: 12px 0 0;
	font-size: 0.84rem;
	color: var(--oc-text-mute);
}

/* ---------------------------------------------------------
   カード（特徴・対応科目）
--------------------------------------------------------- */
.oc-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
.oc-cards--4 {
	grid-template-columns: repeat(4, 1fr);
}
.oc-card {
	padding: 28px 24px;
	background: #fff;
	border: 1px solid var(--oc-border);
	border-radius: var(--oc-radius-lg);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.oc-card__icon {
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	color: var(--oc-primary);
}
.oc-card__icon svg {
	width: 100%;
	height: 100%;
}
.oc-card__title {
	margin: 0 0 8px;
	font-size: 1.08rem;
	color: var(--oc-text);
}
.oc-card__text {
	margin: 0;
	font-size: 0.92rem;
	color: var(--oc-text-sub);
}
.oc-card--dept {
	text-align: center;
}

/* ---------------------------------------------------------
   利用の流れ
--------------------------------------------------------- */
.oc-flow {
	max-width: var(--oc-container-n);
	margin-inline: auto;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.oc-flow__step {
	display: flex;
	gap: 20px;
	padding: 0 0 28px;
	position: relative;
}
.oc-flow__step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 19px;
	top: 40px;
	bottom: 0;
	width: 2px;
	background: var(--oc-border);
}
.oc-flow__num {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--oc-primary);
	color: #fff;
	font-weight: 700;
	border-radius: 50%;
	position: relative;
	z-index: 1;
}
.oc-flow__body {
	padding-top: 4px;
}
.oc-flow__title {
	margin: 0 0 6px;
	font-size: 1.05rem;
}
.oc-flow__body p {
	margin: 0;
	color: var(--oc-text-sub);
	font-size: 0.94rem;
}

/* ---------------------------------------------------------
   FAQアコーディオン
--------------------------------------------------------- */
.oc-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.oc-faq__item {
	background: #fff;
	border: 1px solid var(--oc-border);
	border-radius: var(--oc-radius);
	overflow: hidden;
}
.oc-faq__q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	background: none;
	border: none;
	font-size: 1rem;
	font-weight: 600;
	color: var(--oc-text);
	text-align: left;
	cursor: pointer;
}
.oc-faq__mark {
	flex: 0 0 auto;
	position: relative;
	width: 16px;
	height: 16px;
}
.oc-faq__mark::before,
.oc-faq__mark::after {
	content: "";
	position: absolute;
	background: var(--oc-primary);
	transition: transform 0.25s ease;
}
.oc-faq__mark::before {
	top: 7px;
	left: 0;
	width: 16px;
	height: 2px;
}
.oc-faq__mark::after {
	top: 0;
	left: 7px;
	width: 2px;
	height: 16px;
}
.oc-faq__q[aria-expanded="true"] .oc-faq__mark::after {
	transform: scaleY(0);
}
.oc-faq__a {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.oc-faq__a > p {
	margin: 0;
	padding: 0 20px 18px;
	color: var(--oc-text-sub);
	font-size: 0.94rem;
}
.oc-faq__a > p:first-child {
	padding-top: 0;
}

/* ---------------------------------------------------------
   末尾CTAセクション
--------------------------------------------------------- */
.oc-cta-section {
	background: linear-gradient(135deg, var(--oc-primary-soft), var(--oc-cream));
}
.oc-cta-section__inner {
	text-align: center;
}
.oc-cta-section__title {
	margin: 0 0 12px;
	font-size: 1.5rem;
}
.oc-cta-section__text {
	margin: 0 0 28px;
	color: var(--oc-text-sub);
}

/* ---------------------------------------------------------
   フッター
--------------------------------------------------------- */
.oc-footer {
	background: var(--oc-text);
	color: #cdd6dd;
	padding-block: 48px 32px;
	margin-bottom: 0;
}
.oc-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.oc-footer__heading {
	margin: 0 0 16px;
	font-size: 1rem;
	color: #fff;
}
.oc-footer__dl {
	display: grid;
	grid-template-columns: 7em 1fr;
	gap: 6px 12px;
	margin: 0;
	font-size: 0.9rem;
}
.oc-footer__dl dt {
	color: var(--oc-text-mute);
}
.oc-footer__dl dd {
	margin: 0;
	color: #e4eaef;
}
.oc-footer__dl a,
.oc-footer__links a {
	color: #e4eaef;
}
.oc-footer__links {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.oc-footer__links li {
	margin-bottom: 10px;
}
.oc-footer__note {
	margin: 0;
	font-size: 0.82rem;
	color: var(--oc-text-mute);
	line-height: 1.6;
}
.oc-footer__copyright {
	margin: 24px 0 0;
	text-align: center;
	font-size: 0.82rem;
	color: var(--oc-text-mute);
}

/* ---------------------------------------------------------
   モバイル追従CTAバー
--------------------------------------------------------- */
.oc-sticky-cta {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.97);
	border-top: 1px solid var(--oc-border);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

/* ---------------------------------------------------------
   法務ページ（特商法・規約・プライバシー）
--------------------------------------------------------- */
.oc-legal__title {
	margin: 0 0 32px;
	font-size: 1.5rem;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--oc-primary);
}
.oc-legal__article {
	margin-bottom: 28px;
}
.oc-legal__article h2 {
	margin: 0 0 12px;
	font-size: 1.12rem;
	color: var(--oc-text);
}
.oc-legal__article p {
	margin: 0 0 10px;
	color: var(--oc-text-sub);
}
.oc-legal__ol {
	margin: 0;
	padding-left: 1.5em;
	color: var(--oc-text-sub);
}
.oc-legal__ol li {
	margin-bottom: 6px;
}
.oc-legal__ol--paren {
	list-style: none;
	padding-left: 0;
	counter-reset: paren;
}
.oc-legal__ol--paren li {
	counter-increment: paren;
	padding-left: 2.4em;
	text-indent: -2.4em;
}
.oc-legal__ol--paren li::before {
	content: "(" counter(paren) ") ";
}
.oc-legal__appendix {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--oc-border);
	font-size: 0.92rem;
	color: var(--oc-text-sub);
}

/* 定義リスト（特商法） */
.oc-deflist {
	margin: 0;
	border-top: 1px solid var(--oc-border);
}
.oc-deflist dt {
	padding: 18px 0 6px;
	font-weight: 700;
	color: var(--oc-text);
	font-size: 0.98rem;
}
.oc-deflist dd {
	margin: 0;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--oc-border);
	color: var(--oc-text-sub);
	font-size: 0.94rem;
}
.oc-deflist__sub {
	font-size: 0.85rem;
	color: var(--oc-text-mute);
}

/* 汎用エントリ本文 */
.oc-entry-content h2 {
	margin-top: 1.8em;
	font-size: 1.2rem;
}
.oc-entry-content ul,
.oc-entry-content ol {
	color: var(--oc-text-sub);
}

/* デスクトップで定義リストを2カラムに（特商法を読みやすく） */
@media (min-width: 600px) {
	.oc-deflist {
		display: grid;
		grid-template-columns: 12em 1fr;
		border-top: none;
	}
	.oc-deflist dt {
		padding: 18px 16px 18px 0;
		border-bottom: 1px solid var(--oc-border);
	}
	.oc-deflist dd {
		padding: 18px 0;
	}
}

/* ---------------------------------------------------------
   レスポンシブ（モバイル）
--------------------------------------------------------- */
@media (max-width: 768px) {
	.oc-fv__title {
		font-size: 1.6rem;
	}
	.oc-section__title {
		font-size: 1.35rem;
	}
	.oc-cards,
	.oc-cards--4 {
		grid-template-columns: 1fr;
	}

	/* ハンバーガー表示 */
	.oc-nav-toggle {
		display: flex;
	}
	.oc-global-nav {
		position: fixed;
		inset: var(--oc-header-h) 0 0 0;
		background: rgba(255, 255, 255, 0.98);
		transform: translateX(100%);
		transition: transform 0.28s ease;
		overflow-y: auto;
	}
	.oc-global-nav.is-open {
		transform: translateX(0);
	}
	.oc-global-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px 20px 40px;
	}
	.oc-global-nav__list li {
		border-bottom: 1px solid var(--oc-border);
	}
	.oc-global-nav__list a {
		display: block;
		padding: 16px 4px;
		font-size: 1.02rem;
	}
	.oc-global-nav__cta {
		border-bottom: none !important;
		margin-top: 16px;
	}
	.oc-global-nav__cta a {
		justify-content: center;
	}

	/* 追従CTA表示＋本文に余白を確保 */
	.oc-sticky-cta {
		display: block;
	}
	body {
		padding-bottom: 76px;
	}
	.oc-footer {
		margin-bottom: 0;
	}

	.oc-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.oc-fv {
		padding-block: 40px;
	}
}

/* ---------------------------------------------------------
   オンライン診療フロー モーダルウィンドウ
--------------------------------------------------------- */
.oc-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.oc-modal.is-open {
	display: flex;
	animation: oc-modal-fade 0.2s ease;
}
@keyframes oc-modal-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.oc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 28, 34, 0.6);
	backdrop-filter: blur(2px);
}
.oc-modal__window {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 430px;
	height: 100%;
	max-height: 860px;
	background: #fff;
	border-radius: var(--oc-radius-lg);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	animation: oc-modal-pop 0.22s ease;
}
@keyframes oc-modal-pop {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
.oc-modal__frame {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.oc-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(20, 28, 34, 0.55);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}
.oc-modal__close:hover {
	background: rgba(20, 28, 34, 0.8);
}
/* モーダル表示中は背面スクロールを固定 */
body.oc-modal-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.oc-modal {
		padding: 0;
	}
	.oc-modal__window {
		max-width: none;
		max-height: none;
		height: 100%;
		border-radius: 0;
	}
}

/* アニメーション軽減設定の尊重 */
@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
