/* ============================================================
   にゃんまちゃん公式ポータル — 共通スタイル（単一CSS）
   差し替え・追加のしかた:
   - 画像はすべて assets/ フォルダ内のファイルを参照しています。
     画像を差し替えるときは、同名ファイルを上書きするか、
     HTML側の src を新しいファイル名に変えてください。
   ============================================================ */

:root {
  --bg: #fff9f1;
  --card: #ffffff;
  --ink: #3d3230;
  --ink-soft: #7a6a66;
  --pink: #ff7ba9;
  --pink-dark: #e84f86;
  --blue: #3f8fe0;
  --blue-dark: #2b6cb8;
  --red: #e8384f;
  --cream: #fff3d6;
  --line: #f3e2d3;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(190, 120, 90, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
}

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

a { color: var(--blue-dark); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.logo .paw { color: var(--pink-dark); }
.logo-img { height: 44px; width: auto; display: block; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
}
.main-nav a:hover { background: var(--cream); }
.main-nav a.nav-cta {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(232, 79, 134, 0.35);
}
.main-nav a.nav-cta:hover { background: var(--pink-dark); }

/* ---------- レイアウト ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0 8px; }
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}
.section-lead { text-align: center; color: var(--ink-soft); margin-bottom: 28px; }

/* ---------- ヒーロー ---------- */
.hero {
  padding: 40px 0 8px;
  text-align: center;
}
.hero-site-name {
  display: inline-block;
  background: var(--cream);
  color: var(--pink-dark);
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 18px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 14px;
}
.hero h1 .accent { color: var(--pink-dark); }
.hero-text { color: var(--ink-soft); max-width: 640px; margin: 0 auto 22px; }
.hero-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
  margin: 0 auto 24px;
  max-width: 880px;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 1rem;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn.is-placeholder { opacity: 0.75; cursor: not-allowed; }
.btn-large { font-size: 1.12rem; padding: 16px 34px; }

/* ---------- お知らせ ---------- */
.news-list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 22px;
}
.news-list li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.news-list li:last-child { border-bottom: none; }
.news-date { color: var(--pink-dark); font-weight: 700; white-space: nowrap; font-size: 0.92rem; }
.news-tag {
  background: var(--cream);
  color: var(--pink-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 1px 8px;
  white-space: nowrap;
}

/* ---------- キャラクター紹介 ---------- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 22px;
}
.char-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.char-card figure {
  background: linear-gradient(160deg, #ffeef5 0%, #e8f4ff 100%);
  height: 250px;
  overflow: hidden;
}
.char-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.char-body { padding: 18px 20px 22px; }
.char-role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 1px 12px;
  margin-bottom: 8px;
}
.char-role.partner { background: var(--pink); }
.char-role.resident { background: #f0a13c; }
.char-body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.char-quote { color: var(--pink-dark); font-weight: 700; margin-bottom: 8px; }
.char-body p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- コンテンツ一覧 ---------- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.content-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.content-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.content-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-card .thumb-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #fff3d6, #fff3d6 14px, #ffe9bd 14px, #ffe9bd 28px);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  padding: 12px;
}
.content-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.content-body h3 { font-size: 1.08rem; }
.content-body p { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.content-link { font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.content-link:hover { text-decoration: underline; }
.content-link.is-placeholder { color: var(--ink-soft); cursor: not-allowed; }

/* カード内のサムネイル帯（画像を増やすときは .thumb-row に img を追加） */
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.thumb-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.thumb-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

/* ---------- LINEスタンプ / YouTube ---------- */
.feature-box {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.feature-box img.feature-img { width: 150px; height: auto; border-radius: 12px; }
.feature-box.has-banner { flex-direction: column; align-items: stretch; }
.feature-box img.feature-banner { width: 100%; height: auto; border-radius: 12px; }
.feature-box .feature-text { flex: 1; min-width: 240px; }
.feature-box h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature-box p { color: var(--ink-soft); margin-bottom: 14px; font-size: 0.95rem; }

.video-placeholder {
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #fdf0e2, #fdf0e2 16px, #fbe3cb 16px, #fbe3cb 32px);
  border: 2px dashed var(--pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 700;
  text-align: center;
  padding: 16px;
}
.video-placeholder .vp-title { font-size: 1.05rem; color: var(--ink); }

/* ---------- お仕事導線（トップ） ---------- */
.work-cta {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(140deg, #ffe3ee, #e2f0ff);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.work-cta h3 { font-size: 1.3rem; margin-bottom: 8px; }
.work-cta p { color: var(--ink-soft); margin-bottom: 18px; }

/* ---------- お仕事依頼ページ ---------- */
.page-title { text-align: center; padding: 44px 0 4px; }
.page-title h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 900; }
.page-lead { text-align: center; color: var(--ink-soft); max-width: 680px; margin: 10px auto 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--blue-dark); }
.service-card ul { list-style: none; }
.service-card li {
  color: var(--ink-soft);
  font-size: 0.93rem;
  padding-left: 1.1em;
  position: relative;
}
.service-card li::before { content: "・"; position: absolute; left: 0; color: var(--pink-dark); font-weight: 800; }

.info-box {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
}
.info-box ul { list-style: none; }
.info-box li { padding: 6px 0 6px 1.4em; position: relative; color: var(--ink-soft); }
.info-box li::before { content: "🐾"; position: absolute; left: 0; font-size: 0.85em; }
.info-box.notes li::before { content: "※"; color: var(--pink-dark); font-weight: 800; }
.price-note { text-align: center; font-size: 1.05rem; }
.price-note strong { color: var(--pink-dark); font-size: 1.35rem; }

.flow-list {
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  counter-reset: flow;
}
.flow-list li {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px 16px 76px;
  position: relative;
  font-weight: 700;
}
.flow-list li span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.92rem; }
.flow-list li::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--pink);
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.contact-cta { text-align: center; padding-bottom: 12px; }
.contact-cta .btn { margin: 6px; }
.placeholder-note { color: var(--ink-soft); font-size: 0.85rem; margin-top: 8px; }

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 64px;
  border-top: 2px solid var(--line);
  padding: 28px 16px 36px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-footer .footer-links { margin-bottom: 8px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.site-footer a { text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  section { padding-top: 40px; }
  .news-list li { flex-direction: column; gap: 2px; }
  .feature-box { justify-content: center; text-align: center; }
  .feature-box .feature-text { text-align: center; }
}

/* ============================================================
   下層ページ用スタイル（characters / kyou / manga / works）
   ============================================================ */

/* ---------- 共通：ページバナー ---------- */
.page-banner {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
  margin: 26px auto 6px;
  max-width: 880px;
}
.page-eyebrow {
  display: inline-block;
  background: var(--cream);
  color: var(--pink-dark);
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 18px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

/* ---------- キャラクター詳細 ---------- */
.char-more { font-weight: 700; font-size: 0.92rem; text-decoration: none; display: inline-block; margin-top: 10px; }
.char-more:hover { text-decoration: underline; }

.profile {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 30px;
  margin-bottom: 30px;
}
.profile-head {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: flex-start;
  border-bottom: 2px dashed var(--line);
  padding-bottom: 22px;
  margin-bottom: 8px;
}
.profile-head figure {
  background: linear-gradient(160deg, #ffeef5 0%, #e8f4ff 100%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  justify-content: center;
  min-height: 280px;
  padding: 16px 16px 0;
  flex: 0 0 280px;
  max-width: 100%;
}
.profile-head figure img { max-height: 320px; width: auto; max-width: 100%; object-fit: contain; }
.profile-intro { flex: 1; min-width: 260px; }
.profile-intro h3 { font-size: 1.7rem; margin: 4px 0 2px; }
.profile-romaji { color: var(--ink-soft); font-weight: 700; letter-spacing: 0.04em; margin-bottom: 2px; }
.profile-species { color: var(--blue-dark); font-weight: 700; margin-bottom: 10px; }
.profile-intro p { color: var(--ink-soft); font-size: 0.97rem; }

.profile h4 {
  font-size: 1.12rem;
  margin: 24px 0 10px;
  padding-left: 10px;
  border-left: 5px solid var(--pink);
}
.spec-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0 22px;
}
.spec-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.spec-item dt { font-weight: 800; color: var(--pink-dark); white-space: nowrap; min-width: 4.5em; }
.spec-item dd { color: var(--ink); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  background: var(--cream);
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.like-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2px 22px; }
.like-list li { padding: 5px 0; color: var(--ink-soft); font-size: 0.95rem; border-bottom: 1px dashed var(--line); }

.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.mini-card {
  background: #fffaf3;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.mini-card h5 { font-size: 1rem; margin-bottom: 6px; color: var(--blue-dark); }
.mini-card p { color: var(--ink-soft); font-size: 0.92rem; }
.mini-card ul { list-style: none; }
.mini-card li { color: var(--ink-soft); font-size: 0.93rem; padding-left: 1.1em; position: relative; }
.mini-card li::before { content: "・"; position: absolute; left: 0; color: var(--pink-dark); font-weight: 800; }
.profile-note { color: var(--ink-soft); font-size: 0.88rem; margin-top: 10px; }
.story-box {
  background: linear-gradient(140deg, #fff3f8, #eef6ff);
  border-radius: 14px;
  padding: 18px 22px;
  color: var(--ink);
  font-size: 0.97rem;
}
.relation-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.relation-item:last-child { border-bottom: none; }
.relation-item h5 { font-size: 1rem; margin-bottom: 4px; }
.relation-item p { color: var(--ink-soft); font-size: 0.94rem; }

.newchar-box {
  border: 3px dashed var(--pink);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  padding: 30px 22px;
  box-shadow: var(--shadow);
}
.newchar-box .nc-paw { font-size: 1.8rem; }
.newchar-box h3 { font-size: 1.25rem; margin: 6px 0; }
.newchar-box p { color: var(--ink-soft); margin-bottom: 16px; }

/* ---------- ギャラリー（今日は何の日） ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.gallery-item {
  border: none;
  padding: 0;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  text-align: center;
}
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; display: block; }
.gallery-item figcaption { font-size: 0.8rem; color: var(--ink-soft); padding: 5px 6px 7px; font-weight: 700; }
.gallery-item:hover img { opacity: 0.88; }
.month-title { font-size: 1.25rem; font-weight: 800; margin: 8px 0 14px; }
.gallery-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 26px;
}
.filter-btn {
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-btn:hover { background: var(--cream); }
.filter-btn.is-active { background: var(--pink); border-color: var(--pink); color: #fff; }
.x-cta { text-align: center; }
.x-cta p { color: var(--ink-soft); margin-bottom: 14px; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(40, 28, 26, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(94vw, 900px); max-height: 88vh; border-radius: 12px; background: #fff; }
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: #fff;
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- 4コマ漫画 ---------- */
.thumb-row a { display: block; border-radius: 8px; overflow: hidden; }
.thumb-row a img { border-radius: 0; }
.manga-latest {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}
.manga-latest .ml-thumb { flex: 0 0 240px; max-width: 100%; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); }
.manga-latest .ml-thumb img { width: 100%; display: block; }
.manga-latest .ml-body { flex: 1; min-width: 240px; }
.badge-new {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 8px;
}
.manga-latest h3 { font-size: 1.4rem; margin-bottom: 12px; }
.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.manga-item {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.1s ease;
}
.manga-item:hover { transform: translateY(-3px); }
.manga-item .mi-thumb { aspect-ratio: 2 / 3; overflow: hidden; background: var(--cream); }
.manga-item .mi-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.manga-item .mi-body { padding: 10px 12px 12px; }
.manga-item .mi-no {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 0 8px;
  margin-bottom: 4px;
}
.manga-item .mi-title { font-weight: 800; font-size: 0.92rem; line-height: 1.5; }
.manga-item .mi-intro { display: block; font-size: 0.82rem; line-height: 1.65; color: var(--ink-soft); margin-top: 5px; }
.start-reading {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(140deg, #ffe3ee, #e2f0ff);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.start-reading h2 { font-size: 1.3rem; margin-bottom: 8px; }
.start-reading p { color: var(--ink-soft); margin-bottom: 18px; }
.start-reading p:last-child { margin-bottom: 0; }

.ep-figure { max-width: 640px; margin: 0 auto; }
.ep-figure img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); background: #fff; }
.ep-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 26px auto 0;
  flex-wrap: wrap;
}
.ep-nav a {
  font-weight: 800;
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  color: var(--ink);
}
.ep-nav a:hover { background: var(--cream); }
.ep-nav a.is-disabled { opacity: 0.4; pointer-events: none; }
.ep-nav .ep-nav-list { background: var(--pink); border-color: var(--pink); color: #fff; }
.ep-nav .ep-nav-list:hover { background: var(--pink-dark); }

/* ---------- 作品（works） ---------- */
.work-list { display: grid; gap: 22px; max-width: 880px; margin: 0 auto; }
.work-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}
.work-card .work-thumb { flex: 0 0 340px; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); }
.work-card .work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-card .work-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #fff3d6, #fff3d6 14px, #ffe9bd 14px, #ffe9bd 28px);
  color: var(--ink-soft);
  font-weight: 800;
  text-align: center;
  padding: 14px;
  font-size: 0.95rem;
}
.work-card .work-body { flex: 1; min-width: 260px; padding: 20px 24px 24px; }
.work-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.work-tag {
  background: var(--cream);
  color: var(--pink-dark);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 1px 9px;
}
.work-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.work-card h4 { font-size: 1.15rem; margin-bottom: 4px; }
.work-date { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 8px; }
.work-card p { color: var(--ink-soft); font-size: 0.95rem; }
.work-highlight { margin-top: 10px; }
.work-highlight strong { color: var(--pink-dark); display: block; margin-bottom: 2px; }
.work-body .btn { margin-top: 16px; }

@media (max-width: 640px) {
  .profile { padding: 20px 16px 24px; }
  .profile-head figure { flex-basis: 100%; }
  .work-card .work-thumb { flex-basis: 100%; }
  .manga-latest .ml-thumb { flex-basis: 100%; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
}

/* ---------- お宝部屋（入口） ---------- */
.treasure-box {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  text-align: center;
}
.treasure-box .treasure-icon { font-size: 2.4rem; }
.treasure-box p { color: var(--ink-soft); margin: 8px 0 18px; }
.treasure-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.treasure-form input {
  font: inherit;
  padding: 11px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  min-width: 220px;
  background: #fff;
  color: var(--ink);
}
.treasure-form input:focus { outline: none; border-color: var(--pink); }
.treasure-hint { margin-top: 18px; font-weight: 700; color: var(--pink-dark); }
.treasure-msg {
  display: none;
  margin-top: 18px;
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--ink);
}
.treasure-msg.is-shown { display: block; }

/* カードのサムネイル画像リンク（トップページ） */
.content-card .thumb a { display: block; height: 100%; }
.content-card .thumb a img { width: 100%; height: 100%; object-fit: cover; }

/* ===== characters: expression switcher (Manus版の表情セット) ===== */
.expr-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 10px 6px 2px; }
.expr-btn {
  font-family: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer;
  border: 2px solid #ffd3e4; background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 4px 14px;
}
.expr-btn:hover { border-color: var(--pink); }
.expr-btn.active { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ---------- 世界紹介（トップページ） ---------- */
.world-story { max-width: 860px; margin: 0 auto 22px; }
.world-story h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--pink-dark); }
.world-story p { color: var(--ink-soft); font-size: 0.97rem; }
.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto 22px;
}
.world-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.world-card h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--pink-dark); }
.world-card p { color: var(--ink-soft); font-size: 0.95rem; }
.fan-message {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}
.fan-message h3 { font-size: 1.2rem; margin-bottom: 6px; }
.fan-message .fan-call { color: var(--pink-dark); font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.fan-message img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 14px; }
.fan-message p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- お宝部屋への入口（トップ） ---------- */
.treasure-entry { max-width: 820px; margin: 22px auto 0; text-align: center; }
.treasure-entry p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }

/* ---------- お宝部屋（中身） ---------- */
.treasure-error { display: none; margin-top: 14px; color: var(--red); font-weight: 700; }
.treasure-error.is-shown { display: block; }
.treasure-content[hidden] { display: none; }
.download-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}
.download-card img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 16px; }
.download-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.download-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }

/* ===== YouTube ライト埋め込み ===== */
.yt-lite { position: relative; width: 100%; height: 100%; cursor: pointer; background: #000; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-lite .yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 12px; background: rgba(230, 0, 40, 0.92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; padding-left: 4px; pointer-events: none; transition: transform 0.15s ease, background 0.15s ease; }
.yt-lite:hover .yt-play, .yt-lite:focus .yt-play { transform: translate(-50%, -50%) scale(1.08); background: #ff0033; }
.yt-frame { width: 100%; height: 100%; border: 0; display: block; }
.video-box { max-width: 760px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 10px 30px rgba(90, 50, 90, 0.15); }

/* ===== その他のMV カード ===== */
.mv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; max-width: 1000px; margin: 0 auto; }
.mv-card { display: block; text-decoration: none; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(90, 50, 90, 0.08); transition: transform 0.15s ease; }
.mv-card:hover { transform: translateY(-3px); }
.mv-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.mv-card span { display: block; padding: 12px 14px; color: var(--ink); font-weight: 600; font-size: 0.95rem; line-height: 1.45; }

/* ============================================================
   第4波：導線強化（フッターリンク帯／依頼CTAバンド／日常のひとこま）
   ============================================================ */

/* ---------- フッターのリンク帯 ---------- */
.footer-band {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 6px 0 16px;
}
.site-footer .footer-band-btn {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.site-footer .footer-band-btn:hover {
  border-color: var(--pink);
  text-decoration: none;
}
.site-footer .footer-band-cta {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.site-footer .footer-band-cta:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
}

/* ---------- 依頼CTAバンド ---------- */
.cta-band {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(140deg, #ffe3ee, #ffc7dd);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band-lead {
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-band-btn {
  display: inline-block;
  background: var(--pink-dark);
  color: #fff;
  border-radius: 999px;
  padding: 14px 30px;
  font-weight: 900;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(232, 79, 134, 0.35);
}
.cta-band-btn:hover { background: #d63d74; text-decoration: none; }

/* ---------- 日常のひとこま（characters） ---------- */
.daily-life-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 22px;
}
.daily-life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.daily-life-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}
.daily-life-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.daily-life-caption {
  display: block;
  text-align: center;
  font-weight: 700;
  padding: 10px 8px 12px;
}
.daily-life-more { text-align: center; margin-top: 18px; }
.daily-life-more a { font-weight: 700; }

@media (max-width: 640px) {
  .daily-life-grid { grid-template-columns: 1fr; max-width: 340px; }
  .cta-band-btn { font-size: 0.98rem; padding: 13px 20px; }
}

/* ===== 第6波：ヒーローサブコピー／お知らせタグ色分け／プロフィールチップ／お宝部屋バッジ ===== */
.hero-sub {
  color: var(--pink-dark);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 10px auto 6px;
  max-width: 640px;
}
.news-tag.tag-site { background: #e3f0fd; color: var(--blue-dark); }
.news-tag.tag-works { background: #f0e6fb; color: #7b4bb7; }
.news-tag.tag-manga { background: #ffedd5; color: #c2620a; }
.news-tag.tag-illust { background: #e2f5e9; color: #1e7d4f; }
.news-tag.tag-mv { background: #ffe3e8; color: var(--red); }
.news-tag.tag-info { background: var(--cream); color: var(--pink-dark); }
.profile-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.profile-chips li {
  background: var(--cream);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
}
.limited-badge {
  display: table;
  margin: 0 auto 14px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 6px 20px;
  box-shadow: 0 3px 10px rgba(232, 79, 134, 0.35);
}
.download-subhead {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 40px 0 18px;
}
.download-card.spaced { margin-top: 24px; }

/* ===== 第7波：ツナマヨロボ／衣装バリエーション／三面図シートリンク ===== */
.char-role.robo { background: #6b8f5e; }
.sheet-link {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  margin: 10px 0 12px;
}
.sheet-link:hover { text-decoration: underline; }
.robo-forms .mini-card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: linear-gradient(160deg, #f2f7ee 0%, #e8f4ff 100%);
  border-radius: 10px;
  margin-bottom: 10px;
}
.robo-forms .mini-card a {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}
.robo-forms .mini-card a:hover { text-decoration: underline; }
.costume-box {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  background: #fffaf3;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.costume-box figure {
  margin: 0;
  background: linear-gradient(160deg, #ffeef5 0%, #e8f4ff 100%);
  border-radius: 10px;
  padding: 10px 10px 0;
}
.costume-box figure img {
  max-height: 220px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.costume-text { flex: 1; min-width: 240px; }
.costume-text h5 { font-size: 1rem; margin-bottom: 6px; color: var(--blue-dark); }
.costume-text p { color: var(--ink-soft); font-size: 0.92rem; }
.costume-text .sheet-link { margin-bottom: 0; }

/* ===== 第8波：お仕事依頼ページ作り直し（contact専用） ===== */
.hero-cta { text-align: center; margin-top: 22px; }

.service-icon { font-size: 1.7rem; line-height: 1.2; margin-bottom: 4px; }
.service-desc { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 10px; }
.section-more { text-align: center; margin-top: 24px; font-weight: 700; }
.section-more a { text-decoration: none; }
.section-more a:hover { text-decoration: underline; }

.price-big { text-align: center; font-size: 1.1rem; }
.price-big strong { color: var(--pink-dark); font-size: 2.1rem; font-weight: 900; }
.price-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.price-chip {
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px 16px;
  font-weight: 700;
  font-size: 0.9rem;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.recommend-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px 16px 48px;
  position: relative;
  font-weight: 700;
}
.recommend-card::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-timeline {
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  counter-reset: flow;
  position: relative;
}
.flow-timeline::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 28px;
  bottom: 28px;
  width: 3px;
  border-radius: 2px;
  background: var(--line);
}
.flow-timeline li {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px 16px 76px;
  position: relative;
  font-weight: 700;
}
.flow-timeline li span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.92rem; }
.flow-timeline li::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--pink);
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  z-index: 1;
}

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
}
.faq-q { font-weight: 800; color: var(--blue-dark); margin-bottom: 6px; }
.faq-q::before { content: "Q."; color: var(--pink-dark); font-weight: 900; margin-right: 7px; }
.faq-a { color: var(--ink-soft); }
.faq-a::before { content: "A."; color: var(--blue); font-weight: 900; margin-right: 7px; }

/* ---------- キャラページ：横長ビジュアルの見せ方（第9波） ---------- */
#tsunamayo .profile-head figure img,
#robo .profile-head figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 10px;
}
#robo .profile-head figure img { object-position: 50% 35%; }
.costume-box figure img { max-height: 300px; margin: 0 auto; }

/* ---------- キャラページ：目次チップ（第10波） ---------- */
.anchor-nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding-top: 18px; }
.anchor-nav a {
  background: #fff; color: var(--ink); font-weight: 700; font-size: 0.92rem;
  border: 2px solid var(--line); border-radius: 999px; padding: 6px 18px; text-decoration: none;
}
.anchor-nav a:hover { border-color: var(--pink); color: var(--pink-dark); }
.profile { scroll-margin-top: 92px; }

/* ---------- 作品ページ：ショート動画（第11波） ---------- */
.shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.short-card { display: block; text-decoration: none; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(90, 50, 90, 0.08); transition: transform 0.15s ease; }
.short-card:hover { transform: translateY(-3px); }
.short-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; display: block; background: var(--cream); }
.short-card span { display: block; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: 0.88rem; line-height: 1.45; }

/* ---------- お宝部屋：ま〜！占い（第12波） ---------- */
.fortune-title { margin-top: 48px; }
.fortune-box {
  max-width: 720px; margin: 0 auto; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px; text-align: center;
}
.fortune-box img { height: 220px; width: auto; max-width: 100%; margin: 0 auto 14px; border-radius: 14px; object-fit: cover; }
.fortune-result { font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; min-height: 1.8em; }

/* ---------- お仕事依頼ページ：制作例と中盤CTA（第13波） ---------- */
.showcase-video { max-width: 760px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.showcase-video .yt-lite { height: 100%; }
.showcase-video .yt-frame { width: 100%; height: 100%; border: 0; display: block; }
.showcase-caption { text-align: center; font-weight: 700; margin: 12px auto 22px; }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.showcase-card { display: block; text-decoration: none; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(90, 50, 90, 0.08); transition: transform 0.15s ease; }
.showcase-card:hover { transform: translateY(-3px); }
.showcase-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--cream); }
.showcase-card span { display: block; padding: 10px 14px 12px; color: var(--ink); font-weight: 600; font-size: 0.92rem; line-height: 1.45; }
.showcase-card span em { display: block; font-style: normal; color: var(--pink-dark); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; margin-bottom: 2px; }

/* ---------- お仕事依頼ページ：用途別ガイド（第14波） ---------- */
.forwho-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 1000px; margin: 0 auto; }
.forwho-card { background: #fff; border-radius: 18px; padding: 24px 22px 20px; box-shadow: 0 4px 14px rgba(90, 50, 90, 0.08); text-align: center; transition: transform 0.15s ease; }
.forwho-card:hover { transform: translateY(-3px); }
.forwho-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 10px; }
.forwho-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.forwho-card p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.7; margin-bottom: 14px; }
.forwho-link { color: var(--pink-dark); font-weight: 800; text-decoration: none; font-size: 0.95rem; }
.forwho-link:hover { text-decoration: underline; }

