@charset "UTF-8";
/* ==========================================================================
   仙と住　建築設計事務所 ── https://sentoju.jp/
   デザイン：案01「間（ま）」×藍　縦書きと余白で綴る、静かな随筆
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #F4F3EF;
  --paper: #FBF9F4;
  --ink: #2B2A27;
  --ink-mute: #6B665D;
  --line: rgba(43, 42, 39, .16);
  --line-strong: rgba(43, 42, 39, .34);
  --on-key: #FFFFFF;
  --alert: #8C3B2B;

  --key: #2E4A62;
  --key-deep: #253B4E;
  --bg-glass: rgba(244, 243, 239, .9);

  --ff-ja: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --ff-en: "Cormorant Garamond", "Shippori Mincho", "Hiragino Mincho ProN", serif;

  --gutter: clamp(20px, 5.2vw, 80px);
  --space-section: clamp(120px, 16vw, 240px);
  --header-h: 64px;
  --rail: 0px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-color: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), fill .4s var(--ease), stroke .4s var(--ease), outline-color .4s var(--ease);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .16 0 0 0 0 .15 0 0 0 .2 -.055'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:root {
  --key-soft: color-mix(in srgb, var(--key) 7%, var(--bg));
  --key-line: color-mix(in srgb, var(--key) 40%, transparent);
  --key-grid: color-mix(in srgb, var(--key) 20%, transparent);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  :root { --key-soft: #E6E7E5; --key-line: rgba(46, 74, 98, .4); --key-grid: rgba(46, 74, 98, .2); }
}

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background-color: var(--bg);
  transition: background-color .4s var(--ease);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background-color: var(--bg);
  background-image: var(--noise);
  color: var(--ink);
  font-family: var(--ff-ja);
  font-size: clamp(1rem, .97rem + .12vw, 1.0625rem);
  font-weight: 400;
  line-height: 2.1;
  letter-spacing: .05em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  line-break: strict;
  transition: var(--t-color);
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.6; text-wrap: balance; word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; }

img, svg { display: block; }
img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: var(--t-color); }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }

::selection { background-color: var(--key); color: var(--on-key); }

:focus-visible { outline: 2px solid var(--key); outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }

[lang="en"] { font-family: var(--ff-en); font-variant-numeric: lining-nums; }

/* --------------------------------------------------------------------------
   2. Utilities / motifs
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: .55em 1.3em;
  background-color: var(--key);
  color: var(--on-key);
  font-size: .9375rem;
  letter-spacing: .12em;
  transform: translateY(-180%);
  transition: transform .3s var(--ease), var(--t-color);
}
.skip-link:focus { transform: none; }

.tcy { text-combine-upright: all; -webkit-text-combine: horizontal; }

/* 障子の桟・柱：細い縦罫 */
.pillar {
  display: block;
  flex: none;
  width: 1px;
  background-color: var(--line);
  transform-origin: 50% 0;
}

/* 見出し：縦書き＋欧文ラベル */
.section { position: relative; padding-block: var(--space-section); padding-inline: var(--gutter); }

.section-head {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: .85rem;
}
.section-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(1.625rem, 1.15rem + 1.35vw, 2.625rem);
  font-weight: 500;
  letter-spacing: .26em;
  line-height: 1.4;
  white-space: nowrap;
}
.section-label {
  display: flex;
  align-items: center;
  gap: .9em;
  writing-mode: vertical-rl;
  font-family: var(--ff-en);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: .14em;
  color: var(--key);
  padding-block: .35em 0;
  transition: var(--t-color);
}
.section-label::before {
  content: "";
  display: block;
  inline-size: 2.75em;
  block-size: 1px;
  background-color: currentColor;
}

/* 出現（JS 有効時のみ初期非表示） */
html.js .reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 1.3s var(--ease-out) var(--delay, 0s), transform 1.3s var(--ease-out) var(--delay, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

html.js .pillar {
  transform: scaleY(0);
  transition: transform 1.8s var(--ease-out) var(--delay, .15s), background-color .4s var(--ease);
}
html.js .pillar.is-visible { transform: none; }

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.site-header__bar {
  position: fixed;
  top: 0; left: 0; right: var(--rail);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.site-header.is-scrolled .site-header__bar {
  background-color: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header.is-open .site-header__bar { background-color: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.brand-group { display: flex; align-items: center; min-width: 0; }
.brand { display: inline-flex; align-items: center; color: var(--ink); padding-block: 6px; }
.brand__logo { width: auto; height: 34px; color: inherit; transition: var(--t-color); }

/* ロゴに添える業種表記：ロゴの一部ではなく、障子の桟のような細い罫で区切って置く */
.brand__desc {
  position: relative;
  margin-inline-start: 14px;
  padding-inline-start: 15px;
  font-size: .6875rem;
  line-height: 1;
  letter-spacing: .26em;
  color: #000;
  white-space: nowrap;
}
.brand__desc::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 50%;
  translate: 0 -50%;
  inline-size: 1px;
  block-size: 14px;
  background-color: var(--line);
}
@media (max-width: 374.98px) {
  .brand__desc { margin-inline-start: 10px; padding-inline-start: 11px; font-size: .625rem; letter-spacing: .16em; }
}

.menu-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .75em;
  margin-right: -.5em;
  padding: .6em .5em;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1;
  letter-spacing: .24em;
}
.menu-toggle__icon { position: relative; display: flex; gap: 5px; height: 18px; }
.menu-toggle__icon i {
  display: block;
  width: 1px;
  height: 100%;
  background-color: currentColor;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(1) { transform: translateX(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(3) { transform: translateX(-6px) rotate(-45deg); }
html:not(.js) .menu-toggle { display: none; }

@media (min-width: 768px) {
  :root { --header-h: 76px; }
  .brand__logo { height: 40px; }
  .brand__desc { margin-inline-start: 18px; padding-inline-start: 19px; font-size: .75rem; letter-spacing: .3em; }
  .brand__desc::before { block-size: 16px; }
}

/* --------------------------------------------------------------------------
   4. Navigation ── 右端の縦書きナビ列（1200px 以上）
   -------------------------------------------------------------------------- */
.site-nav__no { font-family: var(--ff-en); font-variant-numeric: lining-nums; line-height: 1; }
.site-nav__ja { writing-mode: vertical-rl; line-height: 1; }

@media (min-width: 1200px) and (min-height: 600px) {
  :root { --rail: 80px; }
  main, .site-footer { padding-right: var(--rail); }

  .menu-toggle { display: none; }

  .site-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 60;
    width: var(--rail);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg);
    background-image: var(--noise);
    border-left: 1px solid var(--line);
    transition: var(--t-color);
  }
  .site-nav__eyebrow, .site-nav__foot { display: none; }
  .site-nav__list { display: flex; flex-direction: column; align-items: center; gap: clamp(1.25rem, 4.2vh, 2.75rem); }
  .site-nav__link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    color: var(--ink-mute);
  }
  .site-nav__no { font-size: .875rem; letter-spacing: .04em; }
  .site-nav__ja { font-size: .9375rem; letter-spacing: .3em; }
  .site-nav__link::after {
    content: "";
    position: absolute;
    top: 2.1rem; bottom: .5rem; left: 0;
    width: 1px;
    background-color: var(--key);
    transform: scaleY(0);
    transform-origin: 50% 0;
    transition: transform .6s var(--ease-out), background-color .4s var(--ease);
  }
  .site-nav__link:hover { color: var(--ink); }
  .site-nav__link[aria-current] { color: var(--key); }
  .site-nav__link[aria-current]::after { transform: none; }
}

/* 目次オーバーレイ（1199px 以下） */
@media (max-width: 1199.98px), (max-height: 599.98px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 24px) var(--gutter) 112px;
    overflow-y: auto;
    background-color: var(--bg);
    background-image: var(--noise);
    visibility: hidden;
    opacity: 0;
    transition: opacity .5s var(--ease), visibility 0s linear .5s, background-color .4s var(--ease);
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .5s var(--ease), background-color .4s var(--ease); }
  .site-nav__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(2rem, 6vh, 3.5rem); margin: auto; }
  .site-nav__eyebrow { font-style: italic; font-size: 1rem; letter-spacing: .24em; color: var(--key); }
  .site-nav__list { display: flex; flex-direction: row-reverse; justify-content: center; gap: clamp(1.75rem, 9vw, 4.5rem); }
  .site-nav__link { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: .5rem; }
  .site-nav__no { font-size: 1rem; color: var(--key); transition: var(--t-color); }
  .site-nav__ja { font-size: clamp(1.25rem, 5.4vw, 1.75rem); font-weight: 500; letter-spacing: .32em; }
  .site-nav__link[aria-current] .site-nav__ja { color: var(--key); }
  .site-nav__foot { display: flex; align-items: center; gap: 1.1rem; padding-top: clamp(1rem, 4vh, 2rem); border-top: 1px solid var(--line); }
  .site-nav__meta { display: flex; flex-direction: column; font-size: .9375rem; line-height: 1.9; }
  .site-nav__meta a { font-size: 1.125rem; letter-spacing: .06em; }

  .site-nav.is-open .site-nav__list li { animation: nav-in .9s var(--ease-out) both; }
  .site-nav.is-open .site-nav__list li:nth-child(2) { animation-delay: .07s; }
  .site-nav.is-open .site-nav__list li:nth-child(3) { animation-delay: .14s; }
  .site-nav.is-open .site-nav__list li:nth-child(4) { animation-delay: .21s; }

  html:not(.js) .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    display: block;
    padding: calc(var(--header-h) + 8px) var(--gutter) 0;
    background: none;
  }
  html:not(.js) .site-nav__inner { align-items: flex-end; }
  html:not(.js) .site-nav__eyebrow, html:not(.js) .site-nav__foot { display: none; }
  html:not(.js) .site-nav__list { gap: 1.5rem; flex-wrap: wrap; }
  html:not(.js) .site-nav__link { flex-direction: row; gap: .5rem; }
  html:not(.js) .site-nav__ja { writing-mode: horizontal-tb; font-size: 1rem; letter-spacing: .1em; }
}
@keyframes nav-in {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}
html.is-menu-open { overflow: hidden; }
/* --------------------------------------------------------------------------
   5. Hero ── #top
   -------------------------------------------------------------------------- */
