@charset "utf-8";

/* =========================================================
   井口会計事務所 / Iguchi Accounting & Tax Office
   共通スタイル
   ========================================================= */

:root {
	--navy: #102a54;
	--navy-deep: #0b1e3d;
	--navy-light: #1d4480;
	--fr-blue: #0055a4;
	--fr-red: #c8102e;
	--ink: #1f2733;
	--ink-soft: #55606f;
	--line: #dfe4ec;
	--bg: #ffffff;
	--bg-tint: #f4f6fa;
	--bg-navy-tint: #eef2f8;
	--radius: 6px;
	--wrap: 1120px;
	--header-h: 72px;
	--font-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
	--font-display: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
	--font-en: "Jost", "Helvetica Neue", Arial, sans-serif;
	--font-script: "Parisienne", cursive;
}

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

html {
	scroll-behavior: smooth;
	/* 固定ヘッダー分だけアンカー位置をずらす */
	scroll-padding-top: var(--header-h);
}

body {
	margin: 0;
	font-family: var(--font-ja);
	font-size: 16px;
	line-height: 1.9;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	line-height: 1.5;
	font-weight: 700;
}

/* 日本語ページの見出し・屋号だけ、デザイン案の明朝にする */
html[lang="ja"] .hero__title,
html[lang="ja"] .section__title,
html[lang="ja"] .profile__name,
html[lang="ja"] .site-footer__name,
html[lang="ja"] .site-header__name-main[lang="ja"] {
	font-family: var(--font-display);
	font-weight: 600;
	font-feature-settings: "palt" 1;
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 24px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------
   ヘッダー
   --------------------------------------------------------- */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-h);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 2px 12px rgba(16, 42, 84, 0.08);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 24px;
}

.site-header__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.site-header__logo {
	width: auto;
	height: 34px;
}

.site-header__name {
	display: grid;
	gap: 3px;
	padding-left: 13px;
	border-left: 1px solid var(--line);
}

.site-header__name-main {
	font-weight: 700;
	line-height: 1.25;
	color: var(--navy);
	white-space: nowrap;
}

.site-header__name-main[lang="ja"] {
	font-size: 16px;
	letter-spacing: 0.1em;
}

.site-header__name-main[lang="en"] {
	font-family: var(--font-en);
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.site-header__name-sub {
	font-weight: 500;
	line-height: 1.25;
	color: var(--ink-soft);
	white-space: nowrap;
}

.site-header__name-sub[lang="en"] {
	font-family: var(--font-en);
	font-size: 9px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.site-header__name-sub[lang="ja"] {
	font-size: 10.5px;
	letter-spacing: 0.1em;
}

.global-nav {
	margin-left: auto;
}

.global-nav__list {
	display: flex;
	align-items: center;
	gap: 26px;
}

.global-nav__list a {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--navy);
	padding-block: 6px;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s, color 0.2s;
}

.global-nav__list a:hover,
.global-nav__list a:focus-visible {
	border-bottom-color: var(--fr-red);
}

.lang-switch {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	font-family: var(--font-en);
	font-size: 12px;
	letter-spacing: 0.08em;
}

.lang-switch a {
	color: var(--ink-soft);
	padding: 2px 4px;
	transition: color 0.2s;
}

.lang-switch a:hover {
	color: var(--navy);
}

.lang-switch a[aria-current="true"] {
	color: var(--navy);
	font-weight: 600;
	border-bottom: 1px solid var(--navy);
}

.lang-switch__sep {
	color: var(--line);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	display: block;
	width: 18px;
	height: 1.5px;
	background: var(--navy);
	transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle__bar {
	position: relative;
	margin-inline: auto;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bar::before {
	top: -6px;
}

.nav-toggle__bar::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------------------------------------------------------
   ヒーロー
   --------------------------------------------------------- */

.hero {
	position: relative;
	/* 背景レイヤーの負の z-index をヒーロー内に閉じ込める */
	isolation: isolate;
	margin-top: var(--header-h);
	/* 次のセクションが必ず画面内に見えるよう、画面の高さに対して上限を設ける */
	min-height: min(540px, 62vh);
	display: flex;
	align-items: center;
	background-color: var(--navy-deep);
	color: #fff;
	overflow: hidden;
}

/* 背景写真だけ最初は隠し、ゆっくりフェードインさせる。
   文字より下（負の z-index）に置き、モバイルの display:contents でも被らないようにする */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: url("../img/hero-bg.jpg") center right / cover no-repeat;
	opacity: 0;
	animation: hero-bg-fade 2.4s ease-out 0.15s forwards;
	pointer-events: none;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, rgba(11, 30, 61, 0.96) 0%, rgba(11, 30, 61, 0.86) 38%, rgba(11, 30, 61, 0.35) 68%, rgba(11, 30, 61, 0.2) 100%);
	pointer-events: none;
}

@keyframes hero-bg-fade {
	to {
		opacity: 1;
	}
}

.hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
	align-items: center;
	gap: 40px;
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding: 44px 24px;
}

