:root {
  --bg: #f0d9dd;
  --card: #ffffff;
  --ink: #273041;
  --ink-strong: #1f2734;
  --muted: #4f5b68;
  --key: #9badc8;
  --key-strong: #51637c;
  --key-weak: #bfd3de;
  --sub: #dbc6c9;
  --line: #d6bfc3;
  --highlight: #f6e9ec;
  --focus-ring: rgba(155, 173, 200, 0.35);
  --radius: 20px;
  --shadow: 0 10px 40px rgba(155, 173, 200, 0.16);
  --shadow-strong: 0 20px 60px rgba(155, 173, 200, 0.24);
  --header-h: 60px;

  .scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--sub);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 90;
    box-shadow: 0 2px 5px rgba(31, 39, 52, 0.12);
  }

  .scroll-top:hover {
    background: #f3e4e7;
  }

  .scroll-top.visible {
    opacity: 1;
    visibility: visible;
  }

  .scroll-top svg {
    width: 20px;
    height: 20px;
    color: var(--key-strong);
  }
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", system-ui,
    ui-sans-serif;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.bg-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
      800px 280px at 10% -5%,
      var(--key-weak),
      transparent 60%
    ),
    radial-gradient(700px 260px at 90% 10%, #f3e4e7, transparent 60%),
    radial-gradient(900px 300px at 50% 120%, #dcd0d2, transparent 60%);
}

/* ===== ヘッダー ===== */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  justify-content: center;
}

/* PC表示では二段構成 */
@media (min-width: 961px) {
  .appbar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px 12px;
    height: auto;
    min-height: var(--header-h);
  }
}
.appbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* PC表示では中央配置 */
@media (min-width: 768px) {
  .appbar__brand {
    justify-content: center;
  }
}
.badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: conic-gradient(from 210deg, #ffffff, var(--key-weak));
  color: var(--key-strong);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(81, 99, 124, 0.2);
}
.brand__logo {
  max-height: calc(var(--header-h) - 16px);
  width: auto;
  display: block;
  object-fit: contain;
}
.brand__text {
  display: flex;
  flex-direction: column;
}
.brand__title {
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub {
  font-size: 11px;
  color: var(--muted);
}
/* ===== ヘッダーナビゲーション ===== */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar {
  display: none;
}
.header-nav__list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.header-nav__list li {
  flex-shrink: 0;
}
.header-nav__list a {
  display: block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--key-strong);
  background: linear-gradient(135deg, #f6e7ea 0%, #eef4f8 100%);
  border: 1px solid rgba(81, 99, 124, 0.18);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(81, 99, 124, 0.08);
}
.header-nav__list a:hover {
  background: linear-gradient(135deg, #f1dfe3 0%, #e7f0f7 100%);
  border-color: rgba(81, 99, 124, 0.32);
  color: var(--ink-strong);
  box-shadow: 0 4px 12px rgba(81, 99, 124, 0.16);
  transform: translateY(-1px);
}
.header-nav__list a:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(81, 99, 124, 0.12);
}

/* レスポンシブ：小さい画面ではナビを非表示 */
@media (max-width: 900px) {
  .header-nav {
    display: none;
  }
}

.hamburger {
  margin-left: auto;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--key-strong);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.hamburger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.hamburger svg {
  width: 20px;
  height: 20px;
}

/* ===== レイアウト ===== */
.site {
  max-width: 1200px;
  margin: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}
.nav {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  align-self: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  justify-content: center;
}
.brand h1 {
  font-size: 16px;
  margin: 0;
}
.brand small {
  display: block;
  color: var(--muted);
}
.nav ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.nav .shop-link {
  background: linear-gradient(120deg, #9badc8, #bfd3de);
  color: var(--ink-strong);
  border: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(81, 99, 124, 0.18);
  transition: all 0.2s ease;
}
.nav .shop-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(81, 99, 124, 0.24);
  background: linear-gradient(120deg, #8fa3c1, #b0c8d8);
  color: var(--ink-strong);
}
.nav .shop-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(81, 99, 124, 0.18);
}
.nav .shop-icon {
  width: 18px;
  height: 18px;
}
@media (min-width: 961px) {
  .nav .shop-link--purchase {
    display: none;
  }
}
.nav a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(81, 99, 124, 0.08);
}
.nav a:hover {
  background: linear-gradient(120deg, #fff, #f3e6e9);
  border-color: rgba(81, 99, 124, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(81, 99, 124, 0.15);
  color: var(--ink-strong);
}
.nav a:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(81, 99, 124, 0.12);
}
.nav .hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--key);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: 0.7em;
}
.nav a:hover .dot {
  transform: scale(1.2);
  background: var(--key-strong);
}

