/* ===========================================
   渡瀬島 観光協会 — プロトタイプ CSS v3
   Design: 現代的地域観光ポータル風
   =========================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* TSUTAYA-Respect Typography */
  --font-base: 'Noto Sans JP', sans-serif;
  --font-badge: 'Muli', sans-serif;
  --font-input: Arial, sans-serif;

  /* TSUTAYA-Respect Color Palette -> Original Inaka Palette */
  --cream-base: #FBF8F1;       /* W6: 背景メイン */
  --bg-white: #FFFFFF;
  --surface-card-alt: #EFE7D8; /* W2: サブカラー — セクション背景 */
  --surface-light: #EEF6F4;    /* W7: 背景サブ — 交互背景 */
  
  --accent-brand: #5CB8B6;     /* W1: メインカラー */
  
  --border-gray: #D8D0C4;      /* W2系のボーダー */
  --mid-gray: #C0C0C0;
  --overlay: rgba(0, 0, 0, 0.5);
  
  --text-primary: #334248;     /* W4: テキスト通常 */
  --text-charcoal: #6B7D85;    /* W4の明るめ */
  --text-inverse: #FFFFFF;
  
  --tag-warm-gray: #2D6D72;    /* W5: テキスト見出し（タグ色に流用） */
  
  /* 旧変数の互換性マッピング */
  --color-primary: var(--accent-brand);
  --color-primary-dark: #469A98;
  --color-primary-light: #7CCAC8;
  --color-secondary: #2D6D72;
  --color-accent: #E0A86E;
  --color-accent-hover: #C89358;
  --color-text: var(--text-primary);
  --color-text-light: var(--text-charcoal);
  --color-bg: var(--cream-base);
  --color-bg-alt: var(--surface-card-alt);
  --color-bg-sub: var(--surface-light);
  --color-white: var(--bg-white);
  --color-border: var(--border-gray);
  --color-error: #C97A68;

  /* D: 深層・違和感・管理者系パレット */
  --color-deep-main: #B9E0E3;
  --color-deep-sub: #EDF7F8;
  --color-deep-glow: #E8FBFF;
  --color-deep-noise: #9CA5AE;
  --color-deep-text: #486168;
  --color-deep-error: #D596A8;
  --color-admin-bg: #1B1E26;
  --color-admin-text: #E3EDF4;

  --max-width: 1080px;
  --header-height: 64px;
}

html {
  scroll-behavior: smooth;
}

/* TSUTAYA-Respect overrides (Global) */
* {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body {
  font-family: var(--font-base);
  color: var(--text-primary);
  background: var(--cream-base);
  line-height: 1.2;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body:not(.is-loaded) .site-header {
  opacity: 0;
  transform: translateY(-8px);
}
body.is-loaded .site-header {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

body.text-large { font-size: 18px; }
body.text-small { font-size: 14px; }

a {
  color: var(--color-secondary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

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

/* --- Photo Main Style --- */
.photo-vintage {
  /* 本番素材反映 (#127): フィルターを抑え、写真を主役に */
  filter: saturate(0.95) contrast(1.02) brightness(0.98);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-vintage:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* --- Sub Header (電話番号帯) --- */
.sub-header {
  background: #3E5F3E;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-size: 12px;
  padding: 4px 0;
}
.sub-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sub-header-tel { letter-spacing: 0.02em; }
.sub-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sub-header-right a {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
}
.text-size-btns {
  display: flex;
  gap: 2px;
}
.text-size-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-heading);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.text-size-btn.active,
.text-size-btn:hover {
  background: rgba(255,255,255,0.35);
  color: white;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-gray);
  height: var(--header-height);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.logo-sub {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.03em;
}
.site-nav {
  display: flex;
  gap: 2px;
}
.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-primary);
  line-height: var(--header-height);
  padding: 0 12px;
  text-decoration: none;
  letter-spacing: normal; /* ナビのみ normal */
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active {
  text-decoration: underline;
  background: transparent;
  color: var(--text-primary);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: 0.3s;
}

/* --- Ticker (マーキー) --- */
.ticker-bar {
  background: #FFFDE7;
  border-bottom: 1px solid #FFF9C4;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 32px;
}
.ticker-label {
  background: var(--color-accent);
  color: white;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrap {
  overflow: hidden;
  flex: 1;
  position: relative;
  height: 100%;
}
.ticker-content {
  display: flex;
  gap: 80px;
  animation: ticker-scroll 30s linear infinite;
  position: absolute;
  top: 0;
  height: 100%;
  align-items: center;
  white-space: nowrap;
}
.ticker-content span {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text);
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-200%); }
}

/* --- Hero (Ken Burns) --- */
.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02) brightness(0.98);
  animation: ken-burns 20s ease-in-out infinite alternate;
}
@keyframes ken-burns {
  0%   { transform: scale(1)   translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(11, 28, 31, 0.36), transparent 34%),
    linear-gradient(90deg, rgba(17, 33, 36, 0.45), rgba(17, 33, 36, 0.12) 58%, rgba(17, 33, 36, 0.02));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.hero-kicker {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
  letter-spacing: 0.1em;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 12px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.04em;
}
.hero-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-indicator .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.3s;
}
.hero-indicator .dot.active {
  background: var(--color-white);
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-in-up 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll Animation --- */
.anim-target {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--motion-order, 0) * 45ms);
}
.anim-target.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Two Column (News + Sidebar) --- */
.main-content-area {
  padding: 52px 0 42px;
  background: var(--color-white);
}
.main-two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

