/* 株式会社Saikou コーポレートサイト 共通スタイル
   会社のページ（/, /about, /business, /news, /company, /contact, /en）と
   ROUTELESS for Work（/routeless/work）で共有する。色・余白・文字はすべてここのトークンを参照する。 */

:root {
  /* 色 */
  --ink: #0e0e0e;
  --ink-2: #4a4944;
  --ink-3: #7c7b74;
  --paper: #f7f6f2;
  --paper-2: #efede6;
  --white: #ffffff;
  --line: #dddcd4;
  --line-dark: rgba(247, 246, 242, 0.18);
  --accent: #c7f24b;
  --accent-ink: #0e0e0e;
  --accent-soft: #eef8cf;
  --on-dark: #f7f6f2;
  --on-dark-2: rgba(247, 246, 242, 0.72);
  --danger: #b3261e;

  /* 文字 */
  --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-en: "Space Grotesk", "Zen Kaku Gothic New", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-xl: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --fs-2xl: clamp(1.8rem, 1.4rem + 1.8vw, 2.9rem);
  --fs-hero: clamp(2.1rem, 1.3rem + 4.2vw, 4.6rem);

  /* 余白（4pxベース） */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(64px, 10vw, 120px);
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1160px;

  /* 形 */
  --r-sm: 4px; --r-md: 8px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(14, 14, 14, 0.06);
  --shadow-2: 0 8px 24px rgba(14, 14, 14, 0.08);

  /* 動き（サイト全体で1系統） */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.9s;

  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: var(--fs-base);
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; text-wrap: balance; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: var(--s-2) var(--s-4); z-index: 100; }
.skip:focus { left: var(--s-4); top: var(--s-4); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.en { font-family: var(--font-en); letter-spacing: 0.04em; }
.eyebrow { font-family: var(--font-en); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: var(--s-2); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.dark .eyebrow { color: var(--on-dark-2); }

/* ───── ヘッダー ───── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  background: rgba(247, 246, 242, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header.is-over-hero { background: transparent; border-bottom-color: transparent; color: var(--on-dark); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: var(--s-5); }
.brand { display: inline-flex; align-items: baseline; gap: var(--s-3); text-decoration: none; margin-right: auto; }
.brand-mark { font-family: var(--font-en); font-weight: 700; font-size: 1.35rem; letter-spacing: 0; }
.brand-mark i { font-style: normal; color: var(--ink); background: var(--accent); padding: 0 0.12em; margin-left: 0.04em; border-radius: 2px; }
.brand-sub { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: 0.06em; }
.is-over-hero .brand-sub { color: var(--on-dark-2); }
.gnav { display: flex; align-items: center; gap: var(--s-5); }
.gnav a { text-decoration: none; font-size: var(--fs-sm); font-weight: 700; position: relative; padding: var(--s-2) 0; }
.gnav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.gnav a:not(.btn):hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { font-family: var(--font-en); font-size: var(--fs-xs) !important; letter-spacing: 0.1em; border: 1px solid currentColor; border-radius: var(--r-pill); padding: 2px 10px !important; }
.lang::after { display: none; }
.menu-btn { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform 0.3s var(--ease), opacity 0.3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .gnav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    background: var(--paper); color: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-3) var(--gutter) var(--s-6);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .menu-open .gnav { transform: none; opacity: 1; visibility: visible; }
  .menu-open.site-header.is-over-hero { background: var(--paper); color: var(--ink); }
  .menu-open .brand-sub { color: var(--ink-3); }
  .gnav a { padding: var(--s-4) 0; font-size: var(--fs-base); }
  .gnav a:not(.btn):not(.lang) { border-bottom: 1px solid var(--line); }
  .gnav a.btn { padding: var(--s-4) 0; }
  .gnav a:not(.btn)::after { display: none; }
  .gnav .btn { margin-top: var(--s-5); justify-content: center; }
  .gnav .lang { align-self: flex-start; margin-top: var(--s-4); border-bottom: 1px solid currentColor; }
}

/* ───── ボタン ───── */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-jp); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 12px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--ink); color: var(--paper); }
.dark .btn-accent:hover, .is-over-hero .btn-accent:hover { background: var(--paper); color: var(--ink); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dark .btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: var(--s-2); align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover .arrow { transform: translateX(4px); }
.text-link .arrow { transition: transform 0.35s var(--ease); }

/* ───── セクション ───── */
.section { padding-block: var(--section); }
.section.tight { padding-block: calc(var(--section) * 0.7); }
.section.alt { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--on-dark); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-5) var(--s-8); align-items: start; margin-bottom: var(--s-8); }
.sec-head h2 { font-size: var(--fs-2xl); font-weight: 900; letter-spacing: 0.01em; }
.sec-head .lead { color: var(--ink-2); max-width: none; }
.dark .sec-head .lead { color: var(--on-dark-2); }
.sec-head .side { display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; margin-bottom: var(--s-7); } }

