/* =====================================================
   酒むすめ TOPページ
===================================================== */

:root {
  color-scheme: only light;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-size: 100% auto;
  color-scheme: only light;
  color: #333;
  overflow-x: hidden;
  width: 100%;
  font-family: "Yu Gothic", "Hiragino Sans", sans-serif;
}


/* =====================================================
   共通セクション
===================================================== */

section {
  position: relative;
  width: 100%;
}

.section-bg {
  display: block;
  width: 100%;
  height: auto;
}

/* デフォルト（PC）では非表示 */
.sp {
  display: none;
}

/* =====================================================
   Gateway
===================================================== */

#gateway {

  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  height: 64px;

  padding: 0 24px;

  background: rgba(255, 255, 255, 0.95);

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);

  position: relative;
  z-index: 1000;

}

.gateway-logo img {

  display: block;

  height: 42px;
  width: auto;

}

.gateway-menu {
  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 48px;
  min-height: 48px;
}

/* ---------------------------------
   さかずき町直通
--------------------------------- */

.town-direct-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 72px;
  height: 56px;

  padding: 4px 0;

  border: none;
  background: transparent;

  color: #6d4c2f;

  cursor: pointer;
}


.town-direct-icon {
  display: block;

  width: 30px;
  height: 20px;

  object-fit: contain;
}


.town-direct-label {
  margin-top: 8px;

  font-size: 10px;
  line-height: 1;

  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------------------------------
   ちかみち
--------------------------------- */

.shortcut-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 56px;

  padding: 4px 0;

  border: none;
  background: transparent;

  color: #6d4c2f;

  cursor: pointer;
}


/* 三本線 */

.shortcut-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 28px;
  height: 20px;
}

.shortcut-icon span {
  display: block;

  width: 100%;
  height: 3px;

  border-radius: 2px;

  background: #6d4c2f;
}


/* 文字 */

.shortcut-label {
  margin-top: 8px;

  font-size: 10px;
  line-height: 1;

  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* =================================
   ちかみちメニュー
================================= */

.shortcut-menu {
  position: fixed;

  top: 64px;
  right: 0;

  width: 200px;
  max-width: 100vw;

  max-height: calc(100vh - 64px);

  overflow-x: hidden;
  overflow-y: auto;

  padding: 10px 22px 30px;

  background: rgba(255, 250, 238, 0.9);

  box-shadow:
    -4px 6px 18px rgba(0, 0, 0, 0.15);

  z-index: 1500;

  display: none;
}

.shortcut-menu.is-open {
  display: block;
}


.shortcut-menu-inner {
  width: 100%;
}


.shortcut-menu-title {
  margin-bottom: 5px;
  line-height: 1.1;

  text-align: center;

  color: #6d4c2f;

  font-family: "Zen Maru Gothic", sans-serif;

  font-size: 1.2rem;
  font-weight: 700;

  letter-spacing: 0.1em;
}


/* エリア */

.shortcut-area {
  margin-bottom: 3px;
}


.shortcut-area-name {
  display: block;

  width: 100%;

  padding: 5px 0;

  border: none;
  background: transparent;

  text-align: left;

  color: #6d4c2f;

  font-family: inherit;

  font-size: 1.05rem;
  font-weight: 700;

  letter-spacing: 0.05em;

  cursor: pointer;
}


/* コンテンツ */

.shortcut-content,
.shortcut-contents a {

  display: block;

  margin-left: 20px;

  padding: 3px 0;

  color: #8a7560;

  text-decoration: none;

  font-size: 0.9rem;

  line-height: 1.5;
}


.shortcut-content:hover,
.shortcut-contents a:hover {
  color: #6d4c2f;
}


/* カンパイ広場・商店街など */

.shortcut-contents {
  margin-left: 0;
}

/* =====================================================
   オープニング
===================================================== */

#opening {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100vh;

  overflow: hidden;

  background-color: #d8c6a5;
  background-image: url("../img/top/bg_margin.webp");
  background-repeat: repeat;
  background-position: center top;

  z-index: 2000;

  display: flex;
  justify-content: center;
  align-items: center;
}