.hero__title {
	font-size: clamp(30px, 4.4vw, 50px);
	line-height: 1.38;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

html[lang="ja"] .hero__title {
	font-weight: 700;
	font-size: clamp(26px, 8vw, 54px);
	line-height: 1.45;
	letter-spacing: 0.04em;
}

/* フランス語ヒーロー見出しはC案の太いゴシック。英語も同じ書体 */
html[lang="fr"] .hero__title,
html[lang="en"] .hero__title {
	font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.02em;
}

/* 英語PC：太いゴシックでもコピーが窮屈にならないよう文字だけ一回り小さくする */
@media (min-width: 901px) {
	html[lang="en"] .hero__title {
		font-size: clamp(28px, 3.5vw, 42px);
	}

	html[lang="en"] .hero__lead {
		font-size: clamp(14px, 1.15vw, 15.5px);
	}
}

/* 狭い画面でも「会計」の途中で折れないよう、日本語見出しの改行は残す */
html[lang="ja"] .hero__title br {
	display: inline;
}

.hero__title-jp {
	color: #3d8eef;
}

.hero__title em {
	font-style: normal;
	color: #ff6b7f;
}

.hero__lead {
	margin-top: 26px;
	font-size: clamp(14px, 1.3vw, 16.5px);
	line-height: 1.95;
	color: rgba(255, 255, 255, 0.92);
}

html[lang="fr"] .hero__lead,
html[lang="en"] .hero__lead {
	font-weight: 700;
}

.hero__lead-fr {
	margin-top: 10px;
	font-family: var(--font-en);
	font-size: clamp(12.5px, 1.1vw, 14px);
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.72);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
}

.hero__script {
	position: relative;
	justify-self: end;
	max-width: 330px;
	font-family: var(--font-script);
	font-size: clamp(20px, 2.2vw, 27px);
	line-height: 1.55;
	color: #fff;
	text-align: center;
	text-shadow: 0 2px 16px rgba(11, 30, 61, 0.55);
}

.hero__script::after {
	content: "";
	display: block;
	width: 92px;
	height: 3px;
	margin: 18px auto 0;
	background: linear-gradient(to right, var(--fr-blue) 0 33.33%, #fff 33.33% 66.66%, var(--fr-red) 66.66% 100%);
	border-radius: 2px;
}

/* ヒーローB・C（白背景＋人物入り）。Aでは人物を出さない。Cは背景だけ差し替え */

.hero__portrait {
	display: none;
}

[data-hero="b"] .hero,
[data-hero="c"] .hero {
	background-color: #fff;
	color: var(--ink);
}

[data-hero="b"] .hero::after,
[data-hero="c"] .hero::after {
	background-image: url("../img/hero-bg-light.jpg");
}

/* C案は新しい背景。人物や文字色はB案と同じ */
[data-hero="c"] .hero::after {
	background-image: url("../img/hero-bg-light_b.jpg");
}

[data-hero="b"] .hero::before {
	background: linear-gradient(100deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.93) 30%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 70%);
}

/* C案の背景は画像のまま出す。白グラデーションを重ねるとエッフェル塔まで霞む */
[data-hero="c"] .hero::before {
	background: none;
}

[data-hero="b"] .hero__title,
[data-hero="c"] .hero__title {
	color: var(--navy);
	text-shadow: none;
}

[data-hero="b"] .hero__title-jp,
[data-hero="c"] .hero__title-jp {
	color: #2f78e0;
}

