/*
Theme Name: Legal Gate
Theme URI: https://legal-gate.com/
Author: リーガルゲート行政書士事務所
Description: リーガルゲート行政書士事務所の本体サイト用オリジナルテーマ。コンセプトは「大分 × IT × 外国人の力」。運営する専門サイト（ビザ・建設業許可・補助金・相続）をまとめるハブ。事務所情報は「外観 → カスタマイズ → 事務所情報」、トップの文章は inc/content.php、初期ページは「ツール → 初期ページ作成」。
Version: 1.1.6
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: legal-gate
*/

:root {
	--ink: #13334e;
	--ink-2: #1a3b56;
	--ink-soft: rgba(19, 51, 78, .72);
	--muted: #6b8296;
	--blue: #7fa6c4;
	--pale: #f4f9fc;
	--pale-2: #e9f2f8;
	--line: #d9e3eb;
	--white: #fff;
	--line-green: #06c755;
	--radius: 14px;
	--shadow: 0 18px 40px rgba(19, 51, 78, .08);
	--font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	--en: "Cormorant Garamond", "Times New Roman", serif;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
	letter-spacing: .04em;
	overflow-x: hidden;
	font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--ink); }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.6; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1.4em; }
table { border-collapse: collapse; width: 100%; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; padding: 8px 16px; background: var(--white); }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.nowrap { display: inline-block; }
.sp-only { display: none; }
.pc-only { display: inline; }
.muted { color: var(--muted); font-size: .9em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.wrap--narrow { max-width: 900px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn-arrow {
	display: inline-flex; align-items: stretch; min-height: 56px; border-radius: 999px;
	border: 1px solid var(--ink); background: var(--ink); color: var(--white);
	text-decoration: none; font-weight: 500; font-size: .92rem; letter-spacing: .08em; overflow: hidden;
	transition: background .3s, color .3s, border-color .3s;
}
.btn-arrow span { display: flex; align-items: center; padding: 0 28px 0 32px; }
.btn-arrow i { position: relative; width: 56px; flex: none; border-left: 1px solid rgba(255,255,255,.35); }
.btn-arrow i::before { content: ""; position: absolute; top: 50%; left: 18px; width: 18px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.btn-arrow i::after { content: ""; position: absolute; top: 50%; left: 29px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); transition: transform .3s var(--ease); }
.btn-arrow:hover { background: var(--ink-2); color: var(--white); }
.btn-arrow:hover i::before { transform: translateX(4px); }
.btn-arrow:hover i::after { transform: translate(4px, -50%) rotate(45deg); }
.btn-arrow--ghost { background: transparent; color: var(--ink); }
.btn-arrow--ghost i { border-left-color: var(--line); }
.btn-arrow--ghost:hover { background: var(--ink); color: var(--white); }
.btn-arrow--white { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-arrow--white i { border-left-color: var(--line); }
.btn-arrow--white:hover { background: var(--pale); color: var(--ink); }
.btn-arrow--line { background: var(--line-green); border-color: var(--line-green); }
.btn-arrow--line:hover { background: #05a948; }

/* 下層ページ・フォーム用の通常ボタン */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .9em 1.8em; border-radius: 999px; border: 1px solid transparent;
	font-weight: 500; font-size: .92rem; line-height: 1.3; text-decoration: none; letter-spacing: .06em;
	transition: background .3s, color .3s, border-color .3s;
}
.btn--primary, .btn--accent { background: var(--ink); color: var(--white); }
.btn--primary:hover, .btn--accent:hover { background: var(--ink-2); color: var(--white); }
.btn--outline, .btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover, .btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--line { background: var(--line-green); color: var(--white); }
.btn--line:hover { background: #05a948; color: var(--white); }

/* ---------- Notice ---------- */
.notice-bar { background: var(--ink); color: var(--white); text-align: center; font-size: .85rem; padding: 8px 16px; }
.notice-bar a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
	transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 88px; max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.site-header__inner > * { min-width: 0; }
.site-brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); flex: none; line-height: 1.3; }
.site-brand img { max-height: 52px; width: auto; }
.site-brand__en { font-family: var(--en); font-weight: 600; font-size: 1.55rem; letter-spacing: .32em; color: var(--ink); }
.site-brand__name { font-size: .72rem; letter-spacing: .14em; color: var(--muted); }

.global-nav { margin-left: auto; }
.global-nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.global-nav .menu > li { position: relative; }
.global-nav .menu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 500; white-space: nowrap; letter-spacing: .08em; position: relative; }
.global-nav .menu > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.global-nav .menu > li > a:hover::after, .global-nav .current-menu-item > a::after { transform: scaleX(1); }
.global-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.global-nav li:hover > .sub-menu, .global-nav li:focus-within > .sub-menu { display: block; }
.global-nav__sp { display: none; }

.site-header__cta { display: flex; align-items: center; gap: 18px; }
.header-tel { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.3; white-space: nowrap; }
.header-tel__num { display: flex; align-items: center; gap: 6px; font-family: var(--en); font-weight: 600; font-size: 1.35rem; letter-spacing: .06em; }
.header-tel__hours { font-size: .66rem; color: var(--muted); max-width: 16em; overflow: hidden; text-overflow: ellipsis; }
.header-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; font-size: .86rem; font-weight: 500; letter-spacing: .1em; white-space: nowrap; }
.header-btn:hover { background: var(--ink-2); color: var(--white); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--white) 0%, var(--pale) 60%, var(--pale-2) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; bottom: -35%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(127,166,196,.18), rgba(127,166,196,0) 70%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 64px; max-width: 1440px; margin: 0 auto; padding: 48px 40px 120px 80px; min-height: calc(100vh - 88px); }
.hero__en { font-family: var(--en); font-size: 1.05rem; letter-spacing: .4em; color: var(--blue); margin-bottom: 28px; }
.hero__en span { margin: 0 .3em; }
.hero__title { font-size: clamp(1.8rem, 2.7vw, 2.7rem); line-height: 1.65; letter-spacing: .08em; margin-bottom: 32px; }
.hero__lead { color: var(--ink-soft); max-width: 30em; font-size: 1rem; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__visual { position: relative; }
.hero__visual img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100vh - 160px); object-fit: cover; object-position: center 30%; border-radius: 200px 14px 14px 14px; }
.hero__bars { position: absolute; top: 0; right: 7%; display: flex; gap: 14px; }
.hero__bars i { display: block; width: 32px; background: var(--white); }
.hero__bars i:nth-child(1) { height: 110px; }
.hero__bars i:nth-child(2) { height: 150px; }
.hero__bars i:nth-child(3) { height: 80px; }
.hero__vertical { position: absolute; top: 60px; left: 28px; writing-mode: vertical-rl; font-family: var(--en); letter-spacing: .4em; font-size: .78rem; color: var(--blue); margin: 0; }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font-family: var(--en); font-size: .75rem; letter-spacing: .3em; color: var(--ink); text-decoration: none; padding-bottom: 56px; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 48px; background: var(--ink); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Section ---------- */
.section { position: relative; padding: 140px 0; scroll-margin-top: 88px; }
.section--pale { background: var(--pale); }
.section--entry { padding-top: 120px; }
.sec-head { text-align: center; margin-bottom: 64px; }
.sec-head__en { font-family: var(--en); font-size: 1.1rem; letter-spacing: .32em; color: var(--blue); margin: 0 0 8px; text-transform: uppercase; }
.sec-head__title { font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: .1em; margin: 0; }
.sec-head__lead { color: var(--ink-soft); margin: 20px auto 0; max-width: 40em; }
.sec-more { text-align: center; margin: 56px 0 0; }
.watermark { position: absolute; top: 40px; left: -.05em; margin: 0; font-family: var(--en); font-weight: 600; font-size: clamp(5rem, 14vw, 13rem); line-height: 1; letter-spacing: .06em; color: rgba(19, 51, 78, .05); pointer-events: none; white-space: nowrap; }
.watermark--right { left: auto; right: -.05em; }

