/* YFJ Capital — デッキ（deck/project/slides）の配色・タイポグラフィを踏襲 */
:root {
  --ink: #1a1a1a;
  --ink-2: #2a2a2a;
  --ink-3: #1f1f1f;
  --text: #4d4d4d;
  --muted: #9a9a9a;
  --muted-2: #6a6a6a;
  --soft: #c9c9c9;
  --line: #e3e0da;
  --line-2: #d6d3cd;
  --paper: #f7f5f2;
  --cream: #fbfaf8;
  --sand: #f0efec;
  --white: #ffffff;
  --radius: 20px;
  --header-h: 72px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd {
  margin: 0;
}

h1, h2, h3, h4, .lead {
  word-break: auto-phrase;
  line-break: strict;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text);
  line-height: 1.8;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.logo-sm {
  width: 44px;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--sand);
}

.site-nav a.is-active {
  color: var(--paper);
  background: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--paper);
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: 50%;
  width: 56vw;
  height: 56vw;
  max-width: 760px;
  max-height: 760px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--sand) 0%, rgba(240, 239, 236, 0) 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.logo-hero {
  width: clamp(140px, 18vw, 220px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h1 {
  font-size: clamp(56px, 10vw, 128px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero .lead {
  font-size: clamp(18px, 2.4vw, 30px);
  max-width: 900px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid var(--muted);
  border-radius: 14px;
}

.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--muted);
  animation: scroll-dot 1.8s infinite;
}

@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-tight-top {
  padding-top: 0;
}

.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark .lead { color: var(--soft); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 860px;
}

.section-head h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.25;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}

/* ---------- Cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--radius);
  min-width: 0;
}

.card h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.4;
}

.card h4 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

.card p {
  line-height: 1.8;
}

.card-dark {
  background: var(--ink);
  color: var(--paper);
}
.card-dark p:not(.eyebrow) { color: var(--soft); }

.card-darker {
  background: var(--ink-2);
  color: var(--paper);
}
.card-darker p:not(.eyebrow) { color: var(--soft); }

.card-muted {
  background: var(--sand);
  border: 1px solid var(--line);
}
.card-muted p:not(.eyebrow):not(.meta) { color: var(--text); }

.card-white {
  background: var(--white);
  border: 1px solid var(--line);
}

a.card {
  transition: transform 0.3s, box-shadow 0.3s;
}

a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.12);
}

.section-dark a.card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.business-card {
  justify-content: space-between;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.more {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.illus svg {
  display: block;
  width: 100%;
  height: auto;
}

.illus-step {
  max-width: 320px;
}

.illus-phone {
  flex: 0 0 auto;
  width: clamp(110px, 11vw, 160px);
}

.app-card h3 {
  font-size: clamp(20px, 2vw, 26px);
}

.illus-bars {
  width: 100%;
  max-width: 360px;
}

.bullets {
  padding-left: 1.2em;
  color: var(--text);
  line-height: 1.9;
}

.card-dark .bullets { color: var(--soft); }

.meta {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- Investment ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  border-top: 1px solid #3a3a3a;
  padding-top: 40px;
}

.stat dt {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--paper);
}

.stat dd {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.step .eyebrow { margin-top: 8px; }

/* ---------- Portfolio ---------- */
.pf-card hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line-2);
  margin: 0;
}

.pf-card h3 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.company {
  margin-top: clamp(64px, 9vw, 112px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.company-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.company-head h3 {
  margin-top: 10px;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.3;
}

.company-head .dash {
  color: var(--muted);
}

.company-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.company-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.body-lg {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text);
  line-height: 1.9;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  padding: 24px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.metric dt {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.2;
}

.metric dd {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.metric-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.metric-dark dd { color: var(--soft); }

.ext-link {
  align-self: flex-start;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.ext-link:hover { color: var(--text); }

/* ---------- Software ---------- */
.b2b-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.target {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.target-label { font-size: 18px; color: var(--muted) !important; }
.target-value {
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--paper) !important;
}
.target-sub { font-size: 18px; margin-bottom: 16px; }

.app-card {
  flex-direction: row;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
}

.app-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* ---------- Team ---------- */
.member {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.member-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  filter: grayscale(0.15);
}

.member-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.member-text h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.member-bio {
  color: var(--text);
  line-height: 1.95;
  font-size: clamp(15px, 1.4vw, 17px);
}

/* ---------- Message ---------- */
.message {
  text-align: center;
  padding: clamp(96px, 14vw, 176px) 0;
}

.message-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.message h2 {
  font-size: clamp(28px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 1.4;
}

.message .lead {
  max-width: 820px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  color: var(--text);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  font-size: 14px;
}

.logo-footer {
  width: 96px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  align-content: flex-start;
}

.footer-nav a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.sources {
  max-width: 760px;
  line-height: 1.8;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; }
  .company-body,
  .b2b-grid { grid-template-columns: 1fr; }
  .step .illus-step { max-width: 260px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 20px;
    background: rgba(247, 245, 242, 0.98);
    box-shadow: 0 12px 24px rgba(26, 26, 26, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .is-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 12px;
  }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .grid-2,
  .stats { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .app-card { flex-direction: column; align-items: flex-start; }
  .member { grid-template-columns: 1fr; }
  .member-photo { max-width: 220px; }
  .illus-phone { width: 140px; }
  .metrics { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}
