/*
 * OMM法律事務所
 *
 * 配色の目安はアイボリー7：ネイビー2.5：ゴールド0.5
 */

/* ---------- トークン ---------- */
:root {
	--ivory: #F7F4EE;
	--ivory-2: #F2EDE3;
	--ink: #14243F;
	--muted: #5A6170;
	--line: #DCD5C7;
	--gray: #EFEEEA; /* 交互の背景 */
	--cta: #C2C9D3; /* お問い合わせの帯 */
	--navy: #13294B;
	--photo-navy: 24, 31, 44; /* メインビジュアルの左の塗り足しと重ねる色（rgb）。写真の左側の色に合わせる */
	--navy-deep: #0A1830;
	--gold: #B38D45;
	--gold-text: #C9A55A;
	--gold-ink: #866629; /* 明るい背景の上の金の文字 */

	--grad-navy: radial-gradient(120% 100% at 22% 40%, #22446F 0%, #18345A 45%, #10284A 100%);
	--grad-gold: linear-gradient(100deg, #9A7838 0%, #E2C88C 50%, #9A7838 100%); /* ハイライトは中央に1本（ヘッダーのお問い合わせと同じ） */

	--font-sans: 'Noto Sans JP', sans-serif;
	--font-serif: 'Noto Serif JP', serif;
	--font-en: 'Noto Serif', 'Noto Serif JP', serif;
	--font-latin: 'Lato', 'Noto Sans JP', sans-serif; /* 英数字だけのゴシック（ロゴの英字・MENU・電話番号） */
	--font-btn: 'Noto Sans JP', sans-serif; /* 日本語のボタンはゴシック（中の英数字もゴシック）。英字だけのボタンは .is-en で明朝 */

	--container: 1200px;
	--gutter: clamp(20px, 3vw, 40px);
	--header-h: 84px;
	--section-y: clamp(64px, 9vw, 120px);
}

/* ---------- 基本 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* 一番外側（スマホで上下に引っ張ったときの余白）：上はヘッダーのネイビー、下はフッターの下の端の暗い色（#1A1D27）。ページ本体の地色は body のアイボリー */
html { scroll-padding-top: calc(var(--header-h) + 16px); background: linear-gradient(var(--navy) 0 50%, #1A1D27 50% 100%); }
/* TOPは上もメインビジュアルの上端の暗い色（#1A1D27） */
html:has(body.home) { background: #1A1D27; }
/* ページ内リンクはなめらかに移動（動きを減らす設定の人には使わない） */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

/* body もネイビーにして、アイボリーは本文（.site-main）だけに。スマホのブラウザが画面の外の色を body から拾う場合もネイビーになるように */
body {
	margin: 0;
	background: var(--navy);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
}
body.is-menu-open { overflow: hidden; }
/* ヘッダーは固定。TOP以外は本文をヘッダーの高さ分下げる（TOPはメインビジュアルを下に潜らせる） */
.site-main { display: block; background: var(--ivory); }
body:not(.home) .site-main { padding-top: var(--header-h); }

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--gold); } }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--font-serif);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: .04em;
}

.skip-link { position: absolute; left: -9999px; }
/* スマホのときだけ改行する（<br class="sp-only">） */
.sp-only { display: none; }
@media (max-width: 767px) {
	.sp-only { display: inline; }
}
.skip-link:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 8px 16px; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

/* ネイビーの面（ヒーロー・ページ見出し・フッター・帯） */
.surface-navy {
	background-color: var(--navy);
	color: #fff;
}
@media (hover: hover) and (pointer: fine) { .surface-navy a:hover { color: var(--gold-text); } }

/* ゴールドのグラデーション文字（大きい見出し・英字だけに使う。単色のフォールバックつき） */
.text-gold { color: var(--gold-text); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
	.text-gold {
		background-image: var(--grad-gold);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}
}

/* ゴールドの細い罫線 */
.rule-gold {
	display: block;
	width: 48px;
	height: 1px;
	border: 0;
	margin: 0;
	background: var(--gold);
	background-image: var(--grad-gold);
}

/* ---------- ヘッダー ---------- */
/* スクロールしても固定。PCはメニュー項目を常時表示、スマホはハンバーガー */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--header-h);
	border-bottom: 1px solid rgba(201, 165, 90, .28);
	color: #fff;
	transition: border-color .4s, transform .5s cubic-bezier(.2, .7, .2, 1);
}
/* 背景色とぼかしは ::before に置く。ヘッダー本体に backdrop-filter を付けると、
   スマホのメニュー（position: fixed）の基準がヘッダーの枠になり、画面いっぱいに開かなくなるため */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0 0 -1px; /* 下の線の裏もネイビーに（線から下の帯が透けないように） */
	z-index: -1;
	background-color: var(--navy); /* 透かさない（スマホの画面の外のネイビーと同じ色に） */
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background-color .4s;
}
/* TOPはメインビジュアルの上では背景色なし（ぼかしだけ）。過ぎたらネイビー（.is-solid は main.js で付け外し） */
.home .site-header:not(.is-solid) { border-bottom-color: transparent; }
.home .site-header:not(.is-solid)::before { background-color: transparent; }
/* TOPでもメニューを開いている間は、ヘッダーをメニューと同じネイビーに（写真が透けて見えないように） */
.home.is-menu-open .site-header { border-bottom-color: rgba(201, 165, 90, .28); }
/* メニューを開いている間は、ヘッダーもメニューと同じ濃さに（TOPの透明なヘッダーも） */
.is-menu-open .site-header::before,
.home.is-menu-open .site-header:not(.is-solid)::before { background-color: var(--navy); }
.admin-bar .site-header { top: 32px; }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1360px;
	height: 100%;
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.site-header__logo {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
	text-decoration: none;
}
.site-header__logo svg { flex: none; width: 34px; height: 38px; }
.site-header__logo-text { display: flex; flex-direction: column; gap: 3px; }
.site-header__logo-ja { font-family: var(--font-serif); font-size: 19px; line-height: 1.2; letter-spacing: .14em; }
.site-header__logo-en { font-family: var(--font-latin); font-size: 10px; line-height: 1.2; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.site-header__logo-ja { transition: color .3s; }
@media (hover: hover) and (pointer: fine) { .site-header__logo:hover .site-header__logo-ja { color: var(--gold-text); } }

.site-header__toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 6px;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
}
.site-header__toggle-bars { display: flex; flex-direction: column; gap: 6px; width: 26px; }
.site-header__toggle-bars i { display: block; height: 1px; background: #fff; transition: transform .25s, opacity .25s; }
.site-header__toggle-bars i:nth-child(2) { width: 18px; align-self: flex-end; background: var(--gold-text); }
.site-header__toggle-label { font-family: var(--font-latin); font-size: 9px; font-weight: 400; letter-spacing: .2em; line-height: 1; } /* ロゴの英字とそろえてゴシック */
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars i:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.global-nav ul {
	display: flex;
	align-items: center;
	gap: 0 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.global-nav a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8px 0;
	line-height: 1.3;
	text-decoration: none;
}
/* PCは項目の高さをヘッダーいっぱいにして、金の線がヘッダーの下端に出るように */
@media (min-width: 1200px) {
	.global-nav,
	.global-nav ul,
	.global-nav li { height: 100%; }
	.global-nav li:not(.is-contact) > a { height: 100%; padding: 0; }
	/* マウスを乗せたときの金の線は、1本の線が項目の間を移動する（main.js の .global-nav__line）。項目ごとの線（::after）は使わない */
	.js .global-nav ul { position: relative; }
	.js .global-nav li:not(.is-contact) > a::after { display: none; }
	.global-nav__line { display: block; position: absolute; left: 0; bottom: -1px; /* ヘッダーの下の罫線（1px）に重ねて、ヘッダーの下端にそろえる */ width: 0; height: 2px; background: var(--gold-text); background-image: var(--grad-gold); pointer-events: none; opacity: 0; transition: transform .45s cubic-bezier(.2, .7, .2, 1), width .45s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
	.global-nav__line.is-shown { opacity: 1; }
	.global-nav__line.is-instant { transition: opacity .3s; }
	.global-nav .is-contact { display: flex; align-items: center; }
}
/* 移動する金の線（PCだけ。スマホのメニューでは使わない） */
@media (max-width: 1199px) { .global-nav__line { display: none; } }
.global-nav__ja { font-size: 14px; letter-spacing: .1em; }
.global-nav__en { margin-top: 2px; font-family: var(--font-en); font-size: 10px; font-weight: 500; letter-spacing: .12em; color: rgba(255, 255, 255, .55); transition: color .3s; }
/* マウスを乗せると、金の線が左から伸びる（離すと右へ抜ける）。今いるページは線を出したまま */
.global-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--gold-text);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.global-nav a:focus-visible::after,
.global-nav .is-current > a::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) { .global-nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
/* マウスを乗せても文字の色は変えない（線だけ）。今いるページは日本語・英字とも金に（11/19 井上様のご依頼） */
@media (hover: hover) and (pointer: fine) { .global-nav a:hover { color: inherit; } }
.global-nav li.is-current:not(.is-contact) > a,
.global-nav li.is-current:not(.is-contact) > a .global-nav__en { color: var(--gold-text); }
/* お問い合わせ：白の面にネイビーの文字、角はわずかに丸める（3px）。マウスを乗せると、金のグラデーションが左の外から滑り込む */
.global-nav .is-contact a {
	isolation: isolate;
	overflow: hidden;
	margin-left: 8px;
	padding: 12px 26px;
	border-radius: 3px;
	background: #fff;
	color: var(--navy);
}
.global-nav .is-contact a::after { display: none; }
.global-nav .is-contact a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--grad-gold);
	/* グラデーションを伸び縮みさせず、ボタンと同じ幅のまま左の外から滑り込ませる（left: -100% → 0 と同じ動き） */
	transform: translateX(-101%);
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.global-nav .is-contact a:focus-visible::before { transform: translateX(0); }
@media (hover: hover) and (pointer: fine) { .global-nav .is-contact a:hover::before { transform: translateX(0); } }
/* マウスを離したら、右へ抜けていく（.is-leaving は main.js で付け外し）。抜けたあとは動きなしで左の外へ戻す */
@keyframes omm-slide-out { from { transform: translateX(0); } to { transform: translateX(101%); } }
.global-nav .is-contact a.is-leaving::before { animation: omm-slide-out .5s cubic-bezier(.2, .7, .2, 1) forwards; }
.global-nav .is-contact a.is-resetting::before { transition: none; }

