/*
 * F DESIGN WORKS — Site Renewal 2026 v2
 * Award-grade motion: loader, split-text, parallax, marquee, hscroll.
 * Paper editorial base × ink dark sections × vermilion accent.
 */

:root {
    --paper: #f6f5f1;
    --paper-soft: #edece6;
    --ink: #141310;
    --ink-soft: #1d1c18;
    --ink-2: #6d6a5f;
    --line: #dcdad0;
    --line-dark: #35332c;
    /* 青ベース（旧サイトの #007bff を紙に合わせて深めに調整） */
    --accent: #0b63d6;
    --accent2: #5aa2ff; /* 暗い写真の上で使う明るい青 */

    --font-jp: 'Noto Sans JP', sans-serif;
    --font-display: 'Shippori Mincho', serif;
    --font-en: 'Inter', sans-serif;
    --font-serif-en: 'EB Garamond', serif;

    --w: min(1240px, 92vw);
    --header-h: 72px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

/* scroll-behavior:smooth は付けない（JSの慣性スクロールと競合するため） */
html { scroll-padding-top: calc(var(--header-h) + 24px); }

body {
    font-family: var(--font-jp);
    font-weight: 400;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.9;
    letter-spacing: 0.02em;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

body.lock { overflow: hidden; }

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

.container { width: var(--w); margin: 0 auto; }

/* ================= loader ================= */

#loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.9s var(--ease-io);
}

#loader.done { transform: translateY(-101%); }
#loader.gone { display: none; }

.loader__inner { text-align: center; }

.loader__logo {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    opacity: 0.55;
    margin-bottom: 12px;
}

.loader__count {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(4rem, 14vw, 8rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.loader__count::after { content: "%"; font-size: 0.3em; opacity: 0.4; margin-left: 0.1em; }

.loader__bar {
    width: min(280px, 60vw);
    height: 1px;
    background: var(--line-dark);
    margin: 26px auto 0;
    position: relative;
    overflow: hidden;
}

.loader__bar i {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
}

/* ================= grain / cursor ================= */

/* 紙の繊維テクスチャ（静止）。
   旧実装のフィルムグレイン(0.9s間隔のジッター)は雨ノイズに見えて目が疲れるため廃止。
   SVG feTurbulence は iOS Safari で黒く描画される事故があるため実PNGを使う */
.grain {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAACXBIWXMAAAABAAAAAQBPJcTWAAALn0lEQVR4nO1dW3PjqBJGgC5IQpItx5lM1c7Tzj7sj93/t1X7NDtJOXai+w0QcCruM6nzH07z4HLZMhJ099eNofsL/vrrL6110zR///13mqZ//vlnXddCiGmaTqfT5XKZpumff/6hlGqtv379KoQ4Ho8/fvwQQmzbdj6fwzC01nZdZ63Nssxa2zRNkiR5nsdx7L3P83zf97e3t58/fz4+PnLO//jjj8vlwjlv2/bLly9KqaIomqap6/r5+TkMw3EcCSFRFHHOy7JclmWapm3bCCHjOO77zjn//v378Xh8eXn5999/CSFfv349n8+c82EYOOdxHHPOt3sTQqRp+v7+vm3bNE3n8zmKIq113/f7vidJ0rZt0zTDMDw8PHz//v18Pq/rGkVR0zSn0wkeyRhzPp+11sMw/Pjx4/Srvb6+tm1L7s05t23b09NTHMeMscvlsu97cG95nndd571/fn42xjw+PsZx/DHAMAwppUVRlGUZhuEwDFEU9X0fBEEURWmaJkmitYaBlWVpjFnXVSmltYa5hm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ajyJb9g7E8zwXRdE0HzROWmvOOWOsaZo4jsN7a5rGORfHMdx9HEfvfRzHeZ4zxkBmcRxD9h1jTCl1OBw450mSGGOster+Z8A0Tfq+dayUgouTJKH3Q3bv7+/QOYgcngF6K8syTVOl1DzPxpiiKKSUbdsOw3C9flQNhNl3zk33liSJ957zj5zI8/mc5/nhcHh9fZ3nue9751ye53Cs7+fPn/8BpEV2SMTbPBkAAAAASUVORK5CYII=");
    background-repeat: repeat;
    animation: grainpulse 6.5s ease-in-out infinite;
}

/* 濃度だけがゆっくり脈動（ジッターなし＝目は疲れない） */
@keyframes grainpulse {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.06; }
}

/* スマホでは非表示（視認性ほぼゼロ・描画コスト対策） */
@media (pointer: coarse) {
    .grain { display: none; }
}

/* 舞う紙片（canvas・JSが注入） */
#dust {
    position: fixed;
    inset: 0;
    z-index: 899;
    pointer-events: none;
}

/* スクロール進捗ライン（JSが注入） */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 130;
    pointer-events: none;
}

