/* =============================================================
   New Medihope Kanagawa — main.css（雛形）
   XD モックアップ（NewMedicalHope/HP）のデザインシステム
   ============================================================= */

:root {
	--c-teal:        #0e4c57;  /* 見出し・ロゴ・フッター背景 */
	--c-teal-deep:   #0a3a43;  /* 濃いCTAブロック */
	--c-teal-soft:   #2f8c9b;  /* アクセント */
	--c-cyan:        #2bb6c4;  /* CTA「採用情報」の明るいシアン */
	--c-orange:      #e8763a;  /* CTAボタン */
	--c-orange-dark: #d3622b;
	--c-card:        #edf4f4;  /* カード背景 */
	--c-line:        #96e3e4;  /* モック実測の区切り線（水色 150,227,228） */
	--c-text:        #2b2b2b;
	--c-muted:       #6a7a7a;
	--c-bg:          #ffffff;
	/* モック実測（1920px）：本文幅1463px・左右余白228/229px（各≈11.9%）。
	   割合(76.2%)＋上限1464pxで、どの画面幅でもMocの余白比率を保つ */
	--maxw:          1464px;  /* 本文上限（1920時に幅1463px・左右余白≈228px） */
	--maxw-footer:   1716px;  /* フッター（テキスト左端≈142px＝padding40込み） */
	--maxw-header:   1920px;  /* ヘッダー（コンテンツ左端≈40px＝padding40込み） */
	--radius:        6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	color: var(--c-text);
	background: var(--c-bg);
	line-height: 1.8;
	font-size: 15px;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 76.2%; max-width: var(--maxw); margin-inline: auto; padding-inline: 0; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 1000; }

