/* index.css */

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

:root {
  --primary-color: #115E46;
  /* より深く洗練されたフォレストグリーン */
  --primary-color-hover: #0a4331;
  --bg-color: #f6f5f1;
  /* 全体の暖かみのある薄ベージュ背景 */
  --footer-bg: #eae8e2;
  /* フッターの下部背景 */
  --text-dark: #2a2926;
  /* 安っぽさを抑えた深みのあるソフトブラック */
  --text-muted: #737069;
  /* 上品なウォームグレー */
  --font-family: "Outfit", "秀英角ゴシック銀 M", 'Zen Maru Gothic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-english: "Outfit", sans-serif;
  --font-jp: "くれたけ銘石", sans-serif;
  --border-light: rgba(17, 94, 70, 0.08);
  --shadow-soft: 0 16px 40px -10px rgba(42, 41, 38, 0.05);
  --shadow-hover: 0 24px 48px -12px rgba(17, 94, 70, 0.12);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}



html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.8;
  letter-spacing: 0.04em;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding-top: 100px;
}

body.page-home,
body:has(.hero-section) {
  padding-top: 0 !important;
}

@media (max-width: 1024px) {
  body {
    padding-top: 76px;
  }

  body.page-home,
  body:has(.hero-section) {
    padding-top: 0 !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  color: var(--text-dark);
}

p,
li {
  text-wrap: pretty;
}

/* Display utility classes with proper specificity */
.sp-only {
  display: none !important;
}

.pc-only {
  display: block;
}

/* スマホ専用セクションタイトル（sp-section-header）のスタイル */
.sp-section-header {
  text-align: center;
  padding: 0 0 12px 0;
  margin-bottom: 12px;
}

.sp-section-title {
  font-size: 26px;
  font-weight: 900;
  color: #115E46;
  line-height: 1.2;
  margin: 0 0 6px 0;
  padding: 0;
  background: none;
  border: none;
}

.sp-section-pick {
  font-size: 13px;
  font-weight: 800;
  color: #333;
  letter-spacing: 0.15em;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: block !important;
  }
}

/* PICK UP! 見出しのスタイル */
.ttl-01 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-english);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.ttl-01-sub {
  font-family: var(--font-jp);
  font-size: clamp(13px, 2.5vw, 15px);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: block;
}

.txt-ctr {
  text-align: center;
}

.mgn-btm40 {
  margin-bottom: 40px !important;
}

/* Button Layout */
.btn-contact {
  display: inline-block;
  padding: 10px 24px;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.btn-contact:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(17, 94, 70, 0.3);
}

/* HEADER STYLE */
.site-header {
  width: 100%;
  background-color: var(--bg-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  height: 100px;
  overflow: hidden;
  will-change: transform;
}

/* スクロール時のアニメーションはページロード完了後のユーザー操作時のみ有効化 */
.site-header.has-transition {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* スクロールで隠す用のクラス */
.site-header.hide {
  transform: translateY(-100%);
  pointer-events: none !important;
}

.site-header {
  pointer-events: auto;
}

.site-header.first-view-hidden {
  transform: translateY(-100%);
  pointer-events: none !important;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 15px clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 52px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-logo a:hover img {
  transform: scale(1.03);
}

.desktop-nav {
  margin: 0 clamp(15px, 2.5vw, 45px);
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: clamp(16px, 2.5vw, 36px);
  align-items: center;
}

.desktop-nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  width: 100%;
}

.desktop-nav ul li a img {
  height: 52px !important;
  width: auto !important;
  transition: var(--transition-smooth);
  display: block;
  margin: 0 auto;
}

.desktop-nav .nav-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  transition: var(--transition-smooth);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.desktop-nav ul li a:hover img {
  transform: translateY(-4px) scale(1.08);
}

.desktop-nav ul li a:hover .nav-text {
  color: var(--primary-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sns-links {
  display: flex;
  gap: 12px;
}

.sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1.5px solid rgba(115, 112, 105, 0.2);
  transition: var(--transition-smooth);
}

.sns-icon:hover {
  background-color: #ffffff;
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Hamburger menu button */
.menu-toggle {
  display: none;
  position: relative;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3100;
}

.menu-toggle .bar {
  position: absolute;
  width: 100%;
  height: 2.5px;
  background-color: var(--text-dark);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
  border-radius: 2px;
  left: 0;
}

.menu-toggle .bar:nth-child(1) {
  top: 0;
}

.menu-toggle .bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle .bar:nth-child(3) {
  bottom: 0;
}

/* Hamburger transition to close icon */
.menu-toggle.active .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

.menu-toggle.active .bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100dvh;
  background-color: var(--bg-color);
  z-index: 2900;
  box-shadow: -10px 0 30px rgba(42, 41, 38, 0.08);
  padding: 100px 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav ul li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(115, 112, 105, 0.1);
  transition: var(--transition-smooth);
}

.mobile-nav ul li a:hover {
  padding-left: 6px;
  color: var(--primary-color);
}

.mobile-nav ul li a img {
  height: 36px;
  width: auto;
}

.mobile-nav .nav-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark, #2a2926) !important;
}

.hero-section {
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 60px 30px;
  background-color: var(--bg-color, #f6f5f1);
}

.hero-container {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  z-index: 2;
  box-sizing: border-box;
}

/* Left text side - Editorial Layout */
.hero-text-side {
  flex: 0 0 540px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-title-wrap {
  margin-bottom: 24px;
  width: 100%;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.hero-sub-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}

.hero-main-title {
  font-size: clamp(44px, 4.8vw, 68px);
  font-weight: 900;
  line-height: 1.3;
  color: #1f2421;
  letter-spacing: -0.02em;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-main-title span {
  display: inline-block;
  vertical-align: baseline;
}

.hero-main-title .brand-ko {
  color: var(--primary-color);
  font-family: 'Zen Maru Gothic', sans-serif;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.hero-main-title .brand-noji {
  color: #1f2421;
  font-family: 'Zen Maru Gothic', sans-serif;
}

.hero-main-title .welcome-text {
  margin-left: -0.07em !important;
}

.hero-desc-text {
  font-size: 17px;
  color: #495057;
  margin: 0 0 36px 0 !important;
  padding: 0 !important;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

/* CTA Button - Signature Interactive Design */
.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100%;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 16px 54px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(17, 94, 70, 0.18);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  letter-spacing: 0.05em;
}

.hero-cta-btn:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 32px rgba(17, 94, 70, 0.28);
}

.cta-btn-sub {
  font-size: 12px;
  font-weight: 700;
  color: #8a8a8a;
  text-align: left;
  margin-left: 16px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.mobile-only {
  display: none !important;
}

/* Right map side - Cloud Blending */
.hero-map-side {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 580px);
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}

.map-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: transparent;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto;
}

.hero-map-img {
  width: 100%;
  height: 100%;
  max-height: 92vh;
  display: block;
  object-fit: contain;
  object-position: right center;
  mask-image: radial-gradient(ellipse at 70% center, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 85%);
  -webkit-mask-image: radial-gradient(ellipse at 70% center, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 85%);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.map-image-wrapper:hover .hero-map-img {
  transform: scale(1.02) rotate(0.5deg);
}

/* PC-only line break utility */
.pc-only {
  display: block;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-section {
    padding: 120px 24px 60px;
    min-height: auto;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    padding: 0;
  }

  .hero-text-side {
    position: static;
    transform: none;
    width: 100%;
    margin-bottom: 40px;
    align-items: center;
    text-align: center;
  }

  .hero-map-side {
    position: static;
    width: 100%;
    height: auto;
  }

  .map-image-wrapper {
    height: auto;
    justify-content: center;
  }

  .hero-map-img {
    max-height: 50vh;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%);
  }

  .hero-desc-text {
    margin-bottom: 28px;
  }

  .hero-cta-wrap {
    align-items: center;
    width: 100%;
  }

  .hero-cta-btn {
    width: 100%;
    max-width: 320px;
  }

  .cta-btn-sub {
    margin-left: 0;
  }

  .pc-only {
    display: none;
  }
}



.hero-btn .btn-title {
  font-size: 18px;
  font-weight: 700;
  display: block;
}

.mobile-nav {
  pointer-events: auto !important;
  /* メニュー自体はクリック可能に */
}

.mobile-nav-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* HERO / MAIN VISUAL SECTION */
/* HERO / MAIN VISUAL SECTION */
html {
  scroll-behavior: smooth;
}

/* ヒーローエリア周辺でのみスナップ（抵抗）を有効にし、その後の自由なスクロールを妨げないようにする */
/* CSS Scroll Snapは不安定な挙動の原因となるため廃止し、JSで制御します */

/* スクロールスナップのターゲットを設定 */

/* .today-section margin adjustments managed under layout section */

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 41, 38, 0.45);
  /* Dark semi-transparent layer for readability */
  z-index: -1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(32px, 5.5vw, 64px);
  /* レスポンシブで可変する大きなフォントサイズ */
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 24px;
  color: #ffffff;
  letter-spacing: -0.01em;
  /* 多重シャドウで動画背景でも圧倒的な可読性と高級感を担保 */
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-text h1 .highlight {
  color: #ffeb3b;
  /* 明るいアクセントイエロー */
  position: relative;
  display: inline-block;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 0 15px rgba(255, 235, 59, 0.4), 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-text h1 .highlight::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: rgba(255, 235, 59, 0.35);
  z-index: -1;
  border-radius: 4px;
}

.hero-description {
  font-size: clamp(14px, 1.8vw, 19px);
  /* 説明文も大人っぽく洗練されたサイズと太さに */
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 44px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.08em;
  /* 広めの文字間隔でモダンな印象に */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-btns-container {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 660px;
  justify-content: flex-start;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .hero-btns-container {
    flex-direction: column;
    align-items: center;
    max-width: 320px;
    margin: 10px auto 0;
  }
}

/* Green Button */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 40px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 10px 25px -5px rgba(17, 94, 70, 0.2);
  transition: var(--transition-smooth);
}

.hero-btn:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(17, 94, 70, 0.3);
}

.hero-btn .btn-subtitle {
  font-size: 11px;
  opacity: 0.85;
  display: block;
  font-weight: 500;
}

.hero-btn .btn-arrow {
  font-size: 24px;
  font-weight: 300;
  transition: var(--transition-smooth);
}

.hero-btn:hover .btn-arrow {
  transform: translateX(6px);
}

/* Map image container */
.hero-visual {
  position: relative;
}

.map-wrapper {
  position: relative;
  overflow: hidden;
}

.map-image {
  width: 140%;
  /* Larger size */
  margin-left: -20%;
  margin-top: -20%;
  height: auto;
  /* Hover zoom disabled, soft blended mask-image */
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 65%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 65%);
}

/* Scroll Down Arrow */
.scroll-down-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  cursor: pointer;
  animation: floatArrow 2.5s infinite ease-in-out;
  transition: opacity 0.3s ease;
}

