/* =========================================================================
   ADPLEX — editorial corporate site
   Design system: "quiet precision". Warm paper, near-black ink, hairline
   rules, generous whitespace, one restrained accent. Type pairs a geometric
   grotesque (EN/labels/numerals) with Mincho display + Gothic body (JP).
   ========================================================================= */

:root {
  /* palette */
  --paper:        #F4F3EE;
  --paper-2:      #FFFFFF;
  --ink:          #16181D;
  --ink-2:        #4C5059;
  --ink-3:        #8C9098;
  --line:         rgba(22, 24, 29, 0.12);
  --line-soft:    rgba(22, 24, 29, 0.07);
  --dark:         #14161B;
  --dark-2:       #1C1F26;

  /* accent */
  --accent:       #1F44DE;
  --accent-ink:   #FFFFFF;

  /* type */
  --font-en:   'Space Grotesk', 'Zen Kaku Gothic New', sans-serif;
  --font-disp: 'Shippori Mincho', 'Zen Old Mincho', serif;
  --font-jp:   'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;

  /* layout */
  --maxw: 1180px;
  --gutter: clamp(22px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- shared layout helpers ---------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(80px, 11vw, 160px); }

/* English section eyebrow + label block */
.sec-head { text-align: center; margin-bottom: clamp(44px, 6vw, 78px); }
.sec-head .en {
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.34em;
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1;
  text-indent: 0.34em;
  color: var(--ink);
}
.sec-head .rule { width: 30px; height: 1px; background: var(--ink); margin: 22px auto 0; }
.sec-head .ja {
  display: block; margin-top: 18px;
  font-family: var(--font-jp); font-size: 13px; letter-spacing: 0.22em;
  color: var(--ink-3); font-weight: 500;
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.16,.8,.3,1), transform .9s cubic-bezier(.16,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); height: 84px;
  transition: background .4s ease, height .4s ease, box-shadow .4s ease, color .4s ease;
  color: #fff;
}
.site-header.solid {
  background: rgba(244,243,238,0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  height: 70px; color: var(--ink);
  box-shadow: 0 1px 0 var(--line-soft);
}

.brand { display: flex; align-items: center; }
.logo {
  display: block;
  background: currentColor;
  -webkit-mask: url("../images/adplex-logo-mask.png") left center / contain no-repeat;
  mask: url("../images/adplex-logo-mask.png") left center / contain no-repeat;
}
.brand .logo {
  width: clamp(156px, 16.5vw, 198px);
  height: 39px;
  transition: width .4s ease, height .4s ease;
}
.site-header.solid .brand .logo { height: 35px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav-links { display: flex; gap: clamp(16px, 2vw, 32px); }
.nav-links a {
  font-family: var(--font-en); font-size: 13px; letter-spacing: 0.16em; font-weight: 500;
  position: relative; padding: 6px 0; opacity: .92;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }

.socials { display: flex; gap: 15px; align-items: center; }
.socials a { opacity: .8; transition: opacity .25s; display: grid; place-items: center; }
.socials a:hover { opacity: 1; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

.hamburger { display: none; width: 30px; height: 22px; position: relative; background: none; border: 0; cursor: pointer; }
.hamburger span { position: absolute; left: 0; width: 100%; height: 1.6px; background: currentColor; transition: transform .35s ease, opacity .25s ease; }
.hamburger span:nth-child(1) { top: 2px; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 2px; }
body.menu-open .hamburger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 45; background: var(--dark); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  opacity: 0; pointer-events: none; transition: opacity .45s ease;
}
body.menu-open .mobile-nav { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-family: var(--font-en); font-size: 24px; letter-spacing: 0.18em; padding: 14px; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
body.menu-open .mobile-nav a { opacity: 1; transform: none; }
body.menu-open .mobile-nav a:nth-child(1){ transition-delay:.10s }
body.menu-open .mobile-nav a:nth-child(2){ transition-delay:.16s }
body.menu-open .mobile-nav a:nth-child(3){ transition-delay:.22s }
body.menu-open .mobile-nav a:nth-child(4){ transition-delay:.28s }
body.menu-open .mobile-nav a:nth-child(5){ transition-delay:.34s }
.mobile-nav .m-socials { display: flex; gap: 22px; margin-top: 30px; }
.mobile-nav .m-socials svg { width: 20px; height: 20px; fill: #fff; }

/* =========================================================================
   HERO — AI animated
   ========================================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}

/* -----------------------------------------------------------------------
   Hero background — 2-slide crossfade + Ken Burns
   サイクル 22s:
     0〜13.2s  (60%) : AI_hero 表示
     13.2〜15s (8%)  : AI→City クロスフェード
     15〜20.2s (23%) : Cityimage 表示  ← 短め
     20.2〜22s (8%)  : City→AI クロスフェード
   ----------------------------------------------------------------------- */
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__slide {
  position: absolute; inset: 0; overflow: hidden;
}
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* AI hero — 常に底面に表示、ゆっくりKen Burns (reduced-motion無視) */
.hero__slide--ai img {
  animation: kbAI 24s ease-in-out infinite alternate;
}

/* City — 上面でクロスフェード + KB */
.hero__slide--city {
  animation: crossfadeCity 22s ease-in-out infinite;
}
.hero__slide--city img {
  animation: kbCity 16s ease-in-out infinite alternate;
}

/* AI Ken Burns: ゆったりズームイン/アウト + 微ドリフト */
@keyframes kbAI {
  0%   { transform: scale(1.00) translate(0,     0);    }
  25%  { transform: scale(1.07) translate(-1.2%,  0.6%); }
  50%  { transform: scale(1.04) translate( 1.1%, -0.5%); }
  75%  { transform: scale(1.09) translate(-0.6%, -0.9%); }
  100% { transform: scale(1.03) translate( 0.8%,  0.4%); }
}

/* City Ken Burns: やや速めにズーム */
@keyframes kbCity {
  0%   { transform: scale(1.06) translate( 0,     0);    }
  50%  { transform: scale(1.00) translate( 1.0%, -0.7%); }
  100% { transform: scale(1.06) translate(-0.4%,  0.4%); }
}

/* クロスフェード: City レイヤーの opacity
   0%    = 0s  : City 非表示
   60%   = 13.2s: まだ非表示 (AI を長め表示)
   68%   = 15s : City フェードイン完了
   91.8% = 20.2s: City まだ表示
   100%  = 22s : City フェードアウト完了 */
@keyframes crossfadeCity {
  0%, 60%   { opacity: 0; }
  68%        { opacity: 1; }
  91.8%      { opacity: 1; }
  100%       { opacity: 0; }
}

/* Dark gradient overlay */
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(5,8,22,0.62) 0%, rgba(5,8,22,0.36) 45%, rgba(5,8,22,0.60) 100%),
    linear-gradient(110deg,    rgba(15,30,100,0.22) 0%, transparent 60%);
}

/* Film grain */
.hero__grain {
  position: absolute; inset: 0; z-index: 3; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Floating AI orbs — mix-blend-mode:screen makes them glow over the dark veil */
.hero__orbs {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden;
  mix-blend-mode: screen;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
}
.orb-1 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(60,100,255,0.80) 0%, transparent 65%);
  top: -100px; left: -80px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(130,60,240,0.70) 0%, transparent 65%);
  top: 5%; right: -40px;
  animation: orbFloat2 16s ease-in-out infinite;
}
.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,220,220,0.65) 0%, transparent 65%);
  bottom: 25%; left: 42%;
  animation: orbFloat3 10s ease-in-out infinite;
}
.orb-4 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(40,80,230,0.55) 0%, transparent 65%);
  bottom: -80px; right: 12%;
  animation: orbFloat4 14s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0,    0)    scale(1);    }
  50%       { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0,    0)    scale(1);    }
  50%       { transform: translate(-50px,80px) scale(0.90); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0,    0);    }
  50%       { transform: translate(40px,-50px); }
}
@keyframes orbFloat4 {
  0%, 100% { transform: translate(0,    0)    scale(1);    }
  50%       { transform: translate(-70px,-40px) scale(1.10); }
}
/* オーブは装飾的なので reduced-motion でも維持 */