/* ---------- トップ：活動ステータスバッジ（第15波） ---------- */
.activity-badge { display: inline-block; background: var(--pink); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }

/* ---------- Official portal refresh ---------- */
.portal-home,
.portal-contact {
  --bg: #f8faff;
  --ink: #101a3e;
  --ink-soft: #475374;
  --blue: #264dd9;
  --blue-dark: #1a37a3;
  --pink: #c8225c;
  --pink-dark: #a9174d;
  --line: #dbe2f4;
  --cream: #eef2ff;
  --radius: 16px;
  --shadow: 0 8px 24px #1529630b;
  --stage-blue: #0625cb;
}

:is(.portal-home, .portal-contact) .wrap,
:is(.portal-home, .portal-contact) .header-inner {
  max-width: 1250px;
  padding-inline: clamp(20px, 4vw, 58px);
}

:is(.portal-home, .portal-contact) .site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

:is(.portal-home, .portal-contact) .header-inner {
  min-height: 70px;
  padding-block: 10px;
}

:is(.portal-home, .portal-contact) .main-nav a {
  font-weight: 700;
}

:is(.portal-home, .portal-contact) .main-nav a[aria-current="page"]:not(.nav-cta) {
  color: var(--blue-dark);
  background: var(--cream);
}

:is(.portal-home, .portal-contact) .main-nav a.nav-cta {
  box-shadow: none;
}

