/* ============================================================
   style.css
   メインスタイルシート・レスポンシブ設計
   ============================================================ */

/* --- リセット --- */
html {
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

/* --- 共通レイアウト --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* --- ヘッダー --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; }
.logo__img { height: 22px; width: auto; }

.site-nav {
  display: flex;
  gap: var(--space-md);
}

/* ハンバーガーメニュー（モバイル） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-sub);
  transition: transform var(--transition), opacity var(--transition);
}

/* 開いた状態：×アイコンに変形 */
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .site-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(15, 37, 55, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .site-nav.is-open {
    max-height: 480px;
  }
  .site-nav a {
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--color-border);
  }
  .hamburger { display: flex; }
}

/* --- ヒーロー --- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  max-height: 900px;
  padding: 0;
  overflow: hidden;
  background-color: var(--color-sub);
}

.hero__bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%; /* 手前のボールが画面下側に来るよう調整 */
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__bg-slide.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 37, 55, 0.12) 0%,
    rgba(15, 37, 55, 0.02) 38%,
    rgba(15, 37, 55, 0.55) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 14vh;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: var(--color-accent);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.6vw, var(--fs-3xl));
  line-height: 1.5;
  color: var(--color-sub);
  max-width: 640px;
  margin-bottom: var(--space-sm);
  text-shadow:
    0 1px 5px rgba(255, 255, 255, 0.7),
    0 0 24px rgba(255, 255, 255, 0.6);
}

.hero__sub {
  font-size: var(--fs-base);
  color: var(--color-sub);
  max-width: 34ch;
  margin-bottom: var(--space-md);
  opacity: 0.85;
  text-shadow:
    0 1px 5px rgba(255, 255, 255, 0.7),
    0 0 24px rgba(255, 255, 255, 0.6);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hero__actions .btn {
  background-color: var(--color-main);
}

.hero__link {
  font-size: var(--fs-sm);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  color: var(--color-sub);
  text-shadow:
    0 1px 5px rgba(255, 255, 255, 0.7),
    0 0 24px rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .hero { height: 78vh; min-height: 480px; }
  .hero__inner { padding-top: 12vh; padding-left: var(--space-sm); padding-right: var(--space-sm); }
}

/* --- 特徴ハイライト（ヒーロー画像に完全に重なる半透明バー） --- */
.highlights {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background-color: rgba(248, 249, 250, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.highlights__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: var(--space-sm);
  border-left: 1px solid rgba(15, 37, 55, 0.12);
}
.highlights__item:first-child { border-left: none; }

.highlights__stat {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, var(--fs-lg));
  font-weight: 600;
  color: var(--color-main);
}

.highlights__label {
  font-size: var(--fs-xs);
  color: var(--color-sub);
  opacity: 0.75;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .highlights__item {
    border-left: none;
    border-top: 1px solid rgba(15, 37, 55, 0.12);
    padding: var(--space-xs) var(--space-sm);
  }
  .highlights__item:nth-child(1),
  .highlights__item:nth-child(2) { border-top: none; }
  .highlights__item:nth-child(odd) { border-right: 1px solid rgba(15, 37, 55, 0.12); }
}

/* --- 営業時間・所在地バー --- */
.info-strip {
  background-color: var(--color-sub);
  color: var(--color-white);
  padding: var(--space-md) 0;
}

.info-strip__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.info-strip__block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  flex: 1;
}

.info-strip__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  position: relative;
}
.info-strip__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 7px;
  border-right: 2px solid var(--color-accent);
  transform: translate(-65%, -60%) rotate(35deg);
}
.info-strip__icon--pin {
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.info-strip__icon--pin::after { content: none; }

.info-strip__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 2px;
}

.info-strip__value {
  font-size: var(--fs-base);
  font-weight: 500;
}

.info-strip__note {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  line-height: 1.5;
}

.info-strip__link {
  display: inline-block;
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}

.info-strip__divider {
  width: 1px;
  align-self: stretch;
  background-color: rgba(255, 255, 255, 0.15);
}

/* --- 天気ウィジェット --- */
.info-strip__block--weather {
  flex: 1.3;
  display: block;
}

