/* ============================================================
   AI番頭 テンプレートD — ラグジュアリー型（フルセット限定）
   対象: 弁護士・税理士等、格式を重視する士業事務所向け

   [トークン設計]
   カラー : ゴールド × ウォームホワイト × ディープゴールド × チャコール
   フォント: Cormorant Garamond（見出し）× Shippori Mincho（本文）× DM Sans（英字）
   形状   : 全幅ヒーロースライダー・ワンページ風スクロール・ゴールドのライン装飾
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Shippori+Mincho:wght@400;500;600;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  /* カラー */
  --color-primary:       #8B6914;
  --color-primary-light: #C9A84C;
  --color-primary-rgb:   139, 105, 20;
  --color-accent:        #C9A84C;
  --color-accent-dark:   #8B6914;
  --color-bg:            #FAFAF6;
  --color-surface:       #F5F3EE;
  --color-text:          #2C2C2C;
  --color-text-muted:    #6b6558;
  --color-border:        #e5ddc8;

  /* タイポグラフィ */
  --font-heading: 'Cormorant Garamond', 'Shippori Mincho', serif;
  --font-body:    'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --font-en:      'DM Sans', sans-serif;
  --text-xs:      0.75rem;
  --text-sm:      0.875rem;
  --text-base:    1rem;
  --text-lg:      1.15rem;
  --text-xl:      1.3rem;
  --text-2xl:     1.6rem;
  --text-3xl:     2.1rem;
  --text-4xl:     3.1rem;
  --leading-heading: 1.3;
  --leading-body:    1.9;
  --weight-heading:  600;

  /* スペーシング */
  --section-py:       6rem;
  --container-width:  1080px;
  --container-px:     24px;
  --header-height:    72px;

  /* 形状（曲線を抑えた上品なライン） */
  --radius-sm:   3px;
  --radius-btn:  3px;
  --radius-card: 4px;
  --radius-md:   4px;
  --radius-icon: 50%;

  /* シャドウ */
  --shadow-hover: 0 12px 32px rgba(139, 105, 20, 0.14);
}

/* ============================================================
   パターンD シグネチャ要素
   ============================================================ */

/* ヘッダー */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(139,105,20,0.1); }
.logo-mark { background: var(--color-primary); border-radius: var(--radius-sm); }
.logo-mark:has(img) { background: none; }

.section-eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.section-title { font-weight: 600; letter-spacing: 0.02em; }
.section-header.center .section-title::after {
  content: '';
  display: block;
  width: 48px; height: 2px;
  background: var(--color-accent);
  margin: 1rem auto 0;
}

/* ============================================================
   1. ヒーロースライダー
   ============================================================ */
.hero-slider-section {
  position: relative;
  height: min(100vh, 780px);
  min-height: 480px;
  overflow: hidden;
  color: #fff;
}
.hero-swiper, .hero-swiper .swiper-wrapper, .hero-swiper .swiper-slide {
  position: absolute; inset: 0; height: 100%;
}
.hero-slide { background: linear-gradient(135deg, #C9A84C 0%, #8B6914 60%, #6b4f0f 100%); }
.hero-slide-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-slide-img[src=""] { display: none; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(44,44,44,0.35) 0%, rgba(139,105,20,0.55) 100%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
}
.hero-content .hero-eyebrow {
  font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--color-accent); margin-bottom: 1rem; display: block;
}
.hero-headline {
  font-size: var(--text-4xl); font-weight: 700; color: #fff;
  letter-spacing: 0.02em; margin-bottom: 1rem; max-width: 20ch;
}
.hero-body { color: rgba(255,255,255,0.85); font-size: var(--text-lg); margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cta .btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: #1a1a1a; }
.hero-cta .btn-primary:hover { background: #d9bd6a; border-color: #d9bd6a; }
.hero-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero-cta .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.hero-swiper .swiper-pagination-bullet {
  background: #fff; opacity: 0.5; width: 9px; height: 9px;
}
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--color-accent); }
.hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next {
  color: rgba(255,255,255,0.85); z-index: 3;
}
.hero-swiper .swiper-button-prev:hover, .hero-swiper .swiper-button-next:hover { color: #fff; }
.hero-swiper .swiper-button-prev::after, .hero-swiper .swiper-button-next::after { font-size: 1.4rem; }
@media (max-width: 640px) {
  .hero-headline { font-size: 2rem; }
  .hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next { display: none; }
}

/* ============================================================
   2. 事務所紹介
   ============================================================ */
.intro { padding: var(--section-py) 0; background: var(--color-bg); }
.intro-body {
  max-width: 720px; margin: 0 auto; text-align: center;
  font-size: var(--text-lg); line-height: 2; color: var(--color-text);
}

/* ============================================================
   3. 業務内容
   ============================================================ */
.services { background: var(--color-surface); }
.service-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card);
}
.service-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.service-icon {
  background: var(--color-surface); color: var(--color-accent-dark);
  border-radius: var(--radius-icon); border: 1px solid var(--color-border);
}

