@charset "UTF-8";

/* =========================================================
   sorkas CSS — Bootstrap完全独立 / 色変数ゼロ（#hex直書き）
   ========================================================= */

/* ---------- 1. Root & Basic Elements ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-weight: 400;
    /* Standard weight */
    margin: 0;
    color: #000;
    line-height: 1.5;
    /* ノイズ背景（body::before）をページ全体の高さに広げる基準 */
    position: relative;
    /* ブラウザ既定の水色タップハイライトを消し、:active はブランド色で出す */
    -webkit-tap-highlight-color: transparent;
}

/* ---------- 2. Typography utilities (独自・Bootstrap utility 卒業) ---------- */

.big30 {
    letter-spacing: -0.6px;
}

.big40 {
    letter-spacing: -0.8px;
}

.big50 {
    line-height: 0.9;
    letter-spacing: -1px;
}

/* 可変表示テキスト：画面幅で文字が伸び縮み（数字＝最大px）。clamp() は .clamp* のみに隔離。
   hero など見せ場・狭幅で折返し崩れを防ぎたい見出し専用。通常見出しは big 系（固定px） */
.clamp50 {
    font-size: clamp(28px, 8vw, 50px);
    line-height: 1;
    letter-spacing: clamp(-1px, -0.16vw, -0.56px);
}

.big60 {
    font-size: 60px;
    line-height: 0.9;
    letter-spacing: -1.2px;
}

.big70 {
    font-size: 70px;
    line-height: 0.9;
    letter-spacing: -1.4px;
}

.big80 {
    font-size: 80px;
    line-height: 0.9;
    letter-spacing: -1.6px;
}

.big100 {
    letter-spacing: -2px;
}

.text18 {
    font-size: 18px;
}

/* アクセントフォント（欧文専用） */
.gfont {
    font-family: 'Big Shoulders Display', sans-serif;
}

.gfont-mono {
    font-family: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;
}

/* ---------- 3. Color utilities ---------- */
.gray {
    color: #6c757d;
}

.orange {
    color: #F0531A;
}

.red {
    color: #FF0000;
}

/* ---------- Grid 補助（boot.css に無い sorkas 固有分） ---------- */

/* md (768px+) */
@media (min-width: 768px) {
    .order-md-1 {
        order: 1;
    }

    .order-md-2 {
        order: 2;
    }
}

/* スマホは section の上下 96px（pt-7 / pb-7）が広すぎるため 48px に詰める */
@media (max-width: 767px) {
    .pt-7 {
        padding-top: 48px;
    }

    .pb-7 {
        padding-bottom: 48px;
    }
}

/* lg (992px+) */
@media (min-width: 992px) {
    /* 横並び時のみ画像上端から下げる（折り返し時は縦ガターと二重になるため） */
    .pt-lg-4 {
        padding-top: 24px;
    }

    .order-lg-1 {
        order: 1;
    }

    .order-lg-2 {
        order: 2;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s ease;
}

a:hover {
    opacity: 0.7;
}

a:active {
    opacity: 1;
    color: #F0531A;
}

/* ---------- 4. Header & Navigation (Common Template) ---------- */
.header {
    width: 100%;
    background: #1A1A1A;
    border-bottom: 1px solid #333;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

/* Hamburger Menu Logic */
#hamburger {
    display: none;
}

.menu-trigger {
    display: block;
    position: relative;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 101;
}

.menu-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: .3s;
}

.menu-trigger span:nth-of-type(1) {
    top: 0;
}

.menu-trigger span:nth-of-type(2) {
    top: 11px;
}

.menu-trigger span:nth-of-type(3) {
    bottom: 0;
}

#hamburger:checked+.menu-trigger span:nth-of-type(1) {
    transform: translateY(11px) rotate(-45deg);
}

#hamburger:checked+.menu-trigger span:nth-of-type(2) {
    opacity: 0;
}

#hamburger:checked+.menu-trigger span:nth-of-type(3) {
    transform: translateY(-11px) rotate(45deg);
}

.global_menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 100;
}

