/*
Theme Name: EA North
Theme URI: https://ea-north.com/
Author: 株式会社エア 制作事業部
Description: 株式会社エア 公式サイト用オリジナルテーマ（ELECTRIC ARC）
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ea-north
*/

/* ==========================================================
   Tokens
   ========================================================== */
:root {
  --ink: #111;
  --ink-2: #2a2a2a;
  --sub: #6b6b6b;
  --mute: #9a9a9a;
  --line: #e3e3e3;
  --bg: #fff;
  --bg-2: #f4f5f6;
  --dark: #0d0f11;
  --dark-2: #16191c;
  --arc: #3fa9ff;
  --arc-soft: #cfe8ff;
  --en: "Montserrat", "Noto Sans JP", sans-serif;
  --ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --wrap: 1120px;
  --narrow: 820px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ja);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--gray { background: var(--bg-2); }
.section--dark { background: var(--dark); color: #fff; }

/* ==========================================================
   Heading (EN + JA)
   ========================================================== */
.hd { margin-bottom: clamp(36px, 5vw, 56px); }
.hd__en {
  display: block;
  font-family: var(--en);
  font-weight: 600;
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1.05;
  letter-spacing: .06em;
}
.hd__ja {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .12em;
}
.hd__ja::before { content: ""; width: 28px; height: 1px; background: var(--arc); }
.hd--center { text-align: center; }
.hd--center .hd__ja { justify-content: center; }
.section--dark .hd__ja { color: #cfd3d7; }

.lead { font-size: clamp(20px, 2.8vw, 28px); font-weight: 500; line-height: 1.7; letter-spacing: .06em; }
.text p + p { margin-top: 1.2em; }
.text { color: var(--ink-2); }
.section--dark .text { color: #c9cdd1; }

/* Placeholder marker for 仮原稿 */
.tbd { background: linear-gradient(transparent 60%, #fff2a8 60%); }

/* ==========================================================
   Arc line (signature)
   ========================================================== */
.arc-line {
  position: relative; display: block;
  width: 120px; height: 1px;
  background: var(--line);
  overflow: hidden;
}
.section--dark .arc-line, .hero .arc-line { background: rgba(255,255,255,.18); }
.arc-line::after {
  content: ""; position: absolute; top: 0; left: -45%;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--arc), #fff, var(--arc), transparent);
  animation: spark 3s ease-in-out infinite;
}
@keyframes spark { 0% { left: -45%; } 60%, 100% { left: 100%; } }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-width: 220px; padding: 16px 26px;
  border: 1px solid currentColor;
  font-family: var(--en); font-size: 13px; font-weight: 600; letter-spacing: .14em;
  transition: background .3s, color .3s, border-color .3s;
}
.btn::after {
  content: ""; width: 34px; height: 7px;
  border-bottom: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: skewX(45deg); transform-origin: bottom right;
  transition: width .3s var(--ease);
}
.btn:hover::after { width: 46px; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #fff; color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--arc { background: var(--arc); border-color: var(--arc); color: #fff; }
.btn--arc:hover { background: #fff; color: var(--ink); border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--en); font-size: 12px; font-weight: 600; letter-spacing: .16em;
}
.link-arrow::after { content: ""; width: 40px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.link-arrow:hover::after { width: 56px; }

/* ==========================================================
   Image placeholder
   ========================================================== */
.ph {
  position: relative; width: 100%; height: 100%; min-height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 1px, transparent 1px 14px),
    #d9dcdf;
  color: #7a8087; text-align: center; padding: 16px;
}
.ph span { font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.ph small { font-family: var(--en); font-size: 10px; letter-spacing: .05em; opacity: .75; }
.media { position: relative; overflow: hidden; background: #d9dcdf; }
.media > img, .media > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--43 { aspect-ratio: 4 / 3; }
.media--32 { aspect-ratio: 3 / 2; }
.media--169 { aspect-ratio: 16 / 9; }
.media--wide { aspect-ratio: 21 / 8; }
.media--sq { aspect-ratio: 1 / 1; }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  transition: background .35s, border-color .35s, color .35s;
}
.site-header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
}
.site-logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.site-logo img { width: 44px; height: auto; }
.site-logo .logo-w { display: none; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo__name { font-size: 15px; font-weight: 700; letter-spacing: .12em; }
.site-logo__en { font-family: var(--en); font-size: 9px; font-weight: 600; letter-spacing: .32em; color: var(--sub); }

.global-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.global-nav a:not(.btn-contact) { display: flex; flex-direction: column; align-items: center; line-height: 1.3; position: relative; padding: 6px 0; }
.global-nav .en { font-family: var(--en); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.global-nav .ja { font-size: 10px; color: var(--sub); letter-spacing: .1em; }
.global-nav a:not(.btn-contact)::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 1px;
  background: var(--arc); transition: width .3s var(--ease), left .3s var(--ease);
}
.global-nav a:hover::after, .global-nav a.is-current::after { width: 100%; left: 0; }
.btn-contact {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: .12em;
  transition: background .3s;
}
.btn-contact:hover { background: var(--arc); }

/* Transparent header over hero (front page) */
.is-over:not(.is-scrolled) { background: transparent; border-color: transparent; color: #fff; }
.is-over:not(.is-scrolled) .logo-b { display: none; }
.is-over:not(.is-scrolled) .logo-w { display: block; }
.is-over:not(.is-scrolled) .global-nav .ja,
.is-over:not(.is-scrolled) .site-logo__en { color: rgba(255,255,255,.7); }
.is-over:not(.is-scrolled) .btn-contact { background: #fff; color: var(--ink); }
.is-over:not(.is-scrolled) .btn-contact:hover { background: var(--arc); color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .site-logo img { width: 38px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; position: relative; z-index: 120;
  }
  .nav-toggle span:not(.sr-only) { display: block; width: 26px; height: 1.5px; margin-left: auto; background: currentColor; transition: transform .3s, width .3s; }
  .nav-toggle span:nth-child(2) { width: 18px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { width: 26px; transform: translateY(-4.25px) rotate(-45deg); }
  body.nav-open .site-header { color: #fff; }
  body.nav-open .site-header .logo-b { display: none; }
  body.nav-open .site-header .logo-w { display: block; }
  body.nav-open .site-logo__en { color: rgba(255,255,255,.7); }

  .global-nav {
    position: fixed; inset: 0; z-index: 110;
    background: var(--dark); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  body.nav-open .global-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .global-nav ul { flex-direction: column; gap: 26px; }
  .global-nav .en { font-size: 20px; }
  .global-nav .ja { color: rgba(255,255,255,.6); font-size: 11px; }
  .global-nav .btn-contact { margin-top: 12px; background: var(--arc); color: #fff; padding: 16px 40px; }
}

/* ==========================================================
   Hero (front page)
   ========================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--dark); color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media .ph { background: radial-gradient(ellipse at 70% 60%, #2a3440 0%, #0d0f11 65%); color: rgba(255,255,255,.35); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,10,12,.85) 0%, rgba(8,10,12,.45) 55%, rgba(8,10,12,.2) 100%);
}
.hero__glow {
  position: absolute; right: 12%; top: 38%; width: 38vmin; height: 38vmin; z-index: 1;
  background: radial-gradient(circle, rgba(63,169,255,.35) 0%, rgba(63,169,255,.08) 35%, transparent 70%);
  filter: blur(8px); animation: flicker 4.5s ease-in-out infinite; pointer-events: none;
}
@keyframes flicker {
  0%, 100% { opacity: .65; transform: scale(1); }
  8% { opacity: 1; } 10% { opacity: .5; } 12% { opacity: .95; }
  50% { opacity: .75; transform: scale(1.05); }
}
.hero__inner { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero__label { display: flex; align-items: center; gap: 18px; font-family: var(--en); font-size: 12px; font-weight: 600; letter-spacing: .4em; color: rgba(255,255,255,.8); }
.hero__title {
  margin: 28px 0 24px;
  font-size: clamp(32px, 6.4vw, 72px); font-weight: 700; line-height: 1.35; letter-spacing: .08em;
}
.hero__title em { font-style: normal; color: var(--arc); text-shadow: 0 0 28px rgba(63,169,255,.55); }
.hero__sub { max-width: 34em; font-size: clamp(14px, 1.8vw, 16px); color: rgba(255,255,255,.82); line-height: 2.1; }
.hero__divisions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hero__divisions a {
  display: flex; flex-direction: column; min-width: 180px; padding: 14px 20px;
  border: 1px solid rgba(255,255,255,.35); transition: background .3s, border-color .3s;
}
.hero__divisions a:hover { background: rgba(255,255,255,.08); border-color: var(--arc); }
.hero__divisions b { font-family: var(--en); font-size: 11px; letter-spacing: .3em; color: var(--arc); }
.hero__divisions span { font-size: 14px; font-weight: 500; letter-spacing: .1em; }
.hero__scroll {
  position: absolute; left: clamp(16px, 3vw, 40px); bottom: 0; z-index: 2;
  writing-mode: vertical-rl; font-family: var(--en); font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: 12px; padding-bottom: 0;
}
.hero__scroll::after { content: ""; width: 1px; height: 72px; background: linear-gradient(var(--arc), transparent); animation: drop 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ==========================================================
   Front: intro
   ========================================================== */
.intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.intro .lead { margin-top: 28px; }
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; } }

/* ==========================================================
   News
   ========================================================== */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 4vw, 48px); }
.news-head .hd { margin-bottom: 0; }
.slider-ctrl { display: flex; gap: 8px; }
.slider-ctrl button {
  width: 46px; height: 46px; border: 1px solid var(--ink); display: grid; place-items: center;
  transition: background .3s, color .3s;
}
.slider-ctrl button:hover { background: var(--ink); color: #fff; }
.slider-ctrl svg { width: 14px; height: 14px; }
.news-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 48px) / 3));
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.news-track::-webkit-scrollbar { display: none; }
.news-card { scroll-snap-align: start; display: block; }
.news-card .media { margin-bottom: 18px; }
.news-card .media img, .news-card .media .ph { transition: transform .6s var(--ease); }
.news-card:hover .media img, .news-card:hover .media .ph { transform: scale(1.04); }
.meta { display: flex; align-items: center; gap: 12px; font-family: var(--en); font-size: 12px; color: var(--sub); letter-spacing: .08em; }
.tag { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); font-family: var(--ja); font-size: 11px; color: var(--ink-2); letter-spacing: .06em; line-height: 1.7; }
.tag--construction { border-color: var(--ink); }
.tag--creative { border-color: var(--arc); color: #1d78c7; }
.news-card__title { margin-top: 8px; font-size: 15px; font-weight: 500; line-height: 1.7; }
.news-more { margin-top: 40px; text-align: right; }

/* News list (archive) */
.news-list { border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 120px 1fr 24px; gap: 24px; align-items: center; padding: 26px 4px; border-bottom: 1px solid var(--line); transition: background .3s; }
.news-list a:hover { background: var(--bg-2); }
.news-list time { font-family: var(--en); font-size: 13px; color: var(--sub); letter-spacing: .08em; }
.news-list .ttl { font-weight: 500; }
.news-list a::after { content: "→"; color: var(--mute); transition: transform .3s, color .3s; }
.news-list a:hover::after { color: var(--arc); transform: translateX(4px); }
@media (max-width: 640px) { .news-list a { grid-template-columns: 1fr 20px; gap: 4px 12px; } .news-list time { grid-column: 1 / -1; } }

/* ==========================================================
   Business (front)
   ========================================================== */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--dark); }
.biz-card { position: relative; display: block; min-height: clamp(380px, 48vw, 560px); color: #fff; overflow: hidden; }
.biz-card .media { position: absolute; inset: 0; }
.biz-card .media img, .biz-card .media .ph { transition: transform 1s var(--ease); }
.biz-card .media .ph { background: #1e2327; color: rgba(255,255,255,.3); }
.biz-card:hover .media img, .biz-card:hover .media .ph { transform: scale(1.05); }
.biz-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8,10,12,.9) 10%, rgba(8,10,12,.2) 70%); }
.biz-card__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(28px, 4vw, 52px); }
.biz-card__num { font-family: var(--en); font-size: 12px; letter-spacing: .3em; color: var(--arc); }
.biz-card__en { display: block; margin-top: 10px; font-family: var(--en); font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; letter-spacing: .08em; line-height: 1.1; }
.biz-card__ja { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; letter-spacing: .14em; }
.biz-card__text { margin: 18px 0 24px; font-size: 14px; color: rgba(255,255,255,.8); max-width: 30em; }
@media (max-width: 800px) { .biz-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   Works preview (front) / archive
   ========================================================== */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.works-card { display: block; }
.works-card .media { margin-bottom: 16px; }
.works-card .media img, .works-card .media .ph { transition: transform .6s var(--ease); }
.works-card:hover .media img, .works-card:hover .media .ph { transform: scale(1.04); }
.works-card__title { margin-top: 8px; font-weight: 500; line-height: 1.7; }
@media (max-width: 900px) { .works-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .works-grid { grid-template-columns: 1fr; } }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter a { padding: 8px 20px; border: 1px solid var(--line); font-size: 13px; letter-spacing: .08em; transition: all .3s; }
.filter a:hover { border-color: var(--ink); }
.filter a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.works-list { border-top: 1px solid var(--line); }
.works-list li { display: grid; grid-template-columns: 90px 110px 1fr; gap: 20px; align-items: baseline; padding: 20px 4px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.works-list .yr { font-family: var(--en); color: var(--sub); font-size: 13px; letter-spacing: .06em; }
.works-list a:hover { color: #1d78c7; }
@media (max-width: 640px) { .works-list li { grid-template-columns: auto 1fr; gap: 4px 12px; } .works-list li > :last-child { grid-column: 1 / -1; } }

.sub-hd { display: flex; align-items: baseline; gap: 16px; margin: 72px 0 28px; font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.sub-hd:first-child { margin-top: 0; }
.sub-hd small { font-family: var(--en); font-size: 11px; font-weight: 600; letter-spacing: .3em; color: var(--arc); }

/* ==========================================================
   CTA bands (common footer area)
   ========================================================== */
.cta-recruit {
  position: relative; overflow: hidden; background: var(--dark); color: #fff; text-align: center;
  padding: clamp(80px, 11vw, 130px) var(--gutter);
}
.cta-recruit .media { position: absolute; inset: 0; opacity: .35; }
.cta-recruit .media .ph { background: #1a1f23; color: rgba(255,255,255,.25); }
.cta-recruit__inner { position: relative; z-index: 1; }
.cta-recruit__mark { width: 64px; margin: 0 auto 28px; }
.cta-recruit__title { font-size: clamp(20px, 3vw, 28px); font-weight: 500; letter-spacing: .12em; line-height: 1.8; }
.cta-recruit .btn { margin-top: 36px; }
.cta-recruit__marquee {
  position: absolute; left: 0; bottom: -0.18em; z-index: 0; white-space: nowrap;
  font-family: var(--en); font-weight: 700; font-size: clamp(56px, 10vw, 140px); letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1);
  animation: marquee 40s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.cta-links { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: #fff; }
.cta-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(32px, 4.4vw, 52px) clamp(24px, 6vw, 88px);
  transition: background .35s;
}
.cta-links a + a { border-left: 1px solid rgba(255,255,255,.14); }
.cta-links a:hover { background: #1e2226; }
.cta-links .en { display: block; font-family: var(--en); font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; letter-spacing: .08em; line-height: 1.1; }
.cta-links .ja { display: block; margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.7); letter-spacing: .1em; }
.cta-links .arw { width: clamp(48px, 7vw, 80px); height: 9px; border-bottom: 1px solid #fff; border-right: 1px solid #fff; transform: skewX(45deg); transform-origin: bottom right; transition: width .35s var(--ease), border-color .35s; }
.cta-links a:hover .arw { width: clamp(60px, 9vw, 100px); border-color: var(--arc); }
@media (max-width: 640px) { .cta-links { grid-template-columns: 1fr; } .cta-links a + a { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); } }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--dark); color: #c3c7cb; font-size: 13px; }
.site-footer__main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: clamp(56px, 7vw, 80px) 0 48px; }
.footer-brand { display: flex; gap: 22px; align-items: flex-start; }
.footer-brand img { width: 72px; flex-shrink: 0; }
.footer-brand__name { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .14em; }
.footer-brand__en { font-family: var(--en); font-size: 10px; letter-spacing: .32em; color: var(--arc); margin-bottom: 14px; }
.footer-brand address { font-style: normal; line-height: 2; }
.footer-brand a:hover { color: #fff; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 32px; justify-content: end; }
.footer-nav a { font-family: var(--en); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: #fff; }
.footer-nav a span { margin-left: 10px; font-family: var(--ja); font-weight: 400; font-size: 11px; color: #8a9095; letter-spacing: .06em; }
.footer-nav a:hover { color: var(--arc); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--en); font-size: 10px; letter-spacing: .16em; color: #7d8388; }
.site-footer__bottom a:hover { color: #fff; }
@media (max-width: 760px) {
  .site-footer__main { grid-template-columns: 1fr; }
  .footer-nav ul { justify-content: start; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--ink); color: #fff; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .3s;
}
.to-top.is-show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--arc); }
.to-top svg { width: 14px; height: 14px; }

/* ==========================================================
   Lower page head
   ========================================================== */
.page-head { padding: calc(var(--header-h) + clamp(56px, 8vw, 100px)) 0 clamp(40px, 6vw, 72px); }
.page-head .hd { margin-bottom: 0; }
.page-head .hd__en { font-size: clamp(40px, 7vw, 76px); }
.page-head__lead { margin-top: 28px; max-width: 40em; color: var(--ink-2); }
.page-visual { margin-bottom: clamp(56px, 8vw, 100px); }

.breadcrumb { padding-top: 20px; font-size: 11px; color: var(--mute); letter-spacing: .06em; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span + span::before { content: "／"; margin: 0 .6em; }

/* ==========================================================
   Business page
   ========================================================== */
.anchor-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); margin-bottom: clamp(56px, 8vw, 96px); }
.anchor-nav a { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; background: #fff; transition: background .3s; }
.anchor-nav a:hover { background: var(--bg-2); }
.anchor-nav b { font-family: var(--en); font-size: 11px; letter-spacing: .3em; color: var(--arc); display: block; }
.anchor-nav span { font-weight: 500; letter-spacing: .1em; }
.anchor-nav a::after { content: "↓"; color: var(--mute); }
@media (max-width: 560px) { .anchor-nav { grid-template-columns: 1fr; } }

.division-hd { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
.division-hd .num { font-family: var(--en); font-size: 12px; letter-spacing: .3em; color: var(--arc); }
.division-hd h2 { margin: 12px 0 20px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
.division-hd h2 small { display: block; font-family: var(--en); font-size: 13px; font-weight: 600; letter-spacing: .3em; color: var(--sub); margin-bottom: 8px; }
@media (max-width: 800px) { .division-hd { grid-template-columns: 1fr; } }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.service:nth-child(odd) { padding-right: clamp(20px, 3vw, 44px); }
.service:nth-child(even) { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.service h3 { font-size: 17px; font-weight: 700; letter-spacing: .08em; margin-bottom: 10px; }
.service h3 small { display: block; font-family: var(--en); font-size: 10px; letter-spacing: .28em; color: var(--arc); font-weight: 600; margin-bottom: 4px; }
.service p { font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .service:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; }
}
@media (max-width: 520px) { .service { grid-template-columns: 1fr; gap: 16px; } }

/* Column-like article blocks */
.column { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px); padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.column h3 { font-size: 20px; font-weight: 700; letter-spacing: .1em; line-height: 1.6; }
.column h3 small { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; color: var(--sub); letter-spacing: .06em; }
.column .gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.column figcaption { margin-top: 6px; text-align: right; font-size: 11px; color: var(--sub); }
@media (max-width: 760px) { .column { grid-template-columns: 1fr; } }

.synergy { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: 48px; }
.synergy__box { padding: 32px; border: 1px solid rgba(255,255,255,.18); }
.synergy__box b { display: block; font-family: var(--en); font-size: 11px; letter-spacing: .3em; color: var(--arc); margin-bottom: 8px; }
.synergy__box p { font-size: 14px; color: #c9cdd1; }
.synergy__x { font-family: var(--en); font-size: 28px; color: var(--arc); text-align: center; }
@media (max-width: 760px) { .synergy { grid-template-columns: 1fr; } }

/* ==========================================================
   Data table (company / recruit)
   ========================================================== */
.dl-table { border-top: 1px solid var(--ink); }
.dl-table > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 26px 4px; border-bottom: 1px solid var(--line); }
.dl-table dt { font-weight: 500; letter-spacing: .08em; }
.dl-table dd { color: var(--ink-2); }
.dl-table dd ul li { position: relative; padding-left: 1.1em; }
.dl-table dd ul li::before { content: ""; position: absolute; left: 0; top: .9em; width: 6px; height: 1px; background: var(--arc); }
.dl-table dd a { border-bottom: 1px solid var(--line); }
.dl-table dd a:hover { border-color: var(--ink); }
.dl-table .note { display: block; margin-top: 6px; font-size: 12px; color: var(--sub); }
@media (max-width: 640px) { .dl-table > div { grid-template-columns: 1fr; gap: 6px; } .dl-table dt { font-size: 13px; color: var(--sub); } }

.origin { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.origin__mark { max-width: 360px; margin: 0 auto; }
@media (max-width: 800px) { .origin { grid-template-columns: 1fr; } .origin__mark { max-width: 220px; } }

.map { position: relative; aspect-ratio: 21 / 8; background: var(--bg-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }
.access-info { margin-top: 24px; font-size: 14px; }

/* ==========================================================
   Recruit page
   ========================================================== */
.recruit-hero { position: relative; margin-top: var(--header-h); min-height: clamp(420px, 62vh, 640px); display: flex; align-items: center; background: var(--dark); color: #fff; overflow: hidden; }
.recruit-hero .media { position: absolute; inset: 0; opacity: .55; }
.recruit-hero .media .ph { background: #1a1f23; color: rgba(255,255,255,.3); }
.recruit-hero__inner { position: relative; z-index: 1; }
.recruit-hero__en { font-family: var(--en); font-weight: 700; font-size: clamp(64px, 14vw, 180px); line-height: .9; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.recruit-hero__ja { margin-top: 24px; font-size: clamp(20px, 3.2vw, 32px); font-weight: 700; letter-spacing: .14em; }
.recruit-hero__ja em { font-style: normal; color: var(--arc); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split--rev { grid-template-columns: 7fr 5fr; }
.split h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: .1em; line-height: 1.6; margin-bottom: 24px; }
.split .eyebrow { display: block; font-family: var(--en); font-size: 11px; font-weight: 600; letter-spacing: .3em; color: var(--arc); margin-bottom: 12px; }
.split .stack { display: grid; gap: 16px; }
@media (max-width: 800px) { .split, .split--rev { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 48px; counter-reset: step; }
.step { position: relative; padding: 32px 26px 30px; background: #fff; counter-increment: step; }
.step::before { content: "STEP " counter(step, decimal-leading-zero); display: block; font-family: var(--en); font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--arc); margin-bottom: 14px; }
.step h3 { font-size: 16px; font-weight: 700; letter-spacing: .08em; margin-bottom: 10px; }
.step p { font-size: 13px; color: var(--ink-2); line-height: 1.85; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.message-sign { margin-top: 28px; font-size: 13px; color: var(--sub); }
.message-sign b { display: block; margin-top: 4px; font-size: 18px; color: var(--ink); letter-spacing: .16em; font-weight: 500; }

.tabs { display: flex; gap: 2px; margin-bottom: 0; }
.tabs button { flex: 1; padding: 18px 12px; background: var(--bg-2); font-weight: 500; letter-spacing: .1em; font-size: 14px; transition: background .3s, color .3s; }
.tabs button b { display: block; font-family: var(--en); font-size: 10px; letter-spacing: .3em; color: var(--arc); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-panel { padding-top: 40px; }
.tab-panel[hidden] { display: none; }

.apply-box { margin-top: 64px; padding: clamp(28px, 4vw, 48px); background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; }
.apply-box h3 { grid-column: 1 / -1; font-size: 18px; font-weight: 700; letter-spacing: .1em; }
.apply-box .or { font-size: 12px; color: var(--mute); }
.apply-box .tel small { display: block; font-size: 12px; color: var(--sub); }
.apply-box .tel a { font-family: var(--en); font-size: 28px; font-weight: 600; letter-spacing: .06em; }
@media (max-width: 720px) { .apply-box { grid-template-columns: 1fr; text-align: center; } .apply-box .btn { justify-self: center; } }

.float-apply {
  position: fixed; right: 20px; bottom: 80px; z-index: 90;
  width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--arc); color: #fff; text-align: center; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .06em;
  box-shadow: 0 10px 30px rgba(63,169,255,.35); transition: transform .3s var(--ease), background .3s;
}
.float-apply::after { content: ""; width: 28px; height: 6px; border-bottom: 1px solid #fff; border-right: 1px solid #fff; transform: skewX(45deg); }
.float-apply:hover { transform: scale(1.06); background: var(--ink); }
@media (max-width: 640px) { .float-apply { width: 84px; height: 84px; font-size: 11px; right: 14px; bottom: 76px; } }

/* ==========================================================
   Contact
   ========================================================== */
.contact-tel { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); margin-bottom: 64px; }
.contact-tel > div { background: #fff; padding: 28px 32px; }
.contact-tel b { display: block; font-size: 13px; color: var(--sub); font-weight: 400; }
.contact-tel a, .contact-tel span.num { font-family: var(--en); font-size: clamp(22px, 3vw, 28px); font-weight: 600; letter-spacing: .06em; }
.contact-tel small { display: block; font-size: 12px; color: var(--sub); }
@media (max-width: 640px) { .contact-tel { grid-template-columns: 1fr; } }

.form .row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.form .row:first-of-type { border-top: 1px solid var(--ink); }
.form label.lb { font-weight: 500; padding-top: 12px; letter-spacing: .06em; }
.req, .opt { display: inline-block; margin-left: 10px; padding: 0 8px; font-size: 10px; line-height: 1.9; vertical-align: 2px; }
.req { background: var(--ink); color: #fff; }
.opt { border: 1px solid var(--line); color: var(--sub); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .form select {
  width: 100%; padding: 14px 16px; border: 1px solid #cfd3d7; border-radius: 0; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .3s, box-shadow .3s;
}
.form textarea { min-height: 220px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-color: var(--arc); box-shadow: 0 0 0 3px var(--arc-soft); }
.radios { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 12px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.radios input { accent-color: var(--ink); width: 16px; height: 16px; }
.form .hp { position: absolute; left: -9999px; }
.privacy { margin: 40px 0 28px; padding: 24px 28px; background: var(--bg-2); font-size: 13px; color: var(--ink-2); }
.privacy h3 { font-size: 14px; margin-bottom: 8px; }
.agree { text-align: center; margin-bottom: 32px; }
.agree label { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.agree input { accent-color: var(--ink); width: 18px; height: 18px; }
.form-submit { text-align: center; }
.form-submit .btn { min-width: 280px; }
.form-submit .btn:disabled { opacity: .35; cursor: not-allowed; }
.notice { margin-bottom: 40px; padding: 22px 28px; border-left: 3px solid var(--arc); background: #eef7ff; font-weight: 500; }
.notice--error { border-color: #d4483b; background: #fdf0ee; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; gap: 8px; } .form label.lb { padding-top: 0; } }

/* ==========================================================
   Single / generic content
   ========================================================== */
.entry-head { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.entry-head h1 { margin-top: 14px; font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; line-height: 1.6; letter-spacing: .06em; }
.entry-thumb { margin-bottom: 40px; }
.entry-content { color: var(--ink-2); }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { font-size: 22px; color: var(--ink); padding-left: 16px; border-left: 2px solid var(--arc); margin-top: 2.4em; line-height: 1.6; }
.entry-content h3 { font-size: 18px; color: var(--ink); margin-top: 2em; }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content a { color: #1d78c7; text-decoration: underline; }
.entry-content img { margin: 0 auto; }
.entry-content figure figcaption { font-size: 12px; color: var(--sub); text-align: center; margin-top: 6px; }
.entry-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 13px; }
.entry-nav a:hover { color: #1d78c7; }
.entry-back { text-align: center; margin-top: 56px; }

.pagination { margin-top: 56px; display: flex; justify-content: center; gap: 6px; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); font-family: var(--en); font-size: 13px; }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a:hover { border-color: var(--ink); }

/* ==========================================================
   Reveal
   ========================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.2s; }
.js .hero .reveal:nth-child(2) { transition-delay: .15s; }
.js .hero .reveal:nth-child(3) { transition-delay: .3s; }
.js .hero .reveal:nth-child(4) { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* 日本語見出しの改行を文節単位に */
.hero__title, .recruit-hero__ja, .lead, .cta-recruit__title, .split h2, .division-hd h2 { word-break: auto-phrase; }
@media (max-width: 480px) {
  .hero__title { font-size: 28px; }
  .recruit-hero__ja { font-size: 19px; }
  .hero__label .arc-line { width: 48px; }
}

/* HERO 背景動画 ＋ 黒の重ね（割合はカスタマイザーで変更可・既定40%） */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--video::after { background: rgba(0, 0, 0, var(--hero-overlay, .4)); }

/* スロットに mp4 を置いた場合の動画表示 */
.media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* グリッド内の画像・動画が枠を押し広げないように */
.column > *, .column .gallery > *, .service > *, .split > *, .division-hd > * { min-width: 0; }
video { max-width: 100%; }

/* 求人：OUR VISION（動画を大きく・文章の高さいっぱいに） */
.split--vision { grid-template-columns: 1fr 1fr; align-items: stretch; }
.vision-media { position: relative; min-height: 520px; }
.vision-media .media { position: absolute; inset: 0; }
@media (max-width: 800px) {
  .split--vision { grid-template-columns: 1fr; }
  .vision-media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* 縦長の写真枠（代表写真など）：3:4・顔が切れないよう上寄せ */
.media--portrait { aspect-ratio: 3 / 4; max-width: 440px; width: 100%; justify-self: center; }
.media--portrait > img, .media--portrait > video { object-position: center 20%; }


/* NEWS：2件以下は50%ずつ（スマホは横スクロール） */
.news-track--half { grid-auto-columns: minmax(260px, calc((100% - 24px) / 2)); }
@media (min-width: 601px) { .slider-ctrl.is-half { display: none; } }

/* 実績が未登録の事業部 */
.works-empty { padding: 28px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--sub); font-size: 14px; }
