/* ============================================================
   Vmark — Editorial Dark
   黒×生成り、明朝×セリフ。罫線と余白で見せる雑誌的レイアウト。
   ============================================================ */

:root {
  --bg: #0c0c0d;
  --bg-2: #111113;
  --text: #ece9e2;
  --muted: #8e8c85;
  --line: rgba(236, 233, 226, 0.16);
  --line-soft: rgba(236, 233, 226, 0.09);
  --lapis: #1b4b8a;
  --blue: #6d9bd8;

  --serif: "Cormorant Garamond", "Zen Old Mincho", serif;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", sans-serif;

  --header-h: 84px;
  --pad: clamp(24px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* 粒子テクスチャ（フィルム感） */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--lapis); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1200px, 100% - var(--pad) * 2); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(12, 12, 13, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1;
}
.brand-mark { font: inherit; color: inherit; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.14em;
  color: var(--muted);
  padding: 6px 0; position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; position: relative; z-index: 110; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--text); margin: 7px auto; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500; letter-spacing: 0.22em;
  padding: 16px 36px;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
  white-space: nowrap;
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-arrow::after { content: "→"; font-family: var(--serif); font-size: 16px; transition: transform 0.3s; }
.btn-arrow:hover::after { transform: translateX(6px); }
.btn-ghost { border-color: transparent; padding-inline: 8px; color: var(--muted); }
.btn-ghost:hover { background: transparent; color: var(--text); }
.btn-ghost::after { content: "↓"; font-family: var(--serif); }
.nav-cta { padding: 12px 26px; font-size: 12px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative;
  overflow: clip;
  padding-top: var(--header-h);
}
.hero-v {
  position: absolute; right: -2%; bottom: -16%;
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(420px, 58vw, 880px); line-height: 0.75;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 233, 226, 0.1);
  user-select: none; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 17px; letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 34px;
}
.eyebrow::before { content: ""; width: 56px; height: 1px; background: var(--line); }

.hero h1 {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(34px, 6.2vw, 74px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.hero h1 .accent { color: var(--blue); }

.hero-en {
  margin-top: 26px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-lead {
  margin-top: 30px;
  max-width: 560px;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
}

.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 48px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; left: calc(var(--pad) + 2px); bottom: 0;
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.42em;
  color: var(--muted);
  writing-mode: vertical-rl;
  display: inline-flex; align-items: center; gap: 14px;
  padding-bottom: 96px;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 72px;
  background: linear-gradient(var(--muted), transparent);
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line-soft);
  overflow: clip;
  padding: 22px 0;
}
.marquee-track {
  display: flex; gap: 0;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: 0.3em;
  color: var(--muted);
  padding-right: 72px;
  white-space: nowrap;
}
.marquee-track span i { font-style: italic; color: var(--blue); padding-right: 72px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 13vw, 160px) 0; position: relative; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.section-head { margin-bottom: clamp(48px, 7vw, 84px); }
.section-head.center { text-align: left; } /* 中央寄せをやめ、左揃えの誌面風に */

.section-title {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin-top: 18px;
}
.section-desc { margin-top: 20px; color: var(--muted); font-size: 14px; font-weight: 300; max-width: 620px; }

/* ---------- Services（誌面のインデックス風） ---------- */
.services-grid { border-top: 1px solid var(--line); }
.service-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: baseline;
  gap: 28px;
  padding: clamp(30px, 4.5vw, 52px) 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s;
}
.service-num {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 30px; color: var(--muted);
}
.service-card h3 {
  font-family: var(--mincho); font-weight: 500;
  font-size: clamp(20px, 2.8vw, 32px);
  letter-spacing: 0.06em; line-height: 1.6;
}
.service-card p {
  grid-column: 2;
  margin-top: 12px;
  max-width: 660px;
  font-size: 13.5px; font-weight: 300;
  color: var(--muted);
}