[data-hero="b"] .hero__title em,
[data-hero="c"] .hero__title em {
	color: var(--fr-red);
}

[data-hero="b"] .hero__lead,
[data-hero="c"] .hero__lead {
	color: var(--ink);
}

[data-hero="b"] .hero__lead-fr,
[data-hero="c"] .hero__lead-fr {
	color: var(--ink-soft);
}

[data-hero="b"] .hero__script,
[data-hero="c"] .hero__script {
	align-self: start;
	max-width: 190px;
	font-size: clamp(17px, 1.7vw, 22px);
	color: var(--navy);
	text-align: right;
	text-shadow: none;
}

/* 白背景では三色ラインの白が消えるため、中央だけ淡いグレーにする */
[data-hero="b"] .hero__script::after,
[data-hero="c"] .hero__script::after {
	margin-right: 0;
	background: linear-gradient(to right, var(--fr-blue) 0 33.33%, #e4e9f1 33.33% 66.66%, var(--fr-red) 66.66% 100%);
}

[data-hero="b"] .btn--ghost,
[data-hero="c"] .btn--ghost {
	background: rgba(255, 255, 255, 0.72);
	border-color: var(--navy);
	color: var(--navy);
}

[data-hero="b"] .btn--ghost:hover,
[data-hero="c"] .btn--ghost:hover {
	background: var(--navy);
	color: #fff;
}

[data-hero="b"] .hero__inner,
[data-hero="c"] .hero__inner {
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr);
}

[data-hero="b"] .hero__portrait,
[data-hero="c"] .hero__portrait {
	display: block;
	position: absolute;
	right: 5%;
	/* 下端はヒーローに合わせ、上は少し空けて頭が枠で切れないようにする */
	top: 16px;
	bottom: 0;
	z-index: 2;
	width: clamp(340px, 40vw, 520px);
	pointer-events: none;
}

.hero__portrait picture,
.hero__portrait img {
	display: block;
	width: 100%;
	height: auto;
}

/* 横に広げると幅基準の写真がヒーローより高くなり、頭が上で切れる。枠いっぱいに収める */
[data-hero="b"] .hero__portrait picture,
[data-hero="c"] .hero__portrait picture,
[data-hero="b"] .hero__portrait img,
[data-hero="c"] .hero__portrait img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right bottom;
}

.hero__portrait-caption {
	position: absolute;
	right: 6%;
	bottom: 8%;
	max-width: 88%;
	margin: 0;
	color: #fff;
	text-align: right;
	line-height: 1.35;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.45);
}

.hero__portrait-role,
.hero__portrait-name {
	display: block;
}

.hero__portrait-role {
	font-size: clamp(12px, 1.15vw, 15px);
	font-weight: 500;
	letter-spacing: 0.06em;
}

.hero__portrait-name {
	margin-top: 2px;
	font-size: clamp(20px, 2.1vw, 30px);
	font-weight: 600;
	letter-spacing: 0.04em;
}

html[lang="ja"] .hero__portrait-name {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.16em;
}

/* ボタン */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 500;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn::after {
	content: "";
	width: 16px;
	height: 7px;
	flex-shrink: 0;
	background: currentColor;
	clip-path: polygon(0 45%, 72% 45%, 72% 0, 100% 50%, 72% 100%, 72% 55%, 0 55%);
	transition: transform 0.2s;
}

.btn:hover::after {
	transform: translateX(3px);
}

.btn--primary {
	background: var(--navy);
	color: #fff;
	border-color: var(--navy);
}

.btn--primary:hover {
	background: var(--navy-light);
	border-color: var(--navy-light);
}

.btn--ghost {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.2);
}

.btn--outline {
	background: #fff;
	color: var(--navy);
	border-color: var(--navy);
}

.btn--outline:hover {
	background: var(--navy);
	color: #fff;
}

/* ---------------------------------------------------------
   セクション共通
   --------------------------------------------------------- */

.section {
	padding-block: clamp(64px, 8vw, 104px);
}

.section--tint {
	background: var(--bg-tint);
}

.section--navy {
	background: var(--navy);
	color: #fff;
}

.section__head {
	text-align: center;
	margin-bottom: clamp(36px, 4.5vw, 56px);
}

.section__label {
	font-family: var(--font-en);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--fr-blue);
}

