/* ============================================
   common.css  —  デザイントークン & 共通要素
   美容院（ナチュラル・アットホーム系）見本
   ※このサイトは電気屋テンプレとは別系統の配色・書体です
   ============================================ */

:root {
  /* ---- カラー ---- */
  --color-base:        #FBF8F1;  /* 温かいオフホワイト（メイン背景） */
  --color-surface:     #EEE7D9;  /* ライトベージュ（セクション区切り） */
  --color-text:        #2F2A24;  /* 温かいチャコール（本文） */
  --color-text-sub:    #80766A;  /* グレージュ（補足） */
  --color-accent:      #B87861;  /* くすみテラコッタ（主アクセント） */
  --color-accent-soft: #DFC4B5;  /* 淡いテラコッタ */
  --color-sage:        #7F8A73;  /* くすみグリーン（自然感の補助色） */
  --color-sage-deep:   #4C5A4A;  /* 深いオリーブ */
  --color-line:        #DFD4C5;  /* 細い境界線 */
  --color-cta:         #A8634E;  /* 予約ボタン（テラコッタ深め） */
  --color-cta-hover:   #8F503F;  /* 予約ボタン ホバー */
  --color-white:       #FFFFFF;

  /* ---- 書体 ---- */
  --font-serif-ja: "Shippori Mincho B1", "Shippori Mincho", "Noto Serif JP", serif;
  --font-serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:     "Zen Kaku Gothic New", "Noto Sans JP", -apple-system, sans-serif;

  /* ---- レイアウト ---- */
  --container: 1120px;
  --container-wide: 1320px;
  --gutter: 24px;
  --header-h: 76px;

  /* ---- 余白（セクション上下） ---- */
  --section-pad: 76px;       /* モバイル */
  --section-pad-pc: 124px;   /* PC */

  /* ---- 角丸・影 ---- */
  --radius-card: 8px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 70px rgba(47, 42, 36, 0.1);
}

/* ============================================
   ベース
   ============================================ */
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-base);
  line-height: 1.85;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

* {
  letter-spacing: 0 !important;
}

/* リンクの基本ホバー */
a { transition: color .25s ease, opacity .25s ease; }

/* ============================================
   レイアウト・ユーティリティ
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }

.section {
  padding-block: var(--section-pad);
}
.section--surface { background: var(--color-surface); }

.section-lead {
  max-width: 44em;
  margin: -28px auto 52px;
  text-align: center;
  color: var(--color-text-sub);
  font-size: 0.95rem;
  line-height: 2;
}

/* セクション見出し（英字ラベル＋和文タイトル） */
.sec-head {
  text-align: center;
  margin-bottom: 56px;
}
.sec-head__en {
  display: block;
  font-family: var(--font-serif-en);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  line-height: 1;
}
.sec-head__ja {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-serif-ja);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--color-text-sub);
}
.sec-head__ja::before,
.sec-head__ja::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-line);
  vertical-align: middle;
  margin-inline: 14px;
}

/* ============================================
   ボタン
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 32px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn--cta {
  background: var(--color-cta);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(181, 119, 95, 0.28);
}
.btn--cta:hover {
  background: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(181, 119, 95, 0.34);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}
.btn--ghost:hover {
  background: var(--color-text);
  color: var(--color-base);
}
.btn--glass {
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.btn--glass:hover {
  background: rgba(255,255,255,.92);
  color: var(--color-text);
}
.btn--block { display: flex; width: 100%; }

/* ============================================
   ヘッダー
   ============================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .4s ease, box-shadow .4s ease;
}
.header__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.header__logo {
  font-family: var(--font-serif-en);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-white);
  transition: color .4s ease;
  flex: 0 0 auto;
}
.header__logo small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  font-weight: 400;
  margin-top: 2px;
  opacity: 0.85;
}

/* スクロールで白背景化 */
.header.is-scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--color-line);
}
.header.is-scrolled .header__logo,
.header.is-scrolled .nav__link,
.header.is-scrolled .nav__shops a { color: var(--color-text); }
.header.is-scrolled .nav__shops a { border-color: rgba(47,42,36,.24); }

