/*
 * 稲咲堂 ウェブサイト スタイルシート（リニューアル版）
 * デザインコンセプト: 「間（ま）と実り」
 * 外部リソース: Google Fonts のみ使用
 * 公開時: 必ずHTTPS環境で運用してください
 */

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

/* ===========================
   CSS変数（デザイントークン）
   =========================== */
:root {
  /* ── メインカラー ── */
  --color-bg:            #F6F1E7;
  --color-surface:       #FFFFFF;
  --color-surface-warm:  #FAF6EE;

  /* ── テキストカラー ── */
  --color-text:          #2C2013;
  --color-text-light:    #6B5B4E;
  --color-text-muted:    #9B8E80;

  /* ── アクセントカラー ── */
  --color-accent:        #8B3A3A;
  --color-accent-light:  #A85454;
  --color-accent-subtle: rgba(139, 58, 58, 0.06);

  /* ── 装飾・補助カラー ── */
  --color-gold:          #B8A06A;
  --color-gold-light:    #D4C8A0;
  --color-dark:          #2C2013;
  --color-dark-text:     rgba(255, 255, 255, 0.75);

  /* ── セクション背景 ── */
  --color-hero:          #F2EBD9;
  --color-about:         #FAF6EE;
  --color-service:       #F6F1E7;
  --color-works:         #F0E8D8;
  --color-contact:       #EBE3D1;
  --color-footer:        #2C2013;

  /* ── ボーダー・シャドウ ── */
  --color-border:        rgba(184, 160, 106, 0.25);
  --color-border-light:  rgba(184, 160, 106, 0.12);
  --shadow-sm:           0 1px 3px rgba(44, 32, 19, 0.04);
  --shadow-md:           0 4px 16px rgba(44, 32, 19, 0.06);
  --shadow-lg:           0 8px 32px rgba(44, 32, 19, 0.08);
  --shadow-hover:        0 8px 24px rgba(44, 32, 19, 0.10);

  /* ── フォント ── */
  --font-main:    'Shippori Mincho', 'Noto Serif JP', serif;
  --font-ui:      'Noto Sans JP', sans-serif;
  --font-accent:  'Cormorant Garamond', serif;

  /* ── フォントサイズ ── */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-md:    1.125rem;
  --text-lg:    1.25rem;
  --text-xl:    1.5rem;
  --text-2xl:   2rem;
  --text-3xl:   2.5rem;

  /* ── 行間・字間 ── */
  --leading-tight:   1.5;
  --leading-normal:  2.0;
  --leading-relaxed: 2.4;
  --tracking-tight:  0.02em;
  --tracking-normal: 0.06em;
  --tracking-wide:   0.15em;
  --tracking-wider:  0.25em;
  --tracking-widest: 0.4em;

  /* ── スペーシング ── */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  --max-width:        960px;
  --max-width-narrow: 680px;
  --radius:           4px;
}

/* スマホ時のフォントサイズ調整 */
@media (max-width: 768px) {
  :root {
    --text-xl:  1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.75rem;
  }
}

/* ===========================
   リセット＆ベーススタイル
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  padding-top: 72px;
}

h1, h2, h3 {
  font-family: var(--font-main);
  line-height: var(--leading-tight);
}

p {
  font-family: var(--font-main);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

/* ===========================
   レイアウトユーティリティ
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--space-32) 0 var(--space-32);
  position: relative;
}

/* ===========================
   セクション見出し
   =========================== */
.section-title {
  text-align: center;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-12);
  font-weight: 400;
  font-size: var(--text-xl);
  position: relative;
  padding-bottom: var(--space-4);
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin: 0.75rem auto 0;
}

/* ===========================
   カード共通
   =========================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  padding: var(--space-8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ===========================
   ナビゲーション
   =========================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--color-gold-light);
  z-index: 100;
  transition: background 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo .logo-text-fallback {
  font-family: var(--font-main);
  font-size: var(--text-md);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ハンバーガーメニューボタン */
