/* ========================================
   竜騎士の世界 — style.css
   ======================================== */

/* ----------------------------------------
   Custom Properties
   ---------------------------------------- */
:root {
  --c-primary:       #2a7b6f;
  --c-primary-dark:  #1a5c52;
  --c-primary-light: #4fa896;
  --c-teal-deep:     #123c35;
  --c-gold:          #c9a84c;
  --c-gold-light:    #e8d49e;
  --c-gold-dark:     #a0832a;
  --c-white:         #ffffff;
  --c-cream:         #faf6ee;
  --c-bg-light:      #f0faf7;
  --c-bg-section:    #f7fdfb;
  --c-text:          #2c3a35;
  --c-text-mid:      #4a6860;
  --c-text-light:    #7a9f96;

  --font-serif: 'Noto Serif JP', 'Georgia', serif;
  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;

  --section-py:    6rem;
  --container-w:   1100px;
  --container-px:  1.5rem;

  --border-gold:   1px solid var(--c-gold-light);
  --radius-card:   16px;
  --radius-btn:    999px;
  --shadow-card:   0 4px 24px rgba(42, 123, 111, 0.10);
  --shadow-hover:  0 12px 36px rgba(42, 123, 111, 0.20);
  --transition:    0.3s ease;
}

/* ----------------------------------------
   Reset & Base
   ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ----------------------------------------
   Layout Utilities
   ---------------------------------------- */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section { padding-block: var(--section-py); }

/* Section heading */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--c-primary-dark);
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: 0.08em;
}
.section-title::before,
.section-title::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--c-gold));
  vertical-align: middle;
  margin-inline: 0.75rem;
}
.section-title::after {
  background: linear-gradient(to left, transparent, var(--c-gold));
}
.section-title--left {
  text-align: left;
  margin-bottom: 1.25rem;
}
.section-title--left::before,
.section-title--left::after { display: none; }

/* Scroll fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }

/* Ghost */
.btn--ghost {
  background: rgba(255,255,255,0.88);
  color: var(--c-primary-dark);
  border-color: var(--c-primary-light);
}
.btn--ghost:hover {
  background: var(--c-white);
  border-color: var(--c-primary);
  box-shadow: 0 4px 16px rgba(42,123,111,0.18);
}

/* Primary teal */
.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
  box-shadow: 0 4px 16px rgba(42,123,111,0.35);
}
.btn--primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  box-shadow: 0 6px 22px rgba(42,123,111,0.45);
}

/* Gold */
.btn--gold {
  background: var(--c-gold);
  color: var(--c-white);
  border-color: var(--c-gold);
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}
.btn--gold:hover {
  background: var(--c-gold-dark);
  border-color: var(--c-gold-dark);
  box-shadow: 0 6px 22px rgba(201,168,76,0.45);
}

/* Stamp store CTA */
.btn--stamp-cta {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
  font-size: 1.05rem;
  padding: 1rem 2.75rem;
  box-shadow: 0 4px 20px rgba(42,123,111,0.35);
}
.btn--stamp-cta:hover {
  background: var(--c-primary-dark);
  box-shadow: 0 8px 28px rgba(42,123,111,0.45);
}

.btn--large { font-size: 1.05rem; padding: 1rem 2.5rem; }

/* ----------------------------------------
   HEADER
   ---------------------------------------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--c-gold-light);
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: 0 2px 20px rgba(42,123,111,0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 1.5rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.header__logo-emblem {
  font-size: 1.35rem;
  color: var(--c-gold);
  line-height: 1;
}
.header__logo-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header__logo-main {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  letter-spacing: 0.05em;
}
.header__logo-sub {
  font-size: 0.62rem;
  color: var(--c-text-light);
  letter-spacing: 0.1em;
}

.header__nav { margin-left: auto; }

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.header__nav-link {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--c-text-mid);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.03em;
}
.header__nav-link:hover {
  color: var(--c-primary);
  background: var(--c-bg-light);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: auto;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.header__hamburger:hover { background: var(--c-bg-light); }

.hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-primary-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.header__hamburger.is-open .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.is-open .hamburger__bar:nth-child(2) { opacity: 0; }
.header__hamburger.is-open .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------
   HERO
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 68px;
  background: linear-gradient(140deg,
    #dff3ec 0%,
    #e6f2fa 35%,
    #d0e8f5 65%,
    #e0f4e8 100%
  );
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Background deco */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__cloud {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.58);
  filter: blur(20px);
}
.hero__cloud--1 { width: 340px; height: 120px; top: 12%; left: -4%;  }
.hero__cloud--2 { width: 220px; height: 90px;  top: 40%; right: 3%;  }
.hero__cloud--3 { width: 420px; height: 150px; bottom: 22%; left: 18%; }
.hero__cloud--4 { width: 180px; height: 70px;  top: 65%; right: -2%; }

