/*
Theme Name: hamasaki
Theme URI: https://example.com/
Author: STUDIO HDC
Author URI: https://studio-hdc.com/
Description: BARBER HAMASAKI 公式テーマ。モノクロームなミニマルデザインに、パララックスとスクロールアニメーションを組み込んだスマートフォンファーストのワンページテーマ。
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hamasaki
Tags: one-column, custom-menu, custom-logo, translation-ready, full-width-template
*/

/* ==========================================================================
   1. Reset
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* ==========================================================================
   2. Variables
   ========================================================================== */
:root {
  --bk:        #0d0d0d;
  --bk-soft:   #1a1a1a;
  --wh:        #ffffff;
  --paper:     #f4f3f1;
  --gray:      #8c8c8c;
  --gray-lt:   #b8b8b8;
  --line:      #e0dedb;
  --line-dk:   #2c2c2c;

  --ff-en: 'IBM Plex Mono', ui-monospace, monospace;
  --ff-ja: 'Noto Sans JP', -apple-system, 'Hiragino Sans', sans-serif;
  /* 見出し用。Teko は欧文のみなので、日本語は自動で --ff-ja に落ちる */
  --ff-head: 'Teko', 'Noto Sans JP', -apple-system, 'Hiragino Sans', sans-serif;

  --pad:       6vw;
  --header-h:  64px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --ease-io:   cubic-bezier(.65, .05, .36, 1);

  --vh: 1vh;

  /* 以下はカスタマイザーの色設定で上書きされる（inc/colors.php が出力） */
  --sec-bg:    var(--wh);   /* 背景色                     */
  --sec-text:  var(--bk);   /* 見出し・主要テキスト        */
  --sec-body:  #3a3a3a;     /* 本文（背景寄りに 20% 混色） */
  --sec-muted: #868686;     /* 補助テキスト（50% 混色）    */
  --sec-line:  #dddddd;     /* 罫線（86% 混色）            */

  --drawer-text: var(--wh); /* ドロワーの文字色（ヘッダー用） */
  --photo-mono:  1;         /* 1 = 写真をモノクロ表示        */
}

/* ==========================================================================
   3. Base
   ========================================================================== */
html { scroll-behavior: smooth; }
html.is-locked, body.is-locked { overflow: hidden; }

body {
  font-family: var(--ff-ja);
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  color: var(--sec-text);
  background: var(--sec-bg);
  letter-spacing: .04em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sec-text); color: var(--sec-bg); }

.en { font-family: var(--ff-en); font-weight: 300; letter-spacing: .08em; }

.wrap { padding-inline: var(--pad); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 0; z-index: 9999;
  padding: 12px 20px; background: var(--sec-text); color: var(--sec-bg);
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 1px solid var(--sec-text); outline-offset: 3px; }

/* ==========================================================================
   4. Loader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: var(--sec-bg);
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.loader__inner { text-align: center; color: var(--sec-text); max-width: 100%; padding-inline: var(--pad); }
.loader__mark {
  font-family: var(--ff-en);
  font-size: 13px; letter-spacing: .5em; text-indent: .5em;
  opacity: 0; animation: loaderIn 1.1s var(--ease) .15s forwards;
}
.loader__bar {
  width: 120px; height: 1px; margin: 18px auto 0;
  background: var(--sec-line); overflow: hidden;
}
.loader__bar::after {
  content: ''; display: block; width: 100%; height: 100%;
  background: var(--sec-text); transform: scaleX(0); transform-origin: left;
  animation: loaderBar 1.2s var(--ease-io) .1s forwards;
}
@keyframes loaderIn  { to { opacity: 1; } }
@keyframes loaderBar { to { transform: scaleX(1); } }
.loaded .loader { opacity: 0; visibility: hidden; pointer-events: none; }

/* ==========================================================================
   5. Scroll progress
   ========================================================================== */
.progress {
  position: fixed; top: 0; left: 0; z-index: 800;
  width: 100%; height: 2px; background: transparent; pointer-events: none;
  mix-blend-mode: difference;
}
.progress__bar {
  height: 100%; width: 100%; background: #fff;
  transform: scaleX(0); transform-origin: left;
}