/* 障子越しの光：キーカラーをごく淡く流す（登録カスタムプロパティで色の切替もなめらかに） */
@property --hero-wash { syntax: "<color>"; inherits: false; initial-value: transparent; }
.hero {
  --hero-wash: color-mix(in srgb, var(--key) 7%, transparent);
  position: relative;
  height: 100vh;
  height: clamp(640px, 100svh, 1120px);
  padding-inline: var(--gutter);
  background-image: linear-gradient(to bottom, var(--hero-wash), var(--hero-wash) 56%, transparent);
  transition: --hero-wash .4s var(--ease);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .hero { --hero-wash: rgba(46, 74, 98, .07); }
}
.hero__inner {
  position: relative;
  height: 100%;
  max-width: 1600px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: clamp(28px, 4vw, 80px);
  padding-block: calc(var(--header-h) + 2vh) clamp(56px, 9vh, 104px);
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 1040px);
}
.hero__frame {
  position: relative;
  overflow: hidden;
}
.hero__img {
  width: 100%;
  height: auto;
  max-height: calc(100svh - var(--header-h) - 160px);
  object-fit: contain;
  mix-blend-mode: multiply;
  transform-origin: 58% 52%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: hero-zoom 12s var(--ease-out) both; }
}
@keyframes hero-zoom {
  from { transform: scale(1.04); }
  to { transform: none; }
}


.hero__pillar { align-self: stretch; margin-block: 2vh 0; background-color: var(--key-line); }

.hero__text {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(22px, 2.6vw, 52px);
  align-self: center;
}
.hero__title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .3em;
  white-space: nowrap;
}
.hero__line { display: block; }
.hero__line + .hero__line { margin-inline-start: 2.2em; }

.hero__lead {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-inline-start: 7.25em;
  font-size: 1rem;
  line-height: 2.15;
  letter-spacing: .14em;
  white-space: nowrap;
}

.hero__title, .hero__lead { animation: hero-ink 2.2s var(--ease-out) both; }
.hero__lead { animation-delay: .5s; }
@keyframes hero-ink {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  padding-inline: .5rem;
  color: var(--ink-mute);
  font-style: italic;
  font-size: .875rem;
  letter-spacing: .18em;
}
.scroll-cue__label { writing-mode: vertical-rl; line-height: 1; }
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: clamp(48px, 10vh, 96px);
  overflow: hidden;
  background-color: var(--line);
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--key);
  transform: translateY(-101%);
  animation: cue 3s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-101%); }
  60%, 100% { transform: translateY(101%); }
}

@media (max-width: 1023.98px) {
  .hero { height: auto; padding-inline: 0; }
  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(36px, 7vw, 56px);
    padding-block: calc(var(--header-h) + 12px) clamp(24px, 6vw, 48px);
  }
  .hero__visual { width: 100%; padding-inline: var(--gutter); }
  .hero__img { max-height: none; }
  .hero__pillar { display: none; }
  .hero__text {
    align-self: stretch;
    justify-content: flex-start;
    gap: clamp(16px, 4.5vw, 36px);
    padding-inline: var(--gutter);
  }
  .hero__title { font-size: clamp(1.75rem, 6.4vw, 2.625rem); }
  .hero__lead { margin-inline-start: 4.5em; line-height: 2; letter-spacing: .1em; }
  .scroll-cue { display: none; }
}
@media (max-width: 479.98px) {
  .hero__lead { margin-inline-start: 0; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero__visual { width: min(88%, calc(44svh * 1.415)); }
  .hero__title { font-size: clamp(1.75rem, 4.8vw, 2.375rem); }
}

/* --------------------------------------------------------------------------
   6. Message ── 原稿用紙の随筆
   -------------------------------------------------------------------------- */
.message__inner {
  max-width: 1480px;
  margin-inline: auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(36px, 5.2vw, 104px);
}
.message__head { gap: 1rem; }
.message__title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(1.5rem, .9rem + 1.65vw, 2.5rem);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .2em;
  white-space: nowrap;
}
.message__line { display: block; }
.message__line:nth-child(2) { margin-inline-start: 2.2em; --delay: .15s; }
.message__line:nth-child(3) { margin-inline-start: 4.4em; --delay: .3s; }

.message__pillar { align-self: stretch; }

