/**
 * style.css for 陽だまり庵
 * Last Updated: 2025-09-06
 *
 * 目次
 * --------------------------------
 * 1.  基本設定 (変数, リセット)
 * 2.  ベーススタイル (body, h1-h6, a)
 * 3.  レイアウト & ユーティリティ
 * 4.  ヘッダー & ナビゲーション
 * 5.  フッター
 * 6.  ヒーローセクション
 * 7.  汎用コンポーネント
 * - ボタン
 * - カード
 * - リスト
 * - フォーム & 通知
 * 8.  ページ別コンポーネント
 * - トップページ (index.html)
 * - 初めての方へ (first-timers.html)
 * - コース・料金 (courses-prices.html)
 * - 店舗紹介 (venue.html)
 * - 雰囲気・写真 (charm.html)
 * - 予約・問合せ (sns.html)
 * 9.  インタラクション & アニメーション
 * - スクロール表示アニメーション
 * - ライトボックス (ギャラリー)
 * - FAQアコーディオン
 * 10. 固定UI要素 (追従ヘッダー/フッター)
 * 11. アクセシビリティ & その他
 * 12. レスポンシブデザイン (スマートフォン向け設定)
 */

/* ========================================
 * 1. 基本設定 (変数, リセット)
 * ======================================== */
:root {
  --primary-color: #1d7629; /* 深い緑 */
  --accent-color: #e67e22;  /* 温かみのあるオレンジ */
  --text-color: #333333;
  --light-text-color: #f8f8f8;
  --background-color: #fdfdfa; /* ほんのり黄色がかった白 */
  --light-gray-bg: #f5f5f0;   /* 明るいベージュ系グレー */
  --border-color: #e0e0d8;
  --font-family: 'Noto Sans JP', sans-serif;
  --header-height: 78px;
}

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

html {
  scroll-behavior: smooth;
}

/* ========================================
 * 2. ベーススタイル (body, h1-h6, a)
 * ======================================== */
body {
  font-family: var(--font-family);
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--background-color);
  padding-top: var(--header-height);
}

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

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

a:hover {
  opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
}

/* ========================================
 * 3. レイアウト & ユーティリティ
 * ======================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow-content,
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section.bg-light {
  background-color: var(--light-gray-bg);
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  text-align: center;
  margin-bottom: 48px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: -32px auto 48px auto;
  font-size: 1.1rem;
}

/* ========================================
 * 4. ヘッダー & ナビゲーション
 * ======================================== */