/* --- Section Title --- */
.section-title {
  font-family: var(--font-base);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: 0.1em;
  position: relative;
}
.portal-heading {
  text-align: center;
  margin-bottom: 26px;
}
.portal-heading-left {
  text-align: left;
}
.portal-heading-left .section-title {
  text-align: left;
}
.portal-heading-left .section-title::after {
  margin-left: 0;
}
.portal-heading-en {
  color: var(--color-primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 6px;
}
.portal-heading .section-title {
  margin-bottom: 0;
}

/* --- Tourism Portal Tools --- */
.travel-tools {
  position: relative;
  z-index: 5;
  margin-top: -32px;
}
.travel-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(45, 109, 114, 0.08);
}
.travel-tool {
  min-height: 96px;
  padding: 18px 20px;
  color: var(--text-primary);
  text-align: left;
  text-decoration: none;
  background: var(--bg-white);
  border: none;
  border-left: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}
.travel-tool:first-child {
  border-left: none;
}
.travel-tool:hover {
  background: var(--surface-light);
  text-decoration: none;
  transform: translateY(-2px);
}
.travel-tool:focus-visible {
  outline: 2px solid var(--accent-brand);
  outline-offset: -4px;
}
.travel-tool-label {
  display: block;
  color: var(--color-primary-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.travel-tool strong,
.travel-tool span:last-child {
  display: block;
}
.travel-tool strong {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 4px;
}
.travel-tool span:last-child {
  color: var(--text-charcoal);
  font-size: 11px;
  line-height: 1.6;
}

/* --- Pickup --- */
.pickup-section {
  padding: 72px 0 54px;
  background: var(--cream-base);
}
.pickup-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 20px;
}
.pickup-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--text-inverse);
  text-decoration: none;
  background: #20373a;
  isolation: isolate;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(45, 109, 114, 0.08);
}
.pickup-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) brightness(0.82);
  transition: transform 0.9s ease;
}
.pickup-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.66));
}
.pickup-card:hover {
  text-decoration: none;
}
.pickup-card:hover img {
  transform: scale(1.055);
}
.pickup-card-large {
  min-height: 390px;
}
.pickup-tag {
  align-self: flex-start;
  margin: 0 24px 12px;
  padding: 5px 8px;
  background: rgba(92, 184, 182, 0.92);
  color: var(--text-inverse);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 3px;
}
.pickup-card strong {
  display: block;
  margin: 0 24px 8px;
  font-size: 22px;
  line-height: 1.45;
}
.pickup-card span:last-child {
  display: block;
  margin: 0 24px 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.75;
}

/* --- News Tabs --- */
.news-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.news-tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-charcoal);
  cursor: pointer;
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px 10px;
}
.news-tab.is-active {
  border-bottom-color: var(--accent-brand);
  color: var(--text-primary);
}
.news-item.is-hidden {
  display: none;
}
.section-title::after {
  content: '';
  display: block;
  width: 42px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.65s ease 0.15s;
}
.section-title.visible::after {
  transform: scaleX(1);
}

/* --- News --- */
.news-list { list-style: none; }
.news-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.news-item::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  opacity: 0.45;
  flex: 0 0 auto;
}
.news-date {
  font-family: var(--font-base);
  font-size: 10px;
  color: var(--text-charcoal);
  white-space: nowrap;
  min-width: 85px;
}
.news-badge {
  font-family: var(--font-badge);
  font-size: 11px;
  font-weight: 700;
  padding: 0 0 0 3px;
  line-height: 22px;
  background: var(--tag-warm-gray);
  color: var(--text-inverse);
  white-space: nowrap;
  letter-spacing: 0.18em;
}
.news-badge.new {
  background: var(--accent-brand);
}
.news-badge.event {
  background: #1565C0;
}
.news-badge.caution {
  background: #F9A825;
}
.news-link {
  font-size: 10px;
  color: var(--text-primary);
  text-decoration: underline;
}
.news-link:hover {
  text-decoration: none;
  opacity: 0.7;
}
.more-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-base);
  font-size: 10px;
  color: var(--text-primary);
  text-decoration: underline;
}
.more-link:hover {
  text-decoration: none;
  opacity: 0.7;
}

/* --- Sidebar Widgets --- */
.side-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(45, 109, 114, 0.06);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.side-widget:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 184, 182, 0.55);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 12px;
}

/* Weather */
.weather-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 8px;
}
.weather-icon { font-size: 40px; }
.weather-temp {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.weather-temp span {
  font-size: 16px;
  font-weight: 400;
}
.weather-desc {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 2px;
}
.weather-forecast {
  display: flex;
  border-top: 1px solid var(--color-border);
}
.forecast-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-text);
  gap: 2px;
}
.forecast-day + .forecast-day {
  border-left: 1px solid var(--color-border);
}
.forecast-day span:first-child {
  color: var(--color-text-light);
  font-size: 10px;
}
.forecast-day span:nth-child(2) {
  font-size: 20px;
}

/* Calendar */
.calendar-list {
  list-style: none;
  padding: 10px 12px;
}
.calendar-list li {
  font-family: var(--font-heading);
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--color-border);
  color: var(--color-text);
}
.calendar-list li:last-child { border-bottom: none; }

/* Counter (2010年代の定番) */
.counter-display {
  display: flex;
  justify-content: center;
  gap: 3px;
  padding: 12px;
}
.counter-digit {
  display: inline-flex;
  width: 24px;
  height: 32px;
  background: #222;
  color: #0F0;
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid #444;
  text-shadow: 0 0 4px rgba(0, 255, 0, 0.5);
}
.counter-note {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-text-light);
  padding: 0 12px 10px;
}