.hero__sparkle {
  position: absolute;
  color: var(--c-gold);
  opacity: 0.4;
  animation: sparkle 3s ease-in-out infinite;
  font-size: 1rem;
  line-height: 1;
}
.hero__sparkle--1 { top: 22%; left: 13%;  animation-delay: 0s;   font-size: 1.2rem; }
.hero__sparkle--2 { top: 50%; left: 7%;   animation-delay: 0.9s; font-size: 0.9rem; }
.hero__sparkle--3 { top: 20%; right: 22%; animation-delay: 0.4s; font-size: 1.5rem; }
.hero__sparkle--4 { bottom: 38%; left: 42%; animation-delay: 1.3s; font-size: 0.8rem; }
.hero__sparkle--5 { bottom: 42%; right: 8%;  animation-delay: 0.6s; font-size: 1.1rem; }

@keyframes sparkle {
  0%, 100% { opacity: 0.25; transform: scale(1);   }
  50%       { opacity: 0.65; transform: scale(1.4); }
}

/* Layout */
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  flex: 1;
  padding-block: 5rem 7rem;
}

/* Text */
.hero__eyebrow {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--c-gold-dark);
  margin-bottom: 0.75rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: var(--c-primary-dark);
  line-height: 1.12;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.88rem, 1.8vw, 1.1rem);
  color: var(--c-primary);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.hero__desc {
  font-size: 0.96rem;
  color: var(--c-text-mid);
  line-height: 2;
  margin-bottom: 2.25rem;
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* Visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__visual-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--c-gold-light);
  box-shadow:
    0 8px 48px rgba(42,123,111,0.22),
    0 0 0 8px rgba(255,255,255,0.45);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.hero__img-ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(155deg, #cce8e0, #b8d8f0 50%, #cce4da);
  text-align: center;
  color: var(--c-primary-dark);
}
.hero__img-ph-icon { font-size: 2.8rem; color: var(--c-gold); opacity: 0.65; }
.hero__img-ph p    { font-size: 0.83rem; font-weight: 700; }
.hero__img-ph small { font-size: 0.7rem; color: var(--c-text-light); }

.hero__visual-deco {
  position: absolute;
  width: 115%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(201,168,76,0.35);
  z-index: 0;
  pointer-events: none;
}

/* Bottom wave */
.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 72px; display: block; }

/* ----------------------------------------
   ABOUT WORLD
   ---------------------------------------- */
.world-section { background: var(--c-bg-light); }

.world-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.world-card {
  background: var(--c-white);
  border: var(--border-gold);
  border-radius: var(--radius-card);
  padding: 2.5rem 1.75rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.world-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.world-card__icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-bg-light), #d4eee8);
  border: 1.5px solid var(--c-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
}
.world-card__icon-symbol {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-primary-dark);
}
.world-card__title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.world-card__text {
  font-size: 0.9rem;
  color: var(--c-text-mid);
  line-height: 1.9;
}

/* ----------------------------------------
   CHARACTERS
   ---------------------------------------- */
.characters-section { background: var(--c-bg-section); }

.characters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.character-card {
  background: var(--c-white);
  border: var(--border-gold);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.character-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
}

.character-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.character-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* 縦長の立ち絵は顔のある上部を優先して表示 */
  z-index: 2;
}
.character-card__img-ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(155deg, #d8eee8, #c8dff0);
  color: var(--c-primary-dark);
}
.character-card__img-ph span {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
}
.character-card__img-ph small {
  font-size: 0.66rem;
  color: var(--c-text-light);
}

.character-card__body {
  padding: 1.25rem 1.25rem 0.5rem;
  flex: 1;
}
.character-card__name {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.character-card__desc {
  font-size: 0.84rem;
  color: var(--c-text-mid);
  line-height: 1.8;
}
.character-card__deco {
  padding: 0.5rem 0 1rem;
  color: var(--c-gold);
  font-size: 1rem;
  letter-spacing: 0.35em;
  opacity: 0.65;
}

/* ----------------------------------------
   LINE STAMPS
   ---------------------------------------- */
.stamps-section { background: var(--c-bg-light); }

.stamps-lead {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
  color: var(--c-text-mid);
  line-height: 1.9;
  font-size: 0.95rem;
}

.stamps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.stamp-item {
  transition: transform var(--transition);
}
.stamp-item:hover { transform: translateY(-4px) scale(1.05); }

.stamp-item__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--c-gold-light);
  background: var(--c-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.stamp-item__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  padding: 0.5rem;
}
.stamp-item__ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf8f0, #dceef8);
  font-size: 0.66rem;
  color: var(--c-text-light);
  text-align: center;
  padding: 0.4rem;
}

