:root {
  --color-bg: #fffaf0;
  --color-surface: #ffffff;
  --color-cream: #fff4c7;
  --color-yellow: #f6d56f;
  --color-gold: #c7922c;
  --color-red: #c62828;
  --color-ink: #111827;
  --color-muted: #5b6472;
  --color-border: #efdca3;
  --color-card-border: #efd58a;
  --color-body-text: #1f2937;
  --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.75;
  background-color: var(--color-bg);
  background:
    linear-gradient(180deg, rgba(255, 253, 245, 0.86) 0%, rgba(255, 250, 240, 0.92) 44%, rgba(255, 255, 255, 0.96) 100%),
    radial-gradient(circle at top left, rgba(246, 213, 111, 0.34), transparent 34rem),
    url("../images/common/bg-pale-yellow.png") center top / cover fixed no-repeat,
    linear-gradient(180deg, #fffdf5 0%, var(--color-bg) 44%, #ffffff 100%);
}

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

a {
  color: inherit;
}

code {
  padding: 0.08em 0.34em;
  color: var(--color-red);
  font-family: "Cascadia Mono", "Consolas", monospace;
  background: rgba(255, 244, 199, 0.92);
  border-radius: 0.35em;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--color-ink);
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 20px 0;
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid rgba(239, 220, 163, 0.8);
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(20px, 3vw, 44px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--color-ink);
  text-decoration: none;
}

.brand-title-image {
  display: block;
  width: auto;
  max-width: min(56vw, 680px);
  height: clamp(72px, 7.5vw, 112px);
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--color-muted);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-red);
  background: rgba(198, 40, 40, 0.08);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-ink);
  border-radius: 999px;
}

.hero {
  padding: 16px 0 24px;
}

.hero + .section {
  padding-top: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-red);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12em;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero-title {
  max-width: 9.5em;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  letter-spacing: -0.035em;
}

.hero-main-visual {
  width: min(100%, 760px);
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.1);
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.24;
}

h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.35;
}

.lead {
  max-width: 42rem;
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button-row .button {
  width: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #ffffff;
  background: var(--color-red);
  box-shadow: 0 12px 26px rgba(198, 40, 40, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #a81f1f;
}

.button-disabled {
  cursor: not-allowed;
  opacity: 0.76;
}

.button-disabled:hover,
.button-disabled:focus-visible {
  transform: none;
  background: var(--color-red);
}

.button-secondary,
.button-card {
  color: var(--color-ink);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
}

.button-card {
  width: fit-content;
  margin-top: auto;
}

.hero-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 199, 0.9));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.news-panel {
  min-height: 100%;
}

.news-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

#news,
#works {
  scroll-margin-top: 170px;
}

.news-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-list li {
  padding: 16px 18px;
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.6;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.news-list a {
  color: inherit;
  text-decoration: none;
}

.news-list a:hover,
.news-list a:focus-visible {
  color: var(--color-red);
  outline: none;
}

.news-date {
  display: inline-block;
  margin-right: 0.5em;
  color: var(--color-red);
  font-weight: 900;
}

.section {
  padding: 74px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #f2d98b;
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.work-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.work-card-link:focus-visible {
  outline: 3px solid #d62828;
  outline-offset: 4px;
  border-radius: 24px;
}

.work-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #fff6c8;
  transition: transform 0.2s ease;
}

.work-card:hover img,
.work-card:focus-within img {
  transform: scale(1.03);
}

.work-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.work-card-body p {
  flex: 1;
  margin: 0;
  color: var(--color-muted);
}

.work-card-body .button {
  margin-top: auto;
}

.notice-section {
  padding: 70px 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(69, 23, 23, 0.94));
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.notice-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.notice-card {
  padding: 30px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
}

.notice-card .eyebrow {
  color: var(--color-yellow);
}

.notice-card p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.notice-card code {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.shirahama-section {
  padding-top: 58px;
  padding-bottom: 0;
  background: rgba(255, 255, 255, 0.5);
}

.shirahama-link {
  display: block;
  width: min(100%, 980px);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shirahama-link:hover,
.shirahama-link:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.shirahama-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.28);
}

.shirahama-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.bottom-brand-section {
  padding-top: 36px;
  background: rgba(255, 255, 255, 0.5);
}

.bottom-brand-image {
  width: min(100%, 980px);
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.page-hero {
  padding: 16px 0 16px;
}

.page-hero + .section {
  padding-top: 24px;
}

.page-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--color-cream);
}