/* ---------- ボタン ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 10px 22px; border-radius: var(--radius); font-weight: 700;
	font-size: 14px; line-height: 1.2; transition: background .15s, opacity .15s;
	white-space: nowrap;
}
.btn--cta { background: var(--c-orange); color: #fff; }
.btn--cta:hover { background: var(--c-orange-dark); opacity: 1; }
.btn--outline { border: 1px solid var(--c-teal); color: var(--c-teal); background: transparent; }

/* ---------- ヘッダー ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.96);
	border-bottom: 1px solid var(--c-line);
	backdrop-filter: blur(4px);
}
.site-header__inner {
	width: 100%; max-width: var(--maxw-header); margin-inline: auto; padding-inline: 40px;
	display: flex; align-items: center; justify-content: space-between;
	min-height: 64px; gap: 16px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo__img { height: 40px; width: auto; }
.site-logo__mark { font-size: 28px; color: var(--c-teal-soft); }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.site-logo__corp { font-size: 10px; font-weight: 500; color: var(--c-muted); }
.site-logo__name { font-size: 18px; font-weight: 700; color: var(--c-teal); }
.site-logo__en { font-size: 10px; font-weight: 500; color: var(--c-muted); letter-spacing: .06em; }

.global-nav { display: flex; align-items: center; gap: 28px; }
.global-nav__list {
	display: flex; align-items: center; gap: 28px;
	list-style: none; margin: 0; padding: 0;
}
.global-nav__list a { font-weight: 500; font-size: 14px; color: var(--c-teal); }

.nav-toggle { display: none; }

/* ---------- ヒーロー（画像は全体表示、テキストを左上に重ねる） ---------- */
.hero {
	position: relative;
	background: linear-gradient(180deg, #dff0f1 0%, #eef7f7 100%);
}
.hero__img { display: block; width: 100%; height: auto; }
.hero__inner {
	position: absolute; top: 0; left: 50%; transform: translateX(-50%);
	width: 100%; max-width: var(--maxw); padding-inline: 24px;
	padding-top: 56px; z-index: 2;
}
.hero__title { font-size: 30px; font-weight: 700; color: var(--c-teal); margin: 0; }
.hero__title-en { display: block; font-size: 15px; font-weight: 500; color: var(--c-teal-soft); margin-top: 8px; letter-spacing: .04em; }

/* ---------- 共通セクション ---------- */
.section { padding: 56px 0; }
.section__title {
	text-align: center; font-size: 22px; color: var(--c-teal);
	margin: 0 0 28px; font-weight: 700;
}
.section__title--left { text-align: left; }

/* 大切なお知らせ（見出し左＋オレンジ下線、リスト右はオレンジ） */
.section--notice { background: #fff; }
.notice-row { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 56px; align-items: start; }
.notice-row__head { text-align: right; padding-top: 2px; }
.notice-row__title {
	display: inline-block; margin: 0; font-size: 26px; font-weight: 700; color: var(--c-text);
	padding-bottom: 12px; border-bottom: 3px solid var(--c-orange);
}
.notice-row__list { list-style: none; margin: 0; padding: 0; }
.notice-row__list li { margin-bottom: 14px; }
.notice-row__list li:last-child { margin-bottom: 0; }
.notice-row__list a { color: var(--c-orange); }
.notice-row__list .is-sample { color: var(--c-orange); opacity: .5; }

/* 私たちについて（モック実測の各レイヤー寸法を 1920px 基準のビューポート比(vw)で再現）
   ・ティール帯 0〜1180px(61.5vw) ×高877px(45.68vw)
   ・白カード   176〜1030px(左9.17vw 幅44.48vw)・帯上端から96px(5vw)下
   ・画像       1031〜1744px(左53.7vw 幅37.14vw)・帯上端から126px(6.56vw)下
   中央寄せ(max-width)はせず、どの画面幅でも左端基準で同じ比率に並ぶ */
.section--about { position: relative; background: #fff; padding: 4vw 0; overflow: hidden; }
.about-block { position: relative; height: 50.68vw; }
/* ティール帯（カード・画像と同一原点＝about-block基準で配置） */
.about-block::before {
	content: ""; position: absolute; z-index: 0; left: 0; top: 0;
	width: 61.5vw; height: 50.68vw; background: var(--c-teal);
}
/* 白カード（左） */
.about-block__body {
	position: absolute; z-index: 2; left: 9.17vw; top: 5vw; width: 44.48vw;
	box-sizing: border-box; background: #fff; color: var(--c-text);
	padding: 3.3vw 2.6vw; box-shadow: 0 14px 36px rgba(0,0,0,.12);
}
.about-block__body .section__title { color: var(--c-text); margin-bottom: 1.7vw; }
.about-block__body p { margin: 0 0 1.7vw; line-height: 2.15; }
.about-block__body .btn { margin-top: 0.8vw; }
/* 画像（右） */
.about-block__media { position: absolute; z-index: 1; left: 48.7vw; top: 6.56vw; width: 48.14vw; margin: 0; }
.about-block__media img { width: 100%; display: block; box-shadow: 0 14px 36px rgba(0,0,0,.14); }
.placeholder--media { aspect-ratio: 4 / 3; }

/* お知らせリスト */
.news-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; }
.news-list__item {
	display: flex; gap: 24px; padding: 16px 4px;
	align-items: baseline;
}
.news-list__date { color: var(--c-muted); font-size: 13px; flex: 0 0 92px; }
.news-list__link { color: var(--c-text); }
.news-list--archive { max-width: 820px; }
.news-list__item.is-sample { opacity: .5; }
.news-more { text-align: center; margin: 28px 0 0; }

/* ---------- お知らせ詳細（記事レイアウト） ---------- */
.page-head__eyebrow { text-align: center; color: var(--c-teal-soft); font-weight: 700; font-size: 13px; letter-spacing: .08em; margin: 0 0 10px; }
.page-head__date { text-align: center; color: var(--c-muted); font-size: 13px; margin: 10px 0 0; }

.breadcrumb { max-width: 820px; margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--c-muted); }
.breadcrumb a { color: var(--c-teal); }
.breadcrumb__current { color: var(--c-muted); }

.article { max-width: 820px; margin: 24px auto 0; }
.article__thumb { margin: 0 0 28px; }
.article__thumb img { width: 100%; border-radius: var(--radius); }

.article-body { font-size: 15px; line-height: 2; }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { font-size: 20px; color: var(--c-teal); border-bottom: 2px solid var(--c-line); padding-bottom: 8px; margin: 40px 0 18px; }
.article-body h3 { font-size: 17px; color: var(--c-teal); margin: 32px 0 14px; }
.article-body p { margin: 0 0 18px; }
.article-body a { color: var(--c-teal-soft); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 1.4em; }
.article-body li { margin-bottom: 6px; }
.article-body img { height: auto; border-radius: var(--radius); margin: 8px 0; }
.article-body blockquote { margin: 0 0 18px; padding: 12px 18px; border-left: 3px solid var(--c-teal-soft); background: var(--c-card); color: var(--c-muted); }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.article-body th, .article-body td { border: 1px solid var(--c-line); padding: 10px 12px; }

/* 前後ナビ */
.post-nav { max-width: 820px; margin: 40px auto 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.post-nav__prev, .post-nav__next { flex: 1 1 0; font-size: 13px; }
.post-nav__next { text-align: right; }
.post-nav__prev a, .post-nav__next a { color: var(--c-teal); }
.post-nav__home { flex: 0 0 auto; }

@media (max-width: 640px) {
	.post-nav { flex-direction: column; align-items: stretch; text-align: center; }
	.post-nav__next { text-align: center; }
}

/* CTA 2枚（内側に白い枠線を入れる） */
/* CTAカードはコンテナ全幅ではなく内寄せ（モック実測≈1250px・中央） */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1250px; margin-inline: auto; }
.cta-card {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	min-height: 120px; border-radius: var(--radius);
	color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .05em;
}
.cta-card::before {
	content: ""; position: absolute; inset: 12px;
	border: 1px solid rgba(255,255,255,.75); border-radius: 2px;
	pointer-events: none;
}
.cta-card--teal { background: var(--c-cyan); }
.cta-card--dark { background: var(--c-teal-deep); }

/* ---------- ページ見出し ---------- */
.page-head { padding: 48px 0 8px; }
.page-head__title { text-align: center; color: var(--c-teal); font-size: 26px; font-weight: 700; margin: 0; }
.page-head__sub { text-align: center; color: var(--c-orange); font-weight: 700; font-size: 14px; margin: 6px 0 0; }
.store-card__name a { color: inherit; }

/* ---------- サイドナビ付きレイアウト ---------- */
/* モック実測：サイドバー249px・ギャップ61px。padding-inlineは.container(24px)を維持する */
.layout-with-side { display: grid; grid-template-columns: 250px 1fr; gap: 56px; padding-top: 32px; padding-bottom: 64px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li { border-bottom: 1px solid var(--c-line); }
.side-nav li:first-child { border-top: 1px solid var(--c-line); } /* モック：先頭項目の上にも線 */
/* 店舗紹介/その他：本文側の「薬局一覧」見出し下線とサイドバー上線を同じ高さに揃える */
.side-nav:has(+ .store-list) { margin-top: 42px; }
.side-nav a { display: block; padding: 14px 4px; color: var(--c-text); }
.side-nav a.is-current { color: var(--c-teal); font-weight: 700; }

.block-title {
	font-size: 18px; color: var(--c-teal); font-weight: 700;
	border-bottom: 2px solid var(--c-line); padding-bottom: 10px; margin: 0 0 22px;
}

/* ---------- 店舗一覧カード ---------- */
/* 通常は白地＋下の仕切り線、ホバーで薄ティール塗り（モック準拠） */
.store-card {
	position: relative;
	display: flex; justify-content: space-between; gap: 24px;
	background: transparent;
	border-bottom: 1px solid var(--c-line);
	border-radius: var(--radius);
	padding: 26px 24px;
	transition: background .15s ease;
	cursor: pointer;
}
.store-card:hover { background: var(--c-card); }
.store-card__name { margin: 0 0 10px; font-size: 22px; color: var(--c-teal); }
.store-card__name a { color: inherit; }
.store-card__name a:hover { opacity: 1; }
/* カード全体をクリック可能に（名前リンクをカード全面へ伸ばす） */
.store-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* カード上のボタンは前面・優先（クリックが遷移に干渉しない） */
.store-card__actions { position: relative; z-index: 2; }
.store-card__service { margin: 0 0 12px; font-size: 13px; color: var(--c-orange); font-weight: 700; }
/* 本日の営業時間バッジ（一覧カード） */
.store-today { position: relative; z-index: 2; display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: 6px; font-size: 15px; }
.store-today__label { font-weight: 700; font-size: 13px; padding: 1px 8px; border-radius: 999px; }
.store-today__value { font-weight: 700; }
.store-today__note { font-size: 13px; color: var(--c-muted); font-weight: 400; }
.store-today--open { background: #e8f7f7; }
.store-today--open .store-today__label { background: var(--c-teal); color: #fff; }
.store-today--open .store-today__value { color: var(--c-teal); }
.store-today--closed { background: #f6eeee; }
.store-today--closed .store-today__label { background: #b26a6a; color: #fff; }
.store-today--closed .store-today__value { color: #a15757; }
.store-card__meta { margin: 0; display: grid; gap: 6px; }
.store-card__meta div { display: flex; gap: 6px; }
.store-card__meta dt { margin: 0; color: var(--c-muted); }
.store-card__meta dt::after { content: "："; }
.store-card__meta dd { margin: 0; }
.store-card__actions { display: flex; flex-direction: column; gap: 10px; justify-content: center; flex: 0 0 auto; }
.store-card__actions .btn { min-width: 130px; }

/* ---------- 店舗詳細 ---------- */
.store-detail { padding-top: 24px; padding-bottom: 64px; }
.store-detail__top { display: grid; grid-template-columns: 568px 1fr; gap: 40px; margin-bottom: 40px; }
/* 店舗写真：モック実測 568×455px */
.store-detail__photo img { width: 568px; max-width: 100%; aspect-ratio: 568 / 455; height: auto; object-fit: cover; display: block; border-radius: var(--radius); }
.store-detail__photo .placeholder { width: 568px; max-width: 100%; aspect-ratio: 568 / 455; }
.store-info-table, .store-detail-table { width: 100%; border-collapse: collapse; }
.store-info-table th, .store-detail-table th {
	text-align: left; width: 130px; vertical-align: top;
	padding: 12px 8px; color: var(--c-teal); font-weight: 700;
	border-bottom: 1px solid var(--c-line);
}
.store-info-table td, .store-detail-table td { padding: 12px 8px; border-bottom: 1px solid var(--c-line); }
.store-info-table tr:first-child th, .store-info-table tr:first-child td,
.store-detail-table tr:first-child th, .store-detail-table tr:first-child td { border-top: 1px solid var(--c-line); } /* モック：先頭行の上にも線 */
.store-detail-table { margin: 32px 0; }
.doc-link { color: var(--c-teal-soft); text-decoration: underline; }
.doc-link::after { content: " ↗"; font-size: .85em; }

/* 営業時間 曜日別グリッド（月火水木 ｜ 金土日） */
.hours-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); gap: 6px 40px; }
.hours-grid__cell { display: flex; gap: 14px; align-items: baseline; }
.hours-grid__day { font-weight: 700; color: var(--c-teal); min-width: 1.4em; }
.hours-grid__time.is-closed { color: var(--c-muted); }
@media (max-width: 520px) {
	.hours-grid { grid-auto-flow: row; grid-template-rows: none; gap: 6px 0; }
}

.service-grid {
	list-style: none; margin: 0 0 16px; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px;
}
/* モック：アイコン左・キャプション右（横並び・縦中央） */
.service-grid__item { display: flex; flex-direction: row; align-items: center; gap: 16px; text-align: left; }
.service-grid__icon { width: 64px; height: 64px; flex: 0 0 64px; display: block; }
/* 旧テーマと同じ、未対応(off)はグレーSVG＋ラベルも淡色に */
.service-grid__item.is-off .service-grid__label { color: var(--c-muted); }
/* フォールバック（旧データが無い新規店舗）用の円アイコン */
.service-grid__icon--ph {
	border-radius: 50%; background: var(--c-teal); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.service-grid__label { font-size: 15px; }

.line-box {
	display: flex; align-items: center; gap: 24px; justify-content: center;
	border: 1px solid var(--c-teal-soft); border-radius: var(--radius);
	padding: 22px; max-width: 460px; margin: 32px auto;
	color: inherit; text-decoration: none;
	transition: box-shadow .15s, transform .15s;
}
/* リンクの場合（QR画像のカード）はクリック可能の見た目 */
a.line-box { cursor: pointer; }
a.line-box:hover { box-shadow: 0 8px 22px rgba(0,0,0,.12); transform: translateY(-2px); opacity: 1; }
.line-box__text { margin: 0; text-align: center; font-size: 14px; }
.line-box__qr { width: 110px; height: 110px; flex: 0 0 110px; object-fit: contain; }

.map-box { aspect-ratio: 12 / 5; font-size: 26px; color: var(--c-muted); border-radius: var(--radius); overflow: hidden; } /* モック実測 約2.47:1 */
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 下層ページ共通（会社情報グループ 等） ---------- */
.page-main { min-width: 0; }
.prose { max-width: 1060px; } /* モック実測の本文テキスト幅（約1059px）に合わせる */
.prose p { margin: 0 0 18px; line-height: 2; }
.prose-list { margin: 0 0 18px; padding-left: 1.4em; }
.prose-list li { margin: 0 0 12px; line-height: 1.9; }
.prose-list li::marker { color: var(--c-teal-soft); }
.privacy-sign { color: var(--c-muted); }
.page-head__sub { text-align: center; color: var(--c-text); font-size: 15px; font-weight: 500; margin: 14px 0 0; }

/* 私たちについて */
.about-logo { text-align: center; margin: 40px 0; }
.about-logo img { width: 240px; height: auto; margin: 0 auto; } /* モック実測 約245px */
.about-logo figcaption { font-size: 12px; color: var(--c-muted); margin-top: 12px; }
.philosophy { list-style: none; margin: 0; padding: 0; }
.philosophy li { display: flex; gap: 16px; padding: 10px 4px; line-height: 1.8; }
.philosophy__num { flex: 0 0 3.5em; color: var(--c-teal); font-weight: 700; }

/* 企業情報テーブル */
/* モック準拠：横線のみ（縦線なし）・ラベル背景なし・水色の区切り線 */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { border: 0; border-bottom: 1px solid var(--c-line); padding: 14px 16px; text-align: left; vertical-align: top; }
.info-table tr:first-child th, .info-table tr:first-child td { border-top: 1px solid var(--c-line); }
.info-table th { width: 130px; background: transparent; color: var(--c-text); font-weight: 700; white-space: nowrap; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 2px 0; }

/* 代表あいさつ */
.greeting { display: grid; grid-template-columns: 1fr 220px; gap: 28px; align-items: start; }
.greeting__lead { font-weight: 700; color: var(--c-teal); font-size: 17px; margin: 0 0 16px; }
.greeting__body p { line-height: 2; margin: 0 0 16px; }
.greeting__photo .placeholder { aspect-ratio: 4 / 5; }
.greeting__photo img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.greeting__photo figcaption { text-align: center; font-size: 12px; color: var(--c-muted); margin-top: 8px; }

/* 沿革タイムライン */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 118px; width: 2px; background: var(--c-line); }
.timeline__item { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 48px; padding-bottom: 26px; }
.timeline__date { text-align: right; color: var(--c-muted); font-size: 13px; padding-top: 1px; }
.timeline__dot { position: absolute; left: 112px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-teal-soft); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--c-line); }
.timeline__item:nth-child(even) .timeline__dot { background: var(--c-teal); }
.timeline__text { margin: 0; line-height: 1.8; }

/* 沿革タイムライン（1本のミント縦ライン＋年＋出来事）＝モック(Sample/HP改修)準拠 */
.history { position: relative; padding: 40px 0 20px; }       /* 下部padding=バー下の余白（短め） */
/* 縦ライン：中心を左から19.2%、幅20px（モック実測 x=499-518 / center≈509 in 1920） */
.history__line { position: absolute; top: 6px; bottom: 0; left: 19.2%; width: 20px; transform: translateX(-50%); background: var(--c-line); border-radius: 2px; }
/* 各行：年は縦ライン上（中心19.2%）に絶対配置、本文は左30.7%から */
.history__row { position: relative; padding: 0 0 26px 30.7%; }
.history__year { position: absolute; left: 19.2%; top: 0; transform: translateX(-50%); font-size: 32px; font-weight: 700; line-height: 1; color: #343f3d; }
.history__body { line-height: 1.9; color: var(--c-text); }
.history__p, .history__li { margin: 0; font-size: 18px; }
.history__li { text-indent: -1em; padding-left: 1em; }       /* 行頭「・」*/
.history__li::before { content: "・"; }

@media (max-width: 768px) {
	.history { padding: 24px 0 16px; }
	.history__line { left: 12%; width: 14px; }
	.history__row { padding: 0 0 22px 26%; }
	.history__year { left: 12%; font-size: 24px; }
	.history__p, .history__li { font-size: 15px; }
}

@media (max-width: 720px) {
	.greeting { grid-template-columns: 1fr; }
	.greeting__photo { max-width: 220px; }
	.timeline::before { left: 6px; }
	.timeline__item { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
	.timeline__date { text-align: left; }
	.timeline__dot { left: 0; }
}

/* ---------- 採用・奨学金・FAQ・フォーム ---------- */
/* 採用・奨学金の表：枠線なし＋横罫線（上下）＋ほぼ白背景＋濃い見出し（モック実測準拠） */
.info-table--wide { background: transparent; }
.info-table--wide th, .info-table--wide td { border: 0; border-bottom: 1px solid var(--c-line); padding: 16px 22px; vertical-align: top; }
.info-table--wide tr:first-child th, .info-table--wide tr:first-child td { border-top: 1px solid var(--c-line); }
.info-table--wide th { width: 170px; background: transparent; color: var(--c-text); font-weight: 700; white-space: normal; }
.page-cta { text-align: center; margin: 40px 0; }
.btn--lg { padding: 16px 40px; font-size: 16px; }

/* 採用までの流れ（バッジ＋下向き矢印で連結） */
.flow { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.flow__item { display: flex; gap: 26px; align-items: flex-start; padding: 0 0 26px; }
.flow__badge { position: relative; flex: 0 0 150px; background: var(--c-teal); color: #fff; text-align: center; padding: 15px 8px; border-radius: var(--radius); font-weight: 700; }
.flow__item:not(:last-child) .flow__badge::after {
	content: ""; position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%);
	border: 8px solid transparent; border-top-color: var(--c-teal);
}
.flow__text { margin: 0; padding-top: 12px; line-height: 1.9; }

/* FAQ（アコーディオン：既定は閉じる。質問クリックで回答を開閉） */
.faq { max-width: var(--maxw); }
.faq-list { margin: 0 0 28px; }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item__q {
	margin: 0; padding: 18px 34px 18px 0; font-weight: 700; color: var(--c-text);
	cursor: pointer; list-style: none; position: relative;
}
.faq-item__q::-webkit-details-marker { display: none; } /* Safari既定マーカー非表示 */
.faq-item__q::after {
	content: "＋"; position: absolute; right: 6px; top: 18px;
	color: var(--c-teal-soft); font-weight: 400; transition: transform .15s;
}
.faq-item[open] .faq-item__q::after { content: "−"; }
.faq-item__q:hover { color: var(--c-teal); }
.faq-item__a { padding: 0 0 18px; line-height: 1.9; color: var(--c-text); }

/* フォーム */
/* モック実測（1920基準）：行幅1159px / ラベル列306px / 入力欄483px / textarea幅853×高269px */
/* フォーム枠：モックの行幅1159px（padが0になったので素の1159px） */
.form-wrap { max-width: 1159px; margin: 0 auto 32px; }
.cform__row { display: flex; gap: 40px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.cform__row:first-child { border-top: 1px solid var(--c-line); }
.cform__label { flex: 0 0 266px; font-weight: 700; }
.cform__row input[type="text"], .cform__row input[type="email"], .cform__row input[type="tel"] { flex: 1; max-width: 484px; padding: 10px 12px; border: 1px solid #b9c7c7; border-radius: 4px; font-size: 15px; }
.cform__row--area { align-items: flex-start; }
.cform__row textarea { flex: 1; min-height: 269px; padding: 10px 12px; border: 1px solid #b9c7c7; border-radius: 4px; font-size: 15px; }
.cform__checks { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
/* 各選択肢は横並び・1行固定・縮まない（日本語が1文字ずつ縦積みになるのを防ぐ） */
.cform__checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; white-space: nowrap; flex: 0 0 auto; }
.form-note { font-size: 12px; color: var(--c-muted); text-align: center; }
/* Contact Form 7 連携時も同じ見た目になるよう調整
   ※ CF7の<form>には .cform クラスが付かないため、行(.cform__row)起点で指定する */
.cform__row .wpcf7-form-control-wrap { display: block; flex: 1; max-width: 484px; }
.cform__row--area .wpcf7-form-control-wrap { max-width: none; }
/* テキスト系入力のみ全幅化（radio/checkboxは対象外＝width:100%で潰れて文字に重なるのを防ぐ） */
.cform__row .wpcf7-form-control-wrap input:not([type="checkbox"]):not([type="radio"]),
.cform__row .wpcf7-form-control-wrap textarea { width: 100%; padding: 10px 12px; border: 1px solid #b9c7c7; border-radius: 4px; font-size: 15px; }
.cform__row--area .wpcf7-form-control-wrap textarea { min-height: 269px; }
/* CF7のチェックボックス／ラジオ（志望職種・採用職種）を横並びに。
   .cform__checks で包まれていても、[checkbox]/[radio] を .cform__row 直下に置いても
   同じ見た目になるよう .cform__row 起点でも指定する（縦積み・重なり対策）。 */
.cform__row .wpcf7-checkbox, .cform__row .wpcf7-radio,
.cform__checks .wpcf7-checkbox, .cform__checks .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; max-width: none; }
/* 選択肢を含む行では入力欄用の幅制限を解除 */
.cform__row .wpcf7-form-control-wrap:has(.wpcf7-checkbox),
.cform__row .wpcf7-form-control-wrap:has(.wpcf7-radio) { max-width: none; }
.cform__checks .wpcf7-form-control-wrap { display: inline; flex: none; max-width: none; }
.cform__row .wpcf7-checkbox .wpcf7-list-item, .cform__row .wpcf7-radio .wpcf7-list-item,
.cform__checks .wpcf7-checkbox .wpcf7-list-item, .cform__checks .wpcf7-radio .wpcf7-list-item { display: inline-flex; align-items: center; gap: 6px; margin: 0; flex: 0 0 auto; white-space: nowrap; }
/* CF7は list-item 内を <label> で包む。label も inline-flex で入力とラベルの間隔を確保（重なり防止） */
.cform__row .wpcf7-list-item label, .cform__checks .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.cform__row .wpcf7-list-item-label, .cform__checks .wpcf7-list-item-label { font-weight: 400; white-space: nowrap; }
/* ラジオ/チェックの入力はネイティブ既定サイズのまま（全幅化の対象外にするだけ／余計な枠・幅を付けない） */
.cform__checks input[type="checkbox"], .cform__checks input[type="radio"],
.cform__row .wpcf7-list-item input[type="checkbox"], .cform__row .wpcf7-list-item input[type="radio"] { flex: 0 0 auto; margin: 0; }

@media (max-width: 640px) {
	/* 採用までの流れ：スマホは「説明(左)＋フロー(右)」の横並び（バッジを右に配置） */
	.block-title--center { text-align: center; } /* 見出しセンター寄せ（スマホのみ） */
	.flow__item { gap: 14px; flex-direction: row-reverse; }
	.flow__badge { flex: 0 0 96px; width: auto; padding: 12px 6px; font-size: 13px; }
	.flow__text { padding-top: 8px; }
	.cform__row { flex-direction: column; align-items: stretch; gap: 8px; }
	.cform__label { flex: none; }
	.cform__row input[type="text"], .cform__row input[type="email"], .cform__row input[type="tel"] { max-width: none; }
}

/* プレースホルダ共通 */
.placeholder {
	display: flex; align-items: center; justify-content: center;
	background: #f1f4f4; border: 1px dashed var(--c-line);
	color: var(--c-muted); border-radius: var(--radius);
}

/* ---------- ページネーション ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 36px 0; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; border: 1px solid var(--c-line);
	border-radius: var(--radius); color: var(--c-teal);
}
.pagination .current { background: var(--c-teal); color: #fff; border-color: var(--c-teal); }

/* ---------- 固定ページ本文 ---------- */
.page-body { max-width: 820px; margin: 32px auto 64px; }

/* ---------- フッター ---------- */
/* フッター上に「乗る」町並みイラスト（重ならず、地面ラインがフッター上辺に接する）
   画面幅の約半分サイズで横に2つ並ぶよう repeat-x。画像両端まで地面バーがあるため継ぎ目でも地面は連続。 */
.footer-town {
	width: 100%;
	aspect-ratio: 1452 / 151;              /* = 726*2 : 151 → 横に2つ */
	background: url(../img/footer-town.png) repeat-x bottom left; /* フォールバック（WebP非対応） */
	background-image: image-set(url(../img/footer-town.webp) type("image/webp"), url(../img/footer-town.png) type("image/png"));
	background-repeat: repeat-x;
	background-position: bottom left;
	background-size: auto 100%;            /* 高さ=枠いっぱい／幅は比率維持 → 1枚=画面幅の半分 */
	margin-bottom: -1px;                    /* フッター上辺に密着 */
}
.site-footer { background: var(--c-teal); color: #fff; padding: 48px 0 36px; }
.site-footer__inner {
	width: 100%; max-width: var(--maxw-footer); margin-inline: auto; padding-inline: 40px;
	display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-nav__heading { font-weight: 700; margin: 0 0 12px; font-size: 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 6px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,.85); }
.footer-org { text-align: left; }
.footer-org__corp { margin: 0; font-size: 12px; color: rgba(255,255,255,.8); }
.footer-org__name { margin: 2px 0 12px; font-size: 20px; font-weight: 700; }
.footer-org p { margin: 2px 0; font-size: 12px; color: rgba(255,255,255,.8); }
/* フッター下：関連団体バナー（左寄せ・背景はフッターと同色） */
.footer-banners { background: var(--c-teal); }
.footer-banners__inner {
	width: 100%; max-width: var(--maxw-footer); margin-inline: auto; padding: 0 40px 40px;
	display: flex; justify-content: flex-start; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-banners__item { display: inline-flex; transition: opacity .15s; }
.footer-banners__item:hover { opacity: .7; }
.footer-banners__item img { display: block; height: 33px; width: auto; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 32px 0 80px; }
.error-404 .btn { margin-top: 20px; }

/* ---------- レスポンシブ ---------- */
/* タブレット以下：割合余白(76.2%)だと窮屈なので、ほぼ全幅＋小さめ余白に切替 */
@media (max-width: 768px) {
	.container { width: auto; max-width: none; padding-inline: 20px; }
}

/* 私たちについて：vw絶対配置が窮屈になる前(=1080px以下)で縦積みに切替 */
@media (max-width: 1080px) {
	.section--about { background: var(--c-teal); padding: 56px 0; }
	.about-block::before { display: none; }
	.about-block { position: static; height: auto; width: 90%; margin: 0 auto; }
	.about-block__body { position: static; width: auto; padding: 40px 24px; }
	.about-block__body .section__title { margin-bottom: 18px; }
	.about-block__body p { margin: 0 0 18px; }
	.about-block__media { position: static; width: auto; margin: 24px 0 0; }
}

@media (max-width: 860px) {
	.cta-grid,
	.layout-with-side, .store-detail__top { grid-template-columns: 1fr; }
	/* ヒーロー: スマホは見出し縮小 */
	.hero__title { font-size: 22px; }
	.hero__title-en { font-size: 12px; }
	.hero__inner { padding-top: 28px; }
	/* 大切なお知らせ: スマホは縦積み・左寄せ */
	.notice-row { grid-template-columns: 1fr; gap: 14px; }
	.notice-row__head { text-align: left; }
	/* スマホ：会社情報などの左メニューを1項目1行で横に均等配置（幅いっぱいに分散） */
	.side-nav ul { display: flex; flex-wrap: nowrap; gap: 8px; justify-content: space-between; overflow-x: auto; }
	/* PC縦リスト用の区切り線はスマホでは全消去（:first-child の上線も含む） */
	.side-nav li, .side-nav li:first-child { border: none; flex: 0 0 auto; }
	.side-nav a { padding: 12px 2px; font-size: 13px; white-space: nowrap; }
	/* 店舗紹介の「薬局／その他の施設」は左にまとめてタブ配置（均等分散しない） */
	.side-nav:has(+ .store-list) ul { justify-content: flex-start; gap: 24px; }
	.service-grid { grid-template-columns: repeat(3, 1fr); }
	.store-card { flex-direction: column; }
	.store-card__actions { flex-direction: row; }

	.nav-toggle {
		display: inline-flex; flex-direction: column; gap: 5px;
		background: none; border: 0; cursor: pointer; padding: 8px;
	}
	.nav-toggle span:not(.screen-reader-text) { width: 24px; height: 2px; background: var(--c-teal); display: block; }
	.global-nav__list {
		position: absolute; top: 64px; right: 0; left: 0;
		flex-direction: column; align-items: flex-start; gap: 0;
		background: #fff; border-bottom: 1px solid var(--c-line);
		padding: 8px 5%; display: none;
	}
	.global-nav__list.is-open { display: flex; }
	.global-nav__list li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
	.site-header__cta { margin-left: auto; }
	.site-footer__inner { flex-direction: column; }
	.footer-org { text-align: left; }
}

@media (max-width: 520px) {
	.service-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== WebPフォールバック用 <picture> はレイアウトに影響させない ===== */
picture { display: contents; }

/* ===== スマホ最適化（横はみ出し・詰まり対策） ===== */
img, svg, video { max-width: 100%; height: auto; }
body { overflow-x: hidden; }

/* ヘッダー：スマホでロゴ・お問い合わせボタンが収まるように */
@media (max-width: 860px) {
	.site-header__inner { padding-inline: 16px; gap: 10px; }
	.site-logo { min-width: 0; }
	.site-logo__text { min-width: 0; }
	.site-logo__img { height: 34px; }
	.site-logo__name { font-size: 15px; white-space: nowrap; }
	.global-nav { gap: 12px; }
	.site-header__cta { padding: 9px 14px; font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
}
@media (max-width: 600px) {
	.site-logo__corp, .site-logo__en { display: none; } /* 小画面は法人名のみ */
	.site-logo__name { font-size: 14px; }
	.hero__title { font-size: 20px; }
	.hero__inner { padding-top: 20px; }

	/* 店舗カード：本文（営業時間・住所・アクセス）を折り返す */
	.store-card__meta div { flex-wrap: wrap; }
	.store-card__meta dt { flex: 0 0 auto; white-space: nowrap; }
	.store-card__meta dd { min-width: 0; overflow-wrap: anywhere; }
	.store-card__actions { flex-wrap: wrap; }
	.store-card__actions .btn { min-width: 0; flex: 1 1 auto; }

	/* 各種テーブル：狭幅でも詰まらないように */
	.info-table th, .info-table--wide th, .store-info-table th, .store-detail-table th { width: 6.5em; white-space: normal; padding-inline: 6px; }
	.info-table td, .info-table--wide td, .store-info-table td, .store-detail-table td { overflow-wrap: anywhere; padding-inline: 6px; }

	/* フッターのメニューを横3×縦2に（5ブロックを3列グリッド） */
	.site-footer__inner { padding-inline: 20px; }
	.footer-banners__inner { padding: 0 20px 32px; }
	.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 10px; }
	.footer-nav__heading { font-size: 13px; }
	.footer-nav a { font-size: 12px; }

	/* フッター下の外部リンクバナー：スマホでも横並び（幅ベースでサイズ調整） */
	.footer-banners__inner { flex-wrap: nowrap; gap: 12px; justify-content: flex-start; align-items: center; }
	.footer-banners__item { flex: 1 1 0; min-width: 0; max-width: 170px; }
	.footer-banners__item img { display: block; width: 100%; height: auto; }
}