#hamburger:checked~.global_menu {
    opacity: 1;
    visibility: visible;
}

/* スマホ：全画面メニュー内で中央に縦並び */
.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item a {
    color: #fff;
    text-decoration: none;
    padding-bottom: 4px;
    background-image: linear-gradient(#F0531A, #F0531A);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 0% 2px;
    transition: background-size .9s cubic-bezier(0, .7, 0, 1), color .2s;
}

.nav-item a:hover {
    opacity: 1;
    background-position: left bottom;
    background-size: 100% 2px;
    transition: background-size .25s cubic-bezier(.2, .8, .2, 1);
}

/* 現在地（各ページで該当リンクに aria-current="page"） */
.nav-item a[aria-current="page"] {
    color: #F0531A;
}

/* ---------- 5. Layout ---------- */
.main {
    width: 100%;
}

/* ---------- 6. Footer (matte black) ---------- */
.footer {
    padding: 64px 0 24px;
    background: #1A1A1A;
    color: #fff;
    font-size: 12px;
    border-top: 2px solid #F0531A;
}

.footer-logo {
    height: 56px;
    width: auto;
    display: block;
}

.footer-nav li {
    margin-bottom: 4px;
    white-space: nowrap;
}

.footer-nav li:last-child {
    margin-bottom: 0;
}

/* PC は横並び（モバイルは上の縦並びのまま） */
@media (min-width: 768px) {
    .footer-nav {
        display: flex;
        gap: 16px;
    }

    .footer-nav li {
        margin-bottom: 0;
    }
}

.footer-hr {
    border: 0;
    border-top: 1px solid #3a3a3a;
    margin: 48px 0;
}

.copyright {
    color: #6c757d;
}

/* ---------- 7. Media Queries ---------- */
@media (min-width: 992px) {
    .menu-trigger {
        display: none;
    }

    .global_menu {
        position: static;
        height: auto;
        background: transparent;
        opacity: 1;
        visibility: visible;
        display: block;
    }

    .nav-list {
        flex-direction: row;
        gap: 32px;
    }
}

/* =========================================================
   Card Block (col 内コンテンツの軽い枠)
   ========================================================= */
.card {
    background: #fff;
    border: 1px solid #ababab;
    padding: 24px;
    height: 100%;
}

/* 黒バック内のカード（works実験：グレー地・黒文字・padding小・画像大きめ） */
.bg-dark .card {
    background: #e0e0e0;
    border-color: #ababab;
    padding: 12px;
    color: #000;
}

.bg-dark .card .gray {
    color: #555;
}

/* works カードのタイトル：スマホは縦棒なしで写真と同じ幅。
   768px以上は縦棒を1行目の高さ（16px×1.2）に固定し、折り返しても伸ばさない */
.bg-dark .card .b-mark {
    border-left: 0;
    padding-left: 0;
}

.bg-dark .card .b-indent {
    padding-left: 0;
}

@media (min-width: 768px) {
    .bg-dark .card .b-mark {
        padding-left: 13px;
        background: linear-gradient(#F0531A, #F0531A) left top / 5px 19px no-repeat;
    }

    .bg-dark .card .b-indent {
        padding-left: 13px;
    }
}

/* index 導線カード（カード全体をリンク化 + works とは画角を変える横長クロップ） */
a.card {
    display: block;
    padding: 16px;
    color: #000;
    text-decoration: none;
    transition: border-color .2s cubic-bezier(.2, .8, .2, 1);
}

/* hover：header menu と同じ snappy easing でオレンジ枠をパキッと表示（global の opacity 減衰は打ち消す） */
a.card:hover {
    opacity: 1;
    border-color: #F0531A;
}

a.card:active {
    opacity: 1;
    color: #000;
    border-color: #F0531A;
    background-color: #FEF1ED;
}

/* =========================================================
   Dark feature card（Linear系の面階層 / 角丸なし＝コンクリート・マット）
   canvas #0f0f10 の上に微グラデの面カードを乗せ、極細border で締める。
   説明文は muted、アイコンは枠付きタイルに載せて刺し色を効かせる。
   ========================================================= */
.feature-dark {
    background: #0f0f10;
}

.feature-dark .card {
    background: linear-gradient(180deg, #1b1c1e, #151618);
    border: 1px solid #26272b;
    color: #f7f8f8;
}

.feature-dark .card h3 {
    color: #f7f8f8;
}

.feature-dark .card p {
    color: #8a8f98;
}

.ico-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    background: #212225;
    border: 1px solid #303236;
}

.ico-tile .material-symbols-outlined {
    font-size: 28px;
}

/* Light feature card（feature-dark の白反転。off-white の面に白カード、アイコンタイルはオレンジ薄色） */
.feature-light {
    background: #f8f9fa;
}

.feature-light .card p {
    color: #555;
}

.feature-light .ico-tile {
    background: #FEF1ED;
    border-color: #FAC3AF;
}

.card-img-wide {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* hover で枠内の写真だけズーム（.img-zoom＝クリップ窓、はみ出しを隠す） */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    display: block;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

a.card:hover .img-zoom img {
    transform: scale(1.06);
}

/* section に上下 padding。相殺しないので必ず効く。広げたい所だけ section に pt- pb- を足す */
section {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* =========================================================
   Button base (Bootstrap独立化対応 — sorkas は本体含めて自前)
   ========================================================= */
.btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 0;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* form-tie dot — 文言の前に⚪︎リング（currentColor連動） */
.btn::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 8px;
    vertical-align: 1px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: transparent;
}

.btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px #F8A98D;
}

.btn-lg {
    padding: 8px 16px;
    font-size: 20px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 14px;
}

/* variant ごとに color / bg / border を #hex 直書き（base・hover・active） */
.btn-orange {
    color: #fff;
    background-color: #F0531A;
    border-color: #F0531A;
}

.btn-orange:hover {
    color: #fff;
    background-color: #FF6B33;
    border-color: #FF6B33;
}

.btn-orange:active {
    color: #fff;
    background-color: #F0531A;
    border-color: #F0531A;
}

.btn-dark {
    color: #fff;
    background-color: #1A1A1A;
    border-color: #1A1A1A;
}

.btn-dark:hover {
    color: #fff;
    background-color: #000;
    border-color: #000;
}

.btn-dark:active {
    color: #fff;
    background-color: #000;
    border-color: #000;
}

.btn-dark::before {
    border-color: #F0531A;
}

.btn-gray {
    color: #1A1A1A;
    background-color: transparent;
    border-color: #1A1A1A;
}

.btn-gray:hover {
    color: #fff;
    background-color: #1A1A1A;
    border-color: #1A1A1A;
}

.btn-gray:active {
    color: #fff;
    background-color: #1A1A1A;
    border-color: #1A1A1A;
}

.btn-outline-light {
    color: #fff;
    background-color: transparent;
    border-color: #fff;
}

.btn-outline-light:hover {
    color: #1A1A1A;
    background-color: #fff;
    border-color: #fff;
}

.btn-outline-light:active {
    color: #1A1A1A;
    background-color: #fff;
    border-color: #fff;
}

/* =========================================================
   Background & Text Color utilities
   ========================================================= */

.bg-dark {
    background-color: #1A1A1A;
}

.bg-light {
    background-color: #f8f9fa;
}

.bg-orange {
    background-color: #F0531A;
}

.text-orange {
    color: #F0531A;
}

.text-white {
    color: #fff;
}

.text-black {
    color: #000;
}

/* =========================================================
   Tables (独自・実使用分のみ / Bootstrap互換)
   ========================================================= */

.table {
    width: 100%;
    margin-bottom: 0;
    vertical-align: top;
    border-color: #dee2e6;
}

.table th {
    font-weight: 400;
    text-align: left;
}

.table th::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    vertical-align: 1px;
    border: 1.5px solid #F0531A;
    border-radius: 50%;
    background: transparent;
}

.b-mark {
    border-left: 5px solid #F0531A;
    padding-left: 8px;
    line-height: 1.2;
}

/* 工事の流れ 右向き矢印型ステップ（sample方式 / matte黒＋オレンジ番号） */
.step-arrow {
    background: #1A1A1A;
    color: #fff;
    padding: 14px 32px 14px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}

.step-num {
    background: #F0531A;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* オレンジ⚪︎リング（btn::before と同意匠のリストマーカー） */
.dot-ring {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 8px;
    vertical-align: 1px;
    border: 1.5px solid #F0531A;
    border-radius: 50%;
}

.b-indent {
    padding-left: 13px;
}

/* 経営理念 通し番号リスト（オレンジ丸＋白番号 / .step-num意匠） */
.philosophy-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    counter-reset: phil;
}

.philosophy-list>li {
    counter-increment: phil;
    position: relative;
    padding-left: 40px;
}

.philosophy-list>li::before {
    content: counter(phil);
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    background: #F0531A;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* Google Map 埋め込み */
.map-embed {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

.lh-sm {
    line-height: 1.4;
}

/* 代表挨拶 写真回り込み（モバイル=上に小さく / PC=右へfloat） */
.ceo-photo {
    display: block;
    width: 200px;
    max-width: 60%;
    margin: 0 auto 16px;
    border: 1px solid #ababab;
}

@media (min-width: 768px) {
    .ceo-photo {
        float: right;
        width: 320px;
        max-width: 45%;
        margin: 0 0 16px 32px;
    }
}

/* 経営理念 写真：横並び時だけ50px上げる */
@media (min-width: 992px) {
    .philosophy-photo {
        margin-top: -50px;
    }
}

/* 黒地用テーブル（会社概要等） */
.bg-dark .table {
    border-color: #333;
}

.bg-dark .table> :not(caption)>*>* {
    padding: 20px 8px;
    border-bottom-color: #333;
}

/* 項目欄：スマホは文字幅ぴったり（右欄を広げる）、768px以上は200px固定 */
.table th {
    width: 1%;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .table th {
        width: 200px;
        white-space: normal;
    }
}

.table> :not(caption)>*>* {
    padding: 8px 8px;
    border-bottom: 1px solid #dee2e6;
}

.table>thead {
    vertical-align: bottom;
}

.table>tbody {
    vertical-align: inherit;
}

/* table-bordered */
.table-bordered> :not(caption)>* {
    border-width: 1px 0;
    border-style: solid;
    border-color: #dee2e6;
}

.table-bordered> :not(caption)>*>* {
    border-width: 0 1px;
    border-style: solid;
    border-color: #dee2e6;
}

/* table-hover */
.table-hover>tbody>tr:hover>* {
    background-color: #f2f2f2;
}

/* =========================================================
   Forms (独自・実使用分のみ)
   Portions adapted from Bootstrap v5.3.3 (https://getbootstrap.com)
   Copyright 2011-2024 The Bootstrap Authors / Licensed under MIT
   ========================================================= */

.form-label {
    display: inline-block;
    margin-bottom: 8px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

.form-control:focus {
    color: #000;
    background-color: #fff;
    border-color: #F0531A;
    outline: 0;
    box-shadow: 0 0 0 4px #FBD4C6;
}

textarea.form-control {
    min-height: 38px;
}

.form-check {
    display: block;
    min-height: 24px;
    padding-left: 24px;
    margin-bottom: 2px;
}

.form-check-input {
    width: 13px;
    height: 13px;
    margin-top: 3px;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #bfbfbf;
    appearance: none;
    print-color-adjust: exact;
}

.form-check .form-check-input {
    float: left;
    margin-left: -20px;
}

.form-check-input[type="checkbox"] {
    border-radius: 3px;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:focus {
    border-color: #F0531A;
    outline: 0;
    box-shadow: 0 0 0 4px #FBD4C6;
}

.form-check-input:checked {
    background-color: #F0531A;
    border-color: #F0531A;
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-label {
    cursor: pointer;
}

.privacy-box {
    max-height: 240px;
    overflow-y: auto;
    padding: 16px 24px;
    background-color: #fff;
    border: 1px solid #ababab;
    line-height: 1.5;
}

/* =========================================================
   Display / Flex / Sizing / Misc Utilities
   (Bootstrap独立化対応 — sorkas は最初から自前)
   ========================================================= */

/* スマホは中央寄せ、768px以上は左寄せ */
.mobilecenter {
    text-align: center;
}

@media (min-width: 768px) {
    .mobilecenter {
        text-align: left;
    }

    .d-md-block {
        display: block;
    }

    .d-md-none {
        display: none;
    }
}

/* アンカー着地時に sticky ヘッダー（76px）で見出しが隠れないよう逃がす */
section[id] {
    scroll-margin-top: 96px;
}

/* badge */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 6px;
}

/* アイコン（bootstrap-icons 卒業: SVG 背景で自前。16px・本文中央付近・fill はマット黒） */
.ico {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.ico-chevron-right {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231A1A1A'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.ico-calendar {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231A1A1A'%3e%3cpath d='M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2M1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857z'/%3e%3cpath d='M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2'/%3e%3c/svg%3e");
}

/* =========================================================
   Blueprint Design System (型枠図面意匠 — sorkas実験中)
   ========================================================= */

:root {
    --grid-pitch-x: 60px;
    --grid-pitch-y: 180px;
    /* 型枠パネル比 3:1（縦長） */
}

/* hero専用：Swiper 4枚 fade スライダー（背景画像はスライドが持つ） */
.hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    /* フェード暗転時に透ける下地＝黒 */
    background: #000;
}

.hero-swiper {
    height: calc(100vh - 50px);
    /* ロゴ背景(hero-logo)より前面に。暗転時だけ背後のロゴが透ける */
    position: relative;
    z-index: 1;
}

/* スライド間の暗転で一瞬だけ見えるロゴ入りバックドロップ（swiperの背後・黒の上） */
.hero-logo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../img/s-b.png') center / cover no-repeat;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* フェード演出 */
.hero-swiper .swiper-slide {
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
}

.hero-swiper .swiper-slide-active {
    opacity: 1 !important;
    transition: opacity 0.5s ease 0.5s !important;
}

/* 背景レイヤー（テキストと分離してズームさせる＝Ken Burns） */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* 基準（非アクティブ）＝ズーム完了サイズ。ここを end と一致させることで
       アクティブが外れた瞬間の「縮み（scale(1)へのリセット）」が起きない */
    transform: scale(1.10);
}

/* Ken Burns：アクティブ＋退場中(prev)の背景を拡大。両者に同一 animation を指定することで
   active→prev のクラス移動でもアニメが再スタートせず継続 → フェードアウト中も拡大が続く。
   duration 7s は退場完了(約6.4s)より長く、end(1.10) は基準と同値でスナップしない。ゆっくりめのレート */
.hero-swiper .swiper-slide-active .hero-bg,
.hero-swiper .swiper-slide-prev .hero-bg {
    animation: kenburns 7s ease-out forwards;
}

@keyframes kenburns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.10);
    }
}

.hero-bg1 {
    background-image: url('../img/s1.jpg');
    background-position: 80% center;
}

.hero-bg2 {
    background-image: url('../img/s2.jpg');
}

.hero-bg3 {
    background-image: url('../img/s3.jpg');
}

.hero-bg4 {
    background-image: url('../img/s4.jpg');
    background-position: left center;
}

.hero-copy {
    position: relative;
    z-index: 1;
    transform: translateY(10px);
}

@media (min-width: 768px) {
    .hero-copy {
        transform: translateY(-30px);
    }
}

/* 見出し：写真上でも読める上品なソフトシャドウ（黒を淡くぼかす） */
.hero-copy h2 {
    text-shadow: 0 2px 12px #000;
}

/* サブテキスト：黒帯を敷いて視認性UP。文字幅にだけ効くよう inline-block */
.hero-copy p {
    display: inline-block;
    padding: 6px 16px;
    background: #000;
    /* 黒帯は下から伸びて先に出現（copy-band）。テキストはその後 copy-up */
    transform: scaleY(0);
    transform-origin: center bottom;
}

/* コピー出現演出：窓（.reveal＝overflow hidden）の下から文字（.reveal-in）がスライドイン。
   active と prev に同一 animation＝クラス移動で再スタートせず、退場フェード中の瞬時リセットを防ぐ */
.hero-copy .reveal {
    display: block;
    overflow: hidden;
}

.hero-copy .reveal-in {
    display: block;
    transform: translateY(110%);
}

/* 出現順（base 0.6s＝スライドのフェードイン開始に同期、上から順の pon pon pon）
   h2 0.6s → p黒帯 0.7s（0.25sで下から伸びる）→ p文字 0.95s（黒帯完了後）→ btn 1.3s */
.hero-swiper .swiper-slide-active .reveal-in,
.hero-swiper .swiper-slide-prev .reveal-in {
    animation: copy-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero-swiper .swiper-slide-active .hero-copy p,
.hero-swiper .swiper-slide-prev .hero-copy p {
    animation: copy-band 0.25s ease-out 0.7s forwards;
}

/* p文字は移動距離を短く（50%）し、opacity 併用で途中出現の切れ目を隠す */
.hero-swiper .swiper-slide-active .hero-copy p .reveal-in,
.hero-swiper .swiper-slide-prev .hero-copy p .reveal-in {
    animation: copy-up-short 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}

.hero-copy .btn {
    opacity: 0;
}

.hero-swiper .swiper-slide-active .hero-copy .btn,
.hero-swiper .swiper-slide-prev .hero-copy .btn {
    animation: copy-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
}

@keyframes copy-up {
    from {
        transform: translateY(110%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes copy-up-short {
    from {
        opacity: 0;
        transform: translateY(50%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes copy-band {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes copy-rise {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 左右ナビ矢印（白・hover でオレンジ＋矢印方向に5px スライド・easing） */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    /* Swiper 既定 44px → 28px（機能変数のため温存） */
    --swiper-navigation-size: 28px;
    /* 既定の当たり判定は矢印と同じ約17x28px で狭すぎる。矢印の大きさは変えず箱だけ広げる */
    --swiper-navigation-sides-offset: 0px;
    width: 56px;
    height: 56px;
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* スマホは矢印を出さない（スワイプとページネーションで送る） */
@media (max-width: 767px) {
    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        display: none;
    }
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    color: #F0531A;
}

.hero-swiper .swiper-button-prev:hover {
    transform: translateX(-5px);
}

.hero-swiper .swiper-button-next:hover {
    transform: translateX(5px);
}

/* スライド最上部（header 直下）の autoplay 進捗バー（2px オレンジ） */
.hero-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #F0531A;
    z-index: 20;
}

/* スライド遷移を強めの ease-out（急発進→急減速・メリハリ強） */
.hero-swiper .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.05, 0.9, 0.1, 1);
}

/* pagination：白枠の輪郭丸（塗りなし）。現在地は白枠の中にオレンジ丸 */
.hero-swiper .swiper-pagination {
    bottom: 160px;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 1.5px solid #fff;
    background: transparent;
    opacity: 1;
    margin: 0 7px;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #F0531A;
    background-clip: content-box;
    padding: 2px;
}

/* 背景に薄く敷く図面グリッド（60×180パネル + form-tie dot 3つ縦並び・⚪︎リング状） */
.grid-bg {
    background-image:
        radial-gradient(circle at center,
            transparent 0,
            transparent 1px,
            #6a6a6a 1px,
            #6a6a6a 1.6px,
            transparent 1.6px),
        linear-gradient(to right, #2c2c2c 1px, transparent 1px),
        linear-gradient(to bottom, #2c2c2c 1px, transparent 1px);
    background-size:
        var(--grid-pitch-x) var(--grid-pitch-x),
        var(--grid-pitch-x) var(--grid-pitch-y),
        var(--grid-pitch-x) var(--grid-pitch-y);
}

.b-hr {
    border: 0;
    border-top: 1px solid currentColor;
    margin: 24px 0;
    opacity: 0.5;
}

.b-hr-dot {
    border: 0;
    border-top: 2px dotted currentColor;
    margin: 24px 0;
    opacity: 0.7;
}

/* =========================================================
   Scroll Reveal (wow.js が .animated を付けて発火させる)
   ========================================================= */

/* 発火前は隠す */
.wow {
    visibility: hidden;
}

/* 見出し・本文・画像：下から10px 浮かせてフェード */
.fadeInUp {
    animation-name: fadeInUp;
    animation-duration: .8s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    30% {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeIn {
    animation-name: fadeIn;
    animation-duration: .8s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* 写真：外枠は動かさず、下から幕が上がる。中の画像だけ大きい状態から実寸へ寄る */
/* 外枠と中身で別々に動かすため transition 方式。animation にすると
   中の画像が wow.js の管理外で読込時に走り切ってしまう */
.i-wipe {
    overflow: hidden;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1s cubic-bezier(.85, 0, .15, 1);
}

.i-wipe.animated {
    clip-path: inset(0 0 0 0);
}

.i-wipe .ani-i {
    display: block;
    width: 100%;
    transform: scale(1.12);
    /* 幕の立ち上がりに 0.2s 遅れて縮小を始め、幕より長くかけて流れを繋ぐ */
    transition: transform 3s cubic-bezier(.22, 1, .36, 1) .2s;
}

.i-wipe.animated .ani-i {
    transform: scale(1);
}

/* works カードの写真：枠（.img-zoom）は動かさず、中の画像だけ大きい状態から実寸へ縮む。
   カード（.wow）の発火を待って始まり、遅延は reveal.js がカードの時間差に合わせて積む */
/* 拡大した状態で出し、縮小の開始を待つ。will-change は終了時の画素の再計算でカクつくのを防ぐ */
.zoom-out {
    transform: scale(1.15);
    will-change: transform;
}

.shown .zoom-out {
    animation: zoomOut .6s cubic-bezier(.3, 0, .1, 1) both;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* works カードの写真枠：i-wipe の逆。上から下へ幕が下りて写真が現れる
   （.stagger の時間差を効かせるため transition ではなく animation） */
.shown .wipe-down {
    animation: wipeDown 1s cubic-bezier(.85, 0, .15, 1) both;
}

@keyframes wipeDown {
    0% {
        clip-path: inset(0 0 100% 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* works カードのオレンジ縦棒：カードが出て 0.6s 後に、写真と同じく上から下へ伸びて現れる
   （縦棒は 768px 以上の背景グラデなので background-size の高さで伸ばす） */
.shown .b-mark.fade-text {
    animation: barDown 1s cubic-bezier(.85, 0, .15, 1) both, textFade .6s ease both;
}

/* タイトルは縦棒（背景）を別に動かすので、opacity ではなく文字色だけをフェードさせる */
@keyframes textFade {
    0% {
        color: transparent;
    }
}

@keyframes barDown {
    0% {
        background-size: 5px 0;
    }

    100% {
        background-size: 5px 19px;
    }
}

/* 欧文ラベル：1文字ずつ送り出す（分解は reveal.js が行う） */
.text-reveal {
    display: inline-block;
}

/* works カードのタイトル・仕様：まとめてフェード（発火はカードの .shown、遅延は reveal.js） */
.shown .fade-text {
    animation: fadeIn .6s ease both;
}

.text-reveal-char {
    display: inline-block;
    /* 1文字ずつ inline-block にすると半角スペースが潰れるため保持する */
    white-space: pre;
    opacity: 0;
    transform: translateY(5px);
}

.text-reveal-active .text-reveal-char {
    animation: revealChar .2s cubic-bezier(.2, 1, .2, 1) forwards;
}

@keyframes revealChar {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    /* 動きを抑えたい環境では最終状態で静止表示 */
    .wow,
    .wow * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
}

/* =========================================================
   Noise Overlay (70'sフィルムグレイン)
   ========================================================= */
body::before {
    content: "";
    /* 画面に固定せず、コンテンツと一緒にスクロールさせる */
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-repeat: repeat;
    filter: contrast(2) brightness(1);
    mix-blend-mode: multiply;
}