.scroll-text {
  font-size: 11px;
  letter-spacing: 0.4em;
  /* 文字間隔を広げてスタイリッシュに */
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.arrow-icon {
  width: 22px;
  /* 14pxから大きく調整 */
  height: 22px;
  /* 14pxから大きく調整 */
  border-bottom: 3.5px solid rgba(255, 255, 255, 0.95);
  /* 線も少し太く */
  border-right: 3.5px solid rgba(255, 255, 255, 0.95);
  /* 線も少し太く */
  transform: rotate(45deg);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
  /* 視認性を上げる微細な影 */
}

@keyframes floatArrow {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}


/* SECTION COMMON STYLE */
.section-container {
  max-width: 1440px;
  margin: 0 auto 120px;
  padding: 0 40px;
}

/* 動画と今日の多米までの距離をほんの少しつける */
.today-section {
  margin-top: 60px !important;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 16px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
}

.section-en-title {
  font-family: var(--font-english);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #a3a099;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-dark);
  position: relative;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 8px;
}

.view-all {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.view-all .arrow {
  transition: var(--transition-smooth);
}

.view-all:hover {
  color: var(--primary-color-hover);
}

.view-all:hover .arrow {
  transform: translateX(4px);
}


.carousel-outer {
  position: relative;
  overflow: hidden;
  padding: 10px 0 0px;
  /* 下部マージン（ドット用）を削減して密着させる */
}

.carousel-inner {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  touch-action: pan-y;
}

.carousel-card {
  flex: 0 0 calc((100% - 72px) / 4);
  /* Desktop 4 columns */
  background: #ffffff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.02);
  text-align: center;
  transition: var(--transition-smooth);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* PC表示では、スマホ用のスライダーラッパーを通常のブロックに戻す */
@media (min-width: 768px) {
  .two-column-layout .carousel-clone {
    display: none !important;
  }

  .two-column-layout .carousel-outer {
    overflow: visible;
    padding: 0;
  }

  .carousel-inner {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  /* PC表示では、スマホ用スライダーの中身を通常の縦並びブロックに戻す */
  .two-column-layout .carousel-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: none !important;
    /* PCでは絶対に横スライド移動しないように */
    overflow: visible;
  }

  .carousel-card {
    flex: 0 0 calc((100% - 72px) / 4);
    /* Desktop 4 columns */
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(0, 0, 0, 0.08);
    /* Thicker border */
    text-align: center;
    transition: var(--transition-smooth);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* PC表示では、スマホ用スライダー内のカードを従来通りの100%幅（縦に並ぶ形）に戻す */
  .two-column-layout .carousel-card {
    flex: 1 1 auto;
    width: auto !important;
    max-width: none !important;
    text-align: left;
    border-radius: 24px;
    background: #ffffff;
  }
}

.carousel-card:hover {
  /* Removed translateY to prevent block enlargement on hover */
  /* Retain visual effects without size change */
  box-shadow: var(--shadow-hover);
  border-color: rgba(17, 94, 70, 0.1);
}

.carousel-card:hover .card-image img {
  filter: brightness(1.1);
  transition: filter 0.3s ease;
}

/* スマホではスライダー内カードのホバー浮き上がりを無効化 */
@media (max-width: 1024px) {

  .carousel-card:hover,
  .carousel-card:active {
    transform: none !important;
  }
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}



.card-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800 !important;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  background-color: #ffdb38 !important;
  /* 黄色に統一 */
  color: #000000 !important;
}

.tag-hashtag {
  font-size: 11px;
  color: #888888;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-block;
}

/* Tag Specific colors matching layout */
.tag-group {
  background-color: #f3ede2;
  color: #7d6b58;
}

.tag-shop {
  background-color: #e6f0eb;
  color: #2e6b52;
}

.tag-person {
  background-color: #e7eaf0;
  color: #4b5e7d;
}

.tag-food {
  background-color: #fae9e8;
  color: #b04e46;
}

.tag-bakery {
  background-color: #faf2dc;
  color: #9c7b2c;
}

.tag-zakka {
  background-color: #faedf9;
  color: #924d8b;
}

.carousel-dots {
  display: none;
  /* PCでは非表示 */
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

/* スマホ表示時のドットは flex で表示 */
@media (max-width: 767px) {
  .carousel-dots.sp-only {
    display: flex !important;
  }
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #dcdad4;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dots .dot.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
  width: 16px;
  border-radius: 4px;
}

/* TODAY'S TAME SECTION */
.today-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 60px;
  margin-top: 24px;
  background-color: #ffffff;
  border-radius: 32px;
  padding: 44px 54px;
  border: 1px solid rgba(17, 94, 70, 0.05);
  box-sizing: border-box;
}

.weather-card {
  background: transparent;
  border-radius: 0;
  padding: 10px 60px 10px 0;
  box-shadow: none;
  border: none;
  border-right: 1px solid rgba(17, 94, 70, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: var(--transition-smooth);
}

.weather-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.weather-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  width: 100%;
}

.weather-main-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.weather-icon {
  font-size: 42px;
  line-height: 1;
}

.temp-wrap {
  display: flex;
  align-items: baseline;
}

.weather-temp {
  font-family: var(--font-english);
  font-size: 38px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.temp-unit {
  font-family: var(--font-english);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.weather-main-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.weather-sub-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #495057;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.weather-sub-item .sub-icon {
  font-size: 14px;
}

.weather-sub-item .sub-val {
  font-family: var(--font-english);
}

.weather-divider-line {
  height: 1px;
  background: rgba(17, 94, 70, 0.06);
  margin: 16px 0;
  width: 100%;
}

/* 今後の天気 (時間別 4カラム仕切り線) */
.weather-hourly-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  margin-top: 4px;
}

.hourly-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  box-sizing: border-box;
}

.hourly-item:not(:last-child) {
  border-right: 1px solid rgba(17, 94, 70, 0.12);
}

.hourly-time {
  font-size: 12px;
  font-weight: 700;
  color: #8a8a8a;
}

.hourly-icon {
  font-size: 20px;
  line-height: 1;
}

.hourly-pop {
  font-size: 13px; /* 数字を際立たせるために11pxから13pxへサイズアップ */
  font-weight: 800; /* 極太ウェイトにして強調 */
  color: var(--primary-color, #115E46);
  font-family: var(--font-english); /* 英数字用フォントを適用して数字を目立たせる */
  letter-spacing: 0.02em;
}

/* ☔マーク部分のサイズを調整して、数字との強弱比率を作る */
.hourly-pop::first-letter {
  font-size: 11px; /* 傘の絵文字部分だけ少し小さめにして数字を引き立てる */
  margin-right: 1px;
}

.weather-loading {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
  font-weight: 500;
}

/* Today's Events */
.today-events {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.today-events:hover {
  transform: none;
  box-shadow: none;
}

.today-events-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.today-events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.today-event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  background-color: transparent;
  transition: var(--transition-smooth);
  border-bottom: 1px dashed rgba(115, 112, 105, 0.1);
  cursor: pointer;
}

.today-event-item:hover {
  background-color: transparent;
  transform: translateX(4px);
}

/* スリム・横方向イベントアイテムレイアウト */
.event-date-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 75px;
  width: 75px;
  border-right: 1px solid rgba(17, 94, 70, 0.12);
  padding-right: 14px;
  margin-right: 4px;
  flex-shrink: 0;
}

.date-day-num {
  font-family: var(--font-english);
  font-size: 19px;
  font-weight: 850;
  color: var(--primary-color, #115E46);
  line-height: 1;
}

.date-rel-badge {
  font-size: 10px;
  font-weight: 700;
  color: #888888;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.event-detail-side {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-title-text {
  font-size: 16px;
  font-weight: 750;
  color: #1f2421;
  margin: 0 0 6px 0;
  line-height: 1.35;
  transition: var(--transition-smooth);
}

.today-event-item:hover .event-title-text {
  color: var(--primary-color-hover);
}

.event-meta-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #6a6a6a;
  font-weight: 500;
}

.meta-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-separator {
  color: rgba(0, 0, 0, 0.15);
}

.meta-venue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.today-events-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* 2-COLUMN LAYOUT (PEOPLE & SHOPS) */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* SECTION NUMBER DECORATIONS */
.title-with-number {
  position: relative;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
}

.section-number-bg {
  position: absolute;
  left: -20px;
  top: -30px;
  font-family: var(--font-english);
  font-size: 76px;
  font-weight: 800;
  color: rgba(17, 94, 70, 0.04);
  line-height: 1;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

/* PEOPLE MAGAZINE LAYOUT (ROUNDED PROFILE + TALK BALLOON) */
.people-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* PEOPLE & SHOPS BLOG CARD RESTRUCTURE (BACKGROUND INTEGRATED & HAND-DRAWN BORDER) */
.people-magazine-card,
.shop-editorial-card,
.column-section .carousel-card {
  display: flex !important;
  align-items: stretch !important;
  gap: 20px !important;
  background: transparent !important;
  /* 背景透過 */
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  /* 影なし */
  border: none !important;
  /* 枠線なし */
  transition: var(--transition-smooth) !important;
  padding: 0 !important;
  /* パディングを完全にゼロにしてブロックの概念を捨てる */
  text-decoration: none !important;
  color: inherit !important;
}

.people-magazine-card:hover,
.shop-editorial-card:hover,
.column-section .carousel-card:hover {
  background: transparent !important;
  box-shadow: none !important;
}

/* Image Wrappers (手書き風黒枠) */
.people-avatar-wrapper,
.shop-image-frame {
  flex-shrink: 0 !important;
  width: 180px !important;
  height: 125px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 3px solid #2a2926 !important;
  /* 太めの黒枠 */
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px !important;
  /* 手書きの不規則な歪み */
  box-shadow: none !important;
  background-color: #ffffff !important;
  /* フェード用に白背景を設定 */
}

/* 偶数番目のカードは手書き風枠の歪みを設定（傾斜はさせない） */
.carousel-card:nth-child(even) .people-avatar-wrapper,
.carousel-card:nth-child(even) .shop-image-frame {
  border-radius: 15px 255px 15px 225px/225px 15px 255px 15px !important;
}

.people-avatar,
.shop-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: opacity 0.3s ease !important;
  pointer-events: none !important;
}

/* カーソルが触れたら、ちょっと白く(半透明)する */
.people-magazine-card:hover .people-avatar,
.shop-editorial-card:hover .shop-img,
.people-magazine-card:active .people-avatar,
.shop-editorial-card:active .shop-img {
  opacity: 0.85 !important;
}

/* Content Areas */
.people-balloon,
.shop-editorial-content {
  flex-grow: 1 !important;
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;
  transform: none !important;
}

.people-balloon::before {
  display: none !important;
  /* 吹き出しの三角を消去 */
}

.people-magazine-card:hover .people-balloon {
  transform: none !important;
}

.people-balloon-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.people-speech {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
}

/* SHOPS EDITORIAL LAYOUT (HORIZONTAL CARD) */
.shops-editorial-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-editorial-card {
  display: flex;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  padding: 12px;
  align-items: center;
}

.shop-editorial-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(17, 94, 70, 0.08);
}

.shop-image-frame {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background-color: #eae8e2;
  border-radius: 16px;
}

.shop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.shop-editorial-content {
  padding: 12px 20px 12px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
}

.shop-title-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.shop-editorial-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* EVENTS SECTION */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-item {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  padding: 24px 32px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.event-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(17, 94, 70, 0.12);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  border-right: 1.5px solid rgba(115, 112, 105, 0.15);
  padding-right: 25px;
  margin-right: 30px;
}

.date-num {
  font-family: var(--font-english);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.date-day {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 6px;
}

.event-info {
  flex-grow: 1;
}

.event-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.event-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.event-arrow {
  font-family: var(--font-english);
  font-size: 20px;
  color: var(--primary-color);
  font-weight: 300;
  transition: var(--transition-smooth);
}

.event-item:hover .event-arrow {
  transform: translateX(6px);
}


/* FOOTER STYLES */
.site-footer {
  margin-top: 140px !important; /* 波線分の高さを考慮した安定したマージンに変更 */
  position: relative;
  background-color: var(--footer-bg);
  padding-bottom: 50px;
}

/* Curved border visual wave */
.footer-wave-wrap {
  position: absolute !important;
  top: -140px !important; /* フッターの上部にぴったり合わせる */
  left: 0;
  width: 100%;
  height: 140px !important;
  margin-top: 0 !important; /* めり込み用ネガティブマージンを完全排除 */
  overflow: visible;
  pointer-events: none;
  z-index: 10;
}

.footer-wave {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 140px !important;
}


/* Illustration Placements inside Wave */
.footer-ill {
  position: absolute;
  bottom: 0;
  z-index: 10;
}

.footer-ill.walker {
  left: 15%;
  height: 90px;
  width: auto;
}

.footer-ill.houses {
  left: 30%;
  height: 80px;
  width: auto;
}

.footer-ill.trees {
  right: 15%;
  height: 90px;
  width: auto;
}

.footer-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 40px 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.5fr;
  /* 3-column layout: Logo/Info, Site Links, News List */
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 40px;
}

/* Col 1: Logo & Info */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo img {
  height: 52px;
  width: auto;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-contact-info {
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

/* Col 2: Navigation Links Grid */
.footer-nav-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-sec-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(17, 94, 70, 0.1);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  list-style: none;
}

.footer-links-grid a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.footer-links-grid a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

/* Col 3: Footer News List */
.footer-news {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(17, 94, 70, 0.1);
}

.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-list li {
  display: flex;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  border-bottom: 1px dashed rgba(115, 112, 105, 0.1);
  padding-bottom: 8px;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--text-muted);
  font-weight: 700;
  min-width: 75px;
}

.news-link {
  transition: var(--transition-smooth);
  font-weight: 500;
}

.news-link:hover {
  color: var(--primary-color);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(115, 112, 105, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-bottom-links a {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
  color: var(--primary-color);
}

.footer-right-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-sns {
  display: flex;
  gap: 10px;
}

.copyright {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px 16px !important; /* 隙間を適度にあけ、折り返し時も綺麗に配置 */
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
  }

  .footer-bottom-links a {
    white-space: nowrap !important; /* 単語の途中で変に改行されるのを防止 */
    font-size: 13px !important; /* 読みやすいサイズ */
  }

  .footer-right-block {
    flex-direction: column;
    gap: 15px;
  }

}


/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

@media (max-width: 1200px) {
  .site-header {
    padding: 0;
    height: 76px;
    overflow: hidden;
  }

  .header-container {
    padding: 12px 20px;
  }

  .desktop-nav {
    display: none !important;
  }

  .header-right {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero */
  .hero-section {
    padding: 120px 20px 40px;
    min-height: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .hero-text-side {
    flex: 0 0 auto !important;
    width: 100%;
    align-items: center !important;
    text-align: center !important;
  }

  .hero-title-wrap {
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }

  .hero-sub-title {
    margin: 0 0 10px 0 !important;
    text-align: center !important;
  }

  .hero-main-title {
    font-size: clamp(32px, 8vw, 44px) !important;
    text-align: center !important;
    line-height: 1.35 !important;
  }

  .hero-main-title .welcome-text {
    margin-left: 0 !important;
  }

  .hero-desc-text {
    text-align: center !important;
    margin: 0 0 24px 0 !important;
    font-size: 15px !important;
  }

  .hero-cta-wrap {
    align-items: center !important;
    width: 100% !important;
  }

  .cta-btn-sub {
    margin-left: 0 !important;
    text-align: center !important;
  }

  /* Map Visual Mobile Recovery */
  .hero-map-side {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 480px !important;
    height: auto !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }

  .map-image-wrapper {
    max-width: 100% !important;
    height: auto !important;
    justify-content: center !important;
  }

  .hero-map-img {
    max-height: 45vh !important;
    width: 100% !important;
    height: auto !important;
    object-position: center center !important;
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 80%) !important;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 80%) !important;
  }


  /* Scroll arrow mobile */
  .scroll-down-arrow {
    bottom: 20px;
  }

  .sp-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
  }

  .sp-slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dcdad4;
  }

  .sp-slider-dots .dot.active {
    background-color: var(--primary-color);
  }

  /* Cards in Carousel */
  .carousel-card {
    flex: 0 0 calc((100% - 24px) / 2);
    /* 2 Columns */
    border-radius: 20px;
  }

  .section-container {
    padding: 0 20px;
    margin-bottom: 80px;
  }

  .view-all {
    display: none;
  }

  .view-all-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition-smooth);
  }

  .view-all-mobile:hover {
    color: var(--primary-color-hover);
  }

  /* Footer Layout */
  .footer-content {
    padding: 40px 20px 0;
  }

  .footer-top {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .footer-news {
    flex: 1 1 auto;
  }

  .footer-info-links {
    align-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
  }

  .footer-right-block {
    align-items: center;
  }

  /* Footer Illustrations */
  .footer-ill.walker {
    left: 8%;
    height: 70px;
  }

  .footer-ill.houses {
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
  }

  .footer-ill.trees {
    right: 8%;
    height: 70px;
  }

  /* Weather card mobile: remove right border divider when stacked */
  .weather-card {
    border-right: none;
    border-bottom: 1px solid rgba(17, 94, 70, 0.10);
    padding: 0 0 24px 0;
  }

  .today-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 28px 24px;
  }

  .today-events {
    padding-top: 24px;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    /* 隙間が空きすぎないように50pxから32pxへ引き締め */
  }
}


