/* =====================================================
   1. 変数・基本設定
   ===================================================== */
:root {
    --primary-color: #002B5B;    /* 濃紺 */
    --accent-color: #F3A000;     /* オレンジ（旧ゴールド系から統一） */
    --gold-sub: #B8944F;         /* 補助用ゴールド */
    --text-color: #4A4A4A;
    --bg-beige: #FDF5E6;         /* メイン背景色 */
    --bg-white: #ffffff;
    --bg-offwhite: #f8f9fa;
    --transition: 0.3s ease;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-beige) !important;
    color: var(--text-color);
    font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none !important;
    color: inherit;
    transition: var(--transition);
}

/* =====================================================
   2. レイアウト（共通コンテナ）
   ===================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

main {
    margin-top: 80px; /* ヘッダー高さ分 */
    padding-top: 20px;
}

/* =====================================================
   3. ヘッダー・ナビゲーション（左右配置・固定版）
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #FDF5E6;
    border-bottom: 1px solid #e0dbca;
    z-index: 1000;
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
}

.header-container {
    display: flex !important; /* 強制的に横並び */
    justify-content: space-between !important; /* 左端と右端に飛ばす */
    align-items: center;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 4%;
}

/* ロゴエリア（左端に固定） */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.logo-img {
    height: 80px; /* サイズを微調整 */
    width: auto;
}

/* PC用メニュー（右寄せ・横並び） */
.nav-list {
    display: flex !important; /* PCでは必ず横並び */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px; /* 文字同士の間隔 */
}

.nav-list li {
    margin: 0;
}

.nav-list li a {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

/* モバイル用三本線（PCでは非表示） */
.menu-toggle {
    display: none !important;
}

/* --- レスポンシブ (768px以下) --- */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    /* モバイル時は文字メニューを消す */
    .nav-list {
        display: none !important;
    }


.menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center; /* 中央寄せに変更 */
        align-items: center;
        width: 30px;
        height: 30px; /* 正方形に近いほうが回転が綺麗です */
        position: relative; /* 棒の基準点 */
        z-index: 10001;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-toggle .bar {
        position: absolute; /* 3本を一度同じ位置に重ねる */
        width: 100%;
        height: 2px;
        background-color: var(--primary-color) !important;
        transition: all 0.3s ease;
    }

    /* 1本目：少し上に配置 */
    .menu-toggle .bar:nth-child(1) { transform: translateY(-8px); }
    /* 2本目：中央（そのまま） */
    .menu-toggle .bar:nth-child(2) { opacity: 1; }
    /* 3本目：少し下に配置 */
    .menu-toggle .bar:nth-child(3) { transform: translateY(8px); }

    /* ×印になった時の動き */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(0) rotate(45deg); /* 中央に移動してから回転 */
    }
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0; /* 真ん中の棒を消す */
    }
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(0) rotate(-45deg); /* 中央に移動してから回転 */
    }


    /* メニュー自体の重なり順を再確認 */
    .nav-list.active {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #FDF5E6;
        z-index: 9999; /* ボタンよりは下に設定 */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }
}
/* =====================================================
   4. 見出し（ページ共通）
   ===================================================== */