/* ---------- Strength ---------- */
.strength-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 88px);
}
.strength-item { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; border-top: 1px solid var(--line); padding-top: 30px; }
.strength-no {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 40px; line-height: 1; color: var(--blue);
}
.strength-item h3 {
  font-family: var(--mincho); font-weight: 500;
  font-size: 19px; letter-spacing: 0.06em; margin-bottom: 12px;
}
.strength-item p { font-size: 13.5px; font-weight: 300; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { text-align: center; padding: clamp(20px, 4vw, 40px) 0; }
.cta-band h2 {
  font-family: var(--mincho); font-weight: 500;
  font-size: clamp(24px, 4vw, 46px);
  letter-spacing: 0.08em; line-height: 1.7;
}
.cta-band p { margin: 26px auto 44px; max-width: 600px; color: var(--muted); font-size: 14px; font-weight: 300; }

/* ---------- Page hero（下層） ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(70px, 10vw, 130px)) 0 clamp(60px, 9vw, 110px);
  border-bottom: 1px solid var(--line-soft);
  position: relative; overflow: clip;
}
.page-num {
  position: absolute; right: 2%; top: 50%; transform: translateY(-42%);
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(140px, 22vw, 300px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 233, 226, 0.12);
  pointer-events: none; user-select: none;
}
.page-hero h1 {
  font-family: var(--mincho); font-weight: 500;
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: 0.07em; line-height: 1.6;
  margin-top: 14px;
}
.page-hero p { margin-top: 24px; max-width: 640px; color: var(--muted); font-size: 14px; font-weight: 300; }

/* ---------- Trouble list ---------- */
.trouble-list { max-width: 760px; border-top: 1px solid var(--line); }
.trouble-list li {
  padding: 24px 6px 24px 44px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 14.5px; font-weight: 300;
  color: var(--text);
}
.trouble-list li::before {
  content: "—";
  position: absolute; left: 6px;
  font-family: var(--serif); font-style: italic;
  color: var(--blue);
}

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.feature-card { background: var(--bg); padding: clamp(30px, 4vw, 48px); transition: background 0.4s; }
.section.alt .feature-card { background: var(--bg-2); }
.feature-card:hover { background: rgba(236, 233, 226, 0.03); }
.feature-card h3 {
  font-family: var(--mincho); font-weight: 500;
  font-size: 19px; letter-spacing: 0.06em; margin-bottom: 14px;
}
.feature-card p { font-size: 13.5px; font-weight: 300; color: var(--muted); }

/* ---------- Flow ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); counter-reset: flow; }
.flow-step { border-top: 1px solid var(--line); padding-top: 26px; counter-increment: flow; }
.flow-step::before {
  content: "0" counter(flow);
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 34px; color: var(--blue); line-height: 1;
  display: block; margin-bottom: 18px;
}
.flow-step h3 { font-family: var(--mincho); font-weight: 500; font-size: 17px; letter-spacing: 0.05em; margin-bottom: 10px; }
.flow-step p { font-size: 13px; font-weight: 300; color: var(--muted); }

/* ---------- Message（会社概要） ---------- */
.message-box { max-width: 760px; }
.message-box p { font-size: 15px; font-weight: 300; line-height: 2.4; margin-bottom: 2em; }
.message-sign { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 48px; }
.sign-role { font-size: 12px; letter-spacing: 0.18em; color: var(--muted); }
.sign-name { font-family: var(--mincho); font-weight: 500; font-size: 24px; letter-spacing: 0.28em; }

/* ---------- Company table ---------- */
.company-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.company-table th, .company-table td { padding: 26px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 300; }
.company-table th {
  width: 200px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 15px; letter-spacing: 0.16em; color: var(--muted);
  white-space: nowrap;
}
.company-table td { font-size: 14.5px; }

/* ---------- Timeline（代表略歴） ---------- */
.timeline {
  max-width: 680px;
  margin-inline: auto;
  position: relative;
  padding-left: 48px;
}
.timeline::before {
  content: "";
  position: absolute; left: 9px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(var(--line), var(--line) 82%, var(--blue));
}
.tl-item { position: relative; padding-bottom: clamp(40px, 6vw, 64px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute; left: -43px; top: 10px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--muted);
}
.tl-label {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 15px; letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 10px;
}
.tl-item p {
  font-family: var(--mincho); font-weight: 500;
  font-size: clamp(17px, 2.4vw, 22px);
  letter-spacing: 0.05em; line-height: 1.9;
}
.tl-now::before {
  background: var(--blue); border-color: var(--blue);
  box-shadow: 0 0 16px rgba(109, 155, 216, 0.65);
}
.tl-now .tl-label { color: var(--blue); }

/* ---------- Contact form ---------- */
.contact-wrap { max-width: 680px; margin-inline: auto; }
.form-group { margin-bottom: 42px; }
.form-group label {
  display: block;
  font-size: 12px; letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 10px;
}
.req { color: var(--blue); margin-left: 10px; font-size: 11px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  font-family: var(--sans); font-size: 16px; font-weight: 300;
  color: var(--text);
  letter-spacing: 0.04em;
  border-radius: 0;
  transition: border-color 0.3s;
}
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--bg-2); color: var(--text); }
.form-group textarea { min-height: 160px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-bottom-color: var(--blue);
}
.form-submit { margin-top: 56px; text-align: center; }
.form-status { margin-top: 24px; font-size: 13px; text-align: center; letter-spacing: 0.1em; }
.form-status.ok { color: var(--blue); }
.form-status.ng { color: #c97a6d; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: clamp(60px, 8vw, 100px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 64px; }
.footer-brand .brand { font-size: 30px; }
.footer-brand p { margin-top: 20px; max-width: 320px; font-size: 12.5px; font-weight: 300; color: var(--muted); }
.footer-col h5 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 15px; letter-spacing: 0.2em; color: var(--muted);
  margin-bottom: 20px;
}
.footer-col a, .footer-col span { display: block; font-size: 13px; font-weight: 300; color: var(--muted); padding: 7px 0; transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: var(--text); padding-left: 8px; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.12em; color: var(--muted);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-scroll::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .strength-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0;
    background: rgba(12, 12, 13, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 0 var(--pad);
    gap: 40px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-links a {
    font-family: var(--mincho);
    font-size: clamp(26px, 7vw, 36px);
    letter-spacing: 0.1em;
    color: var(--text);
    padding: 10px 0;
  }
  .nav-links a::after { display: none; }
  body.nav-locked { overflow: hidden; }

  .service-card { grid-template-columns: 1fr; gap: 10px; padding: 30px 4px; }
  .service-card p { grid-column: 1; }
  .service-link { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .service-num { font-size: 22px; }

  .page-num { opacity: 0.5; }
  .hero-scroll { display: none; }
}
@media (max-width: 560px) {
  .flow-grid { grid-template-columns: 1fr; }
  .company-table th { width: 120px; letter-spacing: 0.08em; }
  .hero-actions { gap: 18px; }
  .btn { padding: 14px 26px; letter-spacing: 0.16em; }
}
