/* ==========================================================================
   LOTUS Co.,Ltd.
   Type: Geist (Latin) / Noto Sans JP (Japanese) / Geist Mono (labels)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f4f6f7;
  --surface-2: #eceff2;
  --ink: #1a1f24;
  --ink-2: #3a434b;
  --muted: #6b7680;
  --line: rgba(26, 31, 36, .1);
  --line-strong: rgba(26, 31, 36, .28);
  --accent: #9a4cbf;
  --accent-deep: #7b3fa0;
  --accent-light: #c99be0;
  --accent-soft: rgba(154, 76, 191, .07);
  --grad: linear-gradient(100deg, #3865bb 0%, #9a4cbf 55%, #c145b6 100%);
  --grad-light: linear-gradient(100deg, #8aa6ea, #d48ad0);
  --dark: #161c21;
  --dark-line: rgba(255, 255, 255, .1);

  --f-sans: "Geist", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --f-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: 15px; font-weight: 400; line-height: 1.95; letter-spacing: .02em;
  font-feature-settings: "palt" 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* hidden だと position: sticky が効かないため clip */
}
.lang-en { line-height: 1.65; letter-spacing: -.003em; font-feature-settings: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
em { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--accent); color: #fff; padding: 8px 16px; }
.skip:focus { left: 16px; top: 16px; }
@media (max-width: 767px) { .hide-sp { display: none !important; } }
/* スマホのみ有効な改行 */
br.br-sp { display: none; }
@media (max-width: 767px) { br.br-sp { display: inline; } }

/* Gradient text */
.footer__big em, .principles__name, .stats__num small { -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Headlines: break Japanese at phrase boundaries */
.statement__text, .ai__title, .approach__catch, .quote blockquote, .principle__head, .svc__lead, .ai__conclusion, .profile__name {
  word-break: auto-phrase; text-wrap: balance;
}

.eyebrow {
  display: flex; width: max-content; max-width: 100%; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.eyebrow span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.eyebrow span::before { content: ""; width: 6px; height: 6px; background: var(--grad); }
.eyebrow span::after { content: "/"; color: var(--line-strong); margin-left: 2px; }

figcaption { display: flex; gap: 12px; margin-top: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .02em; color: var(--muted); line-height: 1.6; }
figcaption span { color: var(--ink); white-space: nowrap; }
figcaption { word-break: auto-phrase; }

/* ---------- Motion primitives ---------- */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; will-change: transform; }
.js .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .is-in .line > span, .js .line.is-in > span { transform: none; }
.js .line:nth-child(2) > span { transition-delay: .07s; }
.js .line:nth-child(3) > span { transition-delay: .14s; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

[data-split] .w { display: inline-block; white-space: nowrap; }
.js [data-split] .ch { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(8px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i) * 18ms); }
.js [data-split].is-in .ch { opacity: 1; transform: none; filter: none; }

.js .clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-io); }
.js .clip img { scale: 1.15; transition: scale 2.2s var(--ease); }
.js .clip.is-in { clip-path: inset(0 0 0 0); }
.js .clip.is-in img { scale: 1; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--dark); color: #fff;
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-io);
  animation: loader-failsafe 0s 5s forwards;
}
.js.no-loader .loader { display: none; }
.is-loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes loader-failsafe { to { visibility: hidden; } }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.loader__logo { width: clamp(180px, 22vw, 250px); height: auto; color: #fff; clip-path: inset(0 100% 0 0); animation: wipe 1.4s .15s var(--ease-io) forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.loader__text { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 12px; opacity: 0; animation: fade .8s .85s forwards; color: rgba(255, 255, 255, .6); }
.loader__text em { color: var(--accent-light); text-transform: none; }
@keyframes fade { to { opacity: 1; } }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header (floating bar) ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .82); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  transition: transform .7s var(--ease), opacity .8s, background-color .4s;
}
.js .header { opacity: 0; transform: translateY(-16px); }
.is-loaded .header { opacity: 1; transform: none; transition: opacity 1s .8s, transform 1s .8s var(--ease), background-color .4s; }

.brand { display: flex; align-items: center; color: var(--ink); transition: color .4s; }
.brand__logo { width: clamp(132px, 11vw, 160px); height: auto; display: block; }
.brand:hover { color: var(--accent); }

.gnav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.gnav ul { display: flex; gap: 2px; }
.gnav ul a { display: flex; align-items: center; padding: 6px 14px; font-size: 14px; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; transition: background .3s; }
.gnav ul a:hover { background: var(--surface); }
.gnav__cta {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate;
}
.gnav__cta::before { content: ""; position: absolute; inset: 0; background: var(--grad); z-index: -1; opacity: 0; transition: opacity .5s; }
.gnav__cta:hover::before { opacity: 1; }
.gnav__cta svg { transition: transform .5s var(--ease); }
.gnav__cta:hover svg { transform: translateY(-2px); }