.message__sheet {
  position: relative;
  flex: none;
  margin-top: clamp(48px, 9vw, 168px);
  box-shadow: 0 1px 1px rgba(43, 42, 39, .05), 0 36px 64px -44px rgba(43, 42, 39, .34);
}
.message__sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* 原稿用紙：升目（P）と行間（L）を整数ピクセルでそろえる */
.genko {
  --F: 17px;
  --P: 18px;
  --L: 32px;
  --rows: 30;
  --c0: calc((var(--L) - var(--P)) / 2);
  --c1: calc(var(--c0) + 1px);
  --c2: calc((var(--L) + var(--P)) / 2 - 1px);
  --c3: calc((var(--L) + var(--P)) / 2);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: calc((var(--rows) + 4) * var(--P));
  padding: calc(var(--P) * 2) var(--L);
  font-size: var(--F);
  line-height: var(--L);
  letter-spacing: 1px;
  text-spacing-trim: space-all;
  font-feature-settings: normal;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(to left,
      var(--paper) 0 var(--c0),
      var(--key-grid) var(--c0) var(--c1),
      transparent var(--c1) var(--c2),
      var(--key-grid) var(--c2) var(--c3),
      var(--paper) var(--c3) var(--L)),
    repeating-linear-gradient(to bottom, var(--key-grid) 0 1px, transparent 1px var(--P));
  background-position: 0 0, 0 -.5px;
}
.genko p { text-indent: var(--P); }

/* 署名は原稿用紙の中に置き、PCでは紙の外（左下）に見えるよう紙を基準に配置する */
.message__sign {
  position: absolute;
  bottom: 0;
  right: calc(100% + clamp(36px, 5.2vw, 104px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.message__signature {
  writing-mode: vertical-rl;
  line-height: 1.8;
  letter-spacing: .2em;
  text-indent: 0;
  white-space: nowrap;
}
.message__office { font-size: .9375rem; color: var(--ink-mute); }
.message__name { font-size: 1.375rem; font-weight: 500; letter-spacing: .32em; }

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .genko { --rows: 26; }
}

@media (max-width: 1023.98px) {
  .message__inner { flex-direction: column; align-items: stretch; gap: clamp(48px, 10vw, 72px); }
  .message__head { align-self: flex-end; }
  .message__line:nth-child(2) { margin-inline-start: 1.2em; }
  .message__line:nth-child(3) { margin-inline-start: 2.4em; }
  .message__pillar { display: none; }
  .message__sheet { margin-top: 0; max-width: 40rem; }
  .genko {
    writing-mode: horizontal-tb;
    height: auto;
    padding: 30px clamp(20px, 5vw, 40px) 32px;
    font-size: 1rem;
    line-height: 2.1;
    letter-spacing: .05em;
    background-image: repeating-linear-gradient(to bottom, transparent 0 calc(2.1em - 1px), var(--key-grid) calc(2.1em - 1px) 2.1em);
    background-position: 0 30px;
  }
  .genko p { text-indent: 1em; }
  /* 本文が横組みになる幅では、署名も本文のあとに横書きで置く */
  /* 本文が横組みになる幅では、署名も原稿用紙の中に、本文のあとへ横書きで置く */
  .message__sign { position: static; display: block; margin-top: 2.1rem; text-align: right; }
  .message__signature { writing-mode: horizontal-tb; line-height: 2.1rem; letter-spacing: .16em; white-space: normal; }
  .message__office { font-size: .875rem; }
  .message__name { font-size: 1.1875rem; letter-spacing: .22em; }
}
/* --------------------------------------------------------------------------
   7. Service ── 短冊
   -------------------------------------------------------------------------- */
.service__inner {
  max-width: 1480px;
  margin-inline: auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(40px, 5.5vw, 112px);
}
.service__head { flex: none; gap: 1rem; }
.service__lead {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-top: 5.5em;
  margin-right: clamp(10px, 1.6vw, 28px);
  font-size: 1rem;
  line-height: 2.1;
  letter-spacing: .12em;
  white-space: nowrap;
}

.service__list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: clamp(72px, 10vw, 180px);
}
.tanzaku {
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: 0;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(40px, 4vw, 60px) clamp(18px, 2.2vw, 40px) clamp(36px, 3.4vw, 52px);
}
.tanzaku:nth-child(2) { --delay: .12s; }
.tanzaku:nth-child(3) { --delay: .24s; }
.tanzaku::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--key-soft);
  opacity: 0;
  transition: opacity .6s var(--ease), background-color .4s var(--ease);
}
.tanzaku:hover::before { opacity: 1; }

.tanzaku__rule,
.tanzaku:first-child::after {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 1px;
  background-color: var(--line);
  transform-origin: 50% 0;
}
.tanzaku:first-child::after { content: ""; left: auto; right: 0; }
html.js .tanzaku__rule,
html.js .tanzaku:first-child::after {
  transform: scaleY(0);
  transition: transform 1.8s var(--ease-out) calc(var(--delay, 0s) + .1s);
}
html.js .tanzaku.is-visible .tanzaku__rule,
html.js .tanzaku.is-visible:first-child::after { transform: none; }

.tanzaku__no {
  font-size: clamp(1.75rem, 1.3rem + 1.1vw, 2.375rem);
  font-weight: 600;
  line-height: 1;
  color: var(--key);
  transition: var(--t-color);
}
.tanzaku__heading {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: .55rem;
  margin-block: clamp(28px, 3vw, 44px) clamp(32px, 3.4vw, 52px);
  min-height: 15rem;
}
.tanzaku__title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(1.25rem, 1rem + .55vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .24em;
  white-space: nowrap;
}
.tanzaku__en {
  writing-mode: vertical-rl;
  font-style: italic;
  font-size: .9375rem;
  line-height: 1;
  letter-spacing: .12em;
  color: var(--ink-mute);
  padding-top: .4em;
  white-space: nowrap;
}
.tanzaku__text {
  width: 100%;
  max-width: 17em;
  margin-top: auto;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: .04em;
}

/* 横に並ぶ短冊（768px 以上）：数字・見出し・説明文の段を4枚でそろえ、説明文の書き出しを上端でそろえる。
   見出しの段は、いちばん長い見出しに合わせた高さになる */
@media (min-width: 768px) {
  @supports (grid-template-rows: subgrid) {
    .service__list {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(0, 340px);
      grid-template-rows: repeat(3, auto);
      justify-content: start;
      direction: rtl; /* 短冊は右から左へ並べる（中身は下で ltr に戻す） */
    }
    .tanzaku {
      direction: ltr;
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      grid-template-columns: minmax(0, 1fr); /* 説明文の幅を短冊の内側に収める（長い文節で広がらないように） */
      justify-items: center;
      align-items: start;
    }
    .tanzaku__text { margin-top: 0; }
  }
}
/* 1024〜1179px は見出しの列と並ぶぶん短冊がいちばん細くなる。左右の余白と文字をわずかに詰めて、1行に8文字以上入れる
   （「ご相談ください。」などが割れて、最後の行に「い。」だけが残らないように） */
@media (min-width: 1024px) and (max-width: 1179.98px) {
  .tanzaku { padding-inline: 16px; }
  .tanzaku__text { font-size: .9375rem; }
}

@media (max-width: 1023.98px) {
  .service__inner { flex-direction: column; align-items: stretch; gap: clamp(40px, 8vw, 64px); }
  .service__head { align-self: flex-end; flex-wrap: wrap; max-width: 100%; }
  .service__list { margin-top: 0; }
}
@media (max-width: 767.98px) {
  .service__head { justify-content: flex-start; }
  .service__lead {
    flex-basis: 100%;
    writing-mode: horizontal-tb;
    margin: 1.75rem 0 0;
    white-space: normal;
    letter-spacing: .05em;
  }
  .service__lead br { display: none; }
  .service__list { flex-direction: column; border-top: 1px solid var(--line); }
  .tanzaku {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    column-gap: clamp(18px, 6vw, 32px);
    padding: 36px 6px 36px 4px;
    border-bottom: 1px solid var(--line);
  }
  .tanzaku__rule, .tanzaku:first-child::after { display: none; }
  .tanzaku__no { grid-column: 2; grid-row: 1; justify-self: center; font-size: 1.75rem; }
  .tanzaku__heading { grid-column: 2; grid-row: 2; margin: 16px 0 0; min-height: 0; }
  .tanzaku__text { grid-column: 1; grid-row: 1 / 3; max-width: none; margin-top: 0; }
}