@media (max-width: 767px) {

  .hero-text h1 {
    font-size: 28px;
  }

  .two-column-layout {
    gap: 24px !important;
    /* スマホで人と店（スライダー間）に適度な余白を作る */
  }

  .section-container {
    margin: 0 auto 56px !important;
    padding: 0 20px !important;
  }

  /* 「今日の多米」と「今日のイチオシ！」の間に十分なゆとりを作る */
  .today-section {
    margin-top: 100px !important;
    margin-bottom: 72px !important;
  }

  .people-section {
    padding-bottom: 0 !important;
    margin-bottom: 10px !important;
    /* 人と店（スライダー間）に適度な余白を作る */
  }

  .shops-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .news-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    /* フッターの波型の手前で無駄に浮かないようにマージンを0にする */
  }

  .about-summary-section {
    padding: 30px 20px !important;
    border-radius: 20px !important;
    margin-bottom: 40px !important;
  }

  .about-summary-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }

  .about-summary-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-summary-p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }

  .about-summary-visual {
    width: 100%;
  }

  .konoji-illust-frame {
    width: 100% !important;
    max-width: none !important;
  }

  .site-footer {
    margin-top: 140px !important; /* スマホ時も140pxの絶対配置用スペースをキープ */
  }


  /* スマホ（480px以下）の時のみスライダーのカード幅を指定（見本のvw比率に100%合わせる） */
  #people-mobile-carousel .carousel-card,
  #shops-mobile-carousel .carousel-card,
  #pickup-mobile-carousel .carousel-card,
  .carousel-card {
    flex: 0 0 62.0512820513vw !important;
    /* 見本と完全一致のカード幅 */
    width: 62.0512820513vw !important;
    max-width: 62.0512820513vw !important;
    margin-left: 4.347826087vw !important;
    /* 見本と完全一致の左マージン */
    margin-right: 4.347826087vw !important;
    /* 見本と完全一致の右マージン */
    scroll-snap-align: center;
    /* 左右マージンを考慮して中央にスナップ */

    /* カード縦並び（ブログカード）化 */
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    height: auto !important;
    gap: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* スマホ時の画像高さと手書き風角丸・歪み */
  #people-mobile-carousel .people-avatar-wrapper,
  #shops-mobile-carousel .shop-image-frame,
  #pickup-mobile-carousel .shop-image-frame {
    width: 100% !important;
    height: 220px !important;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px !important;
  }

  /* スマホ時のコンテンツ内余白 */
  #people-mobile-carousel .people-balloon,
  #shops-mobile-carousel .shop-editorial-content,
  #pickup-mobile-carousel .shop-editorial-content {
    padding: 16px 8px !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .carousel-inner {
    display: flex !important;
    flex-direction: row !important;
    /* 必ず横並び */
    flex-wrap: nowrap !important;
    /* 絶対に折り返さないように指定 */
    gap: 0 !important;
    /* 各カードにマージンがあるためgapを0にします */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    /* 横スワイプ操作中に画面全体が上下に揺れるのを防ぐ */
    transform: translateX(0);
    /* 初期位置を明示 */
    will-change: transform;
    /* GPU昇格で横移動時の上下ブレを防止 */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* 左右対称に切れ込ませる（1枚目を真ん中にスナップ）ためのパディング計算 */
    /* (100vw - 62.05vw) / 2 = 18.974vw */
    padding-left: 18.974vw !important;
    padding-right: 18.974vw !important;
  }

  /* スマホ時、carousel-outerの幅を親に合わせる */
  .carousel-outer {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
  }





  .event-item {
    padding: 16px 20px;
    border-radius: 16px;
  }

  .event-date {
    min-width: 70px;
    padding-right: 15px;
    margin-right: 15px;
  }

  .date-num {
    font-size: 20px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .people-avatar-wrapper {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
  }

  .shop-editorial-card {
    flex-direction: column;
  }

  .shop-image-frame {
    width: 100%;
    height: 150px;
    flex-shrink: 0;
  }

  .people-list-vertical,
  .shops-editorial-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    /* 横一列に強制し、折り返して下に落ちないように */
    gap: 16px;
    overflow-x: hidden !important;
    /* JSでの制御と干渉を防ぐためスクロール表示を無効化 */
    padding: 15px 0 30px;
    margin: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y !important;
  }

  /* バーを非表示にしつつスクロール可能に */
  .people-list-vertical::-webkit-scrollbar,
  .shops-editorial-list::-webkit-scrollbar {
    display: none;
  }

  .people-magazine-card,
  .shop-editorial-card {
    flex: 0 0 calc(100vw - 40px) !important;
    /* ビューポート幅 - section padding */
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    scroll-snap-align: center;
    /* 中央にスナップ */
    box-shadow: var(--shadow-soft) !important;
    border: 1px solid rgba(0, 0, 0, 0.03);
    background: #ffffff;
    border-radius: 20px;
    box-sizing: border-box;
  }

  /* 高さや伸縮のグチャグチャ感を解決するために高さをある程度揃え、内部要素を適切にレイアウト */
  .people-magazine-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    min-height: 270px;
    justify-content: flex-start;
  }

  .people-balloon {
    width: 100%;
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: none;
    background-color: var(--bg-color);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .people-balloon-header {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
  }

  .people-speech {
    font-size: 12px;
    line-height: 1.5;
  }

  .people-balloon::before {
    /* 吹き出しの矢印を左から上に変更 */
    left: 50% !important;
    top: -8px !important;
    transform: translateX(-50%) rotate(90deg) !important;
    border-width: 6px 8px 6px 0 !important;
    border-color: transparent var(--bg-color) transparent transparent !important;
  }

  .shop-editorial-card {
    min-height: 290px;
  }

  .shop-editorial-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .shop-editorial-desc {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 6px;
  }
}

/* ==========================================================================
   SUBPAGE & FUNCTIONAL COMMON STYLES
   ========================================================================== */

/* Subpage Hero */
.subpage-hero {
  background-color: var(--primary-color);
  background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  color: #ffffff;
  padding: 80px 20px 90px;
  text-align: center;
  margin-bottom: 60px;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 10px 30px -10px rgba(17, 94, 70, 0.2);
}

.subpage-hero h1 {
  font-family: var(--font-family);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: #ffffff;
}

.subpage-hero p {
  font-size: 15px;
  opacity: 0.9;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* Interactive Filter Tabs */
.filter-container {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.filter-tabs {
  display: inline-flex;
  background-color: #eae8e2;
  padding: 6px;
  border-radius: 30px;
  gap: 4px;
}

.filter-tab {
  background: transparent;
  border: none;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tab.active {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(17, 94, 70, 0.15);
}

/* Search Box Styles */
.search-container {
  max-width: 500px;
  margin: 0 auto 24px auto;
  padding: 0 16px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 20px 12px 48px;
  font-size: 16px;
  border: 2px solid #eae8e2;
  border-radius: 30px;
  background-color: #ffffff;
  color: var(--text-color);
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(17, 94, 70, 0.1);
}

.search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search and Filter Layout */
.search-filter-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 850px;
  margin: 0 auto 40px auto;
  padding: 0 16px;
  flex-wrap: wrap;
}

.search-filter-wrapper .search-container {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  margin: 0;
  padding: 0;
}

.search-filter-wrapper .search-input {
  border-radius: 8px;
  padding-left: 48px;
}

.search-filter-wrapper .filter-container {
  margin: 0;
}

@media (max-width: 768px) {
  .search-filter-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .search-filter-wrapper .search-container {
    max-width: 100%;
  }
  .search-filter-wrapper .filter-container {
    display: flex;
    justify-content: center;
  }
}

/* walk.html (多米をあるく) Map */
html:has(.walk-map-wrapper),
body:has(.walk-map-wrapper) {
  overflow: hidden;
  height: 100dvh;
  position: fixed;
  width: 100%;
}

.walk-map-wrapper {
  position: relative;
  width: 100%;
  height: calc(100dvh - 100px); /* ヘッダーの高さに合わせる */
  min-height: 500px;
  background-color: #f7f6f3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#walk-map {
  width: 100%;
  height: 100%;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
}

/* Bottom Sheet Style (Desktop/Mobile unified responsive) */
.walk-bottom-sheet {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: #f4f9f6;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 32px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03), 
              0 15px 35px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 104px;
  overflow: hidden;
}

.walk-bottom-sheet.expanded {
  height: 60dvh;
  width: 90%;
  bottom: 20px;
  border-radius: 32px;
}

@media (max-width: 1024px) {
  .walk-bottom-sheet {
    width: 96%;
    bottom: 10px;
    border-radius: 24px;
    height: 104px;
  }
  .walk-bottom-sheet.expanded {
    width: 100%;
    height: 60dvh;
    bottom: 0px;
    border-radius: 24px 24px 0 0;
  }
}

.sheet-header {
  position: relative;
  width: 100%;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: grab;
  z-index: 1010;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
  padding: 4px 0 2px 0;
}

/* 当たり判定（ヒットエリア）を上下に透明拡張 */
.sheet-header::before {
  content: "";
  position: absolute;
  top: -15px;
  bottom: -15px;
  left: 0;
  right: 0;
  z-index: 1;
}

.sheet-header:active {
  cursor: grabbing;
}

.drag-handle {
  display: flex;
  justify-content: center;
  align-items: center;
}

.drag-handle svg {
  transition: fill 0.2s, filter 0.2s;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.8));
}

.sheet-header:hover .drag-handle svg path {
  fill: rgba(0, 0, 0, 0.45);
}

.sheet-toggle-arrow {
  font-size: 11px;
  color: #737069;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.walk-bottom-sheet.expanded .sheet-toggle-arrow {
  transform: rotate(180deg);
}

/* Categories horizontal scrolling tabs */
/* カテゴリタブのシンプルで統一感のあるデザイン */
.category-tab {
  position: relative;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e2ddd5;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  cursor: pointer;
  color: #555555;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-tab:hover {
  border-color: #115E46;
  color: #115E46;
}

.category-tab.active {
  background-color: #115E46 !important;
  border-color: #115E46 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(17, 94, 70, 0.2);
}

.tab-svg-icon {
  flex-shrink: 0;
  display: inline-block;
}

/* 2. アイコンのキビキビした動き（0.15s） */
.tab-icon {
  font-size: 22px;
  margin-bottom: 2px;
  display: inline-block;
  z-index: 2;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* アクティブ時にアイコンをぽこっと拡大させる（視覚的トリガー） */
.category-tab.active .tab-icon {
  transform: scale(1.22);
}

.tab-text {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  word-break: keep-all;
  z-index: 2;
  transition: color 0.3s ease;
}

.category-tabs-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0px 16px 8px 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-tabs-wrapper {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-right: 32px;
  width: 100%;
  cursor: grab;
  user-select: none;
}
.category-tabs-wrapper:active {
  cursor: grabbing;
}

.category-tabs-wrapper::-webkit-scrollbar {
  display: none; /* Safari, Chrome */
}

.category-tab {
  position: relative; /* 背景レイヤー用の位置基準 */
  flex-shrink: 0;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  cursor: pointer;
  color: #666666;
  min-width: 72px;
  z-index: 1; /* 内容が一番前に来るように */
  overflow: hidden; /* 波紋エフェクトをボタン内に抑える */
}

/* ページを開いた時、下からなめらかにフェードインアップして着地する高級感のあるアニメーション */
.category-tab {
  animation: slideUpSettle 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; /* Appleが採用する極めて滑らかな減速カーブ */
  opacity: 0;
}

/* 各タブに時間差のディレイを設定して、右に行くほど遅く出現するようにする */
.category-tab:nth-child(1) { animation-delay: 50ms; }
.category-tab:nth-child(2) { animation-delay: 110ms; }
.category-tab:nth-child(3) { animation-delay: 170ms; }
.category-tab:nth-child(4) { animation-delay: 230ms; }

@keyframes slideUpSettle {
  0% {
    opacity: 0;
    transform: translateY(16px); /* 控えめな高さから静かに開始 */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* バウンスせず、寸分のブレもなく目的地にピタッと吸着 */
  }
}

/* 3. 波紋エフェクト (waves-effect) のCSS定義 */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(11, 102, 35, 0.15); /* テーマの緑に合わせた波紋 */
  transform: scale(0);
  animation: ripple-animation 0.4s ease-out;
  pointer-events: none;
  z-index: 0;
}

@keyframes ripple-animation {
  to {
    transform: scale(3.5);
    opacity: 0;
  }
}

.scroll-arrow {
  position: absolute;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s;
}

/* Spots Vertical List Container */
.spots-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 0; /* カードの左右マージン・ボーダーは枠に密着させる */
  background: #f4f9f6; /* リスト全体を同じ薄緑背景に */
}

.spots-list {
  display: flex;
  flex-direction: column;
  gap: 0px; /* ボーダーで区切るためギャップを0に */
  margin-top: 0px;
}

.spot-card {
  display: flex;
  background-color: transparent; /* プラチナマップ同様、背景を透明にしてカード間の境界線で仕切る */
  padding: 16px;
  gap: 16px;
  cursor: pointer;
  transition: background-color 0.2s, border 0.2s;
  align-items: center;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.05); /* 下部の境界仕切り線 */
  
  /* リストカードのフェードインアップアニメーション */
  opacity: 0;
  transform: translateY(12px);
  animation: premiumFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes premiumFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.spot-card:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.spot-card.highlighted {
  background-color: rgba(247, 160, 114, 0.12); /* コノジテーマカラーの淡いハイライト */
  border-bottom-color: #f7a072;
}

