/* =========================================================
   株式会社麻布ビルディング — リニューアル スタイルシート
   Brand color: ロゴのティールグリーンを基調
   ========================================================= */

:root {
    --brand: #187366;          /* logo teal-green */
    --brand-dark: #0f4d44;
    --brand-deep: #0a332e;
    --brand-light: #2f9d8c;    /* 装飾用（文字には使わない） */
    --navy: #0c1b2e;           /* ディープブルー（クールな主役色） */
    --navy-2: #112a44;
    --accent: #c9a24b;         /* 上品なゴールド（暗い背景・装飾用） */
    --accent-deep: #8c6a1f;    /* 白文字を乗せられる濃いゴールド */
    --ink: #1c2422;
    --ink-soft: #4d5a56;
    --line: #e4e9e7;
    --bg: #ffffff;
    --bg-soft: #f5f8f7;
    --bg-mist: #eef3f2;
    --radius: 10px;
    --shadow-sm: 0 4px 20px rgba(15, 77, 68, .06);
    --shadow-md: 0 18px 50px rgba(15, 77, 68, .12);
    --ease: cubic-bezier(.21, .8, .35, 1);
    --maxw: 1180px;
    --header-h: 76px;
    --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
    --font-min: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    --font-en: "Cormorant Garamond", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-jp);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.85;
    letter-spacing: .02em;
    line-break: strict;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: min(var(--maxw), 90%); margin-inline: auto; }
.pc-only { display: inline; }
/* 日本語の文節単位で折り返すためのかたまり */
.nw { display: inline-block; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ===== Focus ===== */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(12, 27, 46, .55);
    border-radius: 4px;
}
.skip-link {
    position: fixed; left: 12px; top: 12px; z-index: 2000;
    background: var(--navy); color: #fff; padding: .7em 1.2em; border-radius: 8px;
    transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ===== Header ===== */
.header {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    transition: box-shadow .4s var(--ease), padding .4s var(--ease);
    padding: 18px 0;
}
/* 背景のすりガラスは疑似要素に持たせる
   （header自体に backdrop-filter を付けると、中の固定配置ドロワーがヘッダーの高さに潰れるため） */
.header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(255,255,255,.86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
    opacity: 0; transition: opacity .4s var(--ease);
}
.header.is-scrolled { padding: 12px 0; }
.header.is-scrolled::before { opacity: 1; }
.header__inner {
    width: min(var(--maxw), 92%); margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between;
}
/* ロゴは透過PNG。ヒーロー上では白抜き、スクロール後はブランドカラーで表示 */
.header__logo { display: inline-flex; align-items: center; line-height: 0; }
.header__logo img {
    height: 40px; width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(0,0,0,.25));
    transition: height .4s var(--ease), filter .4s var(--ease);
}
.header.is-scrolled .header__logo img { height: 34px; filter: none; }

/* Nav */
.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav__list { display: flex; gap: 2rem; }
.nav__link {
    position: relative; display: flex; flex-direction: column; align-items: center;
    color: #fff; font-size: .95rem; font-weight: 500; line-height: 1.2;
    transition: color .3s;
}
.nav__en { font-family: var(--font-en); font-size: 1.05rem; letter-spacing: .06em; }
.nav__ja { font-size: .66rem; opacity: .85; letter-spacing: .12em; margin-top: 3px; }
.nav__link::after {
    content: ""; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--accent); transition: width .35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.header.is-scrolled .nav__link { color: var(--ink); }

.nav__cta {
    background: var(--accent-deep); color: #fff; font-weight: 700; font-size: .9rem;
    padding: .7em 1.5em; border-radius: 999px; letter-spacing: .08em;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
    box-shadow: 0 8px 22px rgba(140,106,31,.3);
}
.nav__cta:hover { background: #7a5c19; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(140,106,31,.4); }

/* Burger */
.burger {
    display: none; position: relative; z-index: 1100;
    width: 44px; height: 44px; border: none; background: none;
    cursor: pointer; padding: 10px;
}
.burger span {
    display: block; height: 2px; background: #fff; border-radius: 2px;
    transition: transform .4s var(--ease), opacity .3s, background .4s;
    margin: 5px 0;
}
.header.is-scrolled .burger span { background: var(--ink); }
body.nav-open .burger span { background: #fff; }
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    font-family: var(--font-jp); font-weight: 700; font-size: .98rem; letter-spacing: .06em;
    padding: .95em 2.1em; border-radius: 999px; cursor: pointer; white-space: nowrap;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s, border-color .35s;
    border: 1.5px solid transparent;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 12px 30px rgba(24,115,102,.32); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(24,115,102,.4); }
.btn--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--brand-dark); transform: translateY(-2px); }
.btn--lg { font-size: 1.05rem; padding: 1.05em 2.6em; }