.header {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav a {
  margin-left: 24px;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a.active {
  color: var(--primary-color);
}

.hamburger {
  display: none; /* PCでは非表示 */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ========================================
 * 5. フッター
 * ======================================== */
.footer {
  background-color: #333;
  color: #ccc;
  padding: 60px 0 40px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-nav {
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}

.footer-nav a {
  color: #ccc;
}

.footer-nav a:hover {
  color: white;
}

.footer-info p {
  margin: 8px 0 0;
}

/* ========================================
 * 6. ヒーローセクション
 * ======================================== */
.hero, .page-hero {
  color: white;
  padding: 80px 0;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9; /* 比率を16:9に固定 */
}

.hero::before, .page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero .container, .page-hero .container {
  position: relative;
  z-index: 2;
}

.hero-title, .page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle, .page-hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin: 1rem auto 0;
  max-width: 600px;
  font-weight: 500;
}

/* ========================================
 * 7. 汎用コンポーネント
 * ======================================== */

/* --- ボタン --- */
.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

/* --- カード --- */
.level-card, .rule-card, .pricing-card, .feature-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* --- リスト --- */
.prose h3 {
  font-size: 1.5rem;
  margin-top: 2.5em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.prose ul {
  list-style: none;
  padding: 0;
}

.prose ul li {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
  position: relative;
}

.prose ul li::before {
  content: '●';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: 0.8em;
}

/* --- 通知 --- */
.important-notice {
  background-color: #fffbe6;
  border-left: 5px solid #ffe58f;
  padding: 1.5em 2em;
  margin-bottom: 2em;
}

/* ========================================
 * 8. ページ別コンポーネント
 * ======================================== */

/* --- トップページ (index.html) --- */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
  gap: 60px;
}
.concept-img-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.concept-text .section-title { text-align: left; }
.concept-text p { font-size: 1.1rem; }

.cta-list .divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 40px 0;
}
.cta-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cta-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
.cta-row .copy .eyebrow { color: var(--accent-color); font-weight: 700; margin-bottom: 8px; }
.cta-row .copy h3 { font-size: 1.8rem; }
.cta-row .copy p { margin: 8px 0 16px; font-size: 1.1rem; }
.cta-row .copy .cta-pill {
  background: var(--primary-color); color: white; padding: 10px 20px;
  border-radius: 50px; font-weight: 500; display: inline-block;
}
.cta-row .img-wrap img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }

/* --- 初めての方へ (first-timers.html) --- */
.intro-section {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 80px 24px;
  text-align: center;
}
.intro-section .motto { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; margin: 0; }
.intro-section .description { font-size: clamp(1rem, 3vw, 1.2rem); max-width: 800px; margin: 24px auto 0; }

.flow-row { display: flex; align-items: center; gap: 48px; }
.flow-copy { flex: 1; }
.flow-img { flex: 1; overflow: hidden; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.flow-img img { width: 100%; transition: transform 0.4s ease; }
.flow-img:hover img { transform: scale(1.05); }
.flow-copy h3 { font-size: 1.8rem; margin-bottom: 24px; font-weight: 700; }
.step-list { list-style: none; padding: 0; font-size: 1.1rem; }
.step-list li { margin-bottom: 20px; display: flex; align-items: center; font-weight: 500; }
.step-list span {
  background-color: var(--primary-color); color: white; border-radius: 50%;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; margin-right: 16px; flex-shrink: 0;
}

.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.level-card { text-align: center; }
.level-icon { font-size: 1.5rem; color: var(--accent-color); font-weight: 700; margin-bottom: 16px; }
.level-card h3 { font-size: 1.4rem; margin-bottom: 16px; }

/* --- ルール・マナー (rules-manners.html) --- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.rule-card { border-top: 5px solid var(--primary-color); }
.rule-card-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.rule-card-title { font-size: 1.4rem; margin-bottom: 20px; }
.rule-list { list-style: none; padding: 0; }
.rule-list li { padding-left: 1.8em; position: relative; margin-bottom: 1em; }
.rule-list li::before {
  content: '\f00c'; /* Font Awesome check icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 2px;
}

/* --- コース・料金 (courses-prices.html) --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.pricing-card {
  padding: 40px; text-align: center;
  display: flex; flex-direction: column;
}
.pricing-card.accent { background-color: var(--primary-color); color: white; }
.pricing-card.accent h3, .pricing-card.accent .price-tag { color: white; }
.pricing-card.accent .pricing-icon { color: white; background: rgba(255,255,255,0.2); }
.pricing-icon {
  font-size: 2.5rem; color: var(--primary-color); width: 80px; height: 80px; border-radius: 50%;
  background: var(--light-gray-bg); display: inline-flex; justify-content: center; align-items: center;
  margin: 0 auto 24px;
}
.pricing-card h3 { font-size: 1.6rem; margin-bottom: 16px; }
.pricing-card p { flex-grow: 1; }
.price-details h4 { font-size: 1.2rem; font-weight: 700; }
.price-tag { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); margin: 4px 0 8px !important; }
.price-tag strong { font-weight: 700; }
.price-note { font-size: 0.9rem; color: #666; margin: 0 0 24px !important; }
.pricing-card.accent .price-note { color: rgba(255,255,255,0.8); }

/* --- 店舗紹介 (venue.html) --- */
.venue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 48px; align-items: center; margin-bottom: 80px; }
.venue-image img { border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.venue-info .section-title { text-align: left; }
.info-list dt { font-weight: 700; margin-top: 24px; display: flex; align-items: center; gap: 0.5em; }
.info-list dd { margin-left: 2em; font-size: 1.1rem; }
.map-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 66.66%; /* 維持したい比率 (高さ / 幅) * 100 */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 5px solid white;
}
.map-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* --- 雰囲気・写真 (charm.html) --- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.feature-card { background: var(--light-gray-bg); text-align: center; }
.feature-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 24px; }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 16px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- 予約・問合せ (sns.html) --- */
.sns-links { margin: 48px 0; display: flex; flex-direction: column; gap: 24px; }
.sns-link {
  display: flex; align-items: center; justify-content: center; padding: 20px;
  border-radius: 12px; color: white; font-size: 1.2rem; font-weight: 700; text-align: center;
}
.sns-link i { font-size: 1.5rem; margin-right: 16px; }
.sns-link.line { background-color: #06C755; }
.sns-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #bc1888); }
.sns-link.takeda_go { background: linear-gradient(45deg, #584eda, #4383d6, #e4e133); }
.sns-link.reserve-site { background: linear-gradient(45deg, #3cc4e6, #4383d6, #8da893); }

.news-list { margin-top: 24px; }
.news-item { border-bottom: 1px solid var(--border-color); padding: 24px 0; }
.news-item:first-child { border-top: 1px solid var(--border-color); }
.news-date { font-size: 0.9rem; color: #777; margin-bottom: 8px; display: block; }
.news-title { font-size: 1.1rem; font-weight: 500; }

/* ========================================
 * 9. インタラクション & アニメーション
 * ======================================== */

/* --- スクロール表示アニメーション --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- ライトボックス (ギャラリー) --- */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-image {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  line-height: 1;
}

/* --- FAQアコーディオン --- */
.faq-category { margin-bottom: 32px; }
.faq-category h3 { font-size: 1.5rem; padding-bottom: 8px; border-bottom: 2px solid var(--border-color); color: var(--primary-color); }
.faq-item { margin-top: 16px; border-bottom: 1px solid var(--border-color); }
.faq-question {
  font-weight: 500; font-size: 1.1rem; padding: 20px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; position: relative;
}
.faq-question::before { content: 'Q.'; margin-right: 12px; color: var(--primary-color); font-weight: 700; }
.faq-question::after {
  content: '\f067'; /* Font Awesome plus icon */
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; padding-left: 35px; }
.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 20px; }


/* ========================================
 * 10. 固定UI要素
 * ======================================== */

/* --- 右下のフローティングボタン (PC) --- */
.fixed-action-buttons {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.action-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.action-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  color: white;
  opacity: 1;
}
.action-button.chatbot { background-color: var(--primary-color); }
.action-button.reserve { background-color: var(--accent-color); }
.action-button.uranai { background: #7c3aed; font-family: 'Noto Sans JP', sans-serif; font-size: 24px; font-weight: 700; line-height: 1; }

/* --- 画面下部の固定ボタンバー (スマホ) --- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1200;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--border-color);
  display: none; /* スマホでのみ表示 */
  gap: 12px;
  padding: 10px 16px;
}
.sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
}
.sticky-cta .tel { background: var(--primary-color); color: #fff; }
.sticky-cta .line { background: #06C755; color: #fff; }

/* ========================================
 * 11. アクセシビリティ & その他
 * ======================================== */
[aria-hidden="true"] {
  pointer-events: none;
}

:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.footer-nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .header, .footer, .hamburger, .nav, .sticky-cta, .fixed-action-buttons {
    display: none !important;
  }
  .section {
    padding: 20px 0;
  }
}

/* ========================================
 * 12. レスポンシブデザイン
 * ======================================== */

/* --- タブレット向け調整 (～992px) --- */
@media (max-width: 992px) {
  .cta-row {
    grid-template-columns: 1fr 200px;
    gap: 24px;
  }
  .cta-row .copy h3 {
    font-size: 1.5rem;
  }
}

/* --- スマートフォン向け調整 (～768px) --- */
@media (max-width: 768px) {
  /* --- ハンバーガーメニュー --- */
  .hamburger { display: block; }
  .nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(253, 253, 250, 0.98);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 1005;
    padding-top: var(--header-height);
  }
  .nav.active { transform: translateY(0); }
  .nav a { margin: 20px 0; font-size: 1.5rem; }
  body.nav-open { overflow: hidden; }
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* --- 固定UIの切り替え --- */
  .sticky-cta { display: flex; }
  .fixed-action-buttons { display: none; }
  body { padding-bottom: 72px; /* 固定フッター分の余白 */ }

  /* --- レイアウト調整 --- */
  .concept-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .concept-img-wrap { width: 250px; margin: 0 auto; }
  .concept-text .section-title { text-align: center; }

  .cta-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-row .img-wrap {
    order: -1;
    margin: 0 auto 24px;
    width: 100%;
    max-width: 400px;
  }

  .flow-row { flex-direction: column; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}