/* ==========================================================================
   6. Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; z-index: 700;
  width: 100%;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  mix-blend-mode: difference;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.site-header.is-hidden { transform: translateY(-110%); opacity: 0; }
.site-header.is-open { mix-blend-mode: normal; }

.site-header__brand {
  font-family: var(--ff-en);
  font-size: 15px; letter-spacing: .14em; color: #fff;
  /* 店名が長い場合は「店名サブ」を 2 行目に折り返す（横あふれ・重なり防止） */
  display: flex; flex-wrap: wrap; align-items: baseline;
  column-gap: .5em; row-gap: 1px;
  line-height: 1.35;
  min-width: 0; flex: 1 1 auto;
}
.site-header.is-open .site-header__brand { color: var(--drawer-text); }
.site-header__brand strong,
.site-header__brand span {
  display: block; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-header__brand span { font-size: 10px; letter-spacing: .2em; opacity: .7; }
.site-header__brand img { max-height: 26px; width: auto; filter: invert(1); }

/* Hamburger */
.nav-toggle {
  position: relative; z-index: 2;
  flex: 0 0 34px;
  width: 34px; height: 34px; display: grid; place-items: center;
}
.nav-toggle__lines { position: relative; width: 26px; height: 12px; }
.nav-toggle__lines span {
  position: absolute; left: 0; width: 100%; height: 1px;
  background: #fff;
  transition: transform .45s var(--ease), opacity .3s var(--ease), width .45s var(--ease), background .3s var(--ease);
}
.nav-toggle__lines span:nth-child(1) { top: 0; }
.nav-toggle__lines span:nth-child(2) { top: 11px; width: 70%; }
.site-header.is-open .nav-toggle__lines span { background: var(--drawer-text); }
.site-header.is-open .nav-toggle__lines span:nth-child(1) { transform: translateY(5.5px) rotate(19deg); }
.site-header.is-open .nav-toggle__lines span:nth-child(2) { transform: translateY(-5.5px) rotate(-19deg); width: 100%; }

/* Meta line (place / clock) */
.site-meta {
  /* top はヘッダーの実高さ（JS が --header-h を実測して更新）に追従させる */
  position: fixed; top: calc(var(--header-h) - 12px); left: 0; z-index: 690;
  width: 100%; padding-inline: var(--pad);
  font-family: var(--ff-en); font-size: 10px; letter-spacing: .12em;
  line-height: 1.5;
  color: #8c8c8c; text-align: center;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  mix-blend-mode: difference; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.site-meta > span { white-space: nowrap; }
.site-meta.is-hidden { opacity: 0; }
.site-meta__sep { opacity: .45; margin-inline: .6em; }

/* ==========================================================================
   7. Drawer navigation
   ========================================================================== */
.drawer {
  position: fixed; inset: 0; z-index: 690;
  background: var(--sec-bg); color: var(--sec-text);
  display: flex; flex-direction: column;
  /* justify-content: center だと、はみ出したときに上端へ戻れなくなる。
     上下の auto マージンで中央寄せしつつ、あふれたらスクロールできるようにする */
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--header-h) + 40px) var(--pad) 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .8s var(--ease), visibility .8s;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }

.drawer__nav { margin-top: auto; }
.drawer__nav li { overflow: hidden; }
.drawer__nav a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 9px 0;
  font-family: var(--ff-head); font-size: clamp(32px, 9vw, 42px);
  font-weight: 400; line-height: 1.3; letter-spacing: .04em;
  transform: translateY(110%);
  transition: transform .9s var(--ease), opacity .5s var(--ease);
}
.drawer.is-open .drawer__nav a { transform: translateY(0); }
.drawer__nav li:nth-child(1) a { transition-delay: .12s; }
.drawer__nav li:nth-child(2) a { transition-delay: .18s; }
.drawer__nav li:nth-child(3) a { transition-delay: .24s; }
.drawer__nav li:nth-child(4) a { transition-delay: .30s; }
.drawer__nav li:nth-child(5) a { transition-delay: .36s; }
.drawer__nav li:nth-child(6) a { transition-delay: .42s; }
.drawer__nav .num {
  font-family: var(--ff-en); font-size: 10px; opacity: .45; letter-spacing: .18em;
}
.drawer__nav a .label-ja {
  font-family: var(--ff-ja); font-size: 10px; letter-spacing: .2em;
  opacity: .5; margin-left: auto;
}