/* ---------------------------------
   駅中画像と同じ比率のステージ
   1536 : 1024 = 3 : 2
--------------------------------- */

.opening-stage {
  position: relative;

  width: min(100vw, 150vh);
  aspect-ratio: 3 / 2;

  flex-shrink: 0;
}


/* ---------------------------------
   駅中画像
--------------------------------- */

.opening-bg {
  display: block;

  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;

  z-index: 1;
}


/* ---------------------------------
   演出レイヤー
   駅画像と完全に同じ座標系
--------------------------------- */

.opening-content {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  pointer-events: none;

  z-index: 10;
}


/* ---------------------------------
   掲示板位置
--------------------------------- */

.opening-board {
  position: absolute;

  width: 23%;
  aspect-ratio: 1 / 1;

  pointer-events: none;
}

.opening-board-left {
  left: 13%;
  top: 25%;
}

.opening-board-right {
  right: 13%;
  top: 25%;
}


/* ---------------------------------
   オープニング キャラクター
--------------------------------- */

.opening-character {
  position: absolute;

  width: 42%;

  object-fit: contain;

  transform-origin: center center;

  z-index: 20;

  border: 6px solid #fff;
  box-sizing: border-box;

  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.18);

  pointer-events: none;
}


/* 左から登場 */

.opening-character.opening-left {
  animation:
    openingCharacterLeft 2.0s ease-in-out forwards;
}


/* 右から登場 */

.opening-character.opening-right {
  animation:
    openingCharacterRight 2.0s ease-in-out forwards;
}


/* ---------------------------------
   左側
--------------------------------- */

@keyframes openingCharacterLeft {

  0% {
    left: 24%;
    top: 50%;

    opacity: 0;

    transform:
      translate(-50%, -50%) scale(1);
  }

  20% {
    opacity: 0.3;
  }

  40% {
    opacity: 0.7;
  }

  55% {
    opacity: 1;
  }

  100% {
    left: var(--target-left);
    top: var(--target-top);

    opacity: 1;

    transform:
      translate(-50%, -50%) scale(0.13) rotate(var(--target-rotate));
  }

}


/* ---------------------------------
   右側
--------------------------------- */

@keyframes openingCharacterRight {

  0% {
    right: 24%;
    top: 50%;

    opacity: 0;

    transform:
      translate(50%, -50%) scale(1);
  }

  20% {
    opacity: 0.3;
  }

  40% {
    opacity: 0.7;
  }

  55% {
    opacity: 1;
  }

  100% {
    right: var(--target-right);
    top: var(--target-top);

    opacity: 1;

    transform:
      translate(50%, -50%) scale(0.13) rotate(var(--target-rotate));
  }

}

/* ---------------------------------
   オープニング中央メッセージ
--------------------------------- */

.opening-message {
  position: absolute;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  z-index: 30;

  width: 80%;

  text-align: center;

  font-family: "Zen Maru Gothic", sans-serif;

  color: #fff;

  font-size: clamp(1.6rem, 5vw, 4rem);

  font-weight: 900;

  line-height: 1.7;

  letter-spacing: 0.12em;

  text-shadow:
    0 3px 6px rgba(0, 0, 0, 0.8);

  pointer-events: none;
}

.opening-message .opening-click {
  display: inline-block;

  font-size: 0.4em;

  font-weight: normal;

  margin-top: 0.35em;

  padding: 0.08em 0.45em;

  letter-spacing: 0.08em;

  background: rgba(70, 45, 30, 0.65);

  border-radius: 0.2em;
}

/* 3行共通 */

.opening-message>span {
  display: block;

  opacity: 0;

  transition:
    opacity 1.2s ease;
}


/* 表示された文字 */

.opening-message span.is-visible {
  opacity: 1;
}


/* 酒むすめの世界へ */

.opening-message .opening-world {
  font-size: 0.9em;

  margin-top: 0.1em;
}

.opening-message .opening-sakemusume {
  color: #f6d98b;
}

/* クリックしてください */

.opening-message .opening-click {
  font-size: 0.4em;

  font-weight: normal;

  margin-top: 0.35em;

  letter-spacing: 0.08em;
}

