/* ==========================================================================
   Hair Makers  style.css
   目次
     0. 変数（色・フォント）  1. 基本  2. 共通パーツ（見出し・ボタン・写真）
     3. ヘッダー／メニュー    4. ヒーロー  5. ABOUT  6. MENU  7. STAFF
     8. RESERVATION  9. ACCESS  10. フッター  11. スマホ固定バー  12. アニメーション
   ブレークポイント：767px以下=スマホ / 1024px以上=PC（間はタブレット）
   色やフォントを変えるときは、まず 0. の変数だけ触ればOK
   ========================================================================== */

/* 0. 変数 ------------------------------------------------------------- */
:root {
  --navy: #0E2340;
  --navy-dark: #081629;
  --gold: #B49E5C;
  --yellow: #F2C230;
  --yellow-hover: #FFD54F;
  --cream: #F6F4EF;
  --text: #1A1A1A;
  --gray: #5B6270;
  --gray-light: #767676;
  --header-h: 72px;

  --font-body: '游ゴシック', 'Yu Gothic', 'YuGothic', 'Hiragino Sans', 'Meiryo', sans-serif;
  --font-display: Copperplate, 'Copperplate Gothic Light', 'Copperplate Gothic', Cinzel, serif;
  --font-bebas: 'Bebas Neue', Oswald, sans-serif;
  --font-script: Yellowtail, cursive;
}

/* 1. 基本 ------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

/* アイコン（index.html 冒頭のSVGスプライトを表示する） */
.icon { flex: none; }
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; }
.icon--insta { fill: none; stroke: currentColor; stroke-width: 1.8; }

/* 2. 共通パーツ ------------------------------------------------------- */
.section { scroll-margin-top: var(--header-h); padding: clamp(88px, 11vw, 150px) 20px; }
.section--white { background: #fff; }
.section--cream { background: var(--cream); }

/* セクション見出し（英字タイトル＋金のバー） */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-bottom: 56px; }
.sec-head--left { align-items: flex-start; text-align: left; gap: 4px; margin-bottom: 0; }
.sec-head--left .sec-head__bar { margin-top: 8px; }
.sec-head__eyebrow { font-family: var(--font-display); letter-spacing: .2em; font-size: 12px; color: var(--gray); }
.sec-head__script { font-family: var(--font-script); font-size: 28px; line-height: 1; color: var(--navy); }
.sec-head__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(25px, 8vw, 30px); line-height: .95; color: var(--navy); }
.sec-head__bar { display: block; width: 56px; height: 4px; background: var(--gold); }