.drawer__foot {
  margin-top: 48px; margin-bottom: auto; padding-top: 24px;
  border-top: 1px solid var(--sec-line);
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease) .5s, transform .7s var(--ease) .5s;
}
.drawer.is-open .drawer__foot { opacity: 1; transform: none; }
.drawer__foot .en { font-size: 10px; letter-spacing: .16em; color: var(--sec-muted); }

@media (max-height: 700px) {
  .drawer { padding-top: calc(var(--header-h) + 20px); padding-bottom: 24px; }
  .drawer__nav a { font-size: clamp(24px, 7vw, 32px); line-height: 1.35; padding: 6px 0; }
  .drawer__foot { margin-top: 26px; padding-top: 18px; }
}
/* スマートフォンを横向きにしたときなど、極端に浅い画面 */
@media (max-height: 520px) {
  .drawer { padding-top: calc(var(--header-h) + 12px); padding-bottom: 16px; }
  .drawer__nav a { font-size: 22px; line-height: 1.2; padding: 3px 0; }
  .drawer__foot { margin-top: 16px; padding-top: 12px; }
  .drawer__foot .sns a { width: 32px; height: 32px; }
}

.sns { display: flex; gap: 16px; align-items: center; }
.sns a {
  display: grid; place-items: center;
  width: 40px; height: 40px; border: 1px solid var(--sec-line); border-radius: 50%;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.sns a:hover, .sns a:focus-visible { background: var(--sec-text); color: var(--sec-bg); border-color: var(--sec-text); }
.sns svg { width: 17px; height: 17px; fill: currentColor; }

/* ==========================================================================
   8. Hero
   ========================================================================== */
.hero {
  position: relative;
  height: calc(var(--vh, 1vh) * 100);
  min-height: 560px;
  overflow: hidden;
  background: var(--sec-bg);
}
.hero__media { position: absolute; inset: -12% 0 -12% 0; will-change: transform; }
.hero__media img,
.hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(var(--photo-mono)) contrast(1.05) brightness(.82);
  transform: scale(1.14);
  animation: heroZoom 2.6s var(--ease) .4s forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,.65) 100%);
  /* ↑ 濃さはカスタマイザーの「HERO 画像に重ねる影の濃さ」で上書きされる */
}

/* --- スケッチ / 動画モード（紙の上のインク） ------------------------------ */
.hero--paper {
  /* mix-blend-mode を HERO の中だけに閉じ込める */
  isolation: isolate;
}
.hero--paper::after { display: none; }              /* 写真用の暗いスクリムを外す */
.hero--paper .hero__media {
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 7vh var(--pad) 32vh;
  /* パララックスを使わないモードなので合成レイヤーを作らない。
     will-change が残っていると mix-blend-mode の背景が透明になり、紙の白が抜けない */
  will-change: auto;
}
.hero--paper .hero__media img,
.hero--paper .hero__media video,
.hero--paper .hero__media svg {
  width: 100%; height: 100%;
  object-fit: contain;
  /* 写真用のモノクロ化・暗転・ズームはスケッチには掛けない */
  filter: none;
  transform: none;
  animation: none;
  /* 紙の白を背景色になじませる（背景は明るい色を前提とする） */
  mix-blend-mode: multiply;
}
.hero--paper .hero__lead { opacity: 0; }
.loaded .hero--paper .hero__lead { opacity: .75; }

.hero__body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 0 var(--pad) 120px;
  color: var(--sec-text);
}
.hero__catch {
  font-family: var(--ff-head);
  font-size: clamp(34px, 11vw, 60px);
  font-weight: 400; line-height: 1.06; letter-spacing: .03em;
  text-transform: uppercase;
}
.hero__catch .line { display: block; overflow: hidden; }
.hero__catch .line > span {
  display: block; transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}
.loaded .hero__catch .line > span { transform: translateY(0); }
.loaded .hero__catch .line:nth-child(1) > span { transition-delay: .55s; }
.loaded .hero__catch .line:nth-child(2) > span { transition-delay: .68s; }
.loaded .hero__catch .line:nth-child(3) > span { transition-delay: .81s; }

