:root {
    --primary-color: #71aad4;
    --text-color: #212529;
    --secondary-text-color: #495057;
    --background-color: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

/* --- 基本スタイル --- */
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 760px;
    padding: 40px 20px;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- ヘッダー --- */
header {
    text-align: center;
    margin-bottom: 30px;
}
header h1 {
    font-size: 2.0em;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}
header p {
    font-size: 1em;
    color: var(--secondary-text-color);
    margin-top: 0;
}

/* --- アイキャッチ画像 --- */
.eyecatch {
    margin: 0 0 30px 0;
    text-align: center;
}
.eyecatch img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* --- プロジェクト説明 --- */
.project-description {
    background-color: var(--light-gray);
    padding: 25px 30px;
    margin-bottom: 40px;
    border-radius: 6px;
}
.project-description p {
    font-size: 0.95em;
    color: var(--secondary-text-color);
    margin-bottom: 0.8em;
}
.project-description p:last-child {
    margin-bottom: 0;
}

/* --- アルバム埋め込みプレーヤー --- */
.album-player {
    margin-bottom: 50px;
}
.album-player iframe {
    border: none;
    max-width: 100%;
    display: block;
    border-radius: 4px;
}
.album-player div[style*="font-size: 10px"] {
     height: 0;
     overflow: hidden;
 }

/* --- 全体のトラックコメントセクション --- */
.track-comments {
    margin-top: 20px;
}

/* Gridごとのセクション (デフォルトはPC・広画面向け2カラムレイアウト) */
.grid-section {
    display: grid;
    grid-template-columns: 160px auto; /* 左列(見出し):160px, 右列(リスト):残り */
    grid-column-gap: 25px;
    align-items: start; /* 上端揃え */
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}
.grid-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.grid-section h2 { /* Gridの見出し */
    font-size: 1.2em; /* body 15px -> 18px */
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    padding-top: 2px; /* プレーヤー上部との視覚的アラインメント用 */
    line-height: 1.4;
    word-break: break-word; /* 長いGrid名がはみ出ないように */
}

.comment-list { /* トラックのリスト */
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item { /* 各トラックの情報ブロック */
    padding-bottom: 0;
    margin-bottom: 0;
}

/* トラック間の区切りとスペース */
.comment-item + .comment-item {
    margin-top: 18px;   /* トラック間のスペース */
    padding-top: 18px;  /* 区切り線とコンテンツのスペース */
    border-top: 1px dashed var(--light-gray); /* 薄い点線で区切る */
}

/* 個別トラックプレーヤー */
.track-player {
     margin-bottom: 10px;
 }
.track-player iframe {
    border: none;
    width: 100%;
    max-width: 100%;
    display: block;
    border-radius: 4px;
}
 .track-player div[style*="font-size: 10px"] {
     margin-top: 3px;
     font-size: 9px !important;
 }

/* 省スペース化された詳細情報エリア */
.recording-details-inline {
    font-size: 0.85em; /* body 15px -> 約12.75px */
    color: var(--secondary-text-color);
    line-height: 1.5;
 }
.detail-line {
     margin-bottom: 4px;
 }
.detail-item {
    display: inline-block;
    margin-right: 3px;
}
.separator {
    color: var(--border-color);
    margin: 0 5px;
    display: inline-block;
}
.detail-label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 40px;
    display: inline-block;
    margin-right: 3px;
}
.detail-value { /* スタイルなし */ }
.detail-notes {
    font-size: 1em;
    margin-top: 6px;
    margin-bottom: 0;
    padding-left: 2px;
}
.detail-notes .detail-label {
    min-width: auto;
}

/* --- フッター --- */
footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 15px;
    font-size: 0.85em;
    color: #aaa;
    border-top: 1px solid #eee;
}

/* --- スマートフォン用固定バナー (デフォルト非表示) --- */
.mobile-fixed-banner {
    display: none;
}


/* ▼▼▼ スマートフォン向けスタイル (767px以下) ▼▼▼ */
@media (max-width: 767px) {
    .mobile-fixed-banner {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--background-color); /* 背景を白に */
        color: var(--text-color);    /* 文字色を濃い色に */
        padding: 10px 0px;
        text-align: center; /* 中央揃えは維持 */
        z-index: 1000;
        font-size: 1em; 
        font-weight: 600;
        line-height: 1.4; 
        box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* 白背景なので影を少し調整 */
    }

    /* bodyのpadding-topはバナーの高さに応じて調整が必要な場合がありますが、前回ので概ねOKのはずです */
    body {
        padding: 20px 15px;
        padding-top: 55px; /* バナーの高さ分のスペース */
    }

    header h1 {
        font-size: 1.8em; 
    }
    header p {
        font-size: 0.9em;
    }
    
    .album-player {
        margin-bottom: 30px;
    }
    .album-player iframe {
        height: 380px; 
    }

    .grid-section {
        display: block; /* 2カラムレイアウトを解除 */
        grid-template-columns: none;
        grid-column-gap: 0;
        padding-bottom: 15px;
        margin-bottom: 25px; 
        /* border-bottom は維持 */
    }

    .grid-section h2 {
        font-size: 1.1em; /* スマホ用にGrid見出しをさらに小さく (body 15px -> 16.5px) */
        padding-top: 0;
        margin-bottom: 15px; 
        border-bottom: 1px solid var(--border-color); /* スマホではh2に下線 */
        padding-bottom: 8px;
    }

    .comment-item + .comment-item {
        margin-top: 15px;
        padding-top: 15px;
    }

    .recording-details-inline {
        font-size: 0.8em; /* body 15px -> 12px */
        line-height: 1.45;
    }
    .detail-label {
        min-width: 38px;
    }
    .separator {
        margin: 0 4px;
    }
}