/* Relax time サンセットビーチ（v2）— 現行の配色を引き継ぎ、スマホ優先で書き直し */
:root {
  --primary: #e67e22;
  --primary-d: #d35400;
  --accent: #1abc9c;
  --bg: #faf8f5;
  --card: #f3eee7;
  --border: #e0d5c5;
  --text: #2c3e50;
  --muted: #6b7a7b;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(44, 62, 80, 0.12);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Noto Sans JP', 'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.35; }
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit; background: none; color: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 14px rgba(230, 126, 34, .35); }
.btn-primary:hover { background: var(--primary-d); }
.btn-outline { border-color: var(--primary); color: var(--primary-d); background: var(--white); }
.btn-outline:hover { background: #fff4e8; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 245, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.header-logo { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--primary-d); white-space: nowrap; }
.header-nav { display: none; gap: 24px; font-size: 14px; font-weight: 500; color: var(--muted); }
.header-nav a:hover { color: var(--primary-d); }

/* HERO */
.hero {
  background: linear-gradient(180deg, #fdeedd 0%, #eaf6f1 100%);
  padding: 56px 0 64px; text-align: center;
}
.eyebrow { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: 12px; color: var(--primary-d); }
.hero h1 { font-size: clamp(26px, 7vw, 46px); font-weight: 800; margin: 12px 0 18px; }
.accent { color: var(--primary); font-size: 1.2em; }
.catch { font-size: clamp(16px, 4.2vw, 20px); font-weight: 700; margin-bottom: 14px; }
.hero-sub { font-size: 14px; color: var(--muted); max-width: 34em; margin: 0 auto 28px; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin: 0 auto; }
.platform {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; padding: 8px 12px; border-radius: 14px; background: var(--white);
  border: 1.5px solid var(--border); font-weight: 700; font-size: 15px; box-shadow: 0 2px 8px rgba(44,62,80,.06);
  transition: transform .2s, border-color .2s;
}
.platform:hover { transform: translateY(-2px); border-color: var(--primary); }
.platform small { font-size: 11px; font-weight: 500; color: var(--muted); }

/* シェア（QR・共有） */
.share { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; max-width: 460px; margin: 28px auto 0; text-align: left; }
.share-qr { width: 112px; height: 112px; padding: 6px; background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; flex: 0 0 auto; }
.share-qr svg { display: block; width: 100%; height: 100%; }
.share-body { flex: 1 1 200px; }
.share-lead { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) { .share { flex-direction: column; text-align: center; } .share-btns { justify-content: center; } }

/* セクション */
.section { padding: 56px 0; }
.section-tint { background: var(--card); }
.section-title { font-size: clamp(20px, 5vw, 26px); font-weight: 800; margin-bottom: 8px; }
.section-lead { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.count { font-size: 14px; font-weight: 500; color: var(--muted); }
.loading, .error { color: var(--muted); font-size: 14px; padding: 12px 0; }
.error a { color: var(--primary-d); text-decoration: underline; }

/* 最新回 */
.latest-box { margin-top: 18px; }
.latest {
  display: grid; gap: 0; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.latest-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--card); }
.latest-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.badge { align-self: flex-start; background: var(--accent); color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; letter-spacing: .06em; }
.meta { font-size: 12px; color: var(--muted); }
.latest-body h3 { font-size: 20px; }
.latest-desc { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.latest-links { display: flex; flex-wrap: wrap; gap: 8px; }
.latest audio, .player-dialog audio { width: 100%; margin-top: 4px; }

/* おすすめ3×3 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  font-family: inherit; color: inherit; transition: transform .2s, box-shadow .2s; padding: 0;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--card); }
.card-body { padding: 8px 8px 10px; }
.card-num { font-family: var(--font-display); font-weight: 700; font-size: 11px; color: var(--primary-d); }
.card-title { font-size: 12px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-note { display: none; font-size: 13px; color: var(--muted); margin-top: 4px; }
.card-play {
  position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--primary-d); display: grid; place-items: center; font-size: 11px;
}

/* 全エピソード */
.search { display: block; margin: 16px 0; }
.search input {
  width: 100%; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--border);
  font-size: 16px; font-family: inherit; background: var(--white); color: var(--text);
}
.search input:focus { outline: none; border-color: var(--primary); }
.ep-list { display: grid; gap: 8px; }
.ep-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; width: 100%;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 8px;
  text-align: left; cursor: pointer; font-family: inherit; color: inherit; transition: border-color .2s;
}
.ep-item:hover { border-color: var(--primary); }
.ep-item img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--card); }
.ep-item .t { font-weight: 700; font-size: 14px; line-height: 1.5; }
.ep-item .m { font-size: 12px; color: var(--muted); }
.more-wrap { text-align: center; margin-top: 20px; }
.empty { color: var(--muted); font-size: 14px; padding: 16px 0; }

/* ホスト */
.hosts { display: grid; gap: 14px; margin-top: 18px; }
.host { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.host-avatar { width: 64px; height: 64px; border-radius: 50%; background: #fdeedd; display: grid; place-items: center; font-size: 30px; margin: 0 auto 10px; }
.host h3 { font-size: 18px; margin-bottom: 6px; }
.host p { font-size: 14px; color: var(--muted); text-align: left; }

/* お便り */
.letter-card {
  text-align: center; background: linear-gradient(135deg, #fdeedd, #eaf6f1);
  border-radius: var(--radius); padding: 36px 22px; border: 1px solid var(--border);
}
.letter-icon { font-size: 34px; }
.letter-card p { font-size: 14px; margin: 8px 0 20px; }

/* フッター */
.site-footer { background: var(--text); color: #dfe6e9; text-align: center; padding: 36px 0 28px; }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--white); }
.footer-tagline { font-size: 13px; margin: 4px 0 16px; }
.sns { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.sns a {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); font-size: 14px; font-weight: 700;
}
.sns a:hover { background: rgba(255,255,255,.12); }
.footer-copy { font-size: 11px; opacity: .7; }

/* 再生パネル */
.player-dialog {
  border: none; border-radius: var(--radius); padding: 0; width: min(92vw, 520px); max-height: 90vh;
  overflow: auto; margin: auto; background: var(--white); color: var(--text); box-shadow: var(--shadow);
}
.player-dialog::backdrop { background: rgba(44, 62, 80, .55); }
.dialog-close {
  position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.92); font-size: 22px; line-height: 1; cursor: pointer; color: var(--text);
}
.dlg-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--card); }
.dlg-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.dlg-body h3 { font-size: 18px; }
.dlg-meta { font-size: 12px; color: var(--muted); }
.dlg-desc { font-size: 14px; color: var(--muted); max-height: 9em; overflow: auto; white-space: pre-line; }
.dlg-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* 広い画面 */
@media (min-width: 720px) {
  .header-nav { display: flex; }
  .hero { padding: 84px 0 92px; }
  .platforms { grid-template-columns: repeat(4, auto); max-width: none; justify-content: center; }
  .platform { padding: 8px 22px; }
  .section { padding: 72px 0; }
  .latest { grid-template-columns: 260px 1fr; }
  .latest-img { height: 100%; aspect-ratio: auto; }
  .latest-body { padding: 26px; }
  .cards { gap: 18px; }
  .card-title { font-size: 14px; }
  .card-num { font-size: 12px; }
  .card-body { padding: 12px 14px 14px; }
  .card-note { display: block; }
  .hosts { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ep-item { grid-template-columns: 72px 1fr; padding: 10px 12px; }
  .ep-item img { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