/* ───── 下層ページの見出し ───── */
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 112px)); padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--fs-hero); font-weight: 900; letter-spacing: 0.01em; margin-top: var(--s-4); }
.page-hero .lead { margin-top: var(--s-5); color: var(--ink-2); max-width: 52ch; font-size: var(--fs-lg); line-height: 1.8; }
.breadcrumb { font-size: var(--fs-xs); color: var(--ink-3); display: flex; gap: var(--s-2); flex-wrap: wrap; list-style: none; margin-bottom: var(--s-6); }
.breadcrumb a { text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); }

/* ───── トップのFV ───── */
.hero { position: relative; min-height: min(100svh, 920px); min-height: min(100vh, 920px); color: var(--on-dark); background: var(--ink); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
@supports (min-height: 100svh) { .hero { min-height: min(100svh, 920px); } }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0.05) 30%, rgba(14,14,14,0.15) 55%, rgba(14,14,14,0.86) 100%),
  linear-gradient(90deg, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0) 60%); pointer-events: none; }
.hero-body { position: relative; z-index: 2; padding-bottom: clamp(40px, 7vw, 88px); padding-top: calc(var(--header-h) + 80px); }
.hero-label { font-family: var(--font-en); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-2); display: flex; align-items: center; gap: var(--s-3); }
.hero-label::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero h1 { font-size: min(var(--fs-hero), calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 14.8)); font-weight: 900; line-height: 1.32; letter-spacing: 0.02em; margin-top: var(--s-5); max-width: 15em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero h1 .nowrap { white-space: nowrap; }
.hero.is-in h1 .line > span { transform: none; }
.hero.is-in h1 .line:nth-child(2) > span { transition-delay: 0.12s; }
.hero.is-in h1 .line:nth-child(3) > span { transition-delay: 0.24s; }
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .mark svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.36em; overflow: visible; pointer-events: none; }
.hero h1 .mark path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset 1.4s var(--ease) 0.9s; }
.hero.is-in h1 .mark path { stroke-dashoffset: 0; }
.hero-foot { margin-top: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5); }
.hero-foot .sub { color: var(--on-dark-2); font-size: var(--fs-sm); max-width: 34em; opacity: 0; transform: translateY(12px); transition: opacity 0.9s var(--ease) 0.7s, transform 0.9s var(--ease) 0.7s; }
.hero.is-in .hero-foot .sub { opacity: 1; transform: none; }
.hero-scene { display: flex; align-items: center; gap: var(--s-4); font-family: var(--font-en); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.hero-scene .count { font-variant-numeric: tabular-nums; color: var(--on-dark); }
.hero-scene .bar { width: 72px; height: 2px; background: var(--line-dark); position: relative; overflow: hidden; }
.hero-scene .bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hero-scene .place { min-width: 11em; transition: opacity 0.4s var(--ease); }
.hero-ctrl { background: none; border: 1px solid var(--line-dark); color: var(--on-dark); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.hero-ctrl:hover { border-color: var(--on-dark); }
.hero-ctrl svg { width: 12px; height: 12px; fill: currentColor; }
.scroll-cue { position: absolute; right: var(--gutter); top: 50%; z-index: 2; writing-mode: vertical-rl; font-family: var(--font-en); font-size: 10px; letter-spacing: 0.3em; color: var(--on-dark-2); display: flex; align-items: center; gap: var(--s-3); }
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--on-dark-2), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) { .scroll-cue { display: none; } .hero-scene .place { min-width: 0; } }