/* --------------------------------------------------------------------------
   8. Profile
   -------------------------------------------------------------------------- */
.profile__inner {
  max-width: 1480px;
  margin-inline: auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(36px, 5vw, 104px);
}
.profile__head { flex: none; }

.profile__name {
  flex: none;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(12px, 1.3vw, 22px);
  margin-top: clamp(48px, 6vw, 104px);
}
.profile__role {
  writing-mode: vertical-rl;
  font-size: .9375rem;
  line-height: 1.5;
  letter-spacing: .2em;
  color: var(--ink-mute);
  white-space: nowrap;
}
.profile__person {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-top: 2.2em;
  font-size: clamp(2.125rem, 1.3rem + 2.4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .4em;
  white-space: nowrap;
}
.profile__person ruby { ruby-align: space-around; }
.profile__person rt {
  font-size: .25em;
  font-weight: 400;
  letter-spacing: .28em;
  color: var(--ink-mute);
}
.profile__space { letter-spacing: .3em; }
.profile__latin {
  writing-mode: vertical-rl;
  align-self: flex-end;
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1;
  letter-spacing: .16em;
  color: var(--key);
  white-space: nowrap;
  transition: var(--t-color);
}

.profile__pillar { align-self: stretch; }

.profile__body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 41rem;
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 7vw, 112px);
  margin-top: clamp(120px, 15vw, 260px);
}
.profile__intro { font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 2.2; letter-spacing: .06em; }

.career__title {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 1.125rem;
  letter-spacing: .32em;
}
.career__en { font-style: italic; font-weight: 400; font-size: 1rem; letter-spacing: .12em; color: var(--key); transition: var(--t-color); }
.career__table { width: 100%; border-collapse: collapse; }
.career__table tr { border-bottom: 1px solid var(--line); }
.career__table th {
  width: 5.75rem;
  padding: 1.05rem 1rem 1.05rem 0;
  font-family: var(--ff-en);
  font-variant-numeric: lining-nums;
  font-weight: 400;
  font-size: 1.3125rem;
  line-height: 1.5;
  letter-spacing: .06em;
  text-align: left;
  vertical-align: baseline;
  color: var(--key);
  transition: var(--t-color);
}
.career__table td { padding: 1.05rem 0; line-height: 1.85; vertical-align: baseline; }

@media (max-width: 1023.98px) {
  .profile__inner { flex-wrap: wrap; justify-content: flex-start; gap: clamp(28px, 7vw, 56px); }
  .profile__name { margin-top: clamp(32px, 8vw, 64px); }
  .profile__pillar { display: none; }
  .profile__body { flex-basis: 100%; max-width: 44rem; margin: clamp(24px, 6vw, 48px) auto 0 0; }

  /* 本文が横組みになる幅では、肩書・氏名・ローマ字も横書きにして上から順に置く */
  .profile__name {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    min-width: 0;
  }
  .profile__role { writing-mode: horizontal-tb; letter-spacing: .14em; line-height: 1.9; }
  .profile__person {
    writing-mode: horizontal-tb;
    margin-top: 0;
    letter-spacing: .22em;
    line-height: 1.5;
  }
  .profile__person rt { font-size: .32em; letter-spacing: .05em; }
  .profile__latin { writing-mode: horizontal-tb; align-self: flex-start; letter-spacing: .1em; }
}
@media (max-width: 479.98px) {
  .profile__person { font-size: 2rem; letter-spacing: .18em; }
  .profile__role { font-size: .875rem; }
  .career__table th { width: 4.5rem; font-size: 1.1875rem; }
}
/* --------------------------------------------------------------------------
   9. Story ── 巻物（1024px 以上）／アコーディオン（1023px 以下）
   -------------------------------------------------------------------------- */
.story__inner {
  max-width: 1640px;
  margin-inline: auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(28px, 3.6vw, 72px);
}
.story__head { flex: none; }
.story__reader { flex: 1 1 0%; min-width: 0; }

.story__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.story__hint {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .9375rem;
  line-height: 1.6;
  letter-spacing: .1em;
  color: var(--ink-mute);
}
.icon-arrow-left, .story__btn svg, .byobu-controls__btn svg, .lightbox__btn svg {
  flex: none;
  width: 28px;
  height: 8px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-arrow-left { color: var(--key); transition: var(--t-color); }

.story-toc { display: flex; flex-direction: row-reverse; gap: .125rem; }
.story-toc__btn {
  position: relative;
  appearance: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink-mute);
  transition: var(--t-color);
}
.story-toc__btn::after {
  content: "";
  position: absolute;
  left: 30%; right: 30%; bottom: 5px;
  height: 1px;
  background-color: var(--key);
  transform: scaleX(0);
  transition: transform .5s var(--ease-out), background-color .4s var(--ease);
}
.story-toc__btn:hover { color: var(--ink); }
.story-toc__btn[aria-current="true"] { color: var(--key); }
.story-toc__btn[aria-current="true"]::after { transform: none; }

.story__scroller {
  position: relative;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  width: 100%;
  height: 78vh;
  height: min(78svh, 760px);
  min-height: 460px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: clamp(36px, 5.5vh, 60px) 0 clamp(28px, 4vh, 44px) clamp(80px, 12vw, 220px);
  font-size: 1.0625rem;
  line-height: 2;
  letter-spacing: .06em;
  scrollbar-width: thin;
  scrollbar-color: var(--key) transparent;
}
.story__scroller::-webkit-scrollbar { height: 3px; }
.story__scroller::-webkit-scrollbar-track { background: transparent; }
.story__scroller::-webkit-scrollbar-thumb { background-color: var(--key); }
.story__scroller:focus-visible { outline-offset: -2px; }