.nav-hamburger {
  display: none;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.nav-hamburger span + span {
  margin-top: 6px;
}

/* ハンバーガー開いた状態 */
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ドロワーオーバーレイ */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(44, 32, 19, 0.3);
  z-index: 99;
}
.nav-overlay.is-open {
  display: block;
}

/* ===========================
   ヒーローセクション
   =========================== */
.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-hero);
  position: relative;
  overflow: hidden;
}

/* 和紙テクスチャ */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  max-width: 240px;
  margin: 0 auto var(--space-8);
  opacity: 0;
  animation: heroLogoReveal 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s forwards;
}

.hero-name {
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-widest);
  font-weight: 400;
  color: var(--color-text);
  margin-top: var(--space-4);
  opacity: 0;
  animation: textReveal 0.8s ease-out 1.2s forwards;
}

.hero-tagline {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
  color: var(--color-text);
  margin-top: var(--space-4);
  font-weight: 300;
  opacity: 0;
  animation: textReveal 0.7s ease-out 2.5s forwards;
}

.hero-divider {
  width: 0;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.5;
  margin: var(--space-8) auto 0;
  animation: lineExpand 0.6s ease-out 1.8s forwards;
}

/* ===========================
   ヒーロー：スクロール誘導
   =========================== */
.hero-scroll-hint {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  z-index: 1;
  animation: fadeIn 0.5s ease 3.8s forwards;
}

.hero-scroll-hint__text {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--color-text);
  opacity: 0.35;
}

.hero-scroll-hint__arrow {
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
  transform: rotate(45deg);
  opacity: 0.35;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ===========================
   SVG装飾（ヒーロー背景）
   =========================== */
.hero-deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-deco__ripple {
  opacity: 0;
  transform-origin: 600px 350px;
  animation: rippleExpand 4s ease-out infinite;
}
.hero-deco__ripple--1 { animation-delay: 0s; }
.hero-deco__ripple--2 { animation-delay: 1s; }
.hero-deco__ripple--3 { animation-delay: 2s; }
.hero-deco__ripple--4 { animation-delay: 3s; }

/* 稲穂：ロゴ着地後にゆっくり伸び上がる */
.hero-deco__stalks-left,
.hero-deco__stalks-right {
  opacity: 0;
  animation: decoRevealStalks 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.0s forwards;
}

/* 花（大）：桜・梅・菊 — 森の奥から浮かび上がる */
.hero-deco__bloom-lg {
  opacity: 0;
  animation: decoRevealLg 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.3s forwards;
}

/* 花（中）— 画面に散らばる花々 */
.hero-deco__bloom-md {
  opacity: 0;
  animation: decoRevealMd 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.8s forwards;
}

/* 花（小）＋紅葉 — 風に乗って現れる */
.hero-deco__bloom-sm {
  opacity: 0;
  animation: decoRevealSm 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.2s forwards;
}

/* 散り花びら — 最後にそっと舞い降りる */
.hero-deco__petals {
  opacity: 0;
  animation: decoRevealPetals 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.5s forwards;
}

.section-deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===========================
   Service セクション背景装飾
   =========================== */
.service-section {
  position: relative;
  overflow: hidden;
}

.service-deco__bloom-lg {
  opacity: 0;
}
.service-deco__bloom-md {
  opacity: 0;
}
.service-deco__bloom-sm {
  opacity: 0;
}
.service-deco__petals {
  opacity: 0;
}

/* スクロールで表示された時のアニメーション */
.service-section.is-visible .service-deco__bloom-lg {
  animation: decoRevealLg 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}
.service-section.is-visible .service-deco__bloom-md {
  animation: decoRevealMd 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}
.service-section.is-visible .service-deco__bloom-sm {
  animation: decoRevealSm 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.0s forwards;
}
.service-section.is-visible .service-deco__petals {
  animation: decoRevealPetals 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.3s forwards;
}

/* ===========================
   セクション区切りSVG
   =========================== */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  z-index: 2;
  display: block;
}

