/* ==========================================================
   tete marché サイト共通スタイル
   カラーはポスターの配色（深緑・赤・黄色・クリーム）を使用
   ========================================================== */

:root {
  --green: #3f5a37;
  --green-dark: #2c4126;
  --red: #b23a2f;
  --red-dark: #8f2d24;
  --yellow: #f2c230;
  --yellow-soft: #f7d766;
  --cream: #faf3e0;
  --cream-dark: #f0e6c8;
  --text-dark: #2b2b21;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(43, 43, 33, 0.12);
  --max-width: 1160px;

  /* ---- 開発者用エディタ（dev-editor.html）で調整できる値 ---- */
  --hero-dots-opacity: 1;
  --hero-dots-scale: 1;
  --gift-bottom: 128px;
  --gift-right: 110px;
  --gift-width: 186px;
  --gift-font-size: 0.88rem;
  --store-col-min: 280px;
  --store-gap: 24px;
  --store-img-ratio: 4 / 3;
  --store-name-size: 1rem;
  --modal-max-width: 480px;
  --modal-img-ratio: 4 / 3;
  --about-padding: 80px;
  --stores-padding: 80px;
  --access-padding: 80px;
  --contact-padding: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* キーボード操作時にどこにフォーカスがあるか分かるように（配色は既存のyellowを流用） */
a:focus-visible,
button:focus-visible,
.filter-btn:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic",
    sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.8;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--green-dark);
  margin: 0 0 32px;
  text-align: center;
  font-weight: 800;
}

.section-title.on-dark {
  color: var(--yellow-soft);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.logo .te {
  color: var(--green);
  -webkit-text-stroke: 1px var(--red);
}
.logo .te2 {
  color: var(--green);
  -webkit-text-stroke: 1px var(--yellow);
}
.logo .marche {
  color: var(--green);
  -webkit-text-stroke: 0.6px var(--cream);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--cream);
  border-radius: 2px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--green);
  color: var(--cream);
  overflow: hidden;
  padding: 64px 0 80px;
}

.hero-yellow {
  background: var(--yellow);
  padding: 40px 0 68px;
}

.hero-yellow-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 44px;
}

.hero-yellow-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
}

.hero-yellow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-dark);
  text-align: left;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-yellow-ig {
  color: var(--red-dark);
}

.hero-yellow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
}

.hero-yellow-icon svg {
  width: 20px;
  height: 20px;
}

.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--hero-dots-opacity);
  transform: scale(var(--hero-dots-scale));
}

.hero-dots .shape {
  position: absolute;
  border-radius: 50%;
}

.hero-dots .circle.red {
  background: var(--red);
}
.hero-dots .circle.yellow {
  background: var(--yellow);
}
.hero-dots .circle.big {
  width: 120px;
  height: 120px;
}
.hero-dots .circle.mid {
  width: 70px;
  height: 70px;
}
.hero-dots .circle.small {
  width: 34px;
  height: 34px;
}

.hero-dots .texture {
  width: 110px;
  height: 110px;
  background-image: radial-gradient(
    rgba(250, 243, 224, 0.55) 2px,
    transparent 2.5px
  );
  background-size: 14px 14px;
  border-radius: 50%;
}

.hero-dots .pos1 {
  top: -30px;
  left: -30px;
}
.hero-dots .pos2 {
  top: 10px;
  left: 130px;
}
.hero-dots .pos3 {
  top: 90px;
  left: 40px;
}
.hero-dots .pos4 {
  top: -20px;
  right: 60px;
}
.hero-dots .pos5 {
  top: -20px;
  left: 200px;
}
.hero-dots .pos6 {
  top: 20px;
  right: -20px;
}
.hero-dots .pos7 {
  top: 60px;
  right: 180px;
}
.hero-dots .pos8 {
  top: -10px;
  right: 260px;
}

/* 装飾の丸をゆっくりふわふわ動かす */
@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(4deg);
  }
}