.chapter {
  position: relative;
  scroll-snap-align: start;
  margin-block-end: clamp(52px, 5.5vw, 96px);
}
.chapter + .chapter {
  padding-block-start: clamp(52px, 5.5vw, 96px);
  border-block-start: 1px solid var(--line);
}
.chapter__head {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-block-end: clamp(28px, 2.6vw, 44px);
  list-style: none;
  cursor: default;
}
.chapter__head::-webkit-details-marker { display: none; }
.chapter__head::marker { content: ""; }
.chapter__no {
  font-size: clamp(2rem, 1.5rem + 1vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--key);
  transition: var(--t-color);
}
.chapter__title {
  font-size: clamp(1.3125rem, 1rem + .6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .22em;
  white-space: nowrap;
}
.chapter__place {
  display: flex;
  align-items: center;
  gap: .8em;
  margin-inline-start: auto;
  font-size: .875rem;
  line-height: 1;
  letter-spacing: .32em;
  color: var(--ink-mute);
  white-space: nowrap;
}
.chapter__place::before {
  content: "";
  display: block;
  inline-size: 2.25em;
  block-size: 1px;
  background-color: var(--key-line);
  transition: background-color .4s var(--ease);
}
.chapter__toggle { display: none; }
.chapter__body p { text-indent: 1em; }
.chapter__body p + p { margin-block-start: 2.2em; }
.chapter:last-of-type .chapter__body p:last-child { font-size: 1.1875rem; font-weight: 500; letter-spacing: .12em; }

/* 章に添えるスケッチ：本文のあとに置き、段の下端にそろえて上に間を残す（押すと拡大） */
.chapter__fig {
  inline-size: fit-content;
  margin-block-start: clamp(44px, 4.4vw, 84px);
  margin-inline-start: auto;
}
.chapter__img {
  display: block;
  width: auto;
  max-width: none;
  height: min(44vh, 420px);
  height: min(44svh, 420px);
  mix-blend-mode: multiply;
}
.chapter__fig--tall .chapter__img { height: min(56vh, 520px); height: min(56svh, 520px); }
.chapter__cap {
  margin-block-start: .9rem;
  font-size: .875rem;
  line-height: 1.7;
  letter-spacing: .18em;
  color: var(--ink-mute);
  white-space: nowrap;
}


.story__controls {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}
.story__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: .65rem .25rem;
  border: 0;
  background: none;
  font-size: .9375rem;
  line-height: 1.4;
  letter-spacing: .16em;
  color: var(--ink);
  transition: var(--t-color), opacity .3s var(--ease);
}
.story__btn svg { transition: transform .45s var(--ease); }
.story__btn:hover { color: var(--key); }
.story__btn--next:hover svg { transform: translateX(-5px); }
.story__btn--prev:hover svg { transform: translateX(5px); }
.story__btn[aria-disabled="true"] { opacity: .32; cursor: default; color: var(--ink); }
.story__btn[aria-disabled="true"] svg { transform: none; }
.story__meter { flex: 1 1 auto; max-width: 560px; display: flex; flex-direction: row-reverse; align-items: center; gap: 1.25rem; }
.story__count { font-size: .9375rem; letter-spacing: .12em; white-space: nowrap; color: var(--ink-mute); }
.story__count-now { color: var(--key); transition: var(--t-color); }
.story__count-sep { padding-inline: .2em; }
.story__progress { position: relative; flex: 1 1 auto; height: 1px; background-color: var(--line); }
.story__progress-bar {
  position: absolute;
  inset: -1px 0;
  background-color: var(--key);
  transform-origin: 100% 50%;
  transform: scaleX(var(--progress, 0));
  transition: background-color .4s var(--ease);
}
html:not(.js) .story__controls, html:not(.js) .story-toc { display: none; }

@media (max-width: 1023.98px) {
  .story__inner { flex-direction: column; align-items: stretch; gap: clamp(40px, 8vw, 64px); }
  .story__head { align-self: flex-end; }
  .story__bar, .story__controls { display: none; }
  .story__scroller {
    writing-mode: horizontal-tb;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
    border-top: 1px solid var(--line-strong);
    font-size: 1rem;
    line-height: 2.1;
    letter-spacing: .05em;
  }
  .chapter, .chapter + .chapter { margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line); }
  .chapter__head {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto 1.25rem;
    align-items: center;
    gap: .5rem 1rem;
    margin: 0;
    padding: 1.35rem .25rem;
    cursor: pointer;
  }
  .chapter__no { font-size: 1.625rem; text-align: center; }
  .chapter__title { font-size: 1.125rem; line-height: 1.6; letter-spacing: .1em; white-space: normal; }
  .chapter__place { margin: 0; font-size: .8125rem; letter-spacing: .2em; }
  .chapter__place::before { inline-size: 1.25em; }
  .chapter__toggle { position: relative; display: block; width: 14px; height: 14px; justify-self: end; }
  .chapter__toggle::before, .chapter__toggle::after {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 100%; height: 1px;
    background-color: var(--key);
    transition: transform .45s var(--ease), background-color .4s var(--ease);
  }
  .chapter__toggle::after { transform: rotate(90deg); }
  .chapter[open] .chapter__toggle::after { transform: rotate(0deg); }
  .chapter__head:hover .chapter__title { color: var(--key); }
  .chapter__body { max-width: 42em; padding: .25rem .25rem 2.5rem 3.75rem; }
  .chapter__body p + p { margin-block-start: 1.05em; }
  .chapter[open] .chapter__body { animation: fade-down .7s var(--ease-out) both; }
}
/* 1023px 以下：本文の下に置く。読み込み前から縦横比で場所を確保し、読み込み時に本文がずれないようにする */
@media (max-width: 1023.98px) {
  .chapter__fig { inline-size: auto; margin: 1.75rem 0 0; }
  .chapter__zoom { width: min(100%, 32rem); }
  .chapter__img { width: 100%; height: auto; }
  .chapter__fig--tall .chapter__zoom { width: fit-content; max-width: 100%; }
  .chapter__fig--tall .chapter__img { width: auto; height: min(62vh, 440px); }
  .chapter__cap { margin-block-start: .6rem; font-size: .8125rem; letter-spacing: .1em; white-space: normal; }
}
@media (max-width: 479.98px) {
  .chapter__head { grid-template-columns: 2.25rem minmax(0, 1fr) 1.25rem; }
  .chapter__place { grid-column: 2; grid-row: 2; }
  .chapter__toggle { grid-column: 3; grid-row: 1 / 3; }
  .chapter__body { padding-left: .25rem; }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   11. Works ── 屏風
   -------------------------------------------------------------------------- */
.works__inner { max-width: 1640px; margin-inline: auto; }
.works__head { margin-bottom: clamp(48px, 6vw, 96px); }
.works__lead {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-top: 4.5em;
  margin-right: clamp(10px, 1.6vw, 28px);
  font-size: 1rem;
  line-height: 2.1;
  letter-spacing: .12em;
  white-space: nowrap;
}

.byobu {
  --screen-h: clamp(250px, 30vw, 440px);
  position: relative;
  direction: rtl;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.byobu::-webkit-scrollbar { display: none; }
html:not(.js) .byobu { scrollbar-width: thin; scrollbar-color: var(--key) transparent; }
.byobu:focus-visible { outline-offset: -2px; }

.byobu__list {
  display: flex;
  align-items: stretch;
  width: max-content;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.byobu__panel {
  position: relative;
  direction: ltr;
  flex: none;
  scroll-snap-align: start;
  padding: clamp(20px, 2.2vw, 32px) clamp(18px, 2vw, 32px);
}
.byobu__panel + .byobu__panel { border-right: 1px solid var(--line); }
.byobu__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to left, rgba(43, 42, 39, .035), rgba(43, 42, 39, 0) 55%);
}
.byobu__panel:nth-child(even)::before { background-image: linear-gradient(to right, rgba(43, 42, 39, .035), rgba(43, 42, 39, 0) 55%); }

.sketch { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: clamp(12px, 1.2vw, 18px); }
.sketch__link, .chapter__zoom {
  position: relative;
  display: block;
  padding: clamp(8px, .8vw, 12px);
  background-color: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 22px 40px -32px rgba(43, 42, 39, .45);
  transition: box-shadow .5s var(--ease), transform .6s var(--ease-out);
}
.sketch__link:hover, .chapter__zoom:hover { box-shadow: 0 0 0 1px var(--key), 0 26px 46px -30px rgba(43, 42, 39, .5); transform: translateY(-3px); }
.sketch__link:focus-visible, .chapter__zoom:focus-visible { outline-offset: 6px; }
.sketch__img {
  width: auto;
  max-width: none;
  height: var(--screen-h);
  mix-blend-mode: multiply;
}
.sketch__caption {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: calc(var(--screen-h) + 16px);
  padding-top: .35em;
  font-size: .875rem;
  line-height: 1.7;
  letter-spacing: .18em;
  color: var(--ink-mute);
}

.works__foot {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
  margin-top: clamp(24px, 3vw, 40px);
}
.byobu-controls { display: flex; flex-direction: row-reverse; align-items: center; gap: 1.1rem; width: min(100%, 380px); }
.byobu-controls[hidden] { display: none; }
.byobu-controls__btn {
  appearance: none;
  display: grid;
  place-items: center;
  padding: .85rem .5rem;
  border: 0;
  background: none;
  color: var(--ink);
  transition: var(--t-color), opacity .3s var(--ease);
}
.byobu-controls__btn:hover { color: var(--key); }
.byobu-controls__btn[aria-disabled="true"] { opacity: .3; cursor: default; color: var(--ink); }
.byobu-controls__progress { position: relative; flex: 1 1 auto; height: 1px; background-color: var(--line); }
.byobu-controls__bar {
  position: absolute;
  inset: -1px 0;
  background-color: var(--key);
  transform-origin: 100% 50%;
  transform: scaleX(var(--progress, 0));
  transition: background-color .4s var(--ease);
}
html:not(.js) .byobu-controls { display: none; }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem 1.8rem 1.05rem 2.1rem;
  border: 1px solid var(--key);
  color: var(--key);
  font-size: .9375rem;
  line-height: 1.4;
  letter-spacing: .16em;
}
.btn-line:hover { background-color: var(--key); color: var(--on-key); }
.icon-ext {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s var(--ease);
}
.btn-line:hover .icon-ext, .link-ext:hover .icon-ext { transform: translate(2px, -2px); }