/* --- About --- */
.about-section {
  padding: 52px 0;
  background: var(--color-bg);
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.about-text p {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.9;
}
.about-image { text-align: center; }
.photo-caption {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* --- Button --- */
.btn-primary {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  padding: 0;
  border: none;
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
  margin-top: 8px;
}
.btn-primary:hover {
  text-decoration: none;
  opacity: 0.7;
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  padding: 0;
  border: none;
  font-family: var(--font-base);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
}
.btn-secondary:hover {
  text-decoration: none;
  opacity: 0.7;
}

/* --- Spots --- */
.spots-section {
  padding: 52px 0;
  background: var(--color-white);
}
.spots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.spot-card {
  background: var(--bg-white);
  border: none;
  overflow: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.spot-card:hover {
  transform: translateY(-4px);
}
.spot-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.spot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}
.spot-card:hover .spot-image img {
  transform: scale(1.045);
}
.spot-body {
  padding: 12px;
}
.spot-name {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 18px;
}
.spot-desc {
  font-size: 10px;
  color: var(--text-charcoal);
  margin-bottom: 8px;
  line-height: 1.5;
}
.spot-link {
  font-family: var(--font-base);
  font-size: 10px;
  color: var(--text-primary);
  font-weight: 300;
  text-decoration: underline;
}
.spot-link:hover {
  text-decoration: none;
  opacity: 0.7;
}

/* --- Enjoy Portal Categories --- */
.enjoy-portal-section {
  padding: 58px 0;
  background: var(--surface-light);
}
.enjoy-portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.enjoy-portal-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  color: var(--text-inverse);
  text-decoration: none;
  background: #21383a;
  isolation: isolate;
}
.enjoy-portal-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.8);
  transition: transform 0.75s ease;
}
.enjoy-portal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62));
}
.enjoy-portal-card:hover {
  text-decoration: none;
}
.enjoy-portal-card:hover img {
  transform: scale(1.055);
}
.enjoy-portal-card span {
  align-self: flex-start;
  margin: 0 18px 8px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
}
.enjoy-portal-card strong {
  margin: 0 18px 20px;
  font-size: 16px;
  line-height: 1.45;
}

/* --- Model Course Portal --- */
.model-course-section {
  padding: 58px 0;
  background: var(--bg-white);
}
.model-course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.model-course-card {
  display: grid;
  grid-template-rows: 190px auto auto auto;
  min-height: 360px;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--cream-base);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease;
}
.model-course-card:hover {
  border-color: rgba(92, 184, 182, 0.65);
  text-decoration: none;
  transform: translateY(-3px);
}
.model-course-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}
.model-course-card:hover img {
  transform: scale(1.04);
}
.course-time {
  align-self: start;
  justify-self: start;
  margin: 16px 18px 8px;
  padding: 4px 8px;
  background: var(--accent-brand);
  color: var(--text-inverse);
  font-size: 10px;
  font-weight: 700;
}
.model-course-card strong {
  margin: 0 18px 8px;
  font-size: 17px;
  line-height: 1.5;
}
.model-course-card p {
  margin: 0 18px 18px;
  color: var(--text-charcoal);
  font-size: 12px;
  line-height: 1.75;
}

/* --- Access Portal --- */
.access-portal-section {
  padding: 62px 0;
  background: var(--surface-light);
}
.access-portal {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 34px;
  align-items: center;
}
.access-portal .section-title {
  text-align: left;
  margin-bottom: 18px;
}
.access-portal .section-title::after {
  margin-left: 0;
}
.access-portal p {
  color: var(--text-charcoal);
  font-size: 14px;
  line-height: 1.9;
}
.access-portal img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --- Seasonal --- */
.seasonal-section {
  padding: 52px 0;
  background: var(--color-bg);
}
.seasonal-banner {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFF8E1 50%, #FFF3E0 100%);
  border: 2px solid #FFCC80;
  border-radius: 8px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}
.seasonal-banner::before {
  content: '🌸';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 80px;
  opacity: 0.15;
}
.seasonal-text h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.seasonal-period {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 10px;
}
.seasonal-text p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 10px;
}

/* --- Gallery --- */
.gallery-section {
  padding: 52px 0;
  background: var(--color-bg);
}
.gallery-intro {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: -16px;
  margin-bottom: 24px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item::after {
  content: '見る';
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.5);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  z-index: 201;
  transition: transform 0.2s;
}
.lightbox-close:hover { transform: scale(1.2); }
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.lightbox-caption {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-heading);
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
}

/* --- Diary --- */
.diary-section {
  padding: 52px 0;
  background: var(--color-white);
}
.diary-intro {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: -16px;
  margin-bottom: 24px;
}
.diary-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.diary-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 20px;
  background: var(--color-bg);
  border-radius: 6px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}
.diary-entry:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.diary-entry--old {
  opacity: 0.85;
}
.diary-thumb {
  overflow: hidden;
  border-radius: 4px;
  height: 120px;
}
.diary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.diary-date {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-text-light);
}
.diary-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 4px 0 8px;
}
.diary-excerpt {
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text);
}
.diary-more {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-secondary);
}