.section--navy .section__label {
	color: #8fb4e8;
}

/* 英語・フランス語ページでは小見出しに日本語が入るため字間を詰める */
.section__label[lang="ja"] {
	letter-spacing: 0.14em;
}

.section__title {
	margin-top: 10px;
	font-size: clamp(22px, 2.9vw, 32px);
	letter-spacing: 0.02em;
	color: var(--navy);
}

html[lang="ja"] .section__title {
	letter-spacing: 0.12em;
	line-height: 1.45;
}

.section--navy .section__title {
	color: #fff;
}

.section__title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin: 18px auto 0;
	background: linear-gradient(to right, var(--fr-blue) 0 50%, var(--fr-red) 50% 100%);
	border-radius: 2px;
	transform-origin: center;
}

.section__lead {
	max-width: 760px;
	margin: 20px auto 0;
	font-size: 15.5px;
	color: var(--ink-soft);
}

.section--navy .section__lead {
	color: rgba(255, 255, 255, 0.8);
}

/* ---------------------------------------------------------
   弊所の優位性
   --------------------------------------------------------- */

.strengths {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.strength-card {
	padding: 40px 28px 34px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-align: center;
}

.strength-card__icon {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
}

.strength-card__icon svg {
	width: 30px;
	height: 30px;
}

.strength-card__title {
	font-size: 18.5px;
	color: var(--navy);
}

.strength-card__text {
	margin-top: 14px;
	font-size: 14.5px;
	line-height: 1.95;
	color: var(--ink-soft);
}

.about-copy {
	margin: clamp(44px, 5vw, 64px) auto 0;
	padding: clamp(28px, 3.4vw, 40px);
	background: #fff;
	border: 1px solid var(--line);
	border-left: 3px solid var(--navy);
	border-radius: var(--radius);
}

.about-copy p {
	font-size: 15px;
	color: var(--ink-soft);
}

.about-copy > p:first-child {
	font-size: 17px;
	font-weight: 700;
}

.about-copy__list {
	margin-top: 22px;
	display: grid;
	gap: 12px;
}

.about-copy__list li {
	position: relative;
	padding-left: 26px;
	font-size: 15px;
}

.about-copy__list li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2.5px solid var(--fr-blue);
}

.about-copy__close {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px dashed var(--line);
	font-weight: 500;
	color: var(--navy) !important;
}

/* ---------------------------------------------------------
   サービス
   --------------------------------------------------------- */

.services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.service-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 32px 24px 28px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-align: center;
}

.service-card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--bg-navy-tint);
	color: var(--navy);
}

.service-card__icon svg {
	width: 25px;
	height: 25px;
}

.service-card__name {
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--navy);
}

.service-card__text {
	width: 100%;
	font-size: 14.5px;
	line-height: 1.95;
	color: var(--ink-soft);
}

/* ---------------------------------------------------------
   費用負担の比較
   --------------------------------------------------------- */

.cost-figure {
	margin: 0;
	padding: clamp(16px, 2vw, 28px);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.cost-figure img {
	width: 100%;
}

.cost-figure__caption {
	margin-top: 18px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
	color: var(--navy);
}

/* 図は縮小すると文字が読めないため、狭い画面では下のカード表示に切り替える */
.cost-table {
	display: none;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	overflow: clip;
}

@media (max-width: 767px) {
	.cost-figure {
		display: none;
	}

	.cost-table {
		display: grid;
	}
}

.cost-col {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: #fff;
}

.cost-col__head {
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	color: #fff;
	background: #7b8794;
}

.cost-col--ours .cost-col__head {
	background: var(--navy);
}

.cost-col__body {
	padding: 22px 24px 26px;
	display: grid;
	gap: 12px;
}

.cost-col__body li {
	position: relative;
	padding-left: 24px;
	font-size: 15px;
	line-height: 1.8;
}

.cost-col__body li::before {
	content: "";
	position: absolute;
	top: 0.66em;
	left: 2px;
	width: 12px;
	height: 12px;
	border-radius: 2px;
	background: #c3cad3;
}

.cost-col--ours .cost-col__body li::before {
	background: var(--navy);
	clip-path: polygon(14% 48%, 38% 72%, 88% 12%, 100% 26%, 40% 96%, 2% 60%);
	border-radius: 0;
}

/* ---------------------------------------------------------
   実際のサポート例
   --------------------------------------------------------- */

.issue-box {
	margin: 0 0 clamp(36px, 4.5vw, 52px);
	padding: clamp(24px, 3vw, 32px) clamp(26px, 3vw, 36px);
	background: #fff;
	border-left: 4px solid var(--fr-blue);
	border-radius: var(--radius);
}

.issue-box__title {
	font-size: 15.5px;
	letter-spacing: 0.04em;
	color: var(--fr-blue);
}

.issue-box__text {
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.95;
	color: var(--ink);
}

.cases {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	counter-reset: case;
}

.case-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	padding: 24px 26px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--radius);
	transition: background 0.25s, border-color 0.25s;
}