.page-en, .mission-en, .service-en {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

.page-jp, .mission-jp, .service-jp {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    line-height: 1.4;
}

/* =====================================================
   5. セクション（Mission / Service / SLJ）
   ===================================================== */
.mission-section, .service-section, .section {
    padding: 80px 0;
    background-color: var(--bg-beige); /* 基本ベージュで統一 */
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCでは3列 */
    gap: 30px; /* カード同士の間隔を少し広げて見やすく */
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%; /* 高さを揃える[cite: 1] */
}

.service-card.is-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   6. ヒーローセクション
   ===================================================== */
.hero {
    position: relative;
    width: 100%;        /* 100vwではなく100%でOK（親が全幅の場合） */
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
    margin-top: -80px;  /* ヘッダーの裏に潜り込ませる */
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

/* ★動画を枠いっぱいに広げる */
.hero-swiper video,
.swiper-slide video,
.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    display: block;
    transform: translate(-50%, -50%);
    object-fit: cover;  /* 隙間なく埋める */
}

.hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: var(--bg-white) !important;
    width: 90%;
    padding: 0 16px;
}
.hero-content h1 {
    font-size: clamp(24px, 5vw, 48px);
    line-height: 1.45;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        margin-top: -70px;
        background: #000;
    }

    .hero-swiper,
    .hero-swiper .swiper-wrapper,
    .hero-swiper .swiper-slide {
        height: 100%;
    }

    .hero-swiper video,
    .swiper-slide video,
    .hero video {
        object-fit: contain;
    }

    .hero-content {
        top: 62%;
        width: min(94%, 420px);
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: clamp(22px, 7vw, 34px);
        line-height: 1.55;
        text-shadow: 0 4px 18px rgba(0,0,0,0.7);
    }
}

/* =====================================================
   7. 会社概要・テーブル
   ===================================================== */
.company-table, table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}
th, td {
    padding: 25px 20px;
    border-bottom: 1px solid #E0D6C8;
    text-align: left;
}
th {
    width: 25%;
    color: var(--primary-color);
    font-weight: 700;
}

/* =====================================================
   8. フッター
   ===================================================== */
.footer {
    background-color: var(--bg-beige); /* 背景色をベージュに */
    padding: 60px 0 0;
    border-top: 1px solid rgba(0,0,0,0.05); /* 境界線を薄く入れる */
    color: var(--text-color);
}

/* フッターの中身を横並びにする */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    flex-wrap: wrap; /* スマホで折り返せるように[cite: 1] */
}

/* 左側：会社情報[cite: 1] */
.footer-logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* 右側：ナビゲーション[cite: 1] */
.footer-nav ul {
    list-style: none !important; /* ドットを強制的に消す[cite: 1] */
    padding: 0 !important;
    margin: 0;
    display: grid; /* 2列に並べる[cite: 1] */
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
}

.footer-nav li a {
    font-size: 14px;
    text-decoration: none !important;
    color: var(--text-color);
    transition: color 0.3s;
}

.footer-nav li a:hover {
    color: var(--accent-color);
}

/* 最下部：コピーライト[cite: 1] */
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* スマホ用：縦に並べて中央寄せにする[cite: 1] */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-nav ul {
        grid-template-columns: 1fr; /* スマホでは1列[cite: 1] */
        gap: 15px;
        margin-top: 30px;
    }
}
/* =====================================================
   9. レスポンシブ
   ===================================================== */
@media (max-width: 900px) {
    /* 事業内容のカードを縦1列にする[cite: 1] */
    .service-grid {
        grid-template-columns: 1fr !important; /* 1列に強制[cite: 1] */
        gap: 20px;
        padding: 0 20px; /* 左右に少し余白を作る[cite: 1] */
    }

    .service-card {
        max-width: 500px; /* スマホで横に広がりすぎないように制限[cite: 1] */
        margin: 0 auto;  /* 中央に寄せる[cite: 1] */
    }
}

/* ==========================================================================
   サブページ共通スタイル（お知らせ・お問い合わせ用）
   ========================================================================== */
/* --- サブページ全体のレイアウト調整 --- */
.subpage-main {
    background-color: #FDF5E6 !important;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center; /* 中身を中央に寄せる */
}

/* フォームを包むコンテナの幅を指定して中央へ */
.contact-container {
    width: 100%;
    max-width: 600px; /* フォームが広がりすぎないように制限 */
    margin: 0 auto;
    text-align: center; /* テキスト（見出しや説明文）を中央へ */
}

/* 入力欄のラベルとフォーム部品を左揃えに戻す（読みやすさのため） */
.form-group {
    text-align: left;
    margin-bottom: 25px;
}

/* 入力欄の幅をコンテナいっぱいに広げる */
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0dbca;
    border-radius: 4px;
    box-sizing: border-box; /* paddingを含めた幅計算 */
}
