:root {
  --bg: #f7f2e8;
  --surface: #fffdf8;
  --surface-2: #efe7d9;
  --text: #3f3a35;
  --muted: #756f68;
  --accent: #9b7b68;
  --accent-dark: #715848;
  --sage: #8c9a89;
  --border: #dfd4c5;
  --shadow: 0 18px 45px rgba(76, 62, 50, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-h: 66px;
  --mobile-content: 430px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

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

button,
input,
textarea,
select {
  font: inherit;
}

/* PCでも中央にスマホ幅で表示 */
.container,
.header-inner {
  width: min(calc(100% - 28px), var(--mobile-content));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 212, 197, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
  font-size: .92rem;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent-dark);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* 常にスマホ用ナビ */
.desktop-nav {
  display: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
  flex: 0 0 auto;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 50%;
  width: min(100%, var(--mobile-content));
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(49, 43, 38, .28);
}

.mobile-menu-panel {
  margin-left: auto;
  width: min(88%, 360px);
  height: 100%;
  background: var(--surface);
  padding: 24px;
  box-shadow: -18px 0 40px rgba(0,0,0,.12);
}

.mobile-menu nav {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  display: block;
  text-decoration: none;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 700;
}

.mobile-menu.is-open {
  display: block;
}

main:not(.home-main) {
  padding-top: calc(var(--header-h) + 54px);
}

.page-hero {
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-title,
.hero-title,
.section-title {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  letter-spacing: .03em;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 10vw, 3.2rem);
  line-height: 1.25;
}

.page-lead {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.section {
  padding: 28px 0 58px;
}

.section + .section {
  border-top: 1px solid rgba(223, 212, 197, .75);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 8vw, 2.5rem);
}

.section-note {
  color: var(--muted);
  font-size: .95rem;
}

/* HOME */
.hero {
  width: min(100%, var(--mobile-content));
  aspect-ratio: 5 / 8.5;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.8s ease, transform 7s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,22,19,.20),
    rgba(26,22,19,.38)
  );
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide:nth-child(1) {
  background-image:
    linear-gradient(rgba(54,44,36,.28), rgba(54,44,36,.28)),
    url('../images/hero/hero-01.jpg');
}

.hero-slide:nth-child(2) {
  background-image:
    linear-gradient(rgba(54,44,36,.28), rgba(54,44,36,.28)),
    url('../images/hero/hero-02.jpg');
}

.hero-slide:nth-child(3) {
  background-image:
    linear-gradient(rgba(54,44,36,.28), rgba(54,44,36,.28)),
    url('../images/hero/hero-03.jpg');
}

.hero-slide:nth-child(4) {
  background-image:
    linear-gradient(rgba(54,44,36,.28), rgba(54,44,36,.28)),
    url('../images/hero/hero-04.jpg');
}

.hero-slide:nth-child(5) {
  background-image:
    linear-gradient(rgba(54,44,36,.28), rgba(54,44,36,.28)),
    url('../images/hero/hero-05.jpg');
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 28px), var(--mobile-content));
  color: white;
  text-align: center;
  padding-top: var(--header-h);
}

.hero-kicker {
  letter-spacing: .22em;
  font-size: .82rem;
  font-weight: 800;
}

.hero-title {
  margin: 18px auto 12px;
  max-width: 900px;
  font-size: clamp(2.1rem, 11vw, 4rem);
  line-height: 1.2;
  text-shadow: 0 5px 30px rgba(0,0,0,.22);
}

.hero-date {
  font-size: clamp(1rem, 5vw, 1.25rem);
  letter-spacing: .08em;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  z-index: 3;
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  letter-spacing: .15em;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.hero-scroll-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.home-links {
  padding: 76px 0 96px;
}

.nav-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.nav-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 12px 28px rgba(76,62,50,.06);
}

.nav-card:hover,
.nav-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  outline: none;
}

.nav-card small {
  color: var(--accent-dark);
  font-weight: 800;
}

.nav-card h2 {
  margin: 8px 0 6px;
  font-size: 1.25rem;
}

.nav-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

/* 旅のしおり */
.timeline-days {
  display: grid;
  gap: 56px;
}

.day-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px,4vw,44px);
  padding-right: 12px;
}

.day-title {
  margin: 0 0 32px;
  font-size: 1.6rem;
}