/* contactセクションは白背景なのでghostを調整 */
.contact .btn--ghost { color: var(--brand-dark); border-color: var(--brand); }
.contact .btn--ghost:hover { background: var(--brand); color: #fff; }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100svh; display: grid; align-items: center;
    overflow: hidden; color: #fff; background: var(--navy);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
    transform: scale(1.08); animation: kenburns 18s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes kenburns { to { transform: scale(1); } }
.hero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(105deg, rgba(12,27,46,.92) 0%, rgba(12,27,46,.66) 42%, rgba(12,27,46,.18) 72%, rgba(24,115,102,.12) 100%),
        linear-gradient(180deg, transparent 55%, rgba(12,27,46,.85) 100%);
}
/* シャープな縦ラインのアクセント（建築的） */
.hero__overlay::after {
    content: ""; position: absolute; left: 8%; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, transparent, rgba(201,162,75,.5), transparent);
    opacity: .8;
}
.hero__content {
    position: relative; z-index: 2;
    width: min(var(--maxw), 90%); margin-inline: auto; padding: calc(var(--header-h) + 4vh) 0 8vh;
}
.hero__eyebrow {
    font-family: var(--font-en); font-size: clamp(.9rem, 2vw, 1.25rem);
    letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
    margin: 0 0 1.2rem;
}
.hero__title {
    font-family: var(--font-min); font-weight: 600;
    font-size: clamp(1.8rem, 5.5vw, 4rem); line-height: 1.45; margin: 0;
    text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero__line { display: block; }
.hero__lead {
    margin: 1.8rem 0 2.6rem; font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 2; max-width: 40em; color: rgba(255,255,255,.92);
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ヒーローは読み込み直後に表示（スクロール判定を待たない） */
.hero__eyebrow, .hero__line, .hero__lead, .hero__actions {
    animation: heroIn .9s var(--ease) var(--d, 0s) both;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } }

.hero__scroll {
    position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .7rem;
    color: rgba(255,255,255,.85); font-family: var(--font-en); letter-spacing: .25em; font-size: .8rem;
}
.hero__scroll i { display: block; width: 1px; height: 46px; background: rgba(255,255,255,.5); position: relative; overflow: hidden; }
.hero__scroll i::after {
    content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
    background: var(--accent); animation: scrollLine 1.8s var(--ease) infinite;
}
@keyframes scrollLine { 0% { top: -50%; } 100% { top: 100%; } }

/* ===== Section base ===== */
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.4rem, 5vw, 4rem); }
.section__en {
    font-family: var(--font-en); font-size: 1.2rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--brand); margin: 0 0 .6rem;
}
.section__title {
    font-family: var(--font-min); font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.8rem);
    margin: 0; line-height: 1.3; position: relative; display: inline-block; padding-bottom: .6rem;
}
.section__title::after {
    content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 48px; height: 3px; background: var(--accent); border-radius: 3px;
}
.section__desc { margin: 1.6rem 0 0; color: var(--ink-soft); font-size: 1.02rem; }

/* ===== Business cards ===== */
.business { padding-bottom: 0; }
.cards {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem;
}
.card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2.4rem 1.8rem; box-shadow: var(--shadow-sm);
    transition: box-shadow .45s var(--ease), border-color .45s;
    position: relative; overflow: hidden;
}
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
    width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
    background: var(--bg-mist); color: var(--brand); margin-bottom: 1.4rem;
    transition: background .45s var(--ease), color .45s var(--ease);
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--brand); color: #fff; }
.card__title { font-family: var(--font-min); font-weight: 600; font-size: 1.15rem; margin: 0 0 1rem; line-height: 1.5; }
.card__list { display: flex; flex-direction: column; gap: .55rem; }
.card__list li {
    position: relative; padding-left: 1.2em; color: var(--ink-soft); font-size: .95rem; line-height: 1.6;
}
.card__list li::before {
    content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px;
    border-radius: 50%; background: var(--brand-light);
}