/* --- Seasonal (with image) --- */
.seasonal-banner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}
.seasonal-image {
  border-radius: 6px;
  overflow: hidden;
  height: 200px;
}
.seasonal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- SNS --- */
.sns-section {
  padding: 24px 0;
  background: var(--color-bg-alt);
}
.sns-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sns-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}
.sns-buttons {
  display: flex;
  gap: 8px;
}
.sns-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.sns-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  text-decoration: none;
}
.sns-x     { background: #000; color: #fff; }
.sns-line  { background: #06C755; color: #fff; }
.sns-fb    { background: #1877F2; color: #fff; }

/* --- Cookie Consent --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(51,51,51,0.97);
  color: rgba(255,255,255,0.9);
  z-index: 150;
  padding: 14px 24px;
  display: none;
}
.cookie-banner.active { display: block; }
.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-inner p {
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 1.5;
}
.cookie-accept {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.cookie-accept:hover {
  background: var(--color-primary-dark);
}

/* --- Footer extras --- */
.footer-updated {
  font-size: 10px;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.3);
}
/* --- Responsive --- */
@media (max-width: 768px) {
  :root { --header-height: 56px; }
  .sub-header { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 12px 24px; font-size: 14px; }
  .hamburger { display: flex; }
  .ticker-bar { height: 28px; }
  .ticker-label { font-size: 10px; padding: 0 8px; }
  .hero { min-height: 520px; }
  .hero-title { font-size: 20px; letter-spacing: 0.04em; }
  .hero-subtitle { font-size: 12px; }
  .travel-tools {
    margin-top: 0;
  }
  .travel-tools-grid,
  .pickup-grid,
  .enjoy-portal-grid,
  .model-course-grid,
  .access-portal {
    grid-template-columns: 1fr;
  }
  .travel-tool {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
  .travel-tool:first-child {
    border-top: none;
  }
  .pickup-card,
  .pickup-card-large {
    min-height: 280px;
  }
  .enjoy-portal-card {
    min-height: 220px;
  }
  .model-course-card {
    grid-template-rows: 180px auto auto auto;
    min-height: auto;
  }
  .portal-heading-left,
  .portal-heading-left .section-title {
    text-align: center;
  }
  .portal-heading-left .section-title::after,
  .access-portal .section-title::after {
    margin-left: auto;
  }
  .access-portal .section-title {
    text-align: center;
  }
  .main-two-col { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .spots-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .diary-entry { grid-template-columns: 1fr; }
  .diary-thumb { height: 160px; }
  .seasonal-banner { grid-template-columns: 1fr; }
  .seasonal-image { height: 180px; }
  .access-content { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .news-item { flex-wrap: wrap; gap: 3px 8px; }
  .logo-sub { display: none; }
  .logo-main { font-size: 16px; }
  .scroll-top-btn { bottom: 16px; right: 16px; width: 38px; height: 38px; font-size: 14px; }
  .cookie-inner { flex-direction: column; text-align: center; }
  .sns-bar { flex-direction: column; }

  /* 思い出グリッド 1列化 */
  .memories-grid { grid-template-columns: 1fr; }
  .memory-card { min-height: 140px; }

  /* ミニゲームカード */
  .enjoy-grid { grid-template-columns: 1fr; }
  .enjoy-card { padding: 20px 16px; }

  /* 検索モーダル */
  .search-modal-inner { padding: 20px; margin: 0 12px; }

  /* セクションタイトル */
  .section-title { font-size: 18px; margin-bottom: 20px; }

  /* ページタイトル */
  .page-title { font-size: 22px; }

  /* コースカード */
  .course-card { padding: 16px; }

  /* スポットカード画像比率調整 */
  .spot-image img { max-height: 200px; }

  /* ボタン幅調整 */
  .btn-primary { width: 100%; max-width: 320px; }
  .page-cta { text-align: center; }
}

.access-section {
  padding: 52px 0;
  background: var(--color-white);
}
.access-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.access-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--color-bg);
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
}
.access-card-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.access-info h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}
.access-info p {
  font-size: 13px;
  line-height: 1.6;
}
.access-note {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 8px;
  line-height: 1.7;
}
.map-placeholder {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-heading);
}
.map-placeholder p {
  font-size: 16px;
  color: var(--color-text-light);
}
.map-note {
  font-size: 12px !important;
  margin-top: 4px;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-gray);
  color: var(--text-primary);
  padding: 40px 0 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
.footer-inner h4 {
  font-family: var(--font-base);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-charcoal);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-name {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.footer-address {
  font-size: 12px;
  line-height: 1.7;
}
.footer-hours {
  font-size: 10px;
  margin-top: 6px;
  color: var(--text-charcoal);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-links a,
.footer-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-base);
  font-size: 10px;
  color: var(--text-primary);
  text-decoration: underline;
  text-align: left;
  cursor: pointer;
}
.footer-links a:hover,
.footer-link-button:hover {
  text-decoration: none;
  opacity: 0.7;
}
.footer-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fake-banner {
  background: var(--surface-light);
  border: 1px solid var(--border-gray);
  padding: 10px 14px;
  font-family: var(--font-base);
  font-size: 10px;
  text-align: center;
  color: var(--text-charcoal);
}
.fake-banner:hover {
  background: var(--surface-card-alt);
}
.fake-banner small {
  font-size: 10px;
  display: block;
  margin-top: 2px;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  margin-top: 28px;
  border-top: 1px solid var(--border-gray);
  text-align: center;
  font-size: 10px;
  color: var(--text-charcoal);
}
.footer-disclaimer {
  font-size: 8px;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.12);
}
/* 生成AIの1行（2026-10-27 Owner。© の下。「で」は取り消し線、「が」は薄い字） */
.footer-bottom .site-footer__ai {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--text-charcoal);
}
.footer-bottom .site-footer__ai s { text-decoration-thickness: 2px; }
.footer-bottom .site-footer__ai .ai-faint { opacity: 0.45; }
.footer-bottom .site-footer__fiction { margin: 4px 0 0; font-size: 10.5px; line-height: 1.8; color: var(--text-charcoal); }

/* --- Lv Badge (フッター) --- */
.lv-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 8px;
  letter-spacing: 0.03em;
  opacity: 0.6;
  transition: opacity 0.3s;
  vertical-align: middle;
}
.lv-badge:hover {
  opacity: 1;
}
.lv-badge--0 { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.3); }
.lv-badge--1 { background: rgba(76,175,80,0.15); color: rgba(76,175,80,0.7); }
.lv-badge--2 { background: rgba(33,150,243,0.15); color: rgba(33,150,243,0.7); }
.lv-badge--3 { background: rgba(255,152,0,0.15); color: rgba(255,152,0,0.7); }
.lv-badge--4 { background: rgba(233,30,99,0.15); color: rgba(233,30,99,0.7); }
.lv-badge--5 { background: rgba(0,255,0,0.15); color: rgba(0,255,0,0.8); text-shadow: 0 0 4px rgba(0,255,0,0.3); }