/* ───── Vision（トップ） ───── */
.statement { font-size: var(--fs-2xl); font-weight: 900; line-height: 1.5; letter-spacing: 0.02em; }
.statement em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent) 62%); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-7) var(--s-9); align-items: end; }
.split .body { display: flex; flex-direction: column; gap: var(--s-5); color: var(--ink-2); max-width: 40em; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ───── 事業カード ───── */
.biz-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4); }
.biz { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); min-height: 300px; padding: var(--s-6); border-radius: var(--r-md); text-decoration: none; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: border-color 0.35s var(--ease), transform 0.5s var(--ease), background-color 0.45s var(--ease); }
@media (hover: hover) {
  .biz:hover { border-color: var(--ink); }
  .biz:hover .arrow-c { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .biz:hover .arrow-c svg { transform: translateX(3px); }
}
.biz.main { grid-column: span 7; grid-row: span 2; background: var(--ink); color: var(--on-dark); border-color: var(--ink); min-height: 520px; }
.biz.main .biz-photo { position: absolute; inset: 0; }
.biz.main .biz-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: transform 1.2s var(--ease), opacity 0.6s var(--ease); }
@media (hover: hover) { .biz.main:hover .biz-photo img { transform: scale(1.04); opacity: 0.6; } }
.biz.main .biz-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,0.2), rgba(14,14,14,0.9)); }
.biz.main > * { position: relative; }
.biz.side { grid-column: span 5; }
.biz.wide { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--s-5) var(--s-8); }
.biz-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.biz-kind { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
.biz.main .biz-kind { color: var(--on-dark-2); }
.biz h3 { font-family: var(--font-en); font-size: var(--fs-xl); font-weight: 700; letter-spacing: 0.01em; margin-top: var(--s-2); }
.biz.main h3 { font-size: var(--fs-2xl); }
.biz p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.85; max-width: 34em; }
.biz.wide p { max-width: none; }
.biz.main p { color: var(--on-dark-2); font-size: var(--fs-base); }
.biz-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); list-style: none; }
.biz-tags li { font-size: var(--fs-xs); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 10px; }
.biz.main .biz-tags li { border-color: var(--line-dark); }
.arrow-c { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.biz.main .arrow-c { border-color: var(--line-dark); }
.arrow-c svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform 0.35s var(--ease); }
@media (max-width: 860px) {
  .biz.main, .biz.side, .biz.wide { grid-column: 1 / -1; }
  .biz.wide { grid-template-columns: 1fr; }
  .biz.main { min-height: 440px; }
}