/* =====================================================
   ① 線路・駅舎
===================================================== */

#station {

  position: relative;
  width: 100%;

}

#station .section-bg {

  display: block;
  width: 100%;
  height: auto;

}

#station .section-content {

  position: absolute;
  inset: 0;

}

/* ---------------------------------
   駅のレイヤー
--------------------------------- */

#station .train {
  position: absolute;

  width: 32%;

  left: 50%;
  top: 31.5%;

  transform: translateX(-50%);

  z-index: 2;

  pointer-events: none;
}


#station .station-building {
  position: absolute;

  width: 27%;

  left: 50%;
  top: 41%;

  transform: translateX(-50%);

  z-index: 3;

  pointer-events: none;
}

/* ---------------------------------
   列車出発アニメーション
--------------------------------- */

#station.station-departing .train {
  animation: trainDeparture 3.5s ease-in forwards;
}

@keyframes trainDeparture {

  0% {
    left: 50%;
  }

  100% {
    left: 120%;
  }

}

/* =====================================================
   ② 円形広場
===================================================== */

#plaza {

  position: relative;
  width: 100%;

}

#plaza .section-bg {

  display: block;
  width: 100%;
  height: auto;

}

#plaza .section-content {

  position: absolute;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

}

#plaza .section-inner {

  width: 100%;
  display: flex;
  justify-content: center;

}

.about-box {

  width: min(88%, 700px);

  padding: 40px;

  background: rgba(255, 255, 255, 0.70);

  backdrop-filter: blur(4px);

  border-radius: 20px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  text-align: center;

}

.about-box h2 {

  margin-bottom: 24px;

  font-size: clamp(1.8rem, 3vw, 2.4rem);

  color: #6d4c2f;

  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.about-box p {

  line-height: 2;

  font-size: clamp(1rem, 2vw, 1.2rem);

  color: #4a4036;

  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------------------------------
   酒むすめとは：SDキャラ
--------------------------------- */

.about-story {
  position: relative;
  min-height: 280px;
}

.about-story p {
  position: relative;
  z-index: 2;
}

.about-character {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.about-character img {
  display: block;
  width: 100%;
  height: auto;
}


/* ビール */

.about-beer {
  width: 80px;
  left: -30px;
  top: 20px;

  animation: aboutCharacterFloat 3s ease-in-out infinite;
}


/* ワイン */

.about-wine {
  width: 80px;
  right: -35px;
  top: 75px;

  animation: aboutCharacterFloat 3.4s ease-in-out infinite;
}


/* 日本酒 */

.about-nihonsyu {
  width: 85px;
  left: 50%;
  bottom: -15px;

  transform: translateX(-50%);

  animation: aboutCharacterFloat 3.2s ease-in-out infinite;
}


@keyframes aboutCharacterFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }

}


/* 日本酒だけ中央配置を維持 */

.about-nihonsyu {
  animation-name: aboutNihonsyuFloat;
}


@keyframes aboutNihonsyuFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-7px);
  }

}

/* =====================================================
   ③ メンバー紹介
===================================================== */

#board-member {

  position: relative;
  width: 100%;

}

#board-member .section-bg {

  display: block;
  width: 100%;
  height: auto;

}

#board-member .section-content {

  position: absolute;
  inset: 0;

}

/* ---------------------------------
   掲示板（後で中身を入れる）
--------------------------------- */

.board {

  position: absolute;

  width: 35%;
  aspect-ratio: 1 / 1.15;

  /* デバッグ用 */
  /* border:2px solid red; */

}

.board-poster {
  display: block;
  width: 100%;
  height: auto;
}

.board-left {

  left: 6.5%;
  top: 11.5%;

}

.board-right {

  right: 6.6%;
  bottom: -0.7%;

}

/* =====================================================
   お知らせ掲示板
===================================================== */

#board-content .board-left {

  left: 6.5%;
  top: 11.5%;

}

#board-content .board-right {

  right: 6.6%;
  bottom: 13.3%;

}

/* =====================================================
   さかずき町 到着メッセージ
===================================================== */

#town-arrival {
  width: 100%;
  background: #fff;

  padding: 5px 20px 55px;

  text-align: center;
}