@media (max-width: 767.98px) {
  .byobu { --screen-h: clamp(170px, 50vw, 250px); }
  .sketch { flex-direction: column; align-items: stretch; gap: .65rem; }
  .sketch__caption {
    writing-mode: horizontal-tb;
    width: 0;
    min-width: 100%;
    height: auto;
    padding-top: 0;
    font-size: .8125rem;
    letter-spacing: .1em;
  }
  .works__head { flex-wrap: wrap; }
  .works__lead { flex-basis: 100%; writing-mode: horizontal-tb; margin: 1.75rem 0 0; white-space: normal; letter-spacing: .05em; }
  .works__lead br { display: none; }
  .works__foot { flex-direction: column; align-items: stretch; }
  .byobu-controls { width: 100%; }
  .btn-line { justify-content: center; }
}

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: fade-in .45s var(--ease) both; }
.lightbox::backdrop { background-color: rgba(28, 27, 25, .58); }
.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  max-height: 100%;
  padding: 3.25rem clamp(16px, 3vw, 40px) clamp(12px, 2vw, 20px);
  background-color: var(--paper);
  background-image: var(--noise);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .55);
}
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: .9rem; min-height: 0; }
.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(calc(100vw - 112px), var(--max-w, 100%));
  max-height: calc(100vh - 230px);
  max-height: calc(100svh - 230px);
  mix-blend-mode: multiply;
}
.lightbox__caption { font-size: .9375rem; line-height: 1.7; letter-spacing: .14em; color: var(--ink-mute); text-align: center; }
.lightbox__nav {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-width: min(420px, calc(100vw - 64px));
  padding-top: .5rem;
  border-top: 1px solid var(--line);
}
.lightbox__btn {
  appearance: none;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: .75rem;
  padding: .6rem .25rem;
  border: 0;
  background: none;
  font-size: .9375rem;
  letter-spacing: .14em;
  color: var(--ink);
  transition: var(--t-color);
}
.lightbox__btn:hover { color: var(--key); }
.lightbox__count { font-size: 1.0625rem; letter-spacing: .12em; color: var(--ink-mute); }
.lightbox__close {
  position: absolute;
  top: .6rem; right: .75rem;
  appearance: none;
  padding: .45rem .5rem;
  border: 0;
  border-bottom: 1px solid var(--key-line);
  background: none;
  font-size: .875rem;
  letter-spacing: .22em;
  color: var(--key);
  transition: var(--t-color);
}
.lightbox__close:hover { border-bottom-color: var(--key); }
html.is-lightbox-open { overflow: hidden; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   12. Flow ── ご相談の流れ
   -------------------------------------------------------------------------- */
.flow__inner {
  max-width: 1480px;
  margin-inline: auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(40px, 5.5vw, 112px);
}
.flow__head { flex: none; }
.flow__list {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  direction: rtl;
  margin-top: clamp(56px, 7vw, 128px);
}
.flow__list::before {
  content: "";
  position: absolute;
  top: 1.625rem;
  left: 12.5%; right: 12.5%;
  height: 1px;
  background-color: var(--key-line);
  transform-origin: 100% 50%;
  transition: transform 2.2s var(--ease-out) .2s, background-color .4s var(--ease);
}
html.js .flow__list.line-grow::before { transform: scaleX(0); }
html.js .flow__list.line-grow.is-visible::before { transform: none; }

.step {
  position: relative;
  direction: ltr;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "no no" "text title";
  justify-content: center;
  align-items: start;
  column-gap: clamp(12px, 1.2vw, 22px);
  row-gap: 1.9rem;
  padding-inline: clamp(6px, 1vw, 20px);
}
.step:nth-child(2) { --delay: .14s; }
.step:nth-child(3) { --delay: .28s; }
.step:nth-child(4) { --delay: .42s; }
.step__no {
  grid-area: no;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--key);
  background-color: var(--bg);
  color: var(--key);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1;
  transition: var(--t-color);
}
.step__title {
  grid-area: title;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(1.1875rem, .95rem + .45vw, 1.4375rem);
  line-height: 1.5;
  letter-spacing: .24em;
  white-space: nowrap;
}
.step__text {
  grid-area: text;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 15.5em;
  margin-top: 3.25em;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: .08em;
}

@media (max-width: 1023.98px) {
  .flow__inner { flex-direction: column; align-items: stretch; gap: clamp(40px, 8vw, 64px); }
  .flow__head { align-self: flex-end; }
  .flow__list { display: flex; flex-direction: column; direction: ltr; margin-top: 0; max-width: 40rem; }
  .flow__list::before { display: none; }
  .step {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "no title" "no text";
    justify-content: stretch;
    column-gap: 1.35rem;
    row-gap: .25rem;
    padding: 0 0 2.5rem;
  }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.625rem; top: 3.25rem; bottom: 0;
    width: 1px;
    background-color: var(--key-line);
    transition: background-color .4s var(--ease);
  }
  .step__no { align-self: start; }
  .step__title { writing-mode: horizontal-tb; margin-top: .6rem; font-size: 1.1875rem; letter-spacing: .14em; white-space: normal; }
  .step__text { writing-mode: horizontal-tb; height: auto; margin: 0; letter-spacing: .05em; }
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact__inner {
  max-width: 1480px;
  margin-inline: auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(40px, 5.5vw, 112px);
}
.contact__head { flex: none; gap: 1rem; }
.contact__title { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem); letter-spacing: .32em; }
.contact__catch {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-top: 2.6em;
  margin-right: clamp(14px, 2.4vw, 44px);
  font-size: clamp(1.625rem, 1rem + 1.5vw, 2.625rem);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: .22em;
  white-space: nowrap;
}
.contact__pillar { align-self: stretch; }
.contact__body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4.5vw, 64px);
  margin-top: clamp(40px, 5vw, 104px);
}
.contact__lead { font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 2.15; letter-spacing: .06em; }

