/* =========================================================
   UserReal株式会社 - style.css
   配色・書体・余白は :root のトークンで一元管理。設計は 参考サイト/art-direction.md に従う。
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; }
body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd, table, th, td { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:root {
  --c-black: #101114;
  --c-primary: #e60012;          /* 赤。番号・細線・ホバーに限る */
  --c-primary-deep: #b8000e;
  --c-primary-soft: #f5f5f5;
  --c-bg: #ffffff;
  --c-bg-gray: #f5f5f5;
  --c-text: #101114;
  --c-text-muted: #50535a;       /* 白地で約8:1 */
  --c-border: #d9dadd;
  --c-danger: #b8000e;
  --c-footer-bg: #101114;
  --c-footer-text: #c9cacf;
  --c-on-dark-muted: #b4b6bd;    /* 黒地の補助文字（約9:1） */
  --c-line-dark: rgba(255,255,255,0.16);

  --f-en: "Sora", "IBM Plex Sans JP", sans-serif;
  --f-base: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --container: 1200px;
  --measure: 34em;
  --gutter: 24px;
  --header-h: 76px;
  --radius: 0;

  --sp-1: 8px; --sp-2: 12px; --sp-3: 16px; --sp-4: 24px;
  --sp-5: 40px; --sp-6: 64px; --sp-7: 96px; --sp-8: 160px;
  --section-y: clamp(72px, 9vw, 112px);
  --section-y-l: clamp(96px, 12vw, 160px);
  --section-y-s: clamp(48px, 6vw, 72px);
}

html, body {
  font-family: var(--f-base);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
}
@media (max-width: 768px) { :root { --header-h: 64px; } }