/* --- Lv Indicator (サイドバー) --- */
.lv-indicator {
  text-align: center;
  padding: 8px 12px 10px;
  border-top: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-heading);
  opacity: 0;
  animation: lv-appear 0.8s ease 0.5s forwards;
}
@keyframes lv-appear {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lv-indicator-label {
  font-size: 10px;
  color: var(--color-text-light);
}
.lv-indicator-value {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.lv-indicator-title {
  font-size: 10px;
  color: var(--color-text-light);
}
.lv-indicator--0 .lv-indicator-value { color: #999; }
.lv-indicator--1 .lv-indicator-value { color: var(--color-primary); }
.lv-indicator--2 .lv-indicator-value { color: var(--color-secondary); }
.lv-indicator--3 .lv-indicator-value { color: #E65100; }
.lv-indicator--4 .lv-indicator-value { color: #C2185B; }
.lv-indicator--5 .lv-indicator-value { color: #00C853; text-shadow: 0 0 6px rgba(0,200,83,0.3); }

/* --- Search Lv (検索モーダル) --- */
.search-lv {
  display: block;
  font-size: 10px;
  color: var(--color-text-light);
  margin-top: 6px;
  opacity: 0.7;
}

/* --- Lv Up Notice (トースト通知) --- */
.lv-up-notice {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.92);
  color: rgba(255,255,255,0.9);
  padding: 8px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  z-index: 180;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: lv-up-slide 0.4s ease;
  pointer-events: none;
}
@keyframes lv-up-slide {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.lv-up-fade {
  transition: opacity 0.6s ease;
  opacity: 0 !important;
}
.lv-up-icon {
  font-size: 10px;
  color: #4CAF50;
}
.lv-up-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.lv-up-text small {
  font-weight: 400;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  margin-left: 4px;
}

/* --- Scroll to Top --- */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 90;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top-btn:hover {
  transform: translateY(-2px);
  background: var(--color-primary-dark);
}

/* --- Search Toggle Button --- */
.search-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  letter-spacing: 0.06em;
  text-decoration: underline;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.search-toggle:hover {
  transform: translateY(-1px);
  color: var(--color-primary-dark);
}

/* --- Search Modal --- */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  backdrop-filter: blur(4px);
}
.search-modal.active {
  display: flex;
}
.search-modal-inner {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  width: 90%;
  max-width: 520px;
  overflow: hidden;
  animation: search-appear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes search-appear {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--color-secondary);
  color: white;
}
.search-modal-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
}
.search-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  transition: transform 0.2s;
}
.search-close:hover {
  transform: scale(1.2);
  color: white;
}
.search-form {
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}
.search-input-wrap {
  display: flex;
  gap: 8px;
}
.search-input {
  flex: 1;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: var(--color-primary);
}
.search-submit {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.search-submit:hover {
  background: var(--color-primary-dark);
}
.search-result {
  padding: 20px;
  min-height: 60px;
}
.search-hint {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-text-light);
  text-align: center;
}
.search-result-item {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  padding: 8px 0;
}
.search-result-item.flash {
  animation: flash-text 0.6s ease;
}
@keyframes flash-text {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 0; }
}
.search-result-item.glitch-msg {
  color: #BF360C;
  font-style: italic;
  animation: glitch-text 0.15s ease 3;
}
@keyframes glitch-text {
  0% { transform: translate(0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, 2px); }
  100% { transform: translate(0); }
}

/* --- Glitch Screen Effect --- */
.glitch-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: transparent;
  animation: screen-glitch 0.4s ease;
}
@keyframes screen-glitch {
  0% { background: transparent; }
  10% { background: rgba(255,0,0,0.03); transform: translate(-2px, 0); }
  20% { background: rgba(0,255,0,0.02); transform: translate(2px, 0); }
  30% { background: rgba(0,0,255,0.03); transform: translate(0, -1px); }
  40% { background: transparent; transform: translate(0); }
  60% { background: rgba(255,0,0,0.04); transform: translate(1px, 1px); }
  70% { background: transparent; transform: translate(0); }
  100% { background: transparent; }
}

/* --- Night Mode --- */
body.night-mode {
  filter: brightness(0.85) saturate(0.7);
}
body.night-mode .hero-image img {
  filter: saturate(0.4) brightness(0.5) hue-rotate(30deg);
}

/* --- Admin Panel --- */
#admin-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 380px;
  max-height: 80vh;
  background: #1a1a2e;
  color: #e0e0e0;
  border-top-left-radius: 10px;
  box-shadow: -4px -4px 20px rgba(0,0,0,0.5);
  z-index: 9999;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #16213e;
  padding: 8px 12px;
  font-weight: bold;
  font-size: 12px;
  color: #FF5722;
  flex-shrink: 0;
}
.admin-panel-buttons {
  display: flex;
  gap: 4px;
}
.admin-panel-buttons button {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #aaa;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-panel-buttons button:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}
.admin-panel-body {
  overflow-y: auto;
  padding: 8px 12px;
  flex: 1;
}
.admin-panel-body.collapsed {
  display: none;
}
.admin-section {
  margin-bottom: 12px;
}
.admin-section h4 {
  font-size: 11px;
  color: #4CAF50;
  margin-bottom: 4px;
  font-family: 'Courier New', monospace;
}
.admin-section pre {
  background: #0d1117;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.4;
  overflow-x: auto;
  max-height: 120px;
  overflow-y: auto;
  color: #c9d1d9;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.admin-actions button {
  background: #16213e;
  border: 1px solid #2a2a4a;
  color: #e0e0e0;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  font-family: 'Courier New', monospace;
  transition: background 0.2s;
}
.admin-actions button:hover {
  background: #1a1a4e;
}
.admin-flag-input {
  display: flex;
  gap: 4px;
}
.admin-flag-input input {
  flex: 1;
  background: #0d1117;
  border: 1px solid #2a2a4a;
  color: #e0e0e0;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: 'Courier New', monospace;
}
.admin-flag-input button {
  background: #4CAF50;
  border: none;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  font-family: 'Courier New', monospace;
}
.admin-logs-pre {
  max-height: 150px !important;
}
body.admin-mode::after {
  content: '🔧 ADMIN';
  position: fixed;
  top: 4px;
  left: 4px;
  background: #FF5722;
  color: white;
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 9999;
  pointer-events: none;
}

/* --- Responsive (2nd block) --- */
@media (max-width: 768px) {
  .sub-header { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 12px 24px; font-size: 14px; }
  .hamburger { display: flex; }
  .ticker-bar { height: 28px; }
  .ticker-label { font-size: 10px; padding: 0 8px; }
  .hero { height: 300px; }
  .hero-title { font-size: 22px; letter-spacing: 0.06em; }
  .hero-subtitle { font-size: 13px; }
  .main-two-col { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .spots-grid { grid-template-columns: 1fr; }
  .access-content { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .news-item { flex-wrap: wrap; gap: 3px 8px; }
  .logo-sub { display: none; }
  .scroll-top-btn { bottom: 16px; right: 16px; width: 38px; height: 38px; font-size: 14px; }
  .search-toggle { font-size: 16px; }
  #admin-panel { width: 100%; border-radius: 0; max-height: 50vh; }
  .search-modal { padding-top: 8vh; }
  .search-modal-inner { width: 95%; }
}

.hint-text {
  font-weight: bold;
  letter-spacing: 0.05em;
}

.hint-text-blue {
  color: var(--color-secondary);
  font-weight: bold;
}

.hint-text-error {
  color: #8B0000;
  font-weight: bold;
  animation: txt-glitch 0.3s ease-in-out infinite;
}

@keyframes txt-glitch {
  0% { transform: translate(0) }
  20% { transform: translate(-1px, 1px) }
  40% { transform: translate(-1px, -1px) }
  60% { transform: translate(1px, 1px) }
  80% { transform: translate(1px, -1px) }
  100% { transform: translate(0) }
}

/* ===========================================
   v6正本 追加スタイル
   =========================================== */

/* --- Hero CTA buttons --- */
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-cta .btn-primary {
  min-width: 150px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.hero-cta .btn-primary:hover {
  background: var(--bg-white);
  opacity: 1;
}
.btn-secondary-hero {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-secondary-hero:hover {
  background: rgba(255,255,255,0.3);
  text-decoration: none;
}

/* --- Section intro --- */
.section-intro {
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* --- Search guide --- */
.search-guide {
  background: var(--color-bg-sub, #EEF6F4);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 20px;
}
.search-guide p {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 8px;
}
.btn-text {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  padding: 0;
}
.btn-text:hover { text-decoration: underline; }

/* --- Search description --- */
.search-description {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  padding: 0 20px;
}

/* --- Enjoy section (mini game grid) --- */
.enjoy-section {
  padding: 48px 0;
  background: var(--color-bg-sub, #EEF6F4);
}
.enjoy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.enjoy-card {
  background: var(--bg-white);
  border: none;
  padding: 28px 24px;
  text-align: center;
}
.enjoy-card:hover {
  /* none */
}
/* 旧: 絵文字アイコン（後方互換） */
.enjoy-icon {
  font-size: 24px;
  margin-bottom: 12px;
}
/* 新: テキストラベル（#046/#135 絵文字→統一アイコン） */
.enjoy-icon-label {
  font-family: var(--font-badge);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-inverse);
  background: var(--tag-warm-gray);
  display: inline-block;
  padding: 0 0 0 3px;
  line-height: 22px;
  margin-bottom: 12px;
}
.enjoy-card h3 {
  font-family: var(--font-base);
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.enjoy-card p {
  font-size: 10px;
  color: var(--text-charcoal);
  margin-bottom: 16px;
  line-height: 1.5;
}
.btn-small {
  font-size: 13px;
  padding: 8px 24px;
}
/* 天気アイコン テキスト化 */
.weather-icon-text {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* --- Memories section --- */
.memories-section {
  padding: 64px 0;
  background:
    linear-gradient(180deg, rgba(238, 246, 244, 0.72), rgba(251, 248, 241, 0.94)),
    var(--cream-base);
}

/* 進捗バー */
.memories-progress {
  max-width: 480px;
  margin: 0 auto 32px;
  text-align: center;
}
.memories-progress-bar {
  height: 6px;
  background: var(--color-bg-alt);
  border-radius: 3px;
  overflow: hidden;
}
.memories-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 3px;
  transition: width 0.6s ease;
}
.memories-progress-text {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-text-light);
}

/* カードグリッド */
.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* カード共通 */
.memory-card {
  background: var(--color-white);
  border: 1px solid rgba(45, 109, 114, 0.18);
  border-radius: 0;
  padding: 0;
  text-align: left;
  min-height: 180px;
  display: flex;
  align-items: stretch;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(45, 109, 114, 0.06);
}
.memory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 109, 114, 0.32);
  box-shadow: 0 14px 30px rgba(45, 109, 114, 0.1);
}
.memory-card-inner {
  padding: 24px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ロック状態 */
.memory-locked {
  background:
    repeating-linear-gradient(135deg, rgba(92, 184, 182, 0.06), rgba(92, 184, 182, 0.06) 8px, transparent 8px, transparent 16px),
    #fbfaf6;
  border-style: solid;
  border-color: rgba(45, 109, 114, 0.18);
}
.memory-locked .memory-card-inner {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.memory-number {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-light);
  opacity: 0.62;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.memory-icon {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-light);
  opacity: 0.42;
  margin-bottom: 8px;
}
.memory-label {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text-light);
  opacity: 0.58;
}

/* 解放済み状態 */
.memory-card.memory-unlocked {
  background: var(--color-white);
  border-color: var(--color-primary);
  border-style: solid;
  border-width: 1px;
  border-left: 4px solid var(--color-primary);
}
.memory-card.memory-unlocked .memory-number {
  color: var(--color-primary);
  opacity: 1;
}
.memory-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.memory-desc {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 12px;
  flex: 1;
}
.memory-link {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.memory-link:hover {
  text-decoration: underline;
}

/* 検索誘導ガイド */
.memories-search-guide {
  margin-top: 40px;
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 24px;
}
.memories-search-guide p:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
.memories-search-guide ul {
  list-style: none;
  padding: 0;
}
.memories-search-guide li {
  font-size: 14px;
  line-height: 1.8;
  padding-left: 1.2em;
  text-indent: -1.2em;
  margin-bottom: 4px;
}
.memories-search-guide li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  margin-right: 8px;
}

/* --- Admin footer link --- */
.footer-admin-link {
  font-size: 11px !important;
  color: var(--color-text-light) !important;
  opacity: 0.5;
}
.footer-admin-link:hover {
  opacity: 1;
}

/* ===========================================
   サブページ共通スタイル
   =========================================== */
.page-content {
  padding: 40px 0 60px;
  min-height: 60vh;
}
.page-title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-secondary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-primary);
  position: relative;
}
.page-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 72px;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s ease 0.15s;
}
.page-title.visible::after {
  transform: scaleX(1);
}
.content-section {
  margin-bottom: 36px;
  transition-delay: calc(var(--motion-order, 0) * 40ms);
}
.content-section h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-secondary);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}
.content-section p {
  line-height: 1.9;
  margin-bottom: 12px;
}
.content-with-image {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.content-with-image .content-text { flex: 1; }
.content-with-image .content-image { flex: 0 0 280px; }
.content-with-image .content-image img { width: 100%; border-radius: 6px; }
@media (max-width: 640px) {
  .content-with-image { flex-direction: column; }
  .content-with-image .content-image { flex: none; }
}
.page-cta {
  margin-top: 32px;
  text-align: center;
}

/* --- Course cards --- */
.course-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.course-card h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-secondary);
  margin-bottom: 16px;
}
.course-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.course-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--color-bg-sub, #EEF6F4);
  border-radius: 6px;
}
.step-time {
  font-weight: 700;
  color: var(--color-primary);
  min-width: 50px;
}
.step-name {
  color: var(--color-text);
}
.course-step--locked {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
}
.course-step--locked .step-time,
.course-step--locked .step-name {
  color: var(--color-text-light);
}