.contact__info { border-top: 1px solid var(--line-strong); }
.contact__row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: baseline;
  gap: .25rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact__row dt { font-size: .9375rem; letter-spacing: .22em; color: var(--ink-mute); }
.contact__row dt[lang="en"] { font-style: italic; font-size: 1.0625rem; letter-spacing: .08em; }
.contact__mail {
  display: inline-block;
  padding-bottom: .1em;
  font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.625rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .03em;
  color: var(--ink);
  background-image: linear-gradient(var(--key), var(--key));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
}
.contact__mail:hover { color: var(--key); animation: underline-redraw .9s var(--ease-out); }
@keyframes underline-redraw {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  45% { background-size: 0% 1px; background-position: 100% 100%; }
  46% { background-size: 0% 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}
.link-ext {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding-bottom: .1em;
  border-bottom: 1px solid var(--key-line);
}
.link-ext:hover { color: var(--key); border-bottom-color: var(--key); }
.contact__row .link-ext { font-size: 1.1875rem; letter-spacing: .06em; }

.contact__paper {
  position: relative;
  padding: clamp(28px, 4vw, 60px) clamp(20px, 4vw, 60px) clamp(32px, 4vw, 56px);
  background-color: var(--paper);
  background-image: var(--noise);
  box-shadow: 0 1px 1px rgba(43, 42, 39, .05), 0 44px 76px -54px rgba(43, 42, 39, .38);
}
.form { display: grid; gap: clamp(26px, 3vw, 38px); }
.form[hidden] { display: none; }
.field { display: grid; gap: .3rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--chips { display: block; }
.field__label {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0;
  font-size: .9375rem;
  line-height: 1.6;
  letter-spacing: .14em;
}
.req, .opt {
  display: inline-block;
  padding: .32em .6em .28em;
  font-size: .75rem;
  line-height: 1;
  letter-spacing: .14em;
  transition: var(--t-color);
}
.req { color: var(--key); border: 1px solid var(--key-line); }
.opt { color: var(--ink-mute); border: 1px solid var(--line); }
.field__input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: .5rem 0 .55rem;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: .05em;
  color: var(--ink);
  transition: var(--t-color), box-shadow .4s var(--ease);
}
.field__input::placeholder { color: var(--ink-mute); opacity: 1; }
.field__input:hover { border-bottom-color: var(--ink-mute); }
.field__input:focus { outline: none; border-bottom-color: var(--key); box-shadow: 0 1px 0 0 var(--key); }
.field__input[aria-invalid="true"] { border-bottom-color: var(--alert); box-shadow: 0 1px 0 0 var(--alert); }
.field__textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 2.1;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(2.1em - 1px), var(--line) calc(2.1em - 1px) 2.1em);
  background-attachment: local;
  background-position: 0 .5rem;
}
.field__error { font-size: .875rem; line-height: 1.6; letter-spacing: .06em; color: var(--alert); }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip__label {
  display: inline-block;
  padding: .5rem 1.15rem;
  border: 1px solid var(--line-strong);
  font-size: .9375rem;
  line-height: 1.5;
  letter-spacing: .08em;
  transition: var(--t-color);
}
.chip:hover .chip__label { border-color: var(--key); color: var(--key); }
.chip__input:checked + .chip__label { border-color: var(--key); background-color: var(--key); color: var(--on-key); }
.chip__input:focus-visible + .chip__label { outline: 2px solid var(--key); outline-offset: 3px; }

/* プライバシーポリシーへの同意（必須のチェックボックス）。ポリシーは入力を失わないよう新しいタブで開く */
.consent__label {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  justify-self: start;
  cursor: pointer;
  font-size: .9375rem;
  line-height: 1.8;
  letter-spacing: .08em;
}
.consent__input { position: absolute; top: 0; left: 0; width: 1.75rem; height: 1.75rem; margin: 0; opacity: 0; cursor: pointer; }
.consent__box {
  position: relative;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: .3em;
  border: 1px solid var(--line-strong);
  background-color: var(--paper);
  transition: var(--t-color);
}
.consent__box::after {
  content: "";
  position: absolute;
  left: 50%; top: 44%;
  width: .6rem;
  height: .3rem;
  border-left: 1.5px solid var(--on-key);
  border-bottom: 1.5px solid var(--on-key);
  transform: translate(-50%, -50%) rotate(-45deg) scale(0);
  transition: transform .25s var(--ease);
}
.consent__label:hover .consent__box { border-color: var(--key); }
.consent__input:checked + .consent__box { border-color: var(--key); background-color: var(--key); }
.consent__input:checked + .consent__box::after { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
.consent__input:focus-visible + .consent__box { outline: 2px solid var(--key); outline-offset: 3px; }
.consent__input[aria-invalid="true"] + .consent__box { border-color: var(--alert); box-shadow: 0 0 0 1px var(--alert); }
.consent__text a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--key-line);
  text-underline-offset: .32em;
}
.consent__text a:hover { color: var(--key); text-decoration-color: var(--key); }
.consent__text .icon-ext { display: inline-block; width: .85em; height: .85em; margin-inline: .12em .2em; vertical-align: -.02em; }
.consent__text a:hover .icon-ext { transform: translate(2px, -2px); }
.consent__text .req { margin-left: .7em; vertical-align: .12em; }
.consent .field__error { padding-left: calc(1.125rem + .8rem); }
.btn-key {
  appearance: none;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 17.5rem);
  padding: 1.15rem 2.5rem;
  border: 1px solid var(--key);
  border-radius: 0;
  background-color: var(--key);
  color: var(--on-key);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: .2em;
  transition: var(--t-color);
}
.btn-key:hover { border-color: var(--key-deep); background-color: var(--key-deep); }
.btn-key:disabled { opacity: .45; cursor: not-allowed; }

.form-done { display: grid; justify-items: center; gap: 1.25rem; padding: clamp(28px, 5vw, 64px) 0; text-align: center; }
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.form-done__message { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); font-weight: 500; line-height: 2.1; letter-spacing: .1em; }
.form-done__note { font-size: .8125rem; letter-spacing: .06em; color: var(--ink-mute); }
.btn-text {
  appearance: none;
  padding: .45rem .25rem;
  border: 0;
  border-bottom: 1px solid var(--key-line);
  background: none;
  font-size: .9375rem;
  letter-spacing: .14em;
  color: var(--key);
  transition: var(--t-color);
}
.btn-text:hover { border-bottom-color: var(--key); }

@media (max-width: 1023.98px) {
  .contact__inner { flex-direction: column; align-items: stretch; gap: clamp(40px, 8vw, 64px); }
  .contact__head { align-self: flex-end; }
  .contact__pillar { display: none; }
  .contact__body { max-width: 46rem; margin-top: 0; }
}
@media (max-width: 559.98px) {
  .contact__row { grid-template-columns: minmax(0, 1fr); }
  .contact__paper { margin-inline: calc(var(--gutter) * -1); }
  .btn-key { width: 100%; }
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; padding: clamp(40px, 6vw, 80px) var(--gutter) 132px; text-align: center; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 40rem; margin-inline: auto; }
.site-footer__pillar { height: clamp(72px, 9vw, 128px); margin-bottom: clamp(24px, 3vw, 40px); }
.site-footer__marks { display: flex; align-items: center; gap: 1.4rem; }
.site-footer__brand { color: var(--ink); }
.site-footer__logo { width: auto; height: 54px; color: inherit; }
.site-footer__name { display: flex; flex-direction: column; gap: .1rem; margin-top: .9rem; font-size: .9375rem; line-height: 1.8; letter-spacing: .22em; }
.site-footer__addr { font-size: .875rem; letter-spacing: .26em; color: var(--ink-mute); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.25rem; margin-top: .4rem; }
.site-footer__links a { font-size: 1.125rem; letter-spacing: .05em; }
.site-footer__links a:not(.link-ext) { padding-bottom: .1em; border-bottom: 1px solid var(--key-line); }
.site-footer__links a:hover { color: var(--key); border-bottom-color: var(--key); }
.site-footer__copy { margin-top: 1.75rem; font-size: 1rem; letter-spacing: .08em; color: var(--ink-mute); }
.site-footer__copy small { font-size: inherit; }