.stamps-cta { text-align: center; }

/* ----------------------------------------
   NOTE SECTION
   ---------------------------------------- */
.note-section {
  background: var(--c-cream);
  position: relative;
}
.note-section::before,
.note-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--c-gold-light), transparent);
}
.note-section::before { top: 0; }
.note-section::after  { bottom: 0; }

.note-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.note-section__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: var(--border-gold);
  box-shadow: var(--shadow-card);
}
.note-section__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.note-section__img-ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(155deg, #f0e8d8, #e8dfc8);
  color: var(--c-text-mid);
  text-align: center;
}
.note-ph-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-gold-dark);
}
.note-section__img-ph small {
  font-size: 0.72rem;
  color: var(--c-text-light);
}

.note-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--c-gold-dark);
  margin-bottom: 0.5rem;
}
.note-text {
  font-size: 0.95rem;
  color: var(--c-text-mid);
  line-height: 1.95;
  margin-bottom: 2rem;
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer {
  background: var(--c-teal-deep);
  color: var(--c-white);
  text-align: center;
}

.footer__top {
  padding: 2.5rem 0 1.5rem;
  display: flex;
  justify-content: center;
}
.footer__emblem {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1.5px solid var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--c-gold);
}
.footer__gold-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-gold), transparent);
  margin-bottom: 2.25rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2.25rem;
}
.footer__logo-main {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-gold-light);
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.footer__logo-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
}

.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}
.footer__nav-link {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.72);
  padding: 0.2rem 0;
  transition: color var(--transition);
}
.footer__nav-link:hover { color: var(--c-gold-light); }

.footer__sns {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
}
.footer__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.38);
  color: var(--c-gold-light);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.footer__sns-link:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.footer__copy {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.06em;
  padding: 0.75rem 0 2rem;
}

/* ----------------------------------------
   イラスト館（トップページのセクション & 専用ページ共通）
   ---------------------------------------- */
/* 現在ページのナビ表示 */
.header__nav-link.is-active {
  color: var(--c-primary);
  background: var(--c-bg-light);
}

.gallery-section { background: var(--c-bg-section); }

.gallery-lead {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
  color: var(--c-text-mid);
  line-height: 1.9;
  font-size: 0.95rem;
}

/* --- カードグリッド --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.gallery-card {
  background: var(--c-white);
  border: var(--border-gold);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition:
    box-shadow var(--transition),
    opacity 0.65s ease,
    transform 0.65s ease;
}
.gallery-card:hover {
  box-shadow: var(--shadow-hover);
}
.gallery-card { cursor: pointer; }
.gallery-card:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}
.gallery-card:hover .gallery-card__img {
  transform: scale(1.05);
}
.gallery-card.is-hidden { display: none; }

.gallery-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* 縦長イラスト向けの縦長フレーム */
  overflow: hidden;
  background: var(--c-bg-light);
}
/* イラスト全体を見切れなしで表示 */
.gallery-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3;
  transition: transform 0.5s ease;
}
/* 余白を埋めるぼかし背景（本体と同じ画像を拡大・ぼかしで敷く） */
.gallery-card__img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: blur(16px) brightness(1.05);
  transform: scale(1.2);
  opacity: 0.5;
}
.gallery-card__ph {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(155deg, #d8eee8, #c8dff0);
  color: var(--c-primary-dark);
  text-align: center;
  padding: 0.5rem;
}
.gallery-card__ph span {
  font-size: 2rem;
  color: var(--c-gold);
  opacity: 0.6;
  line-height: 1;
}
.gallery-card__ph small {
  font-size: 0.66rem;
  color: var(--c-text-light);
  word-break: break-all;
}

.gallery-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
}
.gallery-card__cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-gold-dark);
  background: rgba(201,168,76,0.12);
  border: 1px solid var(--c-gold-light);
  border-radius: 999px;
  padding: 0.14rem 0.7rem;
  margin-bottom: 0.6rem;
}
.gallery-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.gallery-card__comment {
  font-size: 0.84rem;
  color: var(--c-text-mid);
  line-height: 1.8;
}

/* --- トップページ: CTA --- */
.gallery-cta {
  text-align: center;
  margin-top: 3rem;
}

/* --- 専用ページ: 小ヒーロー --- */
.page-hero {
  position: relative;
  padding: calc(68px + 4.5rem) 0 5.5rem;
  background: linear-gradient(140deg,
    #dff3ec 0%,
    #e6f2fa 35%,
    #d0e8f5 65%,
    #e0f4e8 100%
  );
  text-align: center;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero__eyebrow {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--c-gold-dark);
  margin-bottom: 0.6rem;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--c-primary-dark);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.page-hero__lead {
  font-size: 0.94rem;
  color: var(--c-text-mid);
  line-height: 2;
}
.page-hero .hero__wave { position: absolute; }