/* Entry cards */
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.entry-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--white); }
.entry-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.entry-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,51,78,0) 22%, rgba(19,51,78,.55) 55%, rgba(19,51,78,.92) 100%); }
.entry-card:hover img { transform: scale(1.05); }
.entry-card:hover { color: var(--white); }
.entry-card__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px 22px; display: flex; flex-direction: column; line-height: 1.6; }
.entry-card__en { font-family: var(--en); letter-spacing: .2em; font-size: .85rem; opacity: .85; }
.entry-card__title { font-weight: 700; font-size: 1.08rem; letter-spacing: .06em; margin: 4px 0 6px; }
.entry-card__text { font-size: .8rem; opacity: .9; }
.entry-card__site { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.35); font-size: .76rem; }

/* Concept */
.section--concept { background: linear-gradient(180deg, var(--pale) 0%, var(--white) 100%); overflow: hidden; }
.concept-head { max-width: 760px; margin: 0 auto 80px; text-align: center; position: relative; }
.concept-head__title { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: .1em; line-height: 1.75; margin: 0 0 28px; }
.concept-head__lead { color: var(--ink-soft); margin: 0; }
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.concept:nth-child(2) { margin-top: 64px; }
.concept__img { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.concept__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.concept__en { font-family: var(--en); font-size: 1.6rem; letter-spacing: .24em; margin: 0 0 4px; display: flex; align-items: baseline; gap: 14px; }
.concept__en span { font-size: .95rem; color: var(--blue); letter-spacing: .1em; }
.concept__title { font-size: 1.15rem; letter-spacing: .08em; margin-bottom: 12px; }
.concept__text { font-size: .9rem; color: var(--ink-soft); margin: 0; line-height: 2; }

/* Reasons */
.reasons { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; }
.reason { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.reason:last-child { border-bottom: 1px solid var(--line); }
.reason__num { font-family: var(--en); font-size: 3.6rem; line-height: 1; color: var(--blue); }
.reason__title { font-size: 1.2rem; letter-spacing: .08em; margin-bottom: 10px; }
.reason__text { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* Record */
.section--record { background: var(--ink-2); color: var(--white); }
.section--record .sec-head__en { color: #9cc0dc; }
.section--record .sec-head__title { color: var(--white); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 64px; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.facts__item { padding: 32px 20px; text-align: center; }
.facts__item + .facts__item { border-left: 1px solid rgba(255,255,255,.18); }
.facts__item dt { font-size: .8rem; letter-spacing: .14em; color: rgba(255,255,255,.7); }
.facts__item dd { margin: 6px 0 0; display: flex; flex-direction: column; line-height: 1.5; }
.facts__item strong { font-family: var(--en); font-weight: 600; font-size: 2.6rem; letter-spacing: .04em; white-space: nowrap; }
.facts__item span { font-size: .76rem; color: rgba(255,255,255,.7); }
.record { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.record__roles { list-style: none; margin: 0; padding: 0; }
.record__roles li { padding: 14px 0 14px 28px; border-bottom: 1px solid rgba(255,255,255,.14); position: relative; font-size: .92rem; line-height: 1.7; }
.record__roles li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: #9cc0dc; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.gallery img:first-child { grid-row: span 2; aspect-ratio: auto; }

/* Sites */
.site-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.site-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 36px 30px; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.site-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.site-card__thumb { margin: -36px -36px 24px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 40 / 21; background: var(--pale-2); }
.site-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.site-card:hover .site-card__thumb img { transform: scale(1.04); }
.site-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.site-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--pale-2); color: var(--ink); font-size: 1.25rem; }
.site-card__area { font-size: .74rem; color: var(--muted); letter-spacing: .08em; }
.site-card__name { font-size: 1.15rem; letter-spacing: .06em; margin: 0; }
.site-card__url { font-family: var(--en); font-size: .95rem; letter-spacing: .08em; color: var(--blue); margin: 0 0 14px; }
.site-card__lead { font-size: .88rem; color: var(--ink-soft); flex: 1; line-height: 1.9; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; }
.tag-list li { font-size: .72rem; padding: 2px 12px; background: var(--pale); border-radius: 999px; color: var(--ink-soft); }
.site-card__link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: .85rem; font-weight: 500; text-decoration: none; letter-spacing: .08em; }
.site-card__link::after { content: ""; position: absolute; inset: 0; }
.social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; list-style: none; margin: 48px 0 0; padding: 0; }
.social-row a { display: inline-block; padding: 8px 22px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .85rem; }

/* Band CTA */
.band { background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 60%, #2c5878 100%); color: var(--white); padding: 88px 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.band__en { font-family: var(--en); font-size: 1.4rem; letter-spacing: .2em; color: #9cc0dc; margin: 0; }
.band__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: .1em; margin: 4px 0 8px; }
.band__text { margin: 0; color: rgba(255,255,255,.8); font-size: .92rem; }
.band__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex: none; }
.band__tel { display: flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-family: var(--en); font-weight: 600; font-size: 2rem; letter-spacing: .06em; }
.band__tel:hover { color: var(--white); opacity: .85; }

/* Flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow__item { position: relative; background: var(--pale); border-radius: var(--radius); padding: 32px 20px 28px; text-align: center; }
.flow__item:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -12px; width: 8px; height: 8px; border-top: 1px solid var(--blue); border-right: 1px solid var(--blue); transform: translateY(-50%) rotate(45deg); }
.flow__step { font-family: var(--en); letter-spacing: .2em; color: var(--blue); font-size: .9rem; }
.flow__title { font-weight: 700; font-size: 1.02rem; letter-spacing: .06em; margin: 6px 0 10px; }
.flow__text { font-size: .8rem; color: var(--ink-soft); margin: 0; line-height: 1.8; text-align: left; }

/* Greeting */
.section--greeting { background: linear-gradient(180deg, var(--white) 0%, var(--pale) 100%); overflow: hidden; }
.greeting { position: relative; display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: center; }
.greeting__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px 14px 160px 14px; }
.greeting__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: .1em; line-height: 1.75; margin: 4px 0 28px; }
.greeting__body p:not(.sec-head__en):not(.greeting__sign) { color: var(--ink-soft); font-size: .95rem; }
.greeting__sign { margin: 32px 0 32px; font-size: .85rem; letter-spacing: .1em; line-height: 1.8; }
.greeting__sign strong { font-size: 1.5rem; letter-spacing: .2em; margin-left: .6em; }
.greeting__noimg { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--pale-2); color: var(--ink); font-size: 1.3rem; }