.town-arrival-message p {
  margin: 0;

  color: #6d4c2f;

  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: bold;
  letter-spacing: 0.08em;
}

.town-arrival-guide {
  margin-top: 10px !important;

  font-size: 0.9rem !important;
  font-weight: normal !important;
  letter-spacing: 0.05em;
  color: #8a7560 !important;
}

/* =====================================================
   ⑦ さかずき町
===================================================== */

#town {
  position: relative;
  width: 100%;
  padding: 40px 4%;
  background: #d8c29a;
}

.town-map-frame {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

  padding: 8px;

  background: #6f4828;

  border: 3px solid #4f321d;
  border-radius: 7px;

  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 220, 160, 0.35);
}

.town-map-inner {
  position: relative;
  background: #f4e7c8;
  border: 2px solid #c79b5b;
}

.town-map-title {
  position: absolute;

  top: -40px;
  left: 50%;
  transform: translateX(-50%);

  z-index: 2;

  padding: 8px 28px;

  background: #8b5a32;
  color: #fff5df;

  border: 4px solid #5b391f;
  border-radius: 8px;

  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.08em;

  white-space: nowrap;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* =====================================================
   さかずき町 MAP：エリアリンク
===================================================== */

.town-map-inner {
  position: relative;
}

/* ---------------------------------
   さかずき町MAP：酒むすめSDキャラクター
--------------------------------- */

.town-character {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.town-character:has(.char-bubble.show) {
  z-index: 10;
}

/* キャラクター画像 */

.town-character img {
  display: block;
  width: 100%;
  height: auto;

  /* 白い縁取り＋薄い影 */
  filter:
    drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));

  /* キャラごとに--float-durationを変更可能 */
  animation:
    townCharacterFloat var(--float-duration, 3s) ease-in-out infinite;
}


/* ---------------------------------
   キャラクター上下揺れ
--------------------------------- */

@keyframes townCharacterFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }

}


/* ビール */
.town-character-beer {
  width: 12%;
  left: 12.5%;
  top: 47%;

  /* ビールちゃんの揺れ周期 */
  --float-duration: 2.8s;
}

.town-character-beer .char-bubble {
  top: -40%;
  left: 50%;
}

/* ワイン */
.town-character-wine {
  width: 12%;
  left: 27%;
  top: 52%;

  --float-duration: 3.2s;
}

.town-character-wine .char-bubble {
  top: -40%;
  left: 50%;
}


/* 日本酒 */
.town-character-nihonsyu {
  width: 12%;
  left: 27%;
  top: 40%;

  --float-duration: 3.6s;
}

.town-character-nihonsyu .char-bubble {
  top: -40%;
  left: 50%;
}


/* シャンパン */
.town-character-champagne {
  width: 12%;
  left: 12%;
  top: 58%;

  --float-duration: 2.6s;
}

.town-character-champagne .char-bubble {
  top: -40%;
  left: 50%;
}


/* 紹興酒 */
.town-character-shaoxing {
  width: 11.5%;
  left: 13%;
  top: 38%;

  --float-duration: 3.8s;
}

.town-character-shaoxing .char-bubble {
  top: -40%;
  left: 50%;
}

/* ウイスキー */
.town-character-whisky {
  width: 11%;
  left: 79.5%;
  top: 11.5%;

  --float-duration: 3.4s;
}

.town-character-whisky .char-bubble {
  top: -40%;
  left: 50%;
}


/* 焼酎 */
.town-character-shochu {
  width: 12%;
  left: 68%;
  top: 21%;

  --float-duration: 3.0s;
}

.town-character-shochu .char-bubble {
  top: -40%;
  left: 50%;
}


/* ウォッカ */
.town-character-vodka {
  width: 11.5%;
  left: 58%;
  top: 15%;

  --float-duration: 3.6s;
}

.town-character-vodka .char-bubble {
  top: -40%;
  left: 50%;
}


/* テキーラ */
.town-character-tequila {
  width: 11%;
  left: 66.5%;
  top: 6.5%;

  --float-duration: 2.7s;
}

.town-character-tequila .char-bubble {
  top: -40%;
  left: 50%;
}


