@charset "UTF-8";
/* ==========================================================
   岡山天満屋 第55回 北海道の物産と観光展 LP
   デザイン幅 430px（スマホ）基準。PCでは中央に表示。
   サイズ指定の cqw = LP幅に対する % （100cqw = LP幅）
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f3efe9;
  color: #231815;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; }

.lp {
  container-type: inline-size;
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}

/* スクリーンリーダー・検索エンジン向けの見出し（画面には表示しない） */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* デザインから書き出したパーツ画像 */
.slice { display: block; width: 100%; height: auto; }
/* 画像のつなぎ目に細い隙間(seam)が出ないよう 1px 重ねる */
.sec > * + *, main > * + *, header + main, main + footer { margin-top: -1px; }

/* パーツ画像の上に重ねるリンク（位置は index.html 側で % 指定） */
.linkmap { position: relative; }
.linkmap a {
  position: absolute;
  display: block;
  border-radius: 100px;
  -webkit-tap-highlight-color: rgba(255, 255, 255, .25);
}
.linkmap a:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* アンカーリンクで飛んだときの位置 */
[id] { scroll-margin-top: 0; }

/* ----------------------------------------------------------
   セクション（枠）
   --outer : 外枠の色 / --inner : 内側パネルの色
   ---------------------------------------------------------- */
.sec { --outer: #eb6da5; --inner: #fffbdb; }
.sec--pink    { --outer: #eb6da5; --inner: #fffbdb; }
.sec--lpink   { --outer: #f8d3e3; --inner: #ffffff; }
.sec--green   { --outer: #b2e2ca; --inner: #ffffff; }
.sec--azuki   { --outer: #e6cbc7; --inner: #ffffff; }
.sec--blue    { --outer: #daeffb; --inner: #ffffff; }

.panel {
  background: var(--outer);
  padding: 0 2.85cqw;          /* 外枠の太さ（24.5 / 860） */
}

/* ----------------------------------------------------------
   商品ギャラリー（images/フォルダの画像を2列で表示）
   ---------------------------------------------------------- */
.gallery {
  background: var(--inner);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4.07cqw;         /* 35 / 860 */
  row-gap: 4.2cqw;
  padding: 0 5.17cqw 0 4.59cqw; /* デザイン上の商品画像の位置に合わせた余白 */
  align-items: start;
}
.gallery .cell { margin: 0; }
.gallery .cell img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.gallery .empty-note {
  grid-column: 1 / -1;
  padding: 24px 0;
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* ----------------------------------------------------------
   注意書き
   ---------------------------------------------------------- */
.notes {
  padding: 5.5cqw 6.5cqw 6cqw;
  font-size: 11px;
  line-height: 1.75;
  color: #231815;
  background: #fff;
}
.notes p { margin: 0 0 .15em; }
.notes .legal { margin-top: .8em; }

/* ----------------------------------------------------------
   拡大表示（モーダル）
   ---------------------------------------------------------- */
.modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .78);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal img {
  background: #fff;             /* 透過画像でも背景が透けないように */
  max-width: min(100%, 520px);
  max-height: 86vh;
  width: auto; height: auto;
  cursor: zoom-out;
}
.modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #333; font-size: 26px; line-height: 44px;
  cursor: pointer;
}

/* ----------------------------------------------------------
   追従「TOP」ボタン
   ---------------------------------------------------------- */
.to-top {
  position: fixed;
  right: max(12px, calc(50% - 215px + 12px));
  bottom: 16px;
  z-index: 900;
  width: 52px; height: 52px;
  border: 0; border-radius: 50%;
  background: rgba(238, 120, 70, .92);
  color: #fff;
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: .04em;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.to-top::before {
  content: "";
  width: 12px; height: 12px;
  border-top: 3px solid #fff; border-left: 3px solid #fff;
  transform: translateY(3px) rotate(45deg);
}
.to-top.visible { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal, .to-top { transition: none; }
}