/* --- Enjoy inline (subpage) --- */
.enjoy-section-inline {
  margin: 24px 0;
}
.enjoy-section-inline .enjoy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* 思い出解放ポップアップの実体は assets/css/records.css へ移した。
 * 旧デザイン(このファイル)と新デザイン(arg.css 側)で同じ定義を二重に持っていて、
 * 片方だけ直すと静かにズレる状態だったため、records.css を唯一の正とし、
 * このファイルを読むページにも records.css を読ませている。
 * ※このファイル冒頭の `* { border-radius: 0 !important; box-shadow: none !important; }`
 *   により、旧デザインのページでは角丸と影が落ちる（意図的なフラット指定）。 */

/* --- 検索結果リンク --- */
.search-result-link {
  display: inline-block;
  margin-left: 8px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 13px;
}
.search-result-link:hover { text-decoration: underline; }
.search-result-unlock {
  color: var(--color-primary) !important;
  font-weight: 600;
}
.search-result-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--color-secondary);
  font-size: 13px;
  letter-spacing: 0;
}

/* ===========================================
   0511 追加導線
   =========================================== */
.fixed-memories-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  min-width: 112px;
  padding: 12px 16px;
  border: 1px solid rgba(45, 109, 114, 0.24);
  background: #fff;
  color: var(--color-secondary);
  font-family: var(--font-base);
  cursor: pointer;
  line-height: 1.35;
  text-align: left;
}
.fixed-memories-button span,
.fixed-memories-button strong {
  display: block;
  letter-spacing: normal;
}
.fixed-memories-button strong { font-size: 15px; }

