@charset "UTF-8";

/* ==========================================================
   ささな団員お知らせページ（一覧・記事）
   サイト共通のヘッダー・フッターは使わない、シンプルなページです。
   色・フォントはほかのページに合わせています。
   ========================================================== */
:root {
  --navy: #1b2f5e;
  --blue: #1d6fc8;
  --blue-light: #4b9fe6;
  --line: #c3dbf3;
  --sky: #eaf4fc;
  --cream: #fbf6ec;
  --text: #1f2a3c;
  --muted: #5b6b85;
  --font-base: "Noto Sans JP", sans-serif;
  --font-title: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; /* スマホのアドレスバーの出入りに合わせた画面の高さ（対応ブラウザのみ） */
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.sr-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================
   ヘッダー（表題）
   合奏風景の写真（sasana331.jpg）の上に、ポップな白いバッジで表題を重ね、
   カラフルな音符をふわふわ浮かべています。
   ========================================================== */
.notice-hero {
  --pop-yellow: #ffd23f;
  --pop-pink: #ff6fa8;
  --pop-mint: #3fd6b5;
  --pop-sky: #4fb3ff;
  --font-pop: "Mochiy Pop One", "Zen Maru Gothic", sans-serif;
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(240px, 36vw, 380px);
  padding: 48px 16px 64px;
  overflow: hidden;
  background: url("sasana331.jpg") center 40% / cover no-repeat;
}

/* 例のところ：ファーストビューの写真（練習風景） */
.notice-hero--reference {
  background-image: url("sasana44.jpg");
  background-position: center 58%;
}

/* 写真の右側にいる人の顔が隠れないよう、表題を左に寄せる */
.notice-hero--reference .notice-hero__badge {
  justify-self: start;
  margin-left: clamp(40px, 20%, 300px);
}

/* スマホ：顔とぶつからないよう、表題をさらに左端へ寄せ（左の♪の丸がはみ出さない余白は残す）、
   写真を少し拡大して、顔が表題の右下に来るようにずらす */
@media (max-width: 600px) {
  .notice-hero--reference {
    background-size: 140% auto;
    background-position: 30% 40%;
  }

  .notice-hero--reference .notice-hero__badge {
    margin-left: 26px;
  }

  /* 顔の上に重なる白い音符は出さず、頭の上に来る黄色い音符は左下へ移す */
  .notice-hero--reference .note--6 {
    display: none;
  }

  .notice-hero--reference .note--8 {
    top: 72%;
    right: auto;
    left: 8%;
  }
}

/* 文字が読みやすいよう、写真に青い色を重ねる */
.notice-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(160deg, rgba(27, 47, 94, 0.62), rgba(29, 111, 200, 0.42) 55%, rgba(255, 111, 168, 0.32));
}

