/*
 Theme Name:   bi-yui2026
 Theme URI:    https://example.com/
 Description:  美-yui オリジナルテーマ（Lightning 子テーマ）
 Author:       Yuki
 Author URI:   https://example.com/
 Template:     lightning
 Version:      2.0.0
 Text Domain:  bi-yui2026
*/

/* =============================================
   IMPORT PARENT THEME
   ============================================= */
@import url("../lightning/style.css");

/* =============================================
   GOOGLE FONTS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500&family=Zen+Kaku+Gothic+Antique:wght@300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/*
  日本語フォント代替: Shippori Mincho（Google Fonts）
  A-OTF リュウミン Pr6N に近い明朝体の無料フォント。
  リュウミンを購入・インストール済みの場合は --font-jp の先頭に戻して使用可。
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --color-bg:          #faf8f5;
  --color-bg-alt:      #f1ece5;
  --color-bg-dark:     #1a1410;      /* フッター背景 */
  --color-contact-bg:  #28201a;      /* CONTACTオーバーレイ */

  --color-text:        #1a1a1a;      /* 日本語テキスト（黒） */
  --color-text-mid:    #555;
  --color-text-light:  #999;
  --color-accent:      #b09167;      /* ゴールド（ナビ・ラベル） */
  --color-title:       #36302c;      /* セクションタイトル */
  --color-border:      rgba(176, 145, 103, 0.2);

  /* フォント */
  --font-en:  'Zen Kaku Gothic Antique', sans-serif;
  --font-it:  'Cormorant Garamond', serif;           /* hero tagline */
  --font-jp:  'Shippori Mincho', 'A-OTF Ryumin Pr6N', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  /* ギャラリーオーバーレイ */
  --gallery-overlay: rgba(176, 145, 103, 0.32);

  --max-w:      960px;
  --section-py: 90px;
}

/* =============================================
   RESET / BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 15px;
  line-height: 2;
  margin: 0;
  padding: 0;
}

/* Lightning の不要部分を非表示 */
.site-header, #site-header, .l-header,
.vk-mobile-nav, .vk-mobile-nav-button,
#page-title, .page-title, .vk_page_title_area,
.l-footer, .site-footer, #site-footer,
.l-footerNavArea, .l-footerCopyright {
  display: none !important;
}

body.home #main, body.front-page #main, .l-main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.l-wrap, #wrapper, .l-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* =============================================
   SECTION BASE
   ============================================= */
.s { padding: var(--section-py) 20px; }
.s--alt { background-color: var(--color-bg-alt); }

.s__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* セクションタイトル共通 */
.s__title {
  text-align: center;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--color-title);
  text-transform: uppercase;
  margin: 0 0 60px;
}

/* s__title が .s の直接子（グリッド外）の場合：幅制限を外してフル幅センタリング */
.s > .s__title {
  display: block;
  width: 100%;
  margin-bottom: 56px;
}

/* =============================================
   1. HERO
   ============================================= */
#hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* 画像の自然サイズを維持（クロップなし） */
}

#hero > img,
#hero picture {
  display: block;
  width: 100%;
}

#hero picture img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__text {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8% 0 14%;
  color: #fff;
  pointer-events: none;
}

.hero__logo {
  font-family: var(--font-jp);
  font-size: clamp(18px, 2.0vw, 30px);   /* 気持ち小さく */
  font-weight: 400;
  letter-spacing: 0.25em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.hero__logo .en {
  font-family: var(--font-jp);
  font-size: 0.88em;
  letter-spacing: 0.18em;
}

.hero__tagline {
  font-family: var(--font-it);
  font-size: clamp(20px, 2.4vw, 34px);   /* もう少し大きく */
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

/* =============================================
   2. SECTION NAVIGATION
   ============================================= */
#section-nav {
  background: var(--color-bg);
  padding: 20px 20px;
  position: sticky;
  top: 0;
  z-index: 200;
  /* 下線なし */
}

/* JS: hero通過後にfixedへ切り替え */
#section-nav.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

/* =============================================
   WP管理バー対応（ログイン中のみ body.admin-bar が付く）
   ============================================= */
/* PC: 管理バー 32px */
.admin-bar #section-nav {
  top: 32px;
}
.admin-bar #section-nav.is-fixed {
  top: 32px; /* JSで上書きされるが念のため */
}

/* タブレット以下: 管理バー 46px */
@media screen and (max-width: 782px) {
  .admin-bar #section-nav {
    top: 46px;
  }
}

/* SP: ハンバーガーボタンを管理バー下にずらす */
@media (max-width: 640px) {
  .admin-bar #hamburger {
    top: 64px; /* 46px (管理バー) + 18px */
  }
}

#section-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#section-nav a {
  font-family: var(--font-en);
  font-size: 15px;          /* 10px → 15px */
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  text-transform: uppercase;
  transition: opacity 0.2s;
}

#section-nav a:hover,
#section-nav a.is-active { opacity: 0.5; }

