/* 全体 */
body {
    margin: 0;
    font-family: "Kosugi Maru", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.0em;
    line-height: 1.5em;
    /* 仮置きフォント */
    background-color: #f0f0f0;
    /* 背景色は差し替え可能 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* フッタを最下部に固定するため */
}

/* ヘッダ */
header {
    display: flex;
    justify-content: space-between;
    /* 左にタイトル、右にメニュー */
    align-items: center;
    height: 50px;
    padding: 0 20px;
    background-color: #333;
    /* 差し替え可能 */
    color: #fff;
}

header .title {
    font-family: "WDXL Lubrifont JP N", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.4em;
}

header .menu a {
    margin-left: 15px;
    text-decoration: none;
    color: #fff;
    font-family: "WDXL Lubrifont JP N", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.6em;
}

/* コンテンツ */
main {
    flex: 1;
    /* コンテンツ部分を伸縮させる */
    padding: 20px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* フッタ */
footer {
    display: flex;
    justify-content: flex-end;
    /* 右詰め */
    align-items: center;
    height: 50px;
    padding: 0 20px;
    background-color: #333;
    /* 差し替え可能 */
    color: #fff;
}

.link-container {
    display: flex;
    /* 横並びにする */
    flex-wrap: wrap;
    /* 幅が足りない場合は折り返す */
    gap: 10px;
    /* ボタン間の余白 */
}

.link-btn {
    display: flex;
    /* flexで中身を中央配置 */
    align-items: center;
    /* 縦方向中央 */
    justify-content: center;
    /* 横方向中央 */
    padding: 0 12px;
    /* 横方向の余白だけ指定 */
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    border: 0px solid #000;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 180px;
    height: 40px;
    font-family: "WDXL Lubrifont JP N", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.4em;
}

#audio-container {
    display: grid;
    grid-template-columns: 1fr;
    /* 初期は1列 */
    gap: 15px;
}

#audio-container_se {
    display: grid;
    grid-template-columns: 1fr;
    /* 初期は1列 */
    gap: 15px;
}


h2 {
    position: relative;
    padding: 0.25em 1em;
    border-top: solid 2px black;
    border-bottom: solid 2px black;
    font-family: "WDXL Lubrifont JP N", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.4em;
}

h2:before,
h1:after {
    content: '';
    position: absolute;
    top: -7px;
    width: 2px;
    height: -webkit-calc(100% + 14px);
    height: calc(100% + 14px);
    background-color: black;
}

h2:before {
    left: 7px;
}

h2:after {
    right: 7px;
}

/* 画面幅が801px以上なら2列に */
@media (min-width: 801px) {
    #audio-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1361px) {
    #audio-container_se {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.audio-sample {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    /* 背景色（差し替え可能） */
    border: 1px solid #ccc;
    /* 枠線でまとまり感を強調 */
    border-radius: 4px;
    /* 角丸（不要なら0に） */
}

.audio-sample p {
    margin: 0 0 8px 0;
    /* タイトルの余白を調整 */
    font-weight: bold;
}


/* Downloadボタン風 */
.download-btn {
    display: flex;
    /* flexで中身を中央配置 */
    align-items: center;
    /* 縦方向中央 */
    justify-content: center;
    /* 横方向中央 */
    padding: 0 12px;
    /* 横方向の余白だけ指定 */
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    border: 0px solid #000;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: "WDXL Lubrifont JP N", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.4em;
}

.download-btn:hover {
    background-color: #b35600;
    /* ホバー時の色 */
}


.audio-row {
    display: flex;
    align-items: stretch;
    /* 子要素の高さを揃える */
    gap: 10px;
}

/* audio部分を白黒のフレームでデザイン */
audio {
    flex: 1;
    max-width: 700px;
    /* 必要なら幅調整 */
    border: 0px solid #000;
    /* 黒い枠線 */
    background-color: #333;
    /* 白背景 */
    padding: 4px;
    /* 内側余白で枠を強調 */
    border-radius: 0;
    /* 四角形にする */
}