/* 3行目はリード文と同じサイズ・太字（.hero__lead と数値を揃える） */
.hero__catch .line--sub {
  margin-top: 14px;
  font-family: var(--ff-ja);
  font-size: 12.5px; font-weight: 700;
  line-height: 2.1; letter-spacing: .1em;
  text-transform: none;
}

.hero__lead {
  margin-top: 20px; max-width: 26em;
  font-size: 12.5px; line-height: 2.1; letter-spacing: .1em;
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s var(--ease) 1.05s, transform 1s var(--ease) 1.05s;
}
.loaded .hero__lead { opacity: .85; transform: none; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; z-index: 2;
  transform: translateX(-50%);
  font-family: var(--ff-en); font-size: 9px; letter-spacing: .3em;
  color: var(--sec-text); opacity: 0;
  transition: opacity .8s var(--ease) 1.4s;
  text-align: center;
}
.loaded .hero__scroll { opacity: .75; }
.hero__scroll::after {
  content: ''; display: block; width: 1px; height: 42px; margin: 10px auto 0;
  background: linear-gradient(180deg, var(--sec-text), transparent);
  animation: scrollLine 2.2s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(42px); opacity: 0; }
}

/* ==========================================================================
   9. Marquee
   ========================================================================== */
.marquee {
  overflow: hidden; padding: 22px 0;
  border-block: 1px solid var(--sec-line);
  background: var(--sec-bg);
}
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span {
  font-family: var(--ff-en); font-size: 12px; letter-spacing: .28em;
  padding-inline: 1.4em; color: var(--sec-muted); white-space: nowrap;
}
.marquee__track span::after { content: '✳'; margin-left: 2.6em; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   10. Section frame
   ========================================================================== */
.section {
  position: relative; padding: 96px 0;
  background: var(--sec-bg); color: var(--sec-text);
}

.section__head { padding-inline: var(--pad); margin-bottom: 40px; }
.section__num {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-en); font-size: 10px; letter-spacing: .24em; color: var(--sec-muted);
}
.section__num::after {
  content: ''; flex: 1; height: 1px; background: var(--sec-line);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease) .15s;
}
.is-inview .section__num::after { transform: scaleX(1); }

.section__title {
  margin-top: 14px;
  font-family: var(--ff-head); font-size: clamp(38px, 12.5vw, 68px);
  font-weight: 400; line-height: .98; letter-spacing: .02em;
}
.section__sub {
  margin-top: 12px; font-size: 11px; letter-spacing: .24em; color: var(--sec-muted);
}

/* Reveal utilities */
[data-reveal] { opacity: 0; transform: translateY(28px); }
.is-inview [data-reveal],
[data-reveal].is-inview {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.is-inview [data-reveal="1"] { transition-delay: .08s; }
.is-inview [data-reveal="2"] { transition-delay: .16s; }
.is-inview [data-reveal="3"] { transition-delay: .24s; }
.is-inview [data-reveal="4"] { transition-delay: .32s; }
.is-inview [data-reveal="5"] { transition-delay: .40s; }

[data-clip] { clip-path: inset(0 0 100% 0); }
[data-clip].is-inview, .is-inview [data-clip] {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.3s var(--ease);
}

/* Parallax figure */
.parallax { position: relative; overflow: hidden; }
.parallax > img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.figure-caption {
  margin-top: 10px; padding-inline: var(--pad);
  font-family: var(--ff-en); font-size: 10px; letter-spacing: .16em; color: var(--sec-muted);
}

/* ==========================================================================
   11. ABOUT
   ========================================================================== */
.about__body { padding-inline: var(--pad); }
.about__catch {
  font-size: clamp(17px, 5.4vw, 24px); font-weight: 300; line-height: 2;
  letter-spacing: .08em; margin-bottom: 26px;
}
.about__text p + p { margin-top: 1.6em; }
.about__text { font-size: 14px; line-height: 2.3; color: var(--sec-body); }

.about__figure { margin: 44px 0; height: 62vh; min-height: 320px; }
.about__figure img { filter: grayscale(var(--photo-mono)) contrast(1.03); }

/* 3 枚の正方形写真（クリックで拡大） */
.about__photos {
  margin-top: 40px; padding-inline: var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.about__photo {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--sec-line); cursor: zoom-in;
}
.about__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(var(--photo-mono)) contrast(1.03);
  transition: transform .9s var(--ease), filter .5s var(--ease);
}
.about__photo:hover img,
.about__photo:focus-visible img { transform: scale(1.06); filter: grayscale(0) contrast(1.03); }
.about__photo:focus-visible { outline: 1px solid var(--sec-text); outline-offset: 3px; }
/* 拡大できることを示す小さな十字マーク */
.about__photo::after {
  content: ''; position: absolute; right: 8px; bottom: 8px;
  width: 11px; height: 11px;
  background:
    linear-gradient(var(--wh), var(--wh)) center / 100% 1px no-repeat,
    linear-gradient(var(--wh), var(--wh)) center / 1px 100% no-repeat;
  opacity: 0; transition: opacity .4s var(--ease);
  mix-blend-mode: difference;
}
.about__photo:hover::after, .about__photo:focus-visible::after { opacity: .9; }

