@charset "UTF-8";

/* * {
    border: 1px solid #000;
} */

/* =========================================
   Base Styles (全体共通)
========================================= */

html {
    font-size: 62.5%;
}

body {
    background: #FFB937;
    font-family: 'Lato', 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Segoe UI', 'Meiryo', sans-serif;
    font-weight: 500;

    ::selection {
        background-color: #ff0000d4;
    }
}

/* 共通クラス */
.en {
    font-family: "sofia-pro", sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.red {
    color: #ff0000;
}

.section-inner {
    width: 100%;
    padding: 0 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* 斜め文字タイトル */
.diagonal-text {
    font-family: sans-serif;
    font-size: 7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ff0000 0%, #ff0000 35%, #000000 35%, #000000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html {
    scroll-behavior: smooth;
    
    /* ヘッダーの高さ分、スクロール位置をずらす設定 */
    /* PCのヘッダー高さ(約70px) + 上の隙間(10px) + 余白(20px) = 100pxくらい */
    scroll-padding-top: 100px; 
}

/* スマホの時はヘッダーが小さいので調整 */
@media (max-width: 768px) {
    html {
        /* SPのヘッダー高さ(55px) + 余白考慮 */
        scroll-padding-top: 80px;
    }
}

/* =========================================
   Utility Classes (Responsive Line Breaks)
========================================= */

/* PCのみ改行（スマホでは改行しない） */
.pc-br {
    display: block;
}

@media (max-width: 768px) {
    .pc-br {
        display: none;
    }
}

/* スマホのみ改行（PCでは改行しない） */
.sp-br {
    display: none;
}

@media (max-width: 768px) {
    .sp-br {
        display: block;
    }
}

/* =========================================
   Header (PC / SP 統合)
========================================= */
.header {
    background: #fff;
    width: 97%;
    position: fixed;
    left: 50%;
    top: 10px;
    transform: translateX(-50%); /* PCはこれでOK */
    z-index: 1000;
    border-radius: 58px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
    /* backdrop-filter: blur(8px); */
    

    /* ▼▼▼ スマホ用の設定を変更 ▼▼▼ */
    @media (max-width: 768px) {
        width: 98%;
        top: 3px;
        
        /* transformを使わずに中央寄せする（これがズレない秘訣です） */
        left: 0;
        right: 0;
        margin: 0 auto;
        transform: none; /* PCの指定を解除 */
    }

    /* ▼▼▼ メニューが開いている時のスタイル ▼▼▼ */
    &.active {
        @media (max-width: 768px) {
            /* 位置やサイズは一切いじらない（これでズレません） */
            background-color: transparent; /* 背景だけ透明に */
            box-shadow: none;
            border-radius: 0;
        }
    }
}

/* ついでに、ロゴもメニュー展開時に白くするなら追加 */
.header.active .logo img {
    @media (max-width: 768px) {
        filter: brightness(0) invert(1);
    }
}

.header-inner {
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    @media (max-width: 768px) {
        height: 55px;
    }
}

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

    @media (max-width: 768px) {
        height: 50px;
    }
}

/* ハンバーガーボタン */
.hamburger {
    display: none;

    @media (max-width: 768px) {
        display: block;
        position: relative;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 2000; /* ナビより前面に */
    }

    span {
        @media (max-width: 768px) {
            position: absolute;
            left: 10px;
            width: 24px;
            height: 2px;
            background-color: #333;
            border-radius: 2px;
            transition: all 0.4s;
        }
    }

    /* 展開時は線を白くする */
    &.active span {
        background-color: #fff;
    }

    /* 3本線の位置 */
    span:nth-of-type(1) { top: 14px; }
    span:nth-of-type(2) { top: 21px; }
    span:nth-of-type(3) { top: 28px; }

    /* アクティブ時のアニメーション */
    &.active span:nth-of-type(1) {
        top: 21px;
        transform: rotate(45deg);
    }
    &.active span:nth-of-type(2) {
        opacity: 0;
    }
    &.active span:nth-of-type(3) {
        top: 21px;
        transform: rotate(-45deg);
    }
}

/* ナビゲーション */
.global-nav {
    margin-left: auto;

    /* ▼▼▼ スマホ用スタイル（ドロワー） ▼▼▼ */
    @media (max-width: 768px) {
        margin-left: 0;
        position: fixed;
        top: -3px;
        left: 0%;
        width: 100vw;
        height: 100vh;
        
        /* 背景色をダークグレーに変更（参考画像風） */
        background-color: #333; 
        color: #fff; /* 文字色を白に */
        
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        
        /* 縦スクロールを許可 */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        
        /* Flex設定をリセット（スクロールラッパーを使うため） */
        display: block; 
    }

    &.active {
        @media (max-width: 768px) {
            opacity: 1;
            visibility: visible;
        }
    }

    /* スクロール用ラッパー（中身を中央寄せしつつスクロール可能に） */
    .nav-scroll-wrapper {
        @media (max-width: 768px) {
            min-height: 100vh;
            padding: 60px 20px 60px; /* ヘッダー分と下の余白 */
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;
        }
    }

    ul {
        display: flex;
        gap: 20px;
        margin: 0;
        padding: 0;

        @media (max-width: 768px) {
            flex-direction: column;
            gap: 20px;
            text-align: center;
            width: 100%;
        }
    }

    ul li {
        list-style: none;
    }

    ul li a {
        color: #333;
        font-size: 18px;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.3s;

        &:hover {
            color: #f0a823;
        }

        /* スマホ時のリンク文字 */
        @media (max-width: 768px) {
            color: #fff; /* 白文字 */
            font-size: 1.8rem;
            display: block;
            padding: 5px;
        }
    }

    /* 現在地表示 */
    .current {
        color: #f0a823 !important;
    }

    /* ▼▼▼ 追加情報エリアのスタイル ▼▼▼ */
    .sp-nav-info {
        display: none; /* PCでは非表示 */

        @media (max-width: 768px) {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            gap: 20px;
            border-top: 1px solid rgba(255,255,255,0.1); /* 区切り線 */
            padding-top: 40px;
        }
    }

    /* コンバージョンボタン */
    .sp-nav-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 320px;
    }

    .sp-cv-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #fff;
        color: #333;
        text-decoration: none;
        padding: 15px 20px;
        border-radius: 4px;
        font-weight: 700;
        font-size: 1.4rem;
        transition: opacity 0.3s;

        &:hover {
            opacity: 0.8;
        }

        /* 矢印アイコン */
        svg {
            width: 20px;
            height: 20px;
        }
    }

    /* 会社情報 */
    .sp-contact-info {
        text-align: center;
        color: #fff;
        
        .tel-link {
            display: block;
            font-family: "sofia-pro", sans-serif; /* 数字を綺麗に */
            font-size: 2.8rem;
            font-weight: 700;
            color: #fff;
            text-decoration: none;
            margin-bottom: 10px;
            letter-spacing: 0.05em;
        }

        .business-hours, .company-name {
            font-size: 1.2rem;
            line-height: 1.8;
            opacity: 0.8;
        }
        
        .company-name {
            margin-top: 5px;
        }
    }

    /* SNSアイコン（白） */
    .sp-social {
        display: flex;
        gap: 20px;
        justify-content: center;

        .social-icon {
            color: #fff; /* アイコンを白に */
            width: 40px;
            height: 40px;
            background: transparent;
            border: 1px solid rgba(255,255,255,0.3); /* 薄い枠線 */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            
            &:hover {
                background: rgba(255,255,255,0.1);
            }

            svg {
                width: 20px;
                height: 20px;
            }
        }
    }
}