/* =============================================
   3. CONCEPT
   ============================================= */
#concept .s__inner {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 64px;
  align-items: center;
  max-width: 820px;   /* 全体幅を絞って中央寄せ */
}

/* 画像：左 */
.concept__image img {
  width: 100%;
  height: auto;
}

.concept__lead {
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  color: var(--color-text);
  margin: 0 0 20px;
}

.concept__body {
  font-size: 14px;
  line-height: 2.3;
  color: #444;
  margin: 0 0 16px;
}

/* =============================================
   4. STYLIST
   ============================================= */
#stylist { background-color: var(--color-bg-alt); }

#stylist .s__inner {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 70px;
  align-items: start;
}

/* 写真2枚のオーバーラップレイアウト */
.stylist__photos {
  position: relative;
  width: 100%;
  padding-bottom: 105%; /* コンテナ高さ確保 */
}

.stylist__photo-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 76%;     /* 奥：大きめ */
  height: auto;
  z-index: 1;
}

.stylist__photo-2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 44%;     /* 手前：気持ち小さく */
  height: auto;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.stylist__label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0 0 10px;
}

.stylist__name-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 0 0 22px;
}

.stylist__name {
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-text);
}

.stylist__name-en {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.stylist__bio p {
  font-size: 14px;
  line-height: 2.3;
  color: #444;
  margin: 0 0 18px;
}

/* =============================================
   5. MENU
   ============================================= */
#menu .s__inner { max-width: 680px; }

.menu__category { margin-bottom: 36px; }

.menu__category-title {
  font-family: var(--font-en);
  font-size: 13px;          /* 10px → 13px */
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.menu__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dotted var(--color-border);
  font-size: 14px;
}

.menu__item-name { color: var(--color-text); }

.menu__item-name small {
  display: block;
  font-family: var(--font-jp);
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 2px;
}

.menu__item-price {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--color-text-mid);
  white-space: nowrap;
  margin-left: 20px;
}

.menu__item-price--hl { color: var(--color-accent); }

.menu__note {
  font-size: 11px;
  color: var(--color-text-light);
  text-align: right;
  margin-top: 14px;
  line-height: 2;
}

/* =============================================
   6. PHOTO GALLERY（全幅4カラム）
   ============================================= */
#gallery { padding: 0; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

/* ギャラリーアイテム共通（galleryとinterior両方） */
.gallery__item,
.interior__item {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

/* gallery（作業写真）: 縦幅を広げて統一 */
.gallery__item {
  height: 500px;
}

/* interior（内観写真）: galleryと同じ高さ */
.interior__item {
  height: 500px;
}

.gallery__item img,
.interior__item img {
  width: 100%;
  height: 100%;      /* 親の固定高さを埋める */
  object-fit: cover; /* はみ出し部分をトリミング */
  display: block;
}

/* オーバーレイ #b09167 / 32% */
.gallery__item::after,
.interior__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--gallery-overlay);
  pointer-events: none;
}

/* =============================================
   7. CATALOG
   ============================================= */
/* ベージュブロックを白い余白で浮かせる */
#catalog {
  background-color: var(--color-bg);   /* 外側は白（ギャラリーとの間の余白色） */
  padding: 70px 20px;                  /* 上下に白スペース */
}

#catalog .s__inner {
  background-color: var(--color-bg-alt);   /* 内側がベージュ */
  padding: var(--section-py) 60px;
  max-width: 820px;
}

/* catalog__grid の max-width は s__inner 内で相対的に指定 */

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto 36px;
}

.catalog__item {
  overflow: hidden;
}

.catalog__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.3s;
  display: block;
}

.catalog__item img:hover { opacity: 0.85; }

.catalog__more { text-align: center; margin-top: 8px; }

.catalog__more a {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 3px;
  transition: opacity 0.2s;
}

.catalog__more a:hover { opacity: 0.6; }

/* =============================================
   8. INTERIOR PHOTOS（全幅4カラム）
   ============================================= */
#interior { padding: 0; }

.interior__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;   /* 左が横長・右2枚は等幅 */
  gap: 3px;
}

/* =============================================
   9. ACCESS
   ============================================= */
#access .s__inner {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 70px;
  align-items: start;
}

/* 左：マップ + 外観写真 */
.access__left { display: flex; flex-direction: column; gap: 12px; }

.access__map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.access__photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* 右：情報 */
.access__info .s__title { text-align: left; }

.access__salon-name {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin: 0 0 28px;
}

.access__salon-kana {
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--color-accent);
  margin-left: 24px;
  letter-spacing: 0.1em;
}

.access__info dl { margin: 0; }

.access__info dt {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 22px 0 5px;
}

.access__info dt:first-of-type { margin-top: 0; }

.access__info dd {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 14px;
  color: #444;
  line-height: 2;
}

.access__info dd a {
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.08em;
}

/* =============================================
   10. CONTACT & RESERVE
   ============================================= */
