/* ---------- tokens ---------- */
:root {
  --ink: #0a0a0d;
  --paper: #f3f1ec;
  --white: #fcfcfa;
  --red: #ff2d46;
  --red-deep: #d10a22;
  --blue: #2f4bff;
  --gray: #9a9a9f;
  --line-on-dark: rgba(255, 255, 255, 0.18);
  --line-on-light: rgba(10, 10, 13, 0.16);
  --wrap: 1440px;
  --gutter: 5vw;
  --en: "Inter Tight", "Noto Sans JP", sans-serif;
  --jp: "Noto Sans JP", sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--en);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
h1, h2, h3, p, dl, dd, blockquote { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; }

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0; left: 0;
  z-index: 50;
  width: 100%;
  height: 88px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  transition: transform .35s ease, color .25s ease;
}
/* 明るい背景の上では文字を黒・ロゴをカラー版に（script.js が is-light を付け外しする） */
.header.is-light { color: var(--ink); }
.header.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.03em; }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-mark img { display: block; width: 100%; height: 100%; }
.logo-mark .logo-mark-light,
.header.is-light .logo-mark .logo-mark-dark { display: none; }
.header.is-light .logo-mark .logo-mark-light { display: block; }
.logo-text { font-size: 1.5rem; line-height: 1; letter-spacing: -.04em; }
.nav { display: flex; gap: clamp(20px, 3vw, 48px); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; padding: 14px 8px; border: 0; background: none; color: inherit; cursor: pointer; }
.burger span { display: block; height: 1.5px; margin: 6px 0; background: currentColor; transition: transform .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 40;
  display: grid; align-content: center;
  padding: 110px 8vw 48px;
  background: var(--red);
  color: var(--ink);
  transform: translateY(-105%);
  transition: transform .5s cubic-bezier(.76, 0, .24, 1);
}
.drawer.is-open { transform: translateY(0); }
.drawer nav { display: grid; }
.drawer nav a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(10, 10, 13, .25);
  font-size: clamp(2.5rem, 12vw, 5rem);
  font-weight: 700; line-height: 1; letter-spacing: -.06em;
}
.drawer nav small { display: inline-block; width: 44px; font-size: .75rem; letter-spacing: 0; vertical-align: middle; }
.drawer-foot { margin-top: 40px; font-size: .75rem; letter-spacing: .12em; }

/* ---------- shared bits ---------- */
.kicker { color: var(--red); font-size: .85rem; font-weight: 700; letter-spacing: .12em; }
.kicker--blue { color: var(--blue); font-size: .72rem; letter-spacing: .18em; }
.label { display: flex; align-items: center; gap: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
.label i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-style: normal; font-size: .6rem; }
.label--accent { color: var(--red); }
.h-display { font-family: var(--jp); font-size: clamp(2.8rem, 6.5vw, 7rem); font-weight: 700; line-height: 1.12; letter-spacing: -.06em; }
.fine { margin-top: 36px; color: var(--gray); font-size: .85rem; line-height: 1.9; }

.sec { position: relative; padding: 120px var(--gutter); }
.sec--paper { background: var(--paper); color: var(--ink); }
.sec--ink { background: var(--ink); color: var(--white); }
.sec--red { background: var(--red-deep); color: var(--white); }