/* =========================================
   Header Buttons (PC)
========================================= */

/* ナビゲーションリストのレイアウト調整 */
.global-nav ul {
    align-items: center; /* ボタンと文字の上下中央揃え */
    gap: 15px; /* メニュー間の余白 */
}

/* ボタン共通スタイル */
.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 25px;
    border-radius: 50px;
    font-size: 1.4rem; /* 文字サイズ */
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap; /* 折り返し禁止 */
}

/* DOCUMENTボタン（白背景・黒文字・枠線） */
.doc-btn {
    background-color: #fff;
    color: #1a1f31;
    border: 1px solid #1a1f31;
}

.doc-btn:hover {
    background-color: #1a1f31;
    color: #fff;
    opacity: 1;
}

/* CONTACTボタン（オレンジ背景・白文字） */
.contact-btn {
    background-color: #F0A823;
    color: #fff;
    border: 1px solid #F0A823;
}

.contact-btn:hover {
    background-color: #fff;
    color: #F0A823;
    opacity: 1;
}

/* スマホ表示時の制御 */
@media (max-width: 768px) {
    /* PC用ボタンはスマホで隠す */
    .pc-only {
        display: none;
    }
}
/* =========================================
   Header Scroll Animation (PC/SP共通)
========================================= */

/* アニメーションの速度設定 */
.header {
    transition: transform 0.4s ease;
}

