/* ============================================================
 * ヒトマチラジオ 特設ページ
 * 色・書体はミュージックのテーマに合わせ、ラジオの「ダイヤル」だけを
 * このページの目印にしています。差し色は針の1色のみ。
 * ============================================================ */

.hmx-radio {
  --rd-accent: #2747e0;
  --rd-step: 88px;      /* ダイヤルの1目盛り（1回分）の幅 */
  --rd-inset: 44px;     /* ダイヤル左端の余白 */
  max-width: 1180px;
}
.hmx-radio a:focus-visible,
.hmx-radio summary:focus-visible {
  outline: 2px solid var(--rd-accent);
  outline-offset: 3px;
}

/* ── ヒーロー ── */
.hmx-radio-hero { padding: 26px 0 0; }

.hmx-radio-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .01em;
}
.hmx-radio-mark span {
  color: var(--text-mid);
  font-weight: 500;
}
.hmx-radio-mark small {
  margin-left: 10px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-lt);
}

.hmx-radio-catch {
  margin-top: 30px;
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: .02em;
  font-feature-settings: "palt";
}

.hmx-radio-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hmx-radio-lead {
  max-width: 34em;
  font-size: 14px;
  line-height: 2;
  color: var(--text-mid);
}
.hmx-radio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hmx-radio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.hmx-radio-btn:hover { background: #2c3138; }
.hmx-radio-btn-line {
  background: none;
  color: var(--text);
}
.hmx-radio-btn-line:hover { background: var(--text); color: var(--white); }
.hmx-radio-btn-invert {
  background: var(--white);
  border-color: var(--white);
  color: var(--text);
}
.hmx-radio-btn-invert:hover { background: #e9ebee; }

/* ── ダイヤル：1目盛り＝1回。針がいま表示している回を指す ── */
.hmx-dial {
  margin-top: 46px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hmx-dial::-webkit-scrollbar { display: none; }
.hmx-dial ol {
  display: flex;
  min-width: max-content;
  width: 100%;
  padding: 16px 0 6px var(--rd-inset);
  list-style: none;
  background:
    linear-gradient(var(--text), var(--text)) 0 16px / 100% 1px no-repeat,
    linear-gradient(90deg, var(--text) 1px, transparent 1px) var(--rd-inset) 16px / var(--rd-step) 18px repeat-x,
    linear-gradient(90deg, rgba(22, 25, 29, .34) 1px, transparent 1px) var(--rd-inset) 16px / calc(var(--rd-step) / 8) 8px repeat-x;
}
.hmx-dial li {
  position: relative;
  flex: 0 0 var(--rd-step);
}
.hmx-dial a {
  display: block;
  padding: 28px 0 8px;
}
.hmx-dial-no {
  display: inline-block;
  min-width: 2.6em;
  transform: translateX(-50%);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  color: var(--text-lt);
  transition: color .15s;
}
.hmx-dial a:hover .hmx-dial-no { color: var(--text); }
.hmx-dial li.is-current .hmx-dial-no {
  color: var(--rd-accent);
  font-weight: 900;
}
/* 針 */
.hmx-dial li.is-current::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -16px;
  width: 3px;
  height: 42px;
  border-radius: 2px;
  background: var(--rd-accent);
  animation: hmx-needle .7s cubic-bezier(.2, .9, .3, 1.15) both;
}
@keyframes hmx-needle {
  from { transform: translateX(calc(var(--rd-step) * -1.5)); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hmx-dial li.is-current::before { animation: none; }
}

/* ── 表示中の回 ── */
.hmx-radio-now {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 34px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.hmx-radio-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0e0f11;
}
.hmx-radio-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.hmx-radio-now-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 12px;
  color: var(--text-lt);
  font-variant-numeric: tabular-nums;
}
.hmx-radio-no {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--text);
}
.hmx-radio-latest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
}
.hmx-radio-latest::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rd-accent);
}
.hmx-radio-now-title {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.55;
}
.hmx-radio-guest {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.7;
}
.hmx-radio-guest span {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  padding: 5px 10px;
  border: 1px solid var(--text);
  border-radius: var(--radius-pill);
}
.hmx-radio-notes {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 2;
  color: var(--text-mid);
  overflow-wrap: anywhere;
}
.hmx-radio-notes p + p,
.hmx-radio-notes details,
.hmx-radio-notes details > * + * { margin-top: 1.1em; }
.hmx-radio-notes a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hmx-radio-notes summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hmx-radio-notes summary::-webkit-details-marker { display: none; }
.hmx-radio-notes details[open] summary { display: none; }
.hmx-radio-now-link {
  margin-top: 22px;
  font-size: 12.5px;
  font-weight: 700;
}
.hmx-radio-now-link a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── これまでの放送 ── */
.hmx-radio-section { margin-top: 64px; }
.hmx-radio-section > .section-label-lg { margin-bottom: 20px; }