/* placeholder media: shows a gradient + label until an image is dropped in */
.media {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 45, 70, .35), transparent 60%),
    linear-gradient(315deg, rgba(47, 75, 255, .25), transparent 60%),
    #1a1a20;
}
.media::before {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .45);
  font-size: .7rem; letter-spacing: .14em;
}
.media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; background: var(--ink); color: var(--white); }
.hero-text {
  position: relative; z-index: 2;
  min-height: max(720px, 100svh);
  padding: 140px var(--gutter) 64px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-company { margin-top: 10px; font-size: 1.1rem; font-weight: 600; letter-spacing: .04em; }
.hero-title { margin: 3rem 0; font-size: 19vw; font-weight: 800; line-height: 1.05; letter-spacing: -.06em; white-space: nowrap; }
.hero-title .w1 { color: var(--red); }
.hero-title .w2 { color: var(--white); }
.hero-foot { width: 49%; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-lead { font-family: var(--jp); font-size: clamp(1.2rem, 2.2vw, 2rem); font-weight: 700; line-height: 1.45; letter-spacing: -.04em; }
.hero-sub { margin-top: 20px; max-width: 400px; color: #c6c5c8; font-family: var(--jp); font-size: .875rem; line-height: 1.8; }
.circle-btn {
  flex: 0 0 auto; width: 76px; height: 76px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%;
  transition: background .3s, color .3s, transform .3s;
}
.circle-btn:hover { background: var(--red); color: var(--ink); transform: rotate(-8deg); }
.circle-btn svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.hero-media { position: absolute; inset: 0 0 0 auto; z-index: 1; width: 51%; margin: 0; }
.media--hero { position: absolute; inset: 0; }
.media--hero img { filter: saturate(.8) contrast(1.06); animation: hero-in 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.media--hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10, 10, 13, .15) 45%),
    linear-gradient(180deg, rgba(10, 10, 13, .4), transparent 70%, rgba(10, 10, 13, .5));
}
.hero-media figcaption {
  position: absolute; left: 40%; right: 28px; bottom: 26px; z-index: 3;
  display: flex; justify-content: flex-end; gap: 16px;
  font-size: .72rem; letter-spacing: .12em;
}
.hero-vertical {
  position: absolute; right: 0; top: 50%; z-index: 3;
  padding: 0 14px;
  transform: translate(42%, -50%) rotate(90deg);
  color: rgba(255, 255, 255, .7);
  font-size: .58rem; letter-spacing: .16em; white-space: nowrap;
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; padding: 18px 0; background: var(--red); color: var(--ink); border-bottom: 1px solid var(--ink); }
.ticker-inner { width: max-content; display: flex; align-items: center; gap: 28px; animation: ticker 22s linear infinite; }
.ticker span { font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
.ticker b { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

/* ---------- vision ---------- */
.vision-head { display: grid; grid-template-columns: 1.35fr .65fr; gap: 8vw; align-items: end; margin: 90px 0 80px; }
.vision-body { max-width: 430px; font-family: var(--jp); line-height: 2; }
.vision-body p + p { margin-top: 1.5rem; }

.record { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); margin-bottom: 80px; background: var(--ink); color: var(--white); }
.record-text { padding: clamp(26px, 3.8vw, 56px); }
.record-text h3 { margin: 24px 0 26px; font-family: var(--jp); font-size: clamp(1.7rem, 2.7vw, 2.6rem); font-weight: 700; line-height: 1.45; letter-spacing: -.04em; }
.record-text > p:last-child { max-width: 560px; color: #c8c8cb; line-height: 1.95; }
.record-text strong { color: var(--white); }
.record-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 24px; background: var(--red-deep); }
.record-stat > p { font-weight: 600; }
.record-stat .note { font-size: .85rem; font-weight: 400; }
.record-rank { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); margin: 18px 0; }
.record-rank .scope { font-family: var(--jp); font-size: clamp(1.2rem, 2vw, 2rem); font-weight: 700; line-height: 1.5; }
.record-rank .num { font-size: clamp(6rem, 10vw, 10rem); font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.record-rank small { margin-left: .2em; font-size: .25em; letter-spacing: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-on-light); border-left: 1px solid var(--line-on-light); }
.value {
  min-height: 420px; padding: 30px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line-on-light); border-bottom: 1px solid var(--line-on-light);
  transition: background .3s, transform .3s;
}
.value:hover { background: var(--white); transform: translateY(-8px); }
.value--accent { background: var(--red-deep); color: var(--white); }
.value--accent:hover { background: var(--red); color: var(--ink); }
.value-idx { font-size: .72rem; }
.value h3 { margin: auto 0 44px; font-family: var(--jp); font-size: clamp(2rem, 3.2vw, 3.5rem); font-weight: 700; line-height: 1.22; letter-spacing: -.05em; }
.value p { max-width: 260px; font-family: var(--jp); font-size: .88rem; line-height: 1.9; }