h1, h2, h3 { line-height: 1.3; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--l { padding-block: var(--section-y-l); }
.section--s { padding-block: var(--section-y-s); }
.section--gray { background: var(--c-bg-gray); }
.section--dark { background: var(--c-black); color: #fff; }

/* 見出しの型: 巨大な英語＋小さな日本語 */
.eyebrow { display: block; font-family: var(--f-en); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-muted); }
.section--dark .eyebrow { color: var(--c-on-dark-muted); }
.display { font-family: var(--f-en); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.h-xl { font-size: clamp(40px, 7.4vw, 96px); }
.h-l { font-size: clamp(32px, 5vw, 64px); }
.sec-head { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-5); align-items: end; padding-bottom: var(--sp-5); border-bottom: 1px solid var(--c-border); margin-bottom: var(--sp-6); }
.sec-head__jp { font-size: clamp(18px, 2vw, 22px); font-weight: 700; line-height: 1.6; }
.sec-head__lead { color: var(--c-text-muted); max-width: var(--measure); margin-top: var(--sp-2); font-size: 16px; }

/* ボタン: 長方形 */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px; border: 1px solid var(--c-black); border-radius: var(--radius);
  background: var(--c-black); color: #fff; font-weight: 700; letter-spacing: 0.06em; font-size: 15px;
  transition: background .2s, border-color .2s, color .2s;
}
.btn span[aria-hidden] { transition: transform .2s; }
.btn:hover { background: var(--c-primary); border-color: var(--c-primary); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn--light { background: #fff; color: var(--c-black); border-color: #fff; }
.btn--light:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.link-arrow { display: inline-flex; gap: 12px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: color .2s, gap .2s; }
.link-arrow:hover { color: var(--c-primary); gap: 18px; }
.section--dark .link-arrow:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }
.section--dark a:focus-visible, .hdr a:focus-visible, .ftr a:focus-visible, .hdr button:focus-visible { outline-color: #fff; }

/* ---------- Header（黒。Hero と同じ面でつなぐ） ---------- */
.hdr { position: sticky; top: 0; z-index: 100; background: var(--c-black); color: #fff; border-bottom: 1px solid var(--c-line-dark); }
.hdr__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.logo__mark { width: 26px; height: 30px; }
.logo__a { fill: currentColor; }
.logo__b { fill: var(--c-primary); }
.logo__word { font-family: var(--f-en); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav > a { font-size: 14px; letter-spacing: 0.04em; color: #fff; position: relative; padding-block: 6px; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.hdr__actions { display: flex; align-items: center; gap: 14px; }
.hdr__cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border: 1px solid var(--c-primary); background: transparent; color: #fff; font-size: 14px; font-weight: 700; transition: background .2s; }
.hdr__cta:hover { background: var(--c-primary); }
.hdr__burger { display: none; width: 44px; height: 44px; position: relative; z-index: 96; }
.hdr__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s, opacity .2s; }
.hdr__burger span:nth-child(1) { top: 15px; }
.hdr__burger span:nth-child(2) { top: 21px; }
.hdr__burger span:nth-child(3) { top: 27px; }
.hdr__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr__burger.is-open span:nth-child(2) { opacity: 0; }
.hdr__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 90; }
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero（トップ） ---------- */
.hero { position: relative; background: var(--c-black); color: #fff; overflow: hidden; padding-block: clamp(72px, 12vw, 168px) clamp(64px, 8vw, 112px); min-height: calc(100svh - var(--header-h)); display: flex; align-items: flex-end; }
.hero__rules { position: absolute; inset: 0; pointer-events: none; }
.hero__rules i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.07); animation: rule 9s ease-in-out infinite; }
@keyframes rule { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.hero .container { position: relative; }
.hero__tag { font-family: var(--f-en); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--c-on-dark-muted); margin-bottom: var(--sp-5); display: flex; align-items: center; gap: 14px; }
.hero__tag::before { content: ""; width: 40px; height: 2px; background: var(--c-primary); }
.hero__title { font-size: clamp(26px, 7.2vw, 96px); line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; }
.hero__title .ln { display: block; overflow: hidden; white-space: nowrap; padding-bottom: .08em; }
.hero__title .ln > span { display: block; transform: translateY(105%); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__title .ln:nth-child(2) > span { animation-delay: .18s; }
@keyframes rise { to { transform: none; } }
.hero__sub { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-5); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--c-line-dark); }
.hero__sub p { color: #e4e5e8; max-width: 32em; font-size: 16px; }
.hero__cta { margin-top: var(--sp-5); }
.hero__sub p + p { margin-top: var(--sp-3); }
.hero__lead { font-weight: 700; color: #fff !important; font-size: 18px !important; }

/* ---------- Page hero（下層・黒） ---------- */
.page-hero { background: var(--c-black); color: #fff; padding-block: clamp(64px, 10vw, 144px) clamp(56px, 7vw, 96px); }
.page-hero .eyebrow { color: var(--c-on-dark-muted); display: flex; align-items: center; gap: 14px; margin-bottom: var(--sp-4); }
.page-hero .eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--c-primary); }
.page-hero__title { font-family: var(--f-en); font-size: clamp(40px, 8vw, 112px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
.page-hero__copy { font-size: clamp(22px, 3.4vw, 40px); font-weight: 700; line-height: 1.45; margin-top: var(--sp-5); }
.page-hero__lead { margin-top: var(--sp-4); color: #e4e5e8; max-width: 36em; }

/* ---------- Business ---------- */
.biz { display: grid; grid-template-columns: 7fr 5fr; gap: var(--sp-6); align-items: end; }
.biz__img { background: var(--c-bg-gray); aspect-ratio: 4 / 3; overflow: hidden; }
.biz__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.biz__name { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.25; margin-bottom: var(--sp-3); }
.biz__catch { font-weight: 700; font-size: 18px; margin-bottom: var(--sp-3); }
.biz__text { color: var(--c-text-muted); margin-bottom: var(--sp-5); }
.biz__label { font-family: var(--f-en); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-primary); font-weight: 700; display: block; margin-bottom: var(--sp-2); }
.philo { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-5); }
.philo__title { font-size: clamp(28px, 4vw, 52px); line-height: 1.35; }
.philo__body p { max-width: var(--measure); }
.philo__body p + p { margin-top: var(--sp-3); }
.deflist { border-top: 1px solid var(--c-border); }
.deflist > div { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-border); }
.deflist dt { font-weight: 700; }
.deflist dd { color: var(--c-text); }
.pending { background: #fff3f3; color: var(--c-danger); padding: 0 4px; font-weight: 500; }
.biz-item { display: grid; grid-template-columns: 7fr 5fr; gap: var(--sp-6); }
.biz-item__facts .deflist { margin-bottom: var(--sp-5); }
.nolink { display: inline-block; padding: 16px 0; color: var(--c-text-muted); border-top: 1px solid var(--c-border); font-size: 14px; }

/* ---------- Values ---------- */
.values { border-top: 1px solid var(--c-black); }
.value { display: grid; grid-template-columns: 1.2fr 6fr 5fr; gap: var(--sp-4) var(--sp-5); align-items: baseline; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--c-border); }
.value__no { font-family: var(--f-en); font-weight: 700; color: var(--c-primary); font-size: clamp(18px, 2vw, 24px); }
.value__en { font-family: var(--f-en); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(34px, 6.4vw, 84px); }
.value__jp { font-weight: 700; font-size: 18px; margin-bottom: var(--sp-2); }
.value__desc { color: var(--c-text-muted); font-size: 16px; }
.section--gray .sec-head + .values { border-top: none; margin-top: calc(-1 * var(--sp-6)); }
.values-more { margin-top: var(--sp-6); }

/* ---------- Culture ---------- */
.culture-lead { font-size: clamp(24px, 3.4vw, 42px); font-weight: 700; line-height: 1.5; max-width: 22em; }
.culture-body { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-5); margin-top: var(--sp-6); }
.culture-body p { max-width: var(--measure); }
.culture-body p + p { margin-top: var(--sp-3); }
.elements { margin-top: var(--sp-7); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--c-black); }
.element { padding: var(--sp-4) var(--sp-4) 0 0; }
.element + .element { padding-left: var(--sp-4); border-left: 1px solid var(--c-border); }
.element__no { font-family: var(--f-en); font-weight: 700; color: var(--c-primary); }
.element__en { font-family: var(--f-en); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; margin: var(--sp-3) 0; letter-spacing: -0.01em; }
.element p { color: var(--c-text-muted); font-size: 15px; }