/* ページ内のボタンの塗り（.has-fill・.is-leaving は main.js）。
   はみ出す金の線（::after）を切らないよう、overflow ではなく clip-path で動かす */
@keyframes omm-fill-out { from { clip-path: inset(0); } to { clip-path: inset(0 0 0 100%); } }
.has-fill { position: relative; isolation: isolate; }
.has-fill::before { border-radius: inherit; } /* 角丸のボタンでは塗りも角丸に */
.has-fill::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--fill, var(--navy));
	clip-path: inset(0 100% 0 0);
	transition: clip-path .5s cubic-bezier(.2, .7, .2, 1);
	pointer-events: none;
}

.has-fill:focus-visible::before { clip-path: inset(0); }
@media (hover: hover) and (pointer: fine) { .has-fill:hover::before { clip-path: inset(0); } }
.has-fill.is-leaving::before { animation: omm-fill-out .5s cubic-bezier(.2, .7, .2, 1) forwards; }
.has-fill.is-resetting::before { transition: none; }
/* 背景色の切り替えは塗り（::before）に任せる */
@media (hover: hover) and (pointer: fine) { .has-fill:not(.button):hover { background-color: transparent !important; } }
/* 塗りのボタン（ネイビー）は、白が満ちて文字がネイビーに */
.has-fill.button { --fill: #fff; }
@media (hover: hover) and (pointer: fine) { .has-fill.button:hover { background-color: var(--navy); } }
.global-nav .is-contact a .global-nav__ja,
.global-nav .is-contact a .global-nav__en { color: var(--navy); }
.global-nav .is-contact .global-nav__en { opacity: .7; }
.global-nav__info { display: none; }

/* TOPを開いたとき、メニュー項目が上から順にふわっと現れる */
@keyframes omm-nav-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (min-width: 1200px) {
	.home .global-nav li { animation: omm-nav-in .9s cubic-bezier(.2, .7, .2, 1) both; }
	.home .global-nav li:nth-child(1) { animation-delay: .3s; }
	.home .global-nav li:nth-child(2) { animation-delay: .38s; }
	.home .global-nav li:nth-child(3) { animation-delay: .46s; }
	.home .global-nav li:nth-child(4) { animation-delay: .54s; }
	.home .global-nav li:nth-child(5) { animation-delay: .62s; }
	.home .global-nav li:nth-child(6) { animation-delay: .7s; }
	.home .global-nav li:nth-child(7) { animation-delay: .78s; }
	.home .global-nav li:nth-child(8) { animation-delay: .86s; }
}

/* 1199px以下はハンバーガー。開くと全面ネイビー（右下に六角形の線）、項目が下から順に浮かび上がる */
@media (max-width: 1199px) {
	.site-header__toggle { display: flex; }
	.global-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		padding: 24px var(--gutter) 56px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86.6 100'%3E%3Cpolygon points='43.3,0.5 86.1,25.25 86.1,74.75 43.3,99.5 0.5,74.75 0.5,25.25' fill='none' stroke='%23B38D45' stroke-opacity='.35' stroke-width='.35'/%3E%3C/svg%3E") right -60px bottom -80px / 200px auto no-repeat, var(--navy);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transition: opacity .35s, visibility .35s;
	}
	.global-nav.is-open { visibility: visible; opacity: 1; }
	.global-nav ul { flex-direction: column; align-items: stretch; }
	.global-nav li { border-bottom: 1px solid rgba(255, 255, 255, .14); opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1); }
	.global-nav.is-open li { opacity: 1; transform: none; }
	.global-nav.is-open li:nth-child(1) { transition-delay: .08s; }
	.global-nav.is-open li:nth-child(2) { transition-delay: .13s; }
	.global-nav.is-open li:nth-child(3) { transition-delay: .18s; }
	.global-nav.is-open li:nth-child(4) { transition-delay: .23s; }
	.global-nav.is-open li:nth-child(5) { transition-delay: .28s; }
	.global-nav.is-open li:nth-child(6) { transition-delay: .33s; }
	.global-nav.is-open li:nth-child(7) { transition-delay: .38s; }
	.global-nav.is-open li:nth-child(8) { transition-delay: .43s; }
	/* PCと同じテイスト：日本語はゴシック、その下に小さな英字。今いるページは英字が金になり、下に短い金の線 */
	.global-nav a { align-items: flex-start; padding: 18px 0 16px; }
	.global-nav a::after { left: 0; right: auto; bottom: -1px; width: 40px; }
	.global-nav__ja { font-size: 16px; letter-spacing: .12em; }
	.global-nav__en { margin-top: 4px; font-size: 11px; }
	/* 右端に「＞」 */
	.global-nav li:not(.is-contact) > a { padding-right: 32px; }
	.global-nav li:not(.is-contact) > a::before { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 1px solid rgba(255, 255, 255, .6); border-right: 1px solid rgba(255, 255, 255, .6); transform: rotate(45deg); }
	.global-nav .is-current > a::before { border-color: var(--gold-text); }
	.global-nav .is-contact { border-bottom: 0; margin-top: 32px; }
	.global-nav .is-contact a { align-items: center; margin: 0; padding: 16px 22px; }
	.global-nav .is-contact a .global-nav__ja { color: var(--navy); }
	.global-nav__info {
		display: block;
		margin: 40px 0 0;
		text-align: center;
		opacity: 0;
		transition: opacity .6s .5s;
	}
	.global-nav.is-open .global-nav__info { opacity: 1; }
	.global-nav__info small { display: block; font-size: 12px; letter-spacing: .1em; color: rgba(255, 255, 255, .6); }
	.global-nav__info a { display: inline-block; padding: 0; font-family: var(--font-latin); font-weight: 700; font-size: 26px; letter-spacing: .08em; }
}
@media (max-width: 767px) {
	:root { --header-h: 64px; }
	.site-header__logo svg { width: 26px; height: 30px; }
	.site-header__logo-ja { font-size: 15px; }
	.site-header__logo-en { font-size: 9px; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

/* ---------- 下層ページの見出し帯 ---------- */
/* 薄いグレーの帯の右に、細い線の円を2つ重ねる（大きい円はネイビーの薄い線、小さい円は金） */
.page-header {
	position: relative;
	overflow: hidden;
	padding: 88px 0;
	background-color: var(--gray);
	border-bottom: 1px solid var(--line);
	color: var(--navy);
}
.page-header::before,
.page-header::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.page-header::before { right: -140px; top: -260px; width: 620px; height: 620px; border: 1px solid rgba(19, 41, 75, .14); }
.page-header::after { right: 220px; top: 40px; width: 340px; height: 340px; border: 1px solid var(--gold); opacity: .7; }
.page-header .container { position: relative; z-index: 1; }
/* 写真つき：右半分に事務所の写真。左はグレーへ溶かし、二重の円は写真の上に重ねる */
.page-header.has-photo { padding: 120px 0; }
.page-header__photo {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 64%;
	background-position: 50% 50%;
	background-size: cover;
	/* 左はグレーへ溶かす（溶ける幅を狭めて、写真をはっきり見せる） */
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
/* 二重の円は写真がないときだけ出す */
.page-header.has-photo::before,
.page-header.has-photo::after { display: none; }
/* 取扱分野の詳細：分野名を大きく、英字を小さく */
.page-header--sub .page-header__en { margin-bottom: 16px; font-size: 20px; letter-spacing: .16em; color: var(--gold-ink); }
.page-header--sub .page-header__title { font-size: 40px; font-weight: 600; line-height: 1.4; letter-spacing: .1em; }
.page-header__en {
	display: block;
	margin: 0 0 12px;
	font-family: var(--font-en);
	font-size: 64px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: .03em;
}
.page-header__title {
	margin: 0;
	font-weight: 600;
	font-size: 18px;
	letter-spacing: .14em;
}
@media (max-width: 767px) {
	.page-header { padding: 56px 0; }
	.page-header::before { right: -200px; top: -220px; width: 360px; height: 360px; }
	.page-header::after { right: -60px; top: 56px; width: 200px; height: 200px; }
	.page-header__en { font-size: 40px; }
	.page-header__title { font-size: 15px; }
	.page-header.has-photo { padding: 64px 0; }
	/* スマホは写真を帯全体に敷き、見出しが読めるよう左をグレーで覆う */
	/* スマホ：写真は右寄せで幅75%。左端は帯のグレーから始まり、写真の左から75%のところで透明になる幕を重ねる */
	.page-header__photo { width: 75%; -webkit-mask-image: none; mask-image: none; }
	.page-header__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(239, 238, 234) 0%, rgba(239, 238, 234, 0) 75%); }
	.page-header--sub .page-header__en { font-size: 15px; }
	.page-header--sub .page-header__title { font-size: 26px; }
}

/* ---------- パンくず ---------- */
/* パンくずと本文・一覧の間はしっかり空ける */
.breadcrumb { margin-bottom: 64px; }
.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 20px 0 0;
	list-style: none;
	font-size: 12px;
	color: var(--muted);
}
.breadcrumb li + li::before { content: '/'; margin: 0 10px; color: var(--line); }
.breadcrumb a { text-decoration: none; }

.site-main > .container { padding-bottom: var(--section-y); }

