@charset "UTF-8";

/* ==========================================================
   LACOP DESIGN PROTOTYPE — 精密な自然 (Precision × Nature)
   スマホ最優先。PCは後段のメディアクエリで拡張。
   ========================================================== */

:root {
    --ink: #0b1f1a;          /* 深い緑黒 — 闇の側 */
    --deep: #071512;
    --paper: #f6f4ee;        /* 紙 — 光の側 */
    --paper-dim: #eceade;
    --moss: #2e5d4f;
    --accent: #c9f04d;       /* 発光する若葉色 */
    --line-dark: rgba(255, 255, 255, 0.14);
    --line-light: rgba(11, 31, 26, 0.15);
    --tx-light: #e9efe9;
    --tx-dim: rgba(233, 239, 233, 0.62);
    --serif: 'Shippori Mincho', serif;
    --sans: 'Noto Sans JP', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--ink);
    color: var(--tx-light);
    line-height: 1.8;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); letter-spacing: 0.06em; }

/* ==========================================================
   上部バー
   ========================================================== */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    mix-blend-mode: normal;
    transition: background 0.4s, backdrop-filter 0.4s;
}

.topbar.is-scrolled {
    background: rgba(7, 21, 18, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.topbar__brand { display: flex; align-items: center; gap: 12px; }

.topbar__logo {
    width: 34px; height: 34px;
    border-radius: 3px;   /* 白地ごと置いて落款（判子）に見せる */
    box-shadow: 0 0 0 1px var(--line-dark);
}

.topbar__name-jp {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    color: var(--tx-light);
    white-space: nowrap;
}

@media (max-width: 374px) {
    .topbar__name-jp { font-size: 0.78rem; letter-spacing: 0.06em; }
    .topbar__logo { width: 30px; height: 30px; }
}

.topbar__right { display: flex; align-items: center; gap: 6px; }

.topbar__contact {
    display: none;   /* スマホでは出さない（清潔なバーを守る） */
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: var(--tx-dim);
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    padding: 7px 18px;
    margin-right: 12px;
    transition: color 0.3s, border-color 0.3s;
}

.topbar__contact:hover { color: var(--accent); border-color: var(--accent); }

@media (min-width: 768px) {
    .topbar__contact { display: inline-block; }
}

.topbar__toggle {
    width: 44px; height: 44px;
    background: none; border: none; cursor: pointer;
    display: grid; place-content: center; gap: 7px;
}

.topbar__toggle span {
    display: block; width: 26px; height: 1.5px;
    background: var(--tx-light);
    transition: transform 0.45s var(--ease), opacity 0.3s;
}

body.menu-open .topbar__toggle span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
body.menu-open .topbar__toggle span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* ==========================================================
   全画面メニュー
   ========================================================== */
.menu {
    position: fixed; inset: 0; z-index: 90;
    background: var(--deep);
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 32px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}

body.menu-open .menu { opacity: 1; visibility: visible; }

.menu__list { list-style: none; }

.menu__list li { border-bottom: 1px solid var(--line-dark); }

.menu__list a {
    display: flex; align-items: baseline; gap: 16px;
    padding: 20px 4px;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    transform: translateY(24px); opacity: 0;
    transition: transform 0.6s var(--ease), opacity 0.6s;
}

body.menu-open .menu__list a { transform: none; opacity: 1; }
body.menu-open .menu__list li:nth-child(2) a { transition-delay: 0.05s; }
body.menu-open .menu__list li:nth-child(3) a { transition-delay: 0.1s; }
body.menu-open .menu__list li:nth-child(4) a { transition-delay: 0.15s; }
body.menu-open .menu__list li:nth-child(5) a { transition-delay: 0.2s; }

.menu__no { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); }
.menu__en { margin-left: auto; font-family: var(--mono); font-size: 0.7rem; color: var(--tx-dim); }
.menu__foot { margin-top: 48px; font-size: 0.68rem; color: var(--tx-dim); }

/* ==========================================================
   HERO — 等高線の闇
   ========================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 80% 10%, rgba(46, 93, 79, 0.35), transparent 60%),
        var(--ink);
}

.hero__contours {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0.9;
}

.hero__contours .c {
    fill: none;
    stroke: rgba(201, 240, 77, 0.16);
    stroke-width: 1;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: draw 3.2s var(--ease) forwards, drift 26s ease-in-out infinite alternate;
}

.hero__contours .c2 { animation-delay: 0.2s, 0s; stroke: rgba(201, 240, 77, 0.10); }
.hero__contours .c3 { animation-delay: 0.4s, 0s; stroke: rgba(233, 239, 233, 0.10); }
.hero__contours .c4 { animation-delay: 0.6s, 0s; stroke: rgba(233, 239, 233, 0.08); }
.hero__contours .c5 { animation-delay: 0.8s, 0s; stroke: rgba(201, 240, 77, 0.12); }
.hero__contours .c6 { animation-delay: 1.0s, 0s; stroke: rgba(201, 240, 77, 0.07); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-24px); } }

.hero__inner { position: relative; padding: 0 28px; width: 100%; }

.hero__meta {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
    font-size: 0.66rem;
    color: var(--tx-dim);
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    padding: 10px 2px;
    margin-bottom: 40px;
}

.hero__title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2.5rem, 11vw, 4.4rem);
    line-height: 1.28;
    letter-spacing: 0.06em;
}

.hero__line { display: block; overflow: hidden; }

.hero__line span {
    display: block;
    transform: translateY(110%);
    animation: rise 1.1s var(--ease) forwards;
}

.hero__line:nth-child(2) span { animation-delay: 0.18s; color: var(--accent); }

@keyframes rise { to { transform: none; } }

.hero__sub {
    margin-top: 32px;
    font-size: 0.82rem;
    color: var(--tx-dim);
    opacity: 0;
    animation: fade 1.2s 0.9s forwards;
}

@keyframes fade { to { opacity: 1; } }

/* 測量の基準点マーク（＋の明滅）— 数は創業からの年数。毎年ひとつ増える */
.hero__marks { position: absolute; inset: 0; pointer-events: none; }

.hero__marks span {
    position: absolute;
    font-family: var(--mono);
    font-size: 13px;
    color: rgba(201, 240, 77, 0.38);
    animation: blink 3.6s ease-in-out infinite;
}

.hero__marks-note {
    position: absolute;
    left: 28px; bottom: 30px;
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    color: var(--tx-dim);
    opacity: 0;
    animation: fade 1.5s 1.6s forwards;
}

@keyframes blink {
    0%, 100% { opacity: 0.12; }
    50% { opacity: 0.75; }
}

.hero__cue {
    position: absolute;
    right: 24px; bottom: 28px;
    display: flex; align-items: center; gap: 10px;
    font-size: 0.6rem; letter-spacing: 0.3em;
    color: var(--tx-dim);
    writing-mode: vertical-rl;
}

.hero__cue-bar {
    width: 1px; height: 48px;
    background: var(--line-dark);
    position: relative; overflow: hidden;
}

.hero__cue-bar::after {
    content: ''; position: absolute; inset: 0;
    background: var(--accent);
    transform: translateY(-100%);
    animation: cue 2s ease-in-out infinite;
}

@keyframes cue { 60% { transform: translateY(100%); } 100% { transform: translateY(100%); } }

/* ==========================================================
   セクション共通 — ラベルと出現アニメーション
   ========================================================== */
.sec-label {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.7rem; letter-spacing: 0.22em;
    color: var(--moss);
    margin-bottom: 40px;
}

.sec-label span { color: var(--accent); background: var(--ink); padding: 2px 8px; }

.sec-label--light { color: var(--tx-dim); }
.sec-label--light span { background: var(--accent); color: var(--ink); }

.sec-label::after {
    content: ''; flex: 1; height: 1px;
    background: currentColor; opacity: 0.3;
    transform-origin: left;
    transition: transform 3s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

html.js .sec-label::after { transform: scaleX(0); }

html.js .sec-label.is-in::after { transform: scaleX(1); }

/* 演出はJSが動く環境限定（html.js）。動かないロボット・環境には最初から全文表示 */
html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

html.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   PHILOSOPHY — 紙の面
   ========================================================== */
.phil {
    background: var(--paper);
    color: var(--ink);
    padding: 88px 28px;
}

.phil__quote {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 6.4vw, 2.6rem);
    line-height: 1.6;
    letter-spacing: 0.08em;
    margin-bottom: 32px;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.phil__text { font-size: 0.92rem; color: #3c4640; max-width: 640px; }
.phil__text b { color: var(--moss); }

/* ==========================================================
   ERA — 年月の重み（伸びていく年表の線）
   ========================================================== */
.era { background: var(--paper); color: var(--ink); padding: 0 28px 88px; }

.era__lead {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.35rem, 5.4vw, 2rem);
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

.era__track { display: flex; align-items: center; gap: 14px; }

.era__year { font-size: 0.8rem; color: var(--moss); }

.era__line {
    flex: 1; height: 2px;
    background: var(--line-light);
    position: relative;
}

.era__line::before {   /* 10年ごとの目盛 */
    content: '';
    position: absolute; top: -4px; bottom: -4px; left: 0; right: 0;
    background-image: repeating-linear-gradient(90deg,
        transparent 0, transparent calc(25% - 1px),
        var(--line-light) calc(25% - 1px), var(--line-light) 25%);
}

.era__line-fill {
    position: absolute; top: 0; bottom: 0; left: 0;
    width: 0;
    background: linear-gradient(90deg, var(--moss), var(--accent));
    transition: width 4.8s linear 0.5s;
}

.era__line-fill::after {   /* 伸びていく先端の光点 */
    content: '';
    position: absolute; right: -4px; top: 50%;
    width: 8px; height: 8px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(201, 240, 77, 0.9);
}

.era__track.is-in .era__line-fill { width: 100%; }

.era__cap { margin-top: 24px; font-size: 0.88rem; color: #3c4640; max-width: 640px; }

/* ==========================================================
   STATS — 数字の帯
   ========================================================== */
.stats {
    background: var(--deep);
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    padding: 56px 28px;
}

.stats__grid { display: grid; gap: 36px; }

.stats__num {
    display: block;
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--accent);
    line-height: 1.1;
}

.stats__unit { font-size: 1rem; margin-left: 6px; color: var(--tx-dim); }
.stats__cap { font-size: 0.78rem; color: var(--tx-dim); }

/* ==========================================================
   SERVICES — 図面台帳のカード
   ========================================================== */
.svc { background: var(--paper); color: var(--ink); padding: 88px 28px; }

.svc-card {
    border: 1px solid var(--line-light);
    background: #fff;
    margin-bottom: 24px;
    position: relative;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.svc-card:active { transform: scale(0.985); }

.svc-card::before {   /* 図面の隅切りマーク */
    content: '';
    position: absolute; top: -1px; right: -1px;
    width: 14px; height: 14px;
    background: var(--accent);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.svc-card__img { aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: #dfe4dc; }

.svc-card__img img.crop-tl {
    max-width: none; width: 200%; height: 200%;
    position: absolute; top: 0; left: 0;
    object-fit: cover;
}

.svc-card__body { padding: 26px 22px 30px; }

.svc-card__no {
    font-size: 0.7rem; color: var(--moss);
    border-bottom: 1px solid var(--line-light);
    padding-bottom: 8px; margin-bottom: 14px;
}

.svc-card__title {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.svc-card--feature .svc-card__title { font-size: 1.55rem; }

.svc-card__desc { font-size: 0.88rem; color: #3c4640; }

.svc-card__tags { margin-top: 16px; font-size: 0.62rem; color: var(--moss); letter-spacing: 0.18em; }

/* ==========================================================
   TECHNOLOGY — 仕様書×説明書
   ========================================================== */
.tech {
    background: var(--ink);
    padding: 88px 28px;
    border-top: 1px solid var(--line-dark);
}

.tech__lead {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.5rem, 6.2vw, 2.4rem);
    line-height: 1.6;
    letter-spacing: 0.07em;
    margin-bottom: 20px;
}

.tech__lead em {
    font-style: normal;
    color: var(--accent);
}

.tech__text {
    font-size: 0.88rem;
    color: var(--tx-dim);
    max-width: 640px;
    margin-bottom: 44px;
}

/* 仕様書ふうの表 */
.tech__spec { margin-bottom: 44px; }

.tech__row {
    display: grid;
    grid-template-columns: 5.5em 1fr;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 0.85rem;
}

.tech__row:first-child { border-top: 1px solid var(--line-dark); }
.tech__row dt { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.2em; padding-top: 2px; }
.tech__row dd { color: var(--tx-light); }
.tech__row dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* 端末画面（タイプ演出） */
.tech__term {
    background: #05100d;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    overflow: hidden;
}

.tech__term-head {
    font-size: 0.66rem;
    color: var(--tx-dim);
    padding: 10px 16px;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, 0.03);
}

.tech__term-body {
    padding: 18px 16px 22px;
    font-size: 0.72rem;
    line-height: 2.1;
    color: var(--tx-light);
    min-height: 13em;
}

/* 狭い画面では端末の文字ごと縮めて1行を守る */
@media (max-width: 430px) {
    .tech__term-body { font-size: 0.66rem; padding: 16px 12px 20px; }
}

@media (max-width: 360px) {
    .tech__term-body { font-size: 0.58rem; }
}

.tline { display: flex; align-items: baseline; gap: 10px; }

.tline .txt { white-space: pre-wrap; }

.tline .lead {
    flex: 1;
    min-width: 16px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.28);
    transition: opacity 0.5s;
}

.tline .ok { color: var(--accent); transition: opacity 0.5s; }

.tline.pending .lead,
.tline.pending .ok { opacity: 0; }

.tech__cursor {
    display: inline-block;
    width: 0.55em; height: 1.1em;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: cursor 1.1s step-end infinite;
}

@keyframes cursor { 50% { opacity: 0; } }

/* ==========================================================
   FUSION — 不定形の緑 ⇄ 規則のデータ
   ========================================================== */
.fusion {
    margin-top: 72px;
    border-top: 1px dashed var(--line-dark);
    padding-top: 64px;
}

.fusion__lead {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.5rem, 6.2vw, 2.4rem);
    letter-spacing: 0.07em;
    margin-bottom: 20px;
}

.fusion__lead em { font-style: normal; color: var(--accent); }

/* 樹冠⇄グリッドの舞台 */
.fusion__stage {
    position: relative;
    height: 300px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    background: radial-gradient(80% 90% at 50% 40%, rgba(46, 93, 79, 0.25), transparent 70%), #05100d;
    overflow: hidden;
    margin-bottom: 44px;
}

.fusion__mode {
    position: absolute;
    top: 12px; left: 14px;
    z-index: 2;
    font-size: 0.62rem;
    color: var(--tx-dim);
    letter-spacing: 0.18em;
}

.fusion__dots { position: absolute; inset: 0; }

.fusion__dots span {
    position: absolute; top: 0; left: 0;
    width: 9px; height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: #4e8a68;
    transition:
        transform 2.6s var(--ease),
        opacity 2.6s var(--ease),
        background-color 2.6s,
        border-radius 2.6s;
}

.fusion__dots span.is-grid {
    background: var(--accent);
    border-radius: 2px;   /* 葉がピクセルになる */
}

/* 翻訳辞書 */
.fusion__dict { margin-bottom: 40px; }

.fusion__dict div {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
}

.fusion__dict dt {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
}

.fusion__link {
    flex: 1;
    border-bottom: 1px dashed var(--line-dark);
    transform-origin: left;
    transition: transform 2.2s var(--ease) 0.4s;
}

html.js .fusion__link { transform: scaleX(0); }

html.js .fusion__dict.is-in .fusion__link { transform: scaleX(1); }

.fusion__dict dd { font-size: 0.78rem; color: var(--accent); letter-spacing: 0.16em; }

.fusion__untrans { color: var(--tx-dim); letter-spacing: 0.06em; }

/* 文脈タグ */
.fusion__ctx {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 24px;
}

.fusion__ctx span {
    font-size: 0.62rem;
    color: var(--tx-dim);
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    padding: 5px 14px;
    letter-spacing: 0.14em;
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.4s, color 0.4s;
}

html.js .fusion__ctx span { opacity: 0; transform: translateY(8px); }

html.js .fusion__ctx.is-in span { opacity: 1; transform: none; }

.fusion__ctx span:nth-child(2) { transition-delay: 0.1s; }
.fusion__ctx span:nth-child(3) { transition-delay: 0.2s; }
.fusion__ctx span:nth-child(4) { transition-delay: 0.3s; }
.fusion__ctx span:nth-child(5) { transition-delay: 0.4s; }
.fusion__ctx span:nth-child(6) { transition-delay: 0.5s; }
.fusion__ctx span:nth-child(7) { transition-delay: 0.6s; }

.fusion__ctx span:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================
   WORKS — 横スワイプの回廊
   ========================================================== */
.works { background: var(--ink); padding: 88px 0 72px; }

.works .sec-label { padding: 0 28px; color: var(--tx-dim); }

/* 実績の準備中パネル（実写が揃うまでの仮の姿。破線＝図面の未確定線） */
.works__prep {
    margin: 0 28px;
    border: 1px dashed var(--line-dark);
    padding: 56px 28px;
    text-align: center;
}

.works__prep-mark {
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    color: var(--accent);
    margin-bottom: 16px;
}

.works__prep-text { font-size: 0.88rem; color: var(--tx-dim); line-height: 2.1; }

.works__scroller {
    display: flex; gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 28px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.works__scroller::-webkit-scrollbar { display: none; }

/* PCではマウスでつかんで横に動かせる（main.js が付与） */
.works__scroller.is-grabbable { cursor: grab; }
.works__scroller.is-grabbing { cursor: grabbing; user-select: none; }

.works__item {
    flex: 0 0 78%;
    scroll-snap-align: center;
    position: relative;
}

.works__item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    filter: saturate(0.9);
    transition: filter 0.5s;
}

.works__item figcaption {
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 2px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.works__item figcaption .mono { font-size: 0.6rem; color: var(--accent); letter-spacing: 0.2em; }

.works__progress {
    margin: 16px 28px 0;
    height: 1px;
    background: var(--line-dark);
}

.works__progress span {
    display: block; height: 100%;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.2s linear;
}

.works__note {
    padding: 28px 28px 0;
    font-size: 0.8rem;
    color: var(--tx-dim);
    max-width: 640px;
}

/* ==========================================================
   FIELD NOTES — 観測記録（月一の一行更新）
   ========================================================== */
.notes {
    background: #05100d;
    border-top: 1px solid var(--line-dark);
    padding: 56px 28px;
}

.notes__head {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 24px;
}

/* いまの暦（自動で季節が切り替わる欄） */
.notes__season {
    max-width: 720px;
    margin-bottom: 28px;
    padding: 18px 20px;
    border: 1px solid var(--line-dark);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.notes__season-name {
    display: block;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.notes__season-yomi {
    font-size: 0.62rem;
    color: var(--tx-dim);
    margin-left: 10px;
    letter-spacing: 0.2em;
}

.notes__season-note {
    display: block;
    font-size: 0.84rem;
    color: var(--tx-dim);
    line-height: 1.9;
}

/* 記録ページへの誘い */
.notes__more {
    display: inline-block;
    margin-top: 24px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 3px;
}

/* 営みの野帳（記録ページ） */
.topbar__back { font-size: 0.7rem; color: var(--tx-dim); letter-spacing: 0.16em; }

.poems { background: var(--ink); padding: 72px 28px 96px; border-top: 1px solid var(--line-dark); }

.poems__intro { font-size: 0.85rem; color: var(--tx-dim); margin-bottom: 44px; line-height: 2; }

.poems__list { list-style: none; max-width: 640px; }

.poems__list li {
    margin-bottom: 44px;
    border-left: 2px solid var(--line-dark);
    padding-left: 20px;
}

.poems__date { display: block; font-size: 0.68rem; color: var(--accent); letter-spacing: 0.2em; margin-bottom: 10px; }

.poems__text {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.02rem;
    line-height: 2.3;
    letter-spacing: 0.06em;
    color: var(--tx-light);
}

.notes__list { list-style: none; max-width: 720px; }

.notes__list li {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line-dark);
    font-size: 0.85rem;
}

.notes__date { color: var(--tx-dim); font-size: 0.72rem; letter-spacing: 0.12em; flex-shrink: 0; }
.notes__text { color: var(--tx-light); }

/* ==========================================================
   COMPANY — 測量グリッドの上に
   ========================================================== */
.co { position: relative; background: var(--deep); padding: 88px 28px; overflow: hidden; }

.co__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.4;
    mask-image: radial-gradient(90% 70% at 50% 30%, #000, transparent);
    -webkit-mask-image: radial-gradient(90% 70% at 50% 30%, #000, transparent);
}

.co__pin {
    position: absolute; top: 96px; right: 56px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent);
}

.co__pin::after {
    content: ''; position: absolute; inset: -14px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
    0% { transform: scale(0.3); opacity: 1; }
    80%, 100% { transform: scale(1.6); opacity: 0; }
}

.co__body { position: relative; }

.co__list div {
    display: grid;
    grid-template-columns: 5.5em 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 0.85rem;
}

.co__list dt { color: var(--tx-dim); font-weight: 400; }
.co__list a { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================
   CONTACT CTA
   ========================================================== */
.cta { background: var(--paper); color: var(--ink); padding: 96px 28px; text-align: center; }

.cta__lead {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta__actions { display: grid; gap: 14px; max-width: 420px; margin: 0 auto; }

.cta__btn {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    padding: 18px 20px;
    border: 1.5px solid var(--ink);
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.35s, color 0.35s, transform 0.35s var(--ease);
}

.cta__btn .mono { font-size: 0.6rem; letter-spacing: 0.25em; color: var(--moss); }

.cta__btn--tel { background: var(--ink); color: var(--paper); }
.cta__btn--tel .mono { color: var(--accent); }

.cta__btn:active { transform: scale(0.97); }

.cta__note { margin-top: 24px; font-size: 0.68rem; color: #6a736d; }

/* ==========================================================
   CONTACT FORM — 問い合わせフォーム
   ========================================================== */
.cform { background: var(--ink); padding: 88px 28px 96px; }

.cform__intro { font-size: 0.88rem; color: var(--tx-dim); line-height: 2; margin-bottom: 36px; }

.cform__error {
    font-size: 0.75rem;
    color: #ffb2a6;
    border: 1px solid rgba(255, 178, 166, 0.4);
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 28px;
}

.cform__group { margin-bottom: 26px; }

.cform__group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cform__req {
    font-size: 0.58rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 3px;
    padding: 1px 7px;
    margin-left: 8px;
    letter-spacing: 0.14em;
}

.cform__group input,
.cform__group textarea {
    width: 100%;
    padding: 14px 14px;
    background: #05100d;
    border: 1px solid var(--line-dark);
    border-radius: 4px;
    color: var(--tx-light);
    font-family: var(--sans);
    font-size: 16px;   /* iPhoneの自動ズームを防ぐ下限 */
    transition: border-color 0.3s;
}

.cform__group input:focus,
.cform__group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.cform__group textarea { resize: vertical; }

/* 機械よけの罠（人間には見えない欄） */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }

.cform__note { font-size: 0.75rem; color: var(--tx-dim); margin-bottom: 28px; }

.cform__submit { width: 100%; max-width: 420px; border: none; font-family: var(--sans); cursor: pointer; }

.cform__alt { margin-top: 32px; font-size: 0.68rem; color: var(--tx-dim); letter-spacing: 0.1em; }

.cform__done {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.4rem, 5.6vw, 2rem);
    line-height: 1.8;
    margin-bottom: 24px;
}

.cform__backbtn { border-color: var(--tx-light); color: var(--tx-light); display: inline-flex; }

/* ==========================================================
   FAQ / PRIVACY — 静かな下層ページ
   ========================================================== */
.qa { background: var(--ink); padding: 88px 28px 96px; }

.qa__cat {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--accent);
    max-width: 720px;
    margin: 48px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-dark);
}

.qa dl { max-width: 720px; margin-bottom: 28px; }

.qa dt { font-weight: 700; margin-bottom: 8px; }

.qa dt::before { content: 'Q. '; color: var(--accent); font-family: var(--mono); }

.qa dd { color: var(--tx-dim); line-height: 2; margin-left: 0; }

.qa dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.policy2 { background: var(--ink); padding: 88px 28px 96px; }

.policy2 h4 {
    font-family: var(--serif);
    font-size: 1.02rem;
    color: var(--accent);
    margin: 34px 0 10px;
    max-width: 720px;
}

.policy2 p, .policy2 ul { color: var(--tx-dim); line-height: 2; max-width: 720px; font-size: 0.9rem; }

.policy2 ul { padding-left: 1.2em; }
.policy2 ul li { list-style: disc; }

/* ==========================================================
   RECRUIT — 採用情報の下層ページ
   ========================================================== */
.rec { background: var(--ink); padding: 88px 28px 96px; }

.rec__lead {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 5.5vw, 1.9rem);
    font-weight: 600;
    line-height: 1.9;
    color: var(--tx-light);
    max-width: 720px;
    margin: 40px 0 24px;
}

.rec__text { color: var(--tx-dim); line-height: 2; max-width: 720px; font-size: 0.9rem; }

.rec__cat {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--accent);
    max-width: 720px;
    margin: 56px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-dark);
}

.rec__table { max-width: 720px; }

.rec__table div {
    display: grid;
    grid-template-columns: 6.5em 1fr;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 0.88rem;
}

.rec__table dt { color: var(--tx-dim); font-weight: 400; padding-top: 1px; }
.rec__table dd { color: var(--tx-light); line-height: 1.9; }

.rec__flow { list-style: none; max-width: 720px; }

.rec__flow li {
    display: flex; gap: 14px; align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 0.88rem;
    color: var(--tx-light);
    line-height: 1.9;
}

.rec__flow .no {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    flex-shrink: 0;
}

.rec__actions { margin-top: 32px; display: grid; gap: 14px; max-width: 420px; }

.rec__btn { border-color: var(--tx-light); color: var(--tx-light); }
.rec__btn .mono { color: var(--accent); }
.rec__btn:hover { border-color: var(--accent); color: var(--accent); }

.rec__note { margin-top: 24px; font-size: 0.75rem; color: var(--tx-dim); line-height: 1.9; }

/* 読み物ページ内の準備中枠（破線＝図面の未確定線） */
.rec__prep {
    max-width: 720px;
    border: 1px dashed var(--line-dark);
    padding: 44px 24px;
    text-align: center;
}

.rec__prep-mark {
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    color: var(--accent);
    margin-bottom: 14px;
}

.rec__prep-text { font-size: 0.85rem; color: var(--tx-dim); line-height: 2; }

.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 22px; }

.foot__links a {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    color: var(--tx-dim);
    border-bottom: 1px solid var(--line-dark);
    padding-bottom: 2px;
}

.foot__links a:hover { color: var(--accent); border-color: var(--accent); }

.cform__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.foot {
    background: var(--deep);
    padding: 48px 28px 96px;
    border-top: 1px solid var(--line-dark);
    text-align: center;
}

.foot__name { font-family: var(--serif); font-weight: 600; font-size: 1rem; }
.foot__sub { margin-top: 6px; font-size: 0.58rem; color: var(--tx-dim); letter-spacing: 0.2em; }
.foot__copy { margin-top: 28px; font-size: 0.58rem; color: var(--tx-dim); }

/* ==========================================================
   PC 拡張（768px〜）
   ========================================================== */
@media (min-width: 768px) {
    .hero__inner { padding: 0 8vw; }
    .hero__meta { max-width: 860px; }
    .hero__title { font-size: clamp(4rem, 7.4vw, 6.4rem); }

    .sec-label { font-size: 0.78rem; }

    .phil, .svc, .co, .cta, .stats, .era, .tech, .notes, .poems,
    .qa, .policy2, .cform, .rec, .foot { padding-left: 8vw; padding-right: 8vw; }

    .tech__spec, .tech__term { max-width: 760px; }

    .fusion__stage { height: 360px; max-width: 900px; }
    .fusion__dict { max-width: 760px; }

    .works__progress { margin-left: 8vw; margin-right: 8vw; }

    .stats__grid { grid-template-columns: repeat(3, 1fr); max-width: 960px; }

    .svc-card--feature { display: grid; grid-template-columns: 1.1fr 1fr; }
    .svc-card--feature .svc-card__img { aspect-ratio: auto; height: 100%; }
    .svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .svc .sec-label, .svc-card--feature { grid-column: 1 / -1; }
    .svc-card { margin-bottom: 0; }
    .svc-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11, 31, 26, 0.14); }

    .works .sec-label, .works__note { padding-left: 8vw; padding-right: 8vw; }
    .works__prep { margin: 0 8vw; }
    .works__scroller { padding: 0 8vw 24px; }
    .works__item { flex-basis: 38%; }
    .works__item:hover img { filter: saturate(1.05); }

    .co__list div { max-width: 720px; }
    .cta__actions { grid-template-columns: repeat(3, 1fr); max-width: 960px; }
    .cform__form, .cform__intro, .cform__alt { max-width: 640px; }
}