.spot-card-img {
  width: 72px; /* 画像サイズを少し大きめ（72px）に変更 */
  height: 72px;
  border-radius: 20px; /* プラチナマップ風の角の丸い四角形 */
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.spot-card-info {
  flex: 1;
  min-width: 0;
}

.spot-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 4px;
}

.spot-card-desc {
  font-size: 12px;
  color: #666666;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Custom Map Popup Styling */
.custom-map-popup .leaflet-popup-content-wrapper {
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.custom-map-popup .leaflet-popup-content {
  margin: 0;
  font-family: 'Zen Maru Gothic', sans-serif;
  width: 280px !important;
}

.map-popup-content {
  overflow: hidden;
}

.map-popup-img {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: #eae8e2;
}

.map-popup-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 12px 16px 6px 16px;
}

.map-popup-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 16px 12px 16px;
}

.popup-detail-btn {
  display: block;
  text-align: center;
  background-color: #f7a072;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  padding: 10px 0;
  margin: 0 16px 16px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(247, 160, 114, 0.2);
  transition: background-color 0.2s, transform 0.2s;
}

.popup-detail-btn:hover {
  background-color: #f58d56;
  transform: translateY(-1px);
}

.custom-map-popup .leaflet-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 24px !important;
  padding: 0 !important;
  text-align: center !important;
  z-index: 10;
}

/* Mobile responsive adjustments */
@media (max-width: 1200px) {
  .walk-map-wrapper {
    height: calc(100dvh - 76px);
  }
}
@media (max-width: 768px) {
  .walk-map-wrapper {
    height: calc(100dvh - 76px);
  }
}

/* Event Search Bar */
.search-container {
  max-width: 500px;
  margin: 0 auto 40px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 24px;
  border-radius: 30px;
  border: 1.5px solid rgba(115, 112, 105, 0.2);
  background-color: #ffffff;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(17, 94, 70, 0.1);
}

/* Dynamic Operating Status Label (Shops) */
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  margin-left: 8px;
  letter-spacing: 0.02em;
}

.status-badge.status-open {
  background-color: #edf5f0;
  color: #115E46;
  border: 1px solid rgba(17, 94, 70, 0.15);
}

.status-badge.status-closed {
  background-color: #fef0ef;
  color: #c94b3e;
  border: 1px solid rgba(201, 75, 62, 0.15);
}

.status-badge.status-holiday {
  background-color: #f5f4f0;
  color: #737069;
  border: 1px solid rgba(115, 112, 105, 0.15);
}

/* Dynamic Fade Animations */
.fade-item {
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  position: absolute !important;
  visibility: hidden;
}

/* walk.html (多米をあるく) Cards */
.walk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  margin-bottom: 100px;
}

.walk-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.walk-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(17, 94, 70, 0.08);
}

.walk-card-img {
  height: 220px;
  background-color: #eae8e2;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}

.walk-card:hover .walk-card-img {
  transform: scale(1.04);
}

.walk-card-body {
  padding: 30px;
}

.walk-card-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.walk-card-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* people.html (多米の人々) Cards */
.people-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 100px;
}

.people-card-row {
  display: flex;
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.people-card-row:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(17, 94, 70, 0.08);
}

.people-card-row img {
  width: 320px;
  height: 260px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.people-card-row:hover img {
  transform: scale(1.03);
}

.people-card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.people-card-name {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.people-card-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.people-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* shops.html (多米のお店) Cards */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  margin-bottom: 100px;
}

.shop-card {
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.shop-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(17, 94, 70, 0.08);
}

.shop-img-box {
  height: 220px;
  overflow: hidden;
  background-color: #eae8e2;
  position: relative;
}

.shop-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.shop-card:hover .shop-img-box img {
  transform: scale(1.05);
}

.shop-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.shop-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.shop-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.shop-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.shop-info-table {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(115, 112, 105, 0.12);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-info-row {
  display: flex;
  align-items: center;
}

.shop-info-label {
  font-weight: 700;
  width: 80px;
  color: var(--text-dark);
}

/* events.html (多米のイベント) Cards */
.events-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 100px;
}

.event-card-large {
  background-color: #ffffff;
  background-image: linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)), url('photo_image/map.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px;
  padding: 40px;
  border: 1px solid rgba(17, 94, 70, 0.05);
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 40px;
  transition: var(--transition-smooth);
  scroll-margin-top: 120px;
}

.event-card-large:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(17, 94, 70, 0.08);
}

.event-card-date {
  min-width: 130px;
  height: 130px;
  background-color: var(--bg-color);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.event-card-large:hover .event-card-date {
  background-color: var(--primary-color);
  color: #ffffff;
}

.event-card-date .num {
  font-family: var(--font-english);
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  transition: var(--transition-smooth);
}

.event-card-large:hover .event-card-date .num {
  color: #ffffff;
}

.event-card-date .day {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 6px;
  transition: var(--transition-smooth);
}

.event-card-large:hover .event-card-date .day {
  color: rgba(255, 255, 255, 0.8);
}

.event-card-content {
  flex-grow: 1;
}

.event-card-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.event-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  font-weight: 500;
}

.event-card-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* history.html (多米の歴史) Timeline layout */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto 100px;
  padding: 20px 0;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: rgba(17, 94, 70, 0.15);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 40px;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 100%;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 4px solid var(--primary-color);
  transform: translateX(-50%);
  z-index: 5;
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: 0;
}

.timeline-item:hover .timeline-dot {
  background-color: var(--primary-color);
  transform: translateX(-50%) scale(1.2);
}

.timeline-date {
  font-family: var(--font-english);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: block;
}

.timeline-content {
  background: #ffffff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
  display: inline-block;
  text-align: left;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(17, 94, 70, 0.08);
}

.timeline-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.timeline-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Contact Modal (about.html) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 41, 38, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background-color: var(--bg-color);
  width: 90%;
  max-width: 460px;
  border-radius: 28px;
  padding: 40px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(17, 94, 70, 0.1);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0);
}

.modal-icon {
  font-size: 60px;
  line-height: 1;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.modal-message {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.modal-close-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 12px 36px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 20px -6px rgba(17, 94, 70, 0.3);
}

.modal-close-btn:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(17, 94, 70, 0.4);
}

/* ==========================================================================
   SUBPAGE RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 1024px) {
  .subpage-hero {
    padding: 60px 20px 70px;
    margin-bottom: 40px;
    border-radius: 0 0 24px 24px;
  }

  .subpage-hero h1 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .people-card-row {
    flex-direction: column;
  }

  .people-card-row img {
    width: 100%;
    height: 220px;
  }

  .people-card-body {
    padding: 30px;
  }

  .people-card-name {
    font-size: 20px;
  }

  .event-card-large {
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    scroll-margin-top: 96px;
  }

  .event-card-date {
    min-width: 100%;
    height: auto;
    padding: 16px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 16px;
  }

  .event-card-date .day {
    margin-top: 0;
    white-space: nowrap !important; /* 曜日が縦積みで改行されるのを防止 */
  }


  .timeline-container::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding: 0 0 30px 40px;
    text-align: left !important;
  }

  .timeline-dot {
    left: 20px !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-content {
    display: block;
  }
}

@media (max-width: 767px) {
  .subpage-hero h1 {
    font-size: 26px;
  }

  .subpage-hero p {
    font-size: 13px;
  }

  .filter-tabs {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 16px;
    padding: 4px;
  }

  .filter-tab {
    padding: 6px 16px;
    font-size: 12px;
    border-radius: 12px;
  }

  .walk-grid,
  .shops-grid {
    gap: 24px;
  }

  .people-list {
    gap: 24px;
  }

  .people-card-body {
    padding: 20px;
  }

  .shop-body {
    padding: 20px;
  }
}

/* news.html (お知らせ) styles */
.news-grid-large {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 24px;
  padding: 8px;
  border: 1px solid rgba(115, 112, 105, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  max-width: 900px;
  margin: 0 auto 100px;
  overflow: hidden;
}

.news-row-item {
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(115, 112, 105, 0.08);
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-radius: 16px;
}

.news-row-item:last-child {
  border-bottom: none;
}

.news-row-item:hover {
  background-color: rgba(17, 94, 70, 0.02);
}

.news-row-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.news-badge {
  background-color: rgba(17, 94, 70, 0.08);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  display: inline-block;
}

.news-date {
  font-family: var(--font-english);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
}

.news-row-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.news-row-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
  transition: color 0.2s ease;
}

.news-row-item:hover .news-row-title {
  color: var(--primary-color-hover);
}

.news-arrow-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(17, 94, 70, 0.05);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.news-row-item:hover .news-arrow-icon {
  transform: translateX(4px);
  background-color: rgba(17, 94, 70, 0.12);
}

@media (max-width: 768px) {
  .news-grid-large {
    padding: 6px;
    border-radius: 18px;
  }

  .news-row-item {
    padding: 18px 16px;
  }

  .news-row-title {
    font-size: 15px;
  }

  .news-arrow-icon {
    width: 24px;
    height: 24px;
  }
}

/* privacy.html (プライバシーポリシー) styles */
.privacy-content {
  max-width: 800px;
  margin: 0 auto 80px;
  background: #ffffff;
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.privacy-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 12px;
}

.privacy-text {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .privacy-content {
    padding: 30px 20px;
  }
}

/* events.html (多米のイベント) Split Interactive Map Layout Styles */
/* events.html (多米のイベント) Split Interactive Map Layout Styles */
.events-split-layout {
  display: flex;
  position: relative;
  width: 100%;
  height: calc(100vh - 100px);
  /* ヘッダーの高さを考慮して画面いっぱいに */
  margin: 0;
  overflow: hidden;
}

/* Left panel (Floating details panel overlay) */
.events-side-panel {
  position: absolute;
  top: 20px;
  left: 20px;
  bottom: 20px;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 94, 70, 0.2) transparent;
}

.events-side-panel::-webkit-scrollbar {
  width: 6px;
}

.events-side-panel::-webkit-scrollbar-track {
  background: transparent;
}

.events-side-panel::-webkit-scrollbar-thumb {
  background-color: rgba(17, 94, 70, 0.2);
  border-radius: 10px;
}

/* Panel Header inside side panel */
.events-side-panel .panel-header {
  display: block;
  margin-bottom: 5px;
}

.panel-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 6px;
  white-space: nowrap;
}

.panel-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Search & Filter Group inside panel */
.side-panel-search-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Search Container inside panel */
.side-panel-search-filter .search-container {
  max-width: 100%;
  margin-bottom: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.side-panel-search-filter .search-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 46px 8px 16px !important; /* Ensure enough right padding for calendar button */
  font-size: 13px;
  border-radius: 20px;
}

/* Filter Container inside panel */
.side-panel-search-filter .filter-container {
  margin-bottom: 0;
  justify-content: flex-start;
}

.side-panel-search-filter .filter-tabs {
  display: flex;
  width: 100%;
  padding: 4px;
  border-radius: 20px;
  gap: 2px;
}

.side-panel-search-filter .filter-tab {
  flex: 1;
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 16px;
  text-align: center;
  white-space: nowrap;
}

/* Right panel (Fullscreen Map Container) */
.events-map-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-panel-element {
  width: 100%;
  height: 100%;
}

.map-legend-floating {
  position: absolute;
  bottom: 20px;
  right: 20px;
  /* パネルが左にあるため、凡例は右下に移動 */
  left: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  font-size: 11px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-legend-floating span {
  font-weight: 700;
}

/* Mini Calendar Styles inside Panel */
.calendar-card-box {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(17, 94, 70, 0.05);
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.box-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  border-left: 4px solid var(--primary-color);
  padding-left: 10px;
  line-height: 1.2;
}

.mini-calendar {
  width: 100%;
}

.calendar-header,
.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
}

.calendar-header {
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1.5px solid rgba(115, 112, 105, 0.1);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.calendar-header span:first-child {
  color: #c94b3e;
}

.calendar-header span:last-child {
  color: #4b5e7d;
}

.calendar-body span {
  padding: 0;
  /* paddingを排除し、aspect-ratio: 1による完璧な正円を維持 */
  font-weight: 700;
  color: var(--text-dark);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  margin: 1px;
}

.calendar-body .day-empty {
  color: #dcdad4;
  font-weight: 400;
}

.calendar-body .has-event {
  background-color: var(--primary-color);
  /* 最初から綺麗な濃い緑の丸にする */
  color: #ffffff;
  /* 文字は白 */
  cursor: pointer;
  transition: var(--transition-smooth);
}

.calendar-body .has-event:hover {
  background-color: var(--primary-color-hover);
  color: #ffffff;
}

.event-dot-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #ffffff;
  /* 背景が緑なのでドットは白にして視認性を高める */
}

.calendar-body .has-event:hover .event-dot-indicator {
  background-color: #ffffff;
}

