/* 全ページ共通の外枠：ヘッダー・メニュー・ページ見出し・パンくず・フッター・ページの移り変わり */

/* ---- ヘッダー ---- */
.gh {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px;
  height: var(--header); padding: 0 var(--pad);
  background: color-mix(in srgb, var(--page-bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease), border-color 0.4s, transform 0.5s var(--ease), color 0.6s;
}
/* 地が濃い色の間は、ヘッダーの文字とロゴを明るい色に */
:is([data-tone='ink'], [data-tone='navy'], [data-tone='shu'], [data-tone='salon'], .is-scene-dark) .gh { color: #f5f5f1; --ink: #f5f5f1; --ink-3: #c2c4c6; --line: rgba(245, 245, 241, 0.16); --line-2: rgba(245, 245, 241, 0.3); }
:is([data-tone='ink'], [data-tone='navy'], [data-tone='shu'], [data-tone='salon'], .is-scene-dark) .gh .logo { display: none; }
:is([data-tone='ink'], [data-tone='navy'], [data-tone='shu'], [data-tone='salon'], .is-scene-dark) .gh .logo--on-dark { display: block; }
:is([data-tone='ink'], [data-tone='navy'], [data-tone='shu'], [data-tone='salon'], .is-scene-dark) .gh__cta { background: #f5f5f1; color: #1c1e20; }
:is([data-tone='ink'], [data-tone='navy'], [data-tone='shu'], [data-tone='salon'], .is-scene-dark) .gh__menu-lines i { background: #f5f5f1; }
.is-scene-dark .gh { background: rgba(17, 19, 21, 0.55); }
.gh.is-solid { height: 60px; border-bottom-color: var(--line); }
.gh.is-hidden { transform: translateY(-100%); }
.gh__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.logo { display: block; width: auto; height: 32px; flex: none; }
.logo--on-dark { display: none; }
.gf .logo--on-dark { display: block; }
.gh__role { font-size: var(--fs-xs); color: var(--ink-3); padding-left: 12px; border-left: 1px solid var(--line-2); }
.gh__nav { display: flex; justify-content: flex-end; gap: 4px; }
.gh__link {
  position: relative; padding: 8px 14px; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap;
}
.gh__link span { position: relative; display: inline-block; }
.gh__link span::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.gh__link:hover span::after { transform: scaleX(1); transform-origin: left; }
.gh__link.is-current { font-weight: 700; }
.gh__link.is-current::before {
  content: ''; position: absolute; left: 50%; top: 2px; width: 5px; height: 5px; margin-left: -2.5px; background: var(--shu);
}
.gh__cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px;
  background: var(--ink); color: var(--white); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap;
}
.gh__cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--shu);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.gh__cta:hover::before, .gh__cta.is-current::before { transform: scaleX(1); transform-origin: left; }
.gh__menu {
  display: none; align-items: center; gap: 10px; height: 42px; padding: 0 4px 0 12px;
  border: 0; background: transparent; font-size: 13px; font-weight: 700;
}
.gh__menu-lines { position: relative; width: 22px; height: 10px; }
.gh__menu-lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.gh__menu-lines i:first-child { top: 0; }
.gh__menu-lines i:last-child { top: 8.5px; }
.is-menu-open .gh__menu-lines i:first-child { top: 4.25px; transform: rotate(20deg); }
.is-menu-open .gh__menu-lines i:last-child { top: 4.25px; transform: rotate(-20deg); }

@media (max-width: 1100px) {
  .gh { grid-template-columns: 1fr auto auto; }
  .gh__nav { display: none; }
  .gh__menu { display: inline-flex; }
}
@media (max-width: 600px) {
  :root { --header: 60px; }
  .gh { gap: 12px; }
  .gh__role { display: none; }
  .logo { height: 26px; }
  .gh__cta { height: 36px; padding: 0 12px; font-size: 12px; }
  .gh__menu-label { display: none; }
}

/* ---- メニュー（狭い画面） ---- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: calc(var(--header) + 24px) var(--pad) 32px;
  background: var(--paper);
  visibility: hidden; clip-path: inset(0 0 100% 0);
}
.menu__grid { position: absolute; inset: 0; pointer-events: none; }
.menu__grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); transform-origin: top; }
.menu__grid i:nth-child(1) { left: 25%; }
.menu__grid i:nth-child(2) { left: 50%; }
.menu__grid i:nth-child(3) { left: 75%; }
.menu__grid i:nth-child(4) { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; transform-origin: left; }
.menu__nav { position: relative; }
.menu__nav li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; font-size: clamp(22px, 6vw, 34px); font-weight: 700; text-decoration: none; }
.menu__nav a .num { font-size: 14px; font-weight: 600; color: var(--ink-4); width: 2em; }
.menu__nav a[aria-current='page'] { color: var(--shu); }
.menu__foot { position: relative; font-size: var(--fs-sm); color: var(--ink-3); }

/* ---- 下層ページの見出し ---- */
/* 見出しは大きく左に、説明は右へずらして下げる。表題欄は下の場面にまたがらせる */
.ph { position: relative; z-index: 2; padding: calc(var(--header) + 48px) 0 clamp(88px, 9vw, 128px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-xs); color: var(--ink-3); }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: ''; width: 18px; height: 1px; margin: 0 10px; background: var(--ink-4); }
.crumbs a { display: inline-block; padding: 6px 0; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ink); }
.ph__no { margin-top: 48px; display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.ph__no::before { content: ''; width: 8px; height: 8px; background: var(--shu); }
.ph__title { margin-top: 18px; font-size: clamp(26px, 6.4vw, 100px); font-weight: 700; line-height: 1.22; letter-spacing: 0.02em; }
.ph__lead { max-width: 34em; margin: 28px 0 0 clamp(0px, 18%, 240px); color: var(--ink-2); font-size: var(--fs-md); }
.ph__inner { position: relative; }
.ph__side { position: absolute; right: 0; bottom: calc(clamp(88px, 9vw, 128px) * -1 - 26px); display: grid; grid-template-columns: auto auto; border: 1px solid var(--ink); background: var(--paper); font-size: 12px; box-shadow: 0 16px 30px -24px rgba(28, 30, 32, 0.5); }
.ph__side dt, .ph__side dd { margin: 0; padding: 4px 12px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.ph__side dt { border-right: 1px solid var(--ink); color: var(--ink-3); }
.ph__side dt:last-of-type, .ph__side dd:last-of-type { border-bottom: 0; }
.ph__dim { position: absolute; left: var(--pad); right: var(--pad); bottom: 22px; width: calc(100% - var(--pad) * 2); height: 20px; }
.ph__dim path { fill: none; stroke: var(--ink-4); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---- フッター ---- */
.gf { background: var(--tone-ink); overflow: hidden; --paper: var(--tone-ink); --paper-2: #24272a; --paper-3: #2a2d31; --white: #2a2d31; }
/* 問い合わせへの誘い。地が承認印の朱に変わり、見出しは大きく左、ボタンは右下へ */
.gf__cta { position: relative; background: var(--tone-shu); --paper: var(--tone-shu); --white: #c2442e; --ink-2: #ffe9e3; --ink-3: #ffe9e3; --ink-4: #ffe3d9; }
.gf__cta .gf__cta-side { color: #ffe9e3; }
.gf__cta .btn--ink { background: #f5f5f1; color: var(--tone-shu); border-color: #f5f5f1; }
.gf__cta .btn--ink::before { background: var(--tone-ink); }
.gf__cta .btn--ink:hover { color: #f5f5f1; border-color: var(--tone-ink); }
.gf__cta-inner { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px 64px; align-items: end; padding-top: var(--block); padding-bottom: var(--block); }
.gf__cta-title { font-size: clamp(30px, 4.6vw, 68px); font-weight: 700; line-height: 1.35; }
.gf__cta-side { display: grid; gap: 24px; justify-items: start; color: var(--ink-2); }
.gf__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; padding-top: 72px; padding-bottom: 40px; }
.gf__brand { display: inline-flex; text-decoration: none; }
.gf__col--brand { display: grid; gap: 16px; align-content: start; font-size: var(--fs-sm); color: var(--ink-2); }
.gf__mail a { font-size: 18px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.gf__head { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); color: var(--ink-3); }
.gf__col ul { display: grid; gap: 6px; font-size: var(--fs-sm); }
.gf__col li a { text-decoration: none; }
.gf__col li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.gf__works a { display: flex; gap: 10px; }
.gf__works .num { color: var(--ink-4); }
.gf__bottom { margin-top: clamp(40px, 5vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line-2); font-size: var(--fs-xs); color: var(--ink-3); }

@media (max-width: 860px) {
  .ph__inner { grid-template-columns: 1fr; }
  .ph__side { display: none; }
}
@media (max-width: 900px) {
  .gf__cta-inner { grid-template-columns: 1fr; }
  .gf__grid { grid-template-columns: 1fr 1fr; }
  .gf__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .gf__grid { grid-template-columns: 1fr; }
}

/* ---- ページの移り変わり（方眼の紙が入れ替わる） ---- */
.pt { position: fixed; inset: 0; z-index: 200; pointer-events: none; visibility: hidden; }
.pt__panel { position: absolute; inset: 0; display: grid; place-items: center; border-top: 1px solid var(--line-2); }
.pt__label { font-size: clamp(22px, 3vw, 40px); font-weight: 700; letter-spacing: 0.06em; }
.pt__label::before { content: ''; display: block; width: 10px; height: 10px; margin: 0 auto 18px; background: var(--shu); }
.is-entering .pt { visibility: visible; }

@media (max-width: 600px) {
  .ph__title { font-size: 8.4vw; }
}
