/* ============================================
   One Field Inc. — Corporate Site
   配色は下の2ブロックで管理（html に data-theme="white" を付けると白ベース）
============================================ */
:root {
  --bg: #000; --bg-rgb: 0, 0, 0;
  --fg: #fff; --fg-rgb: 255, 255, 255;
  --bg-2: #0b0b0b;
  --bg-3: #141414;
  --text: var(--fg);
  --text-2: #b5b5b5;
  --text-3: #767676;
  --err: #ff9494;
  --line: rgba(var(--fg-rgb), 0.14);
  --line-strong: rgba(var(--fg-rgb), 0.4);
  --gfx-filter: none;
  color-scheme: dark;
  --en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 80px;
}
html[data-theme="white"] {
  --bg: #fff; --bg-rgb: 255, 255, 255;
  --fg: #000; --fg-rgb: 0, 0, 0;
  --bg-2: #f6f6f6;
  --bg-3: #f2f2f2;
  --text-2: #505050;
  --text-3: #8a8a8a;
  --err: #c62828;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.4);
  --gfx-filter: invert(1);
  color-scheme: light;
}
/* 線画・背景アニメは白黒反転で対応 */
.hero__canvas, .biz-card__visual svg { filter: var(--gfx-filter); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--jp);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled,
.header.is-solid {
  background: rgba(var(--bg-rgb), 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header__inner {
  height: 100%; max-width: none;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; color: var(--fg); position: relative; z-index: 2; line-height: 0; }
.logo svg { height: 20px; width: auto; }
@media (max-width: 640px) { .logo svg { height: 16px; } }
.footer .logo svg { height: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav a { font-size: 13px; letter-spacing: 0.1em; color: var(--text-2); transition: color .3s; }
.nav a:hover { color: var(--fg); }
.nav .nav__cta { color: var(--bg); background: var(--fg); padding: 10px 24px; font-weight: 500; transition: opacity .3s; }
.nav .nav__cta:hover { color: var(--bg); opacity: .8; }

.menu-btn {
  display: none; width: 44px; height: 44px; background: none; border: 0;
  position: relative; cursor: pointer; padding: 0;
}
.menu-btn span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--fg);
  transition: transform .35s, top .35s;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 27px; }
.is-menu-open .menu-btn span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.is-menu-open .menu-btn span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 40%, transparent 0%, rgba(var(--bg-rgb),.35) 60%, var(--bg) 100%),
    linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}
.hero__content { position: relative; z-index: 2; width: 100%; }
.hero__label {
  font-family: var(--en); font-size: 12px; letter-spacing: 0.3em;
  color: var(--text-2); margin-bottom: 32px;
  display: flex; align-items: center; gap: 16px;
}
.hero__label::before { content: ""; width: 40px; height: 1px; background: var(--line-strong); flex-shrink: 0; }
.hero__title {
  font-size: clamp(24px, 6.6vw, 76px);
  font-weight: 700; line-height: 1.45; letter-spacing: 0.06em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: inline-block; transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) .2s forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: .35s; }
@keyframes rise { to { transform: translateY(0); } }