.case-item:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.3);
}

.case-item__no {
	font-family: var(--font-en);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	color: #7fa8e0;
}

.case-item__text {
	font-size: 14.8px;
	line-height: 1.9;
	color: rgba(255, 255, 255, 0.92);
}

/* ---------------------------------------------------------
   経歴
   --------------------------------------------------------- */

.profile {
	display: grid;
	grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.profile__figure {
	position: relative;
	margin: 0;
	aspect-ratio: 802 / 688;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-tint);
	box-shadow: 0 16px 40px rgba(16, 42, 84, 0.12);
}

.profile__figure img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.profile__name {
	font-size: clamp(24px, 3vw, 31px);
	letter-spacing: 0.06em;
	color: var(--navy);
}

html[lang="ja"] .profile__name {
	letter-spacing: 0.18em;
}

.profile__kana {
	margin-top: 8px;
	font-size: 13.5px;
	letter-spacing: 0.1em;
	color: var(--ink-soft);
}

.profile__role {
	display: inline-block;
	margin-top: 16px;
	padding: 5px 14px;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--navy);
	background: var(--bg-navy-tint);
	border-radius: 999px;
}

.profile__body {
	margin-top: 26px;
	display: grid;
	gap: 16px;
	font-size: 15px;
	line-height: 1.95;
	color: var(--ink-soft);
}

.timeline {
	margin-top: 30px;
	padding-left: 2px;
	display: grid;
	gap: 0;
}

.timeline li {
	position: relative;
	padding: 0 0 24px 30px;
	border-left: 1px solid var(--line);
	font-size: 14.8px;
	line-height: 1.9;
	color: var(--ink-soft);
}

.timeline li:last-child {
	padding-bottom: 0;
	border-left-color: transparent;
}

.timeline li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: -6px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #fff;
	border: 2.5px solid var(--navy);
}

/* ---------------------------------------------------------
   お問い合わせ
   --------------------------------------------------------- */

.contact {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 60px);
	align-items: start;
}

.contact__intro p {
	font-size: 15px;
	line-height: 1.95;
	color: rgba(255, 255, 255, 0.84);
}

.contact__script {
	margin-top: 32px;
	font-family: var(--font-script);
	font-size: 23px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.6);
}

/* フォーム */

.form {
	padding: clamp(24px, 3.2vw, 36px);
	background: #fff;
	border-radius: var(--radius);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.form__field {
	margin-bottom: 18px;
}

.form__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 7px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--navy);
}

.form__required {
	padding: 2px 7px;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: #fff;
	background: var(--fr-red);
	border-radius: 3px;
}

.form__input {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	color: var(--ink);
	background: #fff;
	border: 1px solid #c9d1de;
	border-radius: var(--radius);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.form__input:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: 0 0 0 3px rgba(16, 42, 84, 0.12);
}

.form__input::placeholder {
	color: #a8b2c1;
}

.form__textarea {
	min-height: 140px;
	resize: vertical;
}

.form__select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
	background-position: calc(100% - 19px) center, calc(100% - 13px) center;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 40px;
}