/* ナビ */
.nav { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nav__list { display: flex; gap: 13px; align-items: center; }
.nav__link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  white-space: nowrap;
  letter-spacing: 0.1em;
  color: var(--color-white);
  position: relative;
  transition: color .4s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width .3s ease;
}
.nav__link:hover::after { width: 100%; }

.nav__shops {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav__shops a {
  display: grid;
  gap: 1px;
  min-width: 110px;
  padding: 6px 9px;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: var(--radius-card);
  font-family: var(--font-serif-en);
  font-size: 0.78rem;
  line-height: 1.2;
  transition: color .4s ease, border-color .4s ease, background-color .25s ease;
}
.nav__shops a:hover {
  background: rgba(255,255,255,.12);
}
.nav__shops span {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  color: inherit;
  opacity: .78;
}

/* SNS アイコンリンク（ヘッダー内） */
.nav__sns-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__sns {
  display: flex;
  align-items: center;
  color: var(--color-white);
  opacity: 0.85;
  transition: opacity .25s ease, color .4s ease;
}
.nav__sns:hover { opacity: 1; }
.header.is-scrolled .nav__sns { color: var(--color-text); }
.nav__sns--text {
  font-family: var(--font-serif-en);
  font-size: 0.92rem;
  font-style: italic;
  letter-spacing: 0.08em;
}

.nav__reserve {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 22px;
  background: var(--color-cta);
  color: var(--color-white) !important;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.nav__reserve:hover { background: var(--color-cta-hover); }

/* ハンバーガー（モバイルのみ表示） */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  z-index: 110;
}
.hamburger span {
  position: absolute;
  left: 8px;
  width: 24px; height: 1.5px;
  background: var(--color-white);
  transition: transform .35s ease, opacity .25s ease, background-color .4s ease;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }
.header.is-scrolled .hamburger span { background: var(--color-text); }
.hamburger.is-open span { background: var(--color-text); }
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================
   フッター
   ============================================ */
.footer {
  background: var(--color-text);
  color: var(--color-base);
  padding-block: 64px 96px;
  text-align: center;
}
.footer__logo {
  font-family: var(--font-serif-en);
  font-size: 2rem;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.footer__logo small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.5em;
  opacity: 0.7;
  margin-top: 4px;
}
.footer__sns {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-block: 28px;
  font-family: var(--font-serif-en);
  letter-spacing: 0.1em;
}
.footer__sns a {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0.85;
}
.footer__sns a:hover { opacity: 1; color: var(--color-accent-soft); }
.footer__copy {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  opacity: 0.55;
}

/* ============================================
   スクロール出現アニメーション
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   レスポンシブ（PC）
   ============================================ */
@media (min-width: 768px) {
  .section { padding-block: var(--section-pad-pc); }
}

@media (min-width: 901px) {
  .hamburger { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  /* PCナビを隠してドロワーに */
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    background: var(--color-base);
    transform: translateX(100%);
    transition: transform .4s ease;
    z-index: 105;
  }
  .nav.is-open { transform: none; }
  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-bottom: 32px;
  }
  .nav__link { color: var(--color-text); font-size: 1rem; }
  .nav__shops {
    flex-direction: column;
    width: min(280px, calc(100vw - 48px));
    margin-bottom: 18px;
  }
  .nav__shops a {
    width: 100%;
    color: var(--color-text);
    border-color: var(--color-line);
    text-align: center;
  }
  .nav__reserve { color: var(--color-white) !important; }
  .hamburger { display: block; }

  /* ドロワー内のSNSアイコン */
  .nav__sns-links {
    margin-top: 32px;
    gap: 24px;
  }
  .nav__sns {
    color: var(--color-text-sub);
    opacity: 1;
  }
  .nav__sns svg { width: 24px; height: 24px; }
}