/* ==========================================================
   超ワイド画面 — 内容を中央の帯に寄せる（トップ1040px・下層760px）
   ========================================================== */
@media (min-width: 1400px) {
    :root {
        --pad: calc((100vw - 1040px) / 2);
        --pad-sub: calc((100vw - 760px) / 2);   /* 読み物ページ用の狭い帯 */
    }

    .hero__inner { padding: 0 var(--pad); }
    .hero__marks-note { left: var(--pad); }
    .hero__cue { right: var(--pad); }

    .phil, .svc, .co, .cta, .stats, .era, .tech, .notes, .poems, .foot { padding-left: var(--pad); padding-right: var(--pad); }

    /* 下層の読み物ページは、本文幅(720px)に合わせた狭い帯で中央に置く。
       観測記録ページの .notes/.poems はトップと部品共用のため、ページ側の目印で狭い帯に切り替える */
    .qa, .policy2, .cform, .rec,
    .notes-page .notes, .notes-page .poems { padding-left: var(--pad-sub); padding-right: var(--pad-sub); }

    .works .sec-label { padding-left: var(--pad); padding-right: var(--pad); }
    /* works__note は max-width:640px を持つため、余白は padding でなく margin で外側に取る */
    .works__note { padding-left: 0; padding-right: 0; margin-left: var(--pad); margin-right: var(--pad); }
    .works__prep { margin: 0 var(--pad); }
    /* 実績スライダーは帯の内側に収める（右端まで流さない） */
    .works__scroller { margin: 0 var(--pad); padding: 0 0 24px; }
    .works__progress { margin-left: var(--pad); margin-right: var(--pad); }

    .co__pin { right: var(--pad); }

    .menu { padding: 0 var(--pad); }
}

/* ==========================================================
   動きを減らす設定の尊重
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .hero__line span { transform: none; }
    .hero__sub { opacity: 1; }
    html { scroll-behavior: auto; }
}