/* Cards (posts) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card__thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--pale-2); display: grid; place-items: center; color: var(--muted); font-size: .85rem; overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.05); }
.card__body { padding: 16px 4px 0; }
.card__meta { display: flex; gap: 12px; align-items: center; font-size: .76rem; color: var(--muted); margin-bottom: 4px; }
.card__meta time { font-family: var(--en); font-size: .95rem; letter-spacing: .06em; }
.card__cat { border: 1px solid var(--line); padding: 0 10px; border-radius: 999px; }
.card__title { font-weight: 500; margin: 0; line-height: 1.7; }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq__item { background: var(--white); border-radius: var(--radius); }
.faq__item summary { cursor: pointer; list-style: none; padding: 22px 56px 22px 64px; font-weight: 500; position: relative; line-height: 1.7; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before { content: "Q"; position: absolute; left: 26px; top: 16px; font-family: var(--en); color: var(--blue); font-size: 1.5rem; }
.faq__item summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 9px; height: 9px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item p { padding: 0 32px 24px 64px; margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* Access */
.access { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.access__title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: .1em; line-height: 1.7; margin: 4px 0 28px; }
.access__map iframe, .map-embed iframe { width: 100%; height: 460px; border: 0; border-radius: var(--radius); filter: grayscale(.4); }
.info-table { margin-bottom: 32px; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 16px 8px; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.8; }
.info-table th { width: 8em; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* CTA (footer) */
.cta-section { background: var(--pale); padding: 120px 0; }
.cta { position: relative; background: var(--ink); color: var(--white); border-radius: 24px; padding: 72px 56px; text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.cta__en { font-family: var(--en); font-size: 1.3rem; letter-spacing: .3em; color: #9cc0dc; margin: 0 0 8px; }
.cta__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: .1em; margin-bottom: 14px; }
.cta__lead { color: rgba(255,255,255,.8); max-width: 42em; margin: 0 auto 36px; font-size: .93rem; }
.cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.cta__tel { display: flex; flex-direction: column; color: var(--white); text-decoration: none; line-height: 1.4; }
.cta__tel:hover { color: var(--white); opacity: .85; }
.cta__tel-num { display: flex; align-items: center; gap: 8px; font-family: var(--en); font-weight: 600; font-size: 2rem; letter-spacing: .06em; }
.cta__tel-hours { font-size: .72rem; color: rgba(255,255,255,.7); }

/* Footer */
.site-footer { background: var(--white); color: var(--ink); padding: 88px 0 0; font-size: .86rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; }
.site-footer__name { font-size: 1.1rem; letter-spacing: .12em; margin: 0; font-weight: 700; }
.site-footer__en { font-family: var(--en); font-size: .95rem; color: var(--muted); margin: 0 0 20px; letter-spacing: .1em; }
.site-footer__info, .site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__info li { margin-bottom: 4px; color: var(--ink-soft); line-height: 1.8; }
.site-footer__col li { margin-bottom: 10px; line-height: 1.6; }
.site-footer__title { font-family: var(--en); font-size: 1.1rem; letter-spacing: .24em; color: var(--blue); margin-bottom: 16px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.social-links a { display: inline-block; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .76rem; }
.site-footer__copy { text-align: center; margin: 72px 0 0; padding: 24px 0; border-top: 1px solid var(--line); font-family: var(--en); font-size: .85rem; letter-spacing: .14em; color: var(--muted); }
.fixed-bar { display: none; }

/* ---------- Lower pages ---------- */
.page-hero { position: relative; background: linear-gradient(180deg, var(--white) 0%, var(--pale) 100%); padding: 72px 0 72px; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(127,166,196,.18), rgba(127,166,196,0) 70%); }
.page-hero__title { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: .1em; margin: 24px 0 0; }
.page-hero__lead { color: var(--ink-soft); margin: 14px 0 0; max-width: 46em; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .76rem; color: var(--muted); }
.breadcrumb li + li::before { content: "／"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.page-body { max-width: 940px; padding-top: 80px; padding-bottom: 120px; }
.page-body--wide { max-width: 1200px; }
.page-section { margin-top: 72px; }
.page-section__title, .entry-content h2 { font-size: 1.45rem; letter-spacing: .08em; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin: 64px 0 24px; position: relative; }
.entry-content h2::after, .page-section__title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 1px; background: var(--ink); }
.entry-content > h2:first-child { margin-top: 0; }
.entry-content h3 { font-size: 1.12rem; letter-spacing: .06em; padding-left: 16px; border-left: 2px solid var(--blue); margin: 40px 0 12px; line-height: 1.6; }
.entry-content p, .entry-content li { color: var(--ink-soft); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content table th, .entry-content table td { border: 1px solid var(--line); padding: 12px 14px; }
.entry-content table th { background: var(--pale); }
.is-style-box { background: var(--pale); border-radius: var(--radius); padding: 24px 28px; }
.is-style-point { border-left: 2px solid var(--ink); background: var(--pale); padding: 18px 24px; border-radius: 0 var(--radius) var(--radius) 0; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: var(--pale); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.service__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.3rem; margin-bottom: 16px; }
.service__title { font-size: 1.05rem; letter-spacing: .06em; margin-bottom: 8px; }
.service__text { font-size: .86rem; color: var(--ink-soft); flex: 1; line-height: 1.9; }
.service__link { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 500; text-decoration: none; }
.service-grid--page { margin-bottom: 72px; }

.profile-card { display: grid; grid-template-columns: 280px 1fr; gap: 48px; margin-bottom: 72px; padding: 40px; background: var(--pale); border-radius: 24px; }
.profile-card__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px 14px 100px 14px; }
.profile-card__title { color: var(--muted); margin: 0; font-size: .85rem; letter-spacing: .1em; }
.profile-card__name { font-size: 2rem; letter-spacing: .2em; margin: 0 0 24px; line-height: 1.5; }
.profile-card__name span { display: block; font-size: .8rem; letter-spacing: .1em; color: var(--muted); font-weight: 400; }
.profile-card__list { margin: 0; }
.profile-card__list > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .88rem; line-height: 1.8; }
.profile-card__list dt { font-weight: 500; color: var(--muted); }
.profile-card__list dd { margin: 0; }

.post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); margin-bottom: 32px; }
.post-note { font-size: .8rem; color: var(--muted); background: var(--pale); padding: 16px 20px; border-radius: var(--radius); margin-top: 56px; }
.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center; background: var(--pale); border-radius: var(--radius); padding: 24px; margin-top: 32px; }
.author-box__photo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-box__label { font-size: .74rem; color: var(--muted); margin: 0; }
.author-box__name { font-weight: 700; margin: 0 0 4px; }
.author-box__text { font-size: .84rem; color: var(--ink-soft); margin: 0; line-height: 1.8; }
.related { margin-top: 72px; }
.related__title { font-size: 1.2rem; letter-spacing: .08em; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 40px; }
.cat-filter a { display: block; padding: 6px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .82rem; }
.cat-filter .is-current a { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination { margin-top: 56px; display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font-family: var(--en); }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.empty-note { color: var(--muted); }

/* Contact page */
.section--tight { padding: 80px 0; }
.contact-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact-card { text-align: center; background: var(--pale); border-radius: var(--radius); padding: 36px 24px; }
.contact-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 1.4rem; }
.contact-card__icon--line { background: var(--line-green); }
.contact-card__title { font-size: 1.05rem; letter-spacing: .08em; margin: 14px 0 6px; }
.contact-card__tel { display: block; font-family: var(--en); font-weight: 600; font-size: 1.9rem; letter-spacing: .06em; text-decoration: none; }
.contact-card__text { font-size: .84rem; color: var(--ink-soft); }
.notice-box { margin-top: 40px; padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line); font-size: .9rem; }
.notice-box p { margin: 0 0 8px; }
.notice-box ul { margin: 0; padding-left: 1.2em; }
.form-box { background: var(--white); border-radius: 24px; padding: 56px; box-shadow: var(--shadow); }
.form-box__title { text-align: center; letter-spacing: .1em; margin-bottom: 32px; }
.form-box__privacy { font-size: .78rem; color: var(--muted); margin-top: 24px; }
.form-box label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 20px; }
.form-box input[type="text"], .form-box input[type="email"], .form-box input[type="tel"], .form-box select, .form-box textarea {
	width: 100%; margin-top: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: var(--pale); color: var(--ink);
}
.form-box input:focus, .form-box select:focus, .form-box textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: var(--white); }
.form-box textarea { min-height: 200px; }
.form-box .wpcf7-radio label, .form-box .wpcf7-acceptance label { display: inline; font-weight: 400; }
.form-box .wpcf7-list-item { margin: 0 18px 0 0; }
.form-box input[type="submit"] { display: block; width: 100%; max-width: 340px; margin: 32px auto 0; padding: 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font: inherit; font-weight: 500; letter-spacing: .14em; cursor: pointer; }
.form-box input[type="submit"]:hover { background: var(--ink-2); }