/* Hero content — padding-top keeps text below the fixed 84px header */
.hero .wrap { position: relative; z-index: 4; width: 100%; padding-top: clamp(108px, 13vw, 148px); }
.hero__kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en); letter-spacing: .28em; font-size: 12px; font-weight: 500;
  margin-bottom: 26px; opacity: .92;
}
.hero__kicker .ln { width: 46px; height: 1px; background: rgba(255,255,255,.65); }
.hero h1 {
  font-family: var(--font-en); font-weight: 700; letter-spacing: -0.01em;
  line-height: .96; font-size: clamp(54px, 12vw, 158px);
}
.hero h1 .dot { color: var(--accent); }
.hero h1 span { display: block; overflow: hidden; }
.hero h1 span i { display: block; font-style: normal; transform: translateY(105%); animation: heroLine .95s cubic-bezier(.16,.85,.3,1) forwards; }
.hero h1 span:nth-child(1) i { animation-delay: .15s; }
.hero h1 span:nth-child(2) i { animation-delay: .30s; }
.hero h1 span:nth-child(3) i { animation-delay: .45s; }
@keyframes heroLine { to { transform: none; } }
body.ready .hero h1 span i { transform: none !important; }
body.ready .hero__sub { opacity: 1 !important; }
.hero__sub {
  margin-top: 30px; max-width: 38ch;
  font-family: var(--font-jp); font-size: clamp(14px,1.6vw,16px);
  letter-spacing: .04em; color: rgba(255,255,255,.88); line-height: 2;
  opacity: 0; animation: fadeUp .9s ease .85s forwards;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 span i { animation: none; transform: none !important; }
  .hero__sub { animation: none; opacity: 1; }
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 4; display: grid; place-items: center; gap: 10px;
}
.hero__scroll .ring {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4);
  display: grid; place-items: center;
}
.hero__scroll .ring svg { width: 13px; height: 13px; stroke: #fff; animation: bob 1.8s ease-in-out infinite; }
.hero__scroll .lbl { font-family: var(--font-en); font-size: 9px; letter-spacing: .3em; opacity: .7; }
@keyframes bob { 0%,100%{ transform: translateY(-3px); } 50%{ transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) {
  .hero__scroll .ring svg { animation: none; }
}

/* =========================================================================
   ABOUT
   ========================================================================= */
.about { background: var(--paper); }
.about__lead {
  text-align: center; font-family: var(--font-disp); font-weight: 600;
  line-height: 1.7; letter-spacing: .02em; font-size: clamp(22px,3.4vw,38px); color: var(--ink);
}
.about__lead .em { color: var(--accent); font-style: normal; }
.about__body {
  max-width: 640px; margin: clamp(34px,5vw,54px) auto 0; text-align: center;
  color: var(--ink-2); font-size: clamp(14px,1.5vw,16px); line-height: 2.3; letter-spacing: .03em;
}

/* =========================================================================
   WORKS BAND — expanding panels
   ========================================================================= */
.band-sec { background: var(--dark); color: #fff; padding-top: clamp(40px,6vw,70px); }
.band-head { display: flex; align-items: center; gap: 16px; padding-bottom: clamp(22px,3vw,34px); }
.band-head .en { font-family: var(--font-en); font-weight: 600; letter-spacing: .26em; font-size: clamp(15px,2vw,19px); }
.band-head .dash { width: 30px; height: 1px; background: rgba(255,255,255,.4); }
.band-head .ja { font-size: 12.5px; letter-spacing: .14em; color: rgba(255,255,255,.55); }
.band-head .hint { margin-left: auto; font-family: var(--font-en); font-size: 10px; letter-spacing: .28em; color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.2); padding: 5px 11px; border-radius: 100px; }

.band {
  display: flex; gap: 6px;
  height: clamp(420px, 58vh, 600px);
  padding: 0 var(--gutter) clamp(40px,6vw,70px);
}
.panel {
  position: relative; flex: 1 1 0%; min-width: 0; overflow: hidden; cursor: pointer;
  background: var(--dark-2); outline: none;
  transition: flex-grow .65s cubic-bezier(.22,.85,.28,1);
  will-change: flex-grow;
}
/* Panel image */
.panel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: grayscale(1) brightness(.6) contrast(1.05);
  transform: scale(1.06);
  transition: filter .7s ease, transform 6s ease-out;
  pointer-events: none;
}
.panel .pidx { position: absolute; top: 18px; left: 20px; z-index: 3; font-family: var(--font-en); font-weight: 600; font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.85); }
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8,9,12,.82) 0%, rgba(8,9,12,.18) 46%, rgba(8,9,12,.34) 100%);
  transition: opacity .6s;
}
/* pcap: flex column pinned to panel bottom — prevents title/subtitle overlap */
.pcap {
  position: absolute; left: 20px; right: 14px; bottom: 22px; top: 56px;
  z-index: 3; pointer-events: none; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 5px;
}
.pcap .t {
  font-family: var(--font-en); font-weight: 600; letter-spacing: .12em; font-size: clamp(14px,1.5vw,18px);
  writing-mode: vertical-rl; text-orientation: mixed;
  transition: writing-mode .4s ease, letter-spacing .4s ease; white-space: nowrap;
}
.pcap .s {
  font-size: 11.5px; letter-spacing: .1em; color: rgba(255,255,255,.7); opacity: 0;
  transform: translateY(8px); transition: opacity .45s ease .1s, transform .45s ease .1s;
}