/* ===========================
   ボタン
   =========================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  font-family: var(--font-main);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ===========================
   区切り線
   =========================== */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) auto;
  width: 60px;
}

/* ===========================
   About セクション
   =========================== */
#about {
  background: var(--color-about);
  position: relative;
}

.about-vertical-label {
  position: absolute;
  left: calc(50% - 420px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-main);
  font-size: var(--text-sm);
  letter-spacing: 0.5em;
  color: var(--color-text);
  opacity: 0.12;
  z-index: 1;
}

.about-body {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  text-align: center;
}

.about-body p {
  margin-bottom: var(--space-6);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  font-weight: 300;
  font-size: var(--text-base);
}

.about-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  .about-vertical-label { display: none; }
}

/* ===========================
   Service セクション
   =========================== */
#service {
  background: var(--color-service);
  position: relative;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.service-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.service-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.service-card__num {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
  display: block;
}

.service-card__title {
  font-family: var(--font-main);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: var(--tracking-normal);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.service-card__line {
  width: 32px;
  height: 1px;
  background: var(--color-gold-light);
  margin-bottom: var(--space-4);
}

.service-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-light);
  font-weight: 300;
}

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

/* ===========================
   Works セクション
   =========================== */
.works-section {
  position: relative;
  background: var(--color-works);
}

.works-intro {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-weight: 300;
  margin-bottom: var(--space-8);
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: var(--space-8);
  position: relative;
  padding-left: var(--space-12);
}

/* タイムライン縦線 */
.works-list::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-gold-light);
}

.works-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  position: relative;
}

/* タイムラインドット */
.works-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-12) + 1.5rem - 3px);
  top: 2rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
}

.works-num {
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  line-height: 1;
  min-width: 3rem;
  padding-top: var(--space-4);
}

.works-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  padding: var(--space-8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex: 1;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.works-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.works-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.works-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.works-tag {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 0.2rem 0.75rem;
}

.works-period {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.works-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.works-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.works-row .works-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  background: var(--color-gold);
  color: #fff;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.works-row p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-light);
  font-weight: 300;
  margin: 0;
}

@media (max-width: 768px) {
  .works-list {
    padding-left: 0;
  }
  .works-list::before {
    display: none;
  }
  .works-item::before {
    display: none;
  }
  .works-item {
    flex-direction: column;
  }
  .works-num {
    min-width: auto;
  }
  .works-card__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .works-row {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ===========================
   Contact セクション
   =========================== */
#contact {
  position: relative;
  background: var(--color-contact);
}

.contact-body {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-lead {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-normal);
}

.contact-note {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
  line-height: var(--leading-normal);
  font-weight: 300;
}

.contact-email-wrap {
  margin-top: var(--space-8);
  text-align: center;
}

.contact-btn {
  display: inline-block;
}

/* ===========================
   お問い合わせフォーム
   =========================== */
.contact-form-wrap {
  max-width: 560px;
  margin: var(--space-8) auto 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-main);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(139, 58, 58, 0.1);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: var(--leading-normal);
}

/* ===========================
   フッター
   =========================== */
.footer {
  background: var(--color-footer);
  color: var(--color-dark-text);
  padding: var(--space-12) 0;
  text-align: center;
  position: relative;
}

/* フッター上部装飾線 */
.footer::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin: 0 auto var(--space-8);
  opacity: 0.5;
}

.footer-name {
  font-family: var(--font-main);
  font-size: var(--text-base);
  letter-spacing: var(--tracking-wider);
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
}