.timeline {
  position: relative;
  margin-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 30px 8px minmax(0, 1fr);
  gap: 0 8px;
  position: relative;
  padding-bottom: 34px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-time {
  font-weight: 800;
  color: var(--accent-dark);
  padding-top: 1px;
  font-size: .9rem;
  transform: translateX(-12px);
}

.timeline-dot-wrap {
  display: flex;
  justify-content: center;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 6px var(--surface);
  z-index: 2;
}

.timeline-card {
  min-width: 0;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 14px;
}

.timeline-card h3 {
  margin: 0 0 6px;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: .9rem;
  margin: 10px 0 0;
}

.timeline-photo {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.photo-placeholder {
  min-height: 180px;
  margin-top: 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #d8cab9, #ebe2d7);
  display: grid;
  place-items: center;
  color: #76695f;
  text-align: center;
  padding: 18px;
}

.timeline-photo img,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* 観光地 */
.place-list {
  display: grid;
  gap: 28px;
}

.place-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(76,62,50,.06);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.media-frame {
  min-height: 230px;
  background: linear-gradient(135deg,#c8b9a8,#e7ded3);
  display: grid;
  place-items: center;
  color: #73675d;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.place-body {
  padding: clamp(24px,4vw,40px);
}

.place-body h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.info-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.info-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  font-size: .95rem;
}

.info-row dt {
  font-weight: 800;
  color: var(--accent-dark);
}

.info-row dd {
  margin: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  flex: 1 1 100%;
}

.btn.secondary {
  background: transparent;
  color: var(--accent-dark);
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(.96);
  outline: 3px solid rgba(155,123,104,.18);
}

/* 宿泊施設 */
.hotel-stack {
  display: grid;
  gap: 44px;
}

.hotel-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px,4vw,42px);
}

.hotel-section h2 {
  margin-top: 0;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  margin-top: 20px;
}

.photo-strip .photo-placeholder {
  min-height: 140px;
  margin-top: 0;
}

.photo-strip .photo-placeholder:last-child {
  grid-column: 1 / -1;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 18px;
}

.feature-card strong {
  display: block;
  margin-bottom: 6px;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  margin-top: 20px;
}

.amenity {
  min-height: 110px;
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 14px;
}

.amenity-icon {
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
}

/* 持ち物 */
.list-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.list-card h2 {
  margin-top: 0;
}

.simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.simple-list li {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

/* 参加メンバー */
.members-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.member-card h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.member-card p {
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   思い出写真
========================================================= */


/* ---------------------------------------------------------
   写真が0枚のとき
--------------------------------------------------------- */

.gallery-empty {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(46px, 8vw, 96px) 24px;
}

.gallery-empty .icon {
  font-size: 2.4rem;
}


/* ---------------------------------------------------------
   写真追加エリア
--------------------------------------------------------- */

.gallery-upload {
  padding: 24px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  box-shadow:
    0 12px 28px
    rgba(76, 62, 50, .05);
}

.gallery-upload .section-title {
  font-size: 1.6rem;
}

.gallery-upload > p {
  margin: 8px 0 18px;
  color: var(--muted);
}


/* ---------------------------------------------------------
   写真追加 / 削除ボタン
--------------------------------------------------------- */

.gallery-actions {
  display: grid;

  grid-template-columns: 1fr;

  gap: 10px;

  margin-top: 18px;
}

.gallery-actions .btn {
  width: 100%;
  min-height: 50px;

  cursor: pointer;
}

.gallery-actions .btn:disabled {
  cursor: not-allowed;

  opacity: .45;

  filter: grayscale(.2);
}


/* ---------------------------------------------------------
   アップロード / 読み込み状態
--------------------------------------------------------- */

.gallery-status {
  margin: 16px 0;

  color: var(--muted);

  font-size: .92rem;
}

.gallery-status.is-error {
  color: #a03f36;
}

.gallery-upload .gallery-status {
  margin-bottom: 0;
}


/* =========================================================
   ギャラリー本体
========================================================= */

.gallery-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 0;

  width: 100%;

  margin-top: 34px;

  overflow: hidden;

  border-radius: 14px;

  background: var(--surface);
}


/* ---------------------------------------------------------
   写真1枚分
--------------------------------------------------------- */

.gallery-item {
  position: relative;

  width: 100%;

  aspect-ratio: 1 / 1;

  margin: 0;

  overflow: hidden;

  background: #ddd;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}


/* ---------------------------------------------------------
   正方形の中に写真を敷き詰める
--------------------------------------------------------- */

.gallery-item img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 0;

  background: #ddd;

  user-select: none;

  -webkit-user-select: none;
  -webkit-user-drag: none;

  transition:
    opacity .18s ease,
    transform .2s ease;
}


/* タップしたときの軽い反応 */
.gallery-item:active {
  transform: scale(.985);
}


/* =========================================================
   削除モード
========================================================= */

.gallery-grid.is-delete-mode .gallery-item {
  cursor: pointer;

  touch-action: manipulation;
}


/* ---------------------------------------------------------
   削除モード中の案内
--------------------------------------------------------- */

.gallery-delete-mode-bar {
  margin-top: 20px;

  padding: 18px;

  display: grid;

  gap: 14px;

  background: var(--surface-2);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  box-shadow:
    0 10px 24px
    rgba(76, 62, 50, .05);
}

.gallery-delete-mode-copy strong {
  display: block;

  margin-bottom: 2px;

  color: var(--accent-dark);

  font-size: 1rem;
}

.gallery-delete-mode-copy p {
  margin: 0;

  color: var(--muted);

  font-size: .9rem;
}

.gallery-delete-mode-bar .btn {
  width: 100%;

  min-height: 46px;
}


/* =========================================================
   削除対象として選択した写真
========================================================= */

.gallery-item.is-selected {
  z-index: 2;

  box-shadow:
    inset 0 0 0 4px
    var(--accent-dark);
}

.gallery-item.is-selected img {
  opacity: .52;
}


/* ---------------------------------------------------------
   選択チェック
--------------------------------------------------------- */

.gallery-select-check {
  position: absolute;

  top: 10px;
  right: 10px;

  width: 34px;
  height: 34px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background: var(--accent-dark);

  color: #fff;

  font-size: 1rem;
  font-weight: 900;
  line-height: 1;

  box-shadow:
    0 5px 16px
    rgba(49, 43, 38, .28);

  opacity: 0;

  transform: scale(.8);

  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .18s ease;
}

.gallery-item.is-selected .gallery-select-check {
  opacity: 1;

  transform: scale(1);
}


/* =========================================================
   「この写真を削除」ボタン
========================================================= */

.gallery-delete-action {
  position: sticky;

  bottom: 14px;

  z-index: 30;

  margin-top: 18px;

  padding: 10px;

  background:
    rgba(255, 253, 248, .94);

  -webkit-backdrop-filter:
    blur(12px);

  backdrop-filter:
    blur(12px);

  border:
    1px solid
    var(--border);

  border-radius: 999px;

  box-shadow:
    0 12px 32px
    rgba(76, 62, 50, .16);
}

.gallery-delete-button {
  width: 100%;

  min-height: 48px;

  padding: 11px 18px;

  border: 0;

  border-radius: 999px;

  background: #a85b52;

  color: #fff;

  font-weight: 800;

  cursor: pointer;
}

.gallery-delete-button:hover,
.gallery-delete-button:focus-visible {
  filter: brightness(.96);

  outline:
    3px solid
    rgba(168, 91, 82, .18);

  outline-offset: 2px;
}

.gallery-delete-button:disabled {
  cursor: not-allowed;

  opacity: .45;
}


/* =========================================================
   写真拡大ビューア
========================================================= */

.gallery-viewer {
  position: fixed;

  inset: 0;

  z-index: 4000;

  display: grid;

  place-items: center;

  padding:
    max(20px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
}


/* hidden時は完全非表示 */
.gallery-viewer[hidden] {
  display: none;
}


/* ---------------------------------------------------------
   拡大ビューア背景
--------------------------------------------------------- */

.gallery-viewer-overlay {
  position: absolute;

  inset: 0;

  background:
    rgba(20, 18, 16, .94);
}


/* ---------------------------------------------------------
   拡大写真領域
--------------------------------------------------------- */

.gallery-viewer-content {
  position: relative;

  z-index: 1;

  width: 100%;
  height: 100%;

  display: grid;

  place-items: center;

  pointer-events: none;
}


/* ---------------------------------------------------------
   拡大写真

   一覧では cover で正方形トリミングするが、
   ここでは contain にして写真全体を表示する。
--------------------------------------------------------- */

.gallery-viewer-content img {
  display: block;

  max-width: 100%;

  max-height:
    calc(100vh - 40px);

  max-height:
    calc(100dvh - 40px);

  width: auto;
  height: auto;

  object-fit: contain;

  user-select: none;

  -webkit-user-select: none;
  -webkit-user-drag: none;

  pointer-events: auto;
}


/* ---------------------------------------------------------
   拡大ビューアを閉じるボタン
--------------------------------------------------------- */

.gallery-viewer-close {
  position: absolute;

  top:
    max(
      16px,
      env(safe-area-inset-top)
    );

  right:
    max(
      16px,
      env(safe-area-inset-right)
    );

  z-index: 3;

  width: 46px;
  height: 46px;

  display: grid;

  place-items: center;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, .92);

  color: #3f3a35;

  font-size: 2rem;

  font-weight: 400;

  line-height: 1;

  cursor: pointer;

  box-shadow:
    0 5px 20px
    rgba(0, 0, 0, .18);
}

.gallery-viewer-close:hover,
.gallery-viewer-close:focus-visible {
  outline:
    3px solid
    rgba(255, 255, 255, .28);

  outline-offset: 3px;
}


/* ---------------------------------------------------------
   写真拡大中は背景をスクロールさせない
--------------------------------------------------------- */

body.gallery-viewer-open {
  overflow: hidden;
}


/* =========================================================
   削除確認モーダル
========================================================= */

.gallery-modal {
  position: fixed;

  inset: 0;

  z-index: 5000;

  display: grid;

  place-items: center;

  padding: 22px;
}


/* hidden時は完全非表示 */
.gallery-modal[hidden] {
  display: none;
}


/* ---------------------------------------------------------
   削除モーダル背景
--------------------------------------------------------- */

.gallery-modal-overlay {
  position: absolute;

  inset: 0;

  background:
    rgba(49, 43, 38, .48);

  -webkit-backdrop-filter:
    blur(4px);

  backdrop-filter:
    blur(4px);
}


/* ---------------------------------------------------------
   削除モーダル本体
--------------------------------------------------------- */

.gallery-modal-card {
  position: relative;

  z-index: 1;

  width:
    min(100%, 360px);

  padding: 26px;

  background:
    var(--surface);

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-lg);

  box-shadow:
    0 24px 70px
    rgba(49, 43, 38, .26);

  text-align: center;
}