.hero-dots .shape {
  animation: floatShape 6s ease-in-out infinite;
}
.hero-dots .pos1 {
  animation-duration: 7.5s;
  animation-delay: -1s;
}
.hero-dots .pos2 {
  animation-duration: 5.5s;
  animation-delay: -3s;
}
.hero-dots .pos3 {
  animation-duration: 6.5s;
  animation-delay: -0.5s;
}
.hero-dots .pos4 {
  animation-duration: 8s;
  animation-delay: -4s;
}
.hero-dots .pos5 {
  animation-duration: 6s;
  animation-delay: -2s;
}
.hero-dots .pos6 {
  animation-duration: 7s;
  animation-delay: -5s;
}
.hero-dots .pos7 {
  animation-duration: 5s;
  animation-delay: -1.5s;
}
.hero-dots .pos8 {
  animation-duration: 6.8s;
  animation-delay: -3.5s;
}

.hero-inner {
  position: relative;
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}

.hero-datebox {
  position: absolute;
  top: 140px;
  left: 12%;
  z-index: 2;
  text-align: left;
}

.hero-datebox .hero-time {
  margin-bottom: 0;
}

.hero-date {
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--yellow-soft);
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-date-big {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--yellow);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
}

.hero-date-youbi {
  font-size: 0.38em;
  font-weight: 700;
  color: var(--cream);
  margin-left: 8px;
  vertical-align: middle;
}

.hero-time {
  font-size: 1.25rem;
  color: var(--cream-dark);
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-kai {
  display: inline-block;
  background: none;
  color: var(--yellow);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic",
    sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin: 100px 0 16px;
}

.hero-title {
  font-size: clamp(4rem, 11vw, 7rem);
  font-weight: 800;
  margin: 8px 0 8px;
  letter-spacing: 0.04em;
}
.hero-title .t1 {
  color: var(--green);
  -webkit-text-stroke: 2.5px var(--red);
}
.hero-title .t2 {
  color: var(--green);
  -webkit-text-stroke: 2.5px var(--yellow);
}

.hero-title2 {
  font-size: clamp(3rem, 8vw, 4.6rem);
  font-weight: 800;
  margin: -30px 0 20px;
  color: var(--green);
  -webkit-text-stroke: 2px var(--cream);
  letter-spacing: 0.06em;
}

.hero-tagline {
  color: var(--yellow-soft);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 40px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ページを開いた時、ロゴが1文字ずつ登場する演出 */
@keyframes letterPop {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.7);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.hero-kai {
  opacity: 0;
  animation: heroFadeIn 0.5s ease forwards;
}

.hero-title span,
.hero-title2 span {
  display: inline-block;
  opacity: 0;
  animation: letterPop 0.5s ease forwards;
}

.hero-title span:nth-child(1) {
  animation-delay: 0.15s;
}
.hero-title span:nth-child(2) {
  animation-delay: 0.3s;
}
.hero-title span:nth-child(3) {
  animation-delay: 0.45s;
}
.hero-title span:nth-child(4) {
  animation-delay: 0.6s;
}

.hero-title2 span:nth-child(1) {
  animation-delay: 0.85s;
}
.hero-title2 span:nth-child(2) {
  animation-delay: 0.97s;
}
.hero-title2 span:nth-child(3) {
  animation-delay: 1.09s;
}
.hero-title2 span:nth-child(4) {
  animation-delay: 1.21s;
}
.hero-title2 span:nth-child(5) {
  animation-delay: 1.33s;
}
.hero-title2 span:nth-child(6) {
  animation-delay: 1.45s;
}

.hero-tagline {
  opacity: 0;
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 1.9s;
}

.hero-datebox {
  opacity: 0;
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 2.1s;
}

.hero-gift-banner {
  opacity: 0;
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 2.35s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  border-color: var(--green-dark);
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* countdown（黄色い背景の上でも読めるよう、箱を濃い目に） */
.countdown {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}
.countdown-item {
  background: var(--green);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 64px;
}
.countdown-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cream);
  display: block;
}

/* 数字が切り替わる瞬間の演出 */
@keyframes countdownPop {
  0% {
    transform: scale(1.35);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.countdown-num.is-updating {
  animation: countdownPop 0.35s ease-out;
}
.countdown-label {
  font-size: 0.7rem;
  color: var(--cream-dark);
  letter-spacing: 0.05em;
}

/* ---------- About ---------- */

.about {
  padding: var(--about-padding) 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  margin: 0 0 18px;
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--green);
}

.about-photo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* 全ての写真の読み込みが完了してからフェードを開始する（JSが .is-ready を付与） */
.about-photo.is-ready .about-photo-slide {
  animation: about-photo-fade 24s infinite;
}

@keyframes about-photo-fade {
  0% {
    opacity: 0;
  }
  4.17% {
    opacity: 1;
  }
  16.67% {
    opacity: 1;
  }
  20.83% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-photo-slide {
    animation: none !important;
    opacity: 0;
  }
  .about-photo-slide:first-child {
    opacity: 1;
  }
}

/* ---------- Stores ---------- */

.stores {
  padding: var(--stores-padding) 0;
  background: var(--green);
  color: var(--cream);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.stores-order-note {
  text-align: center;
  color: var(--cream);
  font-size: 0.8rem;
  margin: 0 0 32px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--cream);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.filter-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--green-dark);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--store-col-min), 1fr));
  gap: var(--store-gap);
  align-items: start;
}