.experience-rail {
  position: fixed;
  right: 18px;
  top: 120px;
  z-index: 80;
  width: 178px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.experience-rail-title {
  padding: 7px 9px;
  background: rgba(255,255,255,0.96);
  border-left: 3px solid var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--color-secondary);
}
.experience-rail-card {
  aspect-ratio: 3 / 1;
  min-height: 58px;
  padding: 0;
  background: #eef6f4;
  border: 1px solid rgba(45, 109, 114, 0.18);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 4px 14px rgba(20, 40, 42, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.experience-rail-card::after {
  content: "→";
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.72);
  color: var(--color-secondary);
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.experience-rail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease;
}
.experience-rail-card:hover,
.experience-rail-card:focus-visible {
  border-color: rgba(45, 109, 114, 0.42);
  box-shadow: 0 8px 20px rgba(20, 40, 42, 0.14);
  transform: translateY(-1px);
}
.experience-rail-card:hover::after,
.experience-rail-card:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}
.experience-rail-card:hover img,
.experience-rail-card:focus-visible img {
  transform: scale(1.025);
}
.experience-drawer {
  display: none;
}

.memories-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: rgba(20, 28, 30, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.memories-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.memories-popup-panel {
  width: min(720px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: #fff;
  padding: 22px;
  border: 1px solid rgba(45, 109, 114, 0.18);
}
.memories-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.memories-popup-head h3 {
  font-size: 20px;
  color: var(--color-secondary);
  letter-spacing: normal;
}
.memories-popup-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-gray);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.memories-board {
  display: grid;
  gap: 12px;
}
.memories-row {
  display: grid;
  gap: 10px;
}
.memories-row-core { grid-template-columns: repeat(3, 1fr); }
.memories-row-fourth { grid-template-columns: 1fr; }
.memories-row-extra { grid-template-columns: repeat(3, 1fr); }
.memory-tile {
  min-height: 78px;
  border: 1px solid rgba(45, 109, 114, 0.2);
  background: #f8fbfa;
  color: var(--text-primary);
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  cursor: pointer;
}
.memory-tile-wide { min-height: 58px; }
.memory-tile.is-locked {
  color: #8a9698;
  background: #f3f1ec;
}
.memory-tile.is-unlocked {
  border-color: var(--color-primary);
  background: #fff;
  color: var(--color-secondary);
}
/* 2026-10-30 Owner：思い出の枠を全部開けたときの案内と公式Xのボタン（watase-arg.js の renderMemoriesComplete） */
.memories-complete {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(45, 109, 114, 0.18);
  text-align: center;
}
.memories-complete__note {
  margin: 0 0 14px;
  color: var(--text-primary, #334248);
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: normal;
  /* 語の途中で折り返さない（「フォロ／ー」を防ぐ）。切れ目は句読点と、日本語の文に入れた <wbr>。入りきらないときだけどこでも折る */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.memories-complete__x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #0f1419;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-decoration: none;
}
.memories-complete__x:hover { background: #26303a; color: #fff; }
.memories-complete__x svg { width: 16px; height: 16px; flex: none; }
.memories-complete__x[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* プライバシーポリシーのお問い合わせ（2026-10-30 Owner：Steam のコミュニティへのボタン2つ。privacy.html） */
.pv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 8px;
}
.pv-contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 6px;
  background: #1b2838;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-decoration: none;
}
.pv-contact__btn:hover { background: #2a475e; color: #fff; }
.pv-contact__btn svg { width: 18px; height: 18px; flex: none; }

.memories-popup-message {
  min-height: 20px;
  margin-top: 12px;
  color: var(--color-text-light);
  font-size: 13px;
  letter-spacing: normal;
}

/* Phase 7: Blur Recovery Layer experimental overlay.
   Default is OFF. Enable with WATASE_SITE_CONFIG.BLUR_RECOVERY_LAYER or ?blurRecovery=1. */
:root {
  --blur-recovery-x: 50vw;
  --blur-recovery-y: 50vh;
  --blur-recovery-radius: 160px;
}
.blur-recovery-layer {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 30;
  pointer-events: none;
  backdrop-filter: blur(7px) saturate(0.92);
  -webkit-backdrop-filter: blur(7px) saturate(0.92);
  background: rgba(251, 248, 241, 0.1);
  opacity: 0.68;
  mask-image: radial-gradient(
    circle var(--blur-recovery-radius) at var(--blur-recovery-x) var(--blur-recovery-y),
    transparent 0 58%,
    rgba(0, 0, 0, 0.28) 76%,
    #000 100%
  );
  -webkit-mask-image: radial-gradient(
    circle var(--blur-recovery-radius) at var(--blur-recovery-x) var(--blur-recovery-y),
    transparent 0 58%,
    rgba(0, 0, 0, 0.28) 76%,
    #000 100%
  );
}
body.blur-recovery-touch .blur-recovery-layer {
  --blur-recovery-x: 50vw;
  --blur-recovery-y: 48vh;
  --blur-recovery-radius: 132px;
  opacity: 0.54;
}

.maintenance-shell {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
}
.maintenance-blur {
  filter: blur(8px);
  transform: scale(1.03);
  pointer-events: none;
  user-select: none;
}
.maintenance-pop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255,255,255,0.26);
}
.maintenance-card {
  width: min(420px, 100%);
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(45, 109, 114, 0.22);
  text-align: center;
}
.maintenance-card h1 { font-size: 22px; margin-bottom: 12px; }
.maintenance-card p { font-size: 14px; line-height: 1.8; margin-bottom: 18px; }

.school-locked,
.record-locked {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (max-width: 1180px) {
  .experience-rail { display: none; }
}

@media (max-width: 640px) {
  .fixed-memories-button {
    right: 12px;
    bottom: 12px;
    min-width: 96px;
    padding: 10px 12px;
  }
  .memories-popup-overlay { padding: 12px; }
  .memories-popup-panel { padding: 16px; }
  .memories-row-core,
  .memories-row-extra { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .experience-drawer {
    position: fixed;
    right: 12px;
    bottom: 82px;
    z-index: 119;
    display: block;
    width: min(260px, calc(100vw - 24px));
    border: 1px solid rgba(45, 109, 114, 0.22);
    background: rgba(255,255,255,0.96);
    box-shadow: 0 8px 22px rgba(20, 40, 42, 0.12);
  }
  .experience-drawer summary {
    padding: 11px 14px;
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: normal;
    cursor: pointer;
    list-style: none;
  }
  .experience-drawer summary::-webkit-details-marker { display: none; }
  .experience-drawer summary::after {
    content: "+";
    float: right;
    font-weight: 400;
  }
  .experience-drawer[open] summary::after { content: "-"; }
  .experience-drawer-links {
    display: grid;
    gap: 1px;
    padding: 0 10px 10px;
  }
  .experience-drawer-links a {
    padding: 10px;
    background: #f5faf8;
    color: var(--text-primary);
    font-size: 12px;
    text-decoration: none;
  }
  .memory-tile {
    min-height: 64px;
    font-size: 12px;
    padding: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .anim-target {
    opacity: 1;
    transform: none;
  }
  .scroll-progress {
    display: none;
  }
  .blur-recovery-layer {
    display: none;
  }
}
/* 2026-11-01 Owner：スマホ幅のヘッダーで「渡瀬島観光協会」が名前の途中で折れていた（前の版から）。1行に収め、
   右の「キーワード検索」とメニューのボタンがはみ出さないよう、狭い幅だけ字と余白を詰める（320〜420px で確認）。 */
@media (max-width: 420px) {
  .site-header .header-inner { padding: 0 14px; gap: 8px; }
  .site-header .logo-main { white-space: nowrap; font-size: 15px; letter-spacing: .02em; }
  .site-header .search-toggle { font-size: 13px; letter-spacing: 0; }
}
@media (max-width: 340px) {
  .site-header .header-inner { padding: 0 10px; gap: 6px; }
  .site-header .site-logo a { gap: 6px; }
  .site-header .logo-mark { width: 26px; height: 26px; }
  .site-header .logo-main { font-size: 13px; letter-spacing: 0; }
  .site-header .search-toggle { font-size: 12px; }
}