/* ===========================
   モーダル（ポップアップ）
   =========================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(44, 32, 19, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.is-open {
  display: flex;
}
.modal-container {
  background: var(--color-surface);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-8);
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-text-muted);
  font-family: var(--font-main);
  transition: color 0.2s;
}
.modal-close:hover { color: var(--color-accent); }
.modal-title {
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  padding-right: 2rem;
}
.modal-section-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.modal-list {
  list-style: none;
  padding: 0;
}
.modal-list li {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--color-text-light);
  padding-left: 1.2em;
  position: relative;
  font-weight: 300;
}
.modal-list li::before {
  content: '\30FB';
  position: absolute;
  left: 0;
}
.modal-approach {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-light);
  font-weight: 300;
  padding-left: 0.5rem;
  border-left: 2px solid var(--color-gold);
}
.modal-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.modal-step {
  text-align: center;
  padding: var(--space-2);
  background: var(--color-surface-warm);
  border-radius: var(--radius);
}
.modal-step__num {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}
.modal-step__label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.modal-step__desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
}
@media (max-width: 768px) {
  .modal-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   アニメーション定義
   =========================== */
@keyframes heroLogoReveal {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(28px);
    filter: blur(6px) brightness(1.1);
  }
  60% {
    opacity: 0.85;
    transform: scale(1.01) translateY(-2px);
    filter: blur(0px) brightness(1.05);
  }
  80% {
    opacity: 1;
    transform: scale(0.995) translateY(1px);
    filter: blur(0px) brightness(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px) brightness(1);
  }
}

@keyframes textReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rippleExpand {
  0%   { r: 80;  opacity: 0.08; }
  100% { r: 320; opacity: 0; }
}

@keyframes decoRevealStalks {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to   { opacity: 0.15; transform: translateY(0) scale(1); }
}

@keyframes decoRevealLg {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  to   { opacity: 0.14; transform: translateY(0) scale(1); }
}

@keyframes decoRevealMd {
  from { opacity: 0; transform: translateY(7px) scale(0.93); }
  to   { opacity: 0.11; transform: translateY(0) scale(1); }
}

@keyframes decoRevealSm {
  from { opacity: 0; transform: translateY(6px) scale(0.95); }
  to   { opacity: 0.10; transform: translateY(0) scale(1); }
}

@keyframes decoRevealPetals {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 0.08; transform: translateY(0); }
}