.calendar-notice {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .events-split-layout {
    flex-direction: column-reverse;
    height: calc(100vh - 76px);
    /* フォールバック */
    height: calc(100dvh - 76px);
    /* モバイルのツールバー・アドレスバー高さを動的に考慮 */
    overflow: hidden;
  }

  .events-side-panel {
    position: relative;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 46vh;
    min-height: 330px;
    max-height: 420px;
    /* 地図のスペースを減らし、カードの表示エリアを広げる */
    flex-shrink: 0;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-top: 1px solid rgba(17, 94, 70, 0.08);
    padding: 10px 16px;
    overflow: hidden;
    gap: 8px;
    z-index: 10;
    touch-action: pan-x;
    /* 左右スワイプのみを許容し、上下のガタつきを防ぐ */
  }

  .events-side-panel .panel-header {
    display: none;
  }

  .events-side-panel .calendar-card-box {
    display: none;
  }

  .events-map-panel {
    position: relative;
    width: 100%;
    height: auto;
    flex: 1;
    /* 地図が残りの上部スペースを自動で埋める（スマホサイズに合わせて小さくなる） */
    min-height: auto;
    z-index: 1;
  }

  .map-legend-floating {
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    padding: 6px 10px;
  }

  /* カルーセル化 */
  .events-side-panel .events-grid {
    display: flex;
    flex-direction: row !important;
    overflow: visible !important;
    /* JSで動かすためスクロールは無効化 */
    gap: 12px;
    padding: 4px 0 10px;
    margin-bottom: 0;
    transform: translateX(0px);
    flex: 1; /* パネルの余り高さをすべて使う */
    min-height: 0;
  }

  .events-side-panel .event-card-large {
    flex: 0 0 calc(100% - 32px);
    /* 右側に次のカードの左端が「チラ見え」する幅に調整 */
    box-sizing: border-box;
    height: 100% !important; /* パネルの高さに合わせて自動調整 */
    display: flex !important;
    align-items: flex-start !important;
    padding: 10px !important;
    gap: 8px !important;
    border-radius: 0 !important; /* 角丸をなくして真四角に */
    border: 1px solid rgba(17, 94, 70, 0.1) !important; /* 主張しすぎない極めて薄い緑の枠線 */
    background: #ffffff !important; /* はっきりとした白背景 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important; /* なめらかで自然な影 */
  }

  .events-side-panel .event-card-date {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    line-height: 1.1 !important;
    border-radius: 0 !important; /* 日付部分も真四角に統一 */
  }

  .events-side-panel .event-card-date .num {
    font-size: 13px !important;
  }

  .events-side-panel .event-card-date .day {
    font-size: 8px !important;
  }

  .events-side-panel .event-card-content {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow-y: auto !important;
    padding-right: 4px;
  }

  .events-side-panel .event-card-content::-webkit-scrollbar {
    width: 3px;
  }
  .events-side-panel .event-card-content::-webkit-scrollbar-thumb {
    background: rgba(17, 94, 70, 0.2);
    border-radius: 2px;
  }

  .events-side-panel .event-card-title {
    font-size: 13px !important;
    margin-bottom: 2px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .events-side-panel .event-card-meta {
    font-size: 10px !important;
    margin-bottom: 4px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 4px 12px !important;
  }

  .events-side-panel .event-card-text {
    font-size: 10px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px;
  }

  .events-side-panel .event-detail-table {
    width: 100%;
    font-size: 10px !important;
  }
  .events-side-panel .event-detail-table th,
  .events-side-panel .event-detail-table td {
    padding: 2px 0 !important;
  }

  .events-side-panel.detail-active {
    height: 380px !important;
    /* 詳細表示時は高さを少し増やして固定値にする */
    touch-action: auto;
  }

  .mobile-map-detail-panel {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(251, 250, 247, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    padding: 14px 16px;
    box-sizing: border-box;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    flex-direction: column;
  }

  .mobile-map-detail-panel.active {
    display: flex;
  }

  .mobile-detail-close-btn {
    align-self: flex-end;
    background: rgba(17, 94, 70, 0.08);
    border: 1px solid rgba(17, 94, 70, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s ease;
  }

  .mobile-detail-close-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
  }

  .leaflet-popup {
    display: none !important;
  }
}

/* --- events.html サイドパネル内カードのコンパクト最適化 & マイクロインタラクション --- */
.events-side-panel .events-grid {
  gap: 16px;
  margin-bottom: 0;
}

.events-side-panel .event-card-large {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 12px;
  gap: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(17, 94, 70, 0.04);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.3s ease;
}

.events-side-panel .event-card-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 94, 70, 0.08);
  border-color: rgba(17, 94, 70, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

.events-side-panel .event-card-date {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 10px;
  border: 1.5px solid var(--primary-color);
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1.1;
  box-sizing: border-box;
}

.events-side-panel .event-card-date .num {
  font-size: 15px;
  font-weight: 900;
  font-family: var(--font-english);
}

.events-side-panel .event-card-date .day {
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
}

.events-side-panel .event-card-title {
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.badge-recurrence {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  border: 1px solid rgba(17, 94, 70, 0.12);
  white-space: nowrap;
}

.events-side-panel .event-card-meta {
  font-size: 11px;
  gap: 2px;
  margin-bottom: 4px;
  color: var(--text-muted);
  flex-direction: column;
}

.events-side-panel .event-card-meta span {
  display: block;
}

.events-side-panel .event-card-text {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-dark);
}

/* --- カードのアクティブハイライト（グロー＆ウェーブ効果） --- */
.event-card-large.active-highlight {
  animation: cardHighlightGlow 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 10;
}

@keyframes cardHighlightGlow {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-color: rgba(17, 94, 70, 0.04);
  }

  15% {
    box-shadow: 0 0 30px rgba(17, 94, 70, 0.65), 0 0 10px rgba(17, 94, 70, 0.3);
    border-color: var(--primary-color);
    transform: scale(1.04) translateY(-6px);
    background: #fbfdff;
  }

  30% {
    box-shadow: 0 0 25px rgba(17, 94, 70, 0.45);
    transform: scale(1.02) translateY(-3px);
  }

  75% {
    box-shadow: 0 0 20px rgba(17, 94, 70, 0.35);
    border-color: var(--primary-color);
    transform: scale(1.01) translateY(-2px);
    background: #ffffff;
  }

  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-color: rgba(17, 94, 70, 0.04);
    transform: none;
    background: rgba(255, 255, 255, 0.7);
  }
}

/* --- 地図上のカスタムパルスマーカーのCSS --- */
.custom-map-pin {
  background: transparent;
  border: none;
}

.pin-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pin-marker:hover {
  transform: scale(1.3);
}

.pin-green {
  background-color: #2e7d32;
}

.pin-yellow {
  background-color: #f5a623;
}

.pin-blue {
  background-color: #1565c0;
}

/* 波紋アニメーションの定義 */
.pin-pulse {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  opacity: 0;
  animation: pinPulseWave 2s infinite ease-out;
  pointer-events: none;
}

.pin-green .pin-pulse {
  border-color: #2e7d32;
}

.pin-yellow .pin-pulse {
  border-color: #f5a623;
}

.pin-blue .pin-pulse {
  border-color: #1565c0;
}

@keyframes pinPulseWave {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }

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

/* ==========================================================================
   CALENDAR POPUP MODAL & WEEK VIEW STYLES
   ========================================================================== */

.search-container {
  position: relative;
  width: 100%;
}

.side-panel-search-filter .search-input {
  padding-right: 46px !important;
  /* カレンダーボタン用スペースの確保 */
}

.calendar-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(17, 94, 70, 0.15);
  transition: var(--transition-smooth);
  padding: 0;
  z-index: 5;
}

.calendar-toggle-btn:hover {
  background: var(--primary-color-hover);
  transform: translateY(-50%) scale(1.08);
}

.calendar-popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.calendar-popup-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.calendar-popup-content {
  background: #ffffff;
  width: 90%;
  max-width: 440px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(17, 94, 70, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: var(--text-dark);
}

.calendar-popup-modal.active .calendar-popup-content {
  transform: translateY(0);
}

.calendar-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid rgba(115, 112, 105, 0.1);
  padding-bottom: 10px;
}

.calendar-view-toggle {
  display: flex;
  background: #eae8e2;
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.view-toggle-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(17, 94, 70, 0.15);
}

.calendar-popup-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.calendar-popup-close:hover {
  color: var(--primary-color);
}

.calendar-popup-body {
  position: relative;
  min-height: 240px;
}

.calendar-view-container {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.calendar-view-container.active {
  display: flex;
}

.calendar-month-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-color);
  margin: 2px 0 6px;
  text-align: center;
}

/* Week View Navigation */
.week-view-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.week-nav-btn {
  background: #eae8e2;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-dark);
}

.week-nav-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.week-range-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
}

/* Week Days Grid */
.week-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  margin-bottom: 12px;
}

.week-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f4f0;
  border-radius: 10px;
  padding: 6px 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.week-day-col.active {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(17, 94, 70, 0.08);
}

.week-day-col.has-event {
  background: rgba(17, 94, 70, 0.06);
}

.week-day-col.has-event.active {
  background: rgba(17, 94, 70, 0.12);
}

.week-day-col .day-name {
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.week-day-col .day-num {
  font-family: var(--font-english);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}

.week-day-col.has-event .day-num {
  color: var(--primary-color);
}

.week-day-col .week-event-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--primary-color);
  margin-top: 2px;
}

/* Event Detail Box */
.week-event-detail-box {
  background: #f5f4f0;
  border-radius: 14px;
  padding: 10px 14px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.no-event-placeholder {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.week-event-info h5 {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 4px 0;
}

.week-event-info p {
  font-size: 10px;
  color: var(--text-muted);
  margin: 2px 0;
  line-height: 1.4;
}

.week-event-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.week-event-link-btn:hover {
  background: var(--primary-color-hover);
}

/* ==========================================================================
   DETAIL PAGE TEMPLATE BASIC LAYOUTS
   ========================================================================== */
.detail-page-container {
  max-width: 1440px;
  /* 他の共通セクションと揃える */
  margin: 0 auto 80px;
  padding: 20px clamp(20px, 4vw, 40px);
  /* 白枠がなくなったため内側の余白を少し締め気味にする */
}

.detail-back-link {
  margin-bottom: 24px;
}

.detail-back-link a {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.detail-back-link a:hover {
  color: var(--primary-color-hover);
}

.detail-main-layout {
  display: flex;
  gap: 40px;
}

.detail-image-frame {
  flex: 0 0 45%;
  border-radius: 20px;
  overflow: hidden;
  background-color: #eae8e2;
  box-shadow: var(--shadow-soft);
}

.detail-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.detail-meta-header {
  margin-bottom: 12px;
}

.detail-content-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-dark);
  margin: 0 0 16px 0;
}

.detail-main-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.detail-info-table {
  border-top: 1px solid rgba(115, 112, 105, 0.15);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-info-row {
  display: flex;
  font-size: 14px;
  color: var(--text-dark);
}

.detail-info-label {
  font-weight: 700;
  width: 100px;
  color: var(--text-muted);
}

/* News Detail specific */
.news-detail-article {
  padding: 10px 0;
}

.news-detail-header {
  border-bottom: 1.5px solid rgba(115, 112, 105, 0.15);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.news-detail-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-dark);
  margin: 12px 0 0 0;
}

.news-detail-body {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
}

.news-detail-extended {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .detail-page-container {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .detail-main-layout {
    flex-direction: column;
    gap: 24px;
  }

  .detail-image-frame {
    width: 100%;
    height: 200px;
  }

  .detail-content-title {
    font-size: 22px;
  }

  .news-detail-title {
    font-size: 18px;
  }
}

/* Scroll lock when mobile menu is open */
html.menu-open,
body.menu-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  height: 100dvh !important;
}

/* Prevent auto-zooming on focus in iOS devices */
@media (max-width: 768px) {

  input,
  textarea,
  select,
  .search-input {
    font-size: 16px !important;
  }
}

/* Local Facilities Styling in Event Side Panel */
.local-facilities-box {
  margin-top: 30px;
  background-color: #ffffff;
}

.facilities-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 15px 0;
}

.facility-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  background-color: var(--bg-color);
  border: 1.5px solid rgba(17, 94, 70, 0.08);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  width: 100%;
}

.facility-btn:hover {
  background-color: #ffffff;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(17, 94, 70, 0.08);
}

.facility-btn:active {
  transform: translateY(0);
}

.btn-emoji {
  font-size: 18px;
  display: inline-block;
  line-height: 1;
}

/* Premium Modern Map Pins Styling */
.custom-premium-pin {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modern-pin-body {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  cursor: pointer;
}

/* Event pin (Green) - Common */
.modern-pin-body.event-pin {
  border: 2.5px solid #ffffff !important; /* 白の枠線を太くして視認性を向上 */
  color: #ffffff;
}

/* Event single pin (Round - Green) */
.modern-pin-body.event-pin.single-pin {
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1ea87d, var(--primary-color)) !important;
  box-shadow: 0 6px 16px rgba(17, 94, 70, 0.35) !important; /* 通常時は影を控えめに */
  font-family: "Outfit", sans-serif !important;
}

/* アクティブなピンのスタイル強化（拡大 ＆ 最前面 ＆ 影の強化） */
.modern-pin-body.active-pin {
  transform: scale(1.22) translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35) !important;
  z-index: 9999 !important; /* 重なりを無視して最前面へ */
}