.main {
  min-width: 0;
}

.main--full {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, var(--highlight));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px;
}
.hero__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.hero h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.hero p {
  margin: 0;
  color: var(--muted);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--key-strong);
  background: #f4e7ea;
  border: 1px solid rgba(81, 99, 124, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
}

.hero-illus {
  /* 装飾をなくして余白を詰める */
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  display: block;
  width: 100%;
  align-self: stretch;
  position: relative;
  overflow: hidden;
}

/* 画像は幅いっぱい、高さは自動で比率を維持 */
.hero-illus__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.sparkle {
  position: absolute;
  animation: sway 6s ease-in-out infinite;
}
.sparkle--1 {
  top: 14%;
  left: 12%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
}
.sparkle--2 {
  top: 8%;
  right: 14%;
  width: 40px;
  height: 40px;
  animation-delay: 0.8s;
}
.sparkle--3 {
  bottom: 12%;
  left: 18%;
  width: 46px;
  height: 46px;
  animation-delay: 1.6s;
}
@keyframes sway {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.illus-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #eee;
  padding: 4px 8px;
  border-radius: 999px;
}

.blocks {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.blocks > .shop-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  background: linear-gradient(120deg, #9badc8, #bfd3de);
  color: var(--ink-strong);
  font-weight: 700;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 12px rgba(81, 99, 124, 0.18);
  transition: all 0.2s ease;
}
.blocks > .shop-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(81, 99, 124, 0.24);
  background: linear-gradient(120deg, #8fa3c1, #b0c8d8);
  color: var(--ink-strong);
}
.blocks > .shop-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(81, 99, 124, 0.18);
}
.blocks > .shop-link svg {
  flex-shrink: 0;
}
details {
  padding: 0;
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  font-weight: 800;
  letter-spacing: 0.02em;
}
summary::-webkit-details-marker {
  display: none;
}

/* ===== フッター ===== */
.site-footer {
  margin: 20px 0 32px;
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.footer-cta {
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.footer-cta a {
  color: var(--key-strong);
  text-decoration: none;
}
.footer-cta__icon {
  width: 18px;
  height: 18px;
  color: var(--key-strong);
}
/* リボン型バリアント */
.site-footer--ribbon {
  background: linear-gradient(100deg, #9badc8, #bfd3de, #dbc6c9);
  border-top: 1px solid rgba(81, 99, 124, 0.18);
  color: var(--ink-strong);
}
.site-footer--ribbon .site-footer__inner {
  padding: 16px;
}
.site-footer--ribbon .footer-cta {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ink-strong);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}
.footer-cta__text {
  min-width: 0;
}
.footer-cta__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.footer-cta__lead {
  margin: 2px 0 0;
  font-weight: 700;
}
.site-footer--ribbon .footer-cta__icon {
  color: var(--ink-strong);
}
.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--key-strong);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(31, 39, 52, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.footer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(31, 39, 52, 0.2);
}
.footer-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(31, 39, 52, 0.18);
}
.site-footer--ribbon .footer-cta a {
  color: var(--ink-strong);
}
@media (max-width: 720px) {
  .site-footer--ribbon .footer-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-btn {
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .footer-cta {
    line-height: 1.7;
    text-align: center;
    flex-wrap: wrap;
  }
}

/* スタイル付きフッター（中央配置・おしゃれリンク） */
.site-footer--styled .footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px 16px;
}
.footer-cta__text {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.footer-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  border: 2px solid rgba(81, 99, 124, 0.22);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(31, 39, 52, 0.1);
  transition: all 0.2s ease;
}
.footer-cta__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 39, 52, 0.18);
  background: #f4e7ea;
  border-color: rgba(81, 99, 124, 0.35);
  color: var(--key-strong);
}
.footer-cta__link:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(31, 39, 52, 0.14);
}
.footer-cta__link-text {
  letter-spacing: 0.02em;
}
.footer-cta__link-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.footer-cta__link:hover .footer-cta__link-icon {
  transform: translate(2px, -2px);
}
.footer-cta__credit {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.8;
}
@media (max-width: 560px) {
  .footer-cta__link {
    font-size: 15px;
    padding: 9px 16px;
  }
}