.gallery-modal-card .section-title {
  margin-bottom: 10px;

  font-size: 1.45rem;

  line-height: 1.5;
}

.gallery-modal-card p {
  margin: 0;

  color: var(--muted);

  font-size: .92rem;
}


/* ---------------------------------------------------------
   削除モーダル操作
--------------------------------------------------------- */

.gallery-modal-actions {
  display: grid;

  grid-template-columns: 1fr;

  gap: 10px;

  margin-top: 24px;
}

.gallery-modal-actions .btn,
.gallery-delete-confirm-button {
  width: 100%;

  min-height: 48px;
}


/* 削除確定ボタン */
.gallery-delete-confirm-button {
  padding: 11px 18px;

  border: 0;

  border-radius: 999px;

  background: #a85b52;

  color: #fff;

  font-weight: 800;

  cursor: pointer;
}

.gallery-delete-confirm-button:hover,
.gallery-delete-confirm-button:focus-visible {
  filter: brightness(.96);

  outline:
    3px solid
    rgba(168, 91, 82, .18);

  outline-offset: 2px;
}


/* 処理中 */
.gallery-delete-confirm-button:disabled,
.gallery-modal-actions .btn:disabled {
  cursor: not-allowed;

  opacity: .45;
}


/* ---------------------------------------------------------
   削除モーダル表示中はスクロール停止
--------------------------------------------------------- */

body.gallery-modal-open {
  overflow: hidden;
}


/* =========================================================
   hidden制御
========================================================= */

.gallery-grid[hidden],
.gallery-empty[hidden],
.gallery-delete-mode-bar[hidden],
.gallery-delete-action[hidden] {
  display: none;
}


/* =========================================================
   少し広い画面
========================================================= */

@media (min-width: 540px) {

  .gallery-actions {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }


  .gallery-delete-mode-bar {
    grid-template-columns:
      1fr auto;

    align-items: center;
  }


  .gallery-delete-mode-bar .btn {
    width: auto;
  }


  .gallery-modal-actions {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}


/* =========================================================
   モーション軽減
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .gallery-item,
  .gallery-item img,
  .gallery-select-check {
    transition: none;
  }
}

/* Footer */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 38px 0 44px;
  background: var(--surface);
  text-align: center;
}