.lang { display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--surface); font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.lang > span { display: none; }
.lang a { padding: 3px 9px; line-height: 1.6; transition: color .3s, background .3s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(26, 31, 36, .12); }
.lang--drawer, .lang--footer { display: inline-flex; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); margin-bottom: 16px; }
.lang--footer { margin-top: 20px; margin-bottom: 0; }
.lang--drawer a:hover, .lang--footer a:hover { color: #fff; }
.lang--drawer a[aria-current], .lang--footer a[aria-current] { background: #fff; color: var(--ink); }

.menu-btn { display: none; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 18px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; position: relative; z-index: 2; }
.menu-btn__lines { width: 18px; height: 8px; position: relative; }
.menu-btn__lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn__lines i:first-child { top: 0; }
.menu-btn__lines i:last-child { top: 6.5px; }
.is-menu-open .menu-btn { background: #fff; color: var(--ink); }
.is-menu-open .menu-btn__lines i:first-child { top: 3.25px; transform: rotate(45deg); }
.is-menu-open .menu-btn__lines i:last-child { top: 3.25px; transform: rotate(-45deg); }
.is-menu-open .header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--dark-line); transform: none; }
.is-menu-open .brand { color: #fff; }

.drawer { position: fixed; inset: 0; z-index: 90; background: var(--dark); color: #fff; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden; }
.is-menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer__inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--gutter) 32px; overflow-y: auto; }
.drawer__meta { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 12px; }
.drawer__list li { border-top: 1px solid var(--dark-line); overflow: hidden; }
.drawer__list a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; transform: translateY(100%); transition: transform .8s var(--ease); }
.is-menu-open .drawer__list a { transform: none; }
.drawer__list li:nth-child(2) a { transition-delay: .05s; } .drawer__list li:nth-child(3) a { transition-delay: .1s; }
.drawer__list li:nth-child(4) a { transition-delay: .15s; } .drawer__list li:nth-child(5) a { transition-delay: .2s; }
.drawer__list span { font-size: clamp(1.5rem, 6.4vw, 2rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.drawer__list em { font-size: 12px; color: rgba(255, 255, 255, .5); margin-left: auto; }
.drawer__foot { font-size: 12px; color: rgba(255, 255, 255, .6); line-height: 1.9; margin-top: 32px; }

@media (max-width: 1023px) {
  .gnav { display: none; }
  .menu-btn { display: inline-flex; }
  .header { height: 60px; }
}

/* ---------- Hero (full screen) ---------- */
.hero { position: relative; min-height: max(620px, 100svh); color: #fff; overflow: hidden; isolation: isolate; background: var(--dark); }
.hero__figure { position: absolute; inset: 0; z-index: -1; }
.hero__img { position: absolute; inset: 0; overflow: hidden; }
/* 芽を右寄りに配置し、左下の見出しと重ならないよう横に広げて表示 */
.hero__img img { width: 135%; max-width: none; height: 118%; object-fit: cover; object-position: 50% 62%; margin-top: -9%; }
.hero__img::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14, 18, 22, .88) 0%, rgba(14, 18, 22, .6) 45%, rgba(14, 18, 22, .5) 75%, rgba(14, 18, 22, .62) 100%),
    linear-gradient(to right, rgba(14, 18, 22, .35), rgba(14, 18, 22, 0) 65%); }
.js .hero__img img { scale: 1.12; transition: scale 2.8s .2s var(--ease); }
.is-loaded .hero__img img { scale: 1; }
.js .hero__img { opacity: 0; transition: opacity 1.4s .1s; }
.is-loaded .hero__img { opacity: 1; }
.hero__figure figcaption { display: none; }

