/* パルティール町田 - FIX済みデザイン(生成り×深緑、見出し Noto Serif JP / 本文 Noto Sans JP)。
   ページごとの細かい見た目は template-parts/pages/*.php の中にあり、ここは共通の部品だけ。 */
:root {
	--ground: #F7F5F0;
	--surface: #FFFFFF;
	--ink: #1E2B2F;
	--ink-soft: #3E4A4D;
	--muted: #5B6669;
	--accent: #2E5E58;
	--accent-hover: #1F4440;
	--accent-soft: #E6EEEC;
	--sand: #F3F1EB;
	--line: #E4DFD5;
	--warn: #8A5A2B;
	--serif: "Noto Serif JP", serif;
	--sans: "Noto Sans JP", sans-serif;
	/* 左右の余白。スマホは24px、広い画面では本文の幅を640pxに保つ */
	--gutter: max(24px, calc((100% - 640px) / 2));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); line-height: 1.8; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 100; }

/* デザイン共通のクラス(デザインの helmet と同じ値) */
.sec { padding: 56px var(--gutter); display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; color: #7A5C33; font-weight: 500; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.5; color: var(--ink); }
.lead { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink-soft); }
.small { font-size: 12px; line-height: 1.7; color: var(--muted); }
.ph { background: #E9E5DC; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; text-align: center; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; padding: 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.story-crop { background-image: url("../img/story-photo.png"); background-size: 230% auto; background-position: 85% 100%; background-repeat: no-repeat; }
details > summary::-webkit-details-marker { display: none; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 45; height: 64px; padding: 0 16px 0 20px; display: flex; align-items: center; justify-content: space-between; background: var(--ground); border-bottom: 1px solid var(--line); }
.site-logo { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.site-logo-name { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: .06em; }
.site-logo-sub { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.site-header-actions { display: flex; gap: 4px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.global-nav { position: absolute; top: 64px; left: 0; right: 0; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px; z-index: 50; display: flex; flex-direction: column; gap: 12px; }
/* ログイン中は管理バーの下に固定する */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.global-nav[hidden] { display: none; }
/* 開いている間は ≡ を × に替える */
.menu-toggle .menu-icon-close,
.menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: block; }
.global-nav ul { list-style: none; margin: 0; padding: 0; }
.global-nav li a { display: flex; min-height: 48px; align-items: center; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 15px; }
.btn-menu { background: var(--accent); color: #FFFFFF !important; }

/* パンくず */
.breadcrumb ol { list-style: none; margin: 0; padding: 16px var(--gutter) 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 4px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }

/* 骨組みだけのページ用 */
.page-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1.55; }
.entry-content { font-size: 15px; line-height: 1.95; }
.placeholder { border: 1.5px dashed #C9C2B3; border-radius: 14px; padding: 16px; font-size: 13px; color: var(--muted); background: var(--surface); }
.badge-unfixed { margin-left: 4px; font-size: 11px; color: var(--warn); }
.tag { align-self: flex-start; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; }

/* フッター */
.site-footer { padding: 32px var(--gutter) 120px; background: #16211F; color: #B9C4C2; display: flex; flex-direction: column; gap: 14px; font-size: 12px; line-height: 1.8; }
.site-footer-name { font-family: var(--serif); font-size: 18px; color: #FFFFFF; margin: 0; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: #E3E9E8; }

/* 画面下に固定するボタン */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; height: 60px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; z-index: 40; max-width: 640px; margin: 0 auto; }
.sticky-cta a { display: flex; align-items: center; justify-content: center; border-radius: 14px; text-decoration: none; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.3; }
.sticky-main { background: var(--accent); color: #FFFFFF !important; box-shadow: 0 4px 12px rgba(30, 43, 47, .18); }
.sticky-sub { background: var(--surface); border: 1px solid #D6D0C4; color: var(--ink-soft) !important; font-size: 12px !important; font-weight: 500 !important; }

/* 管理バーの環境表示 */
#wpadminbar .partir-env-production > .ab-item { background: #b32d2e !important; }
#wpadminbar .partir-env-staging > .ab-item, #wpadminbar .partir-env-local > .ab-item { background: #2E5E58 !important; }

/* フォーム(Contact Form 7)。デザインの仮フォームと同じ見た目にする. */
[data-partir-form] .wpcf7-form { display: flex; flex-direction: column; gap: 14px; }
[data-partir-form] .wpcf7-form > p { margin: 0; }
[data-partir-form] label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
[data-partir-form] .wpcf7-form-control-wrap { display: block; }
[data-partir-form] input[type="text"], [data-partir-form] input[type="email"], [data-partir-form] input[type="tel"], [data-partir-form] input[type="number"], [data-partir-form] select, [data-partir-form] textarea {
	width: 100%; box-sizing: border-box; min-height: 44px; border: 1px solid #D6D0C4; border-radius: 10px; padding: 8px 12px; font-size: 16px; font-family: inherit; background: #FFFFFF; color: var(--ink);
}
[data-partir-form] textarea { min-height: 140px; height: 160px; line-height: 1.7; }
[data-partir-form] label br { display: none; }
[data-partir-form] fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
[data-partir-form] legend { font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 6px; }
[data-partir-form] .wpcf7-radio { display: flex; flex-direction: column; gap: 4px; }
[data-partir-form] .wpcf7-radio label, [data-partir-form] .wpcf7-acceptance label { flex-direction: row; gap: 8px; align-items: center; font-size: 14px; font-weight: 400; min-height: 32px; }
[data-partir-form] .wpcf7-list-item { margin: 0; }
[data-partir-form] .wpcf7-acceptance label { align-items: flex-start; line-height: 1.6; }
[data-partir-form] input[type="radio"], [data-partir-form] input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
[data-partir-form="trial"] .wpcf7-acceptance:first-of-type { background: #E6EEEC; border-radius: 10px; padding: 12px; }
[data-partir-form] input[type="submit"] { width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; }
[data-partir-form] input[type="submit"]:disabled { opacity: .45; cursor: not-allowed; }
[data-partir-form] .wpcf7-not-valid-tip { color: #9C2F2F; font-size: 12px; font-weight: 500; margin-top: 4px; }
[data-partir-form] .wpcf7-response-output { margin: 0 !important; border-radius: 10px; font-size: 13px; }
[data-partir-form] .wpcf7-spinner { display: block; margin: 8px auto 0; }

/* フッターのバッジ・LINE の QR コード. */
.site-footer-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0; }
.site-footer-badges img { height: 44px; width: auto; background: #FFFFFF; border-radius: 6px; padding: 4px; }
.site-footer-line { display: none; gap: 12px; align-items: center; font-size: 12px; line-height: 1.6; }
.site-footer-line img { width: 96px; height: 96px; background: #FFFFFF; border-radius: 8px; padding: 4px; }
@media (min-width: 768px) { .site-footer-line { display: flex; } }
.site-footer-info { margin: 4px 0 8px; font-size: 12px; line-height: 1.7; }
.site-footer-info div { display: flex; gap: 8px; }
.site-footer-info dt { flex-shrink: 0; min-width: 4.5em; opacity: .75; }
.site-footer-info dd { margin: 0; }
.site-footer-info a { color: inherit; }

/* TOP のファーストビューの写真(スマホとPCで切り出しを変える。高さを先に確保してレイアウトのずれを防ぐ). */
.fv-picture { display: block; }
.fv-img { display: block; width: 100%; height: auto; aspect-ratio: 780 / 501; object-fit: cover; border-radius: 14px; }
@media (min-width: 600px) { .fv-img { aspect-ratio: 1040 / 623; } }
/* TOP のお試し婚活カードの写真: PCではカードが横に広いので、高さを少し増やして顔とスマートフォンが切れないようにする. */
@media (min-width: 600px) { .trial-card-img { height: 220px !important; object-position: center 45% !important; } }
/* TOP のスマホ: 最初の画面でお試し婚活の料金まで見えるよう、写真を低くし、お試しカードの写真は出さない(2026-10-19 池嶋さん). */
@media (max-width: 599px) {
	.fv-img { aspect-ratio: 780 / 380; object-position: center 30%; }
	.trial-card-media { display: none !important; }
}
.fv-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fv-points li { font-size: 12px; line-height: 1.4; padding: 5px 10px; border-radius: 999px; background: #FFFFFF; border: 1px solid #D6D0C4; color: #3E4A4D; }

/* 成婚事例の詳細(single-story.php)。写真は切り落とさず全体を表示する. */
.story-page { gap: 20px; }
.story-profile { margin: 0; font-size: 13px; color: var(--muted); }
.story-photo { margin: 0; }
.story-photo img { display: block; width: 100%; height: auto; border-radius: 14px; }
.story-photo figcaption { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
/* 成婚事例: 見出しの横に写真 */
.story-head.has-photo { display: flex; align-items: center; gap: 14px; }
.story-head.has-photo .story-head-text { flex: 1 1 auto; min-width: 0; }
.story-head-photo { flex: 0 0 38%; max-width: 240px; }
.story-head-photo img { border-radius: 12px; }
.top-story-row { display: flex; align-items: center; gap: 12px; }
.top-story-row .top-story-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.top-story-row .top-story-photo { flex: 0 0 34%; max-width: 160px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; }
.story-step { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.story-step p { margin: 0; font-size: 15px; line-height: 1.9; }
.story-step-title { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.story-step-label { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.story-step-heading { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.6; }
.story-comment { background: var(--sand); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.story-comment p { margin: 0; font-size: 14px; line-height: 1.85; }
.story-comment-label { font-size: 12px; font-weight: 700; color: var(--accent); }
.story-comment-name { font-size: 13px; color: var(--muted); text-align: right; }
.story-note p { margin: 0 0 4px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.story-back { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }
.story-back a { text-decoration: none; }

/* 成婚者の声の一覧(archive-story.php)と絞り込み(story-filter.js). */
.story-filter { display: flex; flex-direction: column; gap: 10px; }
.story-filter[hidden], .story-card[hidden], .story-empty[hidden] { display: none; }
.story-filter-group { display: flex; flex-direction: column; gap: 6px; }
.story-filter-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.story-filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.story-chip { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13px; border: 1px solid #D6D0C4; color: var(--ink); background: var(--surface); cursor: pointer; }
.story-chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.story-filter-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.story-reset { border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: underline; min-height: 40px; }
.story-cards { display: flex; flex-direction: column; gap: 12px; }
.story-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--ink); }
.story-heartgram { flex-basis: 100%; font-weight: 500; font-size: 13px; }
/* アクセスの道順の写真: スマホは本文の幅いっぱい、PCは幅300pxまで(縦横比は維持). */
@media (min-width: 600px) { .route-photo { max-width: 300px; } }
/* 選ばれる理由01: カウンセラー4人のカード(スマホ2列・PC4列). */
.reason-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .reason-team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reason-team-card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); text-align: center; }
.reason-team-photo { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: center 15%; border-radius: 14px; background: #E8E4DB; }
.reason-team-name { font-family: var(--serif); font-weight: 600; font-size: 15px; }
/* 画面には出さず、読み上げだけに伝える文. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fv-media { display: flex; flex-direction: column; gap: 14px; }
/* TOPの最初の画面: PCでは写真(左)と紹介・お試し・無料相談(右)の2列。スマホは縦並びのまま. */
@media (min-width: 960px) {
	.fv { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 14px; align-items: start; padding: 32px max(32px, calc((100% - 1080px) / 2)) 48px !important; }
	.fv > .fv-media { grid-column: 1; grid-row: 1 / span 6; }
	.fv > :not(.fv-media) { grid-column: 2; }
}