/* ───── ニュース ───── */
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-item a, .news-item > div { display: grid; grid-template-columns: 7.5em 9em minmax(0, 1fr) auto; gap: var(--s-2) var(--s-5); align-items: baseline; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.news-item a:hover .ttl { text-decoration: underline; text-underline-offset: 4px; }
.news-date { font-family: var(--font-en); font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news-cat { font-size: var(--fs-xs); font-weight: 700; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 1px 10px; justify-self: start; white-space: nowrap; }
.news-item .ttl { font-weight: 700; }
.news-item .arrow { color: var(--ink-3); }
@media (max-width: 640px) { .news-item a, .news-item > div { grid-template-columns: auto 1fr; } .news-item .ttl { grid-column: 1 / -1; } .news-item .arrow { display: none; } }
.news-body { max-width: 44em; display: flex; flex-direction: column; gap: var(--s-4); color: var(--ink-2); padding: 0 0 var(--s-6); }

/* ───── Values（トップの帯） ───── */
.values-band { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.values-band li { padding: var(--s-6) var(--s-4) var(--s-6) 0; border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.values-band li + li { padding-left: var(--s-5); }
.values-band li:last-child { border-right: 0; }
.values-band .no { font-family: var(--font-en); font-size: var(--fs-xs); color: var(--accent); letter-spacing: 0.12em; }
.values-band .v { font-size: var(--fs-lg); font-weight: 900; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .values-band { grid-template-columns: 1fr; }
  .values-band li, .values-band li + li { padding: var(--s-5) 0; border-right: 0; border-bottom: 1px solid var(--line-dark); flex-direction: row; align-items: baseline; gap: var(--s-5); }
}

/* ───── お問い合わせ帯 ───── */
.contact-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.contact-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); text-decoration: none; transition: border-color 0.3s var(--ease); min-width: 0; }
.contact-card:hover { border-color: var(--ink); }
.contact-card:hover .arrow-c { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.contact-card .head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.contact-card h3 { font-size: var(--fs-lg); font-weight: 900; }
.contact-card p { font-size: var(--fs-sm); color: var(--ink-2); }
.contact-card.primary { background: var(--accent); border-color: var(--accent); }
.contact-card.primary p { color: var(--ink); }
.contact-card.primary .arrow-c { border-color: var(--ink); }
.contact-card.primary:hover { border-color: var(--ink); }
@media (max-width: 860px) { .contact-band { grid-template-columns: 1fr; } }

/* ───── MVV（/about） ───── */
.mvv-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-6) var(--s-9); padding-block: var(--section); border-bottom: 1px solid var(--line); }
.mvv-block:last-child { border-bottom: 0; }
.mvv-block .label { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: flex; flex-direction: column; gap: var(--s-3); }
.mvv-block .label .en-big { font-family: var(--font-en); font-size: clamp(2.6rem, 2rem + 3vw, 4.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.mvv-block .label .ja { font-size: var(--fs-sm); color: var(--ink-3); }
.mvv-block .title { font-size: var(--fs-2xl); font-weight: 900; line-height: 1.5; margin-bottom: var(--s-7); }
.prose { display: flex; flex-direction: column; gap: var(--s-5); color: var(--ink-2); max-width: 38em; font-size: var(--fs-base); line-height: 2.05; }
.prose .closing { color: var(--ink); font-weight: 700; }
.values-list { list-style: none; counter-reset: v; display: flex; flex-direction: column; }
.values-list > li { counter-increment: v; display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: var(--s-4); padding: var(--s-7) 0; border-top: 1px solid var(--line); }
.values-list > li:first-child { border-top: 0; padding-top: 0; }
.values-list > li::before { content: counter(v, decimal-leading-zero); font-family: var(--font-en); font-weight: 700; color: var(--ink-3); font-size: var(--fs-sm); padding-top: 0.5em; }
.values-list h3 { font-size: var(--fs-xl); font-weight: 900; margin-bottom: var(--s-5); }
@media (max-width: 860px) { .mvv-block { grid-template-columns: 1fr; } .mvv-block .label { position: static; } }

/* 代表メッセージ・メンバー */
.message { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-7) var(--s-9); align-items: start; }
.message figure { margin: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.message figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); filter: grayscale(0.15); }
.message figcaption { display: flex; flex-direction: column; gap: 2px; }
.message figcaption .role { font-size: var(--fs-xs); color: var(--ink-3); }
.message figcaption .name { font-size: var(--fs-lg); font-weight: 900; }
.message figcaption .roman { font-family: var(--font-en); font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: 0.1em; }
@media (max-width: 860px) { .message { grid-template-columns: 1fr; } .message figure { max-width: 360px; } }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); list-style: none; }
.member { padding: var(--s-6); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.member .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-weight: 900; font-size: var(--fs-lg); overflow: hidden; }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member .role { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: 0.06em; }
.member .name { font-size: var(--fs-lg); font-weight: 900; }
.member .does { font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

/* ───── 事業ページ ───── */
.flow-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; }
.flow-line li { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); border-right: 1px solid var(--line); position: relative; min-width: 0; }
.flow-line li:last-child { border-right: 0; }
.flow-line .step { font-family: var(--font-en); font-size: var(--fs-xs); letter-spacing: 0.14em; color: var(--ink-3); }
.flow-line h3 { font-size: var(--fs-lg); font-weight: 900; }
.flow-line p { font-size: var(--fs-sm); color: var(--ink-2); }
.flow-line .svc { font-family: var(--font-en); font-size: var(--fs-xs); font-weight: 700; background: var(--accent-soft); align-self: flex-start; padding: 2px 10px; border-radius: var(--r-pill); }
@media (max-width: 860px) { .flow-line { grid-template-columns: 1fr; } .flow-line li { border-right: 0; border-bottom: 1px solid var(--line); } .flow-line li:last-child { border-bottom: 0; } }
.biz-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6) var(--s-8); padding-block: var(--s-8); border-top: 1px solid var(--line); align-items: start; }
.biz-row .media { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.biz-row .media img { width: 100%; height: 100%; object-fit: cover; }
.biz-row .media.contain { position: relative; }
.biz-row .media.contain img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 72%; max-height: 72%; object-fit: contain; }
.biz-row .media.contain img.app-icon { max-width: 44%; max-height: 58%; border-radius: 22%; box-shadow: 0 18px 40px rgba(14, 14, 14, 0.18); }
.biz-row .txt { display: flex; flex-direction: column; gap: var(--s-4); }
.biz-row .kind { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3); letter-spacing: 0.08em; }
.biz-row h3 { font-family: var(--font-en); font-size: var(--fs-2xl); font-weight: 700; }
.biz-row .catch { font-size: var(--fs-lg); font-weight: 900; }
.biz-row p { color: var(--ink-2); }
.biz-row .uses { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); margin-top: var(--s-2); }
.biz-row .uses li { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); background: var(--white); }
.biz-row .uses b { font-size: var(--fs-sm); }
.biz-row .uses span { color: var(--ink-3); font-size: var(--fs-xs); }
.biz-row .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
@media (max-width: 860px) { .biz-row { grid-template-columns: 1fr; } }