/* --------------------------------------------------------------------------
   15. Motion details / preferences / print
   -------------------------------------------------------------------------- */
.story__scroller.is-wheeling { scroll-snap-type: none; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .pillar,
  html.js .tanzaku__rule, html.js .tanzaku:first-child::after,
  html.js .flow__list.line-grow::before {
    opacity: 1 !important;
    transform: none !important;
    transition: var(--t-color) !important;
    animation: none !important;
  }
  .hero__img, .hero__title, .hero__lead, .site-nav.is-open .site-nav__list li,
  .chapter[open] .chapter__body, .lightbox[open] { animation: none !important; }
  .scroll-cue__line::after { animation: none; transform: none; opacity: .6; }
  .sketch__link, .chapter__zoom, .story__btn svg, .icon-ext { transition: var(--t-color) !important; }
  .sketch__link:hover, .chapter__zoom:hover { transform: none; }
}

@media print {
  .site-header__bar, .site-nav, .scroll-cue, .story__bar, .story__controls, .byobu-controls, .form, .lightbox { display: none !important; }
  html.js .reveal, html.js .pillar { opacity: 1 !important; transform: none !important; }
  main, .site-footer { padding-right: 0 !important; }
  .story__scroller { writing-mode: horizontal-tb; height: auto; overflow: visible; }
  .byobu { overflow: visible; }
  .byobu__list { flex-wrap: wrap; width: auto; }
}

/* --------------------------------------------------------------------------
   16. 和文の改行：短い文は文節単位で折り返し、泣き別れを防ぐ
   -------------------------------------------------------------------------- */
/* 文節で改行する。1行に入りきらない長い文節だけは、途中でも折り返して枠からはみ出さないようにする */
.tanzaku__text, .step__text, .sketch__caption, .consent__text, .field__error,
.form-done__message, .contact__lead, .works__lead, .service__lead, .lightbox__caption {
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
@supports not (word-break: auto-phrase) {
  .tanzaku__text, .step__text, .form-done__message { line-break: strict; }
}

/* 横組みの見出し・ラベルはプロポーショナル字詰め */
.career__title, .contact__row dt, .field__label, .form-done__message { font-feature-settings: "palt"; }
@media (max-width: 1023.98px) {
  .chapter__title, .step__title, .tanzaku__text { font-feature-settings: "palt"; }
}

/* ==========================================================================
   15. 複数ページ化にともなう部品
   ========================================================================== */

/* 内部リンクの矢印 */
.icon-arrow {
  flex: none;
  width: 28px;
  height: 8px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s var(--ease);
}
.btn-line:hover .icon-arrow, .page-next__link:hover .icon-arrow { transform: translateX(5px); }

/* トップ：お問い合わせへの導線 */
.contact__actions { display: grid; justify-items: start; gap: 1.25rem; }
.contact__or { font-size: .9375rem; line-height: 1.9; letter-spacing: .06em; color: var(--ink-mute); }
.contact__or a { padding-bottom: .1em; border-bottom: 1px solid var(--key-line); color: var(--ink); }
.contact__or a:hover { color: var(--key); border-bottom-color: var(--key); }

/* 次のページへ */
.page-next { padding: 0 var(--gutter) clamp(72px, 9vw, 140px); text-align: center; }
.page-next__inner { display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 40rem; margin-inline: auto; }
.page-next__label { font-family: var(--ff-en); font-style: italic; font-size: 1rem; letter-spacing: .14em; color: var(--key); }
.page-next__link {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: .55rem .2rem;
  border-bottom: 1px solid var(--key-line);
  font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem);
  line-height: 1.6;
  letter-spacing: .24em;
}
.page-next__link:hover { color: var(--key); border-bottom-color: var(--key); }

/* フッター：ページ一覧 */
.site-footer__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; margin-top: .5rem; }
.site-footer__nav a { font-size: .9375rem; letter-spacing: .16em; }
.site-footer__nav a:hover, .site-footer__nav a[aria-current] { color: var(--key); }
@media (max-width: 479.98px) {
  .site-footer__nav ul { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: .35rem 2.25rem; }
}

/* フォーム：送信の状態 */
.form__status { font-size: .9375rem; line-height: 1.9; letter-spacing: .04em; color: var(--alert); }
.form__status:empty { display: none; }
.form__noscript { font-size: .9375rem; line-height: 1.9; color: var(--alert); }
.form__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__submit[aria-busy="true"] { cursor: progress; }

/* プライバシーポリシー・404：法務文書は横組みで読ませる */
/* プライバシーポリシー：法務文書は横組みで読ませる */
.legal { padding-block: calc(var(--header-h) + clamp(56px, 8vw, 120px)) var(--space-section); padding-inline: var(--gutter); }
.legal__inner { max-width: 760px; margin-inline: auto; }
.legal__head { margin-bottom: clamp(32px, 5vw, 56px); }
.legal__label {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .14em;
  color: var(--key);
  transition: var(--t-color);
}
.legal__label::after { content: ""; display: inline-block; width: 2.75em; height: 1px; margin-inline-start: .9em; vertical-align: middle; background-color: currentColor; }
.legal__title { margin-top: .6rem; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); font-weight: 500; letter-spacing: .16em; line-height: 1.6; }
.legal__lead { margin-top: 1.5rem; font-size: 1rem; line-height: 2.1; }
.legal__date { margin-top: 2rem; font-size: .875rem; letter-spacing: .1em; color: var(--ink-mute); }
.legal section { margin-top: clamp(36px, 5vw, 56px); }
.legal h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.8;
  padding-inline-start: .9em;
  border-inline-start: 2px solid var(--key);
  transition: var(--t-color);
}
.legal p { margin-top: 1rem; line-height: 2.1; }
.legal ul { margin-top: 1rem; padding-inline-start: 1.4em; }
.legal li { line-height: 2.1; list-style: disc; }
.legal li + li { margin-top: .35rem; }
.legal dl { margin-top: 1rem; }
.legal dt { margin-top: 1rem; font-weight: 600; letter-spacing: .08em; }
.legal dd { line-height: 2.1; }
.legal__contact { margin-top: 1.25rem; padding: clamp(20px, 3vw, 32px); background-color: var(--paper); border: 1px solid var(--line); }
.legal__contact p { margin-top: .35rem; }
.legal__contact p:first-child { margin-top: 0; }
.legal__back { margin-top: clamp(48px, 6vw, 80px); }
.legal .notfound__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.25rem; margin-top: clamp(32px, 4vw, 48px); padding-inline-start: 0; }
.notfound__links li { list-style: none; }
.notfound__links li + li { margin-top: 0; }
.notfound__links .page-next__link { font-size: 1.125rem; letter-spacing: .16em; }