/* 表題のバッジ */
.notice-hero__badge {
  position: relative;
  z-index: 2;
  padding: clamp(14px, 2.4vw, 22px) clamp(28px, 5vw, 56px);
  background: #fff;
  border: 4px solid var(--pop-yellow);
  border-radius: 999px;
  box-shadow:
    0 8px 0 var(--pop-pink),
    0 18px 30px rgba(10, 24, 56, 0.35);
  transform: rotate(-2deg);
  animation: badge-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.notice-hero__title {
  font-family: var(--font-pop);
  font-size: clamp(20px, 4.6vw, 40px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
}

.notice-hero__title a {
  text-decoration: none;
}

.notice-hero__title a:hover {
  opacity: 0.8;
}

/* スマホ用の改行（パソコンでは1行） */
.notice-hero__br {
  display: none;
}

/* 「ささな」を1文字ずつポップな色に、少し弾ませる */
.notice-hero__title [class^="pop-c"] {
  display: inline-block;
}

.pop-c1 { color: var(--pop-pink); transform: rotate(-8deg) translateY(-2px); }
.pop-c2 { color: var(--pop-sky); transform: rotate(6deg) translateY(2px); }
.pop-c3 { color: var(--pop-mint); transform: rotate(-4deg) translateY(-3px); }

/* バッジの左右の音符 */
.notice-hero__badge-note {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(34px, 5vw, 48px);
  height: clamp(34px, 5vw, 48px);
  font-size: clamp(18px, 2.8vw, 26px);
  line-height: 1;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(10, 24, 56, 0.25);
}

.notice-hero__badge-note--left {
  left: 0;
  background: var(--pop-sky);
  transform: translate(-55%, -70%) rotate(-12deg);
}

.notice-hero__badge-note--right {
  right: 0;
  background: var(--pop-pink);
  transform: translate(55%, -10%) rotate(12deg);
}

/* ふわふわ浮かぶ音符 */
.notice-hero__notes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.note {
  position: absolute;
  font-size: var(--size, 32px);
  line-height: 1;
  color: var(--color, #fff);
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9),
    0 4px 12px rgba(10, 24, 56, 0.35);
  animation: note-float var(--dur, 5s) ease-in-out var(--delay, 0s) infinite alternate;
}

.note--1 { top: 12%; left: 7%;   --size: clamp(28px, 4.5vw, 48px); --color: var(--pop-yellow); --dur: 4.6s; }
.note--2 { top: 62%; left: 12%;  --size: clamp(24px, 3.6vw, 40px); --color: var(--pop-pink);   --dur: 5.4s; --delay: -1.2s; }
.note--3 { top: 18%; left: 28%;  --size: clamp(18px, 2.6vw, 28px); --color: #fff;              --dur: 6s;   --delay: -2.4s; }
.note--4 { top: 70%; left: 34%;  --size: clamp(16px, 2.2vw, 24px); --color: var(--pop-mint);   --dur: 4.2s; --delay: -0.6s; }
.note--5 { top: 10%; right: 26%; --size: clamp(20px, 3vw, 32px);   --color: var(--pop-mint);   --dur: 5.2s; --delay: -3s; }
.note--6 { top: 60%; right: 30%; --size: clamp(18px, 2.4vw, 26px); --color: #fff;              --dur: 4.8s; --delay: -1.8s; }
.note--7 { top: 16%; right: 8%;  --size: clamp(26px, 4vw, 44px);   --color: var(--pop-pink);   --dur: 5.8s; --delay: -0.9s; }
.note--8 { top: 64%; right: 10%; --size: clamp(24px, 3.8vw, 42px); --color: var(--pop-yellow); --dur: 4.4s; --delay: -2s; }

@keyframes note-float {
  from { transform: translateY(6px) rotate(-10deg); }
  to   { transform: translateY(-10px) rotate(10deg); }
}

@keyframes badge-pop {
  from { opacity: 0; transform: rotate(-2deg) scale(0.7); }
  to   { opacity: 1; transform: rotate(-2deg) scale(1); }
}

/* 動きを減らす設定の人には、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  .note,
  .notice-hero__badge {
    animation: none;
  }
}

/* ログアウトボタン（右上） */
.notice-hero__logout {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  padding: 5px 16px;
  font-size: 13px;
  color: var(--navy);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(10, 24, 56, 0.2);
  transition: background 0.2s;
}

.notice-hero__logout:hover {
  background: #fff;
}

/* 定期演奏会までのカウントダウン（左上のステッカー） */
.notice-countdown {
  position: absolute;
  top: clamp(12px, 2vw, 22px);
  left: clamp(12px, 2.4vw, 32px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(6px, 1vw, 10px) clamp(14px, 2vw, 22px);
  font-family: var(--font-pop);
  line-height: 1.25;
  color: var(--navy);
  background: var(--pop-yellow);
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow:
    0 5px 0 var(--pop-pink),
    0 10px 20px rgba(10, 24, 56, 0.3);
  transform: rotate(-5deg);
  animation: countdown-swing 2.6s ease-in-out infinite alternate;
}

.notice-countdown__main {
  font-size: clamp(13px, 1.6vw, 17px);
  white-space: nowrap;
}

.notice-countdown__ato {
  margin-left: 0.3em;
}

/* 残り日数の数字を大きく、ピンクで */
.notice-countdown__num {
  display: inline-block;
  margin: 0 0.08em;
  font-size: 2em;
  font-weight: 400;
  line-height: 1;
  color: var(--pop-pink);
  vertical-align: -0.12em;
  text-shadow:
    2px 2px 0 #fff,
    -2px 2px 0 #fff,
    2px -2px 0 #fff,
    -2px -2px 0 #fff;
}

.notice-countdown__num--today {
  font-size: 1.6em;
}

.notice-countdown__date {
  margin-top: 2px;
  font-size: clamp(11px, 1.2vw, 13px);
  color: #2b4a8a;
}

@keyframes countdown-swing {
  from { transform: rotate(-6deg); }
  to   { transform: rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .notice-countdown {
    animation: none;
  }
}

/* 下の波（ページの背景色と同じ色） */
.notice-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 2;
  width: 100%;
  height: clamp(24px, 4vw, 48px);
  fill: var(--cream);
}

/* ==========================================================
   本体
   ========================================================== */
.notice-main {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

/* お知らせ一覧 */
.notice-list {
  display: grid;
  gap: 16px;
}

.notice-card {
  display: block;
  padding: 20px 24px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.notice-card:hover {
  box-shadow: 0 6px 18px rgba(27, 47, 94, 0.12);
  transform: translateY(-2px);
}

.notice-card:focus-visible {
  outline: 3px solid rgba(29, 111, 200, 0.45);
  outline-offset: 2px;
}

.notice-card__date {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.notice-card__title {
  margin-top: 2px;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy);
}

.notice-card__excerpt {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.notice-card__excerpt:empty {
  display: none;
}

.notice-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
}

/* ページ送り */
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.pagination .page-numbers.dots {
  background: none;
  border: none;
}

/* お知らせ記事 */
.notice-post {
  padding: 32px clamp(20px, 5vw, 48px) 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.notice-post__header {
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--sky);
}

.notice-post__date {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.notice-post__title {
  font-family: var(--font-title);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy);
}

.notice-post__nav {
  margin-top: 28px;
  text-align: center;
}

.notice-post__nav a {
  display: inline-block;
  padding: 10px 28px;
  color: var(--blue);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--blue);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.notice-post__nav a:hover {
  color: #fff;
  background: var(--blue);
}

/* 本文（ブロックエディターの出力） */
.entry-content > * + * {
  margin-top: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy);
}

.entry-content h2 {
  margin-top: 2em;
  padding-left: 12px;
  font-size: 22px;
  border-left: 5px solid var(--blue);
}

.entry-content h3 {
  margin-top: 1.6em;
  font-size: 19px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
}

.entry-content ul {
  list-style: disc;
}

.entry-content a {
  color: var(--blue);
  word-break: break-all;
}

.entry-content figure {
  margin-left: 0;
  margin-right: 0;
}

.entry-content figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.entry-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ==========================================================
   ログインフォーム（ログインしていないとき）
   ========================================================== */
.notice-login {
  max-width: 460px;
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.notice-login__title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  text-align: center;
}

.notice-login__lead {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.notice-login form {
  margin-top: 24px;
}

.notice-login form p + p {
  margin-top: 16px;
}

.notice-login label {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.notice-login input[type="text"],
.notice-login input[type="password"] {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice-login input[type="text"]:focus,
.notice-login input[type="password"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 111, 200, 0.25);
}

.notice-login .login-remember label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-login input[type="submit"] {
  width: 100%;
  padding: 12px;
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.notice-login input[type="submit"]:hover {
  background: var(--navy);
}

/* ==========================================================
   フッター
   ========================================================== */
.notice-footer {
  padding: 24px 20px;
  text-align: center;
  color: #fff;
  background: var(--navy);
}

.notice-footer__back {
  font-size: 14px;
}

.notice-footer__copy {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.8;
}

/* ==========================================================
   スマートフォン
   ========================================================== */
@media (max-width: 600px) {
  .notice-hero__title {
    white-space: normal;
  }

  /* 左上のカウントダウンと重ならないよう、表題を少し下げる */
  .notice-hero:has(.notice-countdown) {
    padding-top: 92px;
  }

  /* スマホでは表題を2行に（「ささな」と「団員お知らせページ」） */
  .notice-hero__br {
    display: inline;
  }

  .notice-hero__badge {
    border-radius: 28px;
  }

  .notice-main {
    padding: 28px 16px 40px;
  }

  .notice-card {
    padding: 16px 18px;
  }

  .notice-card__title {
    font-size: 18px;
  }
}

/* ==========================================================
   指揮者から見た定期演奏会曲目の完成度（スライダー）
   五線譜のカードに、音符のつまみのカラフルなスライダーを並べています。
   ========================================================== */
.progress {
  --pop-yellow: #ffd23f;
  --pop-pink: #ff6fa8;
  --pop-mint: #3fd6b5;
  --pop-sky: #4fb3ff;
  --pop-purple: #9b7bff;
  --font-pop: "Mochiy Pop One", "Zen Maru Gothic", sans-serif;
  margin-bottom: 44px;
}

/* 題名 */
.progress__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  text-align: center;
}

.progress__title {
  font-family: var(--font-pop);
  font-size: clamp(17px, 3vw, 24px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy);
  /* 蛍光ペンのような黄色いライン */
  background: linear-gradient(transparent 62%, rgba(255, 210, 63, 0.75) 62%, rgba(255, 210, 63, 0.75) 92%, transparent 92%);
  padding: 0 6px;
}

.progress__title-sub {
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.12em;
  color: var(--pop-pink);
}

.progress__clef {
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1;
  color: var(--pop-sky);
  transform: rotate(-10deg);
  text-shadow: 3px 3px 0 var(--pop-yellow);
}

.progress__head-notes {
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: -0.1em;
  color: var(--pop-pink);
  transform: rotate(10deg);
  animation: progress-notes 1.8s ease-in-out infinite alternate;
}

@keyframes progress-notes {
  from { transform: rotate(6deg) translateY(2px); }
  to   { transform: rotate(14deg) translateY(-4px); }
}

/* 五線譜のカード */
.progress__card {
  padding: clamp(12px, 2.4vw, 22px) clamp(16px, 3.4vw, 32px) clamp(14px, 2.4vw, 20px);
  background:
    repeating-linear-gradient(to bottom, transparent 0 21px, rgba(29, 111, 200, 0.07) 21px 22px),
    #fff;
  border: 3px solid var(--navy);
  border-radius: 24px;
  box-shadow: 7px 7px 0 var(--pop-yellow);
}

/* 1曲ぶんの行：曲名｜スライダー｜パーセント */
.progress__item {
  --c1: var(--pop-pink);
  --c2: var(--pop-yellow);
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr 76px;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
  padding: 14px 0;
  border-bottom: 2px dashed var(--line);
}

.progress__item:last-child {
  border-bottom: none;
}

.progress__item--2 { --c1: var(--pop-sky);    --c2: var(--pop-mint); }
.progress__item--3 { --c1: var(--pop-mint);   --c2: var(--pop-yellow); }
.progress__item--4 { --c1: var(--pop-purple); --c2: var(--pop-pink); }

.progress__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pop);
  font-size: clamp(13px, 1.8vw, 16px);
  line-height: 1.4;
  color: var(--navy);
}

.progress__no {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: #fff;
  background: var(--c1);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 0 rgba(10, 24, 56, 0.2);
}

/* スライダー本体 */
.progress__range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 36px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.progress__range:disabled {
  cursor: default;
}

.progress__range:focus {
  outline: none;
}

/* バー（Chrome・Edge・Safari）：値のところまでカラフルに塗る */
.progress__range::-webkit-slider-runnable-track {
  height: 14px;
  background:
    linear-gradient(90deg, var(--c1), var(--c2)) 0 0 / var(--val, 0%) 100% no-repeat,
    #e6edf7;
  border-radius: 999px;
  box-shadow: inset 0 2px 3px rgba(10, 24, 56, 0.12);
}

/* つまみ（音符の丸） */
.progress__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 34px;
  margin-top: -10px;
  background: var(--c1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M10 3v11.3A3.6 3.6 0 1 0 12 17.5V8h5.5V3z'/%3E%3C/svg%3E") 55% 50% / 18px no-repeat;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 3px 0 rgba(10, 24, 56, 0.25),
    0 4px 10px rgba(10, 24, 56, 0.2);
  transition: transform 0.15s;
}

/* バー・つまみ（Firefox） */
.progress__range::-moz-range-track {
  height: 14px;
  background: #e6edf7;
  border-radius: 999px;
  box-shadow: inset 0 2px 3px rgba(10, 24, 56, 0.12);
}

.progress__range::-moz-range-progress {
  height: 14px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  border-radius: 999px;
}

.progress__range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: var(--c1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M10 3v11.3A3.6 3.6 0 1 0 12 17.5V8h5.5V3z'/%3E%3C/svg%3E") 55% 50% / 16px no-repeat;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(10, 24, 56, 0.25);
}

/* 動かせる人だけ、つまみを大きくする動き・つかむカーソル */
.is-editable .progress__range:not(:disabled) {
  cursor: grab;
}

.is-editable .progress__range:active {
  cursor: grabbing;
}

.is-editable .progress__range:hover::-webkit-slider-thumb,
.is-editable .progress__range:active::-webkit-slider-thumb {
  transform: scale(1.15) rotate(-8deg);
}

.progress__range:focus-visible::-webkit-slider-thumb {
  outline: 3px solid rgba(29, 111, 200, 0.6);
  outline-offset: 2px;
}

.progress__range:focus-visible::-moz-range-thumb {
  outline: 3px solid rgba(29, 111, 200, 0.6);
  outline-offset: 2px;
}

/* パーセント（ふきだし） */
.progress__value {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  height: 38px;
  line-height: 32px;
  font-family: var(--font-pop);
  font-size: 15px;
  color: #fff;
  background: var(--c1);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(10, 24, 56, 0.2);
}

.progress__value span {
  font-size: 19px;
}

/* 100%になったら、ふきだしがはずんで音符が飛ぶ */
.is-complete .progress__value {
  background: linear-gradient(135deg, var(--pop-pink), var(--pop-yellow));
  animation: progress-bounce 0.8s ease-in-out infinite alternate;
}

.is-complete .progress__value::after {
  content: "♪";
  position: absolute;
  top: -18px;
  right: -6px;
  font-size: 20px;
  color: var(--pop-pink);
}

@keyframes progress-bounce {
  from { transform: translateY(0) rotate(-3deg); }
  to   { transform: translateY(-4px) rotate(3deg); }
}

/* 下の案内・保存状態 */
.progress__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 10px;
  padding-top: 10px;
  font-size: 12px;
  color: var(--muted);
  border-top: 2px solid var(--sky);
}

.progress__status.is-error {
  color: #d6336c;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .progress__head-notes,
  .is-complete .progress__value {
    animation: none;
  }
}

/* スマートフォン：曲名を左に残したまま、幅を詰める */
@media (max-width: 600px) {
  .progress__head {
    gap: 6px;
  }

  .progress__item {
    grid-template-columns: 92px 1fr 58px;
    gap: 8px;
    padding: 12px 0;
  }

  .progress__label {
    gap: 0;
    font-size: 12px;
  }

  .progress__no {
    display: none;
  }

  .progress__value {
    height: 32px;
    font-size: 11px;
    line-height: 26px;
  }

  .progress__value span {
    font-size: 15px;
  }
}
