/* ============================================
   ペンション・ラポール 共通スタイル
   ============================================ */

:root {
  --green-primary: #3a8f5c;
  --green-light: #5cb87a;
  --green-pale: #e8f5ee;
  --green-accent: #72c987;
  --green-dark: #2a6e45;
  --white: #ffffff;
  --off-white: #f8fdf9;
  --text-dark: #2c3e2d;
  --text-mid: #4a5e4b;
  --text-light: #6b7d6c;
  --border-light: #d4e8da;
  --shadow: rgba(42, 110, 69, 0.12);
  --font-serif: 'Noto Serif JP', 'Georgia', serif;
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--green-dark);
}

/* ============================================
   共通レイアウト
   ============================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--green-pale);
}

.section-white {
  background: var(--white);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--green-dark);
  margin-bottom: 16px;
  line-height: 1.5;
}

.section-lead {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-mid);
  max-width: 680px;
  line-height: 1.9;
}

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

.text-center .section-lead {
  margin: 0 auto;
}

/* ============================================
   ヘッダー
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}

.header-logo:hover {
  color: var(--green-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.header-nav a {
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--green-primary);
}

.header-cta-btn {
  background: var(--green-primary);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  transition: background 0.3s ease, transform 0.2s ease !important;
}

.header-cta-btn:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px);
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  padding: 24px;
  z-index: 999;
  box-shadow: 0 8px 24px var(--shadow);
}

.mobile-nav.open {
  display: block;
}

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

.mobile-nav ul li a {
  display: block;
  padding: 14px 0;
  color: var(--text-dark);
  font-size: 1rem;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

.mobile-nav-cta {
  margin-top: 20px;
}

.mobile-nav-cta .btn-primary {
  display: block;
  text-align: center;
  width: 100%;
}

/* ============================================
   ボタン
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  gap: 8px;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
}

.btn-outline:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--green-dark);
}

.btn-white:hover {
  background: var(--off-white);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.8);
}

.btn-white-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-group.center {
  justify-content: center;
}

/* ============================================
   ヒーローセクション
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(1.0) saturate(1.08);
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hero-bg.loaded {
  transform: scale(1);
}

/* 明るい方向のオーバーレイ：ごく薄いグリーントーン */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20, 60, 30, 0.12) 0%,
    rgba(10, 40, 20, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
}

/* 下部フェードアウト */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--off-white));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ★ A案：文字視認性向上 - テキストシャドウ */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 700px;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.04em;
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.9;
  max-width: 560px;
  margin-bottom: 40px;
  /* A案：サブテキストにも視認性向上のシャドウ */
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.6),
    0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ============================================
   カードグリッド
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ============================================
   コーチング比較
   ============================================ */

.coaching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.coaching-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  border-top: 4px solid var(--green-primary);
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform 0.3s ease;
}

.coaching-card:hover {
  transform: translateY(-4px);
}

.coaching-type {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.coaching-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 16px;
  line-height: 1.5;
}

.coaching-desc {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 24px;
}

.coaching-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ============================================
   ペンション外観セクション
   ============================================ */

.pension-exterior-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 32px;
}

.exterior-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
}

.exterior-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 写真スライダー（exterior-image 内用） */
.exterior-slider {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--green-pale);
}
.exterior-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.exterior-slide.active { opacity: 1; }
.exterior-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.exterior-slide .slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-pale);
  color: var(--text-light);
  font-size: 0.9rem;
  flex-direction: column;
  gap: 8px;
}
.exterior-slide .slide-placeholder span { font-size: 2rem; }
/* ドット */
.exterior-slider .slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.exterior-slider .slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none; padding: 0;
  transition: background 0.3s;
}
.exterior-slider .slider-dot.active { background: #fff; }
/* 前後ボタン */
.exterior-slider .slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.75);
  border: none; border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 1rem; cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
  transition: background 0.2s;
}
.exterior-slider .slider-btn:hover { background: #fff; }
.exterior-slider .slider-btn.prev { left: 8px; }
.exterior-slider .slider-btn.next { right: 8px; }

.exterior-text .section-title {
  margin-bottom: 20px;
}

.exterior-text .section-lead {
  margin-bottom: 24px;
}

/* ============================================
   オーナーセクション
   ============================================ */

.owner-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.owner-text .section-lead {
  margin-bottom: 24px;
}

.owner-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
}

.owner-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(1.02) saturate(1.05);
}

/* ============================================
   フッター前CTA
   ============================================ */

.pre-footer {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  padding: 80px 0;
  text-align: center;
}

.pre-footer h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pre-footer p {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ============================================
   フッター
   ============================================ */

.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

.footer-nav h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

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

.footer-nav ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================
   フェードインアニメーション
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ページヒーロー（内ページ共通）
   ============================================ */

.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-hero p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ============================================
   FAQアコーディオン（共通）
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  position: relative;
  padding: 20px 48px 20px 4px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  line-height: 1.7;
  user-select: none;
  transition: color 0.2s;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--green-primary);
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-question:hover {
  color: var(--green-primary);
}

.faq-answer {
  display: none;
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.9;
  padding: 0 4px 20px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* 写真ヒーロー（stay.html 用） */
.page-hero--photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #1a3a22;
}

.page-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(0.72) saturate(1.05);
}

.page-hero--photo .page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 40, 20, 0.20) 0%,
    rgba(10, 40, 20, 0.55) 100%
  );
  z-index: 1;
}

.page-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.page-hero__en {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-sans);
}

@media (max-width: 768px) {
  .page-hero__img {
    max-height: 420px;
    object-position: center center;
  }
}

/* ============================================
   レスポンシブ
   ============================================ */

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .coaching-grid {
    grid-template-columns: 1fr;
  }

  .coaching-card {
    padding: 28px 20px;
  }

  .coaching-name {
    font-size: 1.05rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .pension-exterior-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .owner-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hamburger {
    display: flex;
  }

  .section {
    padding: 60px 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    padding: 100px 20px 60px;
  }
}