.footer-title {
  font-weight: 900;
  letter-spacing: .12em;
}

.footer-date {
  color: var(--muted);
  margin-top: 4px;
}

.footer-home {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-dark);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

.trip-map-section {
  margin-top: 48px;
  padding-inline: 14px;
}

.trip-map-section h2 {
  margin-bottom: 8px;
}

.trip-map-section p {
  margin-bottom: 20px;
}

.trip-map {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

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

@media (max-width: 768px) {
  .trip-map iframe {
    height: 400px;
  }
}

.quiz-page-hero {
  margin-bottom: 28px;
}

.quiz-top,
.quiz-playing,
.quiz-result {
  padding-bottom: 20px;
}

.quiz-select-grid,
.quiz-question-list {
  display: grid;
  gap: 18px;
}

.quiz-select-card,
.quiz-question-card,
.quiz-score-card,
.quiz-lock,
.quiz-achievement {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(76, 62, 50, .06);
}

.quiz-select-card {
  padding: 24px;
}

.quiz-select-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.quiz-select-card-head span,
.quiz-best-score,
.quiz-playing-head p,
.quiz-lock-note {
  color: var(--muted);
  font-size: .92rem;
}

.quiz-select-card-record {
  display: grid;
  gap: 2px;
  margin: 18px 0;
}

.quiz-card-status {
  font-weight: 800;
  color: var(--accent-dark);
}

.quiz-card-status.is-passed {
  color: #65745f;
}

.quiz-card-status.is-perfect {
  color: #8a6a3f;
}

.quiz-start-button,
.quiz-submit-button,
.quiz-result-actions .btn,
.quiz-detail-link {
  width: 100%;
}

button.btn {
  cursor: pointer;
}

button.btn:disabled {
  cursor: not-allowed;
  opacity: .45;
  filter: grayscale(.25);
  box-shadow: none;
}

.quiz-achievement {
  margin-bottom: 22px;
  padding: 20px;
  text-align: center;
  background:
    linear-gradient(
      135deg,
      var(--surface),
      #f2eadb
    );
}

.quiz-achievement strong,
.quiz-achievement span {
  display: block;
}

.quiz-achievement strong {
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Noto Serif JP",
    serif;

  font-size: 1.35rem;
  color: var(--accent-dark);
}

.quiz-achievement span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .9rem;
}

.quiz-achievement.is-perfect {
  position: relative;
  overflow: hidden;
}

.quiz-achievement.is-perfect::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -35%;
  width: 28%;
  transform: rotate(18deg);
  background:
    rgba(
      255,
      255,
      255,
      .48
    );

  animation:
    quiz-shine
    3.2s
    ease-in-out
    infinite;
}

@keyframes quiz-shine {
  0%,
  55% {
    left: -35%;
  }

  100% {
    left: 120%;
  }
}

.quiz-playing-head {
  margin-bottom: 26px;
}

.quiz-playing-head .section-title {
  margin-bottom: 8px;
}

.quiz-playing-head p {
  margin: 0;
}

.quiz-text-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiz-text-button:focus-visible {
  outline:
    3px solid
    rgba(155, 123, 104, .22);

  outline-offset: 5px;
  border-radius: 4px;
}

.quiz-question-card {
  padding: 22px;
}

.quiz-question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 46px;
  min-height: 32px;

  margin-bottom: 12px;

  border-radius: 999px;

  background:
    var(--surface-2);

  color:
    var(--accent-dark);

  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.quiz-question-text {
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.quiz-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.quiz-choice {
  position: relative;

  display: grid;

  grid-template-columns:
    24px
    minmax(0, 1fr);

  align-items: center;

  gap: 10px;

  width: 100%;
  min-height: 56px;

  padding:
    13px
    14px;

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-sm);

  background:
    var(--bg);

  color:
    var(--text);

  text-align: left;
  cursor: pointer;

  transition:
    border-color .18s ease,
    background .18s ease,
    transform .18s ease;
}

.quiz-choice:hover:not(:disabled),
.quiz-choice:focus-visible:not(:disabled) {
  border-color:
    var(--accent);

  outline:
    3px solid
    rgba(155, 123, 104, .16);

  outline-offset: 1px;
}

