/* 無料配布MP3のページ(style.css の色と看板ボタンを使う) */

body.mp3 {
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(242, 182, 79, 0.16), transparent 60%),
    linear-gradient(180deg, var(--wood-light), var(--deep) 70%);
  background-attachment: fixed;
}

.mp3__page {
  padding-top: 20px;
}

.mp3__back {
  margin: 0 0 8px;
  font-size: 13px;
}

.mp3__back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--bulb-warm);
  border-radius: 999px;
  color: var(--bulb-warm);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  background: rgba(255, 207, 122, 0.08);
  box-shadow: 0 0 10px rgba(255, 207, 122, 0.35);
}

.mp3__back a:hover { background: rgba(255, 207, 122, 0.18); }

.mp3__head {
  text-align: center;
  padding: 28px 0 8px;
}

.mp3__eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--muted);
}

.mp3__title {
  margin: 12px 0 0;
  font-family: "Yuji Boku", serif;
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 2.7rem);
  line-height: 1.35;
  color: var(--bulb-warm);
  text-shadow: 0 0 18px rgba(255, 207, 122, 0.35), 0 2px 0 rgba(0, 0, 0, 0.6);
}

.mp3__lead {
  margin: 16px 0 0;
  font-family: "Shippori Mincho", serif;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
}

.mp3__h2 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-weight: 700;
}

.mp3__rules,
.mp3__list,
.mp3__credit,
.mp3__more {
  margin-top: 36px;
}

/* ご利用の前に(西部劇の貼り紙のような、古びた紙) */
.mp3__rules {
  position: relative;
  padding: 26px 22px 18px;
  color: #3a2614;
  font-family: "Shippori Mincho", serif;
  background-color: #dcc39a;
  background-image:
    /* 紙のざらつき */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.22  0 0 0 0 0.1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23p)' opacity='0.35'/></svg>"),
    /* しみ */
    radial-gradient(ellipse 28% 22% at 82% 70%, rgba(130, 80, 30, 0.22), transparent 70%),
    radial-gradient(ellipse 20% 16% at 14% 28%, rgba(130, 80, 30, 0.16), transparent 70%),
    /* 中心は明るく、ふちは焼けて茶色く */
    radial-gradient(ellipse at 50% 45%, #efdcb6 0%, #e2c89c 55%, #c49a63 100%);
  border-radius: 2px 5px 3px 6px / 6px 2px 5px 3px;
  box-shadow:
    inset 0 0 28px rgba(95, 52, 18, 0.55),
    inset 0 0 4px rgba(70, 38, 12, 0.6),
    0 12px 24px -10px rgba(0, 0, 0, 0.85);
}

/* 上の2か所の画びょう */
.mp3__rules::before,
.mp3__rules::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9b27a, #6e4a22 70%);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.55);
}

.mp3__rules::before { left: 10px; }
.mp3__rules::after { right: 10px; }

.mp3__rules .mp3__h2 {
  color: #6b2f17;
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-align: center;
}

.mp3__rules-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
}

.mp3__terms { margin-top: 10px; }

.mp3__terms summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #6b2f17;
  padding: 6px 0;
}

.mp3__terms-body {
  font-size: 13px;
  line-height: 1.8;
  border-top: 1px dashed rgba(70, 38, 12, 0.4);
  margin-top: 6px;
  padding-top: 6px;
}

.mp3__terms-body h3 {
  font-size: 14px;
  margin: 14px 0 4px;
}

.mp3__terms-body p,
.mp3__terms-body ul { margin: 0; }

.mp3__terms-body ul { padding-left: 1.2em; }

/* 唄 / BGM の切り替え */
.mp3__tabs {
  display: flex;
  gap: 10px;
}

.mp3__tab {
  flex: 1;
  padding: 12px 0;
  font: inherit;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(183, 166, 141, 0.35);
  border-radius: 6px;
  cursor: pointer;
}

.mp3__tab[aria-selected="true"] {
  color: var(--deep);
  background: var(--bulb-warm);
  border-color: var(--bulb-warm);
  box-shadow: 0 0 16px rgba(255, 207, 122, 0.35);
}

.mp3__hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.mp3__songs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

/* 1曲ぶんの看板 */
.mp3__song {
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--teal-bg);
  color: var(--teal-text);
  border: 3px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.75), 0 2px 0 rgba(0, 0, 0, 0.3);
}

.mp3__song:nth-child(3n+2) { background: var(--navy-bg); color: var(--navy-text); }
.mp3__song:nth-child(3n+3) { background: var(--rust-bg); color: var(--rust-text); }

.mp3__song-title {
  margin: 0 0 10px;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.mp3__song-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp3__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
}

.mp3__btn--play.is-playing {
  background: rgba(255, 255, 255, 0.15);
}

.mp3__btn--dl {
  background: var(--bulb-warm);
  color: var(--deep);
  border-color: var(--bulb-warm);
}

.mp3__btn--dl:hover { filter: brightness(1.08); }

.mp3__empty {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  border: 2px dashed rgba(183, 166, 141, 0.35);
  border-radius: 6px;
}

