/* --- 基本スタイル (全サイズ共通) --- */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
    color: #4A4A4A;
    overflow-x: hidden;
}

/* 1. 固定ヘッダー */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 15px 20px;
    box-sizing: border-box;
    /* Flexboxでヘッダーの内容を左右に配置 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ヘッダー内のタイトル/ロゴスペース */
.header-brand {
    font-size: 1.2em;
    font-weight: bold;
    color: #4A4A4A;
}

/* デスクトップ用ナビゲーション */
.header-nav {
    display: flex;
    justify-content: center;
}

.header-nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #6C7A89;
    font-weight: bold;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* h1, h2 の色合いとフォント調整 */
/* ------------------------------------------------------------------ */
h1 { 
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6em;
    font-weight: 500;
    
    /* 2. H1の色を落ち着いたくすみ系の深い色に変更 */
    color: #34495E; /* ダスティネイビー */
    
    margin-top: 0;
}

h2 {
    /* H2もH1に合わせて調整 */
    color: #34495E;
    font-size: 1.4em;
}


/* ハンバーガーアイコン (デフォルトでは非表示) */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    border: none;
    background: none;
    color: #333;
    padding: 0 5px;
    line-height: 1;
}

/* 2. 背景画像コンテナ */
.background-image-container {
    width: 100%;
    height: 90vh;
    overflow: hidden;
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-image-container img.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: -1;
}

/* ブランドロゴ (共通) */
.brand-logo {
    z-index: 1;
    max-width: 250px;
    max-height: 250px;
    width: auto;
    height: auto;
    opacity: 0.9;
    transition: max-width 0.3s, max-height 0.3s;
}

/* 3. メインコンテンツエリア */
.main-content {
    padding-top: 20px;
    padding-bottom: 50px;
    position: relative;
    z-index: 1;
    margin-top: -10vh;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px; /* 下に間隔を空ける */
}

/* ------------------------------------------------------------------ */
/* 運営会社情報リストのスタイル */
/* ------------------------------------------------------------------ */
.company-info-list {
    margin: 20px 0;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden; /* 角丸で罫線がはみ出るのを防ぐ */
    list-style: none; /* リストマーカーを削除 */
}

.company-info-list dt, 
.company-info-list dd {
    padding: 10px 15px;
    margin: 0;
    border-bottom: 1px solid #eee; /* 横の区切り線 */
    line-height: 1.5;
}

/* デスクトップ用: dtとddを横並びにする */
.company-info-list dt {
    width: 30%; /* 項目名の幅 */
    float: left; /* 左寄せ */
    font-weight: bold;
    box-sizing: border-box;
}

.company-info-list dd {
    width: 70%; /* 値の幅 */
    float: left; /* 左寄せ */
    box-sizing: border-box;
}

/* 交互の背景色 (ゼブラストライプ) */
.company-info-list dt:nth-of-type(odd) {
    background-color: #F0F3F4; /* 薄いグレー */
}
.company-info-list dt:nth-of-type(even) {
    background-color: #fff; /* 白 */
}
/* ddもdtと同じ行の色を継承させる */
.company-info-list dt:nth-of-type(odd) + dd {
    background-color: #F0F3F4;
}
.company-info-list dt:nth-of-type(even) + dd {
    background-color: #fff;
}

/* floatの解除 */
.company-info-list::after {
    content: "";
    display: block;
    clear: both;
}



/* ------------------------------------------------------------------ */
/* --- レスポンシブ対応 (画面幅 796px 以下) --- */
/* ------------------------------------------------------------------ */
@media screen and (max-width: 796px) {
    
    /* H1のスマホサイズ調整（前回設定済み） */
    h1 {
        font-size: 1.8em;
    }
    
    /* ヘッダー：アイコンを表示し、メニューを非表示にする */
    .menu-toggle {
        display: block;
    }

    .header-nav {
        /* 初期状態ではメニューを非表示 */
        display: none;
        /* メニューが開いた時のスタイル */
        position: absolute;
        top: 50px;
        right: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    /* JavaScriptで .is-open クラスが付与されたらメニューを表示 */
    .header-nav.is-open {
        display: flex;
    }

    .header-nav a {
        margin: 0;
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    
    /* ロゴのサイズを小さくする */
    .brand-logo {
        max-width: 150px;
        max-height: 150px;
    }

    /* コンテンツの幅を画面いっぱいに広げる */
    .content-wrapper {
        max-width: 100%;
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 25px; /* 下に間隔を空ける */
    }
    
    /* スマホ対応: 背景画像の高さを60vhに縮小 */
    .background-image-container {
        height: 60vh;
    }
    /* スマホ対応: メインコンテンツを背景画像の下端に合わせる（-40vh）*/
    .main-content {
        margin-top: -10vh;
    }
    
    
    /* 運営会社リスト: スマホでは縦並びに戻す */
    .company-info-list dt, 
    .company-info-list dd {
        width: 100%; /* 幅を100%に戻す */
        float: none; /* floatを解除し、縦並びにする */
    }

    /* スマホ用: dtとddの区切りを明確にし、交互の色を調整 */
    .company-info-list dt {
        background-color: #EAECEE; /* 項目名 (dt) のみを少し濃いグレーに */
        border-bottom: none;
        padding-bottom: 5px;
    }
    .company-info-list dd {
        background-color: #fff; /* 値 (dd) の背景は白 */
        border-bottom: 1px solid #eee; /* ddの下に区切り線 */
        padding-top: 5px;
        margin-bottom: 10px; /* 各項目間にスペース */
    }

    /* float解除は不要になるが、::afterはそのまま維持
    .company-info-list::after { clear: none; }
    */
    
}