:root {
    --primary-color: #005599;
    --secondary-color: #eef6fc;
    --accent-color: #f39800;
    --text-color: #333;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #fff;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.hero-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-sub {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* レイアウト調整：横幅を少し広げ、隙間を最適化 */
.main-wrapper {
    max-width: 1200px; /* 全体の幅を1100pxから1200pxに拡大 */
    margin: 30px auto;
    display: flex;
    gap: 30px; /* 隙間を40pxから30pxに微調整 */
    padding: 0 20px;
}

/* サイドバー：幅を少し絞る */
.side-menu {
    width: 230px; /* 260pxから230pxにスリム化 */
    flex-shrink: 0;
}

.menu-label {
    font-weight: bold;
    font-size: 0.85rem;
    color: #666;
    margin: 20px 0 8px 5px;
}

.side-btn {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
    background-color: #f8f8f8;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    transition: 0.2s;
}

.side-btn:hover {
    background-color: var(--secondary-color);
    transform: translateX(5px);
}

.side-btn.accent {
    border-left: 5px solid var(--accent-color);
}

.side-btn.highlight {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

/* メインコンテンツ：ここが広がるように設定 */
.content {
    flex-grow: 1;
    min-width: 0; /* 折り返しを正常にするための呪文 */
}

.section {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

h2 {
    color: var(--primary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 25px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 15px 12px; /* 少し余白を広げて窮屈さを解消 */
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.info-table th {
    width: 250px; /* 見出しの幅を固定して安定させる */
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.footer {
    background-color: #f8f8f8;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}


/* スマホ対応 */
.sp-only { display: none; } /* PCでは隠す */

@media (max-width: 950px) {
    .main-wrapper {
        flex-direction: column;
        margin-top: 10px;
    }
    .side-menu {
        width: 100%;
        margin-bottom: 20px;
    }
    .sp-only {
        display: flex; /* アイコンと文字を並べるためflexに変更 */
        align-items: center;
        justify-content: center;
    }
    
    /* メニューボタン：クリックを誘うデザイン */
    #menu-toggle {
        background-color: var(--primary-color);
        color: white;
        padding: 15px;
        font-weight: bold;
        border-radius: 8px;
        cursor: pointer;
        transition: 0.2s;
        box-shadow: 0 4px 0 #003366; /* 立体感を出す影 */
        margin-bottom: 15px;
    }

    #menu-toggle:active {
        transform: translateY(2px); /* 押した時に少し沈む演出 */
        box-shadow: 0 2px 0 #003366;
    }

    /* 三本線アイコンのスタイル */
    .hamburger-icon {
        width: 20px;
        height: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-right: 12px;
    }
    .hamburger-icon span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: white;
        transition: 0.3s;
    }

    /* CLOSE時に×印にする演出（お好みで） */
    #menu-toggle.open .hamburger-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    #menu-toggle.open .hamburger-icon span:nth-child(2) { opacity: 0; }
    #menu-toggle.open .hamburger-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .side-btn {
        margin-bottom: 8px;
        padding: 15px; /* スマホで押しやすいサイズ */
        font-size: 1rem;
    }

    .info-table th, 
    .info-table td {
        display: block; /* 横並びを解除して縦に積む */
        width: 100% !important; /* 250pxの指定を強制的に100%に上書き */
        border-bottom: none;
        box-sizing: border-box;
    }
    
    .info-table th {
        background-color: var(--secondary-color);
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .info-table td {
        padding: 10px 12px 25px 12px; /* 下に余白をあけて次の項目と区切る */
        border-bottom: 1px solid #ddd;
    }

}

/* --- 既存のコードの下部（@media外） --- */
#menu-list {
    display: block; /* PCでは常に表示 */
}

/* --- スマホ対応（@media内） --- */
@media (max-width: 950px) {
    /* 既に追加したスマホ用スタイル ... */

    #menu-list {
        display: none; /* スマホの初期状態のみ隠す（JSでも制御していますが念のため） */
        margin-bottom: 20px;
    }
}