.weather-widget__loading,
.weather-widget__error {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
}

.weather-current {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}
.weather-current__icon {
  font-size: var(--fs-lg);
  line-height: 1;
}
.weather-current__temp {
  font-size: var(--fs-lg);
  font-weight: 600;
}
.weather-current__label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
}

.weather-current__sub {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.weather-forecast {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.weather-forecast__day {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.75);
}
.weather-forecast__label { color: rgba(255, 255, 255, 0.5); }
.weather-forecast__icon { font-size: var(--fs-base); line-height: 1; }

@media (max-width: 768px) {
  .info-strip__inner {
    flex-direction: column;
    gap: var(--space-md);
  }
  .info-strip__divider { display: none; }
  .weather-forecast { gap: var(--space-sm); }
}

/* --- フッター --- */
.site-footer {
  background-color: var(--color-sub);
  color: var(--color-white);
  padding: var(--space-lg) 0 var(--space-md);
}

/* --- ボタン --- */
.btn {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
}
.btn:hover { opacity: 0.85; }

/* --- セクション共通 --- */
.section {
  padding: 4.5rem 0;
}
@media (max-width: 768px) {
  .section { padding: 2.75rem 0; }
}
.section__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-base);
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}
.section__title span {
  flex-shrink: 0;
  color: var(--color-white);
  background-color: var(--color-main);
  padding: 6px var(--space-sm) 6px 10px;
  border-left: 4px solid var(--color-accent);
}
.section__title::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  background-color: var(--color-main);
  opacity: 0.25;
}
.section__title--plain {
  justify-content: center;
}
.section__title--plain::after {
  display: none;
}

.section--anchor {
  scroll-margin-top: 88px; /* stickyヘッダー分のオフセット */
}
.section--anchor h3 {
  font-size: var(--fs-lg);
  color: var(--color-sub);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}
.section--anchor h3:first-of-type { margin-top: 0; }

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.section__head .section__title { flex: 1; margin-bottom: 0; }
.section__more {
  font-size: var(--fs-sm);
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  white-space: nowrap;
}

/* --- カード（お知らせ一覧共通） --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
}

.news-card {
  display: block;
  padding: var(--space-sm);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover {
  box-shadow: 0 8px 20px rgba(15, 37, 55, 0.1);
  transform: translateY(-2px);
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.news-card__category {
  color: var(--color-accent);
  font-weight: 600;
}
.news-card__title {
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: 1.6;
}

.empty {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  padding: var(--space-md) 0;
}

/* --- ページネーション --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--color-text);
}
.pagination a.is-current {
  background-color: var(--color-main);
  border-color: var(--color-main);
  color: var(--color-white);
}

/* --- お知らせ詳細ページ --- */
.news-detail__body {
    line-height: 1.9;
}

    .news-detail__body p {
        margin: 0 0 var(--space-sm);
    }

    .news-detail__body ul {
        list-style: disc;
        padding-left: 1.5em;
        margin: 0 0 var(--space-sm);
    }

    .news-detail__body ol {
        list-style: decimal;
        padding-left: 1.5em;
        margin: 0 0 var(--space-sm);
    }

    .news-detail__body li {
        margin-bottom: 0.3em;
    }

    .news-detail__body strong {
        font-weight: bold;
    }

    .news-detail__body h1,
    .news-detail__body h2,
    .news-detail__body h3 {
        margin: var(--space-md) 0 var(--space-xs);
        font-family: var(--font-display);
    }

    .news-detail__body a {
        color: var(--color-accent);
        text-decoration: underline;
    }

    .news-detail__body img {
        width: 100%;
        height: auto;
        max-height: 480px;
        object-fit: cover;
        border-radius: var(--radius);
        margin: var(--space-sm) 0;
    }

/* --- フッター --- */
.site-footer {
    background-color: var(--color-sub);
    color: var(--color-white);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

@media (max-width: 480px) {
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.footer__inner p {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.6);
}

.footer__links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--fs-xs);
}

    .footer__links a {
        color: rgba(255, 255, 255, 0.7);
    }

/* 電話番号：控えめなテキストリンク（強調しない） */
.tel-link {
    color: inherit;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    opacity: 0.85;
}