/* ボタン */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-weight: 700; border-radius: 5px;
  transition: background-color .2s, color .2s;
}
.btn--white { min-height: 56px; padding: 0 26px; background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--cream); color: var(--navy); }
.btn--line { background: var(--yellow); color: var(--navy); min-height: 56px; padding: 0 26px; }
.btn--line:hover { background: var(--yellow-hover); color: var(--navy); }
.btn--outline { min-height: 60px; min-width: 220px; padding: 0 28px; border: 1.5px solid #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy); }
.reserve .btn--line { min-height: 60px; min-width: 220px; padding: 0 28px; }

/* 写真枠（比率固定・はみ出しはトリミング） */
.photo { overflow: hidden; background: var(--navy); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--wide { grid-column: 1 / 3; aspect-ratio: 3 / 2; }
.photo--square { aspect-ratio: 1 / 1; }
.photo--3x2 { aspect-ratio: 3 / 2; }

/* 3. ヘッダー／メニュー ----------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); padding: 0 clamp(16px, 3vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: transparent; box-shadow: none;
  transition: background .3s ease, box-shadow .3s ease;
}
.header.is-solid { background: var(--navy); }
.header.is-shadow { box-shadow: 0 2px 14px rgba(8, 22, 41, .25); }
.header__logo { display: flex; align-items: center; min-height: 44px; }
.header__logo img { height: 54px; width: 120px; filter: brightness(0) invert(1); }

.header__pc { display: none; align-items: center; gap: 28px; }
.header__nav { display: flex; gap: 26px; }
.header__nav a {
  font-family: var(--font-bebas); font-size: 21px; letter-spacing: .08em; color: #fff; text-decoration: none;
  padding: 6px 0 2px; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.header__nav a:hover, .header__nav a.is-active { border-bottom-color: var(--gold); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.btn-head { display: flex; align-items: center; gap: 8px; height: 44px; text-decoration: none; border-radius: 5px; transition: background-color .2s, color .2s; }
.btn-head--tel { padding: 0 16px; color: #fff; font-family: var(--font-bebas); font-size: 19px; letter-spacing: .06em; }
.btn-head--tel:hover { background: #fff; color: var(--navy); }
.btn-head--line { padding: 0 18px; background: var(--yellow); color: var(--navy); font-weight: 700; }
.btn-head--line:hover { background: #fff; color: var(--navy); }
.header__insta { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; transition: color .2s; }
.header__insta:hover { color: var(--gold); }

/* ハンバーガー */
.burger {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  width: 48px; height: 48px; margin-right: -8px; padding: 0; background: transparent; border: 0; cursor: pointer;
}
.burger span { display: block; width: 28px; height: 2px; background: #fff; transition: transform .3s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* 全画面メニュー */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy);
  padding: 110px 28px calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none;
}
.mobile-menu__en { font-family: var(--font-bebas); font-size: 46px; line-height: 1; letter-spacing: .04em; }
.mobile-menu__ja { font-size: 13px; color: #C9CFDA; }
.mobile-menu__actions { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu__tel, .mobile-menu__line {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; text-decoration: none; font-weight: 700; border-radius: 5px;
}
.mobile-menu__tel { border: 1.5px solid #fff; color: #fff; }
.mobile-menu__line { background: var(--yellow); color: var(--navy); }
.mobile-menu__insta {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  color: #fff; text-decoration: none; font-family: var(--font-display); letter-spacing: .14em; font-size: 13px;
}

@media (min-width: 1024px) {
  .header__pc { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }
}

/* 4. ヒーロー --------------------------------------------------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--navy); color: #fff; }
.hero__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); letter-spacing: .2em; font-size: 14px; color: #8A97AD;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 35, 64, .55) 0%, rgba(14, 35, 64, .35) 35%, rgba(14, 35, 64, .88) 100%); }
.hero__inner {
  position: relative; height: 100%; max-width: 1280px; margin: 0 auto;
  padding: 110px clamp(20px, 4vw, 48px) clamp(80px, 10vh, 120px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 22px;
}
.hero__title-wrap { position: relative; }
.hero__badge { position: absolute; top: -160px; left: -6px; width: 130px; height: 130px; animation: hm-spin 16s linear infinite; }
.hero__title {
  margin: 0; font-family: var(--font-bebas); font-weight: 400;
  font-size: clamp(64px, 12vw, 168px); line-height: .88; letter-spacing: .01em; text-wrap: balance;
}
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px;
  color: #fff; text-decoration: none; font-family: var(--font-display); letter-spacing: .24em; font-size: 11px;
}
.hero__scroll span { font-size: 14px; }

/* タイトルは、オープニング演出が終わってから表示（JSが動かない環境では最初から表示） */
.js .hero__title { opacity: 0; }
.js.is-ready .hero__title { opacity: 1; animation: hm-slide-in 1s cubic-bezier(.2, .7, .2, 1) both; }

/* 5. ABOUT ------------------------------------------------------------ */
.about {
  max-width: 1160px; margin: 0 auto; display: grid; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(48px, 6vw, 88px);
}
.about__text { display: flex; flex-direction: column; gap: 22px; }
.about__lead { margin: 0; font-size: clamp(24px, 2.5vw, 30px); font-weight: 700; color: var(--navy); line-height: 1.7; }
.about__body { margin: 0; text-wrap: pretty; }
.about__tags {
  display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 3px double var(--navy);
  font-family: var(--font-display); letter-spacing: .16em; font-size: 12px; color: var(--gray);
}
.about__star { color: var(--navy); }
.about__photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }

/* 6. MENU ------------------------------------------------------------- */
.menu { max-width: 1080px; margin: 0 auto; }
.menu .sec-head { margin-bottom: 48px; }
.menu__tax { margin: 10px 0 0; font-size: 15px; color: var(--gray); }
.menu__card { background: #fff; padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 60px); }
.menu__list {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); column-gap: 64px;
}
.menu__item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid rgba(14, 35, 64, .14);
}
.menu__name { font-size: 17px; font-weight: 500; line-height: 1.35; }
.menu__price { font-size: 16px; color: var(--navy); white-space: nowrap; line-height: 1.1; }
.menu__from { font-weight: 700; }
.menu__note { margin: 28px 0 0; font-size: 14px; color: var(--gray); line-height: 1.7; }
.menu__foot { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 48px; text-align: center; }
.menu__foot p { margin: 0; font-weight: 500; color: var(--navy); }

/* 7. STAFF ------------------------------------------------------------ */
.staff { max-width: 1160px; margin: 0 auto; }
.staff__list { display: flex; flex-direction: column; width: 100%; max-width: 480px; margin: 0 auto; gap: clamp(24px, 3vw, 32px); }
.staff__member { display: flex; flex-direction: column; gap: 2px; }
.staff__role { font-family: var(--font-display); letter-spacing: .14em; font-size: 12px; color: var(--gray); }
.staff__name-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.staff__name { margin: 0; font-size: 18px; font-weight: 500; color: var(--navy); line-height: 1.5; }
.staff__romaji { font-family: var(--font-display); letter-spacing: .14em; font-size: 14px; color: var(--navy); }

/* 8. RESERVATION ------------------------------------------------------ */
.reserve { scroll-margin-top: var(--header-h); padding: clamp(48px, 6vw, 80px) 20px; background: var(--navy); color: #fff; text-align: center; position: relative; }
.reserve__inner { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.reserve__script { font-family: var(--font-script); font-size: clamp(30px, 4vw, 40px); line-height: 1; color: var(--gold); }
.reserve__title { margin: 0; font-size: clamp(11px, 1.33vw, 13.3px); line-height: 1.45; font-weight: 100; white-space: nowrap; }
.reserve__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.reserve__note { margin: 12px 0 0; font-size: 14px; color: #C9CFDA; line-height: 1.8; text-wrap: pretty; }

/* 9. ACCESS ----------------------------------------------------------- */
.access { max-width: 1160px; margin: 0 auto; }
.access__grid { display: grid; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 32px; }
.access__card { background: #fff; padding: clamp(28px, 4vw, 48px); }
.info { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.info dt {
  padding: 14px 18px 14px 0; border-bottom: 1px solid rgba(14, 35, 64, .12);
  font-family: var(--font-display); letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--navy); line-height: 2;
}
.info dd { margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(14, 35, 64, .12); color: var(--gray-light); }
.info a { color: var(--gray-light); font-weight: 700; }
.access__map { display: flex; flex-direction: column; gap: 14px; }
.access__map iframe { border: 0; flex: 1; min-height: 360px; width: 100%; filter: grayscale(.6); background: #E6E3DC; }
.access__maplink {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  background: var(--gold); color: #fff; text-decoration: none; font-weight: 700; transition: background-color .2s;
}
.access__maplink:hover { background: var(--navy-dark); color: #fff; }
.access__photos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px;
  width: 100%; max-width: 560px; margin: 32px auto 0;
}
.photo__img--exterior { object-position: 60% 55%; }

/* 10. フッター -------------------------------------------------------- */
.footer { background: var(--navy-dark); color: #fff; padding: 72px 20px 40px; }
.footer__inner { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer__logo { width: 200px; height: auto; filter: brightness(0) invert(1); }
.footer__info { font-size: 14px; line-height: 1.9; color: #D5DAE3; }
.footer__info p { margin: 0; }
.footer__info a { color: #fff; }
.footer__insta { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; transition: color .2s; }
.footer__insta:hover { color: var(--gold); }
.footer__copy { margin: 0; font-family: var(--font-display); letter-spacing: .16em; font-size: 11px; color: #AEB7C6; }

/* 11. スマホ固定バー（767px以下のみ） --------------------------------- */
.sp-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy); box-shadow: 0 -4px 16px rgba(8, 22, 41, .2);
  transition: transform .35s ease; transform: translateY(110%);
}
.sp-bar.is-visible { transform: translateY(0); }
.sp-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 60px; text-decoration: none; font-weight: 700; font-size: 15px;
}
.sp-bar__tel { background: var(--navy); color: #fff; }
.sp-bar__line { background: var(--yellow); color: var(--navy); }

@media (max-width: 767px) {
  .sp-bar { display: grid; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* 12. アニメーション -------------------------------------------------- */
@keyframes hm-spin { to { transform: rotate(360deg); } }
@keyframes hm-slide-in { from { opacity: 0; transform: translateX(-120px); } to { opacity: 1; transform: none; } }

/* スクロールで下からフェードイン（js/main.js が .reveal-ready → .is-visible を付け外しする） */
.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