.scroll-progress i {
    display: block;
    height: 100%;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
}

.cur-dot, .cur-ring {
    position: fixed;
    top: 0; left: 0;
    z-index: 999;
    pointer-events: none;
    border-radius: 50%;
    display: none;
}

@media (pointer: fine) {
    .cur-dot, .cur-ring { display: block; opacity: 0; transition: opacity 0.4s; }
    body.cursor-on .cur-dot, body.cursor-on .cur-ring { opacity: 1; }
    .cur-dot {
        width: 6px; height: 6px;
        background: var(--accent);
        transform: translate(-50%, -50%);
    }
    .cur-ring {
        width: 36px; height: 36px;
        border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
        transform: translate(-50%, -50%);
        transition: width 0.35s var(--ease), height 0.35s var(--ease),
                    background 0.35s var(--ease), border-color 0.35s;
    }
    .cur-ring.on {
        width: 72px; height: 72px;
        background: color-mix(in srgb, var(--accent) 14%, transparent);
        border-color: var(--accent);
    }
    .cur-ring.dark { border-color: color-mix(in srgb, var(--paper) 50%, transparent); }
}

/* ================= header ================= */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: transform 0.55s var(--ease);
}

.header.hide { transform: translateY(-101%); }

/* メニュー展開中の3点セット:
   ① z-index を .nav-bg(105) より上げる — header は backdrop-filter でスタッキング
     コンテキストになるため、中の .nav(z110) は header の z100 に閉じ込められ、
     黒幕がリンクの上に乗って「ブラックアウト」して見えるバグの根治
   ② transform/backdrop-filter を外す — fixed の基準が header になる事故防止
   ③ 背景と境界線を消す — 黒幕の上に白帯が出ないように */
body.menu-open .header {
    z-index: 115;
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-bottom-color: transparent;
}

.header__inner {
    width: var(--w);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    display: flex;
    align-items: baseline;
    gap: 8px;
    position: relative;
    z-index: 120;
}

.logo::after {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-1px);
    transition: transform 0.4s var(--ease);
}

.logo:hover::after { transform: translateY(-1px) scale(1.6); }

.nav ul { display: flex; gap: 40px; align-items: center; }

.nav a {
    font-family: var(--font-en);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--ink-2);
    position: relative;
    padding: 6px 0;
    transition: color 0.3s var(--ease);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.nav a:hover::after, .nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav a.nav--cta {
    display: inline-block;
    color: var(--paper);
    background: var(--ink);
    padding: 10px 22px;
    overflow: hidden;
    isolation: isolate;
}

.nav a.nav--cta::after { display: none; }

.nav a.nav--cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    z-index: -1;
    transform: translateY(101%);
    transition: transform 0.45s var(--ease);
}

.nav a.nav--cta:hover::before { transform: translateY(0); }

/* hamburger */
.hamburger {
    display: none;
    background: none;
    border: 0;
    width: 48px; height: 48px;
    cursor: pointer;
    position: relative;
    z-index: 120;
}

.hamburger span {
    position: absolute;
    left: 12px;
    width: 24px; height: 1.5px;
    background: var(--ink);
    transition: transform 0.4s var(--ease), background 0.3s;
}

.hamburger span:nth-child(1) { top: 20px; }
.hamburger span:nth-child(2) { top: 28px; }

body.menu-open .hamburger span { background: var(--paper); }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ================= split text ================= */

.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; }

html.js .split .ch {
    display: inline-block;
    transform: translateY(118%) rotate(3deg);
    transition: transform 1s var(--ease);
}

html.js .split.in .ch { transform: none; }

/* ================= hero ================= */

.hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(48px, 9vh, 110px)) 0 0;
    overflow: clip;
}

.hero__inner { width: var(--w); margin: 0 auto; position: relative; }

.hero__label {
    font-family: var(--font-en);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(24px, 4vh, 44px);
}

.hero__label::before {
    content: "";
    width: 48px; height: 1px;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.9s var(--ease) 0.1s;
}

body.loaded .hero__label::before { transform: scaleX(1); }

.hero__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.15rem, 8.6vw, 6.6rem);
    line-height: 1.32;
    letter-spacing: 0.04em;
}

.hero__title .accent { color: var(--accent); }

.hero__lead {
    margin-top: clamp(24px, 4vh, 48px);
    max-width: 34em;
    color: var(--ink-2);
    line-height: 2.2;
}

.hero__side {
    position: absolute;
    right: 0;
    top: 8px;
    writing-mode: vertical-rl;
    font-family: var(--font-serif-en);
    font-style: italic;
    font-size: 0.86rem;
    letter-spacing: 0.3em;
    color: var(--ink-2);
}

.hero__media {
    margin-top: clamp(40px, 7vh, 90px);
    position: relative;
}

.hero__media .img-reveal { aspect-ratio: 21 / 9; }

.hero__media-cap {
    position: absolute;
    right: 4vw;
    bottom: 20px;
    z-index: 2;
    color: #fff;
    font-family: var(--font-en);
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    mix-blend-mode: difference;
}

/* ================= image reveal / parallax ================= */

.img-reveal {
    position: relative;
    overflow: hidden;
    background: var(--paper-soft);
}

.img-reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

html.js .img-reveal {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.85s var(--ease-io);
}

html.js .img-reveal img {
    transform: scale(1.28);
    transition: transform 1.15s var(--ease-io);
}

html.js .img-reveal.in { clip-path: inset(0 0 0 0); }
html.js .img-reveal.in img { transform: scale(1.12); }

[data-plx] { will-change: transform; }

/* ================= marquee ================= */

.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: clamp(18px, 3vh, 30px) 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee--dark { border-color: var(--line-dark); }

.marquee__track {
    display: inline-flex;
    align-items: baseline;
    gap: 4rem;
    padding-right: 4rem;
    will-change: transform;
}

.marquee__item {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    letter-spacing: 0.06em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 55%, transparent);
}

.marquee--dark .marquee__item { -webkit-text-stroke: 1px color-mix(in srgb, var(--paper) 45%, transparent); }

.marquee__item--fill {
    color: var(--accent);
    -webkit-text-stroke: 0;
    font-family: var(--font-serif-en);
    font-style: italic;
    font-weight: 500;
}

/* ================= sections ================= */

.section { padding: clamp(88px, 14vh, 150px) 0; position: relative; }

.sec-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: clamp(40px, 7vh, 72px);
    position: relative;
}

.sec-head__en {
    font-family: var(--font-en);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--accent);
    text-transform: uppercase;
}

.sec-head__jp {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    letter-spacing: 0.08em;
    line-height: 1.5;
}

.sec-head__note { color: var(--ink-2); max-width: 38em; }

.sec-ghost {
    position: absolute;
    right: -0.06em;
    top: -0.52em;
    z-index: -1;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: clamp(5rem, 16vw, 13rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 12%, transparent);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.on-dark .sec-ghost { -webkit-text-stroke: 1px color-mix(in srgb, var(--paper) 14%, transparent); }

/* ================= news ================= */

.news-list { border-top: 1px solid var(--line); }

.news-item { border-bottom: 1px solid var(--line); }

.news-item a {
    display: grid;
    grid-template-columns: 110px 92px 1fr auto;
    gap: 28px;
    align-items: baseline;
    padding: 28px 4px;
    position: relative;
    transition: padding 0.4s var(--ease);
}

.news-item a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--paper-soft);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease);
    z-index: -1;
}

.news-item a:hover { padding-left: 20px; }
.news-item a:hover::before { transform: scaleY(1); }

.news-item__date {
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--ink-2);
}

.news-item__cat {
    font-family: var(--font-en);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--ink-2);
    border: 1px solid var(--line);
    padding: 3px 10px;
    text-align: center;
}

.news-item__title { font-size: 0.95rem; }