/* ---------- Company ---------- */
.company { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-5); }
.company__name { font-weight: 700; font-size: 20px; margin-bottom: var(--sp-2); }
.company__text { max-width: var(--measure); margin-bottom: var(--sp-5); }
.message { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-5); }
.message__topic { padding: var(--sp-4) 0; border-top: 1px solid var(--c-border); }
.message__topic:last-child { border-bottom: 1px solid var(--c-border); }
.message__topic h3 { font-size: 16px; margin-bottom: var(--sp-1); }
.message__who { margin-top: var(--sp-4); font-weight: 700; }
.profile { border-top: 1px solid var(--c-black); }
.profile > div { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-border); }
.profile dt { font-weight: 700; }

/* ---------- CTA 黒帯 ---------- */
.connect { background: var(--c-black); color: #fff; padding-block: var(--section-y-l); }
.connect__title { font-family: var(--f-en); font-weight: 700; font-size: clamp(44px, 10vw, 148px); line-height: 1; letter-spacing: -0.03em; }
.connect__title em { font-style: normal; color: var(--c-primary); }
.connect__row { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; justify-content: space-between; margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--c-line-dark); }
.connect__row p { color: #e4e5e8; max-width: 30em; }

/* ---------- Footer ---------- */
.ftr { background: var(--c-footer-bg); color: var(--c-footer-text); padding: var(--sp-7) 0 var(--sp-5); border-top: 1px solid var(--c-line-dark); }
.ftr__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.ftr .logo { margin-bottom: var(--sp-3); }
.ftr__about { font-size: 13px; line-height: 1.9; color: var(--c-footer-text); }
.ftr__heading { font-family: var(--f-en); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; font-weight: 600; margin-bottom: var(--sp-3); color: #fff; }
.ftr__links { display: flex; flex-direction: column; gap: 10px; }
.ftr__links a { font-size: 14px; color: var(--c-footer-text); transition: color .2s; padding-block: 2px; }
.ftr__links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--c-primary); text-underline-offset: 5px; }
.ftr__bottom { border-top: 1px solid var(--c-line-dark); margin-top: var(--sp-6); padding-top: var(--sp-4); }
.ftr__copy { font-size: 12px; color: var(--c-footer-text); letter-spacing: .04em; }