.badge--s {
  min-width: 1.6em;
  height: 1.6em;
  border-radius: 10px;
  background: var(--key-weak);
  color: var(--key-strong);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.6em;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(81, 99, 124, 0.18);
}
.chev {
  margin-left: auto;
  inline-size: 1em;
  block-size: 1em;
  position: relative;
}
.chev::before,
.chev::after {
  content: "";
  position: absolute;
  background: var(--key-strong);
  transition: transform 0.2s;
}

.chev::before {
  inset: 0;
  margin: auto;
  width: 12px;
  height: 2px;
}

.chev::after {
  inset: 0;
  margin: auto;
  width: 2px;
  height: 12px;
  transition: transform 0.2s;
}

details[open] summary .chev::after {
  transform: rotate(90deg);
}
.content {
  border-top: 1px dashed var(--line);
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff, #f6e7ea);
}

/* ===== 題目（【】/《》）の装飾 ===== */
.title-br {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 10px 0 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--key-weak), #ffffff);
  border: 1px solid rgba(81, 99, 124, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.title-br .text {
  flex: 1;
}

.subhead-br {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  margin: 8px 0 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6e7ea;
  border: 1px solid rgba(81, 99, 124, 0.2);
  color: var(--ink-strong);
}
.subhead-br .diamond {
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: var(--key-weak);
  border: 1px solid rgba(81, 99, 124, 0.3);
  border-radius: 2px;
}

/* ===== 箇条書き / 通常文 ===== */
.p {
  margin: 6px 15px;
}
.bullet {
  margin: 4px 0 4px 1.2em;
  position: relative;
}

/* ===== Q&A 表現 ===== */
.qa {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid rgba(81, 99, 124, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f6e7ea);
}
.qa .sign {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.qa.q .sign {
  background: var(--key-weak);
  color: var(--key-strong);
  border: 1px solid rgba(81, 99, 124, 0.28);
}
.qa.a .sign {
  background: var(--highlight);
  color: var(--ink-strong);
  border: 1px solid rgba(81, 99, 124, 0.2);
}
.qa .body {
  line-height: 1.9;
}

/* FAQをQAごとにボックスで囲む */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qa-pair {
  border: 1px solid rgba(81, 99, 124, 0.16);
  border-radius: 12px;
  padding: 8px;
  background: linear-gradient(180deg, #ffffff, #f4e7ea);
  box-shadow: 0 8px 24px rgba(81, 99, 124, 0.08);
}
.qa-pair .qa {
  margin: 0;
  padding: 8px 6px;
  border: 0;
  background: transparent;
}
.qa-pair .qa + .qa {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
.qa-pair .qa .sign {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

/* ===== ギャラリー ===== */
.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

/* 箔押しセクションのみ3列表示（デスクトップ） */
#foil .gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid rgba(81, 99, 124, 0.16);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(81, 99, 124, 0.12);
  display: flex;
  flex-direction: column;
}
.card__thumb {
  display: flex;
  width: 100%;
  background: radial-gradient(60% 60% at 40% 40%, #ffffff, #f0d9dd 60%),
    linear-gradient(120deg, #ffffff 0%, #f0d9dd 45%, #bfd3de 100%);
  border-bottom: 1px dashed rgba(81, 99, 124, 0.22);
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* 画像が切れないよう、コンテナ内で中央に収める */
.card__thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  cursor: zoom-in;
}

/* 動画サムネイルのスタイル */
.card__thumb--video {
  position: relative;
  cursor: zoom-in;
}

.card__thumb__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

/* モーダル */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(31, 39, 52, 0.92);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}
.modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  transition: 0.2s;
  z-index: 2;
}
.modal__close:hover {
  background: var(--key-weak);
}

.modal__content {
  position: relative;
  max-width: min(1200px, 90%);
  max-height: 90vh;
  margin: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
}
.modal.is-open .modal__content {
  opacity: 1;
  transform: none;
}

.modal img,
.modal video {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  margin: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}
.thumb-doodle {
  position: absolute;
  inset: auto 10px 10px auto;
}
.card__body {
  padding: 8px 10px;
}
.card__cap {
  font-size: 12px;
  color: var(--muted);
}
.card__title {
  font-weight: 800;
  margin: 2px 0 0;
  font-size: 13px;
}

/* 画像のみ影をつける専用カード */
.card--image-shadow {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.card--image-shadow .card__thumb {
  background: transparent;
  border: none;
  padding: 0;
  overflow: visible;
}

.card--image-shadow .card__thumb img {
  box-shadow: 0 8px 30px rgba(81, 99, 124, 0.2),
    0 0 20px rgba(81, 99, 124, 0.12);
  border-radius: 8px;
}

/* 縦軸中央揃え専用カード */
.card--center {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* フローのスタイル */
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 10px auto;
}
.flow-item {
  position: relative;
  padding: 16px 20px 16px 70px;
  background: linear-gradient(120deg, #ffffff, #f4e7ea);
  border: 1px solid rgba(81, 99, 124, 0.16);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(81, 99, 124, 0.1);
}
.flow-item::before {
  content: attr(data-num);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--key);
  color: var(--ink-strong);
  border-radius: 50%;
  font-weight: 900;
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 4px rgba(81, 99, 124, 0.2);
}
.flow-item::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 100%;
  width: 2px;
  height: 12px;
  background: var(--key);
}
.flow-item:last-child::after {
  display: none;
}

.flow-item .flow-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
}
.flow-item .note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  padding-left: 1em;
  position: relative;
}
.flow-item .note::before {
  content: "※";
  position: absolute;
  left: 0;
}

.divider {
  margin: 10px 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px dashed rgba(81, 99, 124, 0.22);
  background: linear-gradient(90deg, #ffffff, #f4e7ea);
}
.divider svg {
  display: block;
  width: 100%;
  height: 48px;
}

/* ===== モバイル：ドロワー化 ===== */
/* ハンバーガーメニューはデフォルトで非表示 */
.hamburger {
  display: none;
}

/* モバイル表示設定 */
@media (max-width: 960px) {
  .site {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px 12px 24px;
  }
  .hero__wrap {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  /* 箔押しセクションでは 2 列を維持 */
  #foil .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* モバイルではハンバーガーメニューを表示 */
  .hamburger {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86%, 320px);
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    z-index: 60;
    border-radius: 0 16px 16px 0;
    padding: 0 16px;
    border-right: 1px solid var(--line);
    border-left: none;
    box-shadow: var(--shadow-strong);
  }
  .nav .brand {
    display: none;
  }
  .nav .hint {
    margin-bottom: 8px;
  }
  .scrim {
    position: fixed;
    inset: 0;
    background: rgba(31, 39, 52, 0.28);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 55;
  }

  body.is-nav-open {
    overflow: hidden;
  }
  body.is-nav-open .nav {
    transform: none;
  }
  body.is-nav-open .scrim {
    opacity: 1;
    visibility: visible;
  }
}
@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .brand__title {
    font-size: 13px;
  }
  /* 箔押しセクションはモバイルで1列に */
  #foil .gallery {
    grid-template-columns: 1fr;
  }
}

a,
button,
summary:focus {
  outline: none;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* モバイルのドロワーメニューを“必ず”下まで届かせる */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86%, 320px);
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    z-index: 60;

    height: 100vh;
    height: 100dvh;
    height: var(--dvh, 100dvh);

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .nav ul {
    margin-bottom: 12px;
  }
}

