/* ============================================================
   teate | 共通スタイルシート
   カラー変数・タイポグラフィ・共通コンポーネント
   ============================================================ */

/* ── CSS変数 ── */
:root {
  --color-primary:    #7c5c3e;   /* ブラウン */
  --color-primary-lt: #a07850;   /* ライトブラウン */
  --color-accent:     #f0e4d8;   /* 薄ベージュピンク */
  --color-accent2:    #e8d5c4;   /* ベージュ濃い目 */
  --color-base:       #fff;
  --color-text:       #3a2e26;   /* 本文テキスト */
  --color-sub:        #7a6a5a;   /* サブテキスト */
  --color-line:       #e2d5c8;   /* ボーダー */
  --color-bg-soft:    #faf6f2;   /* 薄背景 */
  --color-bg-deep:    #3a2e26;   /* フッター背景 */

  --font-jp:  'Noto Sans JP', sans-serif;
  --font-en:  'Cormorant Garamond', serif;

  --radius:   12px;
  --radius-lg: 20px;
  --shadow:   0 4px 24px rgba(60,40,20,.08);
  --shadow-md: 0 8px 40px rgba(60,40,20,.12);

  --max-w:    1100px;
  --max-w-sm: 760px;
}

/* ── リセット ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-base);
  overflow-x: hidden;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── 共通ユーティリティ ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--sm {
  max-width: var(--max-w-sm);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── セクション共通余白 ── */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--deep { padding: 120px 0; }

/* ── セクション見出し ── */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .en {
  font-family: var(--font-en);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: .18em;
  color: var(--color-primary-lt);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
}
.section-head p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--color-sub);
  line-height: 1.9;
}

/* ── CTAボタン ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-jp);
  cursor: pointer;
  transition: all .3s ease;
  border: none;
  letter-spacing: .04em;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124,92,62,.28);
}
.btn--primary:hover {
  background: var(--color-primary-lt);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(124,92,62,.34);
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
}
.btn svg { flex-shrink: 0; }

/* ── 不安解消テキスト（CTA付近） ── */
.cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-sub);
  text-align: center;
}
.cta-note span { margin: 0 8px; }

/* ── タグ ── */
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  letter-spacing: .06em;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 500;
}

/* ── カード共通 ── */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ── ヘッダー ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 16px rgba(60,40,20,.08);
  backdrop-filter: blur(10px);
  transition: background .4s ease, box-shadow .4s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 16px rgba(60,40,20,.08);
  backdrop-filter: blur(10px);
}
.site-header.dark-mode {
  /* 常に白背景 */
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo__text {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: .04em;
}
.site-logo__text small {
  display: block;
  font-family: var(--font-jp);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--color-sub);
  margin-bottom: 2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--color-text);
  position: relative;
  padding-bottom: 3px;
  transition: color .2s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-primary);
  transition: width .3s ease;
}
.site-nav a:hover { color: var(--color-primary); }
.site-nav a:hover::after { width: 100%; }
.site-nav a.active { color: var(--color-primary); }
.site-nav a.active::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-tel {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── ハンバーガー ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── モバイルメニュー ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(250,246,242,.97);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--color-text);
}
.mobile-menu a:hover { color: var(--color-primary); }

/* ── フッター ── */
.site-footer {
  background: var(--color-bg-deep);
  color: rgba(255,255,255,.75);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo .site-logo__text { color: rgba(255,255,255,.9); }
.footer-logo .site-logo__text small { color: rgba(255,255,255,.5); }
.footer-desc {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,.6);
}
.footer-nav h4 {
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 400;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.footer-nav a:hover { color: #fff; }
.footer-contact dt {
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 4px;
  margin-top: 14px;
  text-transform: uppercase;
}
.footer-contact dt:first-child { margin-top: 0; }
.footer-contact dd { font-size: 14px; color: rgba(255,255,255,.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

/* ── フェードインアニメーション ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
.fade-in-delay-4 { transition-delay: .4s; }

/* ── ページトップボタン ── */
#page-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 80;
  box-shadow: 0 4px 16px rgba(124,92,62,.3);
}
#page-top.visible { opacity: 1; pointer-events: auto; }
#page-top:hover { transform: translateY(-3px); }

/* ======================================================
   レスポンシブ
   ====================================================== */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section--deep { padding: 80px 0; }
  .site-header { padding: 0 20px; }
  .site-nav { display: none; }
  .header-cta .btn { display: none; }
  .hamburger { display: flex; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
