/* ─────────────────────────────────────────────────
   Variables
───────────────────────────────────────────────── */
:root {
  --font-base: 'Noto Sans JP', sans-serif;
  --color-text: #333;
  --color-bg: #f5f5f5;
  --color-primary: #2e7d32;
  --color-accent: #f57c00;
  --color-urgent-bg: #fff5f5;
  --color-urgent-border: red;
  --color-urgent-text: #c00;
  --color-normal-bg: #f9f9f9;
  --color-normal-border: #ccc;
  --breakpoint-sm: 600px;
}

/* ─────────────────────────────────────────────────
   Reset / Base
───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus,
button:focus {
  outline: 2px dashed var(--color-accent);
  outline-offset: 4px;
}

/* ─────────────────────────────────────────────────
   Layout Container
───────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1024px;
  margin: 0 auto;
}

/* ブレイクポイント例 */
@media (max-width: 600px) {
  /* カード一覧を縦並びに */
  .card-list,
  .services .service-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* ヒーロー文字サイズの調整 */
  .hero-text {
    font-size: 0.8rem;
    padding: 0 1rem;
  }

  /* 余白・パディングを詰める */
  .container {
    width: 95%;
  }
}
/* ─────────────────────────────────────────────────
   Header
───────────────────────────────────────────────── */
.site-header {
  background: var(--color-primary);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.global-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
}

.global-nav a {
  color: #fff;
}

.logo-img {
  width: 250px;  /* お好みで調整 */
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  .header-inner {
    padding: 0.5rem;        /* 全体余白を固定 */
  }
  .logo-img {
    width: 120px;           /* スマホではさらに小さく */
  }

  .menu-toggle {
    display: block;         /* ハンバーガーアイコン表示用クラス */
  }
}

@media (max-width: 768px) {
  /* 1. ヘッダー全体を縦積みレイアウトに */
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
  }

  /* 2. ロゴを小さく */
  .logo-img {
    width: 100px;    /* お好みで調整 */
    margin-bottom: 0.5rem;
  }

  /* 3. ナビは2行×3列のグリッドに */
  .global-nav ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .global-nav li {
    list-style: none;
  }

  /* 4. リンクを小さめ＆タップしやすく */
  .global-nav a {
    display: block;
    font-size: 0.75rem;
    padding: 0.4rem 0.2rem;
    text-align: center;
    white-space: nowrap;
    border-radius: 4px;
    transition: background 0.2s;
  }

  .global-nav a:hover,
  .global-nav a.active {
    background: rgba(255,255,255,0.2);
  }

  /* 5. SNSアイコンを小さく配置 */
  .sns-icons {
    margin-top: 0.5rem;
  }
  .sns-icon {
    width: 24px;
    height: auto;
  }
}
/* ─────────────────────────────────────────────────
   body
───────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────
   Hero
───────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
}

.hero-image img {
  width: 100%;
  display: block;
}

.scroll-indicator {
  margin-top: 1rem;
  font-size: 2rem;
  animation: bounce 2s infinite;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  color: #fff;
  z-index: 2;
  padding: 0 20px; /* モバイル時の余白調整 */
}
.hero-slideshow {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 70vh; /* お好みで調整 */

}

.slides {
  display: flex;                  /* 横並びにする */
  transition: transform 1s ease;  /* スムーズな移動 */
  will-change: transform;         /* ハードウェアアクセラレーション */
}

.slide {
  flex: 0 0 100%;    /* 常にコンテナ幅100% */
  position: relative;
  height: 100%;
}

.slide img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 768px) {
  .hero-slideshow {
    height: auto;
    min-height: 70vh; /* 画面いっぱいに見せたい場合 */
  }

  .slide {
    height: auto;
  }

  .slide img {
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
  }
}


/* ドットナビゲーション */
.dots {
  position: absolute;
  bottom: -150px;             /* 画像内下端からの距離 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;              /* テキストより上に重ねる */
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: 12px;
}

.dots button {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.dots button:hover,
.dots button.is-active {
  opacity: 1;
  transform: scale(1.2);
}


.dots button.is-active {
  width: 12px;
  height: 12px;
  background-color: #fff;
}


/* ─────────────────────────────────────────────────
   Announcement Section
───────────────────────────────────────────────── */
.announcement {
  background: #fff8e1;
  border-left: 4px solid var(--color-accent);
  margin: 2rem 0;
  padding: 1.5rem;
}

.announcement h2 {
  margin: 0 0 1rem;
  color: var(--color-accent);
  font-size: 1.5rem;
}

.announcement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.announcement-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ffe0b2;
}
.announcement-list li.urgent {
  background-color: var(--color-urgent-bg);
  border-left: 4px solid var(--color-urgent-border);
  padding-left: 1rem;
}

.announcement-list li.urgent a {
  color: var(--color-urgent-text);
  font-weight: bold;
}

.announcement-list li.normal {
  background-color: #fff;
  border-left: 4px solid var(--color-accent);
}
.announcement-list li:last-child {
  border-bottom: none;
}

.announcement-list time {
  color: #999;
  font-size: 0.875rem;
  white-space: nowrap;
}

.announcement-list a {
  transition: color .2s;
}

.announcement-list a:hover {
  color: var(--color-accent);
}

#announcement-container.urgent {
  border: 2px solid var(--color-urgent-border);
  background-color: var(--color-urgent-bg);
  color: var(--color-urgent-text);
}

