/* Layout: 左に固定の縦メニュー、右に本文。白地のモノクロ、英字の大見出し＋日本語の小見出し、写真と文章の左右交互、会社情報は濃いグレーの帯 */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --gray: #f4f4f4;
  --ink: #111111;
  --ink-2: #555555;
  --ink-3: #8a8a8a;
  --line: #dddddd;
  --band: #4a4a4a;
  --band-line: rgba(255, 255, 255, .22);
  --on-band: #ffffff;
  --en: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --side: 200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 15px/2 var(--ja); letter-spacing: .06em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h3 { word-break: auto-phrase; }
ul, ol, dl { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px; letter-spacing: .08em;
  transition: background .25s, color .25s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn-lg { min-height: 64px; padding: 0 48px; font-size: 16px; }
.btn-block { width: 100%; }

/* Side nav (PC) / top bar (mobile) */
.side {
  position: fixed; z-index: 50; inset: 0 auto 0 0; width: var(--side);
  background: var(--bg); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding: 36px 0;
}
.logo { font-family: var(--en); font-weight: 700; font-size: 26px; letter-spacing: .02em; line-height: 1; text-decoration: none; text-align: center; }
.logo span { display: block; font-size: 9px; letter-spacing: .3em; margin-top: 6px; color: var(--ink-2); }
.side-nav { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 64px; }
.side-nav a, .menu nav a:not(.btn) { font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-decoration: none; transition: opacity .2s; }
.side-nav a:hover { opacity: .5; }
.side-entry {
  margin-top: auto; font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: .2em;
  text-decoration: none; background: var(--ink); color: #fff; padding: 14px 28px;
}
.menu { display: none; }

main { margin-left: var(--side); }

@media (max-width: 899px) {
  .side { inset: 0 0 auto 0; width: auto; height: 60px; flex-direction: row; padding: 0 16px; padding-top: env(safe-area-inset-top, 0px); border-right: 0; border-bottom: 1px solid var(--line); }
  .logo { font-size: 20px; text-align: left; }
  .logo span { font-size: 7px; }
  .side-nav, .side-entry { display: none; }
  .menu { display: block; margin-left: auto; }
  .menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu[open] summary span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu[open] summary span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menu nav { position: fixed; inset: 60px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); display: grid; gap: 4px; padding: 16px 16px 24px; }
  .menu nav a:not(.btn) { padding: 10px 4px; }
  .menu nav .btn { margin-top: 12px; }
  main { margin-left: 0; padding-top: 60px; }
}

/* Section titles: 大きな英字＋日本語の小見出し */
.block, .entry { padding: clamp(80px, 10vw, 140px) clamp(16px, 6vw, 96px); scroll-margin-top: 60px; }
.gray { background: var(--gray); }
.title { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.title h2 { font-family: var(--en); font-weight: 700; font-size: clamp(36px, 5.4vw, 64px); letter-spacing: .06em; line-height: 1.1; }
.title p { font-size: 12px; font-weight: 700; letter-spacing: .14em; margin-top: 10px; }
.num { font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 12px; }
.intro { max-width: 40em; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; color: var(--ink-2); }
.note { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 28px; }

/* TOP */
.hero { padding: clamp(48px, 7vw, 96px) 0 0; scroll-margin-top: 60px; }
.hero-text { padding: 0 clamp(16px, 6vw, 96px); }
.kicker { font-family: var(--ja); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 14px; }
.hero h1 { font-weight: 900; font-size: clamp(30px, 5vw, 64px); line-height: 1.35; letter-spacing: .04em; }
.hero-sub { margin-top: 18px; font-size: 13px; color: var(--ink-2); max-width: 46em; }
.hero-visual { position: relative; margin-top: clamp(32px, 5vw, 56px); }
.hero-visual video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 70% center; }
@media (max-width: 699px) { .hero-visual video { aspect-ratio: 4 / 3; } }
.hero-cta {
  position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 18px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .08em;
  padding: 22px clamp(20px, 3vw, 40px); min-height: 56px; transition: background .25s;
}
.hero-cta:hover { background: #333; }
.hero-cta span { font-family: var(--en); transition: transform .3s var(--ease); }
.hero-cta:hover span { transform: translateX(4px); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.facts li { padding: 28px clamp(12px, 2vw, 32px); border-right: 1px solid var(--line); min-width: 0; }
.facts li:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--en); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: 0; }
.facts strong small { font-family: var(--ja); font-size: 13px; margin-left: 4px; letter-spacing: .04em; }
.facts span { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
@media (max-width: 699px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(2) { border-right: 0; }
  .facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ABOUT */
.about { max-width: 980px; margin: 0 auto; }
.wordmark {
  font-family: var(--en); font-weight: 700; text-align: center; line-height: 1; white-space: nowrap;
  font-size: clamp(48px, 11vw, 140px); letter-spacing: .02em; color: #e4e4e4; margin-bottom: clamp(40px, 5vw, 64px);
}
.wordmark b { color: var(--ink); }
.wordmark i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.about-text { max-width: 40em; margin: 0 auto; display: grid; gap: 1em; }
.about-text h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.6; margin-bottom: .6em; text-align: center; }
.about-text p { color: var(--ink-2); }
.about-text .strong { color: var(--ink); font-weight: 700; }

/* SUPPORT rows: 写真と文章の左右交互 */
.row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px); max-width: 1100px; margin: 0 auto clamp(56px, 7vw, 96px); }
.row:last-child { margin-bottom: 0; }
.row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.row.reverse img { order: 2; }
.row h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: .06em; line-height: 1.4; margin-bottom: 16px; }
.row-text p:last-child { color: var(--ink-2); }
@media (max-width: 799px) {
  .row { grid-template-columns: 1fr; }
  .row.reverse img { order: 0; }
}