/* active / hover panel */
.band:hover .panel { flex-grow: .55; }
.panel.is-active, .band:hover .panel:hover, .panel:focus-visible { flex-grow: 3.2; }
.band:hover .panel.is-active:not(:hover) { flex-grow: .55; }
.panel.is-active .pidx, .panel:hover .pidx { color: var(--accent); }
.panel.is-active img, .band:hover .panel:hover img, .panel:focus-visible img { transform: scale(1.16); }
.panel.is-active img, .panel:hover img { filter: grayscale(0) brightness(.85) contrast(1.02); }
.panel.is-active::after, .panel:hover::after { background: linear-gradient(to top, rgba(8,9,12,.8) 0%, rgba(8,9,12,.05) 55%, transparent 100%); }
.is-active .pcap .t, .panel:hover .pcap .t { writing-mode: horizontal-tb; }
.is-active .pcap .s, .panel:hover .pcap .s { opacity: 1; transform: none; }

/* reveal-in for band */
.band .panel { opacity: 0; transform: translateY(28px); transition: flex-grow .65s cubic-bezier(.22,.85,.28,1), opacity .8s ease, transform .8s ease; }
.band.in .panel { opacity: 1; transform: none; }
.band.in .panel:nth-child(2){ transition-delay: 0s,.07s,.07s; }
.band.in .panel:nth-child(3){ transition-delay: 0s,.14s,.14s; }
.band.in .panel:nth-child(4){ transition-delay: 0s,.21s,.21s; }
.band.in .panel:nth-child(5){ transition-delay: 0s,.28s,.28s; }
@media (prefers-reduced-motion: reduce) {
  .panel img { transition: none; transform: scale(1.04); }
  .band .panel { opacity: 1; transform: none; }
}