.page-hero-image-wide {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.page-hero-copy {
  max-width: 840px;
  margin-top: 28px;
  padding: 30px 34px;
  color: var(--color-ink);
  background: #ffffff;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.page-hero-copy h1 {
  max-width: 100%;
  color: var(--color-ink);
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.page-hero-copy p {
  color: var(--color-body-text);
  font-size: clamp(1.12rem, 2.6vw, 1.3rem);
  line-height: 1.9;
}

.page-hero-copy p:last-child {
  margin-bottom: 0;
}

.page-hero-inner {
  max-width: 840px;
  padding: 34px;
  color: var(--color-ink);
  background: #ffffff;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.page-hero-inner h1 {
  max-width: 100%;
  color: var(--color-ink);
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.page-hero-inner p {
  color: var(--color-body-text);
  line-height: 1.9;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
}

.content-grid-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1080px;
}

.content-card {
  padding: 28px;
  color: var(--color-ink);
  background: #ffffff;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.content-card h2 {
  margin-bottom: 12px;
  color: var(--color-ink);
}

.content-card p {
  color: var(--color-body-text);
  font-size: clamp(1.12rem, 2.6vw, 1.3rem);
  line-height: 1.9;
}

.content-card p + p {
  margin-top: 0.9em;
}

.content-card ul {
  padding-left: 1.2em;
  margin: 12px 0 0;
  color: var(--color-body-text);
  font-size: clamp(1.12rem, 2.6vw, 1.3rem);
  line-height: 1.9;
}

.content-card li + li {
  margin-top: 8px;
}

.short-video-image {
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 18px;
  border-radius: var(--radius-md);
}

.short-video-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.short-video-list a {
  display: block;
  padding: 14px 18px;
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
  background: var(--color-cream);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.short-video-list a:hover,
.short-video-list a:focus-visible {
  color: var(--color-red);
  background: rgba(255, 244, 199, 0.92);
  outline: none;
}

.music-note {
  margin: 18px 0 0;
  padding: 18px 20px;
  background: var(--color-cream);
  border: 1px solid var(--color-card-border);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.85;
}

.music-note p {
  margin: 0 0 10px;
}

.music-note p:last-child {
  margin-bottom: 0;
}

.music-note .music-note-heading {
  margin-top: 14px;
  font-weight: 700;
}

.music-note ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}

.music-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.music-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--color-cream);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
}

.music-item-title {
  margin: 0;
  font-weight: 700;
}

.music-item audio {
  width: 100%;
}

.music-item .button {
  justify-self: start;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.92rem;
}

/* 画像付きの楽曲は「左：画像／右上：プレーヤー／右下：ダウンロード」の2カラム */
.music-item:has(.music-item-cover) {
  grid-template-columns: 200px 1fr;
  grid-template-areas:
    "cover title"
    "cover player"
    "cover download";
  align-content: center;
  align-items: center;
  gap: 10px 18px;
  padding: 16px 18px;
}

.music-item-cover {
  grid-area: cover;
  align-self: center;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
}

.music-item:has(.music-item-cover) .music-item-title {
  grid-area: title;
}

.music-item:has(.music-item-cover) audio {
  grid-area: player;
}

.music-item:has(.music-item-cover) .button {
  grid-area: download;
}

@media (max-width: 600px) {
  .music-item:has(.music-item-cover) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "cover"
      "player"
      "download";
  }

  .music-item-cover {
    max-width: 260px;
    justify-self: center;
  }
}

.episode-link {
  display: grid;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.episode-thumbnail {
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
}

.episode-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.episode-description {
  display: block;
  color: var(--color-body-text);
  font-size: clamp(1.12rem, 2.6vw, 1.3rem);
  line-height: 1.9;
}

.content-card .episode-description + .episode-description {
  margin-top: 0.8em;
}

.episode-link:hover img,
.episode-link:focus-visible img {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.episode-link:focus-visible {
  outline: 3px solid #d62828;
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.manga-reader-section {
  padding-top: 36px;
}

.manga-reader-header {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.manga-reader-header h1 {
  max-width: none;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.manga-reader-header p {
  margin: 0;
  color: var(--color-body-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.manga-reader-header .button {
  align-self: start;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.92rem;
}

.manga-reader {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.manga-reader-loading {
  margin: 0;
  color: var(--color-muted);
  text-align: center;
}

.manga-reader-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.manga-reader-page {
  width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
}

.manga-reader-nav {
  min-width: 64px;
  padding: 10px 12px;
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--color-cream);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.manga-reader-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.manga-reader-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.manga-reader-controls .button {
  flex: 1 1 140px;
  width: auto;
  min-height: 42px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.manga-reader-status {
  min-width: 6em;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.manga-reader-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  text-align: center;
}

.page-image {
  overflow: hidden;
  padding: 0;
}

.page-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: contain;
  background: var(--color-cream);
}

.site-footer {
  padding: 28px 0;
  color: #ffffff;
  background: var(--color-ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner a {
  color: #ffffff;
  font-weight: 700;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 980px) {
  .hero-grid,
  .content-grid,
  .notice-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 14px 0;
  }

  #news,
  #works {
    scroll-margin-top: 130px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-title-image {
    width: auto;
    max-width: calc(100vw - 96px);
    height: clamp(50px, 14vw, 72px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
  }

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

  .site-nav a {
    padding: 12px 14px;
  }

  .hero {
    padding: 12px 0 24px;
  }

  .hero + .section {
    padding-top: 20px;
  }

  .news-panel {
    min-height: auto;
  }

  .hero-title {
    max-width: 9.8em;
    font-size: clamp(2.05rem, 10vw, 3.25rem);
    line-height: 1.16;
  }

  .hero-main-visual {
    width: 100%;
    border-radius: 20px;
  }

  .page-hero {
    padding-top: 12px;
  }

  .page-hero + .section {
    padding-top: 20px;
  }

  .page-hero-copy {
    margin-top: 18px;
    padding: 22px;
  }

  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button-row {
    flex-direction: row;
    align-items: center;
  }

  .button-row .button {
    flex: 1 1 220px;
    width: auto;
  }

  .section {
    padding: 54px 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .manga-reader-stage {
    grid-template-columns: 1fr;
  }

  .manga-reader-stage .manga-reader-nav {
    display: none;
  }

  .manga-reader-controls {
    flex-direction: column;
  }

  .manga-reader-controls .button {
    width: 100%;
  }

  .manga-reader-status {
    order: -1;
  }

}

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