/* News board（事務所からのお知らせ） */
.news-board { background: var(--white); padding: 72px 0 0; }
.news-board__inner { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.news-board__head .sec-head__en { margin-bottom: 4px; }
.news-board__title { font-size: 1.25rem; letter-spacing: .1em; margin: 0 0 20px; }
.news-board__more { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; letter-spacing: .08em; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 6.5em auto 1fr; align-items: baseline; gap: 20px; padding: 22px 8px; text-decoration: none; transition: background .3s; }
.news-list a:hover { background: var(--pale); color: var(--ink); }
.news-list time { font-family: var(--en); font-size: 1.05rem; letter-spacing: .08em; color: var(--muted); }
.news-list__cat { font-size: .72rem; padding: 1px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); white-space: nowrap; }
.news-list__title { font-size: .95rem; line-height: 1.7; }
@media (max-width: 960px) {
	.news-board__inner { grid-template-columns: 1fr; gap: 24px; }
	.news-board__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
	.news-board__head .sec-head__en { width: 100%; }
	.news-board__title { margin: 0; }
	.news-board__more { margin-left: auto; }
}
@media (max-width: 680px) {
	.news-board { padding-top: 56px; }
	.news-list a { grid-template-columns: auto 1fr; gap: 6px 12px; padding: 18px 4px; }
	.news-list__title { grid-column: 1 / -1; }
	.news-list__cat { justify-self: start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
	.header-tel { display: none; }
}
@media (max-width: 1140px) {
	.global-nav .menu a { padding: 10px 8px; font-size: .84rem; }
	.hero__inner { padding-left: 64px; gap: 40px; }
	.entry-grid { grid-template-columns: repeat(2, 1fr); }
	.flow { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
	.flow__item:nth-child(3)::after { display: none; }
}
@media (max-width: 960px) {
	.wrap { padding: 0 24px; }
	.site-header__inner { min-height: 68px; padding: 0 20px; gap: 12px; }
	.site-brand__en { font-size: 1.2rem; letter-spacing: .26em; }
	.site-brand__name { font-size: .64rem; }
	.header-btn { display: none; }
	.menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 48px; height: 48px; border: 0; background: transparent; padding: 0 6px; cursor: pointer; }
	.menu-toggle__bar { display: block; height: 1px; background: var(--ink); transition: transform .3s, opacity .3s; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(30deg); }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-30deg); }
	.site-header__cta { margin-left: auto; }
	.global-nav { display: none; position: fixed; left: 0; right: 0; top: var(--nav-top, 68px); bottom: 0; background: var(--pale); overflow-y: auto; padding: 24px 28px 48px; margin: 0; }
	.global-nav.is-open { display: block; }
	.global-nav .menu { flex-direction: column; gap: 0; }
	.global-nav .menu a { padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
	.global-nav .menu > li > a::after { display: none; }
	.global-nav .sub-menu { display: block; position: static; box-shadow: none; padding: 0 0 0 16px; background: transparent; }
	.global-nav__sp { display: grid; gap: 12px; margin-top: 32px; }
	body.nav-open { overflow: hidden; }

	.hero__inner { grid-template-columns: 1fr; min-height: 0; padding: 32px 24px 112px; gap: 40px; }
	.hero__visual { order: -1; margin-left: 15%; }
	.hero__visual img { aspect-ratio: 4 / 3.6; max-height: none; border-radius: 120px 14px 14px 14px; }
	.hero__bars i { width: 20px; }
	.hero__vertical { display: none; }
	.section { padding: 96px 0; }
	.concept-grid { grid-template-columns: 1fr; gap: 56px; max-width: 560px; margin: 0 auto; }
	.concept:nth-child(2) { margin-top: 0; }
	.facts { grid-template-columns: 1fr 1fr; }
	.facts__item:nth-child(3) { border-left: 0; }
	.facts__item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
	.record { grid-template-columns: 1fr; }
	.band__inner { flex-direction: column; align-items: flex-start; }
	.band__actions { align-items: flex-start; }
	.greeting { grid-template-columns: 1fr; gap: 40px; }
	.greeting__photo { max-width: 360px; }
	.access { grid-template-columns: 1fr; gap: 40px; }
	.card-grid, .service-grid { grid-template-columns: 1fr 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__office { grid-column: 1 / -1; }
	.pc-only { display: none; }
}
@media (max-width: 680px) {
	body { font-size: 15px; line-height: 1.95; }
	.wrap { padding: 0 16px; }
	.sp-only { display: inline; }
	.hero__inner { padding: 20px 16px 104px; }
	.hero__visual { margin-left: 8%; }
	.hero__en { font-size: .9rem; letter-spacing: .3em; margin-bottom: 16px; }
	.hero__title { font-size: 1.6rem; letter-spacing: .04em; }
	.hero__buttons .btn-arrow { width: 100%; justify-content: space-between; }
	.section { padding: 80px 0; }
	.sec-head { margin-bottom: 40px; }
	.entry-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.entry-card__body { padding: 14px 12px; }
	.entry-card__title { font-size: .88rem; }
	.entry-card__text, .entry-card__site { display: none; }
	.entry-card__en { font-size: .72rem; }
	.reason { grid-template-columns: 1fr; gap: 8px; padding: 32px 0; }
	.reason__num { font-size: 2.6rem; }
	.facts__item { padding: 24px 8px; }
	.facts__item strong { font-size: 1.6rem; letter-spacing: 0; }
	.sec-head__title { font-size: 1.22rem; letter-spacing: .06em; }
	.concept-head__title { font-size: 1.3rem; letter-spacing: .06em; }
	.hero__bars { gap: 8px; }
	.hero__bars i { width: 14px; }
	.hero__bars i:nth-child(1) { height: 56px; }
	.hero__bars i:nth-child(2) { height: 76px; }
	.hero__bars i:nth-child(3) { height: 40px; }
	.site-grid { grid-template-columns: 1fr; }
	.site-card { padding: 28px 22px 24px; }
	.site-card__thumb { margin: -28px -22px 20px; }
	.flow { grid-template-columns: 1fr; gap: 12px; }
	.flow__item { display: grid; grid-template-columns: 76px 1fr; gap: 0 12px; text-align: left; padding: 20px; }
	.flow__step { grid-row: span 2; align-self: center; }
	.flow__title { margin: 0; }
	.flow__item::after { display: none; }
	.band { padding: 64px 0; }
	.band__tel { font-size: 1.6rem; }
	.band__actions, .band__actions .btn-arrow { width: 100%; }
	.band__actions .btn-arrow { justify-content: space-between; }
	.card-grid, .service-grid { grid-template-columns: 1fr; }
	.faq__item summary { padding: 18px 44px 18px 52px; }
	.faq__item summary::before { left: 18px; }
	.faq__item p { padding: 0 20px 20px 52px; }
	.info-table th, .info-table td { display: block; width: 100%; padding: 10px 4px; }
	.info-table th { border-bottom: 0; padding-bottom: 0; }
	.access__map iframe, .map-embed iframe { height: 300px; }
	.cta-section { padding: 72px 0; }
	.cta { padding: 48px 20px; border-radius: 18px; }
	.cta__tel-num { font-size: 1.6rem; }
	.cta__buttons .btn-arrow { width: 100%; justify-content: space-between; }
	.profile-card { grid-template-columns: 1fr; padding: 24px; }
	.profile-card__photo { max-width: 240px; }
	.form-box { padding: 32px 18px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.site-footer { padding-bottom: 72px; }
	.fixed-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 -1px 0 var(--line); }
	.fixed-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; font-size: .7rem; font-weight: 500; text-decoration: none; color: var(--ink); letter-spacing: .06em; }
	.fixed-bar a .icon { width: 1.4em; height: 1.4em; }
	.fixed-bar__line { color: var(--line-green) !important; }
	.fixed-bar__mail { background: var(--ink); color: var(--white) !important; }
	.page-hero { padding: 48px 0; }
	.page-body { padding-top: 48px; padding-bottom: 80px; }
}