/* ===== Quote band ===== */
.quote {
    position: relative; margin-top: clamp(4rem, 8vw, 7rem); overflow: hidden;
    color: #fff; text-align: center; background: var(--navy);
}
.quote__bg { position: absolute; inset: 0; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.quote__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(12,27,46,.92), rgba(17,42,68,.82) 55%, rgba(24,115,102,.72)); }
.quote__inner { position: relative; z-index: 2; padding: clamp(4rem, 9vw, 7rem) 0; }
.quote__text { font-family: var(--font-min); font-size: clamp(1.5rem, 4vw, 2.8rem); font-weight: 600; margin: 0; line-height: 1.6; }
.quote__text em { font-style: normal; color: var(--accent); padding: 0 .1em; }
.quote__sub { margin: 1.2rem 0 0; font-size: 1.05rem; letter-spacing: .1em; opacity: .92; }

/* ===== Reasons ===== */
.reasons { background: var(--bg-soft); }
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
    margin-bottom: clamp(2.4rem, 5vw, 4.5rem);
}
.stat {
    text-align: center; padding: 2.2rem 1rem; background: #fff;
    border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.stat__num {
    font-family: var(--font-en); font-weight: 600; color: var(--brand);
    font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat__num small { font-family: var(--font-jp); font-size: .9rem; font-weight: 700; margin-left: .25em; letter-spacing: .05em; }
.stat__num--text { font-family: var(--font-min); font-size: clamp(1.9rem, 3.6vw, 2.5rem); letter-spacing: .08em; line-height: 1.15; }
.stat__label { margin-top: .9rem; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.feature {
    background: #fff; border-radius: var(--radius); padding: 2.6rem 2rem;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: box-shadow .45s var(--ease);
}
.feature:hover { box-shadow: var(--shadow-md); }
.feature__no {
    font-family: var(--font-en); font-size: 2.6rem; font-weight: 600;
    color: var(--brand-light); opacity: .5; display: block; line-height: 1; margin-bottom: .6rem;
}
.feature__title { font-family: var(--font-min); font-size: 1.25rem; margin: 0 0 .9rem; }
.feature__text { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ===== Company ===== */
.company__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; }
.profile { margin: 0; border-top: 1px solid var(--line); }
.profile__row { display: grid; grid-template-columns: 130px 1fr; gap: 1.4rem; padding: 1.1rem .4rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.profile dt { font-weight: 700; color: var(--brand-dark); font-size: .95rem; letter-spacing: .04em; }
.profile dd { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.profile dd a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(24,115,102,.35); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.profile dd a:hover { text-decoration-color: var(--brand); }
.profile__en { display: block; font-family: var(--font-en); font-size: .95rem; color: var(--ink-soft); letter-spacing: .04em; }

.company__map { position: sticky; top: calc(var(--header-h) + 30px); }
.map {
    aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-md); border: 1px solid var(--line); background: var(--bg-mist);
}
.map iframe { width: 100%; height: 100%; display: block; }
.map__link {
    display: inline-flex; align-items: center; gap: .4em; margin-top: 1.1rem;
    color: var(--brand); font-weight: 700; font-size: .95rem;
    transition: gap .3s var(--ease), color .3s;
}
.map__link svg { width: 1.05em; height: 1.05em; }
.map__link:hover { gap: .8em; color: var(--brand-dark); }

/* ===== Contact ===== */
.contact { background: linear-gradient(160deg, var(--bg-mist), var(--bg-soft)); }
.contact__box {
    background: #fff; border-radius: 16px; padding: clamp(3rem, 7vw, 5rem) clamp(1.4rem, 4vw, 2rem);
    text-align: center; box-shadow: var(--shadow-md); border: 1px solid var(--line);
    max-width: 880px; margin-inline: auto; position: relative; overflow: hidden;
}
.contact__box::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}
.contact__en { font-family: var(--font-en); font-size: 1.1rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brand); margin: 0 0 .6rem; }
.contact__title { font-family: var(--font-min); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.5rem); margin: 0; line-height: 1.5; }
.contact__lead { margin: 1.4rem 0 2.4rem; color: var(--ink-soft); font-size: 1.05rem; }
.contact__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact__info {
    display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 2rem;
    margin: 2rem 0 0; font-size: .95rem; color: var(--ink-soft);
}
.contact__info div { display: flex; gap: .7em; }
.contact__info dt { font-family: var(--font-en); font-weight: 600; letter-spacing: .08em; color: var(--brand-dark); }
.contact__info dd { margin: 0; }
.contact__info a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }

/* ===== Footer ===== */
.footer { background: linear-gradient(160deg, var(--navy) 0%, var(--brand-deep) 100%); color: rgba(255,255,255,.85); padding: clamp(3rem,6vw,4.5rem) 0 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.6rem; }
.footer__logo { height: 40px; width: auto; margin-bottom: 1.2rem; filter: brightness(0) invert(1); opacity: .92; }
.footer__addr { margin: 0; font-size: .9rem; opacity: .85; }
.footer__nav { display: flex; gap: .6rem 1.8rem; flex-wrap: wrap; }
.footer__nav a { font-size: .92rem; position: relative; transition: color .3s; }
.footer__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.6rem 1rem 1.6rem; text-align: center; }
.footer__bottom p { margin: 0; font-size: .82rem; font-family: var(--font-en); letter-spacing: .06em; opacity: .75; }

/* ===== To top ===== */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 900;
    width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff;
    display: grid; place-items: center; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s, background .3s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-dark); }

/* ===== Reveal animation（JavaScriptが動くときだけ隠す） ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ===== Mobile nav drawer ===== */
@media (max-width: 880px) {
    :root { --header-h: 64px; }
    .burger { display: block; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px); height: 100dvh;
        background: linear-gradient(160deg, var(--navy), var(--brand-deep)); flex-direction: column; justify-content: center;
        gap: 2.4rem; padding: 5rem 2rem 2rem; overflow-y: auto; overscroll-behavior: contain;
        transform: translateX(100%); visibility: hidden;
        transition: transform .5s var(--ease), visibility 0s .5s; box-shadow: -20px 0 60px rgba(0,0,0,.3);
    }
    body.nav-open .nav { transform: translateX(0); visibility: visible; transition: transform .5s var(--ease); }
    .nav__list { flex-direction: column; gap: 1.6rem; text-align: center; }
    .nav__link { color: #fff; flex-direction: row; gap: .7em; align-items: baseline; justify-content: center; padding: .2em 0; }
    .nav__en { font-size: 1.45rem; }
    .nav__ja { font-size: .82rem; margin-top: 0; }
    .header.is-scrolled .nav__link { color: #fff; }
    .nav__cta { font-size: 1rem; padding: .85em 2.2em; }
    .header__logo img { height: 32px; }
    .header.is-scrolled .header__logo img { height: 30px; }
    body.nav-open { overflow: hidden; }
    body.nav-open::after {
        content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999;
        animation: fade .4s ease;
    }
    @keyframes fade { from { opacity: 0; } }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .company__grid { grid-template-columns: 1fr; gap: 2.4rem; }
    .company__map { position: static; }
    .map { aspect-ratio: 16 / 11; }
    .pc-only { display: none; }
}
@media (max-width: 600px) {
    .section { padding: 3.6rem 0; }
    .business { padding-bottom: 0; }
    .section__desc { font-size: .98rem; text-align: left; }
    .hero { align-items: end; }
    .hero__content { padding-bottom: 3.2rem; }
    .hero__title { font-size: 1.85rem; line-height: 1.55; }
    .hero__eyebrow { letter-spacing: .2em; font-size: .85rem; }
    .hero__lead { font-size: .98rem; line-height: 1.9; margin: 1.3rem 0 2rem; }
    .hero__lead br { display: none; }
    .hero__scroll { display: none; }
    .hero__actions, .contact__actions { flex-direction: column; }
    .btn { width: 100%; }
    .btn--lg { padding: 1em 1.5em; font-size: 1rem; }
    .cards { grid-template-columns: 1fr; gap: 1rem; }
    .card { padding: 1.6rem 1.4rem; display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; align-items: center; }
    .card__icon { width: 48px; height: 48px; border-radius: 12px; margin: 0; }
    .card__icon svg { width: 24px; height: 24px; }
    .card__title { margin: 0; }
    .card__list { grid-column: 1 / -1; margin-top: 1rem; flex-direction: row; flex-wrap: wrap; gap: .4rem 1.2rem; }
    .stats { gap: .8rem; }
    .stat { padding: 1.6rem .6rem; }
    .stat__label { font-size: .82rem; }
    .feature { padding: 1.8rem 1.5rem; }
    .feature__no { font-size: 2.1rem; }
    .profile__row { grid-template-columns: 5.2em 1fr; gap: .8rem; padding: 1rem .2rem; }
    .profile dt { font-size: .88rem; }
    .profile dd { font-size: .93rem; }
    .contact__lead { font-size: .98rem; }
    .contact__lead br { display: none; }
    .contact__info { flex-direction: column; align-items: center; }
    .footer__inner { flex-direction: column; }
    .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}


/* =========================================================
   お問い合わせフォーム（contact.php）
   ========================================================= */
.page-head {
    position: relative; color: #fff; text-align: center;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--brand-deep) 100%);
    padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(3rem, 6vw, 4.5rem);
    overflow: hidden;
}
.page-head::after {
    content: ""; position: absolute; left: 8%; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, transparent, rgba(201,162,75,.5), transparent);
}
.page-head__en { font-family: var(--font-en); font-size: 1.15rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 .4rem; }
.page-head__title { font-family: var(--font-min); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 0; line-height: 1.3; }
.page-head__lead { margin: 1.4rem auto 0; max-width: 46em; color: rgba(255,255,255,.88); font-size: 1rem; line-height: 2; }
.page-head__lead a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(201,162,75,.8); }