/* 隠れる時のスタイル */
.header.is-hidden {
    /* PC: 中央寄せ(translateX -50%)を維持しつつ、上に逃がす */
    transform: translateX(-50%) translateY(-200%);

    /* SP: 中央寄せはmarginでやっているので、単に上に逃がすだけでOK */
    @media (max-width: 768px) {
        transform: translateY(-200%);
    }
}

/* =========================================
   Top Page Content (MV, Bg, Cards)
========================================= */
/* .mv {
    margin-inline: auto;
    position: relative;
    width: 100%;

    .copy {
        position: absolute;
        right: 0;
        top: 45%;
        font-size: 59px;
        font-weight: 600;
        text-align: right;
    }
}

.sample-img {
    margin-right: 20%;
}
.sample-img img {
    display: block;
    width: 100%;
}

.color-black,
.color-white {
    font-size: 122px;
    font-weight: 900;
    height: calc(100% - 40%);
    overflow: hidden;
    position: absolute;
    top: 60%;
    line-height: 1.3;
    white-space: nowrap;
    text-align: right;
}

.color-black {
    right: 0;
    width: 20%;
}
.color-white {
    right: 0%;
    width: 100%;
}

.color-black span,
.color-white span {
    position: absolute;
}

.color-black span {
    color: #1c1c1c;
    right: 0;
}
.color-white span {
    color: #ff0000d4;
    right: 0;
} */


/* --- MV Section --- */
.mv {
    margin-inline: auto;
    position: relative;
    width: 100%;
    height: 100vh;

    @media (max-width: 768px) {
        height: 75vh;

    }

    /* 日本語コピー（右上） */
    .copy {
        position: absolute;
        right: 2%;
        bottom: 34%;
        /* PC: 59px, SP: 30px 程度の間で可変 */
        font-size: clamp(2rem, 5vw, 4.5rem);
        font-weight: 600;
        line-height: 1.8;
        text-align: right;
        z-index: 10;
        /* 画像より手前に */

        /* スマホ用調整 */
        @media (max-width: 768px) {
            top: 55%;
            /* 位置を少し上に */
            left: 50%;
            right: auto;
            width: 100%;
            transform: translateX(-50%);
            text-align: center;

        }
    }
}

/* メイン画像エリア */
.sample-img {
    height: 100vh;
    /* 画面の高さの85% */
}

/* 画像本体：親要素に合わせてリサイズ・トリミング */
.sample-img img {
    display: block;
    width: 100%;
    height: 100%;
    /* 高さを親(.sample-img)に合わせる */
    object-fit: cover;
    /* アスペクト比を維持したままエリアを埋める（トリミング） */
    object-position: center;
    /* 画像の中心を表示（必要に応じて top, bottom に変更） */
}

/* --- スマホ時の調整（必要であれば） --- */
@media (max-width: 768px) {
    .sample-img {
        margin-right: 0;
        /* スマホは全幅 */
        height: 75vh;
        /* スマホでは高さを少し抑える場合（例: 60vh） */
        /* スマホでも85vhにしたい場合は height: 85vh; のままでOK */
    }
}