.news-item__arrow {
    font-family: var(--font-en);
    color: var(--ink-2);
    transition: transform 0.35s var(--ease), color 0.3s;
}

.news-item a:hover .news-item__arrow { transform: translateX(8px); color: var(--accent); }

.more-link { margin-top: 36px; display: flex; justify-content: flex-end; }

.more-link a, .text-link {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 2px 8px;
    border-bottom: 1px solid var(--ink);
    transition: color 0.3s, border-color 0.3s, gap 0.3s var(--ease);
}

.more-link a:hover, .text-link:hover { color: var(--accent); border-color: var(--accent); gap: 20px; }

/* ================= horizontal services (index) ================= */

.hs {
    background: var(--ink);
    color: var(--paper);
}

.hs-outer { position: relative; }

.hs-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hs-head {
    width: var(--w);
    margin: 0 auto clamp(28px, 5vh, 56px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.hs-head .sec-head { margin-bottom: 0; }
.hs-head .sec-head__jp { color: var(--paper); }

.hs-hint {
    font-family: var(--font-en);
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    color: #8a877b;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.hs-hint::after { content: "→"; animation: nudge 1.8s var(--ease) infinite; }

@keyframes nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.hs-track {
    display: flex;
    gap: clamp(20px, 3vw, 44px);
    padding-left: max(calc((100vw - var(--w)) / 2), 4vw);
    padding-right: 8vw;
    will-change: transform;
    width: max-content;
}

.hs-card {
    width: clamp(300px, 34vw, 460px);
    flex-shrink: 0;
    border: 1px solid var(--line-dark);
    padding: clamp(18px, 2vw, 28px);
    background: var(--ink-soft);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: border-color 0.4s, transform 0.5s var(--ease);
}

.hs-card:hover { border-color: var(--accent); transform: translateY(-8px); }

.hs-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.hs-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.92);
    transform: scale(1.06);
    transition: transform 1s var(--ease), filter 0.5s;
}

.hs-card:hover .hs-card__media img { transform: scale(1.14); filter: saturate(1.05); }

.hs-card__num {
    font-family: var(--font-serif-en);
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.hs-card__jp {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
    letter-spacing: 0.08em;
    line-height: 1.5;
}

.hs-card__en {
    font-family: var(--font-en);
    font-size: 0.64rem;
    letter-spacing: 0.26em;
    color: #8a877b;
    text-transform: uppercase;
    margin-top: -12px;
}

.hs-card__desc { font-size: 0.85rem; color: #b5b2a5; line-height: 1.95; }

.hs-card__link {
    margin-top: auto;
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hs-card__link i {
    font-style: normal;
    transition: transform 0.35s var(--ease);
}

.hs-card:hover .hs-card__link i { transform: translateX(8px); }
.hs-card:hover .hs-card__link { color: var(--accent); }

/* ================= services page ================= */

.svc-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(32px, 6vw, 80px);
    padding: clamp(64px, 10vh, 110px) 0;
    border-top: 1px solid var(--line);
}

.svc-detail:first-of-type { border-top: 0; }

.svc-detail__side { position: relative; }

.svc-detail__side-inner { position: sticky; top: calc(var(--header-h) + 40px); }

.svc-detail__num {
    font-family: var(--font-serif-en);
    font-style: italic;
    font-size: 1rem;
    letter-spacing: 0.24em;
    color: var(--accent);
    display: block;
    margin-bottom: 18px;
}

.svc-detail__en {
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.7;
    color: var(--ink-2);
}

.svc-detail__media {
    aspect-ratio: 3 / 2;
    margin-bottom: clamp(28px, 4vh, 44px);
}

.svc-detail__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    line-height: 1.6;
}

.svc-detail__body p { color: var(--ink-2); max-width: 40em; }
.svc-detail__body p + p { margin-top: 1em; }

.svc-menu { margin-top: 44px; border-top: 1px solid var(--line); }

.svc-menu li {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
    transition: padding 0.35s var(--ease);
}

.svc-menu li:hover { padding-left: 14px; }

.svc-menu li::before {
    content: "—";
    color: var(--accent);
    font-family: var(--font-en);
    flex-shrink: 0;
}

/* ================= company ================= */

.message { display: grid; gap: 40px; max-width: 820px; }

.message__lead {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    line-height: 2;
    letter-spacing: 0.08em;
}

.message__body p { color: var(--ink-2); line-height: 2.3; }
.message__body p + p { margin-top: 1.6em; }

.message__sign { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.message__sign-role { font-size: 0.78rem; color: var(--ink-2); letter-spacing: 0.1em; }

.message__sign-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.24em;
}

.company-media { aspect-ratio: 21 / 9; margin-top: clamp(48px, 8vh, 88px); }

.outline-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--line);
}