/* =========================================================================
   SERVICE
   ========================================================================= */
.service { background: var(--paper-2); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,96px) clamp(34px,5vw,80px); }

/* Service card link wrapper */
.svc__link {
  display: block; color: inherit; text-decoration: none;
  transition: opacity .25s;
}
.svc__link:hover { opacity: .88; }
.svc__link:hover .svc__more { gap: 10px; }

.svc__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,.8,.3,1); }
.svc__link:hover .svc__media img { transform: scale(1.04); }
.svc__media .no { position: absolute; top: 16px; left: 18px; z-index: 3; font-family: var(--font-en); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: #fff; mix-blend-mode: difference; }
.svc__head { display: flex; align-items: baseline; gap: 14px; margin-top: 24px; }
.svc__head .idx { font-family: var(--font-en); font-weight: 600; font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.svc__head h3 { font-family: var(--font-jp); font-weight: 700; font-size: clamp(17px,2vw,21px); letter-spacing: .06em; }
.svc__desc { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; line-height: 2.05; letter-spacing: .02em; }
.svc__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: .14em;
  color: var(--accent);
  transition: gap .25s ease;
}

/* =========================================================================
   COMPANY
   ========================================================================= */
.company { background: var(--paper-2); }
.company__inner { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(40px,6vw,90px); align-items: start; max-width: 980px; margin: 0 auto; }
.company__aside .company-logo { width: clamp(196px,26vw,274px); height: clamp(35px,4.9vw,49px); color: var(--ink); margin-bottom: 4px; }
.company__aside .sub { margin-top: 16px; color: var(--ink-2); font-size: 14px; line-height: 2.1; letter-spacing: .03em; }
.cdl { width: 100%; }
.cdl .row { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 18px 2px; border-bottom: 1px solid var(--line-soft); position: relative; }
.cdl .row::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 84px; height: 1px; background: var(--ink); }
.cdl dt { font-family: var(--font-jp); font-weight: 700; font-size: 14px; letter-spacing: .08em; color: var(--ink); }
.cdl dd { font-size: 14.5px; color: var(--ink-2); letter-spacing: .04em; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { background: var(--dark); color: #fff; }
.contact .sec-head .en { color: #fff; }
.contact .sec-head .rule { background: #fff; }
.contact .sec-head .ja { color: rgba(255,255,255,.5); }
.contact__intro { text-align: center; max-width: 620px; margin: 0 auto clamp(40px,5vw,60px); color: rgba(255,255,255,.74); font-size: 14.5px; line-height: 2.2; letter-spacing: .03em; }

.form { max-width: 620px; margin: 0 auto; }
.field { margin-bottom: 30px; }
.field label { display: block; font-size: 13px; letter-spacing: .08em; margin-bottom: 12px; color: rgba(255,255,255,.9); }
.field label .req { color: var(--accent); margin-left: 7px; font-family: var(--font-en); }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.22);
  color: #fff; font-family: var(--font-jp); font-size: 15px; padding: 12px 2px; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.9; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.err input, .field.err textarea { border-color: #E0614B; }
.field .msg { font-size: 12px; color: #E0614B; margin-top: 8px; min-height: 1px; opacity: 0; transition: opacity .25s; }
.field.err .msg { opacity: 1; }

.agree { display: flex; align-items: center; justify-content: center; gap: 11px; flex-wrap: wrap; margin: 6px 0 32px; font-size: 13px; color: rgba(255,255,255,.75); }
.agree input { width: 16px; height: 16px; accent-color: var(--accent); }
.agree a { text-decoration: underline; text-underline-offset: 3px; color: #fff; }

.submit {
  display: block; width: 100%; max-width: 340px; margin: 0 auto;
  background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer;
  font-family: var(--font-en); font-weight: 600; letter-spacing: .14em; font-size: 14px;
  padding: 19px; position: relative; overflow: hidden; transition: transform .3s, filter .3s;
}
.submit span { position: relative; z-index: 2; }
.submit:hover { transform: translateY(-2px); filter: brightness(1.08); }
.submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.form__error {
  max-width: 620px; margin: 0 auto 20px; padding: 14px 18px;
  background: rgba(224,97,75,.15); border: 1px solid rgba(224,97,75,.4);
  color: #ff9580; font-size: 13px; line-height: 1.8; letter-spacing: .02em;
}

.form__done { text-align: center; padding: 30px; }
.form__done .chk { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; margin: 0 auto 22px; }
.form__done .chk svg { width: 24px; height: 24px; stroke: var(--accent); }
.form__done h4 { font-family: var(--font-en); letter-spacing: .12em; font-size: 18px; margin-bottom: 12px; }
.form__done p { color: rgba(255,255,255,.7); font-size: 14px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--dark); color: #fff; padding: 0 var(--gutter) 50px; }
.site-footer .top { border-top: 1px solid rgba(255,255,255,.12); padding-top: 46px; display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start; justify-content: space-between; }
.site-footer .f-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer .f-nav a { font-family: var(--font-en); font-size: 12px; letter-spacing: .16em; opacity: .75; transition: opacity .25s; }
.site-footer .f-nav a:hover { opacity: 1; }
.site-footer .bottom { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer .priv { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; opacity: .75; display: inline-flex; align-items: center; gap: 8px; }
.site-footer .priv:hover { opacity: 1; }
.site-footer .copy { font-family: var(--font-en); font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.4); }

/* =========================================================================
   SERVICE DETAIL PAGES
   ========================================================================= */

/* Page hero */
.page-hero {
  position: relative; height: clamp(420px, 56vh, 620px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  padding-bottom: clamp(48px, 7vw, 88px);
}
.page-hero__img {
  position: absolute; inset: 0; overflow: hidden;
}
.page-hero__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,8,22,.85) 0%, rgba(5,8,22,.38) 55%, rgba(5,8,22,.55) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .3em; font-weight: 500;
  color: rgba(255,255,255,.7); margin-bottom: 20px;
}
.page-hero__kicker .ln { width: 36px; height: 1px; background: rgba(255,255,255,.5); }
.page-hero__title {
  font-family: var(--font-jp); font-weight: 700;
  font-size: clamp(28px, 5vw, 56px); letter-spacing: .04em; line-height: 1.2;
}
.page-hero__en {
  display: block; margin-top: 12px;
  font-family: var(--font-en); font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: .3em; color: rgba(255,255,255,.6);
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .12em;
  color: var(--ink-3);
}
.breadcrumb a { color: var(--ink-3); transition: color .25s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 8px; }

/* Service lead */
.svc-page-lead { background: var(--paper); }
.svc-page-lead__text {
  text-align: center; font-family: var(--font-disp); font-weight: 600;
  font-size: clamp(20px, 3vw, 32px); line-height: 1.7; letter-spacing: .02em;
  color: var(--ink); margin-bottom: clamp(28px, 4vw, 44px);
}
.svc-page-lead__body {
  max-width: 700px; margin: 0 auto; color: var(--ink-2);
  font-size: clamp(14px, 1.5vw, 16px); line-height: 2.3; letter-spacing: .03em; text-align: center;
}

/* Feature grid */
.svc-features { background: var(--paper-2); }
.feat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 56px) clamp(24px, 4vw, 64px);
}
.feat { padding: 36px 0 36px; border-top: 1px solid var(--line); }
.feat__num {
  font-family: var(--font-en); font-weight: 700; font-size: 36px;
  letter-spacing: -.01em; color: var(--line); line-height: 1; margin-bottom: 18px;
}
.feat__title {
  font-family: var(--font-jp); font-weight: 700;
  font-size: clamp(16px, 1.8vw, 19px); letter-spacing: .06em;
  margin-bottom: 14px; color: var(--ink);
}
.feat__title .accent { color: var(--accent); }
.feat__desc { color: var(--ink-2); font-size: 14px; line-height: 2.1; letter-spacing: .02em; }

/* Service image section */
.svc-image-sec { background: var(--paper); }
.svc-image-sec__img {
  aspect-ratio: 16 / 7; overflow: hidden; border-radius: 4px;
}
.svc-image-sec__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-image-sec__caption {
  margin-top: 20px; text-align: center; color: var(--ink-3);
  font-size: 13px; letter-spacing: .06em;
}

/* CTA section */
.svc-cta { background: var(--dark); color: #fff; text-align: center; }
.svc-cta__text {
  font-family: var(--font-disp); font-size: clamp(20px, 3vw, 30px);
  font-weight: 600; letter-spacing: .02em; line-height: 1.7;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.svc-cta__sub {
  color: rgba(255,255,255,.68); font-size: 14.5px; line-height: 2.1;
  letter-spacing: .03em; margin-bottom: clamp(36px, 5vw, 56px); max-width: 540px; margin-inline: auto;
  display: block;
}
.btn-cta {
  display: inline-block; padding: 20px 52px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .18em;
  transition: transform .3s, filter .3s;
}
.btn-cta:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* Back to service nav */
.svc-back { background: var(--paper-2); padding: clamp(32px, 5vw, 56px) 0; }
.svc-back__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.svc-back__link {
  font-family: var(--font-en); font-size: 12px; letter-spacing: .16em; font-weight: 600;
  color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px;
  transition: color .25s, gap .25s;
}
.svc-back__link:hover { color: var(--ink); gap: 12px; }
.svc-back__link.prev::before { content: "←"; }
.svc-back__link.next::after  { content: "→"; }
.svc-back__label {
  font-family: var(--font-en); font-size: 11px; letter-spacing: .22em; color: var(--ink-3);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 860px) {
  .nav-links, .socials { display: none; }
  .hamburger { display: block; }
  .svc-grid { grid-template-columns: 1fr; gap: 48px; }
  .company__inner { grid-template-columns: 1fr; gap: 40px; }
  .band { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; height: 440px; gap: 12px; scrollbar-width: none; }
  .band::-webkit-scrollbar { display: none; }
  .panel { scroll-snap-align: center; }
  .panel, .band:hover .panel, .panel.is-active, .band:hover .panel.is-active:not(:hover) { flex: 0 0 76%; }
  .panel img, .panel.is-active img { transform: scale(1.04); }
  .panel img, .panel.is-active img { filter: grayscale(0) brightness(.82) contrast(1.02); }
  .pcap .t { writing-mode: horizontal-tb; }
  .pcap .s { opacity: 1; transform: none; }
  .band-head .hint { display: none; }
  .cdl .row { grid-template-columns: 104px 1fr; gap: 12px; }
  /* Service pages */
  .feat-grid { grid-template-columns: 1fr; }
  .svc-back__inner { justify-content: center; }
}
@media (max-width: 520px) {
  .hero__kicker { font-size: 10px; }
  .cdl .row { grid-template-columns: 1fr; gap: 4px; }
  .cdl .row::before { display: none; }
  .cdl dt { color: var(--ink-3); font-size: 12px; }
  .page-hero { height: clamp(340px, 50vh, 480px); }
}
