@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* Spotify風音楽表示*/
/* プレイヤー全体の設定 */
.custom-audio-player-wrapper {
    /* プレイヤー全体を囲むコンテナ。必要に応じてマージンなどを調整 */
    margin: 20px 0;
}

.custom-audio-player {
    background: #111; /* 黒に近い背景 */
    color: #fff;
    padding: 15px 25px;
    font-family: 'Arial', sans-serif;
    border-radius: 8px; /* 角を丸く */
}

/* トップコントロール（曲情報、再生、ダウンロード） */
.player-controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* 曲情報 */
.song-info {
    flex-grow: 1; /* スペースを広く取る */
    text-align: left;
}
.song-title {
    display: block;
    font-size: 18px;
    font-weight: bold;
}
.artist-name {
    display: block;
    font-size: 12px;
    opacity: 0.7;
}

/* 汎用ボタン */
.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin: 0 8px;
    padding: 5px;
    text-decoration: none; /* aタグの場合に下線を消す */
}

/* 再生ボタン（中央） */
.controls-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}
.play-pause-btn {
    font-size: 24px;
    background: #1DB954; /* Spotifyグリーン */
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: background 0.2s;
}
.play-pause-btn:hover {
    background: #1ed760;
}

/* ダウンロードボタン */
.download-btn {
    background: #333;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s;
}
.download-btn:hover {
    background: #444;
}
.download-icon {
    font-size: 18px;
    margin-right: 5px;
}
.download-text {
    /* ここでダウンロードの文字を自由に設定 */
}

/* タイムライン（プログレスバー） */
.player-timeline {
    display: flex;
    align-items: center;
    gap: 10px; /* 要素間のスペース */
}

.current-time, .total-duration {
    font-size: 12px;
    width: 35px; /* 時間表示の幅を固定 */
    text-align: center;
}

.progress-bar {
    flex-grow: 1; /* 進捗バーが残りの幅を占める */
    -webkit-appearance: none; /* デフォルトのスタイルをリセット */
    appearance: none;
    height: 5px;
    background: #333;
    cursor: pointer;
    border-radius: 2px;
}
/* 進捗バーのつまみ (WebKit/Blink) */
.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #1DB954;
    border-radius: 50%;
}
/* 進捗バーのつまみ (Firefox) */
.progress-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #1DB954;
    border-radius: 50%;
    border: none;
}

/* 非表示のaudioタグ */
#music-audio {
    display: none;
}