.outline-table th, .outline-table td {
    padding: 26px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-weight: 400;
}

.outline-table th {
    width: 220px;
    font-family: var(--font-en);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--ink-2);
    padding-top: 30px;
    text-transform: uppercase;
}

.outline-table th .jp {
    display: block;
    font-family: var(--font-jp);
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    color: var(--ink);
    margin-top: 2px;
}

.outline-table td ul li { padding: 2px 0; }

/* ================= contact ================= */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 7vw, 96px);
    align-items: start;
}

.contact-side__lead {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    line-height: 1.9;
    letter-spacing: 0.06em;
    margin-bottom: 32px;
}

.contact-side__note { color: var(--ink-2); margin-bottom: 48px; }

.contact-side h3 {
    font-family: var(--font-en);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.contact-topics { border-top: 1px solid var(--line); margin-bottom: 48px; }

.contact-topics li {
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--ink-2);
    transition: padding 0.3s var(--ease), color 0.3s;
}

.contact-topics li:hover { padding-left: 12px; color: var(--ink); }

.contact-topics li::before { content: "—"; color: var(--accent); font-family: var(--font-en); flex-shrink: 0; }

.contact-flow { counter-reset: flow; display: flex; flex-direction: column; gap: 10px; }

.contact-flow li {
    counter-increment: flow;
    display: flex;
    gap: 16px;
    align-items: baseline;
    font-size: 0.88rem;
    color: var(--ink-2);
}

.contact-flow li::before {
    content: counter(flow, decimal-leading-zero);
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--ink);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    flex-shrink: 0;
}

/* form */

.form-field { margin-bottom: 36px; }

.form-field label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.req {
    font-size: 0.62rem;
    color: var(--accent);
    border: 1px solid currentColor;
    padding: 1px 7px;
    letter-spacing: 0.14em;
}

.opt {
    font-size: 0.62rem;
    color: var(--ink-2);
    border: 1px solid var(--line);
    padding: 1px 7px;
    letter-spacing: 0.14em;
}

.fld { position: relative; }

.fld::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.fld:focus-within::after { transform: scaleX(1); }

.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    font-family: var(--font-jp);
    font-size: 16px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 2px 14px;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236d6a5f' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    cursor: pointer;
}

.form-field textarea { min-height: 170px; resize: vertical; line-height: 1.9; }

.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; }

.form-field input::placeholder, .form-field textarea::placeholder { color: #b9b6aa; }

.submit-btn {
    font-family: var(--font-en);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--paper);
    background: var(--ink);
    border: 1px solid var(--ink);
    padding: 22px 60px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    z-index: -1;
    transform: translateY(101%);
    transition: transform 0.45s var(--ease);
}

.submit-btn:hover::before { transform: translateY(0); }

.submit-btn .arr { transition: transform 0.35s var(--ease); }
.submit-btn:hover .arr { transform: translateX(6px); }

.form-privacy { font-size: 0.78rem; color: var(--ink-2); margin-bottom: 28px; }
.form-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.form-privacy a:hover { color: var(--accent); }

/* ================= page head ================= */

.page-head {
    padding: calc(var(--header-h) + clamp(56px, 10vh, 110px)) 0 clamp(48px, 8vh, 80px);
    position: relative;
}

.page-head__en {
    font-family: var(--font-en);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--accent);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.page-head__en::before {
    content: "";
    width: 48px; height: 1px;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.9s var(--ease) 0.15s;
}

body.loaded .page-head__en::before { transform: scaleX(1); }

.page-head__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.page-head__lead { margin-top: 28px; color: var(--ink-2); max-width: 40em; }

/* ================= CTA band ================= */