/* ============================================================
   4. プロフィール
   ============================================================ */
.profile { background: var(--color-bg); }
.profile-inner {
  display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: center;
  max-width: 880px; margin: 0 auto;
}
.profile-photo .photo-container { border-radius: var(--radius-card); border-bottom: 4px solid var(--color-accent); }
.profile-badge {
  display: inline-block; font-size: var(--text-xs); font-weight: 600;
  color: var(--color-accent-dark); background: var(--color-surface);
  border: 1px solid var(--color-border); padding: 0.3em 0.9em; border-radius: 999px;
  margin-bottom: 0.75rem;
}
.profile-name { font-size: var(--text-3xl); font-weight: 600; color: var(--color-text); margin-bottom: 0.75rem; }
.profile-body { color: var(--color-text-muted); line-height: 1.9; }
@media (max-width: 640px) {
  .profile-inner { grid-template-columns: 1fr; text-align: center; }
  .profile-photo .photo-container { max-width: 220px; margin: 0 auto; }
}

/* ============================================================
   5. お客様の声
   ============================================================ */
.testimonials { background: var(--color-surface); }
.testimonial-card {
  background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-card);
}
.testimonial-quote-mark { color: var(--color-accent); }

/* ============================================================
   6. アコーディオンFAQ
   ============================================================ */
.faq { padding: var(--section-py) 0; background: var(--color-bg); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--color-border); border-radius: var(--radius-card);
  background: #fff; overflow: hidden;
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.5rem; background: none; border: none; cursor: pointer;
  font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 600;
  color: var(--color-text); text-align: left;
}
.faq-question:hover { color: var(--color-accent-dark); }
.faq-question-mark {
  flex-shrink: 0; font-family: var(--font-en); color: var(--color-accent); font-size: var(--text-lg);
}
.faq-icon {
  flex-shrink: 0; width: 22px; height: 22px; position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--color-accent-dark);
  transition: transform 0.25s ease;
}
.faq-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.faq-answer-wrap {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease;
}
.faq-item.is-open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer {
  padding: 0 1.5rem 1.25rem; color: var(--color-text-muted); line-height: 1.85; font-size: var(--text-base);
}
.reduce-motion .faq-answer-wrap { transition: none; }

/* ============================================================
   スクロールアニメーション（IntersectionObserver で is-visible 付与）
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reduce-motion .reveal { opacity: 1; transform: none; transition: none; }

/* ============================================================
   その他共通調整
   ============================================================ */
.access { background: var(--color-surface); }
.blog-link-banner { background: var(--color-primary); }
.site-footer { background: var(--color-text); }
.btn { border-radius: var(--radius-btn); }
.chat-trigger { background: var(--color-accent-dark); }
.chat-trigger:hover { background: var(--color-primary); }
.chat-panel-header { background: var(--color-text); }
.cookie-banner { background: var(--color-text); border-top: 2px solid var(--color-accent); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}
.photo-container { border-radius: var(--radius-card); }
