:root {
  color-scheme: light;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-synthesis: none;
  --background: #faf7ef;
  --surface: #f0ede3;
  --surface-soft: #f5f1e8;
  --text: #292b29;
  --muted: #6d706a;
  --accent: #475c4a;
  --line: #dcd8cc;
  --pink: #b7817e;
  --content: 1280px;
  --reading: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.045em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  color: var(--background);
  background: var(--accent);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 216, 204, 0.8);
  background: rgba(250, 247, 239, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 3.5rem), var(--content));
  min-height: 82px;
  margin: 0 auto;
}

.logo-wrap {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  overflow: visible;
  isolation: isolate;
}

.logo-button {
  position: relative;
  z-index: 2;
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

.logo-button img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 180ms ease;
}

.logo-button:hover img {
  transform: translateY(-1px) scale(1.025);
}

.logo-button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.heart {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 48%;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: float-heart var(--duration, 1s) ease-out forwards;
}

.heart::before,
.heart::after {
  position: absolute;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.heart::before {
  left: -5px;
}

.heart::after {
  top: -5px;
}

@keyframes float-heart {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--start-x)), -30%) rotate(45deg) scale(0.7);
  }
  18% { opacity: 0.85; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--end-x)), calc(-50% - var(--rise))) rotate(45deg) scale(1);
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3.8vw, 3.7rem);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.1rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
}

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(calc(100% - 5rem), var(--content));
  min-height: 620px;
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.23em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
}

h1 {
  margin: 0;
  font-size: clamp(3.15rem, 5.5vw, 5.3rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0.07em;
}

.hero-copy {
  margin: 1.7rem 0 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.45rem, 2.25vw, 1.95rem);
  line-height: 1.7;
  letter-spacing: 0.09em;
}

.hero-description {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.3rem;
}

.listen-button,
.contact-button {
  display: inline-grid;
  grid-template-columns: 1.5rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  min-width: 235px;
  min-height: 56px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(250, 247, 239, 0.82);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.listen-button--spotify {
  color: var(--background);
  background: var(--accent);
}

.listen-button {
  color: var(--background);
  background: var(--accent);
}

.service-icon {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 0.55rem;
}

.service-icon--apple {
  border-width: 1px;
  font-size: 0.85rem;
}

.listen-button:hover {
  color: var(--background);
  background: #536b57;
  transform: translateY(-1px);
}

.contact-button:hover {
  color: var(--background);
  background: var(--accent);
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
}

.hero-visual img {
  width: 100%;
  max-height: 445px;
  object-fit: contain;
  filter: saturate(0.88) contrast(0.97);
}

.hero-note {
  width: 100%;
  margin: 0.75rem 0 0;
  color: var(--accent);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.18em;
  text-align: center;
}

#contact { scroll-margin-top: 6.5rem; }

.mobile-break { display: none; }

.section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.5fr);
  gap: clamp(3rem, 8vw, 7.5rem);
  width: min(calc(100% - 4rem), var(--reading));
  margin: 0 auto;
  padding: clamp(5.5rem, 9vw, 8rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.contact-block h2 {
  position: relative;
  margin: 0;
  padding-bottom: 0.8rem;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.07em;
}

.section-heading h2::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--accent), rgba(71, 92, 74, 0.12));
}

.heading-icon {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  margin-right: 0.7rem;
  place-items: center;
  color: var(--accent);
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 1.55rem;
  font-weight: 400;
  vertical-align: -0.2rem;
}

.prose p { margin: 0 0 1.5rem; }
.prose p:last-child { margin-bottom: 0; }
.about-body { padding-top: 1.95rem; }

.recommendation-section {
  padding-top: clamp(5rem, 8vw, 7rem);
  padding-bottom: clamp(5rem, 8vw, 7rem);
}

.recommendation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.recommendation-list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 1.25rem 1.15rem 1.25rem 2.8rem;
  border-bottom: 1px solid var(--line);
}

.recommendation-list li:nth-child(odd) { border-right: 1px solid var(--line); }

.recommendation-list li::before {
  position: absolute;
  left: 0.85rem;
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  content: "✓";
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.64rem;
}

.listening-section { align-items: start; }

.listening-note {
  position: relative;
  padding: clamp(2.2rem, 4vw, 3.4rem);
  border: 1px solid rgba(220, 216, 204, 0.72);
  border-radius: 3px 16px 3px 12px;
  background: var(--surface-soft);
}

.listening-note::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.25rem;
  width: 1px;
  content: "";
  background: rgba(183, 129, 126, 0.38);
}

.opening-line {
  color: var(--accent);
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 1.25rem;
}

.episodes-section,
.seasons-section,
.links-section { display: block; }

.section-heading--wide {
  max-width: 620px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.episode-card {
  position: relative;
  display: flex;
  min-height: 355px;
  flex-direction: column;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  overflow: hidden;
  border: 1px solid rgba(220, 216, 204, 0.65);
  border-radius: 3px 16px 3px 12px;
  background: var(--surface);
}

.episode-motif {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  display: grid;
  width: 3.8rem;
  height: 3.8rem;
  place-items: center;
  border-radius: 7px 13px 7px 11px;
  color: var(--accent);
  background: #dddccf;
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 1.65rem;
  transform: rotate(1.5deg);
}

.episode-motif--dark {
  color: #f4e2aa;
  background: #4d5449;
  transform: rotate(-1.5deg);
}

.episode-number {
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.episode-card h3 {
  max-width: calc(100% - 4.5rem);
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.48rem);
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: 0.045em;
}

.episode-card > p:not(.episode-number) {
  margin: 1.2rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.9;
}

.episode-card a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 160px;
  min-height: 46px;
  margin-top: auto;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.87rem;
  text-decoration: none;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 6rem);
}