/* ベース */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header__logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-strong);
}

/* ① チェックボックスは非表示（アクセシビリティのためvisibilityで隠さない） */
.header__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ② ハンバーガーボタン（モバイルで表示） */
.header__button {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(81, 99, 124, 0.12);
  background: linear-gradient(140deg, #fffdfd 0%, #f4e7ea 55%, #eef4f8 100%);
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(81, 99, 124, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.header__button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    120% 120% at 50% 10%,
    rgba(255, 255, 255, 0.72),
    transparent 60%
  );
  mix-blend-mode: screen;
}

.header__button:focus-visible {
  outline: none;
  border-color: rgba(81, 99, 124, 0.32);
  box-shadow: 0 16px 26px rgba(81, 99, 124, 0.24), 0 0 0 4px var(--focus-ring);
}

.header__button:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(81, 99, 124, 0.18);
}

.header__button-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.header__button-line + .header__button-line {
  margin-top: 5px;
}

@keyframes header-button-pulse {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(81, 99, 124, 0.18);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 18px 32px rgba(81, 99, 124, 0.26);
    transform: translateY(-1px);
  }
}

/* ③ ナビ（モバイルでは閉じた状態） */
.header__nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

@media (max-width: 961px) {
  .header__nav {
    background: var(--card);
  }
}