/* ---------- business ---------- */
.biz-head { display: grid; grid-template-columns: 1.25fr .55fr; gap: 10vw; align-items: end; margin: 90px 0 110px; }
.biz-head p { color: #bbb; font-family: var(--jp); line-height: 2; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 40px; }
.product { border-bottom: 1px solid var(--line-on-dark); padding-bottom: 34px; }
.media--product { aspect-ratio: 16 / 10; margin-bottom: 30px; }
.media--product img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.product:hover .media--product img { transform: scale(1.04); }
.product-idx { position: absolute; top: 20px; left: 20px; z-index: 2; min-width: 48px; padding: 10px 12px; background: var(--red-deep); color: var(--white); font-size: .85rem; font-weight: 700; text-align: center; }
.product h3 { margin: 16px 0 18px; font-family: var(--jp); font-size: clamp(1.5rem, 2.8vw, 2.7rem); font-weight: 700; line-height: 1.4; letter-spacing: -.04em; }
.product > p:last-child { max-width: 540px; color: #b7b7bc; font-family: var(--jp); line-height: 1.9; }

/* ---------- culture ---------- */
.culture { overflow: hidden; }
.rings {
  position: absolute; top: -35%; right: -20%;
  width: max(60vw, 680px); aspect-ratio: 1;
  border: 1px solid rgba(47, 75, 255, .28); border-radius: 50%;
}
.rings::before, .rings::after { content: ""; position: absolute; inset: 10%; border: 1px solid rgba(47, 75, 255, .2); border-radius: 50%; }
.rings::after { inset: 22%; }
.culture .kicker--blue { margin: 130px 0 34px; }
.culture blockquote { position: relative; z-index: 1; font-size: clamp(3rem, 7.5vw, 8rem); letter-spacing: -.07em; }
.culture-foot { display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: end; margin-top: 100px; }
.culture-foot > div { max-width: 520px; }
.culture-foot > div > p { font-family: var(--jp); line-height: 2; }
.text-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 28px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: .8rem; font-weight: 700; letter-spacing: .12em; font-family: var(--jp); }
.text-link span { transition: transform .3s; }
.text-link:hover span { transform: translate(3px, -3px); }
.stamp {
  justify-self: end; width: 180px; height: 180px;
  display: grid; place-items: center;
  background: var(--red); border-radius: 50%;
  transform: rotate(-11deg);
  font-size: 2.3rem; font-weight: 800; line-height: .85; letter-spacing: -.07em; text-align: center;
}

/* ---------- company ---------- */
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; margin-top: 100px; }
.company-grid h2 { font-size: clamp(4rem, 9vw, 10rem); font-weight: 700; line-height: .82; letter-spacing: -.08em; }
.company-grid dl { border-top: 1px solid rgba(255, 255, 255, .35); }
.company-grid dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 30px; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.company-grid dt { font-size: .72rem; color: rgba(255, 255, 255, .65); }
.company-grid dd { font-family: var(--jp); font-size: .95rem; }