/* ---------- 見出し（セクション共通） ---------- */
.section-title { margin: 0 0 48px; }
.section-title__en {
	display: block;
	font-family: var(--font-en);
	font-size: clamp(36px, 4vw, 52px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: .03em;
	color: var(--navy);
}
.section-title__ja {
	display: block;
	margin-top: 10px;
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: .14em;
	color: var(--muted);
}
.section-title__en.text-gold { color: var(--gold-text); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
	.section-title__en.text-gold { color: transparent; }
}
.surface-navy .section-title__en { color: #fff; }
.surface-navy .section-title__ja { color: rgba(255, 255, 255, .72); }

/* ---------- ボタン・リンク ---------- */
/* 塗りのボタンも枠のリンクも、金の線を右端から少しはみ出させる（リンクと分かるように） */
.button {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 18px 72px 18px 36px;
	border: 1px solid var(--navy);
	background-color: var(--navy);
	color: #fff;
	font-family: var(--font-btn);
	font-size: 15px;
	letter-spacing: .14em;
	text-decoration: none;
	transition: background-color .3s, color .3s;
}
.button::after,
.more-link::after,
.entry__body .button-link a::after,
.entry__body .field-results-link a::after { content: ''; position: absolute; top: 50%; right: -14px; width: 56px; height: 1px; background: var(--grad-gold); transition: right .3s; }
@media (hover: hover) and (pointer: fine) { .button:hover { background-color: transparent; color: var(--navy); } }
/* ボタンの角を少しだけ丸く（ヘッダーのお問い合わせと同じ3px） */
.button,
.more-link,
.entry__body .button-link a,
.entry__body .field-results-link a { border-radius: 3px; }
@media (hover: hover) and (pointer: fine) { .button:hover::after, .more-link:hover::after, .entry__body .button-link a:hover::after, .entry__body .field-results-link a:hover::after { right: -20px; } }

.more-link,
.entry__body .button-link a,
.entry__body .field-results-link a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-width: 240px;
	padding: 18px 80px 18px 36px;
	border: 1px solid var(--navy);
	color: var(--navy);
	font-family: var(--font-btn);
	font-size: 17px;
	line-height: 1.4;
	letter-spacing: .1em;
	text-decoration: none;
	transition: background-color .3s, color .3s;
}
@media (hover: hover) and (pointer: fine) { .more-link:hover, .entry__body .button-link a:hover, .entry__body .field-results-link a:hover { background-color: var(--navy); color: #fff; } }
.entry__body .button-link,
.entry__body .field-results-link { margin-top: 48px; }
.entry__body .button-link a,
.entry__body .field-results-link a { font-family: var(--font-btn); font-size: 15px; letter-spacing: .14em; }
/* 枠だけのボタンは白い地に（カードと同じ色。アイボリーの上で浮かないように、押せることが分かるように） */
.more-link,
.entry__body .button-link a,
.entry__body .field-results-link a,
.top-field__list a { background-color: #FBF9F5; } /* カードと同じ、少し暖かみのある白 */
.more-link.is-en { font-family: var(--font-en); }
/* スマホは、ボタンを横幅いっぱいにし、金の線ははみ出させずにボタンの右端に付ける（右が空いて見えないように。11/26 星野さん） */
@media (max-width: 767px) {
	.button::after { right: 0; width: 44px; }
}

/* ---------- 本文（固定ページ・記事） ---------- */
.entry { max-width: 1080px; margin: 0 auto; }
/* プライバシーポリシー：見出しを本文の上に置く1列の文章なので、読みやすい幅に */
.page-privacy .entry { max-width: 880px; }
.entry__body > :first-child { margin-top: 0; }
.entry__body h2 {
	position: relative;
	margin: 64px 0 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
	font-size: clamp(20px, 2.4vw, 24px);
}
.entry__body h2::after,
.lawyer__section h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 1px; background: var(--gold); }
.entry__body h3 { margin: 40px 0 16px; padding-left: 16px; border-left: 2px solid var(--gold); font-size: 18px; line-height: 1.5; }
/* 箇条書き：黒丸ではなく金の短い線 */
.entry__body > ul { padding-left: 0; list-style: none; }
.entry__body > ul > li { position: relative; padding-left: 1.6em; }
.entry__body > ul > li + li { margin-top: 6px; }
.entry__body > ul > li::before { content: ""; position: absolute; left: .2em; top: .9em; width: .8em; height: 1px; background: var(--gold); }
.entry__body p { margin: 0 0 1.4em; }
/* 私たちについて：基本理念・行動規範を左右に並べる */
.entry__body .philosophy {
	position: relative;
	margin: 0 0 96px;
	padding: 8px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	color: var(--muted);
}
.entry__body .philosophy__item {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 60px 12px;
	font-family: var(--font-serif);
	font-size: 15px;
	letter-spacing: .1em;
	text-align: center;
}
.entry__body .philosophy__item + .philosophy__item { border-left: 1px solid var(--line); }
/* グループブロックの中身は .wp-block-group__inner-container に入るので、そこを左右2列にする */
.entry__body .philosophy > .wp-block-group__inner-container { display: grid; grid-template-columns: 1fr 1fr; }
.entry__body .philosophy .philosophy__item { margin: 0; }
.entry__body .philosophy__label {
	margin-bottom: 18px;
	font-family: var(--font-en);
	font-size: 14px;
	letter-spacing: .18em;
	color: var(--gold-ink);
}
.entry__body .philosophy__item strong {
	display: block;
	margin-bottom: 10px;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: .06em;
	color: var(--navy);
	word-break: auto-phrase; /* 対応ブラウザでは、文節の途中で折り返さない */
}
/* 括弧は文字の外に出し、括弧を除いた文言で中央をそろえる。2行になるときは <span> の切れ目で折り返す */
.entry__body .philosophy__phrase > span { position: relative; display: inline-block; }
.entry__body .philosophy__phrase > span:first-child::before,
.entry__body .philosophy__phrase > span:last-child::after { position: absolute; top: 0; }
.entry__body .philosophy__phrase > span:first-child::before { right: 100%; }
.entry__body .philosophy__phrase > span:last-child::after { left: 100%; }
.entry__body .philosophy__phrase--quote > span:first-child::before { content: "“"; }
.entry__body .philosophy__phrase--quote > span:last-child::after { content: "”"; }
.entry__body .philosophy__phrase--kagi > span:first-child::before { content: "「"; }
.entry__body .philosophy__phrase--kagi > span:last-child::after { content: "」"; }
/* 表示されたら、2つの文言が少し下から順に浮かび上がる（.is-inview は main.js で付ける） */
.js .entry__body .philosophy__item { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .entry__body .philosophy__item:nth-child(2) { transition-delay: .2s; }
.js .entry__body .philosophy.is-inview .philosophy__item { opacity: 1; transform: none; }
@media (max-width: 767px) {
	.entry__body .philosophy { margin-bottom: 64px; padding: 0; }
	.entry__body .philosophy > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.entry__body .philosophy__item { padding: 40px 8px; font-size: 14px; }
	.entry__body .philosophy__item + .philosophy__item { border-left: 0; border-top: 1px solid var(--line); }
	.entry__body .philosophy__label { margin-bottom: 12px; font-size: 13px; }
}
.entry__body ul,
.entry__body ol { padding-left: 1.4em; }

/* 表（RESULTS・事務所概要・募集要項）。スマホは横スクロール */
.entry__body .wp-block-table { margin: 32px 0; overflow-x: auto; }
.entry__body .wp-block-table table { width: 100%; min-width: 560px; border-collapse: collapse; border: 0; font-size: 16px; }
.entry__body .wp-block-table th,
.entry__body .wp-block-table td { padding: 16px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry__body .wp-block-table thead { border: 0; }
.entry__body .wp-block-table thead th { border-bottom: 1px solid var(--gold); font-family: var(--font-serif); font-weight: 500; white-space: nowrap; }
.entry__body .wp-block-table tbody th { width: 28%; font-weight: 500; background: var(--ivory-2); }
/* 主な案件実績：年は細い列・ゴールドの英字。背景色は付けず、1行ずつの一覧に見せる */
.entry__body .results-table tbody th { width: 9em; background: none; font-family: var(--font-en); font-size: 17px; color: var(--gold-ink); white-space: nowrap; }
/* スマホは横スクロールにせず、年を上・案件内容を下に縦に並べる */
@media (max-width: 767px) {
	.entry__body .results-table table { min-width: 0; }
	.entry__body .results-table thead { display: none; }
	.entry__body .results-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
	.entry__body .results-table tbody th,
	.entry__body .results-table td { display: block; width: auto; padding: 0; border: 0; }
	.entry__body .results-table tbody th { font-size: 16px; }
}

/* 地図 */
.entry__body iframe { width: 100%; max-width: 100%; border: 0; }
/* 地図：見出しの段の下まで広げ、本文の幅いっぱい（1080px）に。高さも指定（未指定だと150pxになる） */
.entry__body .map { margin-top: 48px; }
.entry__body .map iframe { display: block; height: 480px; }
@media (min-width: 768px) {
	.entry-section__body > .map { margin-left: -248px; }
}
@media (max-width: 767px) {
	.entry__body .map iframe { height: 320px; }
}

/* 記事（TOPICS詳細） */
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; font-family: var(--font-en); color: var(--muted); }
.entry__category { padding: 0 10px; border: 1px solid var(--gold); font-family: var(--font-sans); font-size: 12px; color: var(--ink); }
.entry__title { margin: 0 0 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: clamp(22px, 3vw, 30px); }
.entry__thumbnail { margin: 0 0 40px; }
.entry__media { margin: 48px 0 0; padding: 24px 28px; background: var(--ivory-2); border-left: 2px solid var(--gold); font-size: 15px; }
.entry__media dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.entry__media dt { color: var(--muted); }
.entry__media dd { margin: 0; }
/* 採用応募フォームの上の、応募書類の案内（白い枠、左に金の線） */
.entry__body .recruit-note { position: relative; margin: 24px 0 40px; padding: 22px 28px 22px 30px; border: 1px solid var(--line); border-left: 2px solid var(--gold); background: #FBF9F5; font-size: 15px; line-height: 1.9; color: #3D4657; }
.entry__body .recruit-note a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 4px; }
@media (max-width: 767px) { .entry__body .recruit-note { padding: 18px 18px 18px 20px; font-size: 14px; } }
/* 事例の表示例（プレビュー）の注意書き */
.case-preview-note { margin: 0 0 32px; padding: 12px 20px; border-left: 2px solid var(--gold); background: var(--gray); font-size: 14px; color: var(--muted); }
/* 前の記事・一覧へ戻る・次の記事。前後のどちらかがなくても「一覧へ戻る」は真ん中に */
.entry__nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.entry__nav-prev { grid-column: 1; justify-self: start; }
.entry__nav-list { grid-column: 2; }
.entry__nav-next { grid-column: 3; justify-self: end; }
/* 前後の記事のリンクは、指で押しやすい高さに（「一覧へ戻る」のボタンの余白は変えない） */
.entry__nav a:not(.more-link) { display: inline-block; padding: 10px 0; }
/* 「＜ 前の記事」「次の記事 ＞」：メニューの「＞」と同じ細い線の矢印 */
.entry__nav .entry__nav-prev a,
.entry__nav .entry__nav-next a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.entry__nav-prev a::before,
.entry__nav-next a::after { content: ""; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transition: transform .3s; }
.entry__nav-prev a::before { transform: rotate(-135deg); }
.entry__nav-next a::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
	.entry__nav-prev a:hover::before { transform: translateX(-3px) rotate(-135deg); }
	.entry__nav-next a:hover::after { transform: translateX(3px) rotate(45deg); }
}
@media (max-width: 767px) {
	.entry__nav { grid-template-columns: 1fr 1fr; }
	.entry__nav-list { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
	.entry__nav-next { grid-column: 2; }
}

/* ページ送り */
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); font-family: var(--font-en); text-decoration: none; }
.pagination .page-numbers.current { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---------- 一覧（取扱分野・TOPICS・弁護士） ---------- */
.field-list,
.topics-list,
.lawyer-list { margin: 0; padding: 0; list-style: none; }

/* 取扱分野の一覧：1分野ずつのカード。番号・分野名・説明・「View more」。カード全体がリンク */
.field-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.field-list__item a {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 40px 40px 36px;
	border: 1px solid var(--line);
	background: #FBF9F5;
	text-decoration: none;
	transition: border-color .3s, box-shadow .3s;
}
@media (hover: hover) and (pointer: fine) { .field-list__item a:hover { color: inherit; border-color: var(--navy); box-shadow: 0 10px 30px rgba(19, 41, 75, .08); } }
.field-list__no { font-family: var(--font-en); font-size: 18px; letter-spacing: .1em; color: var(--gold-ink); }
.field-list__name { margin: 4px 0 16px; font-family: var(--font-serif); font-weight: 600; font-size: 22px; letter-spacing: .08em; color: var(--navy); }
.field-list__desc { flex: 1; font-size: 15px; line-height: 2; color: #3D4657; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.field-list__more { align-self: flex-end; margin-top: 24px; padding-right: 48px; font-family: var(--font-en); font-size: 16px; letter-spacing: .1em; color: var(--navy); }
/* 金の線はほかのボタンと同じく、カードの右端からはみ出させる */
.field-list__more::after { content: ''; position: absolute; right: -14px; bottom: 51px; width: 56px; height: 1px; background: var(--grad-gold); transition: right .3s; }
@media (hover: hover) and (pointer: fine) { .field-list__item a:hover .field-list__more::after { right: -20px; } }

/* 取扱分野の詳細：本文の下にほかの分野へのボタン */
.field-others { max-width: 1080px; margin: 88px auto 0; padding-top: 56px; border-top: 1px solid var(--line); }
.field-others__title { margin: 0 0 28px; font-size: 20px; letter-spacing: .1em; color: var(--navy); }
.field-others .top-field__list { grid-template-columns: repeat(2, 1fr); }
.field-others__all { margin: 40px 0 0; text-align: right; }

/* トピックス一覧：日付・カテゴリ・タイトルの1行なので、一覧とページ送りは狭め（960px）で中央に。パンくずはほかのページと同じ位置のまま */
.topics-list,
.topics-list ~ .pagination { max-width: 960px; margin-left: auto; margin-right: auto; }
.topics-list { border-top: 1px solid var(--line); }
.topics-list__item a {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
}
.topics-list__date { font-family: var(--font-en); font-size: 16px; color: var(--muted); }
.topics-list__category {
	min-width: 96px;
	padding: 0 10px;
	border: 1px solid var(--gold);
	font-size: 12px;
	text-align: center;
}
.topics-list__title { flex: 1 1 320px; }

/* 非公開の投稿の印（ログインした人にだけ見える） */
.private-badge { display: inline-block; margin-left: 12px; padding: 2px 10px; border: 1px solid #A33; font-family: var(--font-sans); font-weight: 500; font-size: 12px; line-height: 1.6; letter-spacing: .1em; color: #A33; vertical-align: middle; }

/* 弁護士一覧：カード全体がリンク */
.lawyer-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}
.lawyer-list__item a {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 36px 32px 32px;
	border: 1px solid var(--line);
	background: #FBF9F5;
	text-decoration: none;
	transition: border-color .3s, box-shadow .3s;
}
@media (hover: hover) and (pointer: fine) { .lawyer-list__item a:hover { color: inherit; border-color: var(--navy); box-shadow: 0 10px 30px rgba(19, 41, 75, .08); } }
.lawyer-list__name { font-family: var(--font-serif); font-weight: 600; font-size: 24px; letter-spacing: .12em; color: var(--navy); }
.lawyer-list__name-en { margin-top: 2px; font-family: var(--font-en); font-size: 14px; letter-spacing: .14em; color: var(--gold-ink); }
.lawyer-list__reg { margin-top: 12px; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
/* カードの飾り：左上の角だけ金のL字（額縁の角）。乗せると少し伸びる */
.lawyer-list__item a::before,
.lawyer-list__item a::after { content: ""; position: absolute; left: -1px; top: -1px; background: var(--gold); transition: width .5s cubic-bezier(.2, .7, .2, 1), height .5s cubic-bezier(.2, .7, .2, 1); }
.lawyer-list__item a::before { width: 40px; height: 1px; }
.lawyer-list__item a::after { width: 1px; height: 40px; }
@media (hover: hover) and (pointer: fine) { .lawyer-list__item a:hover::before { width: 80px; } }
@media (hover: hover) and (pointer: fine) { .lawyer-list__item a:hover::after { height: 80px; } }
.lawyer-list__position { margin-top: 8px; font-size: 14px; color: var(--gold-ink); }
.lawyer-list__fields { flex: 1; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.9; color: #3D4657; }
.lawyer-list__more { align-self: flex-end; margin-top: 24px; padding-right: 48px; font-family: var(--font-en); font-size: 16px; letter-spacing: .1em; color: var(--navy); }
.lawyer-list__more::after { content: ''; position: absolute; right: -14px; bottom: 47px; width: 56px; height: 1px; background: var(--grad-gold); transition: right .3s; }
@media (hover: hover) and (pointer: fine) { .lawyer-list__item a:hover .lawyer-list__more::after { right: -20px; } }

/* ---------- 主な案件実績：2018年（事務所設立）以降を、年ごとの小見出しをつけて1つの一覧に ---------- */
.results-list { max-width: 960px; margin: 0 auto; }
.results-row { padding: 0 0 40px; }
.results-row__head { display: flex; align-items: center; gap: 16px; margin: 0 0 8px; font-weight: 400; }
.results-row__head::after { content: ''; flex: 1; order: 1; height: 1px; background: var(--line); }
.results-row__year { font-family: var(--font-en); font-size: 22px; line-height: 1.3; letter-spacing: .08em; color: var(--gold-ink); }
.results-row__count { order: 2; font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; color: #8A8F99; }
.results-row__list { margin: 0; padding: 0; list-style: none; }
.results-row__list li { position: relative; padding: 12px 0 12px 28px; border-top: 1px dashed var(--line); }
.results-row__list li:first-child { padding-top: 4px; border-top: 0; }
.results-row__list li::before { content: ''; position: absolute; left: 4px; top: 1.6em; width: 10px; height: 1px; background: var(--gold); }
.results-row__list li:first-child::before { top: calc(1.6em - 8px); }
.results-row__period { display: inline-block; margin-right: 12px; padding: 0 8px; border: 1px solid var(--gold); font-family: var(--font-en); font-size: 13px; line-height: 1.7; letter-spacing: .04em; color: var(--gold-ink); vertical-align: 1px; }
@media (max-width: 767px) {
	.results-row { padding-bottom: 32px; }
	.results-row__year { font-size: 20px; }
}

/* ---------- 弁護士個別：著書・論文のカード ---------- */
.books { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 0; padding: 0 !important; list-style: none; }
.books__item { display: flex; gap: 20px; padding: 20px; border: 1px solid var(--line); background: #FBF9F5; }
.books__cover { flex: 0 0 96px; margin: 0; }
.books__cover img { display: block; width: 100%; height: auto; box-shadow: 0 6px 14px rgba(19, 41, 75, .18); }
.books__text { flex: 1; min-width: 0; }
.books__title { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 15px; line-height: 1.8; color: var(--navy); }
.books__meta { margin: 8px 0 0; font-size: 12px; line-height: 1.8; color: var(--muted); }

/* ---------- 弁護士個別 ---------- */
.lawyer { max-width: 1080px; margin: 0 auto; }
.lawyer__header {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-end;
	margin-top: 24px;
	padding: 56px 0;
	background: var(--gray);
	box-shadow: 0 0 0 100vmax var(--gray); /* 背景のグレーを画面の左右いっぱいまで */
	clip-path: inset(0 -100vmax);
}
.lawyer__label { margin: 0 0 12px; font-family: var(--font-en); font-size: 14px; letter-spacing: .2em; color: var(--gold-ink); }
.lawyer__photo { flex: 0 0 300px; margin: 0; }
.lawyer__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lawyer__profile { flex: 1 1 320px; }
/* 写真とプロフィールを左右の中央に置く（PCは横並びのまとまりを、スマホは写真と文字それぞれを中央に） */
.lawyer__header { justify-content: center; }
/* プロフィールは文字の幅だけの箱にして、箱を中央に置く（中の文字は左ぞろえ） */
.lawyer__profile { flex: 0 1 auto !important; }
@media (min-width: 768px) {
	.lawyer__header { gap: 56px; }
}
/* スマホ：プロフィールの左端を写真の左端にそろえる（写真と同じ幅の箱にする） */
@media (max-width: 767px) {
	.lawyer__profile { flex: 0 1 100% !important; max-width: 320px; }
}
.lawyer__name { margin: 0; font-size: clamp(28px, 3.4vw, 36px); letter-spacing: .12em; }
.lawyer__position { display: block; margin-top: 4px; font-size: 15px; color: var(--gold-ink); letter-spacing: .06em; }
.lawyer__name-en { margin: 4px 0 20px; font-family: var(--font-en); font-size: 18px; letter-spacing: .14em; color: var(--muted); }
.lawyer__registration { margin: 0; font-size: 15px; }

.lawyer__toc ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 48px 0 0; padding: 0; list-style: none; font-size: 14px; }
.lawyer__toc a { display: inline-block; padding: 8px 18px; border: 1px solid var(--line); text-decoration: none; letter-spacing: .08em; transition: background-color .3s, border-color .3s, color .3s; }
@media (hover: hover) and (pointer: fine) { .lawyer__toc a:hover { border-color: var(--navy); background: var(--navy); color: #fff; } }
.lawyer__toc-en { display: none; }
/* 項目のリンク（項目が2つ以上の先生）：縦に並べた文字のリンク。小さな英字つき、上に「Index」、今読んでいる項目に金の線（.is-current は main.js）。スマホは本文の前に置く */
.has-toc .lawyer__toc { margin-top: 48px; }
.has-toc .lawyer__toc ul { flex-direction: column; gap: 0; margin: 0; border-left: 1px solid var(--line); font-size: 14px; }
.has-toc .lawyer__toc a { display: block; margin-left: -1px; padding: 10px 0 10px 22px; border: 0; border-left: 2px solid transparent; background: none; color: var(--muted); transition: color .2s, border-color .2s; }
@media (hover: hover) and (pointer: fine) { .has-toc .lawyer__toc a:hover { background: none; color: var(--navy); } }
/* ボタンではないので、乗せたときのネイビーの塗りは出さない */
.has-toc .lawyer__toc a.has-fill::before { display: none; }
.has-toc .lawyer__toc-en { display: block; margin-top: 2px; font-family: var(--font-en); font-size: 11px; line-height: 1.4; letter-spacing: .16em; color: var(--gold-ink); }
/* リンクの上に小さな英字の見出し */
.has-toc .lawyer__toc::before { content: "Index"; display: block; margin-bottom: 10px; padding: 0 0 12px 23px; border-bottom: 1px solid var(--line); font-family: var(--font-en); font-size: 13px; letter-spacing: .24em; color: var(--gold-ink); }
.has-toc .lawyer__toc a.is-current { border-left-color: var(--gold); color: var(--navy); }
/* スマホ・タブレット：同じ見た目のまま2列に（縦の線は項目ごとに） */
@media (max-width: 959px) {
	.has-toc .lawyer__toc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; border-left: 0; }
	.has-toc .lawyer__toc a { margin-left: 0; border-left: 1px solid var(--line); padding-left: 16px; }
	.has-toc .lawyer__toc a.is-current { border-left: 2px solid var(--gold); padding-left: 15px; }
	.has-toc .lawyer__toc::before { padding-left: 0; }
}
/* PC：項目のリンクを左の段に置き、スクロールしても付いてくる。項目の見出しは本文の上に置く */
@media (min-width: 960px) {
	.lawyer__body.has-toc { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 64px; }
	.has-toc .lawyer__toc { position: sticky; top: calc(var(--header-h) + 32px); margin-top: 0; }
	.has-toc .lawyer__section { grid-template-columns: 1fr; gap: 20px; }
	.has-toc .lawyer__section:first-child { margin-top: 0; }
	.has-toc .lawyer__section h2 .entry-section__en { display: inline-block; margin: 0 0 0 16px; }
}

.lawyer__section { margin-top: 64px; }
.lawyer__section h2 { position: relative; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 20px; }
.lawyer__section-body ul { padding-left: 1.2em; }
/* 見出しを左の段、本文を右の段に置く（書籍の柱のような組み）。上にネイビーの線 */
.entry-section,
.lawyer__section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--navy); }
.entry__body .entry-section h2,
.lawyer__section h2 { margin: 0; padding: 0; border: 0; font-size: 22px; line-height: 1.6; letter-spacing: .16em; }
.entry__body .entry-section h2::after,
.lawyer__section h2::after { content: none; }
.entry-section__en { display: block; margin-top: 10px; font-family: var(--font-en); font-weight: 400; font-size: 12px; line-height: 1.2; letter-spacing: .2em; color: var(--gold-ink); }
.entry-section__body > :first-child { margin-top: 0; }
.entry-section__body > :last-child { margin-bottom: 0; }
@media (max-width: 767px) {
	.entry-section,
	.lawyer__section { grid-template-columns: 1fr; gap: 20px; margin-top: 56px; padding-top: 20px; }
	.entry__body .entry-section h2,
	.lawyer__section h2 { font-size: 20px; }
}
/* 経歴・案件実績の年表：年は折り返さず金の英字、行ごとに細い線 */
.lawyer__section-body .history { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.lawyer__section-body .history th,
.lawyer__section-body .history td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lawyer__section-body .history th { width: 7em; padding-right: 16px; font-family: var(--font-en); font-weight: 500; color: var(--gold-ink); white-space: nowrap; }
/* スマホは年を上、内容を下に（本文の幅を広く使う） */
@media (max-width: 767px) {
	.lawyer__header { padding: 32px 0; gap: 28px; }
	.lawyer__section-body .history,
	.lawyer__section-body .history tbody,
	.lawyer__section-body .history tr,
	.lawyer__section-body .history th,
	.lawyer__section-body .history td { display: block; width: auto; }
	.lawyer__section-body .history tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.lawyer__section-body .history th,
	.lawyer__section-body .history td { padding: 0; border: 0; }
}

.back-link { margin-top: 80px; text-align: center; }

/* ---------- TOP ---------- */
/* メインビジュアル */
.top-hero {
	position: relative;
	height: 780px;
	overflow: hidden;
	background-color: rgb(var(--photo-navy));
	color: #fff;
}
/* 写真の左端は画面中央から360px左（1440px幅で75%）。キャッチと同じく中央基準なので、幅が変わっても間隔が変わらない */
.top-hero__photo {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: calc(50% - 360px);
	background-position: 0% 50%;
	background-size: cover;
	background-repeat: no-repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.top-hero__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(var(--photo-navy), .9) 0%, rgba(var(--photo-navy), 0) 20%), linear-gradient(180deg, rgba(var(--photo-navy), .5) 0%, rgba(var(--photo-navy), 0) 30%, rgba(var(--photo-navy), 0) 80%, rgba(var(--photo-navy), .35) 100%); }
.top-hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: var(--container);
	height: 100%;
	margin: 0 auto;
	padding: var(--header-h) var(--gutter) 0;
}
.top-hero__label { margin: 0; font-family: var(--font-en); font-size: 90px; font-weight: 400; line-height: 1; letter-spacing: .04em; }
.top-hero__copy { display: flex; align-items: center; gap: 22px; margin: 34px 0 0; font-size: 22px; letter-spacing: .2em; }
.top-hero__copy::before { content: ''; flex-shrink: 0; width: 56px; height: 1px; background: var(--grad-gold); }
/* 写真の上でも読みやすいよう、キャッチに薄い影（金のグラデーション文字にも効くよう text-shadow ではなく drop-shadow） */
.top-hero__label,
.top-hero__copy { filter: drop-shadow(0 6px 10px rgba(10, 24, 48, .8)); }
/* タブレット〜PC（768〜1440px）：1440px時の見た目を画面幅に比例して縮める（高さ・写真・キャッチすべて） */
@media (min-width: 768px) and (max-width: 1440px) {
	.top-hero { height: 54.17vw; }
	.top-hero__photo { left: 25vw; }
	.top-hero__inner { max-width: none; padding-left: 11.11vw; padding-right: 0; }
	.top-hero__label { font-size: 6.22vw; }
	.top-hero__copy { gap: 1.53vw; margin-top: 2.36vw; font-size: max(13px, 1.53vw); }
	.top-hero__copy::before { width: 3.89vw; }
}
/* スマホ：写真が上、キャッチが下。390px幅を基準に画面幅に比例させる */
@media (max-width: 767px) {
	.top-hero { height: 115vw; }
	.top-hero__photo { bottom: auto; left: 0; width: 100%; height: 80%; background-position: 48% 50%; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
	/* キャッチは左ぞろえのまま、まとまりを左右の中央に（2行の幅に合わせた1列のグリッド） */
	.top-hero__inner { display: grid; grid-template-columns: max-content; justify-content: center; justify-items: start; align-content: end; padding: 0 6vw 10vw; }
	/* 画面幅に合わせて大きくなるが、中途半端な幅（500px超）で大きくなりすぎないよう上限を付ける */
	.top-hero__label { font-size: min(13.97vw, 69px); } /* PCと同じく、英字の幅が日本語のキャッチ（線を含む）とほぼ同じになる大きさ */
	.top-hero__copy { gap: min(3.59vw, 18px); margin-top: min(2vw, 10px); font-size: min(3.85vw, 19px); letter-spacing: .14em; }
	.top-hero__copy::before { width: min(4.21vw, 22px); }
}

.top-section { padding: var(--section-y) 0; }

/* About：写真は枠に収めず画面の左端まで広げる */
.top-about { overflow-x: clip; }
.top-about__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.top-about__photo { position: relative; isolation: isolate; /* 金の枠（::before）を写真の後ろ・背景の手前に保つ */ margin: 0 0 0 calc((min(100vw, var(--container)) - 100vw) / 2 - var(--gutter)); }
.top-about__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 60%; }
.top-about__photo::before { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold); z-index: -1; }
/* PC（2列）：写真の高さは「右の文章より低くならない」かつ「横長になりすぎない（2:1より平たくしない）」。
   広い画面で4:3のまま大きくなりすぎないよう、4:3の高さは1440px幅のときの高さ（532px）までにする。写真は枠に合わせて切り抜く */
@media (min-width: 768px) {
	.top-about__inner { align-items: stretch; }
	.top-about__inner > div { align-self: center; }
	.top-about__photo { container-type: inline-size; }
	/* 高さは ::after（写真の枠の幅を基準にした最低の高さ）と右の文章の高さの大きい方。写真は枠いっぱいに重ねる（Safariでも崩れないよう、img の height:100% に頼らない） */
	.top-about__photo::after { content: ""; display: block; min-height: max(50cqw, min(75cqw, 532px)); }
	.top-about__photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
.top-about__lead { margin: 0 0 28px; font-family: var(--font-serif); font-weight: 600; font-size: 20px; line-height: 2; letter-spacing: .04em; color: var(--navy); }
.top-about__text { margin: 0 0 40px; color: #3D4657; }

/* 背景色を交互に切り替える（About オフホワイト → 取扱分野 グレー → Results オフホワイト → Lawyers グレー） */
.top-field,
.top-lawyers { background: var(--gray); }
/* 取扱分野：枠のボタン。金の線は右端からはみ出す */
.top-field__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 48px; margin: 0; padding: 0; list-style: none; }
.top-field__list a { position: relative; display: flex; align-items: center; min-height: 84px; height: 100%; padding: 20px 64px 20px 28px; border: 1px solid var(--navy); color: var(--navy); font-family: var(--font-btn); font-weight: 500; font-size: 17px; letter-spacing: .08em; text-decoration: none; transition: background-color .3s, color .3s; }
.top-field__list a::after { content: ''; position: absolute; top: 50%; right: -14px; width: 56px; height: 1px; background: var(--grad-gold); transition: right .3s; }
@media (hover: hover) and (pointer: fine) { .top-field__list a:hover { background-color: var(--navy); color: #fff; } }
@media (hover: hover) and (pointer: fine) { .top-field__list a:hover::after { right: -20px; } }

.top-results__inner { display: grid; grid-template-columns: 300px 1fr; gap: 60px; }
.top-results__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.top-results__list li { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.top-results__year { font-family: var(--font-en); font-size: 18px; letter-spacing: .06em; color: var(--gold-ink); white-space: nowrap; } /* 「2025～2026」のような期間も1行に */
.top-results__more { margin: 32px 0 0; text-align: right; }

.top-lawyers__box { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; padding: 64px 72px; border: 1px solid var(--line); background: #FBF9F5; }
/* 紹介文はなし（11/19 井上様のご依頼）。見出しとボタンだけを左右に並べる */
.top-lawyers__box .section-title { margin-bottom: 0; }

/* ---------- お問い合わせの帯（お問い合わせページ以外の全ページ） ---------- */
/* 六角形の枠線を2つ右端に重ねる。PCは下半分をフッターの裏に隠す */
.site-cta { --muted: #454C5C; /* 地色が濃いので補足の文字も濃く */ position: relative; padding: 88px 0; background-color: var(--cta); color: var(--navy); overflow-x: clip; }
.site-cta__hex { position: absolute; bottom: -10vw; right: 5vw; height: 34vw; width: auto; transform: translateX(55%); fill: none; stroke: rgba(19, 41, 75, .28); pointer-events: none; }
.site-cta__hex--gold { height: 100%; right: 7vw; bottom: -10vw; transform: none; stroke: var(--gold); }
.site-cta__inner { position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 64px; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.site-cta .section-title { margin: 0; }
.site-cta__tel { margin: 0; font-family: var(--font-latin); font-weight: 700; font-size: 32px; letter-spacing: .08em; line-height: 1.4; }
.site-cta__tel small { display: block; font-family: var(--font-sans); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.site-cta__tel a { text-decoration: none; }
/* 電話番号のリンクは、乗せても見た目を変えない（色・線・透明度） */
@media (hover: hover) and (pointer: fine) { a[href^="tel:"]:hover { color: inherit; opacity: 1; } }
.global-nav a[href^="tel:"]::after { display: none; }

/* ---------- お問い合わせフォーム（Snow Monkey Forms） ---------- */
.smf-form .smf-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
/* 項目名と入力欄の間。スマホ（縦並び）と応募書類の欄は、項目名の下に余白をとる */
.smf-form .smf-item__col--label { margin-bottom: 12px; }
/* PCは項目名を左、入力欄を右に横並び（応募書類の欄は、下の .smf-item--file で右の列に縦に並べる） */
@media (min-width: 768px) {
	.smf-form .smf-item:not(.smf-item--file) { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px; align-items: start; }
	.smf-form .smf-item:not(.smf-item--file) > .smf-item__col--label { margin-bottom: 0; padding-top: 12px; }
}
/* お名前の姓・名、ふりがなのせい・めいは1行に並べる */
.smf-item--split .smf-item__controls { display: flex; gap: 12px; }
.smf-item--split .smf-item__controls > * { flex: 1 1 0; min-width: 0; }
/* プルダウン（生年月日の年・月・日）：ほかの入力欄と同じ見た目に */
.smf-form select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0; background-color: #fff; font: inherit; color: var(--ink); }
.smf-form select:focus { border-color: var(--gold); outline: none; }
.smf-form .smf-select-control { width: 100%; }
/* 出身校：高校・大学・大学院の欄を縦に重ね、欄の左に小さく何の欄かを出す */
.smf-item--stack .smf-item__controls { display: grid; gap: 10px; }
.smf-item--stack .smf-placeholder { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; }
.smf-item--stack .smf-placeholder::before { font-size: 13px; color: var(--muted); }
.smf-item--stack [data-name="where_from01"]::before { content: "高校"; }
.smf-item--stack [data-name="where_from02"]::before { content: "大学"; }
.smf-item--stack [data-name="where_from03"]::before { content: "大学院"; }
/* 住所：〒の欄（短め）の下に住所の欄（お問い合わせは建物名などの欄も） */
.smf-item--address .smf-item__controls { display: grid; gap: 10px; }
.smf-item--address [data-name="postalcode"] { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.smf-item--address [data-name="postalcode"]::before { content: "〒"; flex: none; color: var(--muted); }
.smf-item--address [data-name="postalcode"] > * { flex: 0 1 180px; min-width: 0; }
/* 〒の欄の右（スマホは下）に、郵便番号から住所が入ることを小さく案内 */
.smf-item--address [data-name="postalcode"]::after { content: "郵便番号を入れると、住所が自動で入ります。"; font-size: 13px; color: var(--muted); }
/* 応募書類の見出し：形式・容量の決まりは、ここで1回だけ案内する */
.smf-files-head { margin: 48px 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--navy); }
.smf-files-head__title { display: block; font-family: var(--font-serif, inherit); font-size: 18px; letter-spacing: .08em; color: var(--navy); }
.smf-files-head__note { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.smf-files-head__total { display: block; margin-top: 6px; font-size: 13px; color: var(--ink); white-space: pre-line; }
.smf-files-head__total[hidden] { display: none; }
.smf-files-head__total.is-over { color: #A33; }
.smf-required {
	display: inline-block;
	margin-left: 10px;
	padding: 0 8px;
	background: var(--navy);
	color: #fff;
	font-size: 11px;
	line-height: 1.8;
	vertical-align: middle;
}
/* 任意の印（採用応募の応募書類）：「必須」と同じ大きさで、線だけの控えめな形 */
.smf-optional { display: inline-block; margin-left: 10px; padding: 0 7px; border: 1px solid #9AA0AB; color: var(--muted); font-size: 11px; line-height: 1.6; vertical-align: middle; }
.smf-form input[type="text"],
.smf-form input[type="email"],
.smf-form input[type="tel"],
.smf-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: #fff;
	font: inherit;
}
.smf-form input:focus,
.smf-form textarea:focus { border-color: var(--gold); outline: none; }
/* 応募書類の欄（ファイルの選択） */
.smf-form input[type="file"] { max-width: 100%; font-size: 15px; }
/* 項目名の補足（「（中途採用の方・任意）」など）は小さめに */
.smf-item__label__sub { display: inline-block; margin-left: 4px; font-size: 13px; color: var(--muted); }
/* 応募書類：PCは「応募書類」をほかの項目名と同じ左の列に置き、書類ごとの欄（書類名の下に「ファイルを選択」）を右の入力欄の列に並べる。スマホは見出しの下に縦に並べる */
@media (min-width: 768px) {
	.smf-form:has(.smf-files-head) { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px; }
	.smf-form:has(.smf-files-head) > * { grid-column: 1 / -1; min-width: 0; }
	/* 左の列で、書類の欄7つ分の高さにわたる（書類の数を変えたら span の数も変える） */
	.smf-form:has(.smf-files-head) > .smf-files-head { grid-column: 1; grid-row: span 7; margin: 0; padding: 20px 0 0; border-bottom: 1px solid var(--line); }
	.smf-form:has(.smf-files-head) > .smf-item--file { grid-column: 2; }
	.smf-files-head__title { font-family: inherit; font-size: inherit; letter-spacing: inherit; color: inherit; }
	.smf-files-head__note { font-size: 13px; }
	.smf-form .smf-item--file > .smf-item__col--label { margin-bottom: 8px; }
	/* 「ファイルを選択」と選んだファイル名は1行に（長いファイル名は … で切る） */
	.smf-item--file .smf-file-control label { flex-wrap: nowrap; }
	.smf-item--file .smf-file-control__filename { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.smf-file-control__value { margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.smf-file-error { margin: 16px 0 0; padding: 12px 16px; border-left: 2px solid #A33; background: #FBF0F0; font-size: 14px; color: #8A2323; }
.smf-file-error[hidden] { display: none; }
.smf-action { margin-top: 40px; text-align: center; }
.smf-action .smf-button-control__control {
	min-width: 240px;
	min-height: 52px;
	border: 1px solid var(--navy);
	border-radius: 0;
	background: var(--navy);
	color: #fff;
	font-family: var(--font-serif);
	font-size: 15px;
	letter-spacing: .1em;
	cursor: pointer;
}
/* フォームの最後：個人情報の扱いの案内と「プライバシーポリシーに同意する」（必須）。送信ボタンの上に中央寄せでまとめる */
.smf-privacy-note { margin: 56px 0 0 !important; font-size: 14px; line-height: 2; color: var(--muted); text-align: center; }
.smf-privacy-note a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 4px; }
.smf-form .smf-item.smf-item--agree { display: block; padding: 32px 0 0; border-bottom: 0; text-align: center; }
.smf-item--agree .smf-item__col--label { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.smf-item--agree label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.smf-item--agree .smf-checkbox-control { display: inline-flex; align-items: center; gap: 10px; } /* チェックの四角と文字の高さをそろえる */
.smf-item--agree input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.smf-item--agree input[type="checkbox"]:checked { border-color: var(--navy); background-color: var(--navy); }
.smf-item--agree .smf-checkbox-control__label::after { content: "必須"; display: inline-block; margin-left: 10px; padding: 0 8px; background: var(--navy); color: #fff; font-size: 11px; line-height: 1.8; vertical-align: middle; }
.smf-item--agree + .smf-action, .smf-form:has(.smf-item--agree) + .smf-action { margin-top: 40px; }
/* 同意のチェックを入れるまでは、確認ボタンを薄い色に（押すと「チェックを入れてください。」が出る） */
.smf-form:has(.smf-item--agree input[type="checkbox"]:not(:checked)) + .smf-action [data-action="confirm"] { border-color: #A9B0BD !important; background-color: #A9B0BD !important; color: #fff !important; cursor: not-allowed; }
.smf-form:has(.smf-item--agree input[type="checkbox"]:not(:checked)) + .smf-action [data-action="confirm"]::before { display: none; }
/* お問い合わせページのフォームの下：電話を大きく（FAXはその下に小さく）、右にメールと所在地。グレーの面。文字は左揃えのまま、中身のまとまりを面の真ん中に */
.contact-info { display: grid; grid-template-columns: auto 1px auto; justify-content: center; gap: 40px 56px; align-items: center; margin-top: 88px; padding: 36px 48px; background: var(--gray); }
.contact-info__label { display: block; font-size: 12px; letter-spacing: .14em; color: var(--gold-ink); }
.contact-info__num { display: block; margin-top: 4px; font-family: var(--font-latin); font-weight: 700; font-size: 32px; letter-spacing: .06em; line-height: 1.3; color: var(--navy); text-decoration: none; }
.contact-info__fax { display: block; margin-top: 4px; font-family: var(--font-latin); font-size: 14px; letter-spacing: .06em; color: var(--muted); }
.contact-info__rule { align-self: stretch; background: var(--line); }
.contact-info__list { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 14px; line-height: 1.9; }
.contact-info__list dt { font-size: 12px; letter-spacing: .12em; color: var(--gold-ink); line-height: 2.2; }
.contact-info__list dd { margin: 0; }
.contact-info__list a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 4px; }
@media (max-width: 767px) {
	.contact-info { grid-template-columns: auto; gap: 20px; margin-top: 64px; padding: 28px 20px; }
	.contact-info__rule { height: 1px; }
	.contact-info__num { font-size: 26px; }
}

/* ---------- フッター ---------- */
/* ネイビー。ロゴマークを中央に大きく（3倍）、その下に社名。お問い合わせ帯の六角形より手前に重ねる */
/* 背景：一段暗い紺から、端をメインビジュアルの暗い色（#1A1D27）へ沈める（TOPの写真との明るさ・色みの差を埋める） */
.site-footer { position: relative; padding: 88px 0 40px; border-top: 1px solid rgba(201, 165, 90, .4); background-color: var(--navy); background-image: radial-gradient(70% 90% at 50% 30%, #182F52 0%, #172640 55%, #1A1D27 100%); color: rgba(255, 255, 255, .85); text-align: center; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
/* フッターのリンクは、マウスを乗せると金に（ロゴと社名は白のまま、光らせない） */
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--gold-text); } }
@media (hover: hover) and (pointer: fine) { .site-footer a.site-footer__brand:hover { color: #fff; } }
.site-footer__brand { display: inline-flex; flex-direction: column; align-items: center; color: #fff; text-decoration: none; }
.site-footer__brand svg { width: 130px; height: 146px; margin-bottom: 24px; }
.site-footer__name { font-family: var(--font-serif); font-size: 22px; line-height: 1.4; letter-spacing: .14em; }
.site-footer__name-en { margin-top: 8px; font-family: var(--font-latin); font-size: 11px; line-height: 1.2; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.site-footer__address { margin: 32px 0 0; font-style: normal; font-size: 14px; line-height: 2.1; color: rgba(255, 255, 255, .75); }
.site-footer nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 14px; }
.site-footer nav a { text-decoration: none; }
.site-footer__copy { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; color: rgba(255, 255, 255, .55); }


/* ---------- 取扱分野の詳細：最初の段落をリードに ---------- */
.entry--field .entry__body > p:first-child {
	margin-bottom: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-serif);
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 2.1;
	letter-spacing: .06em;
	color: var(--navy);
}

/* ---------- 事務所概要の表：スマホでは横にはみ出さないよう、項目名の幅を詰める ---------- */
@media (max-width: 767px) {
	.entry__body .spec-table table { min-width: 0; table-layout: fixed; }
	.entry__body .spec-table th { width: 6.5em; }
	.entry__body .spec-table td { word-break: break-all; }
}

/* ---------- 404（ページが見つからないとき） ---------- */
.not-found { padding-top: 64px; }
.not-found__lead { margin: 0 0 48px; font-family: var(--font-serif); font-size: 17px; line-height: 2.1; letter-spacing: .06em; text-align: center; color: var(--navy); }
.not-found__links { margin-bottom: 56px; }
.not-found__home { text-align: center; }
@media (max-width: 767px) {
	.not-found { padding-top: 40px; }
	.not-found__lead { font-size: 15px; text-align: left; }
	.not-found__lead br { display: none; }
}

/* ---------- スクロールで現れる動き（.reveal と .is-inview は main.js で付ける） ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-inview { opacity: 1; transform: none; }

/* ---------- TOPのAbout：写真が現れたあと、金の枠が左上から少し遅れてずれて重なる ---------- */
.js .top-about__photo.reveal::before { opacity: 0; transform: translate(-14px, -14px); transition: opacity .9s .5s ease, transform 1.1s .5s cubic-bezier(.2, .7, .2, 1); }
.js .top-about__photo.reveal.is-inview::before { opacity: 1; transform: none; }

/* ---------- フッターのロゴ：マークが順に立ち上がり、社名が続く。ホバーで光が走る ---------- */
.site-footer__brand svg { overflow: visible; }
.site-footer__brand path { transform-box: fill-box; transform-origin: 50% 100%; }
.js .site-footer__brand path { opacity: 0; transform: translateY(18px) scaleY(.6); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.js .site-footer__brand path:nth-child(2) { transition-delay: .15s; }
.js .site-footer__brand path:nth-child(3) { transition-delay: .3s; }
.js .site-footer__brand .site-footer__name,
.js .site-footer__brand .site-footer__name-en { opacity: 0; transform: translateY(10px); transition: opacity .9s .6s ease, transform .9s .6s cubic-bezier(.2, .7, .2, 1); }
.js .site-footer__brand .site-footer__name-en { transition-delay: .75s; }
.js .site-footer__brand.is-inview path,
.js .site-footer__brand.is-inview .site-footer__name,
.js .site-footer__brand.is-inview .site-footer__name-en { opacity: 1; transform: none; }

/* ---------- ヘッダーのロゴ：TOPを開いたとき、マークの3本が順に立ち上がる ---------- */
.site-header__logo path { transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes omm-mark-in { from { opacity: 0; transform: translateY(8px) scaleY(.6); } to { opacity: 1; transform: none; } }
.home .site-header__logo path { animation: omm-mark-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.home .site-header__logo path:nth-child(1) { animation-delay: .1s; }
.home .site-header__logo path:nth-child(2) { animation-delay: .22s; }
.home .site-header__logo path:nth-child(3) { animation-delay: .34s; }

/* ---------- TOPのメインビジュアル：開いたとき、写真がゆっくり寄りから引き、キャッチが順に浮かぶ ---------- */
@keyframes omm-hero-photo { from { transform: scale(1.08); } to { transform: none; } }
@keyframes omm-fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.top-hero__photo { animation: omm-hero-photo 2.8s cubic-bezier(.2, .7, .2, 1) both; }
.top-hero__label { animation: omm-fade-up 1.2s .4s cubic-bezier(.2, .7, .2, 1) both; }
.top-hero__copy { animation: omm-fade-up 1.2s .8s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- TOPのメインビジュアル：スクロールすると写真とキャッチが少しずつ遅れて動く（translate は main.js） ---------- */
.top-hero__photo,
.top-hero__label,
.top-hero__copy { will-change: translate; }

/* ---------- 下層の見出し帯：写真が読み込まれたら、少し大きい状態からふわっと出る（.is-loaded は main.js） ---------- */
/* ぼかし（filter）は使わない。iPhone の Safari で写真が黒く表示されることがあるため（11/26 先方の写真） */
.js .page-header__photo { opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.js .page-header__photo.is-loaded { opacity: 1; transform: none; }
/* 見出し帯：写真は下へ遅れて動くので、上の端が出ないよう帯より上まで広げておく（translate は main.js） */
.page-header__photo { top: -60px; }
.page-header__en,
.page-header__title { will-change: translate; }
/* 見出し帯の文字：英字→日本語の順に、少しぼけた状態から浮き上がる */
@keyframes omm-title-in { from { opacity: 0; filter: blur(4px); transform: translateY(12px); } to { opacity: 1; filter: none; transform: none; } }
.page-header__en { animation: omm-title-in 1.1s .15s cubic-bezier(.2, .7, .2, 1) both; }
.page-header__title { animation: omm-title-in 1.1s .4s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- タブレット・スマホ ---------- */
/* 本文はPC 16px・スマホ 15px */
@media (max-width: 767px) {
	body { font-size: 15px; }
}
@media (max-width: 1023px) {
	.top-field__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 959px) {
	.top-about__inner { gap: 48px; }
	.top-results__inner { grid-template-columns: 1fr; gap: 0; }
	.top-lawyers__box { padding: 48px 40px; }
	.site-cta__inner { grid-template-columns: 1fr auto; }
	.site-cta .section-title { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.breadcrumb { margin-bottom: 40px; }
	.field-list,
	.lawyer-list,
	.books,
	.field-others .top-field__list { grid-template-columns: 1fr; }
	.field-list { gap: 20px; }
	.field-list__item a { margin-right: 20px; padding: 28px 24px 24px; }
	.field-list__more::after { bottom: 39px; }
	.field-list__name { font-size: 19px; }
	.lawyer-list { gap: 16px; }
	.lawyer-list__item a { margin-right: 20px; padding: 28px 24px 24px; }
	.lawyer-list__more::after { bottom: 39px; }
	.field-others { margin-top: 64px; padding-top: 40px; }
	.field-others__all { padding-right: 22px; }
	.lawyer__photo { flex-basis: 100%; max-width: 320px; }

	.section-title { margin-bottom: 32px; }
	.top-about__inner { grid-template-columns: 1fr; gap: 44px; }
	.top-about__photo { margin-left: calc(var(--gutter) * -1); }
	.top-about__photo::before { inset: 10px -10px -10px 10px; }
	.top-about__lead { font-size: 16px; }
	.top-field__list { grid-template-columns: 1fr; gap: 14px; }
	.top-field__list a { min-height: 64px; margin-right: 20px; padding: 16px 56px 16px 20px; font-size: 16px; }
	.top-results__list li { grid-template-columns: 1fr; gap: 2px; padding: 18px 0; }
	.top-results__year { font-size: 16px; }
	.top-results__more { text-align: left; }
	.top-lawyers__box { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
	.site-cta { padding: 64px 0; }
	.site-cta__hex { bottom: 39vw; right: 12vw; height: 65vw; }
	.site-cta__hex--gold { bottom: 44vw; height: 36vw; right: 14vw; }
	.site-cta__inner { grid-template-columns: 1fr; gap: 28px; }
	.site-cta__tel { font-size: 28px; }
	.site-footer { padding-top: 64px; }
	.site-footer__brand svg { width: 104px; height: 117px; }
	.site-footer__name { font-size: 19px; }
	.site-footer__name-en { font-size: 10px; }
	.site-footer nav ul { gap: 10px 24px; }
}

/* ---------- 動きを減らす設定の人には動かさない ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; }
	/* スクロールで現れる要素も、最初から表示しておく（画面に入るまで隠さない） */
	.js .reveal,
	.js .entry__body .philosophy__item,
	.js .top-about__photo.reveal::before,
	.js .site-footer__brand path,
	.js .site-footer__brand .site-footer__name,
	.js .site-footer__brand .site-footer__name-en { opacity: 1 !important; transform: none !important; }
}

/* ---------- 試作：TOPのオープニング（.has-opening は inc/setup.php で、その日の最初の訪問だけ付く） ---------- */
.opening { display: none; }
.has-opening .opening { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #1C365E 0%, var(--navy) 55%, var(--navy-deep) 100%); animation: omm-opening-out .8s 1.7s cubic-bezier(.7, 0, .2, 1) forwards; }
.opening__inner { display: flex; flex-direction: column; align-items: center; animation: omm-opening-inner .8s 1.7s cubic-bezier(.7, 0, .2, 1) forwards; }
.opening__mark { width: 72px; height: auto; overflow: visible; }
.opening__mark path { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; animation: omm-opening-bar .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.opening__mark path:nth-child(1) { animation-delay: .2s; }
.opening__mark path:nth-child(2) { animation-delay: .3s; }
.opening__mark path:nth-child(3) { animation-delay: .4s; }
.opening__name,
.opening__name-en { margin: 0; opacity: 0; animation: omm-opening-text .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.opening__name { margin-top: 28px; font-family: var(--font-serif); font-size: 22px; letter-spacing: .2em; color: #fff; animation-delay: .7s; }
.opening__name-en { margin-top: 10px; font-family: var(--font-latin); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, .6); animation-delay: .85s; }
@keyframes omm-opening-bar { from { opacity: 0; transform: translateY(18px) scaleY(.6); } to { opacity: 1; transform: none; } }
@keyframes omm-opening-text { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* 幕が上へ開く */
@keyframes omm-opening-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes omm-opening-inner { to { opacity: 0; transform: translateY(-40px); } }
/* オープニングのあいだは、メインビジュアルの動きを待たせる */
.has-opening .top-hero__photo { animation-delay: 2s; }
.has-opening .top-hero__label { animation-delay: 2.3s; }
.has-opening .top-hero__copy { animation-delay: 2.6s; }

/* ---------- ページの先頭へ戻るボタン（右下。少しスクロールしたら出す。.is-shown は main.js） ---------- */
.to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 90;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 1px solid rgba(201, 165, 90, .6);
	border-radius: 3px;
	background: rgba(19, 41, 75, .92);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .4s, visibility .4s, transform .4s cubic-bezier(.2, .7, .2, 1), background-color .3s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) { .to-top:hover { background: var(--navy); } }
/* 矢印は線で描いた SVG（四角の枠を回す作りだと、見た目の中心がずれるため） */
.to-top__arrow { display: block; width: 14px; height: 8px; fill: none; stroke: var(--gold-text); stroke-width: 1.2; transition: transform .3s; overflow: visible; }
@media (hover: hover) and (pointer: fine) { .to-top:hover .to-top__arrow { transform: translateY(-3px); } }
.to-top__label { margin-right: -.2em; font-family: var(--font-latin); font-size: 9px; letter-spacing: .2em; line-height: 1; } /* 字間の分だけ右に寄せて、文字を中央に */
.is-menu-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 767px) {
	.to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

/* ---------- スマホ：写真より情報を先に（11/26 先方のご依頼。PCは変えない） ---------- */
/* ・採用情報を除き、イメージ写真（見出し帯の写真・TOPの About の写真）を出さない
   ・見出し帯とパンくず、私たちについての基本理念・行動規範、各セクションの上下の余白を詰める
   ・弁護士のプロフィール写真と、TOPの事務所ロゴの画像はそのまま */
@media (max-width: 767px) {
	:root { --section-y: 48px; }
	.page-header,
	.page-header.has-photo { padding: 24px 0; }
	.page-header.is-sp-photo { padding: 48px 0; }
	.page-header.has-photo:not(.is-sp-photo) .page-header__photo { display: none; }
	/* 写真を隠した帯は、写真のない帯と同じく二重の円を出す */
	.page-header.has-photo:not(.is-sp-photo)::before,
	.page-header.has-photo:not(.is-sp-photo)::after { display: block; }
	.page-header__en { margin-bottom: 6px; font-size: 34px; }
	.page-header--sub .page-header__en { margin-bottom: 8px; }
	.page-header--sub .page-header__title { font-size: 22px; }
	.breadcrumb { margin-bottom: 24px; }
	.breadcrumb ol { padding-top: 14px; }
	.entry-section,
	.lawyer__section { margin-top: 44px; }
	.entry__body .philosophy { margin-bottom: 32px; }
	.entry__body .philosophy + .entry-section { margin-top: 0; }
	.entry__body .philosophy__item { padding: 16px 8px; }
	.entry__body .philosophy__label { margin-bottom: 6px; }
	.entry__body .philosophy__item strong { margin-bottom: 4px; }
	.top-about__photo { display: none; }
}

/* ---------- フッター：Googleマップで見る（スマホだけ、全ページ。11/26 先方のご依頼） ---------- */
.site-footer__map { display: none; }
@media (max-width: 767px) {
	.site-footer__map { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; margin-top: 20px; padding: 12px 28px; border: 1px solid var(--gold); border-radius: 3px; color: #fff; font-family: var(--font-btn); font-size: 14px; letter-spacing: .12em; text-decoration: none; }
}

/* ---------- 外部サイト・別タブで開くリンクの印（四角から矢印が出るアイコン） ---------- */
/* 文字の色に合わせる。フッターの Googleマップは金 */
.is-external::after {
	content: '';
	display: inline-block;
	flex-shrink: 0;
	width: .85em;
	height: .85em;
	margin-left: .45em;
	vertical-align: -.05em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M13 9v5H2V3h5'/%3E%3Cpath d='M10 2h4v4M14 2 7 9'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M13 9v5H2V3h5'/%3E%3Cpath d='M10 2h4v4M14 2 7 9'/%3E%3C/svg%3E") no-repeat center / contain;
}
.site-footer__map.is-external::after { background-color: var(--gold); }
