/*
 * MISTELGOODS Official Trading Card — index.css
 */

/* 変数定義 */
:root {
  /* Colors */
  --color-bg: #e8f4fb;
  --color-bg-section: #f0f8ff;
  --color-bg-card: #ffffff;
  --color-bg-hero: linear-gradient(135deg, #c5e8f7 0%, #a8d8f0 30%, #bde0f5 60%, #d0edfb 100%);
  --color-primary: #e8559f;
  --color-primary-dark: #c73d86;
  --color-secondary: #5aabdb;
  --color-secondary-dark: #3d8fbf;
  --color-accent-yellow: #f5e442;
  --color-accent-green: #4ec87b;
  --color-text-dark: #1a2540;
  --color-text-mid: #3a4a6a;
  --color-text-light: #6a7a9a;
  --color-text-white: #ffffff;
  --color-accent-orange: #f4762a;
  --color-point-bg: #fffbe0;
  --color-border-light: rgba(90, 171, 219, 0.25);
  --color-nav-bg: rgba(255, 255, 255, 0.92);
  --color-dummy: #c5d8e8;
  --color-dummy-dark: #a8c0d4;

  /* Gradients */
  --gradient-pink-blue: linear-gradient(135deg, #e8559f 0%, #5aabdb 100%);
  --gradient-hero-bg: linear-gradient(135deg, #b8dff5 0%, #9ed0ec 40%, #c2e4f7 100%);

  /* Typography */
  --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', 'Outfit', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1280px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-mid: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(90, 171, 219, 0.18), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 12px 40px rgba(90, 171, 219, 0.32), 0 2px 8px rgba(0,0,0,0.10);
  --shadow-nav: 0 2px 20px rgba(90, 171, 219, 0.18);
}

/* リセット */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  background-image: url('../images/common/haikei.jpg');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;
  color: var(--color-text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

body.modal-open .site-header {
  right: var(--scrollbar-width, 0px);
}

body.modal-open .card-item {
  pointer-events: none !important;
  transform: none !important;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ダミー画像エリア */
.dummy-image {
  background-color: var(--color-dummy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dummy-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(168, 192, 212, 0.3) 10px,
    rgba(168, 192, 212, 0.3) 20px
  );
}

.dummy-image::after {
  content: attr(aria-label);
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  color: rgba(90, 120, 150, 0.7);
  text-align: center;
  padding: 4px;
  line-height: 1.3;
}

.dummy-image--char-large {
  width: 100%;
  height: 100%;
  border-radius: 0;
  min-height: 420px;
}

.dummy-image--pack {
  width: 120px;
  height: 170px;
  border-radius: 6px;
}

.dummy-image--pack-large {
  width: 260px;
  height: 360px;
  border-radius: 10px;
  flex-shrink: 0;
}

.dummy-image--card-fan {
  width: 100%;
  height: 100%;
  min-height: 340px;
}

.dummy-image--trading-card {
  width: 100%;
  aspect-ratio: 5/7;
  border-radius: 10px;
  border: 2px solid rgba(90, 171, 219, 0.3);
}

.dummy-image--trading-card-sm {
  width: 60%;
  aspect-ratio: 5/7;
  position: absolute;
  right: -10%;
  bottom: -5%;
  box-shadow: -4px 4px 12px rgba(0,0,0,0.15);
}

.dummy-image--char-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid white;
}

.dummy-image--card-grid {
  width: 100%;
  aspect-ratio: 5/7;
  border-radius: 10px;
}

/* コンテナ */
.section-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* セクション見出し */
.section-heading-wrap {
  margin-bottom: 32px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--color-text-dark);
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-heading-ja {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-nav);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 30px rgba(90, 171, 219, 0.25);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.header-logo:hover {
  opacity: 0.85;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--color-text-dark);
}

.logo-sub {
  font-size: 0.6rem;
  color: var(--color-text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
  height: 70px;
  justify-content: center;
  border-right: 1px solid rgba(90, 171, 219, 0.2);
  transition: background var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.nav-item:first-child .nav-link {
  border-left: 1px solid rgba(90, 171, 219, 0.2);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-pink-blue);
  transform: scaleX(0);
  transition: transform var(--transition-mid);
  transform-origin: center;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover {
  background: rgba(90, 171, 219, 0.06);
}

.nav-en {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: 0.04em;
}

.nav-ja {
  font-size: 0.65rem;
  color: var(--color-text-light);
  margin-top: 1px;
}

/* 日本語のみナビリンク */
.nav-link--ja-only {
  justify-content: center;
}

.nav-link--ja-only .nav-ja {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-top: 0;
  letter-spacing: 0.06em;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ヒーロースライダー */
.hero {
  position: relative;
  width: 100%;
  margin-top: 70px; /* fixed ヘッダー分だけ押し下げ */
  height: auto;
  aspect-ratio: 1920 / 1010; /* 1920x1010の画像アスペクト比に領域を固定 */
  overflow: hidden;
  background: #c8dfe8;
}

.hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.dummy-image--slide {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background-color: var(--color-dummy);
  font-size: 1rem;
  padding: 0;
}

.dummy-image--slide::before,
.dummy-image--slide::after {
  display: none !important;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* スマホ用ヒーロー比率 */
@media (max-width: 768px) {
  .hero {
    aspect-ratio: 750 / 1334;
  }
}

/* Prev / Next arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.75);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-arrow--prev { left: 20px; }
.slider-arrow--next { right: 20px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.slider-dot--active {
  background: #ffffff;
  transform: scale(1.3);
}

/* ABOUT */
.about {
  padding: var(--section-padding);
  background: transparent;
  position: relative;
}

/* 三角パターン */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      60deg,
      rgba(90, 171, 219, 0.05) 0px,
      rgba(90, 171, 219, 0.05) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      -60deg,
      rgba(90, 171, 219, 0.05) 0px,
      rgba(90, 171, 219, 0.05) 1px,
      transparent 1px,
      transparent 80px
    );
  pointer-events: none;
  z-index: 0;
}

.about .section-container {
  position: relative;
  z-index: 1;
}

/* 2カラムレイアウト */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(90, 171, 219, 0.15);
}

.about-image {
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: flex;
  align-items: center;
}

.about-gallery {
  display: flex;
  gap: 12px;
  width: 100%;
  height: auto;
  padding: 24px;
}

.about-gallery-img {
  flex: 1;
  width: 100%;
  height: auto;
}

.about-gallery-img .card-img-wrap {
  aspect-ratio: auto;
  height: auto;
}

.about-gallery-img .card-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-text {
  padding: 48px 40px 48px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.about-desc {
  font-size: 0.95rem;
  color: var(--color-text-mid);
  line-height: 1.9;
}

/* Points grid */
.points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.point-card {
  background: linear-gradient(135deg, #fffbe6 0%, #fff9d6 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(245, 228, 66, 0.4);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

.point-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.point-card--promo {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fb 100%);
  border-color: rgba(90, 171, 219, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  gap: 16px;
}

.point-header {
  background: linear-gradient(90deg, #e8559f 0%, #5aabdb 100%);
  padding: 16px 24px;
}

.point-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.point-subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
  border-left: 3px solid rgba(255,255,255,0.6);
  padding-left: 8px;
}

.point-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.point-card-img-wrap {
  position: relative;
}

.point-callout {
  position: absolute;
  right: -8px;
  top: 20px;
  background: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: var(--color-text-dark);
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(232, 85, 159, 0.2);
  max-width: 100px;
  text-align: center;
}

.point-callout::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--color-primary);
}

.point-desc {
  font-size: 0.88rem;
  color: var(--color-text-mid);
  line-height: 1.7;
}

.point-sub-desc {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

.accent-orange {
  color: var(--color-accent-orange);
  font-weight: 700;
}

/* Promo card */
.point-promo-img {
  width: 100%;
  max-width: 200px;
}

.promo-badge-btn {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 40px;
  text-align: center;
  letter-spacing: 0.03em;
}

.promo-characters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.promo-char-bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.promo-char-bubble--hina {
  flex-direction: row-reverse;
}

.promo-speech {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--color-text-dark);
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(90, 171, 219, 0.2);
  max-width: 140px;
}

/* ルール */
.shop {
  padding: var(--section-padding);
  background: transparent;
  position: relative;
}

.shop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      60deg,
      rgba(90, 171, 219, 0.04) 0px,
      rgba(90, 171, 219, 0.04) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      -60deg,
      rgba(90, 171, 219, 0.04) 0px,
      rgba(90, 171, 219, 0.04) 1px,
      transparent 1px,
      transparent 80px
    );
  pointer-events: none;
  z-index: 0;
}

.shop .section-container {
  position: relative;
  z-index: 1;
}

.shop-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(90, 171, 219, 0.2);
  display: grid;
  grid-template-columns: auto 1fr;
  max-width: 720px;
  margin: 0 auto;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.shop-card-visual {
  background: linear-gradient(135deg, #1a2d50 0%, #253a6e 100%);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.shop-card-info {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.shop-card-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.5;
}

.shop-card-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 0.88rem;
}

.shop-card-details dt {
  color: var(--color-text-light);
  font-weight: 500;
}

.shop-card-details dd {
  color: var(--color-text-dark);
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 40px;
  letter-spacing: 0.05em;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 20px rgba(232, 85, 159, 0.35);
  align-self: flex-start;
}

.btn-buy:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 85, 159, 0.45);
}

.btn-buy:active {
  transform: translateY(0);
}

/* カード一覧 */
.collection {
  padding: var(--section-padding);
  background: transparent;
  position: relative;
}

.collection::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      60deg,
      rgba(90, 171, 219, 0.04) 0px,
      rgba(90, 171, 219, 0.04) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      -60deg,
      rgba(90, 171, 219, 0.04) 0px,
      rgba(90, 171, 219, 0.04) 1px,
      transparent 1px,
      transparent 80px
    );
  pointer-events: none;
  z-index: 0;
}