:is(.portal-home, .portal-contact) :focus-visible {
  outline: 3px solid #1b71f2;
  outline-offset: 4px;
}

:is(.stage, .commission-hero, .stage-work, .site-footer) :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  transform: translateY(-150%);
  background: #fff;
  padding: 8px 16px;
}

.skip-link:focus { transform: none; }

:is(.portal-home, .portal-contact) main section[id] {
  scroll-margin-top: 100px;
  padding-block: clamp(52px, 7vw, 98px);
}

.stage {
  position: relative;
  isolation: isolate;
  padding: 0;
  overflow: hidden;
  background: var(--stage-blue);
  color: #fff;
}

.stage-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(76%, calc(clamp(480px, 47vw, 685px) * 1.5));
  z-index: -1;
}

.stage-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 37%;
}

.stage-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--stage-blue), transparent 33%);
}

.stage-inner {
  display: flex;
  align-items: center;
  min-height: clamp(480px, 47vw, 685px);
}

.stage-copy { padding-block: 36px; }

.stage-label,
.section-kicker {
  font: 800 .75rem/1.4 Arial, sans-serif;
  letter-spacing: .19em;
}

.stage-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffffff73;
  border-radius: 999px;
  padding: 8px 12px;
}

.stage-label span {
  width: 8px;
  height: 8px;
  background: #ff7999;
  border-radius: 50%;
}