.hmx-radio-card.is-current { border-color: var(--text); }
.hmx-radio-card-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-lt);
  font-variant-numeric: tabular-nums;
}
.hmx-radio-card-no {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}
.hmx-radio-card-on {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 9px;
  border: 1px solid var(--text);
  border-radius: var(--radius-pill);
  color: var(--text);
}

/* ── 話している人 ── */
.hmx-radio-cast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 32px;
}
.hmx-radio-cast li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--text);
}
.hmx-radio-face {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
}
.hmx-radio-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hmx-radio-face.is-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}
.hmx-radio-cast-name {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}
.hmx-radio-cast-role {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-mid);
}
.hmx-radio-cast-bio {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-mid);
}

/* ── ゲスト・お便りの募集（フォーム） ── */
.hmx-radio-recruit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 32px 56px;
  align-items: start;
  margin-top: 64px;
  padding: 44px 44px 40px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--white);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.hmx-radio-recruit a:focus-visible,
.hmx-radio-recruit button:focus-visible { outline-color: var(--white); }
.hmx-radio-recruit h2 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
}
.hmx-radio-recruit-text p {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 2;
  color: #c7cad0;
}

.hmx-radio-form { min-width: 0; }
/* 自動送信よけの欄（人には見せない） */
.hmx-radio-form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.hmx-radio-form-alert {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fbeaea;
  color: #8a1f1f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.hmx-radio-form-kinds {
  border: none;
  margin-bottom: 22px;
}
.hmx-radio-form-kinds legend,
.hmx-radio-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
}
.hmx-radio-field label small {
  margin-left: 10px;
  font-size: 11.5px;
  font-weight: 400;
  color: #a9aeb6;
}
.hmx-radio-form-kinds div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hmx-radio-form-kinds label { position: relative; cursor: pointer; }
.hmx-radio-form-kinds input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.hmx-radio-form-kinds span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: #dfe1e5;
  transition: background .15s, color .15s, border-color .15s;
}
.hmx-radio-form-kinds label:hover span { border-color: var(--white); }
.hmx-radio-form-kinds input:checked + span {
  background: var(--white);
  border-color: var(--white);
  color: var(--text);
}
.hmx-radio-form-kinds input:focus-visible + span {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.hmx-radio-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.hmx-radio-field { margin-bottom: 20px; }
.hmx-radio-field input,
.hmx-radio-field textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
}
.hmx-radio-field textarea { resize: vertical; min-height: 150px; }
.hmx-radio-field input:focus,
.hmx-radio-field textarea:focus {
  outline: none;
  border-color: #8fa3ff;
}
.hmx-radio-field.has-error input,
.hmx-radio-field.has-error textarea { border-color: #ff8f8f; }
.hmx-radio-field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffb3b3;
}

.hmx-radio-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.hmx-radio-form-note {
  flex: 1 1 240px;
  font-size: 11.5px;
  line-height: 1.8;
  color: #a9aeb6;
}
.hmx-radio-form-foot .hmx-radio-btn {
  min-width: 168px;
  margin-left: auto;
  cursor: pointer;
  font-family: inherit;
}

.hmx-radio-form-done {
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 2;
  color: #dfe1e5;
}
.hmx-radio-form-done-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--white);
}
.hmx-radio-form-done a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .hmx-radio { --rd-step: 72px; --rd-inset: 30px; }
  .hmx-radio-hero { padding-top: 10px; }
  .hmx-radio-catch { margin-top: 22px; }
  .hmx-radio-intro { margin-top: 20px; }
  .hmx-radio-lead { font-size: 13.5px; }
  .hmx-radio-actions { width: 100%; }
  .hmx-radio-actions .hmx-radio-btn { flex: 1; padding: 0 12px; }
  .hmx-dial { margin: 34px -16px 0; }

  .hmx-radio-now {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 24px;
  }
  .hmx-radio-no { font-size: 26px; }
  .hmx-radio-now-title { font-size: 18px; margin-top: 12px; }

  .hmx-radio-section { margin-top: 48px; }
  .hmx-radio-cast { grid-template-columns: minmax(0, 1fr); }
  .hmx-radio-cast li { padding: 18px 0; }
  .hmx-radio-face { width: 56px; height: 56px; }

  .hmx-radio-recruit {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding: 28px 20px 26px;
  }
  .hmx-radio-recruit h2 { font-size: 19px; }
  .hmx-radio-form-row { grid-template-columns: minmax(0, 1fr); }
  /* iPhoneで入力時に画面が拡大しないよう16px以上にする */
  .hmx-radio-field input,
  .hmx-radio-field textarea { font-size: 16px; }
  .hmx-radio-form-foot .hmx-radio-btn { width: 100%; }
}