/* --- 専用ページ: フィルター --- */
.gallery-page-section { background: var(--c-bg-light); }

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.gallery-filter__btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--c-text-mid);
  background: var(--c-white);
  border: 1.5px solid var(--c-gold-light);
  border-radius: var(--radius-btn);
  padding: 0.45rem 1.3rem;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}
.gallery-filter__btn:hover {
  color: var(--c-primary);
  border-color: var(--c-primary-light);
  box-shadow: 0 3px 12px rgba(42,123,111,0.15);
}
.gallery-filter__btn.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(42,123,111,0.3);
}

.gallery-count {
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-text-light);
  margin-bottom: 2.25rem;
  letter-spacing: 0.04em;
}

.gallery-back {
  text-align: center;
  margin-top: 3.5rem;
}

/* --- ライトボックス（画像全体表示） --- */
body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(18, 60, 53, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.lightbox.is-open { display: flex; }

.lightbox__inner {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: var(--c-white);
  border: 2px solid var(--c-gold-light);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  animation: lightbox-pop 0.25s ease;
}
@keyframes lightbox-pop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--c-gold-light);
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-primary-dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.lightbox__close:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

.lightbox__img-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-light);
  min-height: 240px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  display: block;
}
.lightbox__ph {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, #d8eee8, #c8dff0);
  color: var(--c-primary-dark);
  text-align: center;
  padding: 1rem;
}
.lightbox__ph span {
  font-size: 2.6rem;
  color: var(--c-gold);
  opacity: 0.6;
  line-height: 1;
}
.lightbox__ph small {
  font-size: 0.72rem;
  color: var(--c-text-light);
  word-break: break-all;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--c-gold-light);
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-primary-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.2rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.lightbox__nav:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}
.lightbox__nav--prev { left: 0.6rem; }
.lightbox__nav--next { right: 0.6rem; }

.lightbox__caption { padding: 1.1rem 1.5rem 1.4rem; }
.lightbox__cat { margin-bottom: 0.6rem; }
.lightbox__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.lightbox__comment {
  font-size: 0.9rem;
  color: var(--c-text-mid);
  line-height: 1.8;
}

/* ----------------------------------------
   Responsive — Tablet (≤ 900px)
   ---------------------------------------- */
@media (max-width: 900px) {
  :root { --section-py: 4.5rem; }

  /* Mobile nav drawer
     （「イラスト館」追加でナビ項目が増えたため、
       900px以下からハンバーガーメニューに切り替え） */
  .header__nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    border-bottom: 1.5px solid var(--c-gold-light);
    padding: 0.75rem 1.5rem 1.25rem;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .header__nav.is-open { display: block; }
  .header__nav-list {
    flex-direction: column;
    gap: 0;
  }
  .header__nav-link {
    padding: 0.8rem 0.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--c-bg-light);
    border-radius: 0;
  }
  .header__hamburger { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 3.5rem 5.5rem;
    gap: 2.5rem;
  }
  .hero__buttons { justify-content: center; }
  .hero__visual  { order: -1; }
  .hero__visual-frame { max-width: 300px; aspect-ratio: 1 / 1; }

  .world-cards {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }

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

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

  .note-section__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .note-section__content { text-align: center; }
  .section-title--left {
    text-align: center;
  }
  .section-title--left::before,
  .section-title--left::after { display: inline-block; }
  .note-eyebrow { text-align: center; }
  .note-text    { text-align: center; }
}

/* ----------------------------------------
   Responsive — Mobile (≤ 600px)
   ---------------------------------------- */
@media (max-width: 600px) {
  :root { --section-py: 3.5rem; }

  .hero__inner { padding-block: 2.5rem 5rem; }

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

  .characters-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .gallery-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .gallery-filter { gap: 0.45rem; }
  .gallery-filter__btn { font-size: 0.8rem; padding: 0.4rem 1rem; }

  .lightbox { padding: 0.75rem; }
  .lightbox__img { max-height: 58vh; }
  .lightbox__close { width: 36px; height: 36px; }
  .lightbox__nav { width: 38px; height: 38px; font-size: 1.3rem; }
  .lightbox__nav--prev { left: 0.4rem; }
  .lightbox__nav--next { right: 0.4rem; }
  .lightbox__caption { padding: 0.9rem 1.1rem 1.2rem; }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .btn { justify-content: center; }

  .footer__nav-list { gap: 0.1rem 0.75rem; }
}

@media (max-width: 400px) {
  .characters-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }
}