.about__stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; margin-top: 44px; background: var(--sec-line);
  border-block: 1px solid var(--sec-line);
}
.about__stat { padding: 22px var(--pad); background: var(--sec-bg); }
.about__stat dt { font-family: var(--ff-en); font-size: 9px; letter-spacing: .22em; color: var(--sec-muted); }
.about__stat dd { font-family: var(--ff-en); font-size: 26px; font-weight: 300; margin-top: 6px; }
.about__stat dd small { font-size: 11px; letter-spacing: .1em; margin-left: 4px; color: var(--sec-muted); }

/* ==========================================================================
   12. SERVICE
   ========================================================================== */
.service__list { border-top: 1px solid var(--sec-line); }

.service__item {
  border-bottom: 1px solid var(--sec-line);
  padding: 26px var(--pad);
}
.service__item-head { display: flex; align-items: baseline; gap: 12px; }
.service__item-no { font-family: var(--ff-en); font-size: 10px; color: var(--sec-muted); letter-spacing: .18em; }
.service__item-name { font-size: 16px; letter-spacing: .1em; font-weight: 400; line-height: 1.6; }
.service__item-en {
  display: block; font-family: var(--ff-en); font-size: 10px;
  letter-spacing: .2em; color: var(--sec-muted); margin-top: 2px;
}
.service__item-price {
  margin-left: auto; font-family: var(--ff-en); font-size: 17px; white-space: nowrap;
}
.service__item-price small { font-size: 10px; color: var(--sec-muted); margin-left: 2px; }
.service__item-desc {
  margin-top: 10px; font-size: 12.5px; line-height: 2.1; color: var(--sec-body);
}
.service__item-time {
  display: inline-block; margin-top: 10px;
  font-family: var(--ff-en); font-size: 10px; letter-spacing: .16em;
  color: var(--sec-muted); border: 1px solid var(--sec-line); border-radius: 999px;
  padding: 3px 12px;
}

.service__note {
  padding: 22px var(--pad) 0; font-size: 11.5px; line-height: 2; color: var(--sec-muted);
}

/* ==========================================================================
   13. STYLE (horizontal gallery)
   ========================================================================== */