@keyframes lineExpand {
  from { width: 0; }
  to { width: 60px; }
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===========================
   スクロールアニメーション（CSS Scroll-Driven）
   =========================== */
@keyframes scrollReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title,
.about-body p,
.service-card,
.works-item,
.contact-body {
  animation: scrollReveal linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* Scroll-Driven Animations 非対応ブラウザ用フォールバック */
@supports not (animation-timeline: view()) {
  .section-title,
  .about-body p,
  .service-card,
  .works-item,
  .contact-body {
    opacity: 1;
    transform: none;
  }
  /* JSベースのフォールバック用クラス */
  .scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   アクセシビリティ：動きを控える設定
   =========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-logo,
  .hero-name,
  .hero-tagline,
  .hero-divider,
  .hero-scroll-hint {
    opacity: 1;
    filter: none;
  }
  .hero-divider {
    width: 60px;
  }
  .hero-deco__ripple {
    opacity: 0.06;
    r: 200;
  }
  .hero-deco__stalks-left,
  .hero-deco__stalks-right {
    opacity: 0.15;
  }
  .hero-deco__bloom-lg {
    opacity: 0.14;
  }
  .hero-deco__bloom-md {
    opacity: 0.11;
  }
  .hero-deco__bloom-sm {
    opacity: 0.10;
  }
  .hero-deco__petals {
    opacity: 0.08;
  }
  .service-deco__bloom-lg {
    opacity: 0.14;
  }
  .service-deco__bloom-md {
    opacity: 0.11;
  }
  .service-deco__bloom-sm {
    opacity: 0.10;
  }
  .service-deco__petals {
    opacity: 0.08;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===========================
   レスポンシブ
   =========================== */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-surface);
    flex-direction: column;
    padding: var(--space-16) var(--space-8);
    gap: var(--space-8);
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 105;
  }

  .nav-links.is-open {
    right: 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .hero-logo {
    max-width: 160px;
  }

  .hero-name {
    font-size: var(--text-2xl);
    letter-spacing: 0.3em;
  }

  .hero-tagline {
    font-size: var(--text-sm);
    padding: 0 1.5rem;
  }

  .hero-scroll-hint {
    bottom: 1.5rem;
  }

  /* モバイル：装飾を薄めに表示（ロゴ・文章の邪魔にならない程度） */
  .hero-deco__bloom-md {
    animation: decoRevealMd-mobile 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.8s forwards;
  }
  .hero-deco__bloom-sm {
    animation: decoRevealSm-mobile 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.2s forwards;
  }
  .hero-deco__petals {
    animation: decoRevealPetals-mobile 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.5s forwards;
  }

  @keyframes decoRevealMd-mobile {
    from { opacity: 0; transform: translateY(7px) scale(0.93); }
    to { opacity: 0.09; transform: translateY(0) scale(1); }
  }
  @keyframes decoRevealSm-mobile {
    from { opacity: 0; transform: translateY(6px) scale(0.95); }
    to { opacity: 0.08; transform: translateY(0) scale(1); }
  }
  @keyframes decoRevealPetals-mobile {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 0.06; transform: translateY(0); }
  }

  /* サービスセクション装飾は引き続き非表示（軽量化） */
  .service-deco__bloom-sm,
  .service-deco__bloom-md,
  .service-deco__petals {
    display: none;
  }

  .hero-logo {
    animation-duration: 1.5s;
  }

  .section-title {
    font-size: var(--text-xl);
  }

  .section-divider {
    height: 25px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .section {
    padding: var(--space-24) 0;
  }

  .hero-logo {
    max-width: 200px;
  }

  /* タブレット：装飾を薄めに表示 */
  .hero-deco__bloom-sm {
    animation: decoRevealSm-tablet 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.2s forwards;
  }
  .hero-deco__petals {
    animation: decoRevealPetals-tablet 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.5s forwards;
  }

  @keyframes decoRevealSm-tablet {
    from { opacity: 0; transform: translateY(6px) scale(0.95); }
    to { opacity: 0.09; transform: translateY(0) scale(1); }
  }
  @keyframes decoRevealPetals-tablet {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 0.07; transform: translateY(0); }
  }

  /* サービスセクション装飾は非表示 */
  .service-deco__bloom-sm,
  .service-deco__petals {
    display: none;
  }

  .container {
    padding: 0 1.5rem;
  }
}

/* ===========================
   問い合わせページ（contact.html）
   =========================== */

/* ページ全体の背景 */
.contact-page {
  background-color: var(--color-contact);
  min-height: 100vh;
}

/* よくあるご相談の箇条書き */
.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  position: relative;
  padding-left: 1em;
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
}

.contact-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ステップ流れセクション（幅制限なし） */
.contact-flow {
  text-align: center;
  margin-top: var(--space-8);
}

/* ステップの並びコンテナ */
.contact-steps {
  display: flex;
  gap: var(--space-6);
}

/* 各ステップカード */
.contact-step {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  padding: var(--space-6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

/* ステップ番号（STEP 1 等） */
.contact-step__num {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

/* ステップタイトル */
.contact-step__title {
  font-family: var(--font-main);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

/* ステップ説明文 */
.contact-step__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-light);
  font-weight: 300;
}

/* 「詳しく見る」リンク（index.html 側） */
.contact-more {
  text-align: center;
  margin-top: var(--space-6);
}

.contact-more a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-more a:hover {
  text-decoration: underline;
}

/* 現在のナビゲーションリンク */
.nav-links a.is-current {
  color: var(--color-accent);
}

.nav-links a.is-current::after {
  width: 100%;
}

/* 問い合わせページ レスポンシブ */
@media (max-width: 768px) {
  .contact-steps {
    flex-direction: column;
  }
}