.cta-band {
    border-top: 1px solid var(--line);
    padding: clamp(100px, 18vh, 180px) 0;
    text-align: center;
    overflow: clip;
    position: relative;
}

.cta-band__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.8rem, 4.6vw, 3.2rem);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.cta-band__note { color: var(--ink-2); margin-bottom: 48px; }

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: clamp(180px, 22vw, 220px);
    aspect-ratio: 1;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.4s var(--ease), border-color 0.4s;
}

.cta-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--ink);
    z-index: -1;
    transform: scale(0);
    transition: transform 0.55s var(--ease);
}

.cta-btn:hover { color: var(--paper); border-color: var(--ink); }
.cta-btn:hover::before { transform: scale(1.02); }

/* ================= footer ================= */

.footer {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(64px, 10vh, 100px) 0 40px;
    overflow: clip;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    padding-bottom: clamp(40px, 7vh, 72px);
}

.footer__mark {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: clamp(2rem, 6.4vw, 4.6rem);
    letter-spacing: 0.08em;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 28px;
}

.footer__mark::after {
    content: "";
    width: 0.16em; height: 0.16em;
    border-radius: 50%;
    background: var(--accent);
}

.footer__addr {
    font-size: 0.82rem;
    color: #9a978c;
    line-height: 2.1;
    font-style: normal;
}

.footer__nav ul { display: flex; flex-direction: column; gap: 14px; text-align: right; }

.footer__nav a {
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    color: #9a978c;
    transition: color 0.3s, letter-spacing 0.4s var(--ease);
}

.footer__nav a:hover { color: var(--paper); letter-spacing: 0.3em; }

.footer__bottom {
    border-top: 1px solid var(--line-dark);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-en);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    color: #7b786d;
}

/* ================= mobile menu ================= */

.nav-bg {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: var(--ink);
    transform: translateY(-101%);
    transition: transform 0.6s var(--ease-io);
    display: none;
}

/* ================= reveal ================= */

html.js .js-fade {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

html.js .js-fade.is-visible { opacity: 1; transform: none; }

html.js [data-stagger] > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

html.js [data-stagger].is-visible > * { opacity: 1; transform: none; }

/* page transition */
html.js main, html.js .footer { transition: opacity 0.3s ease; }
html.js body.leaving main, html.js body.leaving .footer { opacity: 0; }

/* ---------- v8 静止写真ヒーロー（切替なし・ゆっくり呼吸するだけ） ---------- */

.hero--photo {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + 24px) 0 96px;
    color: var(--paper);
}

.hero__photo { position: absolute; inset: 0; background: var(--ink); }

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroBreathe 26s ease-in-out infinite;
    will-change: transform;
}

/* スライドショーではなく、気づくか気づかないかの呼吸ズーム */
@keyframes heroBreathe {
    0%, 100% { transform: scale(1.02); }
    50% { transform: scale(1.08); }
}

html.static .hero__photo img { animation: none; transform: none; }

.hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(15, 14, 11, 0.66) 0%, rgba(15, 14, 11, 0.32) 52%, rgba(15, 14, 11, 0.2) 100%),
        linear-gradient(to top, rgba(15, 14, 11, 0.42), transparent 32%);
}

.hero--photo .hero__inner { position: relative; z-index: 2; }
.hero--photo .hero__label { color: rgba(246, 245, 241, 0.78); }
.hero--photo .hero__title { color: var(--paper); text-shadow: 0 2px 34px rgba(0, 0, 0, 0.3); }
.hero--photo .hero__title .accent { color: var(--accent2); }
.hero--photo .hero__lead { color: rgba(246, 245, 241, 0.88); max-width: 36em; }
.hero--photo .hero__side {
    position: absolute;
    right: 4vw;
    top: calc(var(--header-h) + 40px);
    z-index: 2;
    color: rgba(246, 245, 241, 0.6);
}
.hero--photo .hero__scroll { color: rgba(246, 245, 241, 0.7); }
.hero--photo .hero__scroll::before { background: rgba(246, 245, 241, 0.7); }
.hero--photo .rot i { color: var(--paper); border-bottom-color: var(--accent2); }

/* ヒーロー上ではヘッダー透明・白抜き */
.header.on-hero {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
}