.form__honey {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

.form__submit {
	width: 100%;
	justify-content: center;
	margin-top: 6px;
}

.form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.form__status {
	margin-bottom: 14px;
	padding: 12px 14px;
	font-size: 14px;
	border-radius: var(--radius);
	background: var(--bg-navy-tint);
	color: var(--navy);
}

.form__status.is-error {
	background: #fdeaed;
	color: #9c1024;
}

.form__success {
	text-align: center;
	padding: 20px 10px;
}

.form__success-title {
	font-size: 19px;
	color: var(--navy);
}

.form__success-text {
	margin-top: 14px;
	font-size: 14.5px;
	line-height: 1.95;
	color: var(--ink-soft);
}

/* ---------------------------------------------------------
   フッター
   --------------------------------------------------------- */

.site-footer {
	padding-block: 40px;
	background: var(--navy-deep);
	color: rgba(255, 255, 255, 0.72);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 32px;
}

.site-footer__brand {
	display: grid;
	gap: 6px;
}

.site-footer__name {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #fff;
}

html[lang="ja"] .site-footer__name {
	font-size: 17px;
	letter-spacing: 0.14em;
}

.site-footer__en {
	font-family: var(--font-en);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-left: auto;
	font-size: 13.5px;
}

.site-footer__nav a:hover {
	color: #fff;
}

.site-footer__copy {
	width: 100%;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-family: var(--font-en);
	font-size: 11.5px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------------------------------
   ページトップ
   --------------------------------------------------------- */

.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: none;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top:hover {
	background: var(--navy-light);
}

.to-top svg {
	width: 16px;
	height: 16px;
}

/* ---------------------------------------------------------
   ヒーロー切替（確認用。決定後に削除する）
   --------------------------------------------------------- */

.hero-switch {
	display: none;
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 95;
	align-items: center;
	gap: 4px;
	padding: 5px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 6px 20px rgba(11, 30, 61, 0.22);
	backdrop-filter: blur(6px);
}

.hero-switch__btn {
	padding: 5px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-family: inherit;
	font-size: 11px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: var(--navy);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hero-switch__btn:hover {
	border-color: var(--fr-blue);
	color: var(--fr-blue);
}

.hero-switch__btn[aria-pressed="true"] {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff;
}

/* ---------------------------------------------------------
   レスポンシブ
   --------------------------------------------------------- */

/* メニューの項目が折り返さないよう、中間幅では事務所名の副題を省く */
@media (max-width: 1200px) {
	.site-header__name-sub {
		display: none;
	}

	.site-header__name-main[lang="en"] {
		font-size: 13px;
	}

	.global-nav__list {
		gap: 20px;
	}
}

/* 日本語のメニュー6項目は横並びに約600px必要なため、この幅から開閉式に切り替える */
@media (max-width: 1080px) {
	.services {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nav-toggle {
		display: block;
		order: 3;
	}

	.site-header__inner {
		gap: 14px;
	}

	.global-nav {
		position: fixed;
		inset: var(--header-h) 0 auto;
		margin-left: 0;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 30px rgba(16, 42, 84, 0.12);
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
	}

	.global-nav.is-open {
		transform: none;
		opacity: 1;
		visibility: visible;
	}

	.global-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 24px 20px;
	}

	.global-nav__list a {
		display: block;
		padding: 15px 4px;
		font-size: 15px;
		border-bottom: 1px solid var(--line);
	}

	.global-nav__list a:hover,
	.global-nav__list a:focus-visible {
		border-bottom-color: var(--line);
		color: var(--fr-blue);
	}

	.lang-switch {
		order: 2;
		margin-left: auto;
	}

	/* タブレット幅では写真を文章の上に置き、左右中央に揃える */
	.profile {
		grid-template-columns: minmax(0, 1fr);
	}

	.profile__figure {
		width: 100%;
		max-width: 420px;
		justify-self: center;
	}

	/* タブレット以下では、写真の下端20pxだけを背景へ溶かす */
	[data-hero="b"] .hero__portrait img,
	[data-hero="c"] .hero__portrait img {
		-webkit-mask-image: linear-gradient(to top, transparent, #000 20px);
		mask-image: linear-gradient(to top, transparent, #000 20px);
	}
}

@media (max-width: 900px) {
	:root {
		--header-h: 64px;
	}

	.hero {
		min-height: 0;
	}

	.hero::after {
		background-image: url("../img/hero-bg-mobile.jpg");
		background-position: center bottom;
	}

	.hero::before {
		background: linear-gradient(180deg, rgba(11, 30, 61, 0.94) 0%, rgba(11, 30, 61, 0.8) 55%, rgba(11, 30, 61, 0.5) 100%);
	}

	/* 狭い画面では人物を横に置く余白がないため、縦に積んで文字の下に回す */
	.hero {
		display: block;
	}

	[data-hero="b"] .hero,
	[data-hero="c"] .hero {
		display: flex;
		flex-direction: column;
		padding-inline: 24px;
		padding-block: 54px 40px;
	}

	[data-hero="b"] .hero::after,
	[data-hero="c"] .hero::after {
		background-image: url("../img/hero-bg-light-mobile.jpg");
		background-position: center bottom;
	}

	[data-hero="c"] .hero::after {
		background-image: url("../img/hero-bg-c-mobile.jpg");
		background-position: center bottom;
	}

	[data-hero="b"] .hero::before {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0.4) 100%);
	}

	[data-hero="c"] .hero::before {
		background: none;
	}

	/* 見出し → 画像 → ボタンの順に並べ替える */
	[data-hero="b"] .hero__inner,
	[data-hero="c"] .hero__inner,
	[data-hero="b"] .hero__main,
	[data-hero="c"] .hero__main {
		display: contents;
	}

	[data-hero="b"] .hero__copy,
	[data-hero="c"] .hero__copy {
		order: 1;
		/* ヒーロー全体の中央寄せを引き継ぐと、幅の狭い見出しだけ中央に寄る */
		align-self: flex-start;
		width: 100%;
		text-align: left;
	}

	/* display:contents で見出し側の重なり順が消えるため、背景のフェードが文字の上に乗らないよう戻す */
	[data-hero="b"] .hero__copy,
	[data-hero="c"] .hero__copy,
	[data-hero="b"] .hero__script,
	[data-hero="c"] .hero__script {
		position: relative;
		z-index: 2;
	}

	[data-hero="b"] .hero__script,
	[data-hero="c"] .hero__script {
		order: 2;
		align-self: flex-start;
		width: 100%;
		margin-top: 24px;
		max-width: none;
		text-align: left;
	}

	[data-hero="b"] .hero__script::after,
	[data-hero="c"] .hero__script::after {
		margin-left: 0;
		margin-right: auto;
	}

	[data-hero="b"] .hero__portrait,
	[data-hero="c"] .hero__portrait {
		position: relative;
		top: auto;
		bottom: auto;
		order: 3;
		width: min(340px, 84%);
		height: auto;
		margin: 18px 0 0 auto;
	}

	[data-hero="b"] .hero__portrait picture,
	[data-hero="c"] .hero__portrait picture,
	[data-hero="b"] .hero__portrait img,
	[data-hero="c"] .hero__portrait img {
		width: 100%;
		height: auto;
		object-fit: fill;
		object-position: center;
	}

	[data-hero="b"] .hero__actions,
	[data-hero="c"] .hero__actions {
		order: 4;
		position: relative;
		z-index: 2;
		margin-top: 22px;
	}

	.hero__inner,
	[data-hero="b"] .hero__inner,
	[data-hero="c"] .hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
		padding-block: 54px 60px;
	}

	[data-hero="b"] .hero__inner,
	[data-hero="c"] .hero__inner {
		padding: 0;
	}

	.hero__script {
		justify-self: start;
		text-align: left;
		max-width: none;
	}

	.hero__script::after {
		margin-inline: 0;
	}

	.strengths,
	.cases,
	.cost-table,
	.services {
		grid-template-columns: minmax(0, 1fr);
	}

	.profile,
	.contact {
		grid-template-columns: minmax(0, 1fr);
	}

	.profile__figure {
		width: 100%;
		max-width: 340px;
		justify-self: center;
	}

	.site-footer__nav {
		margin-left: 0;
		width: 100%;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 15.5px;
	}

	.wrap,
	.site-header__inner,
	.hero__inner {
		padding-inline: 18px;
	}

	[data-hero="b"] .hero,
	[data-hero="c"] .hero {
		padding-inline: 18px;
	}

	.service-card {
		padding: 24px 18px 22px;
	}

	.service-card__name {
		font-size: 16px;
	}

	.service-card__text {
		font-size: 14px;
	}

	.hero__actions .btn {
		width: 100%;
		justify-content: center;
	}

	/* 狭い画面では手動の改行位置が崩れるため、自然に折り返す */
	.hero__title br,
	.hero__lead br {
		display: none;
	}

	.case-item {
		padding: 20px;
		gap: 14px;
	}

	.site-header__logo {
		height: 26px;
	}

	.site-header__name {
		padding-left: 10px;
	}

	html[lang="ja"] .site-header__name-main[lang="ja"] {
		font-size: 13px;
		letter-spacing: 0.02em;
	}

	.site-header__name-main[lang="en"] {
		font-size: 12.5px;
	}

	.cost-figure {
		padding: 10px;
	}
}

/* ---------------------------------------------------------
   登場の動き
   読み込み時と、画面に入ったとき一度だけ。ホバーでは動かさない。
   --------------------------------------------------------- */

@keyframes enter-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.hero__title,
.hero__lead,
.hero__actions,
.hero__portrait,
.hero__script {
	animation: enter-up 0.7s ease-out both;
}

.hero__title {
	animation-delay: 0.12s;
}

.hero__lead {
	animation-delay: 0.38s;
}

.hero__actions {
	animation-delay: 0.62s;
}

.hero__portrait {
	animation-delay: 0.84s;
}

.hero__script {
	animation-delay: 1.08s;
}

.js .section__head,
.js .strength-card,
.js .about-copy,
.js .service-card,
.js .issue-box,
.js .case-item,
.js .profile__figure,
.js .profile__name,
.js .profile__kana,
.js .profile__role,
.js .timeline li,
.js .contact__intro,
.js #contact-form,
.js .cost-figure,
.js .cost-col {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.65s ease-out, transform 0.65s ease-out;
	transition-delay: var(--reveal-delay, 0ms);
}

.js .case-item {
	transition: opacity 0.65s ease-out, transform 0.65s ease-out, background 0.25s, border-color 0.25s;
	transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0s, 0s;
}

.js .cost-figure {
	transform: none;
}

.js .cost-col {
	transform: translateX(-32px);
}

.js .cost-col--ours {
	transform: translateX(32px);
}

.js .section__head.is-in,
.js .strength-card.is-in,
.js .about-copy.is-in,
.js .service-card.is-in,
.js .issue-box.is-in,
.js .case-item.is-in,
.js .profile__figure.is-in,
.js .profile__name.is-in,
.js .profile__kana.is-in,
.js .profile__role.is-in,
.js .timeline li.is-in,
.js .contact__intro.is-in,
.js #contact-form.is-in,
.js .cost-figure.is-in,
.js .cost-col.is-in {
	opacity: 1;
	transform: none;
}

.js .section__title::after {
	transform: scaleX(0);
	transition: transform 0.55s ease-out;
	transition-delay: calc(var(--reveal-delay, 0ms) + 0.18s);
}

.js .section__head.is-in .section__title::after {
	transform: scaleX(1);
}

.js .strength-card__icon :is(path, circle:not(.is-fill)) {
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	transition: stroke-dashoffset 0.9s ease-out;
	transition-delay: var(--reveal-delay, 0ms);
}

.js .strength-card.is-in .strength-card__icon :is(path, circle:not(.is-fill)) {
	stroke-dashoffset: 0;
}

.js .strength-card__icon circle.is-fill {
	opacity: 0;
	transition: opacity 0.3s ease-out;
	transition-delay: calc(var(--reveal-delay, 0ms) + 0.45s);
}

.js .strength-card.is-in .strength-card__icon circle.is-fill {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.hero::after,
	.hero__title,
	.hero__lead,
	.hero__actions,
	.hero__portrait,
	.hero__script {
		opacity: 1;
		animation: none;
		transform: none;
	}

	.js .section__head,
	.js .strength-card,
	.js .about-copy,
	.js .service-card,
	.js .issue-box,
	.js .case-item,
	.js .profile__figure,
	.js .profile__name,
	.js .profile__kana,
	.js .profile__role,
	.js .timeline li,
	.js .contact__intro,
	.js #contact-form,
	.js .cost-figure,
	.js .cost-col {
		opacity: 1;
		transform: none;
	}

	.js .section__title::after {
		transform: none;
	}

	.js .strength-card__icon :is(path, circle:not(.is-fill)) {
		stroke-dashoffset: 0;
	}

	.js .strength-card__icon circle.is-fill {
		opacity: 1;
	}
}