.header__list {
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
  display: grid;
  gap: 8px;
}

.header__link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: none;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

@media (max-width: 961px) {
  .header__link--mobile {
    padding: 12px 18px;
    color: var(--key-strong);
    background: linear-gradient(135deg, #f6e7ea 0%, #eef4f8 100%);
    border-color: rgba(81, 99, 124, 0.22);
    box-shadow: 0 8px 20px rgba(81, 99, 124, 0.14);
  }
  .header__link--mobile:focus-visible,
  .header__link--mobile:hover {
    background: linear-gradient(135deg, #f1dfe3 0%, #e7f0f7 100%);
    border-color: rgba(81, 99, 124, 0.35);
    color: var(--ink-strong);
    box-shadow: 0 12px 28px rgba(81, 99, 124, 0.2);
    transform: translateY(-1px);
  }
  .header__link--mobile:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(81, 99, 124, 0.18);
  }
}

@media (min-width: 961px) {
  .header__link {
    display: inline-flex;
    width: auto;
  }
  .header__link--desktop {
    padding: 10px 18px;
    color: var(--key-strong);
    background: linear-gradient(135deg, #f6e7ea 0%, #eef4f8 100%);
    border-color: rgba(81, 99, 124, 0.24);
    box-shadow: 0 8px 18px rgba(81, 99, 124, 0.14);
    font-size: 13px;
  }
  .header__link--desktop:hover,
  .header__link--desktop:focus-visible {
    background: linear-gradient(135deg, #f1dfe3 0%, #e7f0f7 100%);
    border-color: rgba(81, 99, 124, 0.38);
    color: var(--ink-strong);
    box-shadow: 0 12px 26px rgba(81, 99, 124, 0.2);
    transform: translateY(-1px);
  }
  .header__link--desktop:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(81, 99, 124, 0.18);
  }
}

/* ④ 開いたときの状態（チェックONでmax-heightを広げる） */
.header__toggle:checked ~ .header__nav {
  max-height: calc(100dvh - var(--header-h, 60px));
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ⑤ ハンバーガー→× のアニメーション（任意） */
.header__toggle:checked + .header__button .header__button-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__toggle:checked + .header__button .header__button-line:nth-child(2) {
  opacity: 0;
}
.header__toggle:checked + .header__button .header__button-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.header__button .header__button-line {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ⑥ PC幅では横並び＆ボタン非表示 */
@media (min-width: 961px) {
  .header__button {
    display: none;
  }
  .header__nav {
    position: static;
    max-height: none;
    border: 0;
    overflow: visible;
  }
  .header {
    gap: 24px;
  }
  .header__list {
    padding: 0;
    display: flex;
    gap: 16px;
  }
}

/* 動きが苦手な方向け（OS設定に追従） */
@media (prefers-reduced-motion: reduce) {
  .header__nav {
    transition: none;
  }
  .header__button .header__button-line {
    transition: none;
  }
}

/* ===== detail button (header independent) ===== */

.detail-btn {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(81, 99, 124, 0.12);
  background: linear-gradient(140deg, #fffdfd 0%, #f4e7ea 55%, #eef4f8 100%);
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(81, 99, 124, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.detail-btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    120% 120% at 50% 10%,
    rgba(255, 255, 255, 0.72),
    transparent 60%
  );
  mix-blend-mode: screen;
}

.detail-btn:focus-visible {
  outline: none;
  border-color: rgba(81, 99, 124, 0.32);
  box-shadow: 0 16px 26px rgba(81, 99, 124, 0.24), 0 0 0 4px var(--focus-ring);
}

.detail-btn:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(81, 99, 124, 0.18);
}
@media (min-width: 961px) {
  .detail-btn {
    display: none;
  }
}