/* ジン */
.town-character-gin {
  width: 11%;
  left: 55.5%;
  top: 4.5%;

  --float-duration: 3.9s;
}

.town-character-gin .char-bubble {
  top: -40%;
  left: 50%;
}

/* ラム */
.town-character-rum {
  width: 12%;
  left: 60.5%;
  top: 49.5%;

  --float-duration: 3.2s;
}

.town-character-rum .char-bubble {
  top: -40%;
  left: 50%;
}


/* ブランデー */
.town-character-brandy {
  width: 12.5%;
  left: 75%;
  top: 50%;

  --float-duration: 3.6s;
}

.town-character-brandy .char-bubble {
  top: -40%;
  left: 50%;
}

/* ---------------------------------
   フキダシ共通
--------------------------------- */

.char-bubble {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 600;

  position: absolute;

  /* キャラごとに位置を変更できる */
  top: -20%;
  left: 50%;

  transform:
    translate(-50%, 4px) scale(0);

  transform-origin: center bottom;

  background: #fff;
  color: #333;

  padding: 5px 10px;

  border: 1px solid #aaa;
  border-radius: 14px;

  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.20);

  font-size: 14px;
  line-height: 1.2;

  /* 7文字程度なので1行固定 */
  white-space: nowrap;

  opacity: 0;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;

  pointer-events: none;

  z-index: 10;
}


/* フキダシのしっぽ */

.char-bubble::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -7px;

  transform: translateX(-50%);

  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #fff;
}


/* フキダシ表示中 */

.char-bubble.show {
  opacity: 1;

  transform:
    translate(-50%, 0) scale(1);
}


/* ---------------------------------
   ビールちゃんのフキダシ位置
--------------------------------- */

.town-character-beer .char-bubble {
  top: -20%;
  left: 50%;
}

/* ---------------------------------
   エリアクリック領域
--------------------------------- */

.town-area {
  position: absolute;

  width: 50%;
  height: 33.3333%;

  padding: 0;
  margin: 0;

  border: none;
  background: transparent;

  cursor: pointer;

  z-index: 5;
}

/* 左上：まろみタウン */
.town-area-maromi {
  left: 0;
  top: 0;
}

/* 右上：天使坂 */
.town-area-tenshi {
  right: 0;
  top: 0;
}

/* 左中：ほろよい通り */
.town-area-horoyoi {
  left: 0;
  top: 33.3333%;
}

/* 右中：カンパイ広場 */
.town-area-kanpai {
  right: 0;
  top: 33.3333%;
}

/* 左下：さかもりの森 */
.town-area-forest {
  left: 0;
  bottom: 0;
}

/* 右下：さかずき商店街 */
.town-area-shopping {
  right: 0;
  bottom: 0;
}


/* ---------------------------------
   リンクパネル
--------------------------------- */

.town-link-panel {
  position: absolute;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  width: min(88%, 700px);

  padding: 28px;

  background: rgba(255, 250, 238, 0.96);

  border: 4px solid #6f4828;
  border-radius: 14px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

  z-index: 20;

  display: none;
}

.town-link-panel.is-open {
  display: block;
}

.town-link-panel h2 {
  margin: 0 0 20px;

  text-align: center;

  color: #6d4c2f;

  font-size: 1.6rem;
}

.town-area-description {
  margin: -10px 0 20px;

  text-align: center;

  color: #6d5a48;

  font-size: 1.2rem;
  line-height: 1.5;
}

/* ---------------------------------
   リンクカード
--------------------------------- */

.town-link-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;
}

.town-link-grid a {
  display: block;

  transition: transform 0.2s ease;
}

.town-link-grid a:hover {
  transform: scale(1.03);
}

.town-link-grid img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 6px;
}