.style-gallery {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.style-gallery::-webkit-scrollbar { display: none; }
.style-card {
  flex: 0 0 76%; scroll-snap-align: center;
  position: relative;
}
.style-card__img {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--sec-line);
}
.style-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(var(--photo-mono)); transform: scale(1.02);
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
}
.style-card:hover .style-card__img img,
.style-card:focus-within .style-card__img img { transform: scale(1.08); filter: grayscale(0); }
.style-card__meta { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.style-card__no { font-family: var(--ff-en); font-size: 10px; color: var(--sec-muted); letter-spacing: .18em; }
.style-card__name { font-size: 13px; letter-spacing: .12em; }
.style-card__tags { margin-top: 4px; font-family: var(--ff-en); font-size: 10px; color: var(--sec-muted); letter-spacing: .1em; }

.style-hint {
  padding: 0 var(--pad); margin-top: 4px;
  font-family: var(--ff-en); font-size: 9px; letter-spacing: .24em; color: var(--sec-muted);
  display: flex; align-items: center; gap: 8px;
}
.style-hint::before {
  content: ''; width: 26px; height: 1px; background: var(--sec-line);
  animation: hintSlide 2.4s var(--ease-io) infinite;
}
@keyframes hintSlide { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

/* ==========================================================================
   14. ACCESS
   ========================================================================== */
.access__map {
  position: relative; height: 56vh; min-height: 280px;
  filter: grayscale(var(--photo-mono)) contrast(1.05); background: var(--sec-line);
}
.access__map iframe { width: 100%; height: 100%; border: 0; display: block; }

.access__info { padding: 34px var(--pad) 0; }
.access__row {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--sec-line);
}
.access__row dt {
  font-family: var(--ff-en); font-size: 9.5px; letter-spacing: .2em;
  color: var(--sec-muted); padding-top: .45em;
}
.access__row dd { font-size: 13.5px; line-height: 2; }
.access__row dd small { display: block; font-size: 11px; color: var(--sec-body); letter-spacing: .1em; }

/* ==========================================================================
   15. Buttons
   ========================================================================== */
/* 線と文字は --sec-text、反転時の文字色は --sec-bg を使う */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between;
  gap: 18px; width: 100%; padding: 20px 22px;
  color: var(--sec-text);
  border: 1px solid var(--sec-text);
  font-family: var(--ff-en); font-size: 12px; letter-spacing: .22em;
  overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--sec-text); transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }

.btn__label, .btn__arrow { transition: color .4s var(--ease) .1s, transform .5s var(--ease); }
.btn:hover .btn__label,  .btn:focus-visible .btn__label,
.btn:hover .btn__arrow,  .btn:focus-visible .btn__arrow { color: var(--sec-bg); }
.btn:hover .btn__arrow { transform: translateX(6px); }

/* 塗りつぶし（反転）バリエーション */
.btn--fill { background: var(--sec-text); }
.btn--fill .btn__label, .btn--fill .btn__arrow { color: var(--sec-bg); }
.btn--fill::before { background: var(--sec-bg); }
.btn--fill:hover .btn__label,  .btn--fill:focus-visible .btn__label,
.btn--fill:hover .btn__arrow,  .btn--fill:focus-visible .btn__arrow { color: var(--sec-text); }

/* ==========================================================================
   16. CONTACT
   ========================================================================== */
.contact__lead {
  padding-inline: var(--pad); font-size: 13.5px; line-height: 2.2; color: var(--sec-body);
  margin-bottom: 32px;
}
.contact__actions { padding-inline: var(--pad); display: grid; gap: 12px; }

.contact__form { padding-inline: var(--pad); margin-top: 40px; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--ff-en); font-size: 10px; letter-spacing: .2em; color: var(--sec-muted);
  display: flex; align-items: center; gap: 8px;
}
.field .req { font-size: 8px; letter-spacing: .1em; color: #c25b5b; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 2px;
  background: transparent; border: 0; border-bottom: 1px solid var(--sec-line);
  color: var(--sec-text); font-size: 14px; letter-spacing: .06em;
  border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color .4s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--sec-text);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { background-image: none; }