/* honeypot（スパム対策用・画面には表示しない） */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.map-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
}

    .map-embed iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* 料金表 */

table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-sm) 0 var(--space-md);
    font-size: var(--fs-sm);
}

th, td {
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: var(--color-base);
    color: var(--color-sub);
    font-weight: 600;
    white-space: nowrap;
}

.pricing-container {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pricing-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 16px 24px;
}

    .pricing-header h2 {
        font-size: 1.25rem;
        font-weight: 700;
    }

/* テーブルスタイル */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 1px solid #ccc;
}

    .modern-table th,
    .modern-table td {
        padding: 14px 20px;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }

    .modern-table th {
        background-color: var(--bg-light);
        width: 32%;
        font-weight: 600;
        color: #4a5568;
    }

    .modern-table tr:last-child th,
    .modern-table tr:last-child td {
        border-bottom: none;
    }

.price-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

    .price-item:last-child {
        margin-bottom: 0;
    }

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.arrow {
    color: var(--text-muted);
}

.current-price {
    font-weight: 700;
    color: var(--text-color);
}

.badge {
    background-color: #fff5f5;
    color: var(--discount-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #feb2b2;
}

.note-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 注意事項エリア */
.pricing-notes {
    padding: 24px;
    background-color: #fafafa;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.note-item {
    margin-bottom: 16px;
}

    .note-item:last-child {
        margin-bottom: 0;
    }

    .note-item h3 {
        font-size: 0.95rem;
        color: var(--text-color);
        margin-bottom: 6px;
    }

    .note-item ul {
        list-style: none;
        padding-left: 8px;
    }

    .note-item li {
        position: relative;
        padding-left: 14px;
        margin-bottom: 4px;
    }

        .note-item li::before {
            content: "•";
            position: absolute;
            left: 0;
            color: var(--primary-color);
        }

    .note-item p {
        font-size: 0.875rem;
        line-height: 1.6;
        color: #666666;
        margin-top: 12px;
        margin-bottom: 8px;
        padding-left: 1em;
        text-indent: -1em;
    }

/* --- 施設フォトギャラリー（スワイプカルーセル） --- */
.facility-gallery {
    position: relative;
    margin-bottom: var(--space-md);
}

.facility-gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    /* スクロールバーを非表示（Firefox / WebKit） */
    scrollbar-width: none;
}

    .facility-gallery__track::-webkit-scrollbar {
        display: none;
    }

.facility-gallery__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

    .facility-gallery__slide img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

/* 前後ボタン（PC等タッチ操作がない環境向け） */
.facility-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: rgba(15, 37, 55, 0.55);
    color: var(--color-white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--transition);
}

    .facility-gallery__nav:hover {
        background-color: rgba(15, 37, 55, 0.8);
    }

.facility-gallery__nav--prev {
    left: var(--space-sm);
}

.facility-gallery__nav--next {
    right: var(--space-sm);
}

/* ドット（現在位置表示） */
.facility-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-sm);
}

.facility-gallery__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--color-border);
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

    .facility-gallery__dot.is-active {
        background-color: var(--color-main);
        transform: scale(1.3);
    }

@media (max-width: 768px) {
    .facility-gallery__nav {
        display: none;
    }
}

/* インスタフロート */
.insta-floating {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 9999;
    animation: popUp 0.5s ease-out;
}

.insta-link {
    text-decoration: none;
}

.speech-bubble {
    background: #ffffff;
    color: #333;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: transform 0.2s ease;
}

    .speech-bubble:hover {
        transform: scale(1.03);
    }

.insta-icon-wrapper img {
    width: 24px;
    height: 24px;
    display: block;
}

.close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #333;
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes popUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

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

/* 単画像表示用 */
.facility__image {
    max-height: 400px;
    width: auto;
    display: block;
    margin-top: 12px;
    border: 1px solid #e0e0e0;
}

.facility-note {
    margin-left: 1.5em; 
    font-size: 0.9rem; 
    color: #666; 
    margin-bottom: 1em; 
}

    .facility-note p {
        margin: 0.2em 0;
    }