/* ===========================================================================
   公式ホームページ（_LayoutSite）用のスタイル。
   業務画面の site.css / Bootstrap とは読み込まない。クラス名が被っても影響しない。

   ★ CSP（Program.cs）で外部フォント・外部画像は読めないため、フォントは OS のものを使う。
   =========================================================================== */

:root {
    --ground: #F4F7F9;
    --paper: #FFFFFF;
    --ink: #0F2A33;
    --ink-2: #4A626A;
    --line: #D6E1E5;
    --blue: #0072B4;          /* ロゴの青 */
    --blue-2: #0082C6;
    --blue-ink: #FFFFFF;
    --blue-soft: #E1F0F9;
    --teal: #52DED7;
    --teal-soft: #D9F6F4;
    --orange: #E85D00;
    --orange-soft: #FFE7D6;
    --grid-off: #E7EEF0;
    --shadow: 0 24px 48px -24px rgba(15, 42, 51, .35);
    --shadow-s: 0 8px 20px -12px rgba(15, 42, 51, .3);
    --radius: 14px;
    --f-display: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
    --f-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
    --f-mono: ui-monospace, "SFMono-Regular", "Consolas", "BIZ UDGothic", monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ground: #0B1C22; --paper: #12272E; --ink: #E4F1F2; --ink-2: #9DB6BB; --line: #24424A;
        --blue: #3BA9D6; --blue-2: #5BBDE6; --blue-ink: #07161B; --blue-soft: #123447;
        --teal: #52DED7; --teal-soft: #123B3D; --orange: #FF8A3D; --orange-soft: #3A2414; --grid-off: #1A333A;
        --shadow: 0 24px 48px -24px rgba(0, 0, 0, .7); --shadow-s: 0 8px 20px -12px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --ground: #0B1C22; --paper: #12272E; --ink: #E4F1F2; --ink-2: #9DB6BB; --line: #24424A;
    --blue: #3BA9D6; --blue-2: #5BBDE6; --blue-ink: #07161B; --blue-soft: #123447;
    --teal: #52DED7; --teal-soft: #123B3D; --orange: #FF8A3D; --orange-soft: #3A2414; --grid-off: #1A333A;
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, .7); --shadow-s: 0 8px 20px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.35; margin: 0; text-wrap: balance; word-break: auto-phrase; font-weight: 800; }
p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--blue-2); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 14px; border-radius: 8px; }

.eyebrow {
    font-family: var(--f-mono);
    font-size: 12.5px;
    letter-spacing: .16em;
    color: var(--blue);
    font-weight: 700;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--blue);
    color: var(--blue-ink);
    font-weight: 700;
    font-family: var(--f-body);
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 999px;
    font-size: 15px;
    line-height: 1.4;
    border: 0;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}
.btn:hover { color: var(--blue-ink); filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn.lg { padding: 16px 30px; font-size: 16px; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

.more { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.more::after { content: "→"; transition: transform .15s ease; }
.more:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--ground) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); line-height: 1.25; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-size: 11px; color: var(--ink-2); letter-spacing: .04em; }
.brand b { display: block; font-family: var(--f-display); font-size: 17px; font-weight: 800; letter-spacing: .02em; }

.gnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.gnav a { color: var(--ink); text-decoration: none; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.gnav a:hover { background: var(--paper); color: var(--ink); }
.gnav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.gnav .btn { color: var(--blue-ink); padding: 9px 18px; margin-left: 10px; font-size: 14px; }
.gnav .btn:hover { background: var(--blue); }
.gnav .ext::after { content: "↗"; font-size: 11px; margin-left: 3px; color: var(--ink-2); }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; background: currentColor; margin-inline: auto; position: relative; transition: transform .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .gnav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 20px 20px;
        background: var(--ground);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-s);
    }
    .gnav.open { display: flex; }
    .gnav a { padding: 12px; font-size: 16px; }
    .gnav .btn { margin: 8px 0 0; padding: 14px; }
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: 96px; }
.section.tight { padding-block: 64px; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; max-width: 44em; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.sec-head p { color: var(--ink-2); }

/* ---------------------------------------------------------------- top: hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto auto;
    width: 780px;
    height: 780px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--blue-2) 22%, transparent), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
    opacity: .5;
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.02fr; gap: 56px; align-items: center; padding-block: 72px 96px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.28; letter-spacing: -.01em; margin-top: 18px; font-weight: 900; }
.hero h1 .hl { background: linear-gradient(transparent 64%, color-mix(in srgb, var(--teal) 80%, transparent) 64%); padding-inline: 2px; }
.hero .catch-pre { margin-top: 18px; font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; color: var(--ink); }
.hero .catch-pre + h1 { margin-top: 6px; }
.hero .lead { margin-top: 24px; font-size: 17px; color: var(--ink-2); max-width: 31em; }
.hero .lead p + p { margin-top: .8em; }
.hero .actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .meta { margin-top: 28px; display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.hero .meta span::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 6px; }

/* ヒーローの業務画面イメージ（装飾）。PCの一覧画面とスマホの画面を重ねる */
.hero .wrap > * { min-width: 0; }
.app-mock { position: relative; min-height: 500px; font-size: 12px; color: var(--ink); }
.app-mock .mono { font-family: var(--f-mono); }
.app-mock em { font-style: normal; }
.win { position: absolute; right: 0; top: 0; width: 94%; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--grid-off); border-bottom: 1px solid var(--line); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.win-bar span { margin-left: 10px; font-size: 11px; color: var(--ink-2); }
.win-body { display: grid; grid-template-columns: 96px 1fr; min-height: 360px; }
.win .side { display: grid; align-content: start; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--line); }
.win .side b { font-size: 10.5px; color: var(--ink-2); padding: 0 8px 6px; }
.win .side span { padding: 6px 8px; border-radius: 6px; }
.win .side span.on { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.win .main { padding: 14px 16px; display: grid; gap: 12px; align-content: start; }
.win .crumb { font-size: 11px; color: var(--ink-2); }
.win .search { display: flex; gap: 8px; flex-wrap: wrap; }
.win .search .f { flex: 1; min-width: 70px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; color: var(--ink-2); font-size: 11px; }
.win .search .go { background: var(--blue); color: var(--blue-ink); border-radius: 6px; padding: 5px 14px; font-size: 11px; font-weight: 700; }
.win .rows { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.win .row { display: grid; grid-template-columns: 1fr 1.3fr 1fr .9fr; gap: 8px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.win .row.head { border-top: 0; background: var(--grid-off); font-size: 10.5px; color: var(--ink-2); font-weight: 700; }
.win .row .num { text-align: right; font-family: var(--f-mono); }
.mini-phone { position: absolute; left: 0; bottom: 0; width: 196px; background: #6B8088; border-radius: 24px; padding: 2px; box-shadow: var(--shadow); }
.mini-phone .screen { background: var(--ground); border-radius: 22px; overflow: hidden; padding: 0 10px 14px; display: grid; gap: 8px; }
.mini-phone .ph-head { margin-inline: -10px; padding: 12px; background: var(--blue); color: var(--blue-ink); font-weight: 700; text-align: center; }
.mini-phone .card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.mini-phone .card small { grid-column: 1 / -1; color: var(--ink-2); font-size: 10px; }
.mini-phone .card em { justify-self: start; }
.mini-phone .card span { font-family: var(--f-mono); color: var(--ink-2); }

/* 工事予約ページの画面イメージ（装飾） */
/* 案内状（紙）とスマホの予約画面を重ねた図。工事予約ページで使う。画像は実物のスクリーンショット */
.stage { position: relative; min-height: 560px; margin: 0; }
.stage figure { margin: 0; }
.paper { position: absolute; left: 0; top: 10px; width: 72%; background: #FFFFFF; padding: 6px; border-radius: 4px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.paper img { display: block; width: 100%; height: auto; }
.phone { position: absolute; right: 0; bottom: 0; width: 262px; background: #6B8088; border-radius: 24px; padding: 2px; box-shadow: var(--shadow); }
.phone .screen { background: #FFFFFF; border-radius: 22px; overflow: hidden; }
.phone .screen img { display: block; width: 100%; height: auto; }

.chip { display: inline-block; font-size: 10.5px; padding: 1px 8px; border-radius: 999px; background: var(--grid-off); color: var(--ink-2); white-space: nowrap; }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.teal { background: var(--teal-soft); color: var(--ink); }
.chip.orange { background: var(--orange-soft); color: var(--orange); }

/* ---------------------------------------------------------------- top: services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-visual { position: relative; height: 220px; overflow: hidden; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%); }
.service-visual.alt { background: linear-gradient(135deg, #0F6F7A 0%, #34BDB6 100%); }
.service-visual.ai { background: linear-gradient(135deg, #0F2A33 0%, #1E5468 100%); }
.service-body { padding: 28px 30px 30px; display: grid; gap: 12px; align-content: start; }
.service-body h3 { font-size: clamp(20px, 2.2vw, 25px); word-break: normal; overflow-wrap: anywhere; }   /* 3列で狭いとき、長いカタカナの名前で枠からはみ出さないように */
.service-body p { color: var(--ink-2); font-size: 15px; }
.service-body .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.service-body .more { margin-top: 8px; color: var(--blue); }

/* サービスカードの装飾（コードは描かず、形だけで見せる） */
.blocks { position: absolute; inset: 30px 30px -20px 30px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.blocks div { background: rgba(255, 255, 255, .95); border-radius: 10px; padding: 12px; display: grid; gap: 7px; align-content: start; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.blocks div:nth-child(2) { transform: translateY(26px); }
.blocks i { display: block; height: 8px; border-radius: 4px; background: #D6E1E5; }
.blocks i.b { background: #0072B4; width: 45%; }
.blocks i.t { background: #52DED7; width: 70%; }
.blocks i.s { width: 60%; }
.blocks .gear { font-family: var(--f-mono); font-size: 11px; color: #0072B4; font-weight: 700; }

.yoyaku-deco { position: absolute; inset: 0; }
.yoyaku-deco img { display: block; height: auto; }
.yoyaku-deco .y-paper { position: absolute; left: 9%; top: 26px; width: 42%; background: #FFFFFF; padding: 4px; border-radius: 3px; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .55); transform: rotate(-4deg); }
.yoyaku-deco .y-phone { position: absolute; right: 12%; top: 34px; width: 34%; max-width: 170px; background: #6B8088; border-radius: 18px; padding: 2px; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .55); }
.yoyaku-deco .y-phone img { width: 100%; border-radius: 16px; }

/* AI監視ページの画面イメージ（枠を付けるWEB画面と、監視中のスマホ画面）。画像は実物のスクリーンショット */
.ai-deco { position: absolute; inset: 0; }
.ai-deco img { display: block; height: auto; }
.ai-deco .a-win { position: absolute; left: 7%; top: 30px; width: 62%; background: #FFFFFF; padding: 3px; border-radius: 6px; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7); }
.ai-deco .a-phone { position: absolute; right: 8%; top: 20px; width: 30%; max-width: 140px; background: #6B8088; border-radius: 18px; padding: 2px; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7); }
.ai-deco .a-phone img { width: 100%; border-radius: 16px; }

/* ---------------------------------------------------------------- flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: flow; }
.flow li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.flow li::before {
    counter-increment: flow;
    content: counter(flow, decimal-leading-zero);
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: .1em;
}
.flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -15px; top: 50%;
    width: 10px; height: 10px;
    border-top: 2.5px solid var(--blue);
    border-right: 2.5px solid var(--blue);
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
}
.flow h3 { font-size: 20px; }
.flow p { color: var(--ink-2); font-size: 14.5px; }
.flow li.last { background: var(--blue-soft); border-color: transparent; }
.flow-note { margin-top: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; display: grid; gap: 10px; }
.flow-note h3 { font-size: 17px; }
.flow-note p, .flow-note ul { color: var(--ink-2); font-size: 14.5px; }
.flow-note ul { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }

/* ---------------------------------------------------------------- message */
.message { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.message h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 14px; }
.message .body { display: grid; gap: 18px; color: var(--ink-2); font-size: 16px; }
.message .sign { color: var(--ink); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.message .sign b { font-size: 18px; }
.message .sign small { color: var(--ink-2); }

/* ---------------------------------------------------------------- CTA */
.cta {
    position: relative;
    overflow: hidden;
    background: #0F2A33;
    color: #E4F1F2;
    border-radius: 22px;
    padding: 60px 56px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}
.cta::after {
    content: "";
    position: absolute;
    right: -120px; bottom: -160px;
    width: 420px; height: 420px;
    background: radial-gradient(closest-side, rgba(82, 222, 215, .35), transparent);
    pointer-events: none;
}
.cta h2 { font-size: clamp(24px, 3.2vw, 36px); color: #FFFFFF; }
.cta p { color: #A9C2C8; margin-top: 14px; }
.cta .cta-actions { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: start; }
.cta .btn { background: #52DED7; color: #0F2A33; }
.cta .btn:hover { color: #0F2A33; }

/* ---------------------------------------------------------------- sub pages */
.sub-hero { padding-block: 64px 56px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper), var(--ground)); }
.sub-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; margin-top: 12px; }
.sub-hero .lead { margin-top: 18px; color: var(--ink-2); max-width: 40em; font-size: 16.5px; }
.sub-hero .lead.wide { max-width: none; }

/* 下層ページのヒーローの背景装飾（.sub-hero に deco を足したときだけ）。
   見出しとリード文が左半分で終わるページで、右側の余白を埋める。
   CSP で外部画像が読めないため、方眼と光だけで描く */
.sub-hero.deco { position: relative; overflow: hidden; }
.sub-hero.deco > .wrap { position: relative; z-index: 1; }
.sub-hero.deco::before,
.sub-hero.deco::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.sub-hero.deco::before {
    background:
        radial-gradient(circle at 84% 22%, color-mix(in srgb, var(--blue-2) 24%, transparent), transparent 58%),
        radial-gradient(circle at 99% 95%, color-mix(in srgb, var(--teal) 20%, transparent), transparent 52%);
}
.sub-hero.deco::after {
    background-image:
        repeating-linear-gradient(45deg, color-mix(in srgb, var(--blue) 16%, transparent) 0 1px, transparent 1px 14px),
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: auto, 38px 38px, 38px 38px;
    mask-image: radial-gradient(ellipse 58% 105% at 87% 40%, #000 12%, transparent 74%);
    -webkit-mask-image: radial-gradient(ellipse 58% 105% at 87% 40%, #000 12%, transparent 74%);
    opacity: .6;
}
.crumbs { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* ---------------------------------------------------------------- error page（レイアウトを使わない単独のページ） */
.error-page { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 48px 20px; }
.error-page .error-code { font-size: clamp(64px, 12vw, 120px); line-height: 1; font-weight: 700; letter-spacing: .04em; color: var(--blue); opacity: .25; margin-bottom: 20px; }
.error-page h1 { font-size: clamp(24px, 3.6vw, 34px); }
.error-page .lead { margin-top: 16px; color: var(--ink-2); max-width: 34em; }
.error-page .btn { margin-top: 36px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .copy { display: grid; gap: 16px; }
.split .copy h2 { font-size: clamp(24px, 3vw, 34px); }
.split .copy p { color: var(--ink-2); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
    content: "";
    position: absolute;
    left: 0; top: .35em;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230072B4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 18px; }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card .num { font-family: var(--f-mono); color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .1em; }

/* 事例カードの画面イメージ（装飾）。オーダーメイドシステムのページで使う */
.card-mock { margin: -26px -24px 8px; height: 196px; padding: 18px 20px; background: var(--ground); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; font-size: 11px; color: var(--ink); display: grid; align-items: center; }
.card-mock .mono { font-family: var(--f-mono); }
.cm-win { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-s); }
.cm-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: var(--grid-off); border-bottom: 1px solid var(--line); }
.cm-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.cm-bar span { margin-left: 6px; font-size: 10px; color: var(--ink-2); }
.cm-table > div { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 6px; padding: 5px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.cm-table > div.head { border-top: 0; font-size: 10px; color: var(--ink-2); font-weight: 700; }
.cm-table > div > :last-child { text-align: right; }
.cm-docs { display: flex; align-items: center; justify-content: center; gap: 6px; }
.cm-doc { flex: 1; max-width: 92px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 10px 8px; display: grid; gap: 6px; box-shadow: var(--shadow-s); }
.cm-doc b { font-size: 11px; }
.cm-doc i { display: block; height: 5px; border-radius: 3px; background: var(--grid-off); }
.cm-doc i.s { width: 60%; }
.cm-doc span { font-size: 10px; color: var(--ink-2); text-align: right; }
.cm-doc.on { border-color: var(--blue); }
.cm-doc.on b { color: var(--blue); }
.cm-arr { color: var(--blue); font-weight: 700; }
.cm-form { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; box-shadow: var(--shadow-s); }
.cm-field { display: grid; gap: 3px; }
.cm-field small, .cm-slots small { font-size: 10px; color: var(--ink-2); }
.cm-field span { border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; }
.cm-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.cm-slots small { grid-column: 1 / -1; }
.cm-slots span { text-align: center; padding: 3px 0; border-radius: 5px; background: var(--blue-soft); color: var(--blue); font-family: var(--f-mono); font-weight: 700; }
.cm-slots span.full { background: var(--grid-off); color: var(--ink-2); text-decoration: line-through; font-weight: 400; }
.cm-slots span.pick { background: var(--blue); color: var(--blue-ink); }

/* 保守費用の比較（Order） */
.timeline-cmp { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-s); display: grid; gap: 22px; }
.tl-row { display: grid; gap: 8px; }
.tl-row b { font-size: 14px; }
.tl-bar { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 4px; }
.tl-bar span { height: 34px; border-radius: 6px; background: var(--grid-off); display: grid; place-items: center; font-size: 11px; color: var(--ink-2); text-align: center; line-height: 1.25; }
.tl-bar span.init { background: var(--ink-2); color: var(--paper); font-weight: 700; }
.tl-bar span.spike { background: var(--orange-soft); color: var(--orange); font-weight: 700; }
.tl-bar span.flat { background: var(--blue-soft); color: var(--blue); }
.tl-bar span.init.low { background: var(--blue); color: var(--blue-ink); }
.tl-axis { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 4px; font-size: 11px; color: var(--ink-2); text-align: center; font-family: var(--f-mono); }
.tl-note { font-size: 12px; color: var(--ink-2); }

/* 会社概要 */
.profile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; overflow: hidden; }
.profile > div { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line); }
.profile > div:last-child { border-bottom: 0; }
.profile dt { padding: 18px 24px; font-weight: 700; background: color-mix(in srgb, var(--ground) 60%, var(--paper)); font-size: 14.5px; }
.profile dd { margin: 0; padding: 18px 24px; }
.profile ul { margin: 0; padding-left: 1.2em; }
.profile-note { margin-left: 1em; font-size: 13px; color: var(--ink-2); }

.history { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.history li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding-bottom: 26px; position: relative; }
.history li::before { content: ""; position: absolute; left: 124px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.history li::after { content: ""; position: absolute; left: 129px; top: 22px; bottom: -8px; width: 1.5px; background: var(--line); }
.history li:last-child::after { display: none; }
.history time { font-family: var(--f-mono); font-weight: 700; color: var(--blue); font-size: 14px; }
.history p { padding-left: 24px; }

/* 文章ページ（プライバシーポリシー） */
.prose { max-width: 820px; }
.prose h2 { font-size: 20px; margin-top: 40px; margin-bottom: 12px; padding-left: 14px; border-left: 4px solid var(--blue); }
.prose p, .prose ul { color: var(--ink-2); }
.prose ul { padding-left: 1.4em; margin: 10px 0 0; }
.prose address { font-style: normal; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 14px; }

/* ---------------------------------------------------------------- contact form */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow-s); }
.form-card fieldset { min-width: 0; border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form-card .field { display: grid; gap: 6px; min-width: 0; align-content: start; }   /* 隣の欄にエラーが出て行が高くなっても、入力欄を伸ばさない */
.form-card .field.wide { grid-column: 1 / -1; }
.form-card .form-label { font-weight: 700; font-size: 14.5px; }
.form-card .form-label.required::after {
    content: "必須";
    margin-left: 8px;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 4px;
    background: var(--orange-soft);
    color: var(--orange);
    vertical-align: 1px;
}
.form-card .field-control { display: grid; gap: 4px; align-content: start; }
.form-card .form-control {
    width: 100%;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    background: var(--ground);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 11px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-card .form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); background: var(--paper); }
.form-card .form-select {
    width: 100%;
    max-width: calc(50% - 10px);   /* 1行2項目の左の列と同じ幅 */
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 11px 40px 11px 14px;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-card .form-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.form-card textarea.form-control { min-height: 200px; resize: vertical; line-height: 1.7; }
.form-card .input-validation-error { border-color: var(--orange); }
.form-card .field-note { font-size: 12.5px; color: var(--ink-2); }
.form-card .text-danger { color: var(--orange); font-size: 13px; font-weight: 700; }
.form-card .field-validation-valid { display: none; }
/* .form-card fieldset の2列グリッドを受け継ぐと、選択肢が左の列に押し込まれて折れるため block に戻す */
.form-card .radios { grid-column: 1 / -1; display: block; border: 0; padding: 0; margin: 0; }
.radios legend { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; padding: 0; }
.radios .opts { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 14.5px; background: var(--ground); }
.radios input { accent-color: var(--blue); width: 16px; height: 16px; margin: 0; }
.radios label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.form-foot { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
/* 送信に失敗したとき（Contact の SendFailed）。モーダルではなくフォームの先頭に出す */
.form-alert { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 28px; padding: 16px 20px; border-radius: 12px; background: var(--orange-soft); border-left: 4px solid var(--orange); color: var(--ink); }
.form-alert:focus { outline: none; }
.form-alert .mark { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #FFFFFF; display: grid; place-items: center; font-weight: 700; font-size: 16px; line-height: 1; }
.form-alert p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.form-alert .title { font-weight: 700; font-size: 15.5px; color: var(--ink); margin-bottom: 2px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 56px 36px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.thanks .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; font-size: 30px; color: var(--blue); }
.thanks h2 { font-size: 26px; }
.thanks p { color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 96px; background: #0B1C22; color: #9DB6BB; font-size: 14px; }
.site-footer .wrap { padding-block: 56px 32px; display: grid; gap: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand, .site-footer .brand:hover { color: #E4F1F2; }
.site-footer .brand small { color: #9DB6BB; }
.site-footer address { font-style: normal; margin-top: 16px; line-height: 1.8; }
.site-footer h4 { color: #E4F1F2; font-size: 13px; letter-spacing: .1em; margin-bottom: 12px; font-family: var(--f-mono); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #C9DBDF; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.foot-bottom { border-top: 1px solid #24424A; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }

/* ---------------------------------------------------------------- 画像の拡大表示（hp.js の a.zoom） */
a.zoom { display: block; cursor: zoom-in; border-radius: inherit; }
a.zoom:focus-visible { outline-offset: 4px; }
.zoom-dialog { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.zoom-dialog::backdrop { background: rgba(8, 20, 25, .82); }
.zoom-dialog img { display: block; max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: 8px; background: #FFFFFF; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); cursor: zoom-out; }
.zoom-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #FFFFFF; color: #0F2A33; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- _Messages / _ErrorModal
   Bootstrap の CSS を読まないため、共通部品が使うクラスだけ最低限用意する（JS は bootstrap.bundle）。 */
.alert { position: relative; margin: 16px auto; max-width: 1120px; border-radius: 10px; padding: 14px 48px 14px 18px; background: var(--teal-soft); color: var(--ink); }
.alert .close, .modal .close, .btn-close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--ink-2); cursor: pointer; padding: 6px; }
.fade { transition: opacity .15s linear; }
.fade:not(.show) { opacity: 0; }
.modal { position: fixed; inset: 0; z-index: 1055; display: none; overflow-y: auto; }
.modal-dialog { position: relative; max-width: 480px; margin: 12vh auto; padding-inline: 16px; }
.modal-content { position: relative; background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.modal-header { padding: 18px 48px 10px 22px; }
.modal-title { font-size: 18px; }
.modal-body { padding: 4px 22px 16px; color: var(--ink-2); white-space: pre-line; }
.modal-footer { padding: 12px 22px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.modal-footer .btn { padding: 9px 20px; font-size: 14px; }
.btn-secondary { background: var(--grid-off); color: var(--ink); }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: #000; }
.modal-backdrop.show { opacity: .5; }
body.modal-open { overflow: hidden; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 920px) {
    .section { padding-block: 72px; }
    .hero .wrap, .services, .message, .split, .cta, .foot-grid { grid-template-columns: 1fr; }
    .hero .wrap { gap: 40px; padding-block: 48px 72px; }
    .message { gap: 24px; }
    .flow, .cards { grid-template-columns: 1fr; max-width: 620px; }
    .flow { gap: 26px; }
    .flow li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -19px; transform: rotate(135deg); }
    .cta { padding: 44px 28px; }
    .sub-hero.deco::after { display: none; }
    .sub-hero.deco::before { opacity: .7; }
}
@media (max-width: 600px) {
    .stage { min-height: 520px; }
    .app-mock { min-height: 420px; }
    .win { width: 100%; }
    .win-body { grid-template-columns: 1fr; }
    .win .side { display: none; }
    .win .row { grid-template-columns: 1.3fr 1fr .9fr; }
    .win .row > :first-child { display: none; }
    .mini-phone { width: 150px; }
    .mini-phone .card span { display: none; }
    .paper { width: 86%; }
    .phone { width: 210px; }
    .service-body { padding: 24px 22px; }
    .form-card { padding: 24px 20px; }
    .form-card fieldset { grid-template-columns: 1fr; }
    .form-card .form-select { max-width: none; }
    .profile > div { grid-template-columns: 1fr; }
    .profile dt { padding: 12px 18px 4px; background: transparent; color: var(--ink-2); font-size: 13px; }
    .profile dd { padding: 0 18px 14px; }
    .history li { grid-template-columns: 1fr; gap: 2px; padding-left: 28px; }
    .history li::before { left: 0; top: 8px; }
    .history li::after { left: 5px; top: 20px; }
    .history p { padding-left: 0; }
    .tl-bar span { font-size: 9.5px; }
}