/* ───── 会社概要 ───── */
.profile { width: 100%; border-collapse: collapse; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.profile tr:first-child th, .profile tr:first-child td { border-top: 1px solid var(--line); }
.profile th { width: 12em; font-weight: 700; font-size: var(--fs-sm); color: var(--ink-3); padding-right: var(--s-5); }
.profile td ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.profile td .muted { color: var(--ink-3); font-size: var(--fs-sm); }
@media (max-width: 640px) { .profile th, .profile td { display: block; width: auto; } .profile th { border-bottom: 0; padding-bottom: 0; } .profile td { padding-top: var(--s-2); } .profile tr:first-child td { border-top: 0; } }
.timeline { list-style: none; border-left: 1px solid var(--line); margin-left: 6px; display: flex; flex-direction: column; gap: var(--s-6); }
.timeline li { position: relative; padding-left: var(--s-6); display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: var(--s-4); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 0.6em; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.timeline li:last-child::before { background: var(--accent); border-color: var(--ink); }
.timeline .when { font-family: var(--font-en); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 0; } }
.policy { max-width: 44em; display: flex; flex-direction: column; gap: var(--s-4); color: var(--ink-2); }
.policy ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: var(--s-2); }

/* ───── フォーム ───── */
.form { display: grid; gap: var(--s-5); max-width: 720px; }
.form .row { display: grid; gap: var(--s-2); }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 640px) { .form .row-2 { grid-template-columns: 1fr; } }
.form label, .form legend { font-size: var(--fs-sm); font-weight: 700; display: flex; align-items: center; gap: var(--s-2); }
.req { font-size: 10px; font-weight: 700; background: var(--ink); color: var(--paper); border-radius: var(--r-sm); padding: 1px 6px; letter-spacing: 0.06em; }
.opt { font-size: 10px; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: var(--fs-base); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form textarea { min-height: 160px; resize: vertical; line-height: 1.8; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .hint { font-size: var(--fs-xs); color: var(--ink-3); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; font-size: var(--fs-sm); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px; cursor: pointer; background: var(--white); transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.agree { font-size: var(--fs-sm); display: flex; gap: var(--s-3); align-items: flex-start; }
.agree input { margin-top: 0.5em; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--fs-sm); padding: var(--s-4); border-radius: var(--r-md); }
.form-status[data-kind="ok"] { background: var(--accent-soft); }
.form-status[data-kind="error"] { background: #fbe9e7; color: var(--danger); }
.form .btn[disabled] { opacity: 0.5; cursor: progress; }

/* ───── フッター ───── */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: var(--s-9); padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--s-7) var(--s-6); padding-bottom: var(--s-8); border-bottom: 1px solid var(--line-dark); }
.footer-brand { display: flex; flex-direction: column; gap: var(--s-4); }
.footer-brand .brand-mark { font-size: 1.8rem; }
.footer-brand .motto { color: var(--on-dark-2); font-size: var(--fs-sm); }
.footer-col h4 { font-family: var(--font-en); font-size: var(--fs-xs); letter-spacing: 0.16em; color: var(--on-dark-2); font-weight: 700; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { text-decoration: none; font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); font-size: var(--fs-xs); color: var(--on-dark-2); }
.footer-bottom a { text-decoration: none; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ───── サービス用ヘッダー（ROUTELESS） ───── */
.svc-header { background: var(--white); border-bottom: 1px solid var(--line); }
.svc-header .brand-mark { letter-spacing: 0.06em; }
.svc-header .back { font-size: var(--fs-xs) !important; color: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 12px !important; }
.svc-header .back::after { display: none; }

/* ───── リビール（JSが動いたときだけ隠す） ───── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .hero h1 .mark path { stroke-dashoffset: 0; }
  .hero-foot .sub { opacity: 1; transform: none; }
}

/* 2カラムの下層ページ見出し（/routeless/work）は列幅に合わせて小さくする */
.page-hero .split h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); }