/* 波紋アニメーション（緑・アクティブ時のみ） */
.modern-pin-body.event-pin.single-pin.active-pin::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #1ea87d;
  opacity: 0;
  animation: pinPulseGreen 2s infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes pinPulseGreen {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Event multi-location pin (Square - Orange) */
.modern-pin-body.event-pin.location-pin {
  border-radius: 12px !important;
  background: linear-gradient(135deg, #ff9100, #e65100) !important;
  box-shadow: 0 6px 16px rgba(230, 81, 0, 0.35) !important; /* 通常時は影を控えめに */
  font-family: "Outfit", sans-serif !important;
}

/* 波紋アニメーション（オレンジ・アクティブ時のみ） */
.modern-pin-body.event-pin.location-pin.active-pin::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 12px;
  box-shadow: 0 0 0 3px #ff9100;
  opacity: 0;
  animation: pinPulseOrange 2s infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes pinPulseOrange {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Facility pin (Orange) */
.modern-pin-body.facility-pin {
  border-color: #d84315;
  box-shadow: 0 4px 10px rgba(216, 67, 21, 0.25);
}

/* Triangular pointer arrow under the circle */
.modern-pin-body::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #ffffff;
}

.modern-pin-body.event-pin.single-pin::after {
  border-top-color: var(--primary-color) !important;
  bottom: -5px;
}

.modern-pin-body.event-pin.location-pin::after {
  border-top-color: #e65100 !important;
  bottom: -5px;
}

.modern-pin-body.facility-pin::after {
  border-top-color: #d84315;
}

/* Venue pin (Purple) - is_venue施設の常時ピン */
.modern-pin-body.venue-pin {
  border-color: #7c3aed !important;
  background: #ede9fe !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3) !important;
  font-size: 16px !important;
}

.modern-pin-body.venue-pin::after {
  border-top-color: #7c3aed !important;
}

/* badge-venue: popup内の開催地バッジ */
.popup-badge.badge-venue {
  background: #7c3aed;
  color: #fff;
}

.modern-pin-body:hover {
  transform: scale(1.18) translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25) !important;
}


/* Leaflet Popup Premium Redesign Overrides */
.leaflet-popup-content-wrapper {
  background: rgba(251, 250, 247, 0.98) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(17, 94, 70, 0.15) !important;
  box-shadow: 0 8px 24px rgba(42, 41, 38, 0.12) !important;
  padding: 4px !important;
}

.leaflet-popup-tip {
  background: rgba(251, 250, 247, 0.98) !important;
  border: 1px solid rgba(17, 94, 70, 0.15) !important;
  box-shadow: none !important;
}

.leaflet-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 16px !important;
  top: 8px !important;
  right: 8px !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease !important;
}

.leaflet-popup-close-button:hover {
  background-color: rgba(17, 94, 70, 0.08);
  color: var(--text-dark) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
}

.map-popup-card {
  padding: 4px;
  width: 330px;
  max-width: 100%;
}

@media (max-width: 767px) {
  .map-popup-card {
    width: 260px;
  }
}

.popup-header {
  margin-bottom: 8px;
  border-bottom: 2px solid rgba(17, 94, 70, 0.15);
  padding-bottom: 6px;
}

.popup-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.badge-event {
  background-color: rgba(17, 94, 70, 0.1);
  color: var(--primary-color);
}

.badge-facility {
  background-color: rgba(230, 92, 0, 0.1);
  color: #d84315;
}

.popup-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.35;
}

.popup-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.popup-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.popup-info-table tr {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.popup-info-table tr:last-child {
  border-bottom: none;
}

.popup-info-table th {
  text-align: left;
  vertical-align: top;
  width: 62px;
  font-size: 11px;
  color: var(--primary-color);
  font-weight: 800;
  padding: 5px 0;
  white-space: nowrap;
}

.popup-info-table td {
  padding: 5px 0 5px 6px;
  font-size: 11px;
  color: var(--text-dark);
  line-height: 1.4;
  vertical-align: top;
  word-break: break-all;
}

.popup-link {
  color: var(--primary-color) !important;
  text-decoration: underline !important;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.popup-link:hover {
  opacity: 0.7;
}

/* Popup List / Detail View Styling */
.popup-view-list {
  padding: 2px 0;
}

.popup-list-intro {
  font-size: 10px;
  color: var(--text-muted);
  margin: 0 0 6px 0;
}

.popup-search-container {
  margin-bottom: 8px;
}

.popup-search-input {
  width: 100%;
  padding: 6px 10px;
  font-size: 11px;
  border: 1px solid rgba(17, 94, 70, 0.15);
  border-radius: 6px;
  box-sizing: border-box;
  background-color: #ffffff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.popup-search-input:focus {
  border-color: var(--primary-color);
}

.popup-events-scroll-container {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.popup-events-scroll-container::-webkit-scrollbar {
  width: 4px;
}

.popup-events-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.popup-events-scroll-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.popup-events-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-events-ul li {
  width: 100%;
}

.popup-events-ul li.fade-hidden {
  display: none !important;
}

.popup-event-select-btn {
  background: rgba(17, 94, 70, 0.05);
  border: 1px solid rgba(17, 94, 70, 0.12);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.select-btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
}

.select-btn-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  transition: color 0.2s ease;
}

.popup-event-select-btn:hover .select-btn-title {
  color: #ffffff;
}

.select-btn-date-square {
  width: 44px;
  height: 44px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1.1;
  transition: all 0.2s ease;
}

.select-btn-date-square.fallback {
  background-color: rgba(17, 94, 70, 0.1);
  color: var(--primary-color);
}

.date-square-month {
  font-size: 8px;
  font-weight: 700;
  opacity: 0.9;
}

.date-square-day {
  font-size: 15px;
  font-weight: 900;
  font-family: var(--font-english);
}

.date-square-dow {
  font-size: 8px;
  font-weight: 700;
  opacity: 0.8;
}

.date-square-emoji {
  font-size: 18px;
}

.popup-event-select-btn:hover .select-btn-date-square {
  background-color: #ffffff;
  color: var(--primary-color);
}

.popup-event-select-btn:hover .select-btn-date-square.fallback {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.select-btn-time {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.popup-event-select-btn:hover .select-btn-time {
  color: rgba(255, 255, 255, 0.85);
}

.popup-event-select-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(17, 94, 70, 0.15);
}

.popup-back-btn {
  background: var(--primary-light);
  border: 1px solid #cce0d9;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.popup-back-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.popup-view-detail.hidden {
  display: none !important;
}

.popup-view-list.hidden {
  display: none !important;
}

/* Event detail table inside grid cards */
.event-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  border-top: 1px dashed rgba(17, 94, 70, 0.15);
  padding-top: 10px;
}

.event-detail-table tr {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.event-detail-table tr:last-child {
  border-bottom: none;
}

.event-detail-table th {
  text-align: left;
  vertical-align: top;
  width: 75px;
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 800;
  padding: 8px 0;
  white-space: nowrap;
}

.event-detail-table td {
  padding: 8px 0 8px 10px;
  font-size: 12px;
  color: var(--text-dark);
  line-height: 1.5;
  vertical-align: top;
  word-break: break-all;
}

/* ==================== 
   Premium Shop Card Grid (https://xn--w0w51m.com/event/ style)
   ==================== */
.shop-card-new {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
  height: 280px;
}

.shop-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(17, 94, 70, 0.15);
}

.shop-card-new-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.shop-card-new-img-box {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.shop-card-new-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.shop-card-new:hover .shop-card-new-img-box img {
  transform: scale(1.08);
}

.shop-card-new-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  box-sizing: border-box;
}

.shop-card-new-category {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.shop-card-new-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
}

/* ====================
   Premium Shop Detail Layout (https://xn--w0w51m.com/eat/... style)
   ==================== */
.detail-shop-new-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 30px;
  margin-bottom: 80px;
}

.detail-shop-info-card {
  padding: 0 0 30px 0;
  /* 白背景がなくなったため余計な余白を除去 */
}

.shop-info-card-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 12px;
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
}

.shop-premium-info-table {
  width: 100%;
  border-collapse: collapse;
}

.shop-premium-info-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.shop-premium-info-table tr:last-child {
  border-bottom: none;
}

.shop-premium-info-table th {
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  padding: 14px 0;
  width: 90px;
  white-space: nowrap;
}

.shop-premium-info-table td {
  padding: 14px 0 14px 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.shop-premium-info-table td a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: underline;
}

.detail-shop-content-area {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.shop-desc-intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 35px;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

.shop-custom-html-wrapper {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 15px;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  /* 中心から左右に均等に広げる */
  padding: 40px clamp(20px, 4vw, 40px);
  background: transparent;
  box-sizing: border-box;
}

/* 自由HTMLの内部要素が画面いっぱいに広がりつつも、文字情報などが読みやすいように最大1400pxの中央寄せにするためのラッパー */
.shop-custom-html-wrapper>* {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* もし中の画像（img）などを本当に画面幅いっぱいに端まで広げたい場合は、imgだけ100%幅で広がります */
.shop-custom-html-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.shop-custom-html-wrapper h2,
.shop-custom-html-wrapper h3 {
  font-weight: 900;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.shop-custom-html-wrapper h2 {
  font-size: 22px;
  border-bottom: 1px solid rgba(17, 94, 70, 0.2);
  padding-bottom: 8px;
}

.shop-custom-html-wrapper h3 {
  font-size: 18px;
}

.shop-custom-html-wrapper p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.shop-custom-html-wrapper img {
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  height: auto;
}

/* Responsive optimization */
@media (max-width: 900px) {
  .detail-shop-new-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ====================
   Shop Detail Dynamic Slideshow Style
   ==================== */
.shop-detail-slideshow-container {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: #eae8e2;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.shop-detail-slideshow-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.shop-detail-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.shop-detail-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.shop-detail-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrow Navigation */
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: none;
  font-size: 18px;
  padding: 12px 16px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  width: 44px;
  height: 44px;
}

.slideshow-arrow:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.05);
}

.slideshow-arrow.prev {
  left: 15px;
}

.slideshow-arrow.next {
  right: 15px;
}

/* Indicators dots */
.slideshow-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.slide-dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .shop-detail-slideshow-container {
    height: 250px;
  }
}

/* ==========================================================================
   【追記】スマホスライダー操作性・質感の極上化カスタマイズ
   ========================================================================== */

/* 1. タップ・ドラッグ時に青い選択枠やハイライトを出さない（ノイズ徹底排除） */
#people-mobile-carousel,
#shops-mobile-carousel,
#pickup-mobile-carousel,
#people-mobile-carousel *,
#shops-mobile-carousel *,
#pickup-mobile-carousel * {
  -webkit-user-select: none;
  /* テキスト選択禁止 */
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  /* 長押しメニュー禁止 */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  /* タップ時の青い背景を透明に */
  touch-action: pan-y;
}

/* 2. 画像の自動ズーム（ただの横長画像をめっちゃズームして綺麗に収める） */
@media (max-width: 767px) {

  #people-mobile-carousel .people-avatar-wrapper,
  #shops-mobile-carousel .shop-image-frame,
  #pickup-mobile-carousel .shop-image-frame {
    width: 100% !important;
    height: 200px !important;
    /* 高さを綺麗に統一 */
    overflow: hidden !important;
    position: relative !important;
  }

  #people-mobile-carousel .people-avatar,
  #shops-mobile-carousel .shop-img,
  #pickup-mobile-carousel .shop-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* ★ここが最重要：枠に合わせて画像を自動中央ズーム */
    transition: opacity 0.3s ease !important;
    /* 半透明化を滑らかに */
  }

  /* 3. 触れた（タップ・アクティブ）した瞬間に、画像だけをちょっと白く半透明にする */
  #people-mobile-carousel .carousel-card:active .people-avatar,
  #shops-mobile-carousel .carousel-card:active .shop-img,
  #pickup-mobile-carousel .carousel-card:active .shop-img {
    opacity: 0.75;
    /* 75%の不透明度にして上品に背景を透けさせる */
  }
}

/* --- Shop Detail Page Upcoming Events Section --- */
.shop-upcoming-events {
  background: linear-gradient(135deg, #fdfefe 0%, #f6faf6 100%);
  border: 1px solid rgba(17, 94, 70, 0.15);
  border-left: 5px solid var(--primary-color);
  padding: 22px 20px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px -10px rgba(17, 94, 70, 0.12);
  position: relative;
  overflow: hidden;
}

.shop-upcoming-events .upcoming-events-title {
  font-size: 17px;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  border-bottom: 2px dashed rgba(17, 94, 70, 0.12);
  padding-bottom: 12px;
  letter-spacing: 0.02em;
}

.shop-upcoming-events .upcoming-events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-upcoming-events .event-item-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.shop-upcoming-events .event-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 94, 70, 0.25);
  box-shadow: 0 8px 20px rgba(17, 94, 70, 0.08);
}

/* カレンダー日めくり風バッジ */
.shop-upcoming-events .event-calendar-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 52px;
  height: 56px;
  min-width: 52px;
  background: #ffffff;
  border: 1.5px solid var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(17, 94, 70, 0.08);
  flex-shrink: 0;
  margin-right: 12px;
  box-sizing: border-box;
}

.shop-upcoming-events .event-calendar-badge .cal-month {
  width: 100%;
  text-align: center;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 9px;
  font-weight: 850;
  padding: 2px 0;
  line-height: 1;
}

.shop-upcoming-events .event-calendar-badge .cal-day {
  font-size: 17px;
  font-weight: 900;
  color: #333333;
  line-height: 1;
  font-family: var(--font-english);
  margin-top: 1px;
}

.shop-upcoming-events .event-calendar-badge .cal-wday {
  font-size: 9px;
  font-weight: 700;
  color: #666666;
  padding-bottom: 2px;
  line-height: 1;
}

/* 土曜日・日曜日用の色替え */
.shop-upcoming-events .event-calendar-badge.wday-sun {
  border-color: #c94b3e;
}
.shop-upcoming-events .event-calendar-badge.wday-sun .cal-month {
  background-color: #c94b3e;
}
.shop-upcoming-events .event-calendar-badge.wday-sun .cal-day,
.shop-upcoming-events .event-calendar-badge.wday-sun .cal-wday {
  color: #c94b3e;
}

.shop-upcoming-events .event-calendar-badge.wday-sat {
  border-color: #4b5e7d;
}
.shop-upcoming-events .event-calendar-badge.wday-sat .cal-month {
  background-color: #4b5e7d;
}
.shop-upcoming-events .event-calendar-badge.wday-sat .cal-day,
.shop-upcoming-events .event-calendar-badge.wday-sat .cal-wday {
  color: #4b5e7d;
}

.shop-upcoming-events .event-details-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.shop-upcoming-events .event-title-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-upcoming-events .event-item-card:hover .event-title-text {
  color: var(--primary-color);
}

.shop-upcoming-events .event-time-text {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.shop-upcoming-events .event-arrow {
  color: var(--primary-color);
  font-size: 16px;
  margin-left: 10px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.6;
}

.shop-upcoming-events .event-item-card:hover .event-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* --- Event Page Toggle Tabs & Legend --- */
.event-archive-tabs {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  background-color: #eae8e2;
  padding: 3px;
  border-radius: 20px;
  max-width: fit-content;
}

.event-archive-tabs .archive-tab-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  background-color: transparent;
  color: #555;
}