/* 英語テキスト（共通設定） */
.color-black,
.color-white {
    /* PC: 122px, SP: 60px 程度の間で可変 */
    font-size: clamp(2rem, 10vw, 12.2rem);
    font-weight: 900;
    height: calc(100% - 40%);
    overflow: hidden;
    position: absolute;
    bottom: -28%;
    line-height: 1.3;
    white-space: nowrap;
    text-align: right;
    @media (max-width: 768px) {
        /* スマホでは中央配置など調整 */
        top: 65%;
        transform: translateY(-50%);
        height: auto;
        text-align: center;
        width: 100% !important;
        /* 強制的に全幅 */
        right: 0 !important;
    }
}

/* 黒文字（右側の余白用） */
.color-black {
    right: 2%;
    width: 20%;

    @media (max-width: 768px) {
        /* スマホでは画像が全幅になるため、背景用の黒文字は不要 */
        display: none;
    }
}

/* 白/赤文字（画像の上に乗る用） */
.color-white {
    right: 2%;
    width: 100%;

    @media (max-width: 768px) {
        /* スマホ時の調整があればここに記述 */
    }
}

/* テキストの中身（span） */
.color-black span,
.color-white span {
    position: absolute;

    @media (max-width: 768px) {
        position: static;
        /* スマホでは絶対配置を解除して自然に配置 */
    }
}

/* .color-black span {
    color: #1c1c1c;
    right: 0;
} */

.color-white span {
    color: #FF0000;
    right: 0;
}

/* Bg Animation Section */
.bg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    padding: 60px 20px;
}

.bg:before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 168, 35, 1);
    transform: translate(0, 100%);
    transition: transform cubic-bezier(0.215, 0.61, 0.355, 1) 0.6s;
    content: "";
}

.bg.-visible:before {
    transform: translate(0, 0);
}

.title {
    display: block;
    max-width: 1100px;
    margin: 0 auto 0 20%;

    @media (max-width: 768px) {
        margin: 0 auto;
    }
}

.title span {
    display: block;
    opacity: 0;
    transition: transform cubic-bezier(0.215, 0.61, 0.355, 1) 1s, opacity linear 0.7s;
}