/* ───── FVの入口ボタン（目的から探す） ───── */

/* ヘッダーの資料請求（細い枠のボタン） */
.btn-doc { padding: 9px 16px; }
.is-over-hero .btn-doc:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (max-width: 860px) { .gnav .btn-doc { margin-top: var(--s-5); justify-content: center; } .gnav .btn-doc + .btn { margin-top: var(--s-3); } }

/* フッターのSNS */
.sns { display: inline-flex; gap: var(--s-4); }
.sns a:hover { color: var(--accent); }

/* ───── ROUTELESS ───── */
.rl-hero .hero-media img { filter: grayscale(0.25) contrast(1.05); }
.compare { background: var(--white); border-radius: var(--r-md); }
.compare th, .compare td { padding-inline: var(--s-4); }
.compare thead th { font-family: var(--font-en); font-size: var(--fs-xs); letter-spacing: 0.1em; color: var(--ink-3); border-top: 0; }
.compare td:last-child { font-weight: 700; color: var(--ink); background: var(--accent-soft); }
@media (max-width: 640px) { .compare thead { display: none; } .compare td::before { display: block; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 700; } .compare td:nth-child(2)::before { content: "ロゲイニング"; } .compare td:nth-child(3)::before { content: "ROUTELESS"; } }

/* ───── プレスキット ───── */
.press-text { max-width: 44em; display: flex; flex-direction: column; gap: var(--s-4); color: var(--ink-2); }
.press-text h3 { font-size: var(--fs-sm); color: var(--ink); margin-top: var(--s-4); }
.press-text p { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.press-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-4); }
.press-grid li { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.press-grid .thumb { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); display: grid; place-items: center; padding: var(--s-5); overflow: hidden; }
.press-grid .thumb.dark { background: var(--ink); border-color: var(--ink); }
.press-grid .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.press-grid .thumb.photo { padding: 0; }
.press-grid .thumb.photo img { width: 100%; height: 100%; object-fit: cover; }
.press-grid .text-link { align-self: flex-start; font-size: var(--fs-sm); }