.quiz-choice-mark {
  width: 22px;
  height: 22px;

  border:
    2px solid
    #b9aa9b;

  border-radius: 50%;

  background:
    var(--surface);

  display: grid;
  place-items: center;

  font-size: .78rem;
  font-weight: 900;
}

.quiz-choice.is-selected {
  border-color:
    var(--accent-dark);

  background:
    #eee3d6;

  font-weight: 800;
}

.quiz-choice.is-selected
.quiz-choice-mark {
  border-color:
    var(--accent-dark);

  background:
    var(--accent-dark);

  color: #fff;
}

.quiz-choice.is-selected
.quiz-choice-mark::after {
  content: "✓";
}

.quiz-choice:disabled {
  cursor: default;
  opacity: 1;
}

.quiz-choice.is-correct-answer {
  border-color:
    #7f9379;

  background:
    #edf2e9;
}

.quiz-choice.is-wrong-answer {
  border-color:
    #b88c82;

  background:
    #f7ece8;
}

.quiz-choice-result-label {
  grid-column: 2;

  margin-top: -4px;

  color:
    var(--muted);

  font-size: .78rem;
  font-weight: 800;
}

.quiz-submit-wrap {
  position: sticky;
  bottom: 0;
  z-index: 20;

  margin-top: 24px;

  padding:
    16px
    0
    10px;

  background:
    linear-gradient(
      180deg,
      rgba(247, 242, 232, 0),
      var(--bg) 24%
    );
}

.quiz-answer-progress {
  margin:
    0
    0
    8px;

  text-align: center;

  color:
    var(--muted);

  font-size: .9rem;
  font-weight: 700;
}

.quiz-score-card {
  margin-bottom: 24px;

  padding:
    28px
    22px;

  text-align: center;
}

.quiz-score-card.is-passed {
  border-color:
    #aebda8;
}

.quiz-score-card.is-perfect {
  border-color:
    #c9ae78;

  background:
    linear-gradient(
      135deg,
      var(--surface),
      #f7eedb
    );
}

.quiz-score {
  margin:
    2px
    0
    4px;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Noto Serif JP",
    serif;

  font-size:
    clamp(
      3rem,
      14vw,
      4.8rem
    );

  font-weight: 800;
  line-height: 1.1;

  color:
    var(--accent-dark);
}

.quiz-score span {
  font-size: .34em;
  color: var(--muted);
}

.quiz-score-card h1 {
  margin:
    8px
    0
    4px;

  font-size: 1.55rem;
}

.quiz-score-card p {
  margin: 0;
  color: var(--muted);
}

.quiz-result-question.is-correct {
  border-color:
    #c9d4c4;
}

.quiz-result-question.is-wrong {
  border-color:
    #dec8c0;
}

.quiz-explanation {
  margin-top: 18px;
  padding-top: 18px;

  border-top:
    1px solid
    var(--border);
}

.quiz-explanation p {
  margin:
    8px
    0
    0;
}

.quiz-judge {
  display: inline-block;
  color: var(--accent-dark);
}

.quiz-detail-link {
  margin-top: 16px;
}

.quiz-result-actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.quiz-lock {
  margin-top: 24px;

  padding:
    52px
    24px;

  text-align: center;
}

.quiz-lock-icon {
  margin-bottom: 12px;
  font-size: 2.6rem;
  line-height: 1;
}

.quiz-lock-message {
  margin:
    18px
    0
    4px;

  font-weight: 800;
}

.quiz-open-date {
  margin: 0;

  color:
    var(--accent-dark);

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Noto Serif JP",
    serif;

  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.quiz-lock-note {
  margin:
    20px
    auto
    0;

  max-width: 300px;
}

/* 100点 PERFECT 演出 */

.quiz-perfect-celebration {
  display: flex;
  justify-content: center;
  margin: -6px 0 26px;
  overflow: hidden;
}

.quiz-perfect-cat {
  display: block;
  width: min(72%, 260px);
  height: auto;

  animation:
    quiz-perfect-cat-in
    .7s
    cubic-bezier(.2, .8, .2, 1)
    both;
}

@keyframes quiz-perfect-cat-in {
  0% {
    opacity: 0;
    transform:
      translateY(18px)
      scale(.88);
  }

  65% {
    opacity: 1;
    transform:
      translateY(-4px)
      scale(1.04);
  }

  100% {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-perfect-cat {
    animation: none;
  }
}