/* --------- リセットcss --------- */
body,
menu,
div {
    margin: 0;
    padding: 0;
    display: block;
    box-sizing: border-box;
}

/* 1. サイト全体の背景（外側の余白部分）*/
body {
    background-color: #1a1a1a;
}

/* --------- ヘッダー --------- */
header {
    background-color: #2c0808; /* 深い木造の車内や、夜をイメージしたごく暗い赤茶 */
}

.header {
    background-color: #3e1212;
    width: 800px;
    margin: 0 auto;  /* センタリング */
    padding: 20px;
    color: #fcf9f2;
}

/* --------- メニュー --------- */
menu {
    background-color: #4a1414;
}

.menu {
    background-color: transparent;
    width: 800px;
    margin: 0 auto;  /* センタリング */
    display: flex;   /* ボタンを横並びに */
}

.menu a {
    flex: 1;            /* ボタンの幅を均等に */
    text-align: center; /* 文字を真ん中 */
    display: block;
    background-color: #5c1d1d;
    color: #fcf9f2;
    text-decoration: none;
    padding: 12px 8px;
    font-weight: bold;
    border-right: 1px solid #3e1212; /* ボタンの間に境界線が入る */
    
    /* マウスを離したときもジワ〜っと戻るアニメーション */
    transition: all 0.3s ease; 
}

.menu a:last-child { /* メニュー最後のボタンだけ右側の線を消す */
    border-right: none;
}

.menu a:hover {
    background-color: #8e2323;
    color: #ffffff;
}

/* --------- コンテンツ --------- */
.content-section {
    background-color: #1a1a1a; /* 中央のコンテンツが引き立つように背景色を設定 */
}

.content {
    background-color: #222222; /* 読みやすいように、ほんの少し明るめの漆黒 */
    width: 800px;
    margin: 0 auto;
    padding: 40px 30px;
    color: #e0dbd1;
    line-height: 1.8;  /* 行間 */
    min-height: 600px; /* 最小の高さを確保 */
}

.content h2 {
    color: #8e2323;
    border-left: 4px solid #8e2323; /* 左側に線追加 */
    padding-left: 10px;
    margin-bottom: 20px;
}

/* ===================================================
   各駅の紹介ページ（駅一覧）のスタイル
   =================================================== */

/* 1. ボタンをきれいに並べるレイアウト（グリッド） */
.station-grid {
    display: grid;
    /* 800pxの幅の中にバランスよく収まるように自動で並べる設定 */
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;          /* ボタンとボタンの間のすき間 */
    max-width: 100%;    /* contentの幅（800px）を超えないようにする */
    margin: 30px auto;  /* 真ん中に寄せる */
    padding: 0;
}

/* 2. ボタン自体のデザイン */
.station-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    
    /* 切符や列車のプレートをイメージしたレトロな配色 */
    background-color: #fcf9f2; 
    color: #2c3e50;            
    font-weight: bold;
    text-decoration: none;     /* 下線を消す */
    
    /* 枠線とカド */
    border: 2px solid #8e2323; 
    border-radius: 6px;        /* ほんの少しカドを丸く */
    
    /* 影をつけて立体的なボタンにする */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    
    /* アニメーションを滑らかにする設定 */
    transition: all 0.3s ease;
}

/* 3. ボタンにマウスを乗せたとき（ホバー時）の動き */
.station-btn:hover {
    background-color: #8e2323; 
    color: #ffffff;            
    transform: translateY(-3px); /* ボタンが上に少しふわっと浮き上がる */
    box-shadow: 0 6px 12px rgba(142, 35, 35, 0.5); /* 影を強くする */
}