/* FVの地球は画面の右寄りにあるので、縦長の画面では右側を中心に切り出す */
.hero-media video { object-position: 68% 50%; }
.hero-media.globe::after { background:
  linear-gradient(180deg, rgba(14,14,14,0.35) 0%, rgba(14,14,14,0) 25%, rgba(14,14,14,0) 60%, rgba(14,14,14,0.8) 100%),
  linear-gradient(90deg, rgba(14,14,14,0.5) 0%, rgba(14,14,14,0) 55%); }
@media (max-width: 760px) { .hero-media.globe video { opacity: 0.75; } }

/* ヘッダーのロゴ（明るい背景では黒、FVの上では白に切り替える） */
.brand { align-items: center; gap: var(--s-2); }
.brand-logo { width: 30px; height: 30px; object-fit: contain; flex: none; }
.brand .logo-white { display: none; }
.is-over-hero .brand .logo-ink { display: none; }
.is-over-hero .brand .logo-white { display: block; }
.menu-open.is-over-hero .brand .logo-ink { display: block; }
.menu-open.is-over-hero .brand .logo-white { display: none; }
.footer-brand .brand-mark { display: inline-flex; align-items: center; gap: var(--s-2); }
.footer-brand .brand-logo { width: 34px; height: 34px; }
.brand-logo { width: 36px; height: 36px; }
/* ナビのリンクの余白指定がボタンの余白を上書きしないようにする */
.gnav a.btn { padding: 9px 18px; }

/* ───── ニュース一覧（/news）：日付・カテゴリ・本文の3列。本文は右の列にまとめる ───── */
.news-entries { list-style: none; border-top: 1px solid var(--line); }
.news-entry { display: grid; grid-template-columns: 7.5em 9em minmax(0, 1fr); gap: var(--s-2) var(--s-5); align-items: baseline; padding: var(--s-6) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.news-main { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.news-title { font-size: var(--fs-lg); font-weight: 700; line-height: 1.6; }
.news-text { display: flex; flex-direction: column; gap: var(--s-3); color: var(--ink-2); max-width: 42em; }
.news-empty { padding: var(--s-7) 0; color: var(--ink-3); }
.news-entry:target { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
@media (max-width: 640px) {
  .news-entry { grid-template-columns: auto 1fr; }
  .news-main { grid-column: 1 / -1; }
}

/* ───── 日本語の改行：本文は画面幅いっぱいまで流し、文ごとに改行する（生成スクリプトで「。」のあとに改行を入れる）───── */
.nowrap { white-space: nowrap; }

/* ───── 事業カード：カーソルを当てると背景に写真が出て、文字が白に変わる ───── */
.biz .biz-photo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.biz .biz-photo img { width: 100%; height: 100%; object-fit: cover; }
.biz:not(.main) .biz-photo { opacity: 0; transition: opacity 0.5s var(--ease); }
.biz:not(.main) .biz-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,0.55), rgba(14,14,14,0.85)); }
.biz:not(.main) .biz-photo img { transform: scale(1.06); transition: transform 1.2s var(--ease); }
.biz > *:not(.biz-photo) { position: relative; z-index: 1; }
.biz:not(.main) h3, .biz:not(.main) p, .biz:not(.main) .biz-kind { transition: color 0.4s var(--ease); }
@media (hover: hover) {
  .biz:not(.main):hover { border-color: var(--ink); }
  .biz:not(.main):hover .biz-photo { opacity: 1; }
  /* Web制作のカードは写真を出さず、カードの色だけ変える */
  a.biz.wide:hover { background: var(--ink); }
  .biz:not(.main):hover .biz-photo img { transform: scale(1); }
  .biz:not(.main):hover h3 { color: var(--on-dark); }
  .biz:not(.main):hover p, .biz:not(.main):hover .biz-kind { color: var(--on-dark-2); }
  .biz:not(.main):hover .arrow-c { border-color: var(--accent); }
  .biz.main:hover { border-color: var(--accent); }
}
.biz:focus-visible .biz-photo { opacity: 1; }
.biz:focus-visible h3 { color: var(--on-dark); }
.biz:focus-visible p, .biz:focus-visible .biz-kind { color: var(--on-dark-2); }

