/* ============================================================
   Torus Studio Podcast — editorial / listening room
   温かい紙色 × 深い緑 × ライム。モバイルファースト。
   ============================================================ */

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

:root {
  --paper: #f4f1e9;
  --paper-2: #ece8dc;
  --mint: #e9f2dc;
  --surface: #fffdf8;
  --ink: #141a16;
  --ink-soft: #2a312c;
  --muted: #6f766f;
  --line: #ddd8cb;
  --deep: #10231a;
  --deep-2: #173327;
  --green: #1d5b40;
  --lime: #c9f26b;
  --lime-soft: #eaf8c9;
  --white: #fffdf8;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 28px 70px -40px rgba(16, 35, 26, 0.55);
  --shadow-soft: 0 16px 40px -28px rgba(16, 35, 26, 0.38);
  --max: 1200px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP",
    Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Roboto, Helvetica, Arial,
    sans-serif;
}

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

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

audio {
  width: 100%;
  height: 38px;
  accent-color: var(--green);
}

::selection {
  background: var(--lime);
  color: var(--deep);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--deep);
}

.btn-primary:hover {
  background: #d9ff8a;
  border-color: #d9ff8a;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(201, 242, 107, 0.9);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 253, 248, 0.3);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--mint);
  border-top: 3px solid var(--lime);
  border-bottom: 1px solid rgba(20, 26, 22, 0.1);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--max);
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(16, 35, 26, 0.1);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.brand-title {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-sub {
  display: none;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* モバイル: ドロップダウン */
.site-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -30px rgba(16, 35, 26, 0.45);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.site-nav a:hover {
  background: var(--paper);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--lime-soft);
  color: var(--ink);
}

.site-nav a.nav-cta {
  margin-top: 8px;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--deep);
  font-weight: 700;
  text-align: center;
}

.site-nav a.nav-rss {
  margin-top: 4px;
  border: 1px solid var(--line);
  color: var(--green);
  font-weight: 600;
  text-align: center;
}

.nav-search {
  display: flex;
  margin-top: 6px;
}

/* 検索 */
.header-search {
  position: relative;
  display: none;
  align-items: center;
}

.header-search input[type="search"] {
  width: 100%;
  padding: 9px 36px 9px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.header-search input[type="search"]::placeholder {
  color: #9aa09a;
}

.header-search input[type="search"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(201, 242, 107, 0.3);
}

.header-search button[type="submit"] {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.header-search button[type="submit"]::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 9px;
  height: 9px;
  border: 1.6px solid var(--muted);
  border-radius: 50%;
}

.header-search button[type="submit"]::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 15px;
  width: 6px;
  height: 1.6px;
  background: var(--muted);
  transform: rotate(45deg);
}

/* メニューボタン */
.menu-toggle {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s ease, top 0.22s ease;
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 23px;
}

.menu-toggle.is-active span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 60px;
  background: var(--mint);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(16, 35, 26, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .kicker {
  color: var(--green);
}

.kicker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 91, 64, 0.12);
}