.header.on-hero .logo, .header.on-hero .nav a { color: var(--paper); }
.header.on-hero .nav a::after { background: var(--paper); }
.header.on-hero .hamburger span { background: var(--paper); }
.header.on-hero .nav a.nav--cta { color: var(--paper); }

/* CTA帯の写真背景バリアント */
.cta-band--photo {
    position: relative;
    overflow: hidden;
    border-top: 0;
    color: var(--paper);
}

.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(13, 15, 20, 0.58);
}

.cta-band--photo .container { position: relative; z-index: 2; }
.cta-band--photo .cta-band__note { color: rgba(246, 245, 241, 0.82); }
.cta-band--photo .cta-btn { border-color: var(--paper); color: var(--paper); }
.cta-band--photo .cta-btn::before { background: var(--accent); }
.cta-band--photo .cta-btn:hover { color: var(--paper); border-color: var(--accent); }

/* サブページ冒頭のワイド画像 */
.page-head__media {
    aspect-ratio: 16 / 9;
    margin-top: clamp(32px, 6vh, 56px);
}

@media (max-width: 900px) {
    .page-head__media { aspect-ratio: 4 / 3; }
}

/* 回る言葉 */
.rot {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    white-space: nowrap;
    transition: width 0.3s var(--ease);
}

.rot i {
    display: inline-block;
    font-style: normal;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 2px solid var(--accent);
}

/* SCROLL 縦ライン */
.hero__scroll {
    position: absolute;
    left: 4vw;
    bottom: 42px;
    z-index: 2;
    writing-mode: vertical-rl;
    font-family: var(--font-en);
    font-size: 0.66rem;
    letter-spacing: 0.3em;
    color: var(--ink-2);
    padding-top: 46px;
}

.hero__scroll::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 38px;
    background: var(--ink-2);
    animation: scrolldrop 2.2s var(--ease) infinite;
    transform-origin: top;
}

@keyframes scrolldrop {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 900px) {
    .hero__scroll { display: none; }
}

/* SERVICESカードの3Dチルト用 */
.hs-track { perspective: 1000px; }

/* ---------- v4 award motion ---------- */