/* EARN */
.earn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 1100px; margin: 0 auto; }
.earn li { background: var(--bg); padding: clamp(28px, 3vw, 44px); min-width: 0; }
.earn h3 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1.5; margin-bottom: 14px; }
.earn li > p:last-child { color: var(--ink-2); font-size: 14px; }
@media (max-width: 799px) { .earn { grid-template-columns: 1fr; } }

/* FOR cards: 写真に大きな英字を重ねる */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo-card { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; min-width: 0; }
.duo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.duo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.duo-card:hover img { transform: scale(1.04); }
.duo-label { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(20px, 3vw, 40px); text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.duo-label b { display: block; font-family: var(--en); font-size: clamp(26px, 3.6vw, 48px); letter-spacing: .06em; line-height: 1.2; }
@media (max-width: 699px) { .duo { grid-template-columns: 1fr; } }

/* Tables */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); max-width: 1100px; margin: 0 auto; align-items: start; }
.split-text { display: grid; gap: 1em; color: var(--ink-2); }
@media (max-width: 799px) { .split { grid-template-columns: 1fr; } }
.table { border-top: 1px solid var(--line); }
.table > div { display: grid; grid-template-columns: minmax(0, 8em) minmax(0, 1fr); gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.table dt { font-weight: 700; }
.table dd { margin: 0; color: var(--ink-2); }
.table.wide { max-width: 860px; margin: 0 auto; }
@media (max-width: 520px) { .table > div { grid-template-columns: 1fr; gap: 2px; } }

/* FLOW */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; counter-reset: s; }
.flow li { background: var(--bg); padding: clamp(28px, 3vw, 40px); min-width: 0; }
.flow h3 { font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 12px; }
.flow li > p:last-child { color: var(--ink-2); font-size: 14px; }
@media (max-width: 799px) { .flow { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0; font-weight: 700; line-height: 1.6; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { color: var(--ink-2); padding: 0 0 24px; }

/* COMPANY: 濃いグレーの帯 */
.company {
  position: relative; overflow: hidden; background: var(--band); color: var(--on-band);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: clamp(72px, 9vw, 120px) clamp(16px, 6vw, 96px); scroll-margin-top: 60px;
}
.company .title { text-align: left; margin: 0; position: relative; z-index: 1; }
.table.dark { border-color: var(--band-line); position: relative; z-index: 1; }
.table.dark > div { border-color: var(--band-line); }
.table.dark dd { color: rgba(255,255,255,.8); }
.watermark { position: absolute; right: -2%; bottom: -12%; font-family: var(--en); font-weight: 700; font-size: clamp(120px, 22vw, 320px); color: rgba(255,255,255,.05); line-height: 1; pointer-events: none; }
@media (max-width: 799px) { .company { grid-template-columns: 1fr; } .company .title { text-align: center; } }

/* ENTRY */
.entry { text-align: center; }
.line-id { font-weight: 700; color: var(--ink); user-select: all; }

/* Footer */
.footer { margin-left: var(--side); padding: 40px clamp(16px, 6vw, 96px) calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); text-align: center; font-size: 11px; color: var(--ink-3); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 18px; }
.footer nav a { font-family: var(--en); font-weight: 700; letter-spacing: .12em; text-decoration: none; color: var(--ink); }
@media (max-width: 899px) { .footer { margin-left: 0; padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); } }

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.92); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.sticky-cta.show { transform: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Reveal（script.js が付ける .in。見える状態から少し持ち上がるだけ） */
.reveal { transform: translateY(16px); transition: transform .9s var(--ease); }
.reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { transform: none; transition: none; }
  .duo-card img, .menu summary span, .sticky-cta, .faq summary::after { transition: none; }
}