.season { border-top: 1px solid var(--text); }

.season-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
}

.season-head h3,
.season-head p { margin: 0; }

.season-head h3 {
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.season-head p {
  color: var(--accent);
  font-size: 0.82rem;
}

.season > p {
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.link-group {
  min-height: 240px;
  padding: 2rem clamp(1.3rem, 3vw, 2.5rem);
}

.link-group + .link-group { border-left: 1px solid var(--line); }

.link-label {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 0.9rem;
}

.link-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 1.02rem;
  text-decoration: none;
}

.link-group > p:last-child {
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.contact-block {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: clamp(4rem, 8vw, 7rem);
}

.contact-block > div > p:last-child {
  margin: 1.3rem 0 0;
  color: var(--muted);
}

.contact-button {
  grid-template-columns: 1fr auto;
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 4rem), var(--reading));
  min-height: 140px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer p { margin: 0; }

@media (max-width: 1080px) {
  .hero-inner {
    width: min(calc(100% - 3rem), var(--content));
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
    gap: 1.5rem;
  }
  .hero-actions { gap: 0.75rem; }
  .listen-button {
    width: 205px;
    min-width: 0;
    padding-right: 0.8rem;
    padding-left: 0.8rem;
    font-size: 0.82rem;
  }
  .listen-button:not(.listen-button--spotify) { width: 255px; }
}

@media (max-width: 820px) {
  .header-inner { width: min(calc(100% - 2rem), var(--content)); }
  .site-nav {
    max-width: calc(100vw - 96px);
    gap: 1.5rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    width: min(calc(100% - 2.5rem), 620px);
    min-height: auto;
    padding: 3.2rem 0 3.5rem;
  }
  .hero-visual {
    width: min(100%, 430px);
    margin: 0 auto;
  }
  .hero-visual img { max-height: 300px; }
  .section {
    display: block;
    width: min(calc(100% - 2.5rem), var(--reading));
  }
  .section-heading:not(.section-heading--wide) { margin-bottom: 2.5rem; }
  .recommendation-list { grid-template-columns: 1fr; }
  .recommendation-list li:nth-child(odd) { border-right: 0; }
}

@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.85; }
  .header-inner { min-height: 70px; }
  .logo-wrap,
  .logo-button {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }
  .logo-button img { width: 62px; height: 62px; }
  .site-nav {
    max-width: calc(100vw - 82px);
    gap: clamp(0.8rem, 3.4vw, 1rem);
    overflow-x: visible;
  }
  .site-nav a { font-size: 0.7rem; }
  .hero-inner { gap: 0.8rem; padding: 2.6rem 0 2.8rem; }
  h1 {
    max-width: none;
    font-size: clamp(2.05rem, 9.6vw, 2.55rem);
    line-height: 1.22;
    letter-spacing: 0.035em;
    white-space: nowrap;
  }
  .hero-copy { margin-top: 1.2rem; font-size: 1.28rem; line-height: 1.65; }
  .mobile-break { display: initial; }
  .hero-description { margin-top: 1rem; line-height: 1.85; }
  .hero-description br { display: none; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 1.55rem;
  }
  .listen-button,
  .listen-button:not(.listen-button--spotify) {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }
  .hero-visual { width: min(100%, 330px); }
  .hero-visual img { max-height: 230px; }
  .hero-note { margin-top: 0.6rem; font-size: 0.82rem; letter-spacing: 0.12em; }
  .desktop-break { display: none; }
  .section {
    width: min(calc(100% - 2rem), var(--reading));
    padding: 5.2rem 0;
  }
  .section-heading h2,
  .contact-block h2 { font-size: 1.55rem; }
  .heading-icon {
    width: 1.9rem;
    height: 1.9rem;
    margin-right: 0.45rem;
    font-size: 1.3rem;
  }
  .recommendation-list li { min-height: 80px; padding-right: 0.5rem; }
  .listening-note { padding: 2rem 1.3rem 2rem 2.2rem; }
  .episode-grid,
  .season-grid,
  .link-grid { grid-template-columns: 1fr; }
  .episode-card { min-height: 0; }
  .episode-card h3 { max-width: calc(100% - 3.5rem); }
  .episode-motif {
    top: 1.2rem;
    right: 1.2rem;
    width: 3.15rem;
    height: 3.15rem;
    font-size: 1.35rem;
  }
  .episode-card a { margin-top: 1rem; }
  .season + .season { margin-top: 3.5rem; }
  .season-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
  .link-group { min-height: 0; padding: 2rem 0; }
  .link-group + .link-group { border-top: 1px solid var(--line); border-left: 0; }
  .contact-block {
    align-items: stretch;
    flex-direction: column;
    padding-top: 4.5rem;
  }
  .contact-button { width: 100%; min-width: 0; min-height: 52px; }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 2rem);
    min-height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .heart {
    animation-name: fade-heart-reduced !important;
    animation-duration: var(--duration, 700ms) !important;
  }
}

@keyframes fade-heart-reduced {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--start-x)), -50%) rotate(45deg) scale(0.8);
  }
  28% { opacity: 0.85; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--end-x)), calc(-50% - 8px)) rotate(45deg) scale(0.95);
  }
}