.collection .section-container {
  position: relative;
  z-index: 1;
}

/* Tabs */
.collection-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
  border-bottom: 2px solid rgba(90, 171, 219, 0.2);
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-light);
  padding: 12px 28px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  letter-spacing: 0.02em;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn--active {
  color: var(--color-text-dark);
  border-bottom-color: var(--color-primary);
}

.tab-text-pc {
  display: inline;
}

.tab-text-sp {
  display: none;
}

/* Card section */
.card-section {
  animation: fadeIn 0.35s ease forwards;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.card-section:not(:last-child) {
  margin-bottom: 56px;
}

.card-section--hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-section-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(90, 171, 219, 0.3);
}

.card-section-info {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: -8px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 横向きカード — 改行して行に1枚表示
   列幅 --card-col-w は JS の setCardColWidth() で動的に設定 */
.card-item--landscape {
  grid-column: 1 / -1;    /* 行全体を占有し、1行に1枚だけ表示 */
  justify-self: start;
  width: calc(var(--card-col-w, 200px) * 7 / 5);  /* 縦カードの高さ分だけ幅を取る */
}

.card-item--landscape .card-img-wrap {
  aspect-ratio: 7 / 5;
}

.card-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(90, 171, 219, 0.14), 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              border-color 0.28s ease, 
              box-shadow 0.28s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
}

.card-item:hover {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 16px 36px rgba(90, 171, 219, 0.24), 0 4px 10px rgba(0,0,0,0.06);
  border-color: rgba(232, 85, 159, 0.5);
}

/* Pack Cover card styling */
.card-item--cover {
  border: 2px solid rgba(232, 85, 159, 0.5);
  box-shadow: 0 4px 16px rgba(232, 85, 159, 0.15);
}

.card-item--cover:hover {
  border-color: var(--color-primary);
  box-shadow: 0 16px 36px rgba(232, 85, 159, 0.35);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 5/7;
  overflow: hidden;
  border-radius: 10px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card-item:hover .card-img {
  transform: scale(1.04);
}

.card-dummy {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-dummy) 0%, var(--color-dummy-dark) 100%);
  position: relative;
  overflow: hidden;
}

.card-dummy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(168, 192, 212, 0.3) 8px,
    rgba(168, 192, 212, 0.3) 16px
  );
}

/* モーダル */
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card-modal[hidden] {
  display: none;
}

/* Backdrop */
.card-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.86);
  animation: modalBackdropIn 0.22s ease-out forwards;
  will-change: opacity;
}

@keyframes modalBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.card-modal.is-closing .card-modal-backdrop {
  animation: modalBackdropOut 0.15s ease-in forwards;
}

@keyframes modalBackdropOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Content box */
.card-modal-content {
  position: relative;
  z-index: 1;
  max-width: min(420px, 90vw);
  width: 100%;
  animation: modalContentIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* PC版のみ、モーダルのサイズを開く前の画像サイズ（--card-col-w）の2倍に変更 */
@media (min-width: 769px) {
  .card-modal-content {
    max-width: min(calc(var(--card-col-w, 200px) * 2), 90vw);
  }
}

/* 横向きカード用モーダル — 縦カードを90°倒したサイズ（420 × 7/5 = 588px） */
.card-modal-content--landscape {
  max-width: min(588px, 90vw);
}

/* PC版横向きカード用モーダル — 開く前の2倍に変更 */
@media (min-width: 769px) {
  .card-modal-content--landscape {
    max-width: min(calc(var(--card-col-w, 200px) * 1.4 * 2), 90vw);
  }
}

.card-modal-content--landscape .card-modal-image {
  aspect-ratio: 7 / 5;
}

@keyframes modalContentIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.card-modal.is-closing .card-modal-content {
  animation: modalContentOut 0.15s ease-in forwards;
}

@keyframes modalContentOut {
  from { opacity: 1; transform: scale(1)    translateY(0); }
  to   { opacity: 0; transform: scale(0.95) translateY(8px); }
}

/* Image area */
.card-modal-image {
  width: 100%;
  aspect-ratio: 5/7;
  border-radius: 16px;
  overflow: hidden;
}

.card-modal-image .card-dummy {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.modal-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* モーダル内キャプション（画像下テキスト） */
.modal-card-caption {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* Close button */
.card-modal-close {
  position: absolute;
  top: 0;
  right: -48px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

/* Responsive adjustment for narrow screens */
@media (max-width: 540px) {
  .card-modal-close {
    top: 12px;
    right: 12px;
    background: rgba(10, 20, 40, 0.55);
    border-color: rgba(255, 255, 255, 0.45);
    z-index: 10;
  }
}

/* 作った人 */
.makers {
  padding: var(--section-padding);
  background: transparent;
  position: relative;
}

.makers::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(232, 85, 159, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(90, 171, 219, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.makers .section-container {
  position: relative;
  z-index: 1;
}

/* Makers container */
.makers-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.maker-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(90, 171, 219, 0.12);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
}

/* Avatar */
.maker-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(90, 171, 219, 0.2);
  flex-shrink: 0;
  background: var(--color-dummy);
  box-shadow: 0 6px 24px rgba(90, 171, 219, 0.2);
}

.dummy-image--maker-avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.maker-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info */
.maker-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.maker-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: rgba(232, 85, 159, 0.08);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(232, 85, 159, 0.2);
}

.maker-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: 0.04em;
}

.maker-desc {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.75;
}

.maker-desc--left {
  text-align: left;
}

.maker-desc-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}

.maker-divider {
  border: none;
  border-top: 1px dashed rgba(90, 171, 219, 0.3);
  width: 100%;
  margin: 4px 0;
}

.maker-text-link {
  color: var(--color-secondary);
  text-decoration: none;
  word-break: break-all;
  transition: color var(--transition-fast);
}

.maker-text-link:hover {
  color: var(--color-secondary-dark);
  text-decoration: underline;
}

/* Social links */
.maker-links {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.maker-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(26, 37, 64, 0.06);
  color: var(--color-text-mid);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.maker-link svg {
  width: 22px;
  height: 22px;
}

.maker-link:hover {
  background: var(--color-text-dark);
  color: #ffffff;
  transform: scale(1.1);
}


/* フッター */

.site-footer {
  background: linear-gradient(180deg, #1a2d50 0%, #0f1c38 100%);
  color: #8a9abf;
  padding: 60px 0 0;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-back-to-top {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(90, 171, 219, 0.15);
  border: 1px solid rgba(90, 171, 219, 0.3);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 10px 24px;
  border-radius: 40px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.back-to-top-btn:hover {
  background: rgba(90, 171, 219, 0.28);
  transform: translateY(-2px);
}

.footer-notes {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 40px;
}

.footer-notes-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-notes-list li {
  font-size: 0.8rem;
  color: #6a7a9a;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.footer-notes-list li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #5a6a8a;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 0.78rem;
  color: #5a6a8a;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* アニメーション */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* レスポンシブ */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .point-card--promo {
    grid-column: span 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px 0;
  }

  .tab-text-pc {
    display: none;
  }

  .tab-text-sp {
    display: inline;
  }

  /* Header */
  .hamburger {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(90, 171, 219, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-mid), opacity var(--transition-mid);
  }

  .header-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    height: 56px;
    border-right: none;
    border-bottom: 1px solid rgba(90, 171, 219, 0.1);
    padding: 0 24px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
  }

  .nav-item:first-child .nav-link {
    border-left: none;
  }

  .nav-link::after {
    display: none;
  }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    padding-top: 40px;
    padding-bottom: 60px;
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  .hero-dummy-char--left {
    display: none;
  }

  .hero-dummy-char--right {
    grid-row: 2;
  }

  .hero-dummy-char .dummy-image--char-large {
    width: 200px;
    height: 280px;
  }

  .hero-center {
    grid-row: 1;
  }

  /* About */
  .about-body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-image {
    min-height: 0;
    overflow: visible;
  }

  .about-gallery {
    width: 100%;
    height: auto;
    padding: 12px;
    gap: 8px;
  }

  .about-gallery-img {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    height: auto;
  }

  .about-gallery-img .card-img-wrap {
    height: auto;
    aspect-ratio: auto;
  }

  .about-gallery-img .card-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .about-text {
    padding: 20px 16px;
  }

  /* Shop */
  .shop-card {
    grid-template-columns: 1fr;
  }

  .shop-card-visual {
    padding: 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .shop-card-info {
    padding: 24px;
  }

  /* Cards grid */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Collection tabs */
  .collection-tabs {
    flex-direction: column;
    border-bottom: none;
    gap: 4px;
  }

  .tab-btn {
    border: 1px solid rgba(90, 171, 219, 0.35);
    border-left: 3px solid rgba(90, 171, 219, 0.35);
    padding: 12px 20px;
    text-align: left;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    margin-bottom: 0;
  }

  .tab-btn--active {
    border-color: rgba(90, 171, 219, 0.5);
    border-left-color: var(--color-primary);
    background: rgba(255,255,255,0.9);
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .section-heading {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn-buy {
    align-self: stretch;
    text-align: center;
  }
}
