/* ===== libroth main.css ===== */
:root {
	--c-main: #2a59a5;        /* 正式ロゴの青 */
	--c-main-light: #bcdaf7;  /* ロゴの象の水色 */
	--c-main-pale: #e8f2fc;
	--c-bg: #f6f0e1;          /* 和紙ベージュ */
	--c-bg-deep: #e9dfc6;
	--c-accent: #d9582c;      /* 行動を促す暖色 */
	--c-accent-deep: #a83f1a;
	--c-green: #6fa86a;       /* 湿原 */
	--c-text: #3b3a36;
	--c-muted: #7a7466;
	--c-white: #fffdf8;
	--radius: 28px;
	--radius-s: 14px;
	--shadow: 0 6px 0 var(--c-bg-deep);
	--font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
	--font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
	--w: 1120px;
	--bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.85;
	color: var(--c-text);
	background-color: var(--c-bg) !important; /* 旧テーマの背景色設定に影響されない */
	background-image:
		radial-gradient(rgba(160, 140, 100, .07) 1px, transparent 1px),
		radial-gradient(rgba(160, 140, 100, .05) 1px, transparent 1px);
	background-size: 7px 7px, 13px 13px;
	background-position: 0 0, 3px 5px;
}
body.has-washi { background-image: url("../img/washi.webp"); background-size: 600px auto; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--c-main); }
a:hover { opacity: .85; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.45; font-weight: 700; }

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

.container { width: min(100% - 32px, var(--w)); margin-inline: auto; }
.page-wrap { padding: 32px 0 48px; }

/* ---- カード ---- */
.card {
	background: var(--c-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px 22px;
}
@media (min-width: 768px) { .card { padding: 44px 48px; } }

/* ---- 見出し ---- */
.sec-title { text-align: center; margin: 0 0 24px; }
.sec-title__ja { display: block; font-size: clamp(22px, 5.2vw, 32px); color: var(--c-text); }
.sec-title__en { display: block; font-family: var(--font-body); font-size: 13px; letter-spacing: .12em; color: var(--c-main); font-weight: 600; margin-top: 2px; }

/* ---- ボタン ---- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 60px; padding: 10px 26px;
	border-radius: 999px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 17px;
	line-height: 1.3; transition: transform .1s;
}
.btn:active { transform: translateY(3px); }
.btn__label small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.btn--tel { background: var(--c-accent); color: #fff; box-shadow: 0 5px 0 var(--c-accent-deep); }
.btn--request { background: #fff; color: var(--c-main); border: 2px solid var(--c-main); box-shadow: 0 5px 0 var(--c-main-light); }
.btn:hover { opacity: 1; filter: brightness(1.04); }

/* ---- ヘッダー ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-white); box-shadow: 0 2px 10px rgba(80, 60, 20, .08); }
.site-header__inner { display: flex; align-items: center; gap: 16px; width: min(100% - 24px, 1280px); margin-inline: auto; min-height: 64px; }
.logo { display: block; flex: none; }
.logo img { width: 186px; height: auto; }
@media (min-width: 1024px) { .logo img { width: 220px; } }
.gnav { margin-left: auto; }
.gnav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gnav__list a { display: block; padding: 8px 10px; color: var(--c-text); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 999px; }
.gnav__list a:hover { background: var(--c-main-pale); }
.header-tel { display: flex; flex-direction: column; align-items: center; text-decoration: none; background: var(--c-accent); color: #fff; padding: 6px 18px; border-radius: 999px; box-shadow: 0 4px 0 var(--c-accent-deep); }
.header-tel__num { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.2; }
.header-tel__note { font-size: 11px; line-height: 1.2; }
.menu-btn { display: none; }

@media (max-width: 1023px) {
	.header-tel { display: none; }
	.menu-btn {
		display: block; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
		border: 0; background: var(--c-main); position: relative; cursor: pointer;
	}
	.menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after {
		position: absolute; left: 13px; width: 20px; height: 2px; background: #fff; content: ""; transition: .2s;
	}
	.menu-btn span:first-child { top: 22px; }
	.menu-btn span:first-child::before { left: 0; top: -6px; }
	.menu-btn span:first-child::after { left: 0; top: 6px; }
	.menu-btn[aria-expanded="true"] span:first-child { background: transparent; }
	.menu-btn[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
	.menu-btn[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }
	.gnav {
		position: fixed; inset: 64px 0 auto 0; background: var(--c-white); padding: 8px 16px 20px;
		box-shadow: 0 10px 20px rgba(80, 60, 20, .12); display: none; max-height: calc(100vh - 64px - var(--bar-h)); overflow-y: auto;
	}
	.gnav.is-open { display: block; }
	.gnav__list { flex-direction: column; gap: 0; }
	.gnav__list a { padding: 14px 8px; border-bottom: 1px dashed var(--c-bg-deep); border-radius: 0; font-size: 16px; }
		}

/* ---- 本文 ---- */
.page-body { margin-bottom: 32px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 {
	font-size: clamp(20px, 4.6vw, 26px); margin-top: 2em; padding: 10px 18px;
	background: var(--c-main-pale); border-radius: var(--radius-s); border-left: 6px solid var(--c-main);
}
.entry-content h3 { font-size: 19px; margin-top: 1.8em; padding-bottom: 6px; border-bottom: 2px dotted var(--c-main-light); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--c-bg-deep); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--c-bg); width: 32%; }
.entry-content img { border-radius: var(--radius-s); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }

/* ---- 相談ブロック ---- */
.cta-block { text-align: center; background: var(--c-main-pale); box-shadow: 0 6px 0 var(--c-main-light); }
.cta-block__lead { font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 5vw, 26px); color: var(--c-main); margin: 0; }
.cta-block__note { margin: 6px 0 18px; font-size: 14px; color: var(--c-muted); }
.cta-block__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cta-block__btns .btn { width: min(100%, 340px); }

/* ---- スマホ下部固定バー ---- */
.cta-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: grid; grid-template-columns: 1.15fr 1fr;
	height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
	box-shadow: 0 -3px 12px rgba(80, 60, 20, .15);
}
.cta-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.cta-bar__tel { background: var(--c-accent); color: #fff; }
.cta-bar__req { background: var(--c-white); color: var(--c-main); }
@media (min-width: 1024px) {
	.cta-bar { display: none; }
}

/* ---- 記事カード ---- */
.post-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 32px; }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: var(--c-text); }
.post-card__thumb { aspect-ratio: 16 / 9; background: var(--c-main-pale); display: block; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 14px 18px 20px; }
.post-card__date { font-size: 13px; color: var(--c-muted); display: block; }
.post-card__title { font-weight: 700; line-height: 1.6; }
.nav-links { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.page-numbers { padding: 6px 14px; border-radius: 999px; background: var(--c-white); text-decoration: none; }
.page-numbers.current { background: var(--c-main); color: #fff; }

/* ---- フッター（中央揃え） ---- */
.site-footer { position: relative; margin-top: 40px; background: var(--c-main); color: #fff; text-align: center; padding: 32px 0 calc(16px + var(--bar-h) + env(safe-area-inset-bottom)); } /* 下部固定バーで隠れないように */
@media (min-width: 1024px) { .site-footer { padding-bottom: 16px; } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer__deco { position: absolute; left: 0; right: 0; top: -28px; height: 30px; background: url("../img/wave.svg") repeat-x bottom / auto 30px; }
.site-footer__inner { width: min(100% - 32px, 720px); margin-inline: auto; }
.site-footer .logo { display: inline-block; background: #fff; padding: 12px 20px; border-radius: var(--radius-s); }
.site-footer__address { font-style: normal; font-size: 14px; margin: 16px 0 20px; }
.site-footer__address span { display: block; }
.site-footer__tel { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.fnav, .fnav-sub { list-style: none; margin: 0; padding: 0; }
.fnav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .25); }
.fnav li { border-bottom: 1px solid rgba(255, 255, 255, .25); }
.fnav li:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .25); }
.fnav a { display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: 14px; font-weight: 600; }
@media (min-width: 900px) {
	.fnav { grid-template-columns: repeat(4, 1fr); }
	.fnav li { border-right: 1px solid rgba(255, 255, 255, .25); }
	.fnav li:nth-child(4n) { border-right: 0; }
}
.fnav-sub { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.fnav-sub a { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 12px; opacity: .85; }
.site-footer__license { font-size: 12px; opacity: .85; margin: 8px 0 0; }
.copyright { font-size: 12px; opacity: .8; margin: 12px 0 0; }

/* ===== トップページ ===== */
.sec { padding: 28px 0; }
@media (min-width: 900px) { .sec { padding: 40px 0; } }
.sec__more { text-align: center; margin: 20px 0 0; }
.more-link { font-weight: 700; text-decoration: none; }

/* ファーストビュー（スマホが基準、広い画面は下で上書き） */
.hero { background: linear-gradient(180deg, #dcecf9 0%, #eef4ef 100%); overflow: hidden; }
.hero__text { width: min(100% - 32px, var(--w)); margin-inline: auto; padding: 22px 0 8px; text-align: center; }
.hero__h1 { display: inline-block; margin: 0 0 12px; font-size: 13px; color: var(--c-main); background: var(--c-white); padding: 4px 14px; border-radius: 999px; }
.hero__catch { font-family: var(--font-head); font-weight: 700; font-size: clamp(27px, 8.6vw, 40px); line-height: 1.35; margin: 0 0 10px; }
.hero__catch span, .hero__sub span { display: block; white-space: nowrap; }
.hero__sub { margin: 0 0 18px; font-weight: 600; font-size: clamp(14px, 4.1vw, 17px); line-height: 1.7; }
.hero__btns { display: grid; gap: 14px; max-width: 420px; margin-inline: auto; }
.hero__scene { position: relative; height: 136px; margin-top: 4px; }
.hero__marsh { position: absolute; inset: auto 0 0; width: 100%; height: 60px; object-fit: fill; }
.hero__bridge { position: absolute; right: -40px; bottom: 36px; width: 170px; opacity: .35; }
.hero__emblem { position: absolute; left: 50%; bottom: 16px; width: 156px; transform: translateX(-50%); }
@media (min-width: 900px) {
	.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 520px; position: relative; }
	.hero__text { grid-area: 1 / 1; z-index: 2; width: auto; max-width: 560px; margin: 0 0 0 auto; padding: 64px 0 110px 32px; align-self: center; text-align: left; }
	.hero__catch { font-size: clamp(38px, 4vw, 52px); }
	.hero__btns { margin: 0; max-width: 340px; }
	.hero__scene { grid-area: 1 / 1 / 2 / 3; height: auto; margin: 0; }
	.hero__marsh { height: 150px; }
	.hero__bridge { right: 2%; bottom: 110px; width: 420px; }
	.hero__emblem { left: auto; right: 9%; bottom: 60px; width: 480px; max-width: 38vw; transform: none; }
}

/* 入口 */
.entrances { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .entrances { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.entrance { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--c-text); padding: 22px 12px 20px; height: 100%; transition: transform .15s; }
.entrance:hover { transform: translateY(-3px); opacity: 1; }
.entrance__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--c-main-pale); color: var(--c-main); margin-bottom: 10px; }
.entrance__icon svg { width: 40px; height: 40px; }
.entrance--sell .entrance__icon, .entrance--owner .entrance__icon { background: #fdebe2; color: var(--c-accent-deep); }
.entrance__title { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.entrance__desc { font-size: 13px; color: var(--c-muted); line-height: 1.6; margin-top: 4px; }
.entrance-tenant { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 16px 22px; text-decoration: none; color: var(--c-text); font-weight: 700; }
.entrance-tenant__arrow { color: var(--c-main); font-size: 20px; }
.entrances__note { text-align: center; color: var(--c-muted); font-size: 14px; margin: 18px 0 0; }

/* 約束 */
.promise { position: relative; overflow: hidden; }
.promise__body { max-width: 680px; margin-inline: auto; }
.promise__illust { position: absolute; right: -10px; bottom: -6px; width: 110px; opacity: .9; }
@media (min-width: 900px) { .promise__illust { width: 160px; right: 24px; } }
.promise__body { padding-bottom: 70px; }
@media (min-width: 900px) { .promise__body { padding-bottom: 0; } }

/* 流れ */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.flow__item { padding: 24px 22px; }
.flow__num { display: inline-block; background: var(--c-main); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .1em; padding: 2px 12px; border-radius: 999px; }
.flow__title { margin: 8px 0 6px; font-size: 18px; }
.flow__item p { margin: 0; font-size: 15px; }

/* 声 */
.voices { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .voices { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.voice { padding: 22px; position: relative; }
.voice::before { content: "“"; position: absolute; top: -6px; left: 14px; font-size: 64px; line-height: 1; color: var(--c-main-light); font-family: Georgia, serif; }
.voice__text { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin: 10px 0 8px; position: relative; }
.voice__name { margin: 0; font-size: 13px; color: var(--c-muted); }

/* 会社 */
.company { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .company { grid-template-columns: 1fr 1.2fr; gap: 40px; } }
.company__photo { border-radius: var(--radius-s); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.company .sec-title { text-align: left; }
.company__list { display: grid; grid-template-columns: 5em 1fr; gap: 4px 10px; font-size: 15px; }
.company__list dd { margin: 0; }

/* ===== 入口ページ等の本文 ===== */
.entry-content .lead { font-size: 17px; font-weight: 600; background: var(--c-bg); border-radius: var(--radius-s); padding: 16px 18px; }
.entry-content ol { counter-reset: none; }
.entry-content li + li { margin-top: .4em; }

/* ===== 相談フォーム ===== */
.wpcf7 { max-width: 640px; margin-inline: auto; }
.wpcf7 .f-row { margin: 0 0 18px; }
.wpcf7 .f-label { display: block; font-weight: 700; margin-bottom: 6px; }
.wpcf7 .req { display: inline-block; background: var(--c-accent); color: #fff; font-size: 11px; padding: 0 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.wpcf7 .opt { display: inline-block; background: var(--c-bg-deep); font-size: 11px; padding: 0 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.wpcf7 input[type="text"], .wpcf7 input[type="tel"], .wpcf7 input[type="email"], .wpcf7 textarea {
	width: 100%; font-size: 16px; padding: 12px 14px; border: 2px solid var(--c-bg-deep); border-radius: var(--radius-s); background: #fff; font-family: inherit;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--c-main); }
.wpcf7 textarea { height: 140px; }
.wpcf7 .wpcf7-radio { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-list-item label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 2px solid var(--c-bg-deep); border-radius: var(--radius-s); background: #fff; cursor: pointer; }
.wpcf7 .wpcf7-list-item input:checked + .wpcf7-list-item-label { color: var(--c-main); font-weight: 700; }
.wpcf7 .hp-field { position: absolute !important; left: -9999px; }
.wpcf7 input[type="submit"] {
	display: block; width: 100%; min-height: 60px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--c-accent); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 18px; box-shadow: 0 5px 0 var(--c-accent-deep);
}
.wpcf7 .wpcf7-not-valid-tip { color: #c0392b; font-size: 14px; }
.form-tel-note { text-align: center; font-weight: 700; }

/* ===== 記事 ===== */
.post-meta { margin: 0 0 6px; text-align: center; font-size: 13px; color: var(--c-muted); }
.post-meta__cat { display: inline-block; margin-left: 8px; background: var(--c-main-pale); color: var(--c-main); padding: 0 10px; border-radius: 999px; font-weight: 700; }
.post-eyecatch img { width: 100%; border-radius: var(--radius-s); margin-bottom: 8px; }

/* ===== お客様の声ページ ===== */
.voice-list { display: grid; gap: 18px; }
.voice-item { background: var(--c-bg); border-radius: var(--radius-s); padding: 18px 20px; }
.voice-item h3 { margin: 0 0 6px; font-size: 18px; border: 0; padding: 0; }
.voice-item p { margin: 0; }
.voice-item .voice-item__name { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.voice-item .voice-item__src { font-size: 12px; color: var(--c-muted); }
.g-rating { text-align: center; margin: -8px 0 20px; font-weight: 600; }
.g-rating strong { font-size: 22px; color: var(--c-accent-deep); margin: 0 2px; }
.g-rating__stars { color: #f2b01e; letter-spacing: 2px; margin-right: 8px; }

/* ===== 代表の紹介（小さく） ===== */
.rep { display: flex; gap: 14px; align-items: center; background: var(--c-bg); border-radius: var(--radius-s); padding: 14px; margin: 16px 0; }
.rep__photo { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--c-main-light); object-fit: cover; }
.rep__text { margin: 0; font-size: 14px; line-height: 1.7; }
.rep__text strong { display: block; font-size: 15px; }
.icon { flex: none; }

/* ===== スマホの読みやすさ ===== */
.entrance { padding: 18px 8px 16px; }
.entrance__desc { font-size: 12px; }
.entrance-tenant { font-size: 14px; gap: 10px; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) {
	.entrance { padding: 22px 12px 20px; }
	.entrance__desc { font-size: 13px; }
	.entrance-tenant { font-size: 16px; }
}
/* 横長の表はスマホで枠内スクロール */
.entry-content figure { margin: 0; overflow-x: auto; }

/* ===== スマホの縦の長さと改行 ===== */
.g-rating small { display: block; font-size: 12px; font-weight: 400; color: var(--c-muted); }
.promise__body { padding-bottom: 56px; }
.flow { gap: 10px; }
.flow__item { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 16px 18px; }
.flow__title { margin: 0; font-size: 17px; }
.flow__item p { grid-column: 1 / 3; margin-top: 6px; font-size: 14px; line-height: 1.7; }
.voices { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 10px 16px 14px; }
.voice { flex: 0 0 82%; scroll-snap-align: center; }
@media (min-width: 900px) {
	.g-rating small { display: inline; margin-left: 10px; }
	.promise__body { padding-bottom: 0; }
	.flow { gap: 20px; }
	.flow__item { display: block; padding: 24px 22px; }
	.flow__title { margin: 8px 0 6px; font-size: 18px; }
	.voices { display: grid; margin-inline: 0; padding-inline: 0; overflow: visible; gap: 20px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
	.logo img { width: 160px; }
	.gnav__list { gap: 0; }
	.gnav__list a { padding: 8px 6px; font-size: 13px; }
	.site-header__inner { gap: 8px; }
	.header-tel { padding: 6px 12px; }
}

/* ===== 揃えの統一 ===== */
.entrance__title { font-size: 18px; line-height: 1.3; white-space: nowrap; }
.entrance__desc { line-height: 1.7; white-space: nowrap; }
.flow__item { grid-template-columns: 36px 1fr; column-gap: 14px; align-items: start; }
.flow__num { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; font-size: 16px; letter-spacing: 0; }
.flow__title { line-height: 36px; }
.flow__item p { margin: 2px 0 0; }
.company__list { grid-template-columns: 4.5em 1fr; font-size: 14px; }
.rep__text { font-size: 13px; }
@media (min-width: 900px) {
	.flow__item { display: grid; }
	.company__list { font-size: 15px; }
	.rep__text { font-size: 14px; }
}

/* 文節改行と組み合わせ、行の長さを揃える */
h1, h2, h3, .cta-block__lead, .voice__text { text-wrap: balance; }

/* ===== 公開後の調整 ===== */
a[href^="tel:"] { white-space: nowrap; }
.page-body .sec-title__ja { font-size: clamp(19px, 5vw, 30px); }
.entry-content table { table-layout: fixed; }
.entry-content td, .entry-content th { overflow-wrap: anywhere; }
.entry-content td:first-child { width: 31%; background: var(--c-bg); }
.entry-content table { font-size: 14px; }
.entry-content p > a[href^="tel:"]:only-child { display: flex; align-items: center; justify-content: center; min-height: 54px; max-width: 360px; margin-inline: auto; border-radius: 999px; background: var(--c-accent); color: #fff; font-family: var(--font-head); font-weight: 700; text-decoration: none; box-shadow: 0 5px 0 var(--c-accent-deep); }
.form-tel-note a { display: block; font-size: 22px; min-height: 44px; }
.wpcf7 .wpcf7-list-item label { white-space: nowrap; font-size: 15px; padding: 10px; }

@media (max-width: 899px) { .entry-content table { font-size: 13px; } .entry-content th, .entry-content td { padding: 9px 8px; } .entry-content td:first-child { width: 28%; } }

/* ===== 子ページの部品 ===== */
.crumb { font-size: 12px; color: var(--c-muted); margin: 0 4px 12px; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; }
.crumb a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.entry-content .catch { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 6.2vw, 34px); line-height: 1.5; text-align: center; color: var(--c-main); margin: 8px 0 0; text-wrap: balance; }
.entry-content .catch-sub { text-align: center; margin-top: 12px; text-wrap: balance; }
.inline-cta { display: grid; gap: 14px; max-width: 360px; margin: 24px auto; }
.inline-cta .btn { width: 100%; }
@media (min-width: 900px) { .inline-cta { grid-template-columns: 1fr 1fr; max-width: 700px; } }
.picks { display: grid; gap: 12px; margin: 20px 0 0; }
.pick { display: grid; grid-template-columns: 1fr 20px; align-items: center; gap: 2px 10px; padding: 16px 18px; border-radius: var(--radius-s); background: var(--c-main-pale); color: var(--c-text); text-decoration: none; box-shadow: 0 4px 0 var(--c-main-light); }
.pick__t { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--c-main); }
.pick__d { font-size: 13px; grid-column: 1; }
.pick::after { content: "›"; grid-column: 2; grid-row: 1 / 3; font-size: 26px; color: var(--c-main); text-align: center; }
.boxes { display: grid; gap: 12px; }
.box { background: var(--c-bg); border-radius: var(--radius-s); padding: 16px 18px; }
.entry-content .box h3 { margin: 0 0 4px; border: 0; padding: 0; font-size: 17px; color: var(--c-main); }
.box p { margin: 0; font-size: 15px; }
.box p + p { margin-top: 8px; }
@media (min-width: 900px) { .picks--3, .boxes--3 { grid-template-columns: repeat(3, 1fr); } .boxes--2 { grid-template-columns: 1fr 1fr; } .box, .pick { height: 100%; } }
.step { list-style: none; margin: 0; padding: 0 !important; counter-reset: s; }
.step li { counter-increment: s; position: relative; padding: 4px 0 18px 48px; margin: 0 !important; font-size: 15px; }
.step li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--c-main); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.step li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--c-main-light); }
.step strong { display: block; font-family: var(--font-head); font-size: 16px; }
.quote { background: var(--c-main-pale); border-radius: var(--radius-s); padding: 16px 18px; margin: 12px 0 0; }
.quote p { margin: 0; font-weight: 600; }
.quote footer { font-size: 12px; color: var(--c-muted); margin-top: 6px; }
.faq details { border-bottom: 1px solid var(--c-bg-deep); }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 22px 1fr 18px; gap: 8px; align-items: start; padding: 15px 0; font-weight: 700; font-size: 15px; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--c-accent); font-family: var(--font-head); }
.faq summary::after { content: "＋"; color: var(--c-main); text-align: center; }
.faq details[open] summary::after { content: "－"; }
.faq summary > span { display: block; }
.faq details p { margin: 0 0 16px 30px; font-size: 15px; }
.fine, .fine p { font-size: 12px !important; color: var(--c-muted); line-height: 1.7; }
.alert { border: 2px solid var(--c-accent); border-radius: var(--radius-s); padding: 14px 16px; background: #fff6f1; }
.alert p { margin: 0; }

/* ボタンの文字は折り返さない */
.btn__label { white-space: nowrap; }
@media (max-width: 359px) { .btn { padding-inline: 12px; font-size: 16px; } }

/* 文末の改行はスマホだけ */
@media (min-width: 900px) { .br-s { display: none; } }
.catch-sub .br-s { display: inline; }
/* 代表の紹介 */
.person { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; background: var(--c-bg); border-radius: var(--radius-s); padding: 16px; }
.person img { width: 88px; height: 88px; border-radius: 50%; background: var(--c-main-light); }
.entry-content .person p { margin: 0; font-size: 14px; }
.entry-content .person strong { font-size: 16px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .fnav { grid-template-columns: repeat(5, 1fr); } .fnav li:nth-child(4n) { border-right: 1px solid rgba(255, 255, 255, .25); } .fnav li:nth-child(5n) { border-right: 0; } }

/* 行の最後に1語だけ残さない */
main li, main td, .quote footer { text-wrap: pretty; }

/* 小型のスマホ */
@media (max-width: 359px) {
	.container { width: calc(100% - 20px); }
	.card { padding: 22px 14px; }
	.entry-content, .entry-content li, .box p, .step li { font-size: 14px; }
	.entry-content h2 { font-size: 18px; padding: 10px 14px; }
	.entry-content td:first-child { width: 36%; }
	.box { padding: 14px; }
}
@media (max-width: 359px) { .voices { margin-inline: -10px; padding-inline: 10px; } }