/* 英字リンクのロールホバー（JSが .rr を注入） */
.rr { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
.rr i { display: block; font-style: normal; transition: transform 0.55s var(--ease); }
.rr i + i { position: absolute; left: 0; top: 100%; }
a:hover .rr i { transform: translateY(-100%); }

/* 巨大アウトライン文字はJSで漂流させる */
.sec-ghost { will-change: transform; }

/* 横スクロールセクションの進捗バー（JSが注入） */
.hs-progress {
    width: var(--w);
    margin: clamp(24px, 4vh, 40px) auto 0;
    height: 1px;
    background: var(--line-dark);
    position: relative;
}
.hs-progress i {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
}

@media (max-width: 900px) {
    .hs-progress { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .grain { animation: none; }
    #dust { display: none; }
    .rr i { transition: none; }
    .hero__scroll::before { animation: none; }
}

/* reduced-motion / static時: 横スクロールJSを使わずネイティブ横スワイプに */
.hs.hs-native .hs-outer { height: auto !important; }
.hs.hs-native .hs-sticky { position: static; height: auto; padding: clamp(72px, 12vh, 120px) 0; }
.hs.hs-native .hs-head { margin-bottom: 40px; }
.hs.hs-native .hs-track {
    overflow-x: auto;
    width: auto;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    transform: none !important;
}
.hs.hs-native .hs-card { scroll-snap-align: start; }

/* QA用: ?static=1 で全モーションの最終状態を即時表示 */
html.static .split .ch { transform: none !important; transition: none !important; }
html.static .js-fade, html.static [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
html.static .img-reveal { clip-path: none !important; transition: none !important; }
html.static .img-reveal img { transform: scale(1.12) !important; transition: none !important; }
html.static #loader { display: none !important; }
html.static .hero__label::before, html.static .page-head__en::before { transform: scaleX(1) !important; }

@media (prefers-reduced-motion: reduce) {
    html.js .js-fade, html.js [data-stagger] > * { opacity: 1; transform: none; transition: none; }
    html.js .split .ch { transform: none; transition: none; }
    html.js .img-reveal { clip-path: none; transition: none; }
    html.js .img-reveal img { transform: none; transition: none; }
    .hs-hint::after { animation: none; }
    [data-plx] { transform: none !important; }
}

/* ================= responsive ================= */

@media (max-width: 900px) {
    body { font-size: 14.5px; }

    :root { --header-h: 64px; }

    .hamburger { display: block; }
    .nav-bg { display: block; }
    body.menu-open .nav-bg { transform: translateY(0); }

    /* 注意: .nav は fixed だが祖先 .header が transform を持つと header 基準になる。
       menu-open 中は .header の transform を必ず none にすること（上部で定義済み） */
    .nav {
        position: fixed;
        top: 0; left: 0;
        width: 100vw;
        height: 100vh;
        height: 100svh;
        z-index: 110;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        pointer-events: none;
    }

    body.menu-open .nav { pointer-events: auto; }

    .nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 0 8vw;
        width: 100%;
    }

    .nav a {
        font-family: var(--font-display);
        font-size: clamp(1.9rem, 9vw, 2.6rem);
        font-weight: 500;
        letter-spacing: 0.1em;
        color: var(--paper);
        padding: 10px 0;
        display: inline-block;
        opacity: 0;
        transform: translateY(36px);
        transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    }

    body.menu-open .nav a {
        opacity: 1;
        transform: none;
        transition-delay: calc(var(--mi, 0) * 70ms + 0.25s);
    }

    .nav a::after { background: var(--accent); height: 2px; }

    .nav a.nav--cta {
        background: none;
        padding: 10px 0;
        color: var(--accent);
    }
    .nav a.nav--cta::before { display: none; }

    .hero__side { display: none; }
    .hero__media .img-reveal { aspect-ratio: 4 / 3; }

    .section { padding: 72px 0; }

    .sec-ghost { font-size: clamp(4rem, 20vw, 7rem); top: -0.4em; }

    .news-item a { grid-template-columns: auto auto 1fr; gap: 14px; row-gap: 6px; padding: 22px 4px; }
    .news-item__title { grid-column: 1 / -1; }
    .news-item__arrow { display: none; }

    /* hscroll → native swipe */
    .hs-outer { height: auto !important; }
    .hs-sticky { position: static; height: auto; padding: 72px 0; }
    .hs-head { flex-direction: column; align-items: flex-start; gap: 12px; }

    .hs-track {
        overflow-x: auto;
        width: auto;
        padding: 4px max(4vw, 20px) 24px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        transform: none !important;
    }

    .hs-track::-webkit-scrollbar { display: none; }
    .hs-card { width: min(78vw, 340px); scroll-snap-align: start; }

    .svc-detail { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; }
    .svc-detail__side-inner { position: static; }
    .svc-detail__media { aspect-ratio: 4 / 3; }

    .contact-grid { grid-template-columns: 1fr; gap: 56px; }

    .outline-table th { width: 110px; }
    .outline-table th .jp { font-size: 0.8rem; }

    .company-media { aspect-ratio: 4 / 3; }

    .footer__grid { grid-template-columns: 1fr; gap: 36px; }
    .footer__nav ul { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 18px 26px; }
    .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

    .cta-btn { width: 170px; }
}

/* ---------- WordPress 対応 ---------- */

body.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .header { top: 46px; } }

/* 汎用固定ページ本文（プライバシーポリシー・利用規約など） */
.prose { max-width: 760px; line-height: 2.2; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: 0.06em; margin: 2.2em 0 0.8em; }
.prose h3 { font-weight: 700; font-size: 1.05rem; margin: 1.8em 0 0.6em; }
.prose p { margin-bottom: 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.6em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose img { height: auto; }

/* Contact Form 7 を刷新デザインに合わせる */
.wpcf7 .form-field input, .wpcf7 .form-field select, .wpcf7 .form-field textarea { width: 100%; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip { display: block; color: #c02b2b; font-size: 0.75rem; margin-top: 8px; letter-spacing: 0.04em; }
.wpcf7 form .wpcf7-response-output { margin: 28px 0 0; padding: 14px 18px; border: 1px solid var(--line); font-size: 0.85rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--accent); color: var(--accent); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output { border-color: #c02b2b; color: #c02b2b; }
.wpcf7-spinner { margin: 12px 0 0 12px; }
