/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Zen Maru Gothic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #fff4e2;
  color: #253140;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* テキストは基本両端揃え */
p {
  text-align: justify;
  text-justify: inter-ideograph;
}

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

main {
  padding-bottom: 64px;
}

/* Layout */
.l-section {
  padding: 40px 16px;
}

.l-container {
  margin: 0 auto;
}

.l-container--narrow {
  width: 100%;
  max-width: 960px;
}

.l-container--full {
  width: 100%;
  max-width: 100%;
  padding: 16px;
}

/* HERO（背景色 #d8403b ＋ 画像全体表示） */
.hero {
  width: 100%;
  background-color: #d8403b;
  text-align: center;
  padding: 16px 0;
}

.hero__img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* HERO tagline（1行＋自動調整） */
.hero-tagline-wrap {
  padding: 16px;
  text-align: center;
}

.hero-tagline {
  margin: 0;
  font-family: "Dela Gothic One", system-ui, sans-serif;
  /* ビューポートに応じて自動調整（最小16px〜最大36px） */
  font-size: clamp(16px, 4.5vw, 36px);
  color: #d8403b;
  text-align: center;
  white-space: nowrap;          /* 常に1行 */
  overflow: hidden;
  text-overflow: ellipsis;      /* 万が一あふれた場合の保険 */
}

/* Heading (見出し) */
.c-heading {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.c-heading__text {
  display: inline-block;
  padding: 10px 24px;
  font-family: "Dela Gothic One", system-ui, sans-serif;
  font-size: 22px;
  color: #d8403b;
  text-align: center;
  border-radius: 999px;
  border: 4px solid #ffd364;
  background-color: #ffffff;
}

/* Sub headings（中見出し / 小見出し差別化） */
.c-subheading {
  margin: 28px 0 14px;
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;      /* 中見出し大きめ（例：せり市） */
  color: #253140;
  text-align: center;
}

.c-subheading--small {
  display: block;
  margin-top: 20px;
  font-size: 14px;      /* 小見出しは一段階小さく（例：出品リスト） */
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* About section */
.about {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* アイコン3つ：スマホは縦並び、PCで横1列 */
.about__icons {
  display: block;               /* スマホ：通常フロー（縦並び） */
}

.about__icon {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 12px;
  border: none;
  padding: 0;
  background: none;
}

.about__icon img {
  width: 100%;
  height: auto;
}

/* 説明テキスト：角丸＋白背景（枠線なし） */
.about__text {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 16px;
}

.about__text p {
  margin: 0 0 12px;
}

/* Stage images（縦1列） */
.stage-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stage-images__item {
  border-radius: 16px;
  border: 4px solid #ffd364;
  background-color: #ffffff;
  padding: 12px;
}

/* Seri（せり市） */
.seri-image {
  margin: 0 0 16px;
  border-radius: 16px;
  border: none;                 /* 枠線なし */
  background-color: #ffffff;
  padding: 16px;
}

/* 画像を気持ち小さめ & 中央寄せ */
.seri-image img {
  width: 80%;
  max-width: 640px;
  margin: 0 auto;
  height: auto;
}

.seri-text {
  margin: 0 0 16px;
}

/* Item grid（PC:4列・SP:2列） */
.item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.item-grid__item {
  margin: 10px;
  border-radius: 16px;
  border: 4px solid #ffd364;
  background-color: #ffffff;
  padding: 10px;
}

.item-grid__item img {
  width: 100%;
  height: auto;
}

/* Zoom cards (マップ用) */
.zoom-card {
  position: relative;
  margin-top: 8px;
  border-radius: 16px;
  border: 4px solid #ffd364;
  background-color: #ffffff;
  padding: 12px;
  cursor: pointer;
}

.zoom-card__label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: #d8403b;
  color: #ffffff;
  font-size: 11px;
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
}

.zoom-card__img {
  border-radius: 10px;
}

/* Sponsor（協賛：1つの枠の中に大小テキスト） */
.sponsor-box {
  border-radius: 16px;
  border: 4px solid #ffd364;
  background-color: #ffffff;
  padding: 16px;
  margin-bottom: 16px;
}

.sponsor-box--combined {
  display: block;
}

.sponsor-box__large {
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 12px;
}

.sponsor-box__small {
  font-size: 12px;
  margin: 0;
}

/* Modal for zoom */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.is-active {
  display: flex;
}

.modal__inner {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 12px 12px 16px;
  max-width: 100%;
  max-height: 90vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.modal__close {
  align-self: flex-end;
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.modal__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding-top: 4px;
}

/* 画像は横幅そのまま・横スクロールさせる */
.modal__img {
  display: block;
  width: auto;
  max-width: none;
  max-height: 80vh;
}

/* body fixed when modal open */
body.is-fixed {
  overflow: hidden;
}

/* Footer */
.site-footer {
  background-color: #d8403b;
  color: #ffffff;
  padding: 24px 16px;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
  text-align: justify;
}

/* Responsive */
@media (min-width: 768px) {
  .hero {
    padding: 24px 0;
  }

  .hero-tagline {
    font-size: clamp(18px, 3.5vw, 40px);
  }

  /* PC 時のみアイコンを横並び flex にする */
  .about__icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .about__icon {
    max-width: none;
    margin: 0;
    flex: 1 1 0;
  }

  .stage-images__item {
    padding: 16px;
  }

  .seri-image {
    padding: 20px;
  }

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

@media (min-width: 960px) {
  .l-container--narrow {
    width: 60vw; /* PC は HERO/フッター以外 60% */
  }

  .l-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .c-heading__text {
    font-size: 24px;
  }
}