.event-archive-tabs .archive-tab-btn.active {
  background-color: var(--primary-color);
  color: #ffffff;
}

.map-legend-floating {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

/* イベントページ専用：全体をスクロール禁止にして1画面に収める */
html.page-events-html,
body.page-events {
  height: 100vh;
  height: 100dvh;
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

/* ==========================================================================
   ABOUT PAGE CUSTOM STYLES
   ========================================================================== */
.about-main {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.about-intro-section {
  text-align: center;
  margin-bottom: 60px;
}

.intro-tagline {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.intro-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--text-dark);
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 70px;
}

.concept-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid rgba(17, 94, 70, 0.06);
  box-shadow: 0 10px 30px rgba(42, 41, 38, 0.03);
  transition: var(--transition-smooth);
}

.concept-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(17, 94, 70, 0.08);
  border-color: rgba(17, 94, 70, 0.15);
}

.concept-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(17, 94, 70, 0.08);
  padding-bottom: 12px;
}

.concept-num {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  opacity: 0.6;
}

.concept-card-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0;
}

.concept-card-text {
  font-size: 14px;
  line-height: 1.8;
  color: #55524c;
  margin: 0;
}

.story-section {
  display: flex;
  align-items: center;
  gap: 60px;
  background-color: #ffffff;
  border-radius: 30px;
  padding: 50px;
  border: 1px solid rgba(17, 94, 70, 0.05);
  box-shadow: var(--shadow-soft);
}

.story-visual-box {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.konoji-frame-graphic {
  width: 200px;
  height: 200px;
  border: 16px solid var(--primary-color);
  border-left: none;
  border-radius: 0 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.konoji-frame-graphic::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--bg-color, #f6f5f1);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  left: -12px;
  top: -20px;
}

.konoji-frame-graphic::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--bg-color, #f6f5f1);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  left: -12px;
  bottom: -20px;
}

.shape-text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: 0.05em;
}

.story-text-box {
  flex: 1;
}

.story-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 20px 0;
}

.story-p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
  margin: 0 0 16px 0;
}

.story-p:last-child {
  margin-bottom: 0;
}

/* PC-only line break helper class */
.pc-only-br {
  display: block;
}

@media (max-width: 900px) {
  .concept-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .story-section {
    flex-direction: column;
    gap: 40px;
    padding: 35px 25px;
  }
  
  .story-visual-box {
    flex: none;
    width: 100%;
  }

  .pc-only-br {
    display: none;
  }
}