#contact {
  position: relative;
  background-image: url('images/contactbg.png');
  background-size: cover;
  background-position: center;
  padding: 120px 20px;    /* 縦幅 UP */
  text-align: center;
  overflow: hidden;
}

/* オーバーレイ #28201a / 60% */
#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(40, 32, 26, 0.60);
  z-index: 0;
}

.contact__inner {
  position: relative;
  z-index: 1;
}

.contact__title {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: normal;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.contact__sub {
  font-family: var(--font-jp);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  margin: 0 0 46px;
}

.contact__btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ボタン共通 */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 54px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background-color: rgba(36, 26, 18, 0.75);
  color: var(--color-accent);
  border: 1px solid rgba(176, 145, 103, 0.4);
  transition: background 0.25s, border-color 0.25s;
  cursor: pointer;
}

/* 全ボタン: ホバーでゴールド反転 */
.contact-btn:hover {
  background-color: var(--color-accent);   /* #b09167 */
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
}

/* LINE ボタン: ベースカラー #44392d */
.contact-btn--line {
  background-color: #44392d;
}

/* Instagram ボタン: Mixed case 表示 */
.contact-btn--instagram {
  background-color: rgba(36, 26, 18, 0.65);
  text-transform: none;
  letter-spacing: 0.12em;
}

/* =============================================
   11. SITE FOOTER
   ============================================= */
#site-footer-custom {
  background-color: var(--color-bg-dark);  /* #1a1410 */
  padding: 22px 20px;
  text-align: center;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--color-accent);   /* #b09167 */
  margin: 0;
}

/* =============================================
   SP専用改行（640px以下のみ表示）
   ============================================= */
.sp-br  { display: none; }

/* PC/SP 出し分け */
.sp-only { display: none; }
.pc-only { display: inline; }

/* =============================================
   FADE IN ANIMATION
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE — tablet
   ============================================= */
@media (max-width: 900px) {
  :root { --section-py: 70px; }

  /* concept */
  #concept .s__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* stylist */
  #stylist .s__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stylist__photos { padding-bottom: 90%; }

  /* access */
  #access .s__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =============================================
   ハンバーガーボタン（PC では非表示）
   ============================================= */
#hamburger {
  display: none;
}

#sp-menu-overlay {
  display: none;
}

/* =============================================
   RESPONSIVE — mobile
   ============================================= */
@media (max-width: 640px) {
  :root { --section-py: 56px; }

  .s__title { margin-bottom: 40px; font-size: 18px; }

  /* SP専用改行を表示 */
  .sp-br  { display: inline; }
  .sp-only { display: inline; }
  .pc-only { display: none; }

  /* PC用ナビを非表示 */
  #section-nav { display: none; }

  /* ---- ハンバーガーボタン ---- */
  #hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  #hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-accent);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  /* 開いたとき：×マークに変形 */
  #hamburger.is-open span:nth-child(1) {
    transform: translateY(8.25px) rotate(45deg);
  }
  #hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }
  #hamburger.is-open span:nth-child(3) {
    transform: translateY(-8.25px) rotate(-45deg);
  }

  /* ---- フルスクリーンオーバーレイメニュー ---- */
  #sp-menu-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background-color: rgba(26, 20, 16, 0.85);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  #sp-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  #sp-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  #sp-menu li { margin: 28px 0; }

  #sp-menu a {
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    text-transform: uppercase;
    transition: opacity 0.2s;
  }

  #sp-menu a:hover { opacity: 0.6; }

  /* HERO */
  .hero__text { padding: 0 6% 8%; }
  .hero__logo { font-size: clamp(14px, 4.5vw, 22px); }
  .hero__tagline { font-size: clamp(14px, 4.5vw, 22px); }

  /* GALLERY: 横スクロール */
  .gallery__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    scrollbar-width: none;
  }
  .gallery__grid::-webkit-scrollbar { display: none; }
  .gallery__item {
    flex: 0 0 78vw;
    height: 90vw;
    scroll-snap-align: start;
  }

  /* INTERIOR: 横スクロール（各画像が自分の縦横比で幅を決める） */
  .interior__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    scrollbar-width: none;
  }
  .interior__grid::-webkit-scrollbar { display: none; }
  .interior__item {
    flex: 0 0 auto;    /* 幅は画像の比率に合わせて自動 */
    height: 85vw;      /* 高さは全枚共通 */
    scroll-snap-align: start;
  }
  .interior__item img {
    height: 100%;      /* 85vw の高さいっぱいに */
    width: auto;       /* 縦長→細め、横長→幅広く */
    max-width: none;   /* global の max-width:100% を上書き */
    object-fit: initial;
  }

  /* CATALOG */
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  #catalog .s__inner { padding: var(--section-py) 20px; }

  /* ACCESS */
  .access__map iframe { height: 240px; }

  /* CONTACT: スマホ用背景画像 */
  #contact { background-image: url('images/contactbg-sp.jpg'); }
  .contact__btns { flex-direction: column; align-items: center; }
  .contact-btn { width: 220px; min-width: unset; }
}