/* ---------- closing ---------- */
.closing {
  position: relative; overflow: hidden;
  min-height: 86vh; padding: 100px var(--gutter);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white); text-align: center;
}
.closing .kicker, .closing h2 { position: relative; z-index: 1; }
.closing .kicker { font-size: .7rem; letter-spacing: .2em; }
.closing h2 { margin: 24px 0 56px; font-family: var(--jp); font-size: clamp(3.2rem, 8vw, 8.5rem); font-weight: 700; line-height: 1; letter-spacing: -.07em; }
.closing-links { position: relative; z-index: 1; display: flex; gap: 42px; }
.line-link { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .45); font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
.line-link span { display: inline-block; margin-left: 28px; transition: transform .3s; }
.line-link:hover span { transform: translateY(-6px); }
.orbit {
  position: absolute; pointer-events: none; width: min(72vw, 960px); aspect-ratio: 1;
  border: 1px solid rgba(255, 45, 70, .18); border-radius: 50%;
  animation: orbit 30s linear infinite;
}
.orbit::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(255, 45, 70, .1); border-radius: 50%; }
.orbit span {
  position: absolute; top: 50%; left: -5%; right: -5%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .045);
  font-size: clamp(3rem, 7vw, 8rem); font-weight: 800; letter-spacing: -.06em; white-space: nowrap;
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--white); border-top: 1px solid var(--line-on-dark); }
.footer-top { display: grid; grid-template-columns: 1.1fr .7fr 1.2fr; gap: 6vw; padding: 80px var(--gutter) 64px; }
.footer-brand .logo { color: var(--white); }
.footer-company { margin-top: 28px; font-family: var(--jp); font-size: .95rem; font-weight: 700; }
.footer-address { margin-top: 8px; color: #a9a9ae; font-family: var(--jp); font-size: .85rem; line-height: 1.8; }
.footer-nav { display: grid; align-content: start; gap: 14px; font-family: var(--jp); font-size: .9rem; font-weight: 500; }
.footer-nav a { position: relative; width: fit-content; }
.footer-nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.footer-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-contact { padding: 36px; background: var(--white); color: var(--ink); border-radius: 20px; }
.footer-en { color: var(--red); font-size: .7rem; font-weight: 700; letter-spacing: .18em; }
.footer-contact h2 { margin: 10px 0 16px; font-family: var(--jp); font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.footer-contact > p:not(.footer-en) { font-family: var(--jp); font-size: .9rem; line-height: 1.9; color: #4a4a4f; }
.footer-btn { display: inline-flex; align-items: center; gap: 22px; margin-top: 24px; padding: 16px 28px; border-radius: 999px; background: var(--ink); color: var(--white); font-family: var(--jp); font-size: .9rem; font-weight: 700; transition: background .3s, color .3s; }
.footer-btn span { transition: transform .3s; }
.footer-btn:hover { background: var(--red); color: var(--ink); }
.footer-btn:hover span { transform: translate(3px, -3px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 22px var(--gutter); border-top: 1px solid var(--line-on-dark); color: #777; font-size: .7rem; letter-spacing: .08em; }
.footer-bottom p:first-child { font-family: var(--jp); letter-spacing: .04em; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes hero-in { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes orbit { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  :root { --gutter: 6vw; }
  .header { height: 74px; }
  .nav { display: none; }
  .burger { display: block; }
  .hero-text { min-height: max(680px, 94svh); padding-top: 124px; }
  .hero-title { font-size: 19.5vw; }
  .hero-media { width: 63%; }
  .hero-foot { width: 65%; }
  .hero-vertical { display: none; }
  .sec { padding: 90px var(--gutter); }
  .vision-head, .biz-head, .company-grid { grid-template-columns: 1fr; }
  .vision-head { gap: 50px; margin: 70px 0 90px; }
  .values { grid-template-columns: 1fr; }
  .value { min-height: 330px; }
  .record { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .biz-head { gap: 44px; margin: 70px 0 80px; }
  .products { gap: 50px 28px; }
  .media--product { aspect-ratio: 4 / 3; }
  .culture-foot { grid-template-columns: 1fr 150px; }
  .stamp { width: 140px; height: 140px; font-size: 1.9rem; }
  .company-grid { gap: 70px; }
  .footer-top { grid-template-columns: 1fr; gap: 44px; padding: 64px var(--gutter) 48px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 600px) {
  .logo-text { font-size: 1.4rem; }
  .hero-text { padding-top: 112px; }
  .hero-title { margin: 2rem 0; font-size: 30vw; white-space: normal; letter-spacing: -.05em; }
  .hero-title span { display: block; }
  .hero-foot { width: 100%; align-items: center; }
  .hero-sub { max-width: 230px; }
  .hero-company { font-size: 1rem; }
  .circle-btn { width: 62px; height: 62px; }
  .hero-media { width: 100%; }
  .media--hero::after {
    background:
      linear-gradient(90deg, rgba(10, 10, 13, .82), rgba(10, 10, 13, .28)),
      linear-gradient(180deg, rgba(10, 10, 13, .48), transparent 45%, var(--ink) 97%);
  }
  .hero-media figcaption { left: var(--gutter); right: var(--gutter); bottom: 18px; }
  .h-display { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .value { min-height: 300px; }
  .record { grid-template-columns: 1fr; margin-bottom: 56px; }
  .record-rank .num { font-size: 7rem; }
  .products { grid-template-columns: 1fr; gap: 42px; }
  .media--product { aspect-ratio: 16 / 10; }
  .product h3 { font-size: 1.6rem; }
  .culture .kicker--blue { margin-top: 90px; }
  .culture blockquote { font-size: clamp(2.8rem, 14vw, 5rem); }
  .culture-foot { display: block; margin-top: 64px; }
  .stamp { margin: 56px 0 0 auto; }
  .company-grid dl > div { grid-template-columns: 90px 1fr; gap: 18px; }
  .closing { min-height: 72vh; }
  .closing-links { flex-direction: column; gap: 8px; }
  .orbit { width: 125vw; }
  /* スマホで指定の位置で改行する（index.html の sp-line / sp-br） */
  .h-display--fit { font-size: min(10vw, 4.5rem); }
  .h-display--biz { font-size: 8.2vw; }
  .sp-line, .pc-line { white-space: nowrap; }
  .company-grid dd { font-size: min(.95rem, 3.8vw); }
  .closing h2 { font-size: min(13vw, 3.2rem); line-height: 1.15; }
}
@media (min-width: 601px) {
  .sp-br { display: none; }
}
/* PC で見出しを指定の位置でだけ改行する（index.html の pc-line / sp-line） */
@media (min-width: 981px) {
  .h-display--biz { font-size: min(5.2vw, 6.5rem); }
  .h-display--fit { font-size: min(6.2vw, 5.8rem); }
  .pc-line, .sp-line { white-space: nowrap; }
}
/* 単語の途中で改行しない（会社概要の営業実績など） */
.nobr { white-space: nowrap; }
/* 見出しは <br> の位置でだけ改行する（どの画面幅でも。文字サイズは各メディアクエリで収まるよう調整済み） */
.sp-line, .pc-line { white-space: nowrap; }

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

/* ======================================================
   Subpages (recruit.html / contact.html)
   ====================================================== */
.subpage .header.is-hidden { transform: translateY(-100%); }


/* contact: layout */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; align-items: start; }
.contact-side { position: sticky; top: 120px; }
.contact-side .sub-h2 { margin: 28px 0 44px; }
.contact-info { border-top: 1px solid var(--line-on-light); }
.contact-info > div { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-on-light); }
.contact-info dt { font-size: .72rem; color: #6d6d72; }
.contact-info dd { font-family: var(--jp); font-size: .95rem; }

/* contact: form */
.form { display: grid; gap: 34px; }
.field { display: grid; gap: 12px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field label { font-family: var(--jp); font-size: .85rem; font-weight: 700; letter-spacing: .02em; }
.field label small { margin-left: 6px; font-weight: 400; color: #6d6d72; }
.form em { display: inline-block; margin-left: 8px; padding: 2px 7px; background: var(--red); color: var(--white); font-style: normal; font-size: .62rem; letter-spacing: .1em; vertical-align: middle; }
.field input, .field select, .field textarea {
  width: 100%; padding: 16px 0;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-family: var(--jp); font-size: 1rem;
  transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 180px; padding: 16px 18px; border: 1px solid var(--ink); background: var(--white); }
.field textarea:focus { border: 2px solid var(--red); padding: 15px 17px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--red); }
.field input::placeholder { color: #b5b5b9; }
.form.was-validated :invalid { border-bottom-color: var(--red); }

.agree { display: grid; gap: 16px; padding: 28px; background: var(--white); border: 1px solid var(--line-on-light); font-family: var(--jp); }
.agree p { font-size: .85rem; line-height: 1.8; color: #4a4a4f; }
.check { display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); }

.submit {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 28px;
  padding: 22px 40px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-family: var(--jp); font-size: .95rem; font-weight: 700; letter-spacing: .06em;
  cursor: pointer; transition: background .3s, color .3s, transform .3s;
}
.submit span { transition: transform .3s; }
.submit:hover { background: var(--red); color: var(--ink); }
.submit:hover span { transform: translate(3px, -3px); }
.submit:disabled { opacity: .5; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-family: var(--jp); font-size: .9rem; color: var(--red-deep); }

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .contact-side { position: static; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .agree { padding: 20px; }
  .submit { width: 100%; justify-content: space-between; }
}

/* ---------- page hero (large, recruit) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 170px var(--gutter) 90px;
  background: var(--ink); color: var(--white);
}
.page-hero::before {
  content: ""; position: absolute; right: -12vw; top: -30vw;
  width: 70vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 45, 70, .32), transparent 60%);
  pointer-events: none;
}
.page-hero h1 { margin: 40px 0 56px; font-size: clamp(4.5rem, 16vw, 15rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; }
.page-hero h1 .w1 { color: var(--red); }
.page-hero-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; max-width: var(--wrap); }
.page-hero-lead { font-family: var(--jp); font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.3; letter-spacing: -.04em; }
.page-hero-sub { max-width: 520px; color: #c6c5c8; font-family: var(--jp); line-height: 2; }

/* ---------- subpage hero (compact, contact) ---------- */
.sub-hero { padding: 150px var(--gutter) 70px; background: var(--ink); color: var(--white); border-bottom: 1px solid var(--line-on-dark); }
.crumbs { display: flex; gap: 12px; margin-bottom: 44px; font-size: .7rem; letter-spacing: .12em; color: #9a9a9f; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--white); }
.sub-hero-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; }
.sub-hero-en { color: var(--red); font-size: .8rem; font-weight: 700; letter-spacing: .18em; }
.sub-hero-title { margin-top: 14px; font-family: var(--jp); font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -.05em; }
.sub-hero-lead { max-width: 520px; color: #c6c5c8; font-family: var(--jp); font-size: .95rem; line-height: 2; }

/* ---------- subpage sections ---------- */
.sub-sec { position: relative; padding: 96px var(--gutter); }
.sub-sec--paper { background: var(--paper); color: var(--ink); }
.sub-sec--ink { background: var(--ink); color: var(--white); }
.sub-head { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; margin-bottom: 64px; }
.sub-head .label { grid-column: 1 / -1; }
.sub-h2 { font-family: var(--jp); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.25; letter-spacing: -.04em; }
.sub-desc { max-width: 520px; font-family: var(--jp); font-size: .95rem; line-height: 2; }
.sub-sec--ink .sub-desc { color: #bbb; }

/* benefits: three compact cards */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { padding: 32px 30px 36px; background: var(--white); border: 1px solid var(--line-on-light); transition: transform .3s, border-color .3s; }
.benefit:hover { transform: translateY(-6px); border-color: var(--ink); }
.benefit-idx { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 28px; background: var(--ink); color: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.benefit h3 { margin-bottom: 14px; font-family: var(--jp); font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; }
.benefit p { font-family: var(--jp); font-size: .9rem; line-height: 1.9; color: #4a4a4f; }

/* flow: step cards with numbered white squares and arrows */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.flow-step {
  position: relative; display: grid; align-content: start; gap: 24px;
  padding: 30px 28px 34px;
  background: #16161c; border: 1px solid var(--line-on-dark); border-radius: 16px;
}
.flow-idx {
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 10px;
  background: var(--white); color: var(--ink);
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em;
}
.flow-step > div::before { content: "STEP"; display: block; margin-bottom: 8px; color: var(--red); font-size: .68rem; font-weight: 700; letter-spacing: .18em; }
.flow-step h3 { margin-bottom: 12px; font-family: var(--jp); font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; color: var(--white); }
.flow-step p { color: #c4c4c9; font-family: var(--jp); font-size: .9rem; line-height: 1.9; }
/* arrow in the gap between cards */
.flow-step + .flow-step::before {
  content: ""; position: absolute; top: 50%; left: -44px; width: 44px; height: 2px;
  background: var(--red); transform: translateY(-50%);
}
.flow-step + .flow-step::after {
  content: ""; position: absolute; top: 50%; left: -14px; width: 12px; height: 12px;
  border-top: 2px solid var(--red); border-right: 2px solid var(--red);
  transform: translateY(-50%) rotate(45deg);
}

/* compact CTA band (replaces the full-height closing on subpages) */
.cta-band { padding: 80px var(--gutter); background: var(--red-deep); color: var(--white); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band .label { margin-bottom: 22px; color: var(--white); }
.cta-band h2 { font-family: var(--jp); font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 700; letter-spacing: -.04em; }
.cta-band-inner > div > p:last-child { margin-top: 14px; font-family: var(--jp); font-size: .95rem; line-height: 1.9; color: rgba(255, 255, 255, .8); }
.cta-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 24px;
  padding: 20px 36px; border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-family: var(--jp); font-size: .95rem; font-weight: 700; letter-spacing: .04em;
  transition: background .3s, color .3s;
}
.cta-btn span { transition: transform .3s; }
.cta-btn:hover { background: var(--ink); color: var(--white); }
.cta-btn:hover span { transform: translate(3px, -3px); }

@media (max-width: 980px) {
  .page-hero { padding: 130px var(--gutter) 70px; }
  .page-hero-foot { grid-template-columns: 1fr; gap: 28px; }
  .sub-hero { padding: 118px var(--gutter) 56px; }
  .sub-hero-row, .sub-head { grid-template-columns: 1fr; gap: 24px; }
  .sub-sec { padding: 72px var(--gutter); }
  .benefits { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; gap: 44px; }
  .flow-step:nth-child(3)::before, .flow-step:nth-child(3)::after { display: none; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .page-hero h1 { margin: 28px 0 40px; }
  .flow { grid-template-columns: 1fr; gap: 40px; }
  .flow-step:nth-child(3)::before, .flow-step:nth-child(3)::after { display: block; }
  .flow-step + .flow-step::before { top: -40px; left: 50%; width: 2px; height: 40px; transform: translateX(-50%); }
  .flow-step + .flow-step::after { top: -18px; left: 50%; transform: translateX(-50%) rotate(135deg); }
}

/* privacy: policy text */
.policy { max-width: 860px; font-family: var(--jp); font-size: .95rem; line-height: 2; }
.policy h2 { margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--line-on-light); font-size: 1.25rem; font-weight: 700; line-height: 1.5; letter-spacing: -.02em; }
.policy p + p, .policy ul + p { margin-top: 12px; }
.policy ul { margin: 12px 0 0; padding-left: 1.4em; }
.policy li + li { margin-top: 6px; }
.policy a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; }
.policy-info { margin-top: 16px; border-top: 1px solid var(--line-on-light); }
.policy-info div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-on-light); }
.policy-info dt { font-weight: 700; }
.policy-date { margin-top: 48px; color: #6a6a70; font-size: .85rem; text-align: right; }
.agree a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .policy-info div { grid-template-columns: 1fr; gap: 2px; }
}