.stage h1 {
  margin-top: 15px;
  font-size: clamp(2.65rem, 5.15vw, 5rem);
  font-weight: 950;
  letter-spacing: -.085em;
  line-height: 1.15;
}

.stage-call {
  margin-block: 10px;
  color: #ffccdb;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1.3;
  font-weight: 900;
}

.stage-intro { color: #f0f4ff; font-weight: 650; }

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stage-actions .btn,
.stage-work .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 9px 19px;
  border: 1px solid transparent;
}

.stage-primary { background: #fff; color: #152db0; }
.stage-primary:hover { background: #e6ecff; }
.stage-actions .stage-secondary { border-color: #ffffff92; color: #fff; }
.stage-secondary:hover { background: #ffffff20; }

.stage-index {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stage-index .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(14px, 4vw, 48px);
  padding-block: 14px;
}

.stage-index a {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
  padding-block: 5px;
  text-decoration: none;
}

.stage-index a:hover { color: var(--blue-dark); text-decoration: underline; }
.stage-index span { color: var(--blue); font: 800 .73rem Arial, sans-serif; margin-right: 5px; }

.section-kicker { color: var(--blue-dark); margin-bottom: 10px; }

:is(.portal-home, .portal-contact) .section-title {
  text-align: left;
  font-size: clamp(1.65rem, 3.7vw, 2.9rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.045em;
}

:is(.portal-home, .portal-contact) .section-lead {
  margin-top: 10px;
  text-align: left;
}

.portal-home :is(#news, #contents, #youtube),
.portal-contact :is(#services, #price, #faq) {
  background: #eef2fd;
}

.portal-home :is(.world-story, .world-grid, .news-list, .fan-message, .treasure-entry) { max-width: none; }
.portal-home .world-story { background: #101e63; border: 0; color: white; }
.portal-home .world-story h3 { color: white; font-size: clamp(1.3rem, 2.8vw, 2.05rem); }
.portal-home .world-story p { color: #ebefff; max-width: 74ch; }
.portal-home .world-story a { color: #ffd2df; }
.portal-home .world-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.world-illustration {
  grid-row: span 2;
  align-self: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
}
.portal-home :is(.world-card, .fan-message, .char-card, .content-card, .feature-box) {
  border: 1px solid var(--line);
  box-shadow: none;
}

.portal-home .fan-message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px 25px;
  align-content: center;
  text-align: left;
}

.portal-home .fan-message img {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  margin: 0;
}

.portal-home .fan-message h3 { align-self: end; }
.portal-home .fan-message .fan-call { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.85rem); }
.portal-home .treasure-entry { margin-top: 16px; }

.portal-home .news-list {
  border: 1px solid var(--line);
  box-shadow: none;
  margin-top: 25px;
}

.portal-home .char-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.portal-home .char-card figure { aspect-ratio: 1; }
.portal-home .char-card figure img { object-position: center 25%; }
.portal-home .char-body { padding: 16px; }
.portal-home .char-body h3 { font-size: 1.23rem; }
.portal-home .char-role { background: #25389f; }

.portal-home .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.portal-home .content-card .thumb { aspect-ratio: 16 / 9; }
.portal-home .content-body { padding: 20px; }
.portal-home .content-body h3 { font-size: 1.4rem; }
.portal-home .content-body .activity-badge { color: #1939aa; background: #e9efff; }

.portal-home .feature-box.has-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
}

.portal-home .feature-box .feature-text { min-width: 0; }

.home-movies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.movie-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.home-movies .video-box { margin: 0; max-width: none; }
.movie-channel { margin-top: 22px; }

.reserved-video {
  display: grid;
  aspect-ratio: 16 / 9;
  place-content: center;
  text-align: center;
  border: 1px dashed #9cadd6;
  border-radius: 14px;
  background: #f9faff;
  color: #2a437f;
}

.reserved-video span { font: 800 .8rem Arial, sans-serif; letter-spacing: .19em; }
.reserved-video small { margin-top: 5px; }

.stage-work,
.commission-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.stage-work {
  background: #101e63;
  color: white;
  border-radius: var(--radius);
  overflow: hidden;
}

.stage-work img { width: 100%; height: 100%; object-fit: cover; }
.stage-work-copy { padding: clamp(24px, 4vw, 50px); }
.stage-work-copy .btn { margin-top: 16px; }

.commission-hero { background: #101e63; color: white; padding: clamp(32px, 6vw, 78px) 0; }
.commission-inner { gap: clamp(24px, 5vw, 64px); }
.commission-inner img { width: 100%; height: auto; border-radius: 16px; }
.commission-inner h1 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.2; letter-spacing: -.06em; margin-bottom: 16px; }
.commission-inner h1 + p, .stage-work-copy h2 + p { color: #e8edff; }
:is(.commission-inner, .stage-work) .section-kicker { color: #ffbecf; }
.commission-reel { max-width: 640px; margin: 32px auto 0; }
.commission-reel video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #101a3e;
}
.commission-reel p { margin-top: 8px; color: var(--ink-soft); font-size: .9rem; }

:is(.portal-home, .portal-contact) .site-footer {
  background: #101a3e;
  color: #ebefff;
}

:is(.portal-home, .portal-contact) .site-footer a { color: white; }
:is(.portal-home, .portal-contact) .site-footer .footer-band-btn:not(.footer-band-cta) { color: var(--blue-dark); }

@media (max-width: 1020px) {
  :is(.portal-home, .portal-contact) .site-header { position: relative; }
  :is(.portal-home, .portal-contact) main section[id] { scroll-margin-top: 12px; }
  .stage-art { width: 83%; }
  .portal-home .char-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :is(.portal-home, .portal-contact) .header-inner { gap: 5px; }
  :is(.portal-home, .portal-contact) .logo-img { height: 36px; }
  :is(.portal-home, .portal-contact) .main-nav a { font-size: .78rem; padding: 4px 7px; }
  :is(.portal-home, .portal-contact) .main-nav a.nav-cta { padding-inline: 11px; }
  .stage { display: flex; flex-direction: column; }
  .stage-art { position: relative; width: 100%; aspect-ratio: 1.2; }
  .stage-art img { object-position: right top; }
  .stage-art::after { background: linear-gradient(0deg, var(--stage-blue), transparent 19%); }
  .stage-inner { min-height: 0; width: 100%; }
  .stage-copy { padding: 0 0 30px; }
  .stage h1 { font-size: clamp(2.2rem, 10vw, 3.6rem); }
  .stage-break { display: none; }
  .stage-index .wrap { gap: 0 16px; }
  .stage-index a { font-size: .8rem; }
  .portal-home .stage-index .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-home :is(.world-grid, .fan-message, .content-grid, .feature-box.has-banner),
  .home-movies,
  .stage-work,
  .commission-inner { grid-template-columns: minmax(0, 1fr); }
  .world-illustration { grid-row: auto; }
  .portal-home .fan-message img { grid-column: auto; grid-row: auto; margin-block: 6px; }
  .portal-home .char-grid { gap: 10px; }
  .portal-home .char-body { padding: 12px; }
  .portal-home .char-body h3 { font-size: 1rem; }
  .portal-home .char-body p { font-size: .83rem; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.portal-home, .portal-contact) { scroll-behavior: auto; }
  :is(.portal-home, .portal-contact) .btn { transition: none; }
  :is(.portal-home, .portal-contact) .btn:hover { transform: none; }
}
