/* HP 土台（案件で直さない）：リセット・文字・ヘッダー・フッター・セクションの枠・ボタン・出現の動き
   値はすべて tokens.css の変数。案件の見た目は style.css に書く */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  line-break: strict;
  word-break: auto-phrase;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
.nb { white-space: nowrap; }
/* 文の節（、。で区切ったまとまり）を一続きにし、入らなければ節の頭で改行する（iPhone の Safari は auto-phrase が効かないため） */
.cl { display: inline-block; max-width: 100%; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 枠 ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.sec { position: relative; padding-block: var(--sec-y); }

/* ---------- 見出し：英字（飾り）＋日本語 ---------- */
.sec-head { display: grid; gap: var(--sp-1); }
.sec-head__en {
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: var(--fs-en);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--c-sub-deep);
}
.sec-head__ja {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: var(--fs-head);
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
}
.txt { display: grid; gap: var(--sp-p); }

/* ---------- 丸い矢印のボタン ---------- */
.btn-circle {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--c-ink);
}
.btn-circle__ring {
  display: grid;
  place-items: center;
  width: var(--btn-circle);
  aspect-ratio: 1;
  border: 1px solid var(--c-ink);
  border-radius: 50%;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-circle__ring svg { width: 16px; }
@media (hover: hover) {
  .btn-circle:hover .btn-circle__ring { background: var(--c-ink); color: var(--c-base); }
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-scrolled { background: var(--c-base); box-shadow: 0 1px 0 var(--c-line); }
.logo { display: inline-grid; line-height: 1.1; }
.logo__ja { font-family: var(--ff-head); font-weight: 900; font-size: clamp(22px, 1.6vw, 34px); letter-spacing: 0.08em; }
.logo__en { font-family: var(--ff-en); font-weight: 500; font-size: clamp(13px, 0.9vw, 18px); letter-spacing: 0.18em; color: var(--c-ink-soft); }
.nav { display: none; }
.nav__list { display: flex; gap: 32px; font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-nav); }
.header__acts { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding-inline: 18px;
  border-radius: 999px;
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.pill--accent { background: var(--c-accent); color: var(--c-ink); }
.pill--dark { background: var(--c-dark); color: var(--c-dark-text); border: 0; cursor: pointer; }
@media (min-width: 960px) {
  .nav { display: block; margin-left: auto; margin-right: 40px; }
  .menu-btn { display: none; }
  .pill { min-height: clamp(44px, 3.2vw, 60px); padding-inline: clamp(24px, 1.8vw, 36px); font-size: clamp(15px, 1.05vw, 20px); }
}

/* ---------- スマホのメニュー（10/27 リッチに：MENU ボタンから円で開き、項目が順に滑り込む） ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-content: start;
  gap: var(--sp-b);
  padding: calc(var(--header-h) + var(--sp-b)) var(--gutter) var(--sp-g);
  overflow: hidden auto;
  background: var(--c-sub);
  clip-path: circle(0 at calc(100% - 52px) 36px);
  visibility: hidden;
  transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.3, 1), visibility 0s 0.6s;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 52px) 36px); visibility: visible; transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.3, 1); }
.drawer__en {
  position: absolute;
  right: -0.06em;
  bottom: -0.18em;
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: 34vw;
  line-height: 1;
  color: var(--c-sub-deep);
  pointer-events: none;
}
.drawer__list { position: relative; display: grid; font-family: var(--ff-head); font-weight: 700; }
.drawer__list li { border-bottom: 2px dashed color-mix(in srgb, var(--c-ink) 18%, transparent); }
.drawer__list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-p); padding: 14px 0; }
.drawer__num { font-family: var(--ff-en); font-size: 15px; color: var(--c-stamp); }
.drawer__txt { display: grid; gap: 2px; }
.drawer__ja { font-size: 19px; line-height: 1.3; }
.drawer__sub { font-family: var(--ff-en); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; color: var(--c-ink-soft); }
.drawer__arw { display: grid; place-items: center; width: 36px; aspect-ratio: 1; border: 1.5px solid var(--c-ink); border-radius: 50%; }
.drawer__arw svg { width: 13px; }
.drawer__list a:active .drawer__arw { background: var(--c-ink); color: var(--c-base); }
.drawer__tel { position: relative; justify-self: start; display: grid; gap: 2px; padding: var(--sp-p) var(--sp-b); border-radius: var(--radius-s); background: var(--c-base); }
.drawer__tel-label { font-size: 12px; }
.drawer__tel-num { font-family: var(--ff-en); font-weight: 600; font-size: 22px; letter-spacing: 0.04em; }
.drawer__chara { position: absolute; right: var(--gutter); bottom: calc(var(--sp-g) + 8px); width: auto; height: 150px; }
/* 開いたとき：項目が左から順に滑り込み、イラストが跳ねて出る */
.drawer li, .drawer__tel, .drawer__chara { opacity: 0; }
.drawer.is-open li, .drawer.is-open .drawer__tel { animation: drawer-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.25s + var(--i) * 0.06s) both; }
.drawer.is-open .drawer__chara { animation: drawer-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both, fv-float 4.6s ease-in-out 1.4s infinite alternate; }
.drawer.is-open .drawer__en { animation: drawer-en 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both; }
@keyframes drawer-in { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes drawer-pop { from { opacity: 0; transform: translateY(40px) scale(0.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes drawer-en { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
html.is-locked { overflow: hidden; }

/* ---------- フッター ---------- */
.footer { position: relative; overflow: hidden; background: var(--c-dark); color: var(--c-dark-text); padding-bottom: 40px; }
.footer__marquee {
  display: flex;
  width: max-content;
  padding-block: 32px 64px;
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  white-space: nowrap;
  color: var(--c-dark-ghost);
  animation: marquee var(--marquee-dur, 40s) linear infinite;
}
.footer__marquee span { padding-right: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.footer__top { display: grid; gap: var(--sp-g); padding-bottom: var(--sp-g); border-bottom: 1px solid var(--c-dark-ghost); }
.footer__logo .logo__ja { font-size: clamp(36px, 6vw, 64px); }
.footer__logo .logo__en { color: var(--c-dark-text); }
.footer__cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer__cta-title { display: block; font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-sub); margin-bottom: var(--sp-1); }
.footer__cta-txt { display: block; }
.footer__cta .btn-circle__ring { border-color: var(--c-dark-text); color: var(--c-dark-text); flex-shrink: 0; }
.footer__bottom { display: grid; gap: var(--sp-g); padding-top: var(--sp-g); font-size: var(--fs-small); }
.footer__info { display: grid; grid-template-columns: 5em 1fr; gap: 6px 16px; }
.footer__info dt { font-family: var(--ff-en); opacity: 0.7; }
.footer__info dd { margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-family: var(--ff-head); font-weight: 700; }
.footer__copy { font-family: var(--ff-en); opacity: 0.7; }
@media (min-width: 960px) {
  .footer__top { grid-template-columns: 1fr 1fr; align-items: center; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: start; }
  .footer__right { display: grid; gap: 16px; justify-items: end; }
}
@media (hover: hover) {
  .footer__cta:hover .btn-circle__ring { background: var(--c-dark-text); color: var(--c-dark); }
}

/* ---------- 出現の動き（待ちは出るときの側だけ） ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-rv) var(--ease), transform var(--dur-rv) var(--ease); }
.rv.is-on { opacity: 1; transform: none; transition-delay: var(--rv-delay, 0s); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