.hero__scroll {
  position: absolute; z-index: 2; bottom: 36px; left: var(--gutter);
  font-family: var(--en); font-size: 11px; letter-spacing: 0.3em; color: var(--text-2);
  display: flex; align-items: center; gap: 16px;
}
.hero__scroll i { width: 60px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--fg);
  animation: scrollbar 2.2s ease-in-out infinite;
}
@keyframes scrollbar {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- Section common ---------- */
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head__en {
  font-family: var(--en); font-weight: 700;
  font-size: clamp(40px, 7vw, 96px); line-height: 1; letter-spacing: 0.02em;
}
.sec-head__jp {
  margin-top: 18px; font-size: 13px; color: var(--text-2); letter-spacing: 0.2em;
  display: flex; align-items: center; gap: 12px;
}
.sec-head__jp::before { content: ""; width: 24px; height: 1px; background: var(--line-strong); }

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.about__lead span { display: inline-block; }
.about__lead { font-size: clamp(22px, 2.6vw, 36px); font-weight: 700; line-height: 1.7; }
.about__text p { color: var(--text-2); font-size: 15px; line-height: 2.2; }
.about__text p + p { margin-top: 1.6em; }

/* ---------- Business ---------- */
.biz__list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.biz-card { min-width: 0; background: var(--bg); display: flex; flex-direction: column; transition: background .4s; }
.biz-card:hover { background: var(--bg-2); }
.biz-card__visual {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.biz-card__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.biz-card:hover .biz-card__visual svg { transform: scale(1.06); }
.biz-card__num {
  position: absolute; top: 20px; left: 24px; z-index: 1;
  font-family: var(--en); font-size: 12px; letter-spacing: 0.2em; color: var(--text-2);
}
.biz-card__body { padding: 36px 32px 40px; display: flex; flex-direction: column; flex: 1; }
.biz-card__en { font-family: var(--en); font-size: 12px; letter-spacing: 0.2em; color: var(--text-3); }
.biz-card__title { margin-top: 8px; font-size: 22px; font-weight: 700; letter-spacing: 0.06em; }
.biz-card__text { margin-top: 20px; color: var(--text-2); font-size: 14px; line-height: 2; }
.biz-card__tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.biz-card__tags li {
  font-size: 12px; color: var(--text-2); border: 1px solid var(--line);
  padding: 4px 12px; letter-spacing: 0.04em;
}
.biz-card__link {
  margin-top: auto; padding-top: 32px;
  font-size: 13px; letter-spacing: 0.1em;
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
}
.biz-card__link .arrow { transition: transform .3s; }
.biz-card__link:hover .arrow { transform: translateX(6px); }

/* ---------- Company ---------- */
.company__table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.company__table th,
.company__table td {
  text-align: left; vertical-align: top; padding: 28px 0;
  border-bottom: 1px solid var(--line); font-weight: 400;
}
.company__table th { width: 220px; color: var(--text-3); font-size: 13px; letter-spacing: 0.12em; padding-right: 24px; }
.company__table td { font-size: 15px; }

/* ---------- Contact band ---------- */
.contact-band { padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.contact-band__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.contact-band__text { margin-top: 24px; color: var(--text-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 20px;
  min-width: 280px; padding: 24px 40px;
  background: var(--fg); color: var(--bg); font-weight: 500; letter-spacing: 0.1em;
  border: 1px solid var(--fg); cursor: pointer; transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(6px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__company { margin-top: 20px; color: var(--text-2); font-size: 13px; line-height: 2; }
.footer__nav { display: flex; gap: 32px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.footer__nav a:hover { color: var(--fg); }
.footer__bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--en); font-size: 11px; color: var(--text-3); letter-spacing: 0.1em;
}
.footer__bottom a { font-family: var(--jp); }
.footer__bottom a:hover { color: var(--fg); }

/* ---------- Sub page ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(64px, 10vw, 120px)) 0 clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.page-body { padding: clamp(64px, 9vw, 120px) 0 clamp(96px, 12vw, 160px); }
.narrow { max-width: 880px; }

/* Steps */
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 64px; border: 1px solid var(--line); }
.steps li { flex: 1; text-align: center; padding: 16px 8px; font-size: 13px; color: var(--text-3); letter-spacing: 0.1em; }
.steps li + li { border-left: 1px solid var(--line); }
.steps li b { font-family: var(--en); font-weight: 500; margin-right: 8px; }
.steps li.is-current { background: var(--fg); color: var(--bg); }

/* Form */
.form-intro { color: var(--text-2); margin-bottom: 48px; }
.form-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.form-row:first-of-type { border-top: 1px solid var(--line); }
.form-label { font-size: 14px; padding-top: 14px; display: flex; align-items: flex-start; gap: 12px; }
.req, .opt { font-size: 11px; padding: 2px 8px; letter-spacing: 0.08em; flex-shrink: 0; margin-top: 2px; line-height: 1.7; }
.req { background: var(--fg); color: var(--bg); }
.opt { border: 1px solid var(--line-strong); color: var(--text-2); }
.form-control {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line);
  padding: 14px 18px; font-size: 16px; border-radius: 0; outline: none;
  transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.form-control:focus { border-color: var(--fg); }
textarea.form-control { min-height: 220px; resize: vertical; line-height: 1.8; }
.form-control::placeholder { color: var(--text-3); }
.radio-group { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span {
  display: inline-block; padding: 10px 20px; border: 1px solid var(--line);
  font-size: 14px; color: var(--text-2); transition: all .25s;
}
.radio:hover span { border-color: var(--line-strong); color: var(--fg); }
.radio input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.radio input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }
.error { color: var(--err); font-size: 13px; margin-top: 8px; }
.error-box { border: 1px solid var(--err); color: var(--err); padding: 16px 20px; margin-bottom: 40px; font-size: 14px; }
.agree { margin-top: 40px; text-align: center; font-size: 14px; }
.agree label { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.agree input { width: 18px; height: 18px; accent-color: var(--fg); }
.agree a { text-decoration: underline; text-underline-offset: 4px; }
.form-actions { margin-top: 48px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.confirm-value { padding-top: 14px; white-space: pre-wrap; word-break: break-word; }
.done { text-align: center; }
.done__title { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.done__text { margin-top: 24px; color: var(--text-2); }
.done .form-actions { margin-top: 56px; }

/* Policy */
.policy__lead { color: var(--text-2); }
.policy h2 { font-size: 18px; margin: 56px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.policy p, .policy li { color: var(--text-2); font-size: 14px; line-height: 2.1; }
.policy ol { padding-left: 1.4em; margin: 12px 0 0; }
.policy ol li { list-style: decimal; }
.policy__meta { margin-top: 64px; text-align: right; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.biz__list .reveal:nth-child(2) { transition-delay: .12s; }
.biz__list .reveal:nth-child(3) { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__title .line > span { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .biz__list { grid-template-columns: minmax(0, 1fr); }
  .biz-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .biz-card__visual { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; justify-content: center; gap: 36px;
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav a { font-size: 18px; color: var(--fg); }
  .is-menu-open .nav { opacity: 1; pointer-events: auto; }
  .about__grid { grid-template-columns: 1fr; }
  .company__table th, .company__table td { display: block; width: 100%; padding: 0; border: 0; }
  .company__table th { padding-top: 24px; }
  .company__table td { padding: 6px 0 24px; border-bottom: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .form-label { padding-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .biz-card { display: flex; }
  .biz-card__visual { aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .biz-card__body { padding: 28px 24px 32px; }
  .btn { min-width: 0; width: 100%; }
  .steps li { font-size: 12px; }
  .steps li b { display: block; margin: 0; }
  .hero__scroll { display: none; }
  .hero__label { letter-spacing: 0.18em; font-size: 11px; }
  .hero__label::before { width: 24px; }
}