@media (max-width: 768px) {
  .about-main {
    margin-bottom: 50px;
    padding: 0 16px;
  }

  .about-intro-section {
    margin-bottom: 40px;
  }

  .intro-lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .concept-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .concept-icon-wrap {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .concept-card-title {
    font-size: 16px;
  }

  .concept-card-text {
    font-size: 13.5px;
    line-height: 1.7;
  }

  .story-section {
    padding: 30px 20px;
    border-radius: 20px;
    gap: 30px;
  }

  .story-visual-box {
    margin-bottom: 10px;
  }

  .konoji-frame-graphic {
    width: 160px;
    height: 160px;
    border-width: 12px;
    border-radius: 0 20px 20px 0;
  }

  .konoji-frame-graphic::after,
  .konoji-frame-graphic::before {
    width: 18px;
    height: 18px;
    border-width: 3px;
    left: -9px;
  }

  .konoji-frame-graphic::after {
    top: -15px;
  }

  .konoji-frame-graphic::before {
    bottom: -15px;
  }

  .shape-text {
    font-size: 22px;
  }

  .story-title {
    font-size: 20px;
    margin-bottom: 14px;
    text-align: center;
  }

  .story-p {
    font-size: 13.5px;
    line-height: 1.75;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 120px 20px 40px;
    min-height: auto;
    height: auto;
    background-color: var(--bg-color, #f6f5f1);
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* タイトル周りのバグ修正とデザイン調整 */
  .hero-text-side {
    display: contents; /* ラッパーを無視させて order による並び替えを有効にする */
  }

  .hero-title-wrap {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
  }

  .hero-sub-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark, #2a2926);
    letter-spacing: 0.1em;
    margin-bottom: 4px !important;
    text-align: center;
  }

  .hero-main-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.6;
    color: var(--text-dark, #2a2926);
    text-align: center;
    letter-spacing: 0.12em;
    margin: 0 !important;
  }

  .hero-main-title .brand-ko {
    color: var(--primary-color, #115e46);
    letter-spacing: 0.15em;
  }

  .hero-main-title .brand-noji {
    color: var(--text-dark, #2a2926);
    letter-spacing: 0.15em;
  }

  .hero-main-title .welcome-text {
    display: block;
    margin-top: 2px;
    color: var(--text-dark, #2a2926);
    letter-spacing: 0.12em;
  }

  .hero-desc-text {
    display: none;
  }

  /* マップの切り抜きとマスク設定 */
  .hero-map-side {
    order: 2;
    width: 100vw !important;
    max-width: 330px !important; /* 1画面に収まりやすくするため最大幅を330pxに微調整 */
    margin-left: -20px !important;
    margin-right: -20px !important;
    aspect-ratio: 3 / 4 !important; /* 縦横比を3:4（縦長）に設定し、大迫力にします */
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
  }

  .map-image-wrapper {
    max-width: 100% !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    box-shadow: none !important;
    border: none !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    /* 親コンテナに楕円状のぼかしマスクをかけることで、画像が大きく表示されたまま周囲が滑らかに透明に溶け込みます */
    -webkit-mask-image: -webkit-radial-gradient(center, ellipse, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 80%) !important;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 80%) !important;
  }

  .hero-map-img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important; /* 100%を維持するためmax-heightを解除 */
    transform: scale(1.15) !important; /* ズーム倍率を1.15倍に少し控えめに調整 */
    transform-origin: center center !important;
    object-fit: cover !important; /* 左右いっぱいにトリミングして大きく表示 */
  }

  /* CTAボタンを白い角丸長方形のカード型に変更 (画像の下部に重ねる) */
  .hero-cta-wrap {
    order: 3;
    position: relative !important;
    z-index: 100 !important;
    width: 90% !important;
    max-width: 380px !important;
    margin: -80px auto 0 !important; /* ボタンが画面内にしっかり収まるよう、重ね合わせ位置を上に引き上げ */
    transform: none !important;
    bottom: auto !important;
    left: auto !important;
  }

  .hero-cta-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #ffffff !important;
    color: var(--text-dark, #2a2926) !important;
    border: 1px solid rgba(17, 94, 70, 0.12) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    padding: 16px 24px !important;
    width: 100% !important;
    max-width: none !important;
    text-align: left !important;
    transition: all 0.3s ease !important;
  }

  .hero-cta-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12) !important;
  }

  /* PC用の矢印やサブテキストを非表示にする */
  .pc-arrow,
  .pc-only-text {
    display: none !important;
  }

  /* モバイル用のレイアウト */
  .mobile-only {
    display: block !important;
  }

  .cta-btn-text-left {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
  }

  .cta-btn-main-text {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--text-dark, #2a2926) !important;
    font-family: 'Zen Maru Gothic', sans-serif !important;
  }

  .cta-btn-sub-text.mobile-only {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #737069 !important;
    letter-spacing: 0.05em !important;
    margin-top: 4px !important;
  }

  .cta-btn-arrow.mobile-only {
    display: inline-block !important;
    font-size: 22px !important;
    color: var(--primary-color, #115e46) !important;
    font-weight: bold !important;
    transition: transform 0.3s ease !important;
  }

  .hero-cta-btn:hover .cta-btn-arrow.mobile-only {
    transform: translateX(4px) !important;
  }

  /* 画面幅が380px（マップ最大幅）を超えるデバイス（タブレットなど）では、マイナスマージンを解除して中央寄せにします */
  @media (min-width: 380px) {
    .hero-map-side {
      margin-left: auto !important;
      margin-right: auto !important;
      width: 100% !important;
    }
  }

  /* 今日の多米セクションとの間の無駄な隙間を解消 */
  .today-section {
    margin-top: 20px !important;
  }
}

/* Emergency Alert Ticker styles */
.emergency-alert-ticker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background-color: #d9534f; /* Fallback default red */
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  z-index: 3100;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Color themes */
.emergency-alert-ticker.theme-emergency { background-color: #d9534f; color: #ffffff; }
.emergency-alert-ticker.theme-notice { background-color: #115e46; color: #ffffff; }
.emergency-alert-ticker.theme-info { background-color: #f4f3ef; color: #555555; }
.emergency-alert-ticker.theme-info a { color: #555555 !important; }
.emergency-alert-ticker.theme-emergency a,
.emergency-alert-ticker.theme-notice a { color: #ffffff !important; }

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-scroll 25s linear infinite;
}

.ticker-content span {
  display: inline-block;
  padding-right: 80px;
}

@keyframes ticker-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Adjustments when ticker is active */
body.has-emergency-alert {
  padding-top: 144px !important;
}

body.has-emergency-alert:has(.hero-section) {
  padding-top: 44px !important;
}

body.has-emergency-alert .site-header {
  top: 44px;
}

@media (max-width: 1024px) {
  body.has-emergency-alert {
    padding-top: 120px !important;
  }
  body.has-emergency-alert:has(.hero-section) {
    padding-top: 44px !important;
  }
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 50px 0 20px 0;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1.5px solid #eae8e2;
  color: var(--text-dark, #2a2926);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  box-shadow: var(--shadow-soft);
}

.pagination-btn:hover {
  border-color: var(--primary-color, #115E46);
  color: var(--primary-color, #115E46);
  background-color: #f4fcf9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(17, 94, 70, 0.1);
}

.pagination-btn.active {
  background-color: var(--primary-color, #115E46);
  border-color: var(--primary-color, #115E46);
  color: #ffffff;
  cursor: default;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(17, 94, 70, 0.2);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* ==========================================================================
   AI ＆ 通常ハイブリッド検索バー・バルーン用スタイル
   ========================================================================== */

/* 一体型ハイブリッド検索バーコンテナ */
.hybrid-search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #ddd;
  border-radius: 50px; /* 完全に丸角の一体バー */
  padding: 4px 6px 4px 20px; /* 左側にアイコン用の余白 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hybrid-search-bar:focus-within {
  border-color: #2A2926;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* 🔍アイコン */
.hybrid-search-icon {
  color: #888;
  display: flex;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}

/* テキストインプット (アイコンやクリアボタンと被らない) */
.hybrid-search-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  width: 100% !important;
  font-size: 15px !important;
  padding: 10px 0 !important;
  font-family: inherit !important;
  color: #333 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.hybrid-search-input::placeholder {
  color: #aaa;
}

/* ✕クリアボタン */
.hybrid-search-clear {
  border: none;
  background: none;
  font-size: 22px;
  color: #bbb;
  cursor: pointer;
  display: none;
  padding: 0 12px;
  line-height: 1;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.hybrid-search-clear:hover {
  color: #666;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .hybrid-search-bar {
    border-radius: 20px;
    padding: 8px 16px;
  }
  
  .hybrid-search-icon {
    margin-right: 8px;
  }
  
  .hybrid-search-input {
    font-size: 14px !important;
  }
}

/* 🗺️ マップ上のツールチップ (店名ホバー表示) */
.map-tooltip {
  background-color: rgba(42, 41, 38, 0.9) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-family: 'Zen Maru Gothic', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.map-tooltip:before {
  border-top-color: rgba(42, 41, 38, 0.9) !important;
}

/* pickupセクションヘッダーの中央寄せ＆目立たせる装飾 */
.pickup-header {
  justify-content: center !important;
  text-align: center !important;
  margin-bottom: 45px !important;
}
.pickup-header .section-title-wrap {
  align-items: center !important;
  display: flex;
  flex-direction: column;
}
.pickup-header .title-with-number {
  align-items: center !important;
  justify-content: center !important;
  padding-left: 0 !important;
}
.pickup-header .section-number-bg {
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: -42px !important;
}
.pickup-header .section-title {
  font-size: 38px !important; /* 他セクションより大幅に拡大 */
  font-weight: 900 !important; /* 極太 */
  color: var(--primary-color) !important; /* ブランドのメイン緑カラー */
  letter-spacing: 2px !important;
  margin-top: 10px !important;
  position: relative !important;
  display: inline-block !important;
  z-index: 1;
}
/* タイトルの下部に手書きの蛍光マーカー風のアンダーラインを追加 */
.pickup-header .section-title::after {
  content: '' !important;
  position: absolute !important;
  left: -5px !important;
  bottom: 2px !important;
  width: calc(100% + 10px) !important;
  height: 12px !important;
  background-color: rgba(245, 158, 11, 0.35) !important; /* 鮮やかなイエローオレンジ */
  z-index: -1 !important;
  border-radius: 6px !important;
}

@media (max-width: 767px) {
  .pickup-header .section-title {
    font-size: 28px !important; /* スマホサイズでも見劣りしないよう調整 */
  }
  .pickup-header .section-title::after {
    height: 8px !important;
    bottom: 1px !important;
  }
}

#pickup-mobile-carousel {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* PC表示時の今日のpickup！スライダー用スタイル */
@media (min-width: 768px) {
  #pickup-mobile-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  #pickup-mobile-carousel .carousel-card {
    flex: 0 0 35vw !important;
    width: 35vw !important;
    max-width: 450px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  #pickup-mobile-carousel .shop-image-frame {
    width: 100% !important;
    height: 280px !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px !important;
  }

  #pickup-mobile-carousel .shop-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: opacity 0.3s ease !important;
  }

  #pickup-mobile-carousel .shop-editorial-content {
    padding: 20px 10px !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  
  /* PC用のドットを表示 */
  #pickup-mobile-dots {
    display: flex !important;
  }
}

/* PC表示（1025px以上）ではスマホ用ボタンを完全に非表示にする */
@media (min-width: 1025px) {
  .view-all-mobile {
    display: none !important;
  }
}

/* スマホ・タブレット表示時に「すべて見る」をわかりやすいオシャレなボタンデザインにして強制表示 */
@media (max-width: 1024px) {
  .view-all-mobile {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    
    /* ボタン風デザインへの極上化 */
    width: fit-content !important;
    margin: 25px auto 15px !important;
    padding: 10px 24px !important;
    background-color: var(--primary-color) !important; /* ブランドの緑背景 */
    color: #ffffff !important; /* 白文字 */
    border-radius: 50px !important; /* カプセル型角丸 */
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(17, 94, 70, 0.15) !important;
    transition: all 0.3s ease !important;
  }
  
  .view-all-mobile:active {
    transform: scale(0.96) !important;
    background-color: var(--primary-color-hover) !important;
    box-shadow: 0 2px 6px rgba(17, 94, 70, 0.1) !important;
  }
  
  .view-all-mobile .arrow {
    margin-left: 4px !important;
    transition: transform 0.3s ease !important;
  }
  
  .view-all-mobile:active .arrow {
    transform: translateX(3px) !important;
  }
  
  /* ドットの強制表示 */
  body .carousel-dots.sp-only,
  body #people-mobile-dots.sp-only,
  body #shops-mobile-dots.sp-only {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   NEWS DETAIL ATTACHMENTS & IMAGE GALLERY STYLES
   ========================================================================== */

.btn-news-attachment {
  display: inline-flex;
  align-items: center;
  background-color: #f4f9f6;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(17, 94, 70, 0.05);
}

.btn-news-attachment:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.news-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.news-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.news-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox Modal */
.news-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
}

.news-lightbox.active {
  display: flex;
  opacity: 1;
}

.news-lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.news-lightbox.active .news-lightbox-content {
  transform: scale(1);
}

.news-lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  line-height: 1;
}

.news-lightbox-close:hover,
.news-lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px){
  .news-lightbox-content {
    max-width: 95%;
    max-height: 75%;
  }
  .news-lightbox-close {
    top: 16px;
    right: 20px;
    font-size: 32px;
  }
  .news-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
}

/* Fluid scale for desktop nav on mid-size screens (iPad Pro 12.9, small laptops) */
@media (min-width: 1201px) and (max-width: 1366px) {
  .desktop-nav {
    margin: 0 clamp(10px, 1.5vw, 20px) !important;
  }
  .desktop-nav ul {
    gap: clamp(10px, 1.5vw, 18px) !important;
  }
  .desktop-nav ul li a img {
    height: 40px !important;
  }
  .desktop-nav .nav-text {
    font-size: 11px !important;
  }
  .site-logo img {
    height: 46px !important;
    width: auto !important;
  }
  .header-right {
    gap: 12px !important;
  }
  .btn-contact {
    padding: 10px 18px !important;
    font-size: 13px !important;
  }
}

/* ==========================================================================
   AI SEARCH UI STYLES
   ========================================================================== */
.ai-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #6366f1;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 30px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  outline: none;
}

.ai-search-btn:hover {
  background-color: #4f46e5;
}

.ai-search-btn.active {
  background-color: #d97706;
}

.ai-search-btn svg {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.ai-search-btn.active svg {
  transform: rotate(20deg) scale(1.15);
}

/* AI Chat Balloon */
.ai-response-balloon {
  background-color: #f7f6f2;
  border: 2px solid rgba(17, 94, 70, 0.1);
  border-radius: 20px;
  padding: 20px;
  margin-top: 16px;
  position: relative;
  box-shadow: var(--shadow-soft);
  max-width: 600px;
  display: none;
  animation: balloonFadeIn 0.4s ease forwards;
}

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

.ai-response-balloon::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 30px;
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #f7f6f2 transparent;
  z-index: 2;
}

.ai-response-balloon::after {
  content: '';
  position: absolute;
  top: -13px;
  left: 29px;
  border-width: 0 11px 11px 11px;
  border-style: solid;
  border-color: transparent transparent rgba(17, 94, 70, 0.1) transparent;
  z-index: 1;
}

.ai-balloon-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #115E46;
  font-size: 14px;
  margin-bottom: 8px;
  font-family: 'Zen Maru Gothic', sans-serif;
}

.ai-balloon-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4e4b42;
  margin: 0;
  font-family: 'Zen Maru Gothic', sans-serif;
  white-space: pre-wrap;
}

/* AI Loading Indicator */
.ai-loading-indicator {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 20px;
  background-color: rgba(17, 94, 70, 0.04);
  border-radius: 30px;
  width: fit-content;
}

.ai-loading-dots {
  display: flex;
  gap: 4px;
}

.ai-loading-dot {
  width: 8px;
  height: 8px;
  background-color: #115E46;
  border-radius: 50%;
  animation: pulseDot 1.4s infinite ease-in-out both;
}

.ai-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulseDot {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

.ai-loading-text {
  font-size: 13px;
  color: #115E46;
  font-weight: 700;
  font-family: 'Zen Maru Gothic', sans-serif;
}

/* Filter effects */
.search-fade-out {
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Gemini風オーロラ全体アニメーション（AI読込中・大胆なリバースデザイン） */
.hybrid-search-bar.ai-loading-active {
  position: relative;
  border-color: transparent !important;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4) !important;
  transition: all 0.3s ease;
  overflow: hidden; /* コンテナ内の球体がはみ出さないようにクリッピング */
  z-index: 1; /* 新しいスタッキングコンテキストを生成 */
}

/* AIモードON時のインプット、アイコン、クリア、送信、AIトグルボタンをオーロラの上に重ねて表示・クリック可能にする */
.hybrid-search-bar.ai-loading-active .hybrid-search-icon,
.hybrid-search-bar.ai-loading-active .hybrid-search-input,
.hybrid-search-bar.ai-loading-active .hybrid-search-clear,
.hybrid-search-bar.ai-loading-active #btn-submit-search,
.hybrid-search-bar.ai-loading-active .ai-search-btn {
  position: relative;
  z-index: 2; /* 背景（z-index: 1）の上に重ねる */
}

/* AI読込中の文字・プレースホルダー・アイコンを白抜きに反転 */
.hybrid-search-bar.ai-loading-active .hybrid-search-input {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

.hybrid-search-bar.ai-loading-active .hybrid-search-input::placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
}

.hybrid-search-bar.ai-loading-active .hybrid-search-icon,
.hybrid-search-bar.ai-loading-active #btn-submit-search {
  color: #ffffff !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.hybrid-search-bar.ai-loading-active .hybrid-search-clear {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* AI読込中のAI検索ボタン（半透明の白枠グラスモーフィズムデザイン） */
.hybrid-search-bar.ai-loading-active .ai-search-btn {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  backdrop-filter: blur(4px);
  box-shadow: none !important;
}

.hybrid-search-bar.ai-loading-active .ai-search-btn:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
  border-color: #ffffff !important;
}

/* 不要になった極細ラインは非表示 */
.ai-glow-line {
  display: none !important;
}

/* 親コンテナおよび子要素の滑らかな色変化トランジション */
.hybrid-search-bar {
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease !important;
}

.hybrid-search-input,
.hybrid-search-icon,
#btn-submit-search,
.hybrid-search-clear,
.ai-search-btn {
  transition: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, opacity 0.4s ease, backdrop-filter 0.4s ease !important;
}

/* 4色のライトブラブ（光の球体）によるオーロラコンテナ */
.gemini-search-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50px;
  background-color: #251254; /* 色合いを少し落ち着かせたディープネイビーパープル */
  z-index: 1; /* 親要素の背景より上で、子要素（z-index: 2）より奥に配置 */
  opacity: 0;               /* 初期は非表示 */
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s ease; /* 終わる時のふんわりフェードアウト */
}

@media (max-width: 768px) {
  .gemini-search-bg {
    border-radius: 20px;
  }
}

/* 読み込み中（active）にフェードイン表示 */
.hybrid-search-bar.ai-loading-active .gemini-search-bg {
  display: block !important;
  opacity: 1;
  visibility: visible;
}

.gemini-search-bg .light-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen; 
  filter: blur(35px); /* 検索バー（高さ約50〜60px）に最適化したぼかし値 */
  opacity: 0.65; /* 不透明度を下げて色合いを少し落とし、目に優しく落ち着かせる */
  animation: moveHowanPerfectInline 10s infinite alternate ease-in-out;
}

.gemini-search-bg .light-blob.blue {
  width: 150%;
  height: 250%;
  background: radial-gradient(circle, #0055ff 0%, transparent 80%);
  top: -80%;
  left: -40%;
  animation-duration: 9s;
}

.gemini-search-bg .light-blob.purple {
  width: 180%;
  height: 300%;
  background: radial-gradient(circle, #9d00ff 0%, transparent 80%);
  bottom: -100%;
  right: -30%;
  animation-duration: 12s;
  animation-delay: -2s;
}

.gemini-search-bg .light-blob.pink {
  width: 160%;
  height: 270%;
  background: radial-gradient(circle, #ff0066 0%, transparent 80%);
  top: -50%;
  left: -20%;
  animation-duration: 10s;
  animation-delay: -4s;
}

.gemini-search-bg .light-blob.cyan {
  width: 140%;
  height: 240%;
  background: radial-gradient(circle, #00ddff 0%, transparent 80%);
  bottom: -60%;
  left: -30%;
  animation-duration: 8s;
  animation-delay: -6s;
}

@keyframes moveHowanPerfectInline {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(15vw, -10vh) scale(1.2) rotate(150deg);
  }
  100% {
    transform: translate(-10vw, 15vh) scale(0.8) rotate(-150deg);
  }
}

/* ==========================================
   多米の歴史 (History) プレミアムレイアウト追加
   ========================================== */

.history-intro {
  max-width: 800px;
  margin: 40px auto 30px;
  text-align: center;
  padding: 0 20px;
}

.history-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}

.legend-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.legend-color-dot.ayumi {
  background-color: var(--primary-color);
}
.legend-color-dot.map {
  background-color: #c71585;
}

/* Tab Navigation */
.history-era-nav {
  position: sticky;
  top: 100px; /* Header height */
  z-index: 100;
  background-color: rgba(246, 245, 241, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px 0;
  margin-bottom: 60px;
  transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
  .history-era-nav {
    top: 76px;
  }
}

.era-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: #ffffff;
  border: 1px solid rgba(17, 94, 70, 0.1);
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.era-nav-link:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(17, 94, 70, 0.15);
}

.era-nav-link.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 6px 15px rgba(17, 94, 70, 0.15);
}

/* Sections */
.history-section {
  scroll-margin-top: 170px;
  margin-bottom: 80px;
}

@media (max-width: 1024px) {
  .history-section {
    scroll-margin-top: 150px;
  }
}

.era-section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.era-number {
  font-family: var(--font-english);
  font-size: 48px;
  font-weight: 800;
  color: rgba(17, 94, 70, 0.08);
  line-height: 1;
  margin-bottom: -15px;
}

.era-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.era-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Grid Layout for story cards */
.story-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.history-story-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border-top: 5px solid var(--primary-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.history-story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.history-story-card.source-map {
  border-top-color: #c71585;
}

.card-source-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-source-badge.ayumi {
  background-color: rgba(17, 94, 70, 0.08);
  color: var(--primary-color);
}

.card-source-badge.map {
  background-color: rgba(199, 21, 133, 0.08);
  color: #c71585;
}

.card-story-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.4;
}

.card-story-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  flex-grow: 1;
}

/* Tumulus list layout */
.tumulus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--bg-color);
  padding: 15px;
  border-radius: 16px;
  margin-top: 15px;
}

.tumulus-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tumulus-item::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
}

/* Citation footer */
.history-footer-citation {
  max-width: 800px;
  margin: 60px auto 40px;
  padding: 20px;
  border-top: 1px dashed rgba(17, 94, 70, 0.2);
  text-align: center;
}

.history-footer-citation p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.history-footer-citation a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}
.history-footer-citation a:hover {
  opacity: 0.8;
}

/* ==========================================
   研究報告書用テーブル・レイアウト追加
   ========================================== */

.history-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  background-color: #ffffff;
  min-width: 600px;
}

.history-table th {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 18px;
}

.history-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(17, 94, 70, 0.08);
  color: var(--text-dark);
  line-height: 1.6;
}

.history-table tbody tr:nth-child(even) {
  background-color: rgba(246, 245, 241, 0.5);
}

.history-table tbody tr:hover {
  background-color: rgba(17, 94, 70, 0.04);
}

/* 時代選択ナビゲーションの横スクロール対応（スマホ向け） */
.history-era-nav {
  overflow-x: auto;
  white-space: nowrap;
  justify-content: flex-start;
  padding: 15px 20px;
  -webkit-overflow-scrolling: touch;
}

/* PC等では中央寄せ */
@media (min-width: 1025px) {
  .history-era-nav {
    justify-content: center;
    overflow: visible;
  }
}

.history-era-nav::-webkit-scrollbar {
  display: none;
}

/* 研究テキスト用ブロック */
.research-doc-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.research-text-block {
  background: #ffffff;
  border-radius: 24px;
  padding: 35px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
  border-left: 6px solid var(--primary-color);
}

.research-text-block.special-block {
  border-left-color: #c71585; /* 東陽地区コミュニティ マップ由来の江戸時代など */
}

.research-text-block h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  margin: 25px 0 15px;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

.research-text-block.special-block h3 {
  color: #c71585;
  border-left-color: #c71585;
}

.research-text-block h3:first-of-type {
  margin-top: 0;
}

.research-text-block p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.research-text-block p:last-child {
  margin-bottom: 0;
}