/* ==========================================
   メインビジュアル（ヒーローセクション動画）
========================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; /* 動画切り替え時の背景色 */
}

/* 動画全体を囲むラッパー */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
}
.hero-video.active { opacity: 1; }

/* 動画の上に被せる暗いフィルター */
.hero::after {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* コンテンツ部分 */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: #ffffff;
    z-index: 3;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.en-main {
    display: block;
    font-size: clamp(36px, 8vw, 80px);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.1;
    
    /* アニメーション設定 */
    opacity: 0; /* 最初は透明にしておく */
    animation: fadeInUp 1.8s ease-out forwards;
    animation-delay: 0.5s; /* 動画が流れ始めてから文字を出す */
}

/* 日本語サブコピー：英語のさらに少し後（1.2秒後）に開始 */
.ja-sub {
    display: block;
    font-size: clamp(14px, 3vw, 20px);
    margin-top: 20px;
    letter-spacing: 0.4em;
    color: #c5a059;
    font-weight: 300;
    
    /* アニメーション設定 */
    opacity: 0; /* 最初は透明にしておく */
    animation: fadeInUp 1.8s ease-out forwards;
    animation-delay: 1.2s; /* 英語より遅れて表示させることで余韻を作る */
}

.main-copy {
    font-size: 46px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
    margin-bottom: 20px;
}

.sub-copy {
    display: block;
    font-size: 0.6em;
    font-weight: 300;
}

.lead-text {
    font-size: 18px;
    letter-spacing: 0.15em;
    color: #e6c687;
    font-weight: 600;
}

/* スクロールダウン表示 */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.2em;
}

@media screen and (max-width: 768px) {
    .ja-sub { letter-spacing: 0.25em; }
}

/* ==========================================
   Contact セクション（About usページ下部）
========================================== */
.about-contact-section {
    position: relative;
    width: 100%;
    margin-top: 120px;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 画像を固定し、スクロール時にパララックス効果を出す */
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 画像のトーンを落とす、深いネイビーの透過レイヤー */
    background-color: rgba(17, 34, 51, 0.85);
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 左側のテキスト群 */
.contact-left .contact-title {
    font-size: clamp(40px, 5vw, 60px);
    font-family: 'Helvetica Neue', Arial, serif;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.contact-left .contact-sub {
    font-size: 14px;
    color: #e0e0e0;
    letter-spacing: 0.05em;
}

/* 右側のボタンデザイン */
.contact-right {
    display: flex;
    align-items: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.8);
}

.contact-btn i.fa-envelope {
    font-size: 18px;
    margin-right: 20px;
    color: #ffffff;
}

.contact-btn .btn-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-right: 20px;
}

.contact-btn .btn-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-right: 40px;
}

.contact-btn i.fa-arrow-right-long {
    font-size: 14px;
}

/* ==========================================
   スマートフォン対応（レスポンシブ）
========================================== */
@media screen and (max-width: 768px) {
    .about-contact-section {
        padding: 80px 0;
    }
    .contact-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
        padding: 0 20px;
    }
    .contact-left .contact-title {
        margin-bottom: 10px;
    }
    .contact-right {
        width: 100%;
    }
    .contact-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 18px 25px;
    }
    .contact-btn .btn-text {
        margin-right: auto; /* テキストと矢印の間隔を自動で広げて右端に寄せる */
    }
}

/* ==========================================
   トップページ専用：サービス一覧セクション
========================================== */
.index-services-section {
    width: 100%;
    min-height: 100vh; /* 💡追加：最低でも画面1個分の高さを強制的に持たせる */
    padding-top: 170px; /* 💡追加：ヘッダーの下に綺麗に収めるための余白 */
    background-color: #ffffff;
    /* 既存の他のスタイルがあればその下に残してください */
}

/* タイトルエリア */
.index-service-header {
    text-align: center;
    margin-bottom: 60px;
}
.index-service-title {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #1a1a1a;
}

/* 4つのナビゲーション（横並び） */
.index-service-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 50px;
}

/* 各サービス項目（リンク） */
.index-service-nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 35px 15px;
    text-align: center;
    transition: all 0.3s ease;
    border-right: 1px solid #e5e5e5;
}
/* 一番右端のアイテムだけ右側の縦線を消す */
.index-service-nav-item:last-child {
    border-right: none;
}

/* テキストとアイコンのスタイル */
.index-service-nav-item .nav-text-en {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #333;
    transition: color 0.3s ease;
}
.index-service-nav-item i {
    font-size: 11px;
    color: #aaa;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* マウスホバー時のリッチなエフェクト */
.index-service-nav-item:hover {
    background-color: #fbfaf7; /* ほんのり上品な背景色 */
}
.index-service-nav-item:hover .nav-text-en {
    color: #bfa15f; /* コーポレートカラーに変色 */
}
.index-service-nav-item:hover i {
    color: #bfa15f;
    transform: translateX(4px); /* 矢印が右にちょっと動く */
}

/* View More ボタンの配置エリア */
.index-service-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* View More ボタン本体 */
.index-view-more-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a;
    padding: 10px 20px;
    transition: all 0.3s ease;
    position: relative;
}
.index-view-more-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}
.index-view-more-btn:hover {
    color: #bfa15f;
    opacity: 1;
}
.index-view-more-btn:hover i {
    transform: translateX(6px); /* 矢印が右にスライドする動き */
}

/* ==========================================\
   スマートフォン対応（レスポンシブ）
========================================== */
@media screen and (max-width: 768px) {
    .index-service-nav {
        flex-direction: column; /* スマホでは縦並びに切り替え */
        border-bottom: none;
    }
    .index-service-nav-item {
        width: 100%;
        justify-content: space-between; /* スマホ時は左右に綺麗に散らす */
        padding: 25px 20px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
}