.field select option { color: #000; }

.form-note { font-size: 11px; line-height: 1.9; color: var(--sec-muted); }
.form-msg { padding: 14px 16px; border: 1px solid var(--sec-line); font-size: 12px; line-height: 1.9; }
.form-msg--ok { border-color: #5b8f6b; }
.form-msg--ng { border-color: #a35555; }

/* ==========================================================================
   17. Footer
   ========================================================================== */
.site-footer { background: var(--sec-bg); color: var(--sec-text); padding: 58px 0 30px; }
.site-footer__nav {
  padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 16px;
}
.site-footer__nav a {
  font-family: var(--ff-en); font-size: 11px; letter-spacing: .18em;
  padding: 9px 0; display: block; color: var(--sec-body);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.site-footer__nav a:hover { color: var(--sec-text); padding-left: 6px; }
.site-footer__sns { padding: 30px var(--pad) 0; }

/* 中央のロゴマーク */
.site-footer__mark {
  margin-top: 44px; padding-inline: var(--pad);
  display: flex; justify-content: center;
}
.site-footer__mark a { display: block; max-width: 100%; }
.site-footer__mark img {
  /* 高さを基準にし、幅は縦横比なりに。SVG ロゴ（固有サイズを持たない）でも潰れない */
  width: auto; height: var(--footer-logo-h, 34px);
  max-width: 100%; object-fit: contain; object-position: center;
  opacity: .85; transition: opacity .4s var(--ease);
}
.site-footer__mark a:hover img { opacity: 1; }
/* アップロードした画像の色に関わらず、フッターの背景に合わせて出し分ける */
.site-footer__mark--white img { filter: brightness(0) invert(1); }
.site-footer__mark--black img { filter: brightness(0); }

.site-footer__bottom {
  margin-top: 34px; padding: 20px var(--pad) 0;
  border-top: 1px solid var(--sec-line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-en); font-size: 9.5px; letter-spacing: .14em; color: var(--sec-muted);
}

/* 画面右下の追従ボタン（予約 / Instagram / ページ上部へ）
   下から 予約 → Instagram → TOP の順に積む。設定していないものは出ないので、
   個数が変わっても並びが崩れないよう flex の gap で間隔を取る */
.fabs {
  position: fixed; right: 16px; bottom: 16px; z-index: 650;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
}
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sec-text); color: var(--sec-bg);
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  transform: translateY(90px) scale(.8); opacity: 0; pointer-events: none;
  transition: transform .7s var(--ease), opacity .5s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.fab.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.fab svg { width: 21px; height: 21px; fill: currentColor; }
.fab:hover, .fab:focus-visible { background: var(--sec-bg); color: var(--sec-text); }

/* ページ上部へ戻るボタンだけは線だけの控えめな見た目にする */
.fab--ghost {
  border: 1px solid var(--sec-line);
  background: var(--sec-bg); color: var(--sec-text);
  box-shadow: none;
  transform: translateY(30px);
  font-family: var(--ff-en); font-size: 9px; letter-spacing: .12em;
}
.fab--ghost:hover, .fab--ghost:focus-visible { background: var(--sec-text); color: var(--sec-bg); }

/* ==========================================================================
   17-b. Lightbox（ABOUT の写真の拡大表示）
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 9500;
  display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(13, 13, 13, .95);
  color: var(--wh);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
}
.lightbox__count {
  display: flex; gap: .7em;
  font-size: 10px; letter-spacing: .2em; color: var(--gray-lt);
}
.lightbox__count span:nth-child(2) { opacity: .4; }
.lightbox__count span:first-child { color: var(--wh); }
.lightbox__close {
  font-size: 10px; letter-spacing: .2em; color: var(--wh);
  padding: 6px 2px; position: relative;
}
.lightbox__close::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.lightbox__close:hover::after { transform: scaleX(1); transform-origin: left; }

.lightbox__stage {
  margin: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding-inline: var(--pad);
}
.lightbox__stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  opacity: 0; transform: scale(.985);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.lightbox.is-ready .lightbox__stage img { opacity: 1; transform: none; }
.lightbox__cap {
  font-size: 11px; line-height: 1.9; letter-spacing: .08em;
  color: var(--gray-lt); text-align: center; max-width: 46em;
}
.lightbox__cap:empty { display: none; }

.lightbox__nav {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 20px var(--pad) 28px;
}
.lightbox__arrow {
  font-size: 10px; letter-spacing: .2em; color: var(--gray-lt);
  padding: 8px 2px;
  transition: color .3s var(--ease);
}
.lightbox__arrow:hover { color: var(--wh); }
.lightbox :focus-visible { outline: 1px solid var(--wh); outline-offset: 4px; }

/* ==========================================================================
   18. Generic page / post
   ========================================================================== */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 76px) var(--pad) 46px;
  background: var(--sec-bg); color: var(--sec-text);
}
.page-hero__title {
  font-family: var(--ff-head); font-size: clamp(30px, 9.5vw, 50px); font-weight: 400; line-height: 1.08;
  overflow-wrap: anywhere;
}
.page-hero__sub { margin-top: 10px; font-size: 11px; letter-spacing: .22em; color: var(--sec-muted); }

.entry { padding: 56px var(--pad) 80px; }
.entry h2 { font-size: 20px; font-weight: 400; letter-spacing: .06em; margin: 2.2em 0 .8em; line-height: 1.7; }
.entry h3 { font-size: 16px; font-weight: 400; letter-spacing: .06em; margin: 1.8em 0 .6em; }
.entry p { margin-bottom: 1.6em; line-height: 2.2; font-size: 14px; }
.entry img { margin: 1.6em 0; }
.entry ul, .entry ol { margin: 0 0 1.6em 1.2em; }
.entry ul li { list-style: disc; margin-bottom: .5em; }
.entry ol li { list-style: decimal; margin-bottom: .5em; }
.entry blockquote {
  margin: 1.8em 0; padding-left: 18px; border-left: 1px solid var(--sec-line);
  color: var(--sec-muted); font-size: 13px;
}
.entry a { text-decoration: underline; text-underline-offset: 4px; }

.archive-list { padding: 40px var(--pad) 80px; }
.archive-item { display: block; padding: 22px 0; border-bottom: 1px solid var(--sec-line); }
.archive-item time { font-family: var(--ff-en); font-size: 10px; letter-spacing: .18em; color: var(--sec-muted); }
.archive-item h2 { font-size: 15px; font-weight: 400; margin-top: 6px; line-height: 1.8; letter-spacing: .06em; }

.pagination { padding: 30px var(--pad) 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding-inline: 10px;
  border: 1px solid var(--sec-line); font-family: var(--ff-en); font-size: 11px;
}
.pagination .current { background: var(--sec-text); color: var(--sec-bg); border-color: var(--sec-text); }

/* WP core alignment classes */
.alignleft  { float: left; margin: .4em 1.2em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.2em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: 11px; color: var(--sec-muted); letter-spacing: .1em; }

/* ==========================================================================
   19. Tablet / Desktop
   ========================================================================== */
@media (min-width: 768px) {
  :root { --pad: 7vw; --header-h: 78px; }
  body { font-size: 16px; }
  .site-header { padding: 26px var(--pad); }

  .hero__body { padding-bottom: 140px; }
  .hero--paper .hero__media { padding: 9vh var(--pad) 30vh; }
  .hero__lead { font-size: 13.5px; }
  .hero__catch .line--sub { font-size: 13.5px; }

  .section { padding: 130px 0; }
  .section__head { margin-bottom: 56px; }

  .about__layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
    padding-inline: var(--pad);
  }
  .about__body { padding-inline: 0; }
  .about__figure { margin: 0; height: 76vh; }
  .about__photos { gap: 14px; margin-top: 56px; }
  .about__stats { grid-template-columns: repeat(4, 1fr); }
  .about__stat { padding: 26px 22px; }

  .service__item { padding: 34px var(--pad); }
  .service__item-desc { max-width: 60ch; }

  .style-card { flex: 0 0 34%; }

  .access__layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
  }
  .access__map { height: 100%; min-height: 480px; }
  .access__info { padding: 0 var(--pad); }

  .contact__actions { grid-template-columns: repeat(2, 1fr); }
  .contact__form { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }

  .drawer { padding-inline: var(--pad); }
  .site-footer__nav { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  :root { --pad: 90px; }

  .style-card { flex: 0 0 25%; }
}

/* ==========================================================================
   20. JavaScript 無効時のフォールバック
   （JS が動かない環境で本文が非表示のままにならないようにする）
   ========================================================================== */
html:not(.js) .loader                     { display: none; }
html:not(.js) [data-reveal]               { opacity: 1; transform: none; }
html:not(.js) [data-clip]                 { clip-path: none; }
html:not(.js) .hero__catch .line > span   { transform: none; }
html:not(.js) .hero__lead                 { opacity: .85; transform: none; }
html:not(.js) .fab                         { opacity: 1; transform: none; pointer-events: auto; }
html:not(.js) .marquee__track             { animation: none; }

/* ==========================================================================
   21. Motion preferences
   ========================================================================== */
/* ドロワーの文字は、幅と高さの両方に余裕があるときだけ大きくする
   （高さ基準の指定より後ろに置くため、高さの条件を必ず併記する） */
@media (min-width: 768px) and (min-height: 780px) {
  .drawer__nav a { font-size: 48px; }
}
@media (min-width: 1200px) and (min-height: 940px) {
  .drawer__nav a { font-size: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-clip] { clip-path: none; }
  .hero__catch .line > span { transform: none; }
  .hero__lead { opacity: .85; transform: none; }
}