/* ───── スマホのFV：メッセージと地球だけに絞る ───── */
@media (max-width: 760px) {
  .hero { min-height: 100svh; }
  .hero-media.globe video { opacity: 1; object-position: 72% 30%; }
  .hero-media.globe::after { background: linear-gradient(180deg, rgba(14,14,14,0.15) 0%, rgba(14,14,14,0) 30%, rgba(14,14,14,0.55) 58%, rgba(14,14,14,0.95) 100%); }
  .hero-body { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .hero h1 { margin-top: var(--s-3); }
  /* スマホは「当たり前にいる／文化をつくる。」で折り返し、3行で大きく見せる */
  .hero h1 { font-size: min(var(--fs-hero), calc((100vw - 2 * var(--gutter)) / 11.6)); }
  .hero h1 .l2b { display: block; }
  .hero-foot .sub { display: none; }
  .hero-foot { margin-top: var(--s-5); justify-content: flex-end; }
  .hero-ctrl { width: 32px; height: 32px; }
}

/* ───── トップの説明文を小さめに ───── */
.page-top .split .body { font-size: var(--fs-sm); line-height: 1.95; }
.page-top .sec-head .lead { font-size: var(--fs-sm); }
@media (max-width: 374px) { .page-top .sec-head .lead { font-size: 13px; letter-spacing: 0; } }
.page-top .biz p { font-size: 0.8125rem; line-height: 1.8; }
.page-top .biz.main p { font-size: var(--fs-sm); }
.page-top .contact-card p { font-size: 0.8125rem; }
.page-top .hero-foot .sub { font-size: 0.8125rem; line-height: 1.9; }

/* スマホでは説明文の幅の上限を外し、画面の端まで文字を流す */
@media (max-width: 760px) {
  .sec-head .lead, .split .body, .prose, .page-hero .lead, .policy, .news-text, .press-text { max-width: none; }
}

/* ───── トップを開いたときのオープニング演出（/corp/intro.js） ───── */
.intro-veil { display: none; }
html.intro .intro-veil { display: block; position: fixed; inset: 0; z-index: 300; background-color: #0e0e0e; cursor: pointer; animation: intro-failsafe 0.6s linear 6s forwards; }
.intro-veil canvas { display: block; width: 100%; height: 100%; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }

/* ───── スマホの事業カード：タイトルと説明文を近づけ、Web制作のタイトルを1行に ───── */
@media (max-width: 760px) {
  .biz:not(.main) { min-height: 0; justify-content: flex-start; gap: var(--s-5); }
  .biz.wide h3 { font-size: min(var(--fs-xl), calc((100vw - 2 * var(--gutter) - 2 * var(--s-6) - 44px - var(--s-4)) / 11.4)); white-space: nowrap; }
}

/* ROUTELESS for Work：冒頭の説明文を一段小さく */
.page-work .page-hero .lead { font-size: var(--fs-base); }