.hero__inner { position: relative; min-height: max(620px, 100svh); max-width: var(--max); margin: 0 auto; padding: 84px var(--gutter) 0; display: flex; flex-direction: column; }
.hero__masthead {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
.hero__masthead p:last-child { text-align: right; }
.hero .hero__masthead { grid-template-columns: 1fr 1fr; }
.hero__masthead span { color: #fff; margin: 0 4px; }
.js .hero__masthead { opacity: 0; transition: opacity 1.2s .6s; }
.is-loaded .hero__masthead { opacity: 1; }

.hero__body {
  flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; grid-template-rows: 1fr auto auto;
  padding-bottom: clamp(48px, 8vh, 96px);
}
.hero__title {
  grid-column: 1 / 11; grid-row: 2;
  font-weight: 500; font-size: clamp(3.2rem, 9vw, 10.4rem); line-height: .9; letter-spacing: -.058em;
}
.hero__title em { font-weight: 300; }
.hero__title .line:nth-child(2) { padding-left: 8.5%; }
.js .hero__title .line > span { transition-duration: 1.5s; }
.is-loaded .hero__title .line:nth-child(1) > span { transition-delay: .35s; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .45s; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .55s; }
.is-loaded .hero__title .line > span { transform: none; }

.hero__tate {
  grid-column: 12 / 13; grid-row: 1; justify-self: end; align-self: start; margin-top: clamp(32px, 6vh, 64px);
  writing-mode: vertical-rl; font-family: var(--f-jp); font-size: 13px; font-weight: 500; letter-spacing: .38em; line-height: 2.2; color: #fff;
}
.lang-en .hero__tate { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.js .hero__tate { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s 1.1s var(--ease-io); }
.is-loaded .hero__tate { clip-path: inset(0 0 0 0); }

.hero__lead { grid-column: 8 / 13; grid-row: 3; margin-top: clamp(28px, 5vh, 56px); font-size: 14px; line-height: 2; color: #fff; }
.lang-en .hero__lead { font-size: 15px; line-height: 1.65; }
.hero__lead .eyebrow { color: #fff; }
.hero__lead .eyebrow span { color: #fff; }
.hero__lead .eyebrow span::after { color: #fff; }
.js .hero__lead { opacity: 0; transform: translateY(20px); transition: opacity 1.2s 1s, transform 1.2s 1s var(--ease); }
.is-loaded .hero__lead { opacity: 1; transform: none; }

.hero__scroll { position: absolute; left: 50%; bottom: 0; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.hero__scroll i { display: block; width: 1px; height: 48px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: #fff; animation: scrollline 2.4s var(--ease-io) infinite; }
@keyframes scrollline { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* header over hero */
.page-home .header:not(.is-scrolled) { background: transparent; border-color: rgba(255, 255, 255, .18); backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-home .header:not(.is-scrolled) .brand,
.page-home .header:not(.is-scrolled) .gnav ul a { color: #fff; }
.page-home .header:not(.is-scrolled) .gnav ul a:hover { background: rgba(255, 255, 255, .1); }
.page-home .header:not(.is-scrolled) .lang { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); }
.page-home .header:not(.is-scrolled) .gnav__cta, .page-home .header:not(.is-scrolled) .menu-btn { background: #fff; color: var(--ink); }
.header { transition: transform .7s var(--ease), opacity .8s, background-color .4s, border-color .4s; }

@media (max-width: 1023px) {
  .hero__title { grid-column: 1 / -1; font-size: clamp(2.9rem, 12.4vw, 7.6rem); }
  .hero__lead { grid-column: 1 / -1; }
  .hero__scroll { display: none; }
}
@media (max-width: 599px) {
  .hero__inner { padding-top: 72px; }
  .hero__masthead { grid-template-columns: 1fr 1fr; font-size: 10px; }
  .hero__lead { font-size: 13px; line-height: 1.85; }
  /* スマホでは芽が見出しの上に来るよう画像を上へずらす */
  .hero__img img { width: 100%; height: 140%; margin-top: 0; position: relative; top: -36%; object-position: 50% 50%; }
  .hero__img::after { background: linear-gradient(to top, rgba(14, 18, 22, .92) 0%, rgba(14, 18, 22, .7) 50%, rgba(14, 18, 22, .58) 80%, rgba(14, 18, 22, .68) 100%); }
}

/* ---------- Statement ---------- */
.statement { position: relative; isolation: isolate; overflow: hidden; padding: clamp(110px, 18vh, 220px) 0 clamp(90px, 14vh, 180px); }
/* 右上を起点に置き、左下に向かって白へ溶かす背景 */
.statement__bg { position: absolute; top: 0; right: 0; z-index: -1; width: min(78%, 1280px); pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0, #000 30%, rgba(0, 0, 0, .5) 58%, transparent 92%);
          mask-image: radial-gradient(ellipse 100% 100% at 100% 0, #000 30%, rgba(0, 0, 0, .5) 58%, transparent 92%); }
.statement__bg img { width: 100%; height: auto; }
@media (max-width: 767px) { .statement__bg { width: 150%; } }
.statement__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.statement__text {
  grid-column: 1 / 8; font-family: var(--f-jp); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.9rem); line-height: 1.6; letter-spacing: .01em;
}
.lang-en .statement__text { font-family: var(--f-sans); font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.04em; }
@media (max-width: 1023px) {
  .statement__text { grid-column: 1 / -1; }
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(72px, 12vh, 140px); }
.stats li { background: var(--surface); padding: clamp(24px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(200px, 22vw, 280px); }
.stats li:nth-child(2) { transition-delay: .08s; } .stats li:nth-child(3) { transition-delay: .16s; }
.stats__num { font-weight: 300; font-size: clamp(4rem, 7.4vw, 7rem); line-height: .9; letter-spacing: -.06em; display: flex; align-items: flex-start; gap: 6px; font-variant-numeric: tabular-nums; }
.stats__num small { font-size: 14px; font-weight: 500; letter-spacing: 0; margin-top: .5em; background-image: var(--grad); }
.stats__label { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 24px; }
@media (max-width: 767px) { .stats { grid-template-columns: 1fr; } .stats li { min-height: 0; gap: 24px; } }

/* ---------- Section heads ---------- */
.section { padding: clamp(100px, 15vh, 190px) 0; position: relative; }
.sec-head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end;
  padding-top: 20px; margin-bottom: clamp(56px, 9vh, 110px); position: relative;
}
.sec-head::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
.js .sec-head::before { transform: scaleX(0); transition: transform 1.5s var(--ease-io); }
.js .sec-head.is-in::before { transform: scaleX(1); }
.sec-head__no { grid-column: 1 / 2; align-self: start; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.sec-head__title { grid-column: 2 / 9; font-weight: 500; font-size: clamp(3.2rem, 8.6vw, 8.6rem); line-height: .92; letter-spacing: -.06em; margin-top: 14px; }
.sec-head__title em { font-weight: 300; color: var(--accent); }
.sec-head__ja {
  grid-column: 9 / 13; align-self: start; justify-self: end;
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; letter-spacing: .04em; line-height: 1.5;
}
.sec-head__ja::before { content: ""; width: 6px; height: 6px; background: var(--grad); }
.sec-head__desc { grid-column: 9 / 13; margin-top: 24px; font-size: 14px; color: var(--ink-2); line-height: 1.95; }
.sec-head__desc--wide { grid-column: 7 / 13; }
.lang-en .sec-head__desc { line-height: 1.6; }
.sec-head--light::before { background: var(--dark-line); }
.sec-head--light .sec-head__no { color: rgba(255, 255, 255, .45); }
.sec-head--light .sec-head__title em { color: var(--accent-light); }
.sec-head--light .sec-head__ja { border-color: var(--dark-line); }
.sec-head--light .sec-head__desc { color: rgba(255, 255, 255, .65); }
@media (max-width: 767px) {
  .sec-head__no { grid-column: 1 / 7; }
  .sec-head__ja { grid-column: 7 / 13; grid-row: 1; }
  .sec-head__title { grid-column: 1 / -1; margin-top: 28px; }
  .sec-head__desc { grid-column: 1 / -1; }
}

/* ---------- Services ---------- */
.services { isolation: isolate; overflow: hidden; }
/* 左上を起点に置き、右下に向かって白へ溶かす背景（薄く加工） */
.services__bg { position: absolute; top: 0; left: 0; z-index: -1; width: min(52%, 760px); pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0 0, #000 25%, rgba(0, 0, 0, .45) 55%, transparent 92%);
          mask-image: radial-gradient(ellipse 100% 100% at 0 0, #000 25%, rgba(0, 0, 0, .45) 55%, transparent 92%); }
.services__bg img { width: 100%; height: auto; opacity: .34; filter: saturate(.65) brightness(1.05); }
@media (max-width: 767px) { .services__bg { width: 110%; } }
.svc__item {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: clamp(32px, 5vh, 56px) 0; border-top: 1px solid var(--line); isolation: isolate;
}
.svc__item:last-child { border-bottom: 1px solid var(--line); }
.svc__item::before { content: ""; position: absolute; inset: 8px -24px; background: var(--surface); z-index: -1; opacity: 0; transform: scale(.985); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.svc__item:hover::before { opacity: 1; transform: none; }
.svc__item:nth-child(2) { transition-delay: .06s; } .svc__item:nth-child(3) { transition-delay: .12s; }
.svc__no { grid-column: 1 / 2; font-family: var(--f-mono); font-size: 12px; color: var(--accent); line-height: 2.4; }
.svc__title { grid-column: 2 / 7; }
.svc__title h3 { font-weight: 500; font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1; letter-spacing: -.05em; transition: transform .7s var(--ease); }
.svc__item:hover .svc__title h3 { transform: translateX(10px); }
.svc__title p { font-size: 13px; font-weight: 500; letter-spacing: .06em; margin-top: 14px; color: var(--muted); }
.svc__body { grid-column: 7 / 12; font-size: 14px; color: var(--ink-2); }
.lang-en .svc__body { font-size: 15px; }
.svc__lead { font-family: var(--f-jp); font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.7; margin-bottom: 10px; letter-spacing: .01em; }
.lang-en .svc__lead { font-family: var(--f-sans); font-size: 20px; line-height: 1.3; letter-spacing: -.025em; font-weight: 500; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.svc__tags li { font-size: 12px; font-weight: 500; line-height: 1; padding: 8px 12px; background: var(--surface); color: var(--ink-2); letter-spacing: .01em; transition: background .4s; }
.svc__item:hover .svc__tags li { background: #fff; }
.svc__arrow { grid-column: 12 / 13; justify-self: end; width: 48px; height: 48px; background: var(--surface); display: grid; place-items: center; transition: background .5s var(--ease), color .5s var(--ease), transform .7s var(--ease); }
.svc__arrow svg { width: 24px; height: 24px; }
.svc__item:hover .svc__arrow { background: var(--ink); color: #fff; transform: rotate(45deg); }
@media (max-width: 767px) {
  .svc__no { grid-column: 1 / 3; }
  .svc__title { grid-column: 3 / 13; }
  .svc__body { grid-column: 1 / -1; margin-top: 24px; }
  .svc__arrow { display: none; }
  .svc__item::before { inset: 8px -12px; }
}

/* ---------- AI × Creative ---------- */
.ai { background: var(--dark); color: #fff; overflow: hidden; }
.ai__intro { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; min-height: clamp(420px, 44vw, 660px); margin-bottom: clamp(48px, 8vh, 100px); isolation: isolate; }
.ai__title { grid-column: 1 / 9; grid-row: 1; position: relative; z-index: 2; font-family: var(--f-jp); font-weight: 500; font-size: clamp(2.1rem, 4.8vw, 4.6rem); line-height: 1.35; letter-spacing: .01em; white-space: nowrap; text-shadow: 0 2px 40px rgba(22, 28, 33, .8); }
.lang-en .ai__title { font-family: var(--f-sans); font-size: clamp(2.6rem, 5.4vw, 5.6rem); line-height: 1; letter-spacing: -.055em; }

/* 背景ビジュアル：キャッチコピーの右側に大きく置き、周囲をマスクで背景色へ溶かす */
.ai__visual { grid-column: 5 / -1; grid-row: 1; position: relative; z-index: 1; margin: 0 calc(var(--gutter) * -1) 0 0; aspect-ratio: 3 / 2; }
.ai__visual-img {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 60% 50%, #000 30%, rgba(0, 0, 0, .55) 52%, transparent 76%);
          mask-image: radial-gradient(ellipse 60% 70% at 60% 50%, #000 30%, rgba(0, 0, 0, .55) 52%, transparent 76%);
}
.ai__visual-img img { width: 100%; height: 112%; margin-top: -6%; object-fit: cover; object-position: 55% 50%; filter: grayscale(.2) brightness(.85) contrast(1.06); }
.ai__visual-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 65% 40%, rgba(154, 76, 191, .22), transparent 70%); mix-blend-mode: screen; pointer-events: none; }
.ai__visual figcaption { position: absolute; right: var(--gutter); bottom: 4%; margin: 0; color: rgba(255, 255, 255, .5); }
.ai__visual figcaption span { color: #fff; }
.js .ai__visual.reveal { transform: scale(1.04); transition: opacity 1.8s var(--ease), transform 2.4s var(--ease); }
.js .ai__visual.reveal.is-in { transform: none; }

@media (max-width: 1023px) {
  .ai__intro { min-height: 0; align-items: end; }
  .ai__visual { grid-column: 1 / -1; margin: 0 calc(var(--gutter) * -1); aspect-ratio: 4 / 3.4; }
  .ai__visual-img {
    -webkit-mask-image: radial-gradient(ellipse 72% 62% at 58% 42%, #000 30%, rgba(0, 0, 0, .5) 55%, transparent 80%);
            mask-image: radial-gradient(ellipse 72% 62% at 58% 42%, #000 30%, rgba(0, 0, 0, .5) 55%, transparent 80%);
  }
  .ai__visual-img img { filter: grayscale(.2) brightness(.72) contrast(1.06); }
  .ai__title { grid-column: 1 / -1; white-space: normal; align-self: end; margin-bottom: 4%; }
  .ai__visual figcaption { top: 4%; bottom: auto; }
}

.ai__cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.ai__col { background: rgba(255, 255, 255, .04); border: 1px solid var(--dark-line); padding: clamp(24px, 2.6vw, 36px); font-size: 14px; line-height: 1.95; color: rgba(255, 255, 255, .75); }
.lang-en .ai__col { line-height: 1.65; font-size: 15px; }
.ai__col:nth-child(3) { transition-delay: .12s; }
.ai__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ai__label span { width: 32px; height: 32px; background: var(--grad); display: grid; place-items: center; font-family: var(--f-sans); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.ai__plus { align-self: center; font-weight: 300; font-size: 2.4rem; line-height: 1; color: var(--accent-light); transition-delay: .06s; }
.ai__conclusion { margin-top: 56px; font-family: var(--f-jp); font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.9; }
.lang-en .ai__conclusion { font-family: var(--f-sans); font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.4; letter-spacing: -.02em; }
.ai__conclusion em { background: var(--grad-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai__note { display: flex; gap: 14px; align-items: center; justify-content: flex-end; font-size: 13px; color: rgba(255, 255, 255, .65); }
.ai__note span { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; padding: 3px 10px; background: rgba(255, 255, 255, .08); color: var(--accent-light); }
@media (max-width: 767px) {
  .ai__cols { grid-template-columns: 1fr; }
  .ai__plus { justify-self: center; }
  .ai__note { justify-content: flex-start; flex-wrap: wrap; }
}

.marquee { margin: clamp(80px, 13vh, 150px) 0 clamp(40px, 6vh, 64px); border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); padding: 18px 0; }
.marquee__row { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); padding-right: clamp(18px, 2.6vw, 40px); will-change: transform; }
.marquee__track span { font-family: var(--f-jp); font-weight: 500; font-size: clamp(2.2rem, 5.4vw, 5rem); line-height: 1.4; letter-spacing: -.01em; }
.lang-en .marquee__track span { font-family: var(--f-sans); letter-spacing: -.05em; }
.marquee__track i { font-style: normal; font-size: clamp(1rem, 2vw, 1.6rem); background: var(--grad-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee__row--alt .marquee__track span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }
html:not(.js) .marquee__track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Approach ---------- */
.approach__intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-bottom: clamp(80px, 13vh, 160px); }
.approach__catch { grid-column: 1 / 7; font-family: var(--f-jp); font-weight: 500; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.4; letter-spacing: .01em; }
.lang-en .approach__catch { font-family: var(--f-sans); font-size: clamp(2.4rem, 4.8vw, 4.6rem); line-height: 1; letter-spacing: -.055em; }
.approach__text { grid-column: 7 / 12; font-size: 14px; color: var(--ink-2); line-height: 2.05; padding-top: 10px; }
.lang-en .approach__text { font-size: 15px; line-height: 1.65; }
.approach__text p + p { margin-top: 1.3em; }
@media (max-width: 767px) {
  .approach__catch, .approach__text { grid-column: 1 / -1; }
  .approach__text { margin-top: 32px; }
}
.approach__figure { margin: 0 auto clamp(100px, 15vh, 190px); max-width: var(--max); padding: 0 var(--gutter); }
.approach__img { height: clamp(300px, 70vh, 760px); overflow: hidden; background: var(--surface); }
.approach__img img { width: 100%; height: 112%; object-fit: cover; object-position: 50% 50%; margin-top: -6%; }
@media (max-width: 767px) { .approach__img { height: auto; aspect-ratio: 4 / 3; } }

.principles { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.principles__aside { grid-column: 1 / 5; }
.principles__sticky { position: sticky; top: 24vh; }
.principles__count { font-weight: 300; font-size: clamp(6rem, 12vw, 11rem); line-height: .82; letter-spacing: -.07em; display: flex; align-items: flex-start; gap: 10px; font-variant-numeric: tabular-nums; }
.principles__count span { display: inline-block; transition: opacity .4s, transform .6s var(--ease); }
.principles__count span.is-swap { opacity: 0; transform: translateY(16px); }
.principles__count small { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0; color: var(--muted); margin-top: 1em; }
.principles__name { font-size: 28px; font-weight: 500; letter-spacing: -.04em; margin-top: 18px; background-image: var(--grad); transition: opacity .4s; display: inline-block; }
.principles__name.is-swap { opacity: 0; }
.principles__bar { width: 200px; height: 2px; background: var(--surface-2); margin-top: 24px; overflow: hidden; }
.principles__bar span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(.1667); transition: transform .8s var(--ease); }
.principles__list { grid-column: 5 / 12; }
.principle { padding: clamp(44px, 8vh, 88px) 0; border-top: 1px solid var(--line); transition: opacity .6s var(--ease); }
.principle:first-child { border-top: 0; padding-top: 0; }
.js .principle { opacity: .25; }
.js .principle.is-active { opacity: 1; }
.principle__label { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.principle__label span { color: var(--accent); }
.principle__label em { font-family: var(--f-sans); text-transform: none; font-size: 12px; font-weight: 500; color: var(--ink); padding: 3px 10px; background: var(--surface); }
.principle__head { font-family: var(--f-jp); font-weight: 600; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.55; letter-spacing: .01em; margin-bottom: 20px; }
.lang-en .principle__head { font-family: var(--f-sans); font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -.045em; }
.principle__text { font-size: 14px; color: var(--ink-2); line-height: 2.05; max-width: 40em; }
.lang-en .principle__text { font-size: 15px; line-height: 1.65; }
@media (max-width: 1023px) {
  .principles__aside { display: none; }
  .principles__list { grid-column: 1 / -1; }
  .js .principle { opacity: 1; }
}

/* ---------- Quote ---------- */
.quote { padding: clamp(140px, 26vh, 300px) 0; text-align: center; background: var(--dark); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.quote__bg { position: absolute; inset: 0; z-index: -1; }
.quote__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(14, 18, 22, .62), rgba(14, 18, 22, .22) 75%), linear-gradient(rgba(14, 18, 22, .35), transparent 25%, transparent 75%, rgba(14, 18, 22, .45)); }
.quote__bg img { width: 100%; height: 120%; object-fit: cover; object-position: 55% 50%; margin-top: -10%; }
.quote blockquote { margin: 0; font-family: var(--f-jp); font-weight: 500; font-size: clamp(1.4rem, 3.2vw, 2.8rem); line-height: 1.7; letter-spacing: .02em; }
.lang-en .quote blockquote { font-family: var(--f-sans); font-size: clamp(1.9rem, 4.2vw, 3.8rem); line-height: 1.08; letter-spacing: -.05em; }

/* ---------- Profile ---------- */
.profile__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.profile__figure { grid-column: 1 / 6; align-self: start; position: sticky; top: 110px; }
.profile__img { aspect-ratio: 1254 / 1254; overflow: hidden; background: var(--surface); }
.profile__img img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.profile__body { grid-column: 7 / 13; }
.profile__role { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.profile__name { font-family: var(--f-jp); font-weight: 500; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.3; letter-spacing: .04em; margin: 18px 0 6px; transition-delay: .06s; }
.profile__name span { display: block; font-family: var(--f-sans); font-weight: 400; font-size: .48em; letter-spacing: -.01em; color: var(--accent); margin-top: 10px; }
.lang-en .profile__name { font-family: var(--f-sans); letter-spacing: -.055em; line-height: 1; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.lang-en .profile__name span { font-family: var(--f-jp); letter-spacing: .1em; margin-top: 16px; }
.profile__title { font-size: 13px; color: var(--muted); padding-bottom: 28px; border-bottom: 1px solid var(--line); transition-delay: .12s; }
.profile__bio { font-size: 14.5px; line-height: 2.1; margin: 30px 0 0; color: var(--ink-2); }
.lang-en .profile__bio { font-size: 15.5px; line-height: 1.7; }
@media (max-width: 767px) {
  .profile__figure { grid-column: 1 / -1; position: static; width: 64%; max-width: 280px; margin: 0 auto 40px; }
  .profile__figure figcaption { width: max-content; position: relative; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .profile__body { grid-column: 1 / -1; }
}

/* ---------- Company ---------- */
.company { isolation: isolate; overflow: hidden; }
/* 上端を起点に全幅で置き、下に向かって白へ溶かす背景 */
.company__bg { position: absolute; top: 0; left: 0; right: 0; z-index: -1; height: clamp(300px, 34vw, 520px); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .75) 35%, rgba(0, 0, 0, .25) 65%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .75) 35%, rgba(0, 0, 0, .25) 65%, transparent 100%); }
.company__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .2; filter: saturate(.7); }
.company__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.company__table { grid-column: 1 / 8; border-bottom: 1px solid var(--line); }
.company__table > div { display: grid; grid-template-columns: 10em 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.company__table dt { font-size: 13px; font-weight: 500; color: var(--muted); padding-top: 1px; }
.company__table dd { font-size: 14.5px; line-height: 1.85; }
.company__map { grid-column: 9 / 13; align-self: start; position: sticky; top: 110px; }
.company__map-frame { aspect-ratio: 351 / 348; overflow: hidden; }
.company__map-frame img { width: 100%; height: 100%; object-fit: contain; }
.company__map-cap { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.company__map-cap span { color: var(--ink); }
.company__map-cap a { margin-left: auto; color: var(--accent); }
.company__map-cap a:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 1023px) {
  .company__table { grid-column: 1 / -1; }
  .company__map { grid-column: 1 / -1; position: static; margin-top: 48px; }
  .company__map-frame { max-width: 480px; }
}
@media (max-width: 599px) { .company__table > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fff; padding: clamp(100px, 17vh, 190px) var(--gutter) 28px; position: relative; margin-top: clamp(40px, 6vh, 80px); }
.footer > * { max-width: calc(var(--max) - var(--gutter) * 2); margin-left: auto; margin-right: auto; }
.footer .eyebrow { color: rgba(255, 255, 255, .45); }
.footer .eyebrow span { color: #fff; }
.footer .eyebrow span::after { color: rgba(255, 255, 255, .25); }
.footer__big { display: inline-block; font-weight: 500; font-size: clamp(2.6rem, 8vw, 8.4rem); line-height: .95; letter-spacing: -.06em; position: relative; }
.footer__big em { font-weight: 300; background-image: var(--grad-light); padding-right: .04em; }
.footer__big .line:nth-child(2) { padding-left: 1.2em; }
.footer__big .line > span { white-space: nowrap; }
.footer__big::after { content: "↗"; position: absolute; right: -1em; top: .05em; font-size: .42em; font-weight: 300; letter-spacing: 0; width: 1.6em; height: 1.6em; background: rgba(255, 255, 255, .08); display: grid; place-items: center; transition: transform .7s var(--ease), background .5s; }
.footer__big:hover::after { transform: rotate(45deg); background: var(--accent); }
.footer__note { margin-top: 44px; font-size: 13.5px; line-height: 2; color: rgba(255, 255, 255, .65); }
.lang-en .footer__note { line-height: 1.65; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 4fr 3fr 2fr 2fr; gap: 32px; margin-top: clamp(90px, 15vh, 170px); padding-top: 36px; border-top: 1px solid var(--dark-line); font-size: 13px; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer__logo { width: 140px; height: auto; color: #fff; }
.footer__logo-en { width: 140px; height: auto; color: rgba(255, 255, 255, .5); }
.footer__info dt { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.footer__info dd { margin-bottom: 16px; line-height: 1.8; }
.footer__links li { line-height: 2.2; }
.footer__links a { color: rgba(255, 255, 255, .85); transition: color .3s; }
.footer__links a:hover { color: var(--accent-light); }
.footer__links--sub { font-size: 12px; }
.footer__links--sub a { color: rgba(255, 255, 255, .6); }
.footer__bottom { display: flex; align-items: center; gap: 24px; margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--dark-line); }
.footer__motto { margin-right: auto; color: rgba(255, 255, 255, .8); }
.footer__motto-svg { display: block; width: clamp(210px, 22vw, 280px); height: auto; }
.footer__copy, .footer__top { font-family: var(--f-mono); font-size: 11px; color: rgba(255, 255, 255, .5); }
.footer__top { padding: 6px 12px; background: rgba(255, 255, 255, .06); transition: background .3s, color .3s; }
.footer__top:hover { background: #fff; color: var(--ink); }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-wrap: wrap; }
  .footer__motto { width: 100%; }
  .footer__big::after { display: none; }
  .footer__big { font-size: clamp(2rem, 10.4vw, 3rem); }
  .footer__big .line:nth-child(2) { padding-left: 0; }
}

/* ==========================================================================
   Sub pages
   ========================================================================== */
.page-hero { padding: 100px var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
.page-hero .hero__masthead { opacity: 1; }
.page-hero__body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: clamp(48px, 10vh, 120px) 0 clamp(48px, 8vh, 96px); align-items: end; border-bottom: 1px solid var(--line); }
.page-hero__title { grid-column: 1 / 9; font-weight: 500; font-size: clamp(3.4rem, 10.6vw, 10.6rem); line-height: .9; letter-spacing: -.065em; }
.page-hero__title em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero__ja { grid-column: 9 / 13; justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; }
.page-hero__ja::before { content: ""; width: 6px; height: 6px; background: var(--grad); }
.page-hero__lead { grid-column: 1 / 8; margin-top: 36px; font-size: 14px; color: var(--ink-2); line-height: 2; }
.lang-en .page-hero__lead { font-size: 15.5px; line-height: 1.65; }
.page-hero .line > span { transition-delay: .2s; }
@media (max-width: 767px) {
  .page-hero { padding-top: 84px; }
  .page-hero__title, .page-hero__lead { grid-column: 1 / -1; }
  .page-hero__ja { grid-column: 1 / -1; justify-self: start; margin-top: 20px; }
}


/* Form */
.contact { padding: clamp(56px, 9vh, 110px) 0 clamp(100px, 15vh, 190px); }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.contact__aside { grid-column: 1 / 4; font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.contact__aside dl { position: sticky; top: 110px; background: var(--surface); padding: 24px; }
.contact__aside dt { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: var(--muted); }
.contact__aside dd { margin-bottom: 20px; }
.contact__aside dd:last-child { margin-bottom: 0; }
.contact__main { grid-column: 5 / 13; }
@media (max-width: 1023px) {
  .contact__aside { display: none; }
  .contact__main { grid-column: 1 / -1; }
}

.form-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.form-row:last-of-type { border-bottom: 1px solid var(--line); }
.form-row[hidden] { display: none; }
.form-label { font-weight: 600; font-size: 15px; line-height: 1.5; padding-top: 10px; }
.lang-en .form-label { letter-spacing: -.015em; }
.form-label small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 10.5px; color: var(--muted); margin-bottom: 4px; }
.form-label b { display: inline-block; font-family: var(--f-mono); font-weight: 400; font-size: 10px; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; margin-left: 8px; vertical-align: 2px; line-height: 1.7; }
.form-fields { display: grid; gap: 14px; }
.form-fields--2 { grid-template-columns: 1fr 1fr; }
.field { display: block; position: relative; }
.field__name { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); letter-spacing: .01em;
  background: var(--surface); border: 1px solid transparent; padding: 13px 16px; outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s; -webkit-appearance: none; appearance: none;
}
.field input:hover, .field select:hover, .field textarea:hover { background-color: var(--surface-2); }
.field input:focus, .field select:focus, .field textarea:focus { background-color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%231a1f24'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 180px; resize: vertical; line-height: 1.8; }
.field input::placeholder, .field textarea::placeholder { color: #9aa3ab; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
/* ご用件の3択は常に横並び（画面幅が狭くても折り返さない） */
#mailformpro .choices { flex-wrap: nowrap; }
#mailformpro .choice { flex: 1 1 0; min-width: 0; }
#mailformpro .choice span { width: 100%; justify-content: center; padding: 11px 12px; white-space: nowrap; }
@media (max-width: 400px) { #mailformpro .choices { gap: 6px; } #mailformpro .choice span { gap: 6px; padding: 11px 6px; font-size: 13px; } }
.choice span { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 14px; background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .3s, color .3s; }
.choice span::before { content: ""; flex: none; box-sizing: border-box; min-width: 14px; min-height: 14px; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); transition: border .3s, background .3s; }
.choice span:hover { background: var(--surface-2); }
.choice input:checked ~ span { background: var(--ink); color: #fff; }
.choice input:checked ~ span::before { border: 4px solid #fff; background: var(--accent); }
.choice input:focus-visible ~ span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--line-strong); margin: 0; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .3s, border-color .3s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 767px) {
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .form-label { padding-top: 0; }
}

.form-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 48px; flex-wrap: wrap; }
.form-actions--split { justify-content: space-between; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 8px 0 26px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: -.005em;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn > span:first-child { font-family: var(--f-mono); font-size: 11px; font-weight: 400; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--grad); z-index: -1; opacity: 0; transition: opacity .5s; }
.btn:hover::before { opacity: 1; }
.btn i { font-style: normal; width: 40px; height: 40px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; transition: transform .5s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn:disabled::before { display: none; }
.btn--ghost { background: var(--surface); color: var(--ink); padding: 0 26px 0 8px; }
.btn--ghost > span:first-child { font-family: var(--f-sans); font-size: 14px; font-weight: 500; text-transform: none; color: var(--ink); }
.btn--ghost::before { background: var(--surface-2); }
.btn--ghost i { order: -1; background: #fff; }
.btn--ghost:hover i { transform: translateX(-3px); }



/* Legal */
.legal { padding: clamp(56px, 9vh, 110px) 0 clamp(100px, 15vh, 190px); }
.legal__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.legal__toc { grid-column: 1 / 4; }
.legal__toc ol { position: sticky; top: 110px; counter-reset: toc; font-size: 13px; line-height: 1.6; display: grid; gap: 2px; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: flex; gap: 10px; padding: 8px 12px; transition: background .3s, color .3s; }
.legal__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); padding-top: 2px; }
.legal__toc a:hover { background: var(--surface); color: var(--accent); }
.legal__body { grid-column: 5 / 12; font-size: 14.5px; line-height: 2.05; counter-reset: sec; }
.lang-en .legal__body { font-size: 15.5px; line-height: 1.7; }
.legal__body > p:first-child { font-family: var(--f-jp); font-weight: 500; font-size: 17px; line-height: 1.9; margin-bottom: 48px; }
.lang-en .legal__body > p:first-child { font-family: var(--f-sans); font-size: 21px; line-height: 1.45; letter-spacing: -.02em; }
.legal__body section { padding: 36px 0; border-top: 1px solid var(--line); counter-increment: sec; }
.legal__body h2 { font-weight: 600; font-size: 18px; letter-spacing: .01em; margin-bottom: 14px; display: flex; gap: 14px; align-items: baseline; }
.lang-en .legal__body h2 { font-weight: 500; font-size: 22px; letter-spacing: -.03em; }
.legal__body h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--accent); }
.legal__body ol, .legal__body ul { padding-left: 1.4em; margin-top: 10px; }
.legal__body ol { list-style: decimal; }
.legal__body ul { list-style: disc; }
.legal__body li { padding-left: .3em; margin-bottom: 4px; }
.legal__body li::marker { color: var(--muted); }
.legal__sign { margin-top: 36px; padding: 28px; background: var(--surface); font-size: 13.5px; }
.legal__sign p + p { margin-top: 8px; }
@media (max-width: 1023px) {
  .legal__toc { display: none; }
  .legal__body { grid-column: 1 / -1; }
}

/* ---------- Mail Form Pro（確認画面・エラー・送信中） ---------- */
#mfp_hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: 0; clip-path: inset(50%); }
div.mfp_err { clear: both; margin-top: 8px; color: #c0392b; font-size: 12.5px; line-height: 1.6; text-align: left; }
div.mfp_err:empty, #mfp_error:empty, #mfp_warning:empty { display: none !important; }
#mfp_error, #mfp_warning { margin-top: 24px; padding: 14px 18px; background: #fdf0ee; color: #a5281b; font-size: 13.5px; text-align: left; }
.field input.problem, .field select.problem, .field textarea.problem { background-color: #fdf0ee; border-color: #c0392b; }
form#mailformpro label.mfp_checked, form#mailformpro label.mfp_not_checked { cursor: pointer; }

#mfp_phase_confirm { clear: both; }
#mfp_phase_confirm h4 { margin: 0 0 28px; font-weight: 600; font-size: 20px; letter-spacing: .02em; }
#mfp_confirm_table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
#mfp_confirm_table tr { border-bottom: 1px solid var(--line); background: none; }
#mfp_confirm_table th { width: 200px; padding: 20px 16px 20px 0; text-align: left; vertical-align: top; font-weight: 600; font-size: 14px; line-height: 1.7; }
#mfp_confirm_table td { padding: 20px 0; font-size: 15px; line-height: 1.8; word-break: break-word; }
#mfp_phase_confirm .mfp_buttons { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 48px; font-size: 0; }
#mfp_phase_confirm .mfp_buttons button { font: inherit; font-size: 14px; font-weight: 500; height: 56px; padding: 0 32px; background: var(--ink); color: #fff; cursor: pointer; transition: background .4s; }
#mfp_phase_confirm .mfp_buttons button:hover { background: var(--accent); }
#mfp_phase_confirm .mfp_buttons #mfp_button_cancel { background: var(--surface); color: var(--ink); }
#mfp_phase_confirm .mfp_buttons #mfp_button_cancel:hover { background: var(--surface-2); }

#mfp_overlay, #mfp_overlay_background, #mfp_loading_screen, #mfp_loading { position: absolute; display: none; }
#mfp_overlay { z-index: 10001; }
#mfp_overlay_inner { width: 640px; max-width: 90%; margin: 0 auto; padding: 24px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
#mfp_overlay_background { z-index: 10000; background: #000; }
#mfp_loading_screen { z-index: 20000; opacity: .8; background: #fff; }
#mfp_loading { z-index: 20001; width: 40px; height: 40px; background: url("../form/mfp.statics/_images/mfp_loading.gif") center / contain no-repeat; }
@media (max-width: 767px) {
  #mfp_confirm_table th, #mfp_confirm_table td { display: block; width: auto; }
  #mfp_confirm_table th { padding: 18px 0 0; font-size: 12.5px; color: var(--muted); }
  #mfp_confirm_table td { padding: 4px 0 18px; }
  #mfp_phase_confirm .mfp_buttons { justify-content: stretch; }
  #mfp_phase_confirm .mfp_buttons button { flex: 1; padding: 0 16px; }
}

/* サンクスページ */
.contact__main.thanks { grid-column: 1 / 9; }
.thanks #mfp_thanks { display: inline-block; margin-bottom: 36px; padding: 12px 20px; background: var(--surface); font-size: 14px; }
.thanks #mfp_thanks strong { margin: 0 4px; font-family: var(--f-mono); font-weight: 500; font-size: 18px; color: var(--accent); }
.thanks h2 { font-family: var(--f-jp); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.5; margin-bottom: 20px; word-break: auto-phrase; text-wrap: balance; }
.thanks p { font-size: 14px; color: var(--ink-2); line-height: 2; margin-bottom: 44px; }
@media (max-width: 1023px) { .contact__main.thanks { grid-column: 1 / -1; } }

/* エラーページ */
.error-page { padding-top: clamp(40px, 6vh, 72px); padding-bottom: clamp(100px, 16vh, 200px); }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; animation-delay: 0s !important; }
  .js .loader { display: none; }
}