/* ---------- Form ---------- */
.form { max-width: 720px; }
.form__intro { font-size: 14px; color: var(--c-text-muted); margin-bottom: 24px; }
.form__intro strong { color: var(--c-danger); }
.form__field { margin-bottom: 24px; }
.form__label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.form__required { font-size: 11px; color: #fff; background: var(--c-black); padding: 2px 8px; margin-left: 8px; }
.form__optional { font-size: 11px; color: var(--c-text-muted); border: 1px solid var(--c-border); padding: 1px 7px; margin-left: 8px; }
.form__input, .form__select, .form__textarea { width: 100%; padding: 14px; border: 1px solid #8c8e95; border-radius: 0; background: #fff; font-size: 16px; font-family: inherit; color: var(--c-text); outline: none; transition: border-color .2s; }
.form__input:focus, .form__select:focus, .form__textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.form__select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23101114' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.form__textarea { min-height: 180px; resize: vertical; }
.form__hint { display: block; margin-top: 6px; font-size: 13px; color: var(--c-text-muted); }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.form__check input { margin-top: 6px; accent-color: var(--c-primary); }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; background: var(--c-black); color: #fff; font-weight: 700; letter-spacing: .08em; transition: background .2s; }
.form__submit:hover { background: var(--c-primary); }
.form__submit:disabled { opacity: .6; cursor: default; }
.form__success { max-width: 720px; margin: 0 0 24px; padding: 28px; border: 1px solid var(--c-black); border-left: 4px solid var(--c-primary); }
.form__error { padding: 14px; border: 1px solid var(--c-danger); background: #fdecea; color: var(--c-danger); font-size: 14px; margin-bottom: 20px; }
.form__radio { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--c-border); cursor: pointer; margin: 0 8px 8px 0; }
.form__radio.is-checked { border-color: var(--c-primary); }
.contact-grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--sp-6); }
.contact-grid__side p { color: var(--c-text-muted); font-size: 15px; }

/* ---------- Prose（プライバシー） ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 20px; margin: var(--sp-6) 0 var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--c-border); }
.prose h2:first-child { margin-top: 0; }

/* ---------- Fade-in（Values の行と本文ブロックだけ） ---------- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hdr__burger { display: block; }
  .hdr__cta { display: none; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); flex-direction: column; align-items: flex-start; gap: 0; background: var(--c-black); padding: calc(var(--header-h) + 16px) 28px 28px; transform: translateX(100%); transition: transform .35s ease; z-index: 95; overflow-y: auto; border-left: 1px solid var(--c-line-dark); }
  .nav.is-open { transform: none; }
  .nav > a { width: 100%; padding: 18px 0; border-bottom: 1px solid var(--c-line-dark); font-size: 16px; }
  .nav > a::after { display: none; }
  .nav .nav__cta { margin-top: 24px; border: 1px solid var(--c-primary); text-align: center; border-bottom: 1px solid var(--c-primary); }
}
@media (min-width: 1081px) { .nav .nav__cta { display: none; } }

@media (max-width: 860px) {
  .sec-head, .hero__sub, .philo, .culture-body, .company, .message, .biz, .biz-item, .contact-grid, .deflist > div, .profile > div { grid-template-columns: 1fr; }
  .sec-head { gap: var(--sp-3); align-items: start; }
  .hero { min-height: 0; }
  .hero__sub { margin-top: var(--sp-6); gap: var(--sp-3); }
  .value { grid-template-columns: 1fr; gap: var(--sp-2); }
  .elements { grid-template-columns: 1fr; }
  .element, .element + .element { padding: var(--sp-4) 0; border-left: none; border-bottom: 1px solid var(--c-border); }
  .deflist > div, .profile > div { gap: 4px; }
  .ftr__inner { grid-template-columns: 1fr; gap: 32px; }
  .biz { gap: var(--sp-4); }
  .btn { width: 100%; justify-content: space-between; }
  .connect__row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .fade-in { opacity: 1; transform: none; }
  .hero__title .ln > span { transform: none; }
}