.hero h1 {
  margin: 18px 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(38px, 8vw, 76px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.hero .lead {
  max-width: 38em;
  color: rgba(20, 26, 22, 0.7);
  font-size: clamp(14px, 1.6vw, 16.5px);
  line-height: 1.95;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 30px;
  list-style: none;
}

.hero-chip {
  padding: 7px 13px;
  border: 1px solid rgba(16, 35, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.62);
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.hero .btn-primary {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--lime);
}

.hero .btn-primary:hover {
  background: #1b3b2b;
  border-color: #1b3b2b;
  color: var(--lime);
  box-shadow: 0 14px 26px -16px rgba(16, 35, 26, 0.6);
}

.hero .btn-outline {
  border-color: rgba(16, 35, 26, 0.22);
  color: var(--ink);
}

.hero .btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.hero-art {
  display: flex;
  justify-content: center;
  width: 100%;
}

.cover-card {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(16, 35, 26, 0.1);
  border-radius: 24px;
  box-shadow: 0 36px 80px -46px rgba(16, 35, 26, 0.42);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}

.cover-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.cover-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 特徴ストリップ ---------- */
.feature-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.feature-card {
  padding: 26px 24px;
  border-top: 1px solid var(--line);
}

.feature-card:first-child {
  border-top: none;
}

.feature-no {
  color: var(--green);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.feature-card h2 {
  margin: 7px 0 5px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.feature-card p {
  max-width: 34em;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

/* ---------- 最新回 ---------- */
.latest-section {
  padding-top: 44px;
}

.latest-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.latest-card::after {
  content: "LISTEN";
  position: absolute;
  right: -12px;
  bottom: -42px;
  color: rgba(16, 35, 26, 0.035);
  font-family: var(--serif);
  font-size: 130px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
}

.latest-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.latest-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.latest-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 16px;
}

.latest-no {
  margin-bottom: 4px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
}

.latest-title {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.latest-title a:hover {
  color: var(--green);
}

.latest-desc {
  max-width: 46em;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.latest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.latest-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}

.latest-side audio {
  width: 100%;
}

.latest-side .btn {
  width: 100%;
}

/* ---------- セクション・一覧 ---------- */
.section {
  padding: 56px 0 20px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--ink);
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.sort-btn {
  padding: 7px 13px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.sort-btn:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}

.search-status {
  margin: 12px 0;
  color: var(--muted);
  font-size: 12.5px;
}

.search-status:empty {
  display: none;
}

.ep-list {
  display: flex;
  flex-direction: column;
}

.ep-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.ep-index {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.ep-no {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.ep-date {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.ep-body {
  min-width: 0;
}

.ep-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.ep-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.ep-title a {
  transition: color 0.15s ease;
}

.ep-title a:hover {
  color: var(--green);
}

.ep-duration {
  flex: none;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ep-desc {
  max-width: 62em;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.ep-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
}

.ep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ep-tag {
  display: inline-block;
  padding: 4px 9px;
  background: var(--lime-soft);
  border-radius: 999px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.ep-foot audio {
  width: 100%;
  max-width: 360px;
  height: 36px;
}

.ep-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
}

.ep-note code {
  padding: 1px 5px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
}

.ep-arrow {
  display: none;
}

.search-empty {
  padding: 48px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- 空状態 ---------- */
.empty-state {
  margin-top: 24px;
  padding: 56px 24px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-label {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.empty-title {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.empty-state p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.empty-state .btn {
  margin-top: 8px;
}

/* ---------- エピソード詳細 ---------- */
.episode-main {
  padding-bottom: 24px;
}

.episode-head {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 30px 24px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.episode-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.episode-head .kicker {
  color: var(--green);
}

.episode-head .crumb {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.episode-head .crumb a:hover {
  color: var(--green);
}

.episode-head h1 {
  position: relative;
  z-index: 1;
  max-width: 24em;
  margin: 14px 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(27px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.42;
}

.episode-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.episode-player {
  position: relative;
  z-index: 1;
}

.episode-player audio {
  width: 100%;
  max-width: 560px;
}

.episode-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.episode-tags .ep-tag {
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  color: var(--green);
}

.episode-head .ep-note {
  position: relative;
  z-index: 1;
  color: var(--muted);
}

.episode-head .ep-note code {
  background: rgba(255, 253, 248, 0.7);
  border-color: var(--line);
}

.episode-content {
  margin-top: 22px;
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.episode-lead {
  margin-bottom: 26px;
  padding-left: 15px;
  border-left: 3px solid var(--lime);
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.95;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pager .btn {
  min-height: 40px;
  padding: 9px 17px;
  font-size: 12.5px;
}

/* ---------- 固定ページ・本文 ---------- */
.page-head {
  padding: 56px 0 0;
}

.page-head h1 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(29px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.crumb {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.crumb a:hover {
  color: var(--green);
}

.content-block {
  padding-bottom: 24px;
}

.page-article {
  max-width: 820px;
  margin-top: 22px;
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.detail-section {
  margin-top: 30px;
}

.detail-section:first-child {
  margin-top: 0;
}

.detail-section h2,
.profile-card h2 {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  margin-top: 30px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-section h2:first-child,
.profile-card h2:first-child {
  margin-top: 0;
}

.detail-section h3 {
  margin: 24px 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.detail-section p,
.profile-card p,
.profile-card li {
  max-width: 48em;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 2;
}

.detail-section p + p {
  margin-top: 1em;
}

.detail-section a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detail-section ul,
.detail-section ol {
  margin: 0.6em 0;
  padding-left: 1.4em;
}

.detail-section li {
  max-width: 48em;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.95;
}

.detail-section li + li {
  margin-top: 0.3em;
}

.detail-section blockquote {
  margin: 1em 0;
  padding: 10px 16px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.detail-section hr {
  margin: 26px 0;
  border: none;
  border-top: 1px solid var(--line);
}

/* ---------- フォーム ---------- */
.form-card {
  max-width: 760px;
  margin-top: 22px;
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.form-card label {
  display: block;
  margin: 20px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.form-card label:first-of-type {
  margin-top: 0;
}

.form-card input[type="text"],
.form-card textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.form-card input[type="text"]:focus,
.form-card textarea:focus {
  background: var(--surface);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(201, 242, 107, 0.3);
  outline: none;
}

.form-card textarea {
  min-height: 180px;
  resize: vertical;
}

.notice {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--lime-soft);
  border-left: 3px solid var(--lime);
  border-radius: 0 12px 12px 0;
  font-size: 12.5px;
  line-height: 1.85;
}

.notice a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.form-note a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-done {
  display: none;
  margin-top: 18px;
  padding: 13px 16px;
  background: var(--lime-soft);
  border-left: 3px solid var(--lime);
  border-radius: 0 12px 12px 0;
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 72px;
  padding: 36px 0 44px;
  background: var(--deep);
  color: rgba(255, 253, 248, 0.55);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer .footer-inner p {
  color: rgba(255, 253, 248, 0.45);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
}

.footer-links a {
  color: rgba(255, 253, 248, 0.62);
  font-size: 11.5px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--lime);
}

/* ---------- 検索ユーティリティ ---------- */
.is-hidden {
  display: none !important;
}

/* ============================================================
   デスクトップ
   ============================================================ */
@media (min-width: 900px) {
  .header-inner {
    height: 76px;
    gap: 24px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-sub {
    display: block;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .site-nav a {
    padding: 8px 12px;
    font-size: 12.5px;
  }

  .site-nav a.nav-cta {
    margin: 0 0 0 10px;
    padding: 9px 18px;
  }

  .site-nav a.nav-rss {
    margin: 0 0 0 4px;
    padding: 8px 15px;
  }

  .header-search {
    display: flex;
    flex: none;
    width: 210px;
  }

  .header-search.nav-search {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    padding: 104px 0 96px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }

  .cover-card {
    width: 100%;
    max-width: 400px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-card {
    padding: 34px 30px;
    border-top: none;
    border-left: 1px solid var(--line);
  }

  .feature-card:first-child {
    border-left: none;
  }

  .latest-section {
    padding-top: 56px;
  }

  .latest-card {
    padding: 38px 40px;
  }

  .latest-grid {
    grid-template-columns: 1.45fr 0.55fr;
    gap: 44px;
    align-items: center;
  }

  .latest-side .btn {
    width: auto;
  }

  .section {
    padding: 64px 0 24px;
  }

  .section-head h2 {
    font-size: 25px;
  }

  .ep-item {
    grid-template-columns: 100px 1fr 44px;
    gap: 28px;
    align-items: start;
    margin: 0 -14px;
    padding: 30px 14px;
    border-radius: 14px;
  }

  .ep-item:hover {
    background: rgba(255, 253, 248, 0.7);
  }

  .ep-index {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ep-no {
    font-size: 40px;
  }

  .ep-title {
    font-size: 21px;
  }

  .ep-arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: 2px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    font-size: 15px;
    transition:
      background 0.18s ease,
      border-color 0.18s ease,
      color 0.18s ease,
      transform 0.18s ease;
  }

  .ep-arrow:hover {
    background: var(--deep);
    border-color: var(--deep);
    color: var(--lime);
    transform: translateX(2px);
  }

  .episode-head {
    margin-top: 36px;
    padding: 50px 48px;
  }

  .episode-content {
    padding: 44px 48px;
  }

  .page-head {
    padding-top: 72px;
  }

  .page-article,
  .form-card {
    padding: 40px 44px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding: 120px 0 112px;
  }

  .hero h1 {
    font-size: clamp(52px, 6vw, 84px);
  }

  .section {
    padding-top: 76px;
  }
}

/* モバイルの細部 */
@media (max-width: 899px) {
  .header-search {
    display: none;
  }

  .nav-search {
    display: flex;
  }

  .hero-art {
    max-width: 340px;
    margin: 0 auto;
  }

  .ep-arrow {
    display: none;
  }

  .ep-foot audio {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