.town-link-grid-sns {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.town-link-grid-sns a {
  display: flex;
  align-items: center;
  justify-content: center;

  aspect-ratio: 1 / 1;

  padding: 10px;

  background: #fff;
  border-radius: 10px;

  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* 酔う菓子乱舞：横長リンク */
.town-link-grid-sns .town-link-wide {
  grid-column: 1 / -1;
  width: 80%;
  max-width: 100%;
  min-width: 0;
  justify-self: center;
  aspect-ratio: 1200 / 630;
  padding: 0;
}

.town-link-grid-sns .town-link-wide img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* ---------------------------------
   1リンク用
--------------------------------- */

.town-link-single {
  display: flex;
  justify-content: center;
}

.town-link-single a {
  display: block;
  width: 70%;
  max-width: 480px;

  transition: transform 0.2s ease;
}

.town-link-single a:hover {
  transform: scale(1.03);
}

.town-link-single img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---------------------------------
   閉じるボタン
--------------------------------- */

.town-link-close {
  position: absolute;

  top: 8px;
  right: 10px;

  width: 36px;
  height: 36px;

  border: none;
  background: transparent;

  color: #6d4c2f;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;
}


/* =====================================================
   PC
   サイト全体の表示幅を制限
===================================================== */

@media (min-width: 1025px) {

  body {
    max-width: 768px;
    margin: 0 auto;
    background-color: #d8c6a5;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../img/top/bg_margin.webp");
    background-repeat: repeat;
    background-position: center top;
    z-index: -1;
    pointer-events: none;
  }

}


/* =====================================================
   タブレット
===================================================== */

@media (max-width: 1024px) {}


/* =====================================================
   スマートフォン
===================================================== */
@media (max-width:768px) {

  #opening {
    background-size: 100% auto;
  }

  #plaza .section-content {

    align-items: flex-start;
    padding-top: 0%;

  }

  .about-box {

    width: 80%;
    max-width: 340px;

    padding: 14px 18px;

  }

  .about-box h2 {

    font-size: 1.4rem;
    margin-bottom: 8px;

  }

  .about-box p {

    font-size: 0.9rem;
    line-height: 1.6;

  }

  .sp {
    display: inline;
  }

  #town-arrival {
    width: 100%;
    background: #fff;

    padding: 10px 16px 45px;

    text-align: center;
  }

  .town-arrival-message p {
    font-size: 1.15rem;
  }

  .town-arrival-guide {
    margin-top: 6px !important;
    font-size: 0.83rem !important;
  }

  #town {
    padding: 32px 0.5%;
  }

  .town-map-frame {
    padding: 2px;
    border-width: 2px;
    border-radius: 6px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .town-map-inner {
    border-width: 2px;
  }

  .town-map-title {
    top: -30px;

    padding: 4px 16px;

    border-width: 2px;
    border-radius: 5px;

    font-size: 0.95rem;
  }

  /* さかずき町リンクパネル */

  .town-link-panel {
    width: 92%;
    padding: 20px 14px;
  }

  .town-link-panel h2 {
    margin-bottom: 12px;
    font-size: 1.15rem;
  }

  .town-area-description {
    margin: -6px 0 12px;

    font-size: 0.82rem;
    line-height: 1.45;
  }

  .town-link-grid {
    gap: 8px;
  }

  .town-link-grid-sns {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .town-link-grid-sns a {
    padding: 6px;
    border-radius: 8px;
  }

  .town-link-close {
    top: 3px;
    right: 5px;
  }

  .town-link-single a {
    width: 88%;
  }

  /* ---------------------------------
 MAPキャラクター：スマホ用フキダシ
--------------------------------- */

  .town-character .char-bubble {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 10px;

    top: -45%;
    left: 50%;
  }

  .char-bubble::after {
    bottom: -5px;

    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 6px;
  }

}

/* =========================================
   オープニング終了
========================================= */

#opening.opening-finished {
  display: none;
}

/* =========================================
   フッター
========================================= */

#site-footer {
  width: 100%;

  padding: 22px 20px 28px;

  background: #d8c29a;

  text-align: center;

  color: #6d4c2f;

  font-family: "Zen Maru Gothic", sans-serif;

  font-size: 0.75rem;

  letter-spacing: 0.06em;

  position: relative;

}

#site-footer p {
  margin: 0;
}

.footer-policy-link {
  position: absolute;
  right: 20px;
  bottom: 10px;
  color: rgba(109, 76, 47, 0.85);
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.footer-policy-link:hover {
  text-decoration: underline;
}