.cf-section { background: var(--bg-soft); padding-top: clamp(2.6rem, 5vw, 4rem); }
.cf-box {
    max-width: 860px; margin-inline: auto; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-md); padding: clamp(1.8rem, 5vw, 3.4rem) clamp(1.2rem, 5vw, 3.6rem);
    position: relative; overflow: hidden;
}
.cf-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); }

.cf-steps { display: flex; justify-content: center; gap: 0; margin: 0 auto clamp(1.8rem, 4vw, 2.6rem); padding: 0; list-style: none; max-width: 460px; counter-reset: none; }
.cf-steps li {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: .45rem;
    font-size: .88rem; color: var(--ink-soft); position: relative; letter-spacing: .08em;
}
.cf-steps li + li::before {
    content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 1px; background: var(--line); z-index: 0;
}
.cf-steps__no {
    position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line); font-family: var(--font-en); font-weight: 600; font-size: 1.05rem; color: var(--ink-soft);
}
.cf-steps li.is-current { color: var(--brand-dark); font-weight: 700; }
.cf-steps li.is-current .cf-steps__no { background: var(--brand); border-color: var(--brand); color: #fff; }

.cf-alert {
    background: #fdf3f2; border: 1px solid #e8b9b3; color: #a5281b; border-radius: 8px;
    padding: .9rem 1.1rem; margin-bottom: 1.6rem; font-size: .95rem; line-height: 1.7;
}
.cf-note { text-align: center; color: var(--ink-soft); margin: 0 0 1.4rem; }

.cf-form { margin: 0; }
.cf-confirm { margin: 0; }
.cf-row {
    display: grid; grid-template-columns: 13.5em 1fr; gap: 1.4rem; align-items: start;
    padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.cf-row:first-of-type { border-top: 1px solid var(--line); }
.cf-label { font-weight: 700; color: var(--ink); font-size: .95rem; padding-top: .7rem; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .5em; }
.cf-field { margin: 0; min-width: 0; }
.cf-req, .cf-opt { font-size: .72rem; line-height: 1; padding: .35em .6em; border-radius: 4px; font-weight: 700; letter-spacing: .06em; }
.cf-req { background: #a5281b; color: #fff; }
.cf-opt { background: var(--bg-mist); color: var(--ink-soft); }
.cf-input {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); line-height: 1.6;
    padding: .72em .9em; border: 1px solid #c9d3d0; border-radius: 8px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.cf-input::placeholder { color: #8a9693; }
.cf-input:hover { border-color: #a9b7b3; }
.cf-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(24,115,102,.18); }
.cf-textarea { min-height: 12em; resize: vertical; }
.has-err .cf-input { border-color: #c0392b; background: #fffafa; }
.cf-err { color: #a5281b; font-size: .88rem; margin: .45rem 0 0; }
.cf-err::before { content: "！"; font-weight: 700; margin-right: .2em; }

.cf-value { padding-top: .7rem; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.cf-empty { color: #8a9693; }

.cf-privacy {
    margin: 1.8rem 0 1.2rem; padding: 1.1rem 1.3rem; max-height: 10.5rem; overflow-y: auto;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
    font-size: .88rem; color: var(--ink-soft); line-height: 1.85;
}
.cf-privacy__title { font-family: var(--font-jp); font-size: .95rem; font-weight: 700; color: var(--ink); margin: 0 0 .4rem; }
.cf-privacy p { margin: 0; }
.cf-agree { text-align: center; }
.cf-check { display: inline-flex; align-items: center; gap: .6em; cursor: pointer; font-weight: 500; padding: .4em .2em; }
.cf-check input { width: 1.25em; height: 1.25em; accent-color: var(--brand); margin: 0; }
.cf-agree.has-err .cf-check { color: #a5281b; }

.cf-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.cf-actions .btn { min-width: 15em; }
.cf-section .btn--ghost { color: var(--brand-dark); border-color: var(--brand); }
.cf-section .btn--ghost:hover { background: var(--brand); color: #fff; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.cf-done { text-align: center; padding: .6rem 0; line-height: 2; color: var(--ink-soft); }
.cf-done__icon { width: 72px; height: 72px; margin: 0 auto 1rem; color: var(--brand); }
.cf-done__icon svg { width: 100%; height: 100%; }
.cf-done__title { font-family: var(--font-min); font-weight: 700; font-size: clamp(1.35rem, 3vw, 1.8rem); color: var(--ink); margin: 0 0 1rem; line-height: 1.5; }
.cf-done p { margin: 0 0 .6rem; }
.cf-done__small { font-size: .88rem; }

.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
    .page-head__lead br { display: none; }
    .cf-row { grid-template-columns: 1fr; gap: .5rem; padding: 1rem 0; }
    .cf-label { padding-top: 0; }
    .cf-value { padding-top: 0; }
    .cf-actions { flex-direction: column-reverse; }
    .cf-actions .btn { min-width: 0; }
    .cf-input { font-size: 16px; } /* iOSで入力時に拡大されないように */
}


/* ===== 言語切替（JP / EN） ===== */
.lang-switch { display: flex; align-items: center; gap: 0; font-family: var(--font-en); font-weight: 600; font-size: .95rem; letter-spacing: .1em; }
.lang-switch li + li::before { content: "/"; margin: 0 .45em; opacity: .5; color: currentColor; }
.lang-switch li { display: flex; align-items: center; color: #fff; }
.lang-switch a { padding: .35em .15em; opacity: .7; transition: opacity .3s; border-bottom: 1px solid transparent; line-height: 1; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; border-bottom-color: var(--accent); }
.header.is-scrolled .lang-switch li { color: var(--ink); }
@media (max-width: 880px) {
    .lang-switch { font-size: 1.1rem; }
    .header.is-scrolled .lang-switch li { color: #fff; }
}

/* ===== 英語ページ（en/）の文字組み ===== */
html[lang="en"] body { letter-spacing: .005em; line-height: 1.75; }
html[lang="en"] .hero__title,
html[lang="en"] .section__title,
html[lang="en"] .card__title,
html[lang="en"] .feature__title,
html[lang="en"] .quote__text,
html[lang="en"] .contact__title,
html[lang="en"] .stat__num--text { font-family: var(--font-en); font-weight: 600; letter-spacing: .01em; }
html[lang="en"] .hero__title { font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1.15; }
html[lang="en"] .hero__line + .hero__line { margin-top: .15em; }
html[lang="en"] .hero__lead { max-width: 34em; line-height: 1.8; }
html[lang="en"] .section__title { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
html[lang="en"] .card__title { font-size: 1.4rem; line-height: 1.25; }
html[lang="en"] .feature__title { font-size: 1.55rem; }
html[lang="en"] .quote__text { font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.3; }
html[lang="en"] .quote__text em { font-style: italic; }
html[lang="en"] .contact__title { font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.25; }
html[lang="en"] .stat__num small { font-family: var(--font-en); font-size: 1.1rem; }
html[lang="en"] .nav__en { font-size: 1.12rem; }
html[lang="en"] .profile__row { grid-template-columns: 150px 1fr; }
html[lang="en"] .nav__cta { letter-spacing: .1em; }
.contact__note { margin: 1.2rem 0 0; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 600px) {
    html[lang="en"] .hero__title { font-size: 2.3rem; }
    html[lang="en"] .profile__row { grid-template-columns: 1fr; gap: .2rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
    .hero__bg img { animation: none; transform: none; }
}