/* 名前の表記の見本(貼り紙の中。紙に書き込んだ枠のように見せる) */
.mp3__credit-box {
  margin: 8px 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.mp3__credit-text {
  flex: 1 1 220px;
  margin: 0;
  padding: 8px 10px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.7;
  color: #2a1a0c;
  background: rgba(255, 248, 230, 0.45);
  border: 1px dashed rgba(70, 38, 12, 0.5);
  border-radius: 3px;
  word-break: break-all;
}

.mp3__btn--copy {
  min-height: 36px;
  color: #6b2f17;
  border-color: #6b2f17;
  font-family: "Shippori Mincho", serif;
}

.mp3__note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* 「唄」(選んでいるタブ)と「FULL / 28秒」のボタンも、貼り紙と同じ古びた紙にする */
.mp3__tab[aria-selected="true"],
.mp3__btn--dl {
  color: #3a2614;
  border: 0;
  background-color: #dcc39a;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.22  0 0 0 0 0.1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23p)' opacity='0.35'/></svg>"),
    radial-gradient(ellipse at 50% 45%, #efdcb6 0%, #e2c89c 60%, #c49a63 100%);
  border-radius: 2px 4px 3px 5px / 5px 2px 4px 3px;
  box-shadow:
    inset 0 0 12px rgba(95, 52, 18, 0.5),
    inset 0 0 3px rgba(70, 38, 12, 0.6),
    0 3px 6px rgba(0, 0, 0, 0.5);
}

.mp3__tab[aria-selected="true"] {
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-size: 19px;
  color: #6b2f17;
}

.mp3__btn--dl {
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
}

/* 着信音にするには(iPhone / Android の手順) */
.mp3__howto {
  margin-top: 36px;
}

.mp3__howto-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.mp3__howto-item {
  margin-top: 10px;
  padding: 0 16px;
  border: 2px solid rgba(183, 166, 141, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.mp3__howto-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--bulb-warm);
}

.mp3__howto-item ol {
  margin: 0;
  padding-left: 1.4em;
  font-size: 14px;
  line-height: 1.9;
}

.mp3__howto-note {
  margin: 8px 0 14px;
  font-size: 12px;
  color: var(--muted);
}

.mp3__howto-item ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.9;
}

.mp3__dlhelp {
  margin-top: 12px;
}

.mp3__howto-h {
  margin: 4px 0 6px;
  font-size: 14px;
  color: var(--bulb-warm);
}

/* ジャケット画像つきの曲:左に画像、右に曲名とボタン */
.mp3__song.has-jk {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mp3__song-jk {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.45);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}
.mp3__song-body {
  flex: 1 1 auto;
  min-width: 0;
}

/* 曲名の下の、作った人の名前(名前ごとに色を変える) */
.mp3__song-title { margin-bottom: 2px; }
.mp3__song-artist {
  display: inline-block;
  margin: 0 0 9px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  border: 1px solid currentColor;
}
.mp3__song-artist--youjun { color: #f0c46a; background: rgba(240, 196, 106, 0.12); }
.mp3__song-artist--benbenbenneel { color: #8fd3f0; background: rgba(143, 211, 240, 0.12); }
.mp3__credit-name { margin: 10px 0 4px; font-size: 13px; font-weight: 700; }
/* 明るい紙(ご利用の前に)の上では、名前を濃い色にする */
.mp3__credit-name .mp3__song-artist--youjun { color: #7a4d06; background: rgba(176, 120, 20, 0.15); }
.mp3__credit-name .mp3__song-artist--benbenbenneel { color: #145a7a; background: rgba(30, 120, 160, 0.13); }

/* ご利用の前に:読む必要がある人だけ開く */
.mp3__rules-lead {
  margin: 10px 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.mp3__rules-more > summary {
  display: block;
  margin: 10px auto 4px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: #fff5e0;
  background: #6b2f17;
  border-radius: 999px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.mp3__rules-more > summary::-webkit-details-marker { display: none; }
.mp3__rules-more > summary::after { content: " ▼"; font-size: 11px; }
.mp3__rules-more[open] > summary::after { content: " ▲"; }
.mp3__rules-more[open] > .mp3__rules-list { margin-top: 12px; }

/* トップへの矢印だけ、ゆっくり明るくなったり暗くなったりする */
.mp3__back-arrow { animation: mp3-arrow-glow 2s ease-in-out infinite; }

@keyframes mp3-arrow-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .mp3__back-arrow { animation: none; }
}

/* 使い方メモの見出しは、丸くやわらかい文字に */
.mp3__rules .mp3__h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.12em;
}

/* 「ダウンロード無料」「登録・メールアドレス不要」を目立たせる */
.mp3__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
}

.mp3__badge {
  padding: 9px 18px;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: #2a1d12;
  background: linear-gradient(180deg, #ffe3a3, #f0c46a);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(255, 207, 122, 0.45), 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 「曲はAI、歌詞は俺。」 */
.mp3__aiword {
  margin: 14px 0 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--bulb-warm);
  text-shadow: 0 0 12px rgba(255, 207, 122, 0.35);
}

/* 曲ごとの、作詞者のひとこと */
.mp3__song-words {
  margin: 10px 0 0;
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.92;
  word-break: auto-phrase; /* 言葉の切れ目で折り返す(対応していないブラウザでは、ふつうに折り返す) */
}

/* ボタンは3列:1段目「試聴・28秒・FULL」、2段目は28秒の下から「28BGM・BGM」 */
.mp3__song-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mp3__song-btns .mp3__btn {
  padding: 0 4px;
  font-size: 13px;
  white-space: nowrap;
}
.mp3__song-btns .mp3__btn--bgm28 { grid-column: 2; }
.mp3__btn--soon { opacity: 0.6; }
