@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ここから下に、これまで整理したCSSを続けてください */

/* ===========================================================
   1. 楽曲カード共通設計
   =========================================================== */
.music-grid-container {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin: 2em 0;
}
@media screen and (min-width: 768px) {
    .music-grid-container { grid-template-columns: repeat(3, 1fr); }
}

.music-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.music-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.music-content {
    padding: 15px 15px 10px 15px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ===========================================================
   2. YouTubeサムネイル（YouTubeレッド再生ボタン）
   =========================================================== */
.music-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.yt-thumb-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.play-overlay::after {
    content: "";
    width: 60px; height: 60px;
    background: rgba(0,0,0,0.7) url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') no-repeat center center / 30px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* ホバー時のYouTubeレッド演出 */
.music-card:hover .yt-thumb-img { transform: scale(1.1); }
.music-card:hover .play-overlay { background: rgba(0,0,0,0.4); }
.music-card:hover .play-overlay::after {
    background-color: #FF0000;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

/* ===========================================================
   3. タイトル（左寄せ・全幅エフェクト）
   =========================================================== */
.music-title {
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
    border: none !important;
    background: none !important;
    text-indent: 0 !important;
    display: block !important;
    text-align: left !important;
}

.music-title::before, .music-title::after { content: none !important; display: none !important; }

.music-title a {
    color: #111 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    display: block !important;
    position: relative;
    padding-bottom: 8px;
    font-size: 1.2rem !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
}

/* 下線アニメーション */
.music-title a::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: #00b8d4;
    transition: width 0.4s ease-in-out;
}

.music-card:hover .music-title a::after { width: 100% !important; }
.music-card:hover .music-title a { color: #00b8d4 !important; }

/* ===========================================================
   4. メタ情報 & DL数
   =========================================================== */
.music-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 5px; }
.music-genre-list, .music-atmos-list { display: flex; flex-wrap: wrap; gap: 4px; }

.music-genre {
    font-size: 0.6rem; background: #00b8d4; color: #fff !important;
    padding: 1px 8px; border-radius: 4px; font-weight: bold;
}
.music-atmos {
    font-size: 0.6rem; color: #666 !important; border: 1px solid #ccc;
    padding: 1px 8px; border-radius: 20px; background: #fdfdfd;
}

.music-card .dl-stats {
    font-size: 0.7rem !important; color: #bbb !important;
    font-weight: 800; margin-bottom: 5px;
    display: flex; align-items: baseline; gap: 5px;
}
.music-card .dl-stats .count-num {
    font-size: 1.1rem !important; font-weight: 900 !important; color: #444 !important;
}

/* ===========================================================
   5. ダウンロードボタン（きらりアニメーション）
   =========================================================== */
.music-dl-actions {
    display: flex; gap: 8px; margin-top: auto;
    padding: 10px 15px 15px;
}

/* ボタンが1つの時の全幅設定 */
.music-dl-actions.is-wide-btn { display: block; }
.music-dl-actions.is-wide-btn .music-dl-btn { width: 100%; }

.music-dl-btn {
    flex: 1;
    display: flex !important; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 54px; padding: 13px 5px !important;
    border-radius: 10px; border: none !important;
    transition: all 0.3s ease; position: relative; overflow: hidden;
    line-height: 1.2 !important; text-decoration: none !important;
}

.is-main-btn { background-color: #00b8d4 !important; color: #fff !important; box-shadow: 0 4px 0 #0097a7 !important; }
.is-full-btn { background-color: #455a64 !important; color: #fff !important; box-shadow: 0 4px 0 #263238 !important; }

.music-dl-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.music-dl-btn:active { transform: translateY(2px); box-shadow: none !important; }

.btn-label { display: block; font-size: 0.6rem !important; font-weight: bold; letter-spacing: 0.05em; opacity: 0.9; margin-bottom: 2px; color: #fff !important; }
.btn-action { display: block; font-size: 0.95rem !important; font-weight: 900; letter-spacing: 0.02em; color: #fff !important; }

/* きらりアニメーション */
.music-dl-btn::before {
    content: ""; position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
}
.music-dl-btn:hover::before { animation: shine 0.8s forwards; }

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===========================================================
   個別ページ：サイドバー要素のサイズ微調整
   =========================================================== */

/* 1. タイトルのサイズダウン */
.single-music-title {
    font-size: 1.4rem !important; /* 1.8remからサイズダウン */
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    line-height: 1.4;
    color: #111;
}

/* 2. DL数エリア全体をコンパクトに */
.single-dl-container {
    padding: 18px 20px; /* 25pxから縮小 */
    margin-top: 0 !important; /* ← これを追記 */
    margin-bottom: 20px;
}

.single-dl-stats {
    margin-bottom: 0px;
    padding-bottom: 15px;
}

/* 3. DL数エリア内の文字サイズ調整 */
.stats-label {
    font-size: 0.6rem; /* 0.65remから微減 */
    letter-spacing: 0.05em;
    color: #ccc;
}

.stats-number {
    font-size: 1.4rem; /* 1.8remから大幅にサイズダウン */
    font-weight: 900;
    color: #444;
}

.stats-unit {
    font-size: 0.7rem; /* 0.8remから縮小 */
    color: #aaa;
}

/* 4. ジャンル・雰囲気タグの微調整 */
.single-meta-tags {
    margin-bottom: 5px; /* 余白を少し詰める */
}

/* ボタン同士の隙間（15px）は維持しつつ、ボタン自体の高さを少し抑える場合 */
.single-dl-actions {
    gap: 12px; /* 15pxから少しだけタイトに */
}

.music-dl-btn {
    min-height: 50px; /* 54pxから微減 */
    padding: 10px 5px !important;
}


/* ===========================================================
   個別ページ：YouTube 16:9 固定 ＆ レイアウト完成版
   =========================================================== */

/* YouTubeコンテナ（16:9の比率を維持） */
.music-video-embed-wrapper {
    width: 100%;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-aspect-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 の比率計算 (9 / 16 * 100) */
}

.video-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* 見出しのデザインを本家風に */
.music-section-title {
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    margin: 40px 0 20px 0 !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    position: relative;
}

/* 見出しの下にアクセントの線を引く場合 */
.music-section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #00b8d4;
}

.music-post-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

/* PC時のカラム比率（メインを最大化） */
@media screen and (min-width: 960px) {
    .music-main-column {
        flex: 2.5 !important; /* さらにメインを広く */
    }
    .music-side-column {
        flex: 1 !important;
    }
}


/* DLボタン同士の隙間を空ける */
.single-dl-actions {
    display: flex;
    flex-direction: column;
    gap: 15px; /* ここでボタン間のスペースを調整 */
}

/* ボタンの下にある影（box-shadow）が重なって見えないよう微調整 */
.single-dl-actions .music-dl-btn {
    margin-bottom: 4px; 
}


/* YouTubeの見た目をさらにブラッシュアップ */
.music-video-embed-wrapper {
    box-shadow: 0 30px 60px rgba(0,0,0,0.12); /* 影をより柔らかく深く */
    border: 1px solid #eee; /* 薄い枠線で高級感を出す */
}


/* 個別ページ：メタ情報エリアを2段にする */
.single-meta-area {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 上段と下段の間の隙間 */
    margin-bottom: 20px;
}

/* ジャンルと雰囲気それぞれの横並び設定 */
.single-genre-list, 
.single-atmos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* 個別ページ用のタグデザイン微調整（共通CSSがあれば不要ですが、念のため） */
.music-side-column .music-genre {
    font-size: 0.6rem;
    background: #00b8d4;
    color: #fff !important;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.music-side-column .music-atmos {
    font-size: 0.6rem;
    color: #666 !important;
    border: 1px solid #ccc;
    padding: 2px 8px;
    border-radius: 20px;
    background: #fdfdfd;
}


/* 個別ページのサイドバー内でも一覧と同じ並び（2段）にする */
.music-side-column .music-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 0px 0; /* タイトルとDLエリアとの間の余白 */
}

.music-side-column .music-genre-list,
.music-side-column .music-atmos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}




.single-share-area {
    margin-top: 25px;
    text-align: center;
}

.share-label {
    font-size: 0.7rem;
    font-weight: 900;
    color: #ccc;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

/* SWELL標準ボタンを使う場合の余白調整 */
.single-share-area .c-shareBtns {
    justify-content: center;
    gap: 10px;
}

/* カスタムボタンを使う場合のスタイル例 */
.custom-share-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.share-link {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff !important;
    text-decoration: none;
}
.is-x { background: #000; }
.is-fb { background: #1877f2; }
.is-line { background: #06c755; }



/* YouTube再生時のiframe設定 */
.music-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px 12px 0 0; /* カードの角丸に合わせる */
}

/* 再生中はホバーエフェクトを無効化する（必要に応じて） */
.music-video-container.is-playing {
    cursor: default;
}
.music-video-container.is-playing .play-overlay {
    display: none;
}

/* サムネイル部分にマウスを置いた時にクリック可能であることを示す */
.js-yt-player {
    cursor: pointer;
}



/* 関連楽曲セクションの調整 */
.related-music-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px dashed #ddd;
}

.related-music-section .music-section-title {
    text-align: center;
    border-bottom: none;
    margin-bottom: 40px !important;
}

.related-music-section .music-section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.related-music-section .music-section-title span {
    display: block;
    font-size: 0.8rem;
    color: #bbb;
    margin-top: 5px;
    font-weight: normal;
}




/* ===========================================================
   SNSシェアボタン：横並びを死守する設定
   =========================================================== */
.custom-share-btns {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.share-link {
    flex: 1;
    text-align: center;
    padding: 10px 2px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    color: #fff !important;
    text-decoration: none;
    display: block;
}

.is-x { background: #000; }
.is-fb { background: #1877f2; }
.is-line { background: #06c755; }

.share-label {
    text-align: center;
    display: block;
    margin-bottom: 10px;
}


/* スマホレイアウト：HTMLの順序通り（サイドバーが上、動画が下） */
@media screen and (max-width: 959px) {
    .music-single-flex {
        display: flex;
        flex-direction: column;
    }
    
    .music-side-column, 
    .music-main-column {
        order: unset; /* 特殊な並び替えをリセット */
        width: 100%;
    }
}


/* SNSボタンの崩れ防止（これだけは必須） */
.custom-share-btns {
    display: flex !important;
    gap: 8px;
    width: 100%;
}
.share-link { flex: 1; text-align: center; }


/* PC：記述順通りに左（メイン）と右（サイド）を並べる */
@media screen and (min-width: 960px) {
    .music-single-flex {
        display: flex;
        gap: 40px;
        align-items: flex-start;
    }
    .music-main-column { flex: 2.5; }
    .music-side-column { flex: 1; position: sticky; top: 20px; }
}



/* ===========================================================
   スマホ表示：コンテンツ間の余白調整
   =========================================================== */
@media screen and (max-width: 959px) {
    /* 1. YouTube動画エリアの下に余白を作る */
    .music-video-embed-wrapper {
        margin-bottom: 40px !important; /* 30pxから40pxへ広げてゆとりを出す */
    }

    /* 2. サイドバー（タイトル・DLエリア）の上の余白 */
    .music-side-column {
        margin-top: 20px;
        padding-top: 10px;
    }

    /* 3. もし「楽曲解説」の見出しがYouTubeと近すぎる場合 */
    .music-description-area {
        margin-top: 30px;
    }
}



/* ==========================================
   リクエスト掲示板：背景グレー＆デザイン同期
   ========================================== */

/* 1. セクション間の余白を詰める */
.related-music-section {
    padding-bottom: 0 !important;
}

.music-comments-section {
    margin-top: 0 !important;
    border-top: 1px solid #eee !important; /* 境界をさりげなく */
}

/* 2. 見出しのデザインを RELATED TRACKS と完全同期 */
.music-comments-section .music-section-title {
    text-align: center !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: #111 !important; /* グレー背景に映える黒 */
    margin: 0 0 40px 0 !important;
    padding-bottom: 15px !important;
    border: none !important;
    position: relative;
    display: block !important;
    letter-spacing: 0.05em;
}

/* 青いアクセント線 */
.music-comments-section .music-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #00b8d4;
}

/* 日本語サブタイトル */
.music-comments-section .music-section-title span {
    display: block !important;
    font-size: 0.8rem !important;
    color: #888 !important;
    margin-top: 8px !important;
    font-weight: normal !important;
    letter-spacing: 0.05em;
}

/* 3. 入力欄：ホワイトデザイン（グレー背景で浮かせる） */
#commentform textarea, 
#commentform input[type="text"] {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    padding: 15px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03) !important;
}

/* ラベル文字 */
.comment-form label {
    color: #555 !important;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

/* 4. 送信ボタン：DLボタンのスタイルを継承 */
.music-comments-section .submit {
    background-color: #00b8d4 !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 60px !important;
    border-radius: 10px !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
    cursor: pointer;
    box-shadow: 0 4px 0 #0097a7 !important;
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto 0 !important; /* 中央寄せ */
}

.music-comments-section .submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.music-comments-section .submit:active {
    transform: translateY(2px);
    box-shadow: none !important;
}