.bg-title {
    transform: translate(0, 40px);
    font-size: clamp(2.2rem, 6.7vw, 6rem);
    transition-delay: 0.25s;
    font-weight: 600;
    letter-spacing: 1.8px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.bg-subtitle {
    margin-top: 18px;
    transform: translate(0, 30px);
    font-size: 24px;
    transition-delay: 0.45s;
    line-height: 59px;
    font-weight: 500;

    @media (max-width: 768px) {
        font-size: 15px;
        line-height: 2.3;
    }
}

.bg.-visible .title span {
    opacity: 1;
    transform: translate(0, 0);
}

/* Button */
.btn {
    /* --- PC / ベーススタイル --- */
    appearance: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 21px 21px;
    border-radius: 40px;
    background: #1a1f31;
    color: #fff;
    font-size: 23px;
    width: 400px;
    /* PCでは400px固定 */
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
    border: 1px solid #1a1f31;

    &:hover {
        border: 1px solid #fff;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    }

    &:focus-visible {
        outline: 2px solid #ffd166;
        outline-offset: 2px;
    }

    /* ▼▼▼ スマホ用レスポンシブ (ここに追加) ▼▼▼ */
    @media (max-width: 768px) {
        width: 100%;
        /* 幅を画面に合わせて伸縮させる */
        max-width: 320px;
        /* 必要に応じて最大幅を制限（例：320px） */
        font-size: 16px;
        /* 文字サイズを小さく（23px -> 16px） */
        padding: 15px;
        /* 内側の余白を少し狭く */
        margin: 30px auto;
        /* 上下の隙間を調整＆中央寄せ */

        /* もしボタン内の文字と矢印を中央に寄せたい場合は以下を追加 */
        /* justify-content: center; */
    }
}

.btn__label {
    white-space: nowrap;
    flex: 0 0 auto;
}

.btn__lane {
    position: relative;
    flex: 1 1 auto;
    height: 22px;
    min-width: 22px;
}

.btn__arrow {
    position: absolute;
    top: 50%;
    left: 0;
    width: 22px;
    height: 22px;
    transform: translateY(-50%) translateX(0);
    transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;

    @media (prefers-reduced-motion: reduce) {
        transition: none;
    }
}

/* Cards Section */
.cards {
    background-image: url(../img/service-bg.png);
    background-size: cover;
    background-position: center;
    padding: 120px 20px;

    @media (max-width: 768px) {
        gap: 12px;
        padding: 60px 15px;
    }
}

.cards-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.section-title {
    color: #fff;
    font-size: clamp(2.5rem, 5vw + 0.6rem, 6.6rem);
    font-weight: 500;
    letter-spacing: 3.3px;
    text-align: center;
}

.section-title-ja {
    color: #ff0000d4;
    font-size: clamp(1.5rem, 1.33vw + 1.0rem, 2.6rem);
    font-weight: 500;
    letter-spacing: 1.342px;
    text-align: center;
    margin-bottom: 60px;
}

.cards-row {
    display: flex;
    gap: 16px;
    align-items: stretch;

    @media (max-width: 768px) {
        flex-direction: column;
    }
}

.card {
    flex: 1 1 0%;
    min-width: 0;
    height: 180px;
    background: #ffb937;
    color: #1a1f31;
    border-radius: 20px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: flex-grow 420ms cubic-bezier(0.22, 0.61, 0.36, 1), background 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
    cursor: pointer;

    @media (max-width: 768px) {
        height: auto;
        padding: 24px 20px;
        flex-direction: column;
    }
}

.cards-row:hover .card {
    flex-grow: 1;
}

.cards-row:hover .card:hover {
    flex-grow: 2.2;
}

.card__head {
    font-weight: 700;
    font-size: 2.8rem;
    letter-spacing: 0.04em;
    text-align: center;
    transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1), font-size 420ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 1;

    @media (max-width: 768px) {
        font-size: 2rem;
        transform: none;
    }
}

.card__body {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    font-size: 2rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 420ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);

    @media (max-width: 768px) {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 8px;
        font-size: 1.5rem;
    }
}

.cards-row:hover .card:hover .card__head {
    transform: translateY(-48px);
    font-size: 2.2rem;
}

.cards-row:hover .card:hover .card__body {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   WORKS Section
========================================= */
.works {
    padding: 120px 20px 120px;
    width: 100%;

    @media (max-width: 768px) {
        padding: 60px 15px;
    }
}

.works-container {
    background-color: #0d1117;
    border-radius: 30px;
    padding: 60px 5%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    @media (max-width: 768px) {
        padding: 40px 20px;
        border-radius: 20px;
    }
}

.works-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;

    @media (max-width: 768px) {
        margin-bottom: 25px;
    }
}

.works-main-title {
    font-family: "sofia-pro", sans-serif;
    font-size: clamp(2.5rem, 5vw + 0.6rem, 6.6rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.05em;
    margin-bottom: 10px;

    @media (max-width: 768px) {
        font-size: 2.2rem;
    }
}

.works-sub-title {
    font-size: clamp(1.5rem, 1.33vw + 1.0rem, 2.6rem);
    font-weight: normal;
    color: #e0e0e0;
    letter-spacing: 0.1em;
}

.works-header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    color: #fff;

    svg {
        @media (max-width: 768px) {
            width: 20px;
            height: 20px;
        }
    }
}

.w-icon {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;

    &:hover {
        opacity: 1;
    }
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.work-card {
    background-color: #161b26;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;

    &:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.work-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #333;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
}

.work-card:hover .work-card__image img {
    transform: scale(1.05);
}

.work-card__title {
    font-size: clamp(1.8rem, 0.61vw + 1.6rem, 2.3rem);
    margin-bottom: 12px;
    font-weight: 500;
    color: #fff;
}

.work-card__tag {
    display: inline-block;
    border: 1px solid #9a7d46;
    color: #d4af68;
    padding: 2px 10px;
    font-size: 15px;
    margin-bottom: 20px;
    border-radius: 2px;
    align-self: flex-start;
}

.work-card__link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
    margin-top: auto;

    &:hover {
        opacity: 1;
        text-decoration: underline;
    }
}

.works-footer {
    text-align: right;
    margin-top: 20px;
}

.works-view-all {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;

    &:hover {
        gap: 12px;
    }
}


/* =========================================
   Team Section
========================================= */
.team {
    width: 100%;
    margin-bottom: 100px;
    img {
        width: 100%;
    }

    a {
        display: block;
        position: relative;
        width: 100%;

        .team-img {
            width: 100%;
            display: block;
            height: auto;
        }

        .team-img-hover {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.5s ease;
            z-index: 2;
        }

        &:hover .team-img-hover {
            opacity: 1;
        }
    }
}


/* =========================================
   CONTACT & RECRUIT Section
========================================= */
.contact-recruit {
    padding: 0px 20px 120px;
    width: 100%;
}

.cr-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 40px;

    @media (max-width: 900px) {
        flex-direction: column;
        gap: 30px;
    }
}

.cr-card {
    flex: 1;
    background-color: #F0A823;
    border-radius: 59px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 24px;

    @media (max-width: 900px) {
        padding: 10px;
        border-radius: 30px;
        gap: 10px;
    }
}

.cr-body {
    background-color: #161b26;
    border-radius: 40px;
    padding: 50px;
    color: #fff;
    flex-grow: 1;

    @media (max-width: 900px) {
        padding: 15px;
        border-radius: 20px;
    }
}

.cr-head {
    margin-bottom: 30px;
}

.cr-en {
    color: #fff;
    font-size: 66px;
    font-weight: 600;
    letter-spacing: 3.3px;
    margin-bottom: 10px;

    @media (max-width: 900px) {
        font-size: 2.5rem;
    }
}

.cr-ja {
    font-size: 16px;
    font-weight: 500;
}

.cr-text {
    font-size: clamp(1.5rem, 0.36vw + 1.36rem, 1.8rem);
    line-height: 2;
    letter-spacing: 0.05em;
}

/* Button Custom */
.cr-btn.btn {
    width: 100%;
    margin: 0;
    background-color: #161b26;
    border-radius: 100px;
    padding: 25px 40px;
    border: none;
    box-shadow: none;
    font-size: clamp(1.5rem, 0.36vw + 1.36rem, 1.8rem);

    &:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    @media (max-width: 900px) {
        padding: 20px 25px;
    }
}


/* =========================================
   Footer Section
========================================= */
.footer {
    background-color: #161B26;
    color: #fff;
    padding: 80px 20px 40px;

    @media (max-width: 768px) {
        padding: 60px 20px 30px;
    }
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;

    @media (max-width: 768px) {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
}

.footer-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    flex-wrap: wrap;

    @media (max-width: 768px) {
        justify-content: center;
        gap: 15px 20px;
    }
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(1.5rem, 0.36vw + 1.36rem, 1.8rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s;

    &:hover {
        color: #f0a823;
    }
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;

    @media (max-width: 768px) {
        margin-bottom: 30px;
    }
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #f0a823;
    border-radius: 50%;
    color: #161B26;
    transition: transform 0.3s, opacity 0.3s;

    &:hover {
        transform: translateY(-5px);
        opacity: 0.9;
    }
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: "A P-OTF A1Gothic Std", sans-serif;
    letter-spacing: 0.05em;
}
/* =========================================
   Loading Animation
========================================= */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #FFB937; /* bodyと同じベースの色 */
    z-index: 9999;
    
    /* 消える時のフェードアウト設定 */
    transition: opacity 0.5s ease, visibility 0.5s ease;

    /* 下から上がってくる濃い色 */
    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0%; /* 最初は高さ0 */
        background: #e69b00; /* 少し濃いオレンジ */
        
        /* 0.6秒かけて下から上に伸びる */
        animation: fillUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}

/* 読み込み完了後にJSでつけるクラス */
.loading.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 下から上に伸びるアニメーション定義 */
@keyframes fillUp {
    0% {
        height: 0%;
    }
    100% {
        height: 100%;
    }
}