#announcement-container.normal {
  border: 1px solid var(--color-normal-border);
  background-color: var(--color-normal-bg);
  color: var(--color-text);
}

/* urgent の前に ⚠️ アイコンを表示 */
.announcement-list li.urgent::before {
  content: "⚠️";
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* normal の前に ℹ️ アイコンを表示 
.announcement-list li.normal::before {
  content: "ℹ️";
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}*/
.red-link {
   color: rgba(255, 0, 0, 0.816);
}
/* ─────────────────────────────────────────────────
   Feature Cards
───────────────────────────────────────────────── */
.section h2 {
  margin-bottom: 1rem;
}

.card-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

/*.card {
  flex: 1;
  background: #fff;
  padding: 1rem;
  text-align: center;
}*/
.card {
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border-radius: 6px;
  transition: transform 0.1s ease-out, box-shadow 0.2s ease-out;

}


.card a {
  display: block;
  padding: 1rem;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}


.card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 0.75rem;
}
/* components.css など共通スタイルに追記 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 画面内に入ったらクラスを付与 */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  transition-delay: var(--delay, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: none; transform: none; opacity: 1; }
}
/* 初期状態: 透明 & X 軸方向にずらす */
.slide-in-left,
.slide-in-right {
  opacity: 0;
  transform: translateX(var(--slide-distance, 20px));
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 左から */
.slide-in-left {
  --slide-distance: -20px;
}

/* 右から */
.slide-in-right {
  --slide-distance: 20px;
}

/* ビューに入ったら元位置 & 不透明に */
.slide-in-left.visible,
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 動きを控えたいユーザー向け対応 */
@media (prefers-reduced-motion: reduce) {
  .slide-in-left,
  .slide-in-right {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* ─────────────────────────────────────────────────
   Services Section
───────────────────────────────────────────────── */
.services .service-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  text-align: center;
  padding: 1rem;
}

.service-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
}

.service-item h3 {
  font-size: 1.125rem;
  margin: 0.5rem 0;
  color: var(--color-primary);
}

.service-item p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────
   Reservation
───────────────────────────────────────────────── */
.reservation {
  background: #fff;
  text-align: center;
  padding: 1rem 0;
}

.reservation .tel {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}


/* ─────────────────────────────────────────────────
   Access
───────────────────────────────────────────────── */
.map-placeholder {
  background: #ddd;
  height: 200px;
  margin-bottom: 1rem;
}

.access-info {
  background: #fff;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  margin-top: 1rem;
}

.access-info p {
  margin: 0.75rem 0;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────
   Notice
───────────────────────────────────────────────── */
.notice ul {
  list-style: disc inside;
}

.blue-link {
      color: rgb(0, 153, 255);
    }


/* ─────────────────────────────────────────────────
   SNS More
───────────────────────────────────────────────── */
.sns-feed .feed-placeholder {
  background: #eee;
  height: 150px;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.sns-icon {
  width: 48px;
  height: 48px;
  transition: opacity .3s;
}

.sns-icon:hover {
  opacity: 0.7;
}

/* ─────────────────────────────────────────────────
   Footer
───────────────────────────────────────────────── */
.site-footer {
  background: #ccc;
  text-align: center;
  padding: 1rem 0;
}

/* ─────────────────────────────────────────────────
   Animations
───────────────────────────────────────────────── */
@keyframes bounce {
  0%, 100% { transform: translateY(-50%); }
  50%     { transform: translateY(-45%); }
}

/* ─────────────────────────────────────────────────
   Facility Detail
───────────────────────────────────────────────── */
.facility-detail {
  margin: 3rem auto;
  max-width: 800px;
  padding: 1.5rem;
  background: #fff;
  border-radius: 4px;
}

.facility-detail h2 {
  border-bottom: 2px solid #0066FF;
  padding-bottom: 0.5rem;
}

.facility-detail img.facility-main-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.facility-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.facility-features li {
  margin: 0.5rem 0;
}

.facility-gallery {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.facility-gallery img {
  aspect-ratio: 3 / 2;
  width: 100%;
  max-width: 300px;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .facility-gallery {
    flex-direction: column;
  }
  .facility-gallery img {
    flex: 1 1 100%;
  }
}
/* ─────────────────────────────────────────────────
   Service Detail
───────────────────────────────────────────────── */
.service-detail {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-detail h2 {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.service-detail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

dl.service-spec,
table.service-spec {
  margin: 1.5rem 0;
  width: 100%;
  border-collapse: collapse;
}

dl.service-spec dt,
table.service-spec th {
  font-weight: bold;
  background: #f0f8ff;
  padding: 0.75rem;
  border: 1px solid #ddd;
}

dl.service-spec dd,
table.service-spec td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  margin: 0;
}

table.service-spec th,
table.service-spec td {
  text-align: center;
  background: #fafafa;
}


/* 予約ボタン */
.btn-reserve {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75em 1.5em;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
  text-align: center;
}

.btn-reserve:hover {
  background: #e65100;
}

/* ─────────────────────────────────────────────────
   Responsive
───────────────────────────────────────────────── */
@media (max-width: var(--breakpoint-sm)) {
  .services .service-list,
  .service-list.card-list {
    grid-template-columns: 1fr;
  }

  .service-item img {
    height: 180px;
  }

  .service-detail,
  .service-detail dl.service-spec,
  .service-detail table.service-spec {
    margin: 1rem;
    padding: 1rem;
    font-size: 0.9rem;
  }

  .btn-reserve {
    width: 100%;
    text-align: center;
  }
}