.coming-soon {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(250, 243, 224, 0.4);
  border-radius: var(--radius);
  padding: 64px 24px;
  text-align: center;
}

.coming-soon-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 14px;
}

.coming-soon-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--yellow);
  margin: 0 0 10px;
  letter-spacing: 0.05em;
}

.coming-soon-text {
  color: var(--cream-dark);
  margin: 0;
}

.store-card {
  background: var(--cream);
  color: var(--text-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.store-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.store-card:hover {
  transform: translateY(-4px);
}

.store-image {
  position: relative;
  aspect-ratio: var(--store-img-ratio);
  background: var(--cream-dark);
  overflow: hidden;
}

.store-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #a89f80;
}

.store-image.no-image .icon {
  font-size: 2rem;
}

.store-image.no-image .txt {
  font-size: 0.75rem;
  font-weight: 700;
}

.store-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.store-slider-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.55);
}

.slider-btn.prev {
  left: 8px;
}

.slider-btn.next {
  right: 8px;
}

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
}

.slider-dot.active {
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .store-slider-track {
    transition: none;
  }
}

.store-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.store-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}

.store-name {
  display: block;
  min-width: 0;
  font-size: var(--store-name-size);
  font-weight: 800;
  color: var(--green-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* スマホ幅では1列ではなく3列で表示し、文字・余白・ボタン類も同じ比率で縮小する */
@media (max-width: 640px) {
  /* 出店者一覧セクションだけ左右の余白を詰めて、カードを画面幅ギリギリまで大きくする */
  .stores .container {
    padding: 0 6px;
  }

  .store-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .store-grid .store-card {
    border-radius: 10px;
  }

  .store-grid .store-body {
    padding: 9px 7px 10px;
    gap: 3px;
  }

  .store-grid .store-category {
    font-size: 0.58rem;
  }

  .store-grid .store-name {
    font-size: 0.74rem;
  }

  .store-grid .slider-btn {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }

  .store-grid .slider-btn.prev {
    left: 4px;
  }

  .store-grid .slider-btn.next {
    right: 4px;
  }

  .store-grid .slider-dots {
    bottom: 5px;
    gap: 4px;
  }

  .store-grid .slider-dot {
    width: 5px;
    height: 5px;
  }

  .store-grid .store-image.no-image .icon {
    font-size: 1.3rem;
  }

  .store-grid .store-image.no-image .txt {
    font-size: 0.58rem;
  }
}

.store-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
}

.store-desc {
  font-size: 0.85rem;
  color: #55503f;
  flex: 1;
}

.store-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
}

.store-ig-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
}

.store-ig-icon svg {
  width: 16px;
  height: 16px;
}

.stores-note {
  text-align: center;
  margin-top: 36px;
  color: var(--cream-dark);
  font-size: 0.9rem;
}

/* ---------- 店舗詳細モーダル ---------- */

.store-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.store-modal.is-open {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.store-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 10, 0.55);
}

.store-modal-panel {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  max-width: var(--modal-max-width);
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: modalPop 0.25s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .store-modal-panel {
    animation: none;
  }
}

.store-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.store-modal-close:hover {
  background: rgba(0, 0, 0, 0.6);
}

.modal-image {
  aspect-ratio: var(--modal-img-ratio);
}

.store-modal-info {
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-modal-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-dark);
  margin: 0;
}

/* ---------- Access ---------- */

.access {
  padding: var(--access-padding) 0;
  background: var(--cream);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.access-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.access-card h3 {
  color: var(--green-dark);
  font-size: 1.15rem;
  margin-top: 0;
}

.access-card p {
  font-size: 0.9rem;
  margin: 0 0 6px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.poster-info-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 20px;
}

/* ---------- Contact / Footer ---------- */

.contact {
  padding: var(--contact-padding) 0;
  background: var(--yellow);
  color: var(--text-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: center;
}

.contact-item {
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-item p {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.contact-item .contact-icon {
  margin-bottom: 14px;
}

.contact-item h4 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--red-dark);
}

.hero-gift-banner {
  position: absolute;
  bottom: var(--gift-bottom);
  right: var(--gift-right);
  z-index: 2;
  width: var(--gift-width);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
}

.gift-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 画像内の白いラベル部分に文字を重ねる */
.gift-banner-label {
  position: absolute;
  left: 17.3%;
  right: 17.5%;
  top: 38.6%;
  bottom: 23%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
}

.gift-banner-text {
  display: block;
  color: var(--cream);
  font-weight: 800;
  font-size: var(--gift-font-size);
  line-height: 1.35;
}

@media (max-width: 860px) {
  .hero-gift-banner {
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    width: auto;
    max-width: 150px;
    margin: 24px auto 0;
  }

  .gift-banner-text {
    font-size: 0.72rem;
  }
}

.site-footer {
  background: var(--green-dark);
  color: var(--cream-dark);
  text-align: center;
  padding: 32px 0;
  font-size: 0.85rem;
}

.site-footer .logo {
  justify-content: center;
  margin-bottom: 10px;
}

/* フッターは背景が少し濃い緑なので、中身の色をそれに合わせる */
.site-footer .logo .te,
.site-footer .logo .te2,
.site-footer .logo .marche {
  color: var(--green-dark);
}

/* ---------- スクロールでふわっと表示 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* store-cardは元々ホバーで浮き上がる演出があるため、表示後もホバーを優先させる */
.store-card.reveal:hover {
  transform: translateY(-4px);
}

/* 動きを抑えたい設定のユーザーには、アニメーションを出さない */
@media (prefers-reduced-motion: reduce) {
  .hero-dots .shape {
    animation: none;
  }
  .countdown-num.is-updating {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-kai,
  .hero-title span,
  .hero-title2 span,
  .hero-tagline,
  .hero-datebox,
  .hero-gift-banner {
    opacity: 1;
    animation: none;
    transform: none;
  }
  .back-to-top {
    transition: none;
  }
}

/* ---------- 上に戻るボタン ---------- */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--red-dark);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--green);
    display: none;
    flex-direction: column;
    padding: 10px 0;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }
  .main-nav a {
    display: block;
    padding: 14px 0;
  }
  .nav-toggle {
    display: flex;
  }

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

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

  /* 狭い画面では、タイトルを先に・日付をその下に表示する */
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-inner {
    order: 1;
  }

  .hero-datebox {
    order: 2;
    position: static;
    text-align: center;
    margin: 24px auto 0;
  }

  .hero-gift-banner {
    order: 3;
  }

  .hero-title {
    margin-top: 0;
  }

  /* 住所・電話・Instagramの行がバラバラの位置で中央寄せになりズレて見えるので、縦一列に揃える */
  .hero-yellow-inner {
    flex-direction: column;
    align-items: center;
  }

  .hero-yellow-item {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .countdown-item {
    min-width: 52px;
    padding: 8px 10px;
  }

  .hero-tagline {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
  }
}
