/* ===== VELNEX トップページ専用 ===== */
:root {
  --bg: #080706;
  --bg2: #0e0c0b;
  --card: #13100d;
  --text: #e8e0d4;
  --text-sub: rgba(232, 224, 212, 0.66);
  --text-dim: rgba(232, 224, 212, 0.6);
  --gold: #b8966e;
  --line: rgba(232, 224, 212, 0.12);
  --serif: 'Noto Serif JP', serif;
  --en: 'Cormorant Garamond', serif;
  --num: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #d4b48c; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.sp-only { display: none; }

.wrap { padding: 0 170px; }

/* ----- ボタン ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 32px; border-radius: 2px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.08em;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-gold { background: var(--gold); color: #0e0c0b; }
.btn-gold:hover { color: #0e0c0b; }
.btn-ghost { border: 1px solid rgba(232, 224, 212, 0.35); color: var(--text); }
.btn-block { display: flex; width: 100%; margin-top: auto; }
.btn-large { height: 60px; padding: 0 44px; font-size: 16px; flex-shrink: 0; }

/* ----- ナビ ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 80px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled { background: rgba(8, 7, 6, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-btn {
  width: 44px; height: 44px; padding: 0; border: none; background: transparent;
  color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.nav-logo { font-family: var(--en); font-size: 26px; letter-spacing: 0.4em; margin-right: -0.4em; }
.nav-line {
  height: 40px; padding: 0 20px; display: flex; align-items: center;
  border: 1px solid rgba(232, 224, 212, 0.35); border-radius: 999px;
  font-size: 13px; letter-spacing: 0.08em;
}

/* ----- メニュー ----- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(8, 7, 6, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.menu[hidden] { display: none; }
.menu a { font-family: var(--en); font-size: 28px; letter-spacing: 0.2em; }
.menu .menu-sub { font-family: var(--serif); font-size: 16px; letter-spacing: 0.12em; color: var(--text-sub); }
.menu .btn { font-family: inherit; font-size: 15px; letter-spacing: 0.08em; margin-top: 12px; }

/* ----- 現在地インジケーター ----- */
.indicator { position: fixed; z-index: 45; right: 40px; top: 120px; pointer-events: none; }
.indicator-list { display: flex; flex-direction: column; gap: 14px; }
.indicator-list li { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 20px; }
.ind-label { font-size: 12px; letter-spacing: 0.16em; opacity: 0; transform: translateX(6px); transition: opacity 0.3s, transform 0.3s; }
.ind-line { width: 12px; height: 1px; background: rgba(232, 224, 212, 0.35); transition: width 0.3s, background 0.3s; }
.ind-num { font-family: var(--num); font-size: 12px; font-weight: 500; width: 18px; text-align: right; color: rgba(232, 224, 212, 0.45); transition: color 0.3s; }
.indicator-list li.active .ind-label { opacity: 1; transform: none; }
.indicator-list li.active .ind-line { width: 32px; background: var(--gold); }
.indicator-list li.active .ind-num { color: var(--gold); }
.indicator-pill { display: none; }

/* ----- 見出し ----- */
.eyebrow { font-family: var(--en); font-style: italic; font-size: 18px; letter-spacing: 0.24em; color: var(--gold); }
.heading { font-family: var(--serif); font-weight: 300; font-size: 36px; letter-spacing: 0.1em; }
.lead { font-size: 15px; line-height: 2; color: rgba(232, 224, 212, 0.7); }
.section-head { display: flex; flex-direction: column; gap: 14px; }
.sub-label { font-size: 13px; letter-spacing: 0.2em; color: var(--text-dim); }
.num { font-family: var(--num); font-size: 13px; font-weight: 500; color: var(--gold); }

/* ----- 1. 動画 ----- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1000px; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,7,6,0.55) 0%, rgba(8,7,6,0) 22%, rgba(8,7,6,0) 55%, rgba(8,7,6,0.9) 100%);
}
.hero-content { position: absolute; left: 80px; bottom: 88px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-content .eyebrow { font-size: 20px; }
.hero-sub { font-family: var(--serif); font-weight: 300; font-size: 20px; line-height: 1.8; letter-spacing: 0.12em; color: rgba(232, 224, 212, 0.86); }
.hero-content .btn { margin-top: 8px; }

/* ----- セクション共通 ----- */
.section { padding: 128px 0 120px; }
.section-alt { background: var(--bg2); }

/* ----- 2. カラー（横スライド） ----- */
.section-color { display: flex; flex-direction: column; gap: 40px; }
.slider {
  display: flex; gap: 24px; overflow-x: auto;
  padding: 0 170px; scroll-padding: 0 170px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; outline: none;
}
.slider::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 900px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; }
.slide img { width: 100%; aspect-ratio: 900 / 520; object-fit: cover; border-radius: 2px; display: block; background: var(--bg2); }
.slide figcaption { display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-size: 18px; letter-spacing: 0.12em; }
.slider-controls { display: flex; align-items: center; justify-content: space-between; }
.dots { display: flex; align-items: center; }
.dot { width: 44px; height: 44px; padding: 0; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dot::before { content: ''; display: block; height: 2px; width: 12px; background: rgba(232, 224, 212, 0.3); transition: width 0.3s, background 0.3s; }
.dot.active::before { width: 32px; background: var(--gold); }
.arrows { display: flex; gap: 12px; }
.arrow {
  width: 52px; height: 52px; border-radius: 999px; border: 1px solid rgba(232, 224, 212, 0.3);
  background: transparent; color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: border-color 0.2s;
}
.arrow:hover { border-color: var(--gold); }

/* ----- 3. 料金 ----- */
#pricing .wrap { display: flex; flex-direction: column; gap: 56px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.plans .plan-main { order: 2; }
.plan { padding: 48px; border: 1px solid rgba(232, 224, 212, 0.14); border-radius: 2px; display: flex; flex-direction: column; gap: 22px; }
.plan-main { border-color: var(--gold); background: var(--card); }
.plan-top { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.plan-kicker { font-size: 13px; letter-spacing: 0.14em; color: var(--text-dim); }
.badge { padding: 4px 12px; background: var(--gold); color: #0e0c0b; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; }
.plan-name { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: 0.08em; }
.price { font-family: var(--num); font-weight: 600; font-size: 46px; }
.from { font-family: 'Noto Sans JP', sans-serif; font-weight: 500; font-size: 0.6em; margin-left: 2px; }
.tax { font-family: 'Noto Sans JP', sans-serif; font-weight: 400; font-size: 13px; color: var(--text-dim); }
.plan-list { padding-left: 18px; list-style: disc; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.8; color: rgba(232, 224, 212, 0.8); }
.plan .btn-block { margin-top: auto; }
.notes { display: flex; flex-direction: column; gap: 6px; font-size: 13px; letter-spacing: 0.06em; color: var(--text-dim); }

/* ----- 4. 出張施工 ----- */
#service .wrap { display: flex; flex-direction: column; gap: 64px; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.point { padding: 36px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.point > div { display: flex; flex-direction: column; gap: 14px; }
.point h3 { font-size: 18px; font-weight: 500; letter-spacing: 0.06em; }
.point p { font-size: 14px; line-height: 1.9; color: var(--text-sub); }
.flow { display: flex; flex-direction: column; gap: 28px; }
.flow-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.flow-list li { padding-top: 20px; border-top: 1px solid rgba(232, 224, 212, 0.2); display: flex; flex-direction: column; gap: 8px; }
.flow-list li:first-child { border-top-color: var(--gold); }
.flow-list .num { font-size: 12px; }
.flow-list > li > div { display: flex; flex-direction: column; gap: 8px; }
.flow-title { font-size: 15px; font-weight: 500; }
.flow-desc { font-size: 13px; line-height: 1.8; color: var(--text-dim); }
.area { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 48px; border-top: 1px solid var(--line); }
.area-info { display: flex; flex-direction: column; gap: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 20px; border: 1px solid rgba(232, 224, 212, 0.2); border-radius: 999px; font-size: 13px; letter-spacing: 0.1em; }
.area-note { font-size: 13px; color: var(--text-dim); }

/* ----- フッター ----- */
.footer { padding: 56px 170px; border-top: 1px solid rgba(232, 224, 212, 0.1); display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer-logo { font-family: var(--en); font-size: 22px; letter-spacing: 0.4em; }
.footer-links { display: flex; gap: 28px; font-size: 13px; }
.footer-links a { color: var(--text-sub); }
.footer-copy { font-size: 12px; color: rgba(232, 224, 212, 0.5); }

/* ----- 下層ページ（プライバシー・404） ----- */
.nav-back { display: flex; align-items: center; gap: 6px; height: 44px; font-size: 13px; letter-spacing: 0.08em; color: var(--text-sub); }
.subpage .nav { border-bottom: 1px solid rgba(232, 224, 212, 0.08); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article { padding-top: 168px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 16px; }
.article .heading { margin-bottom: 4px; }
.article .updated { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }
.article h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: 0.06em; color: var(--gold); margin-top: 28px; }
.article p, .article li { font-size: 15px; line-height: 1.95; color: var(--text-sub); }
.article ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.article a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.not-found { min-height: 100vh; min-height: 100svh; padding: 120px 24px 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.not-found-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ===== タブレット ===== */
@media (max-width: 1200px) {
  .wrap, .footer { padding-left: 64px; padding-right: 64px; }
  .slider { padding: 0 64px; scroll-padding: 0 64px; }
  .slide { flex-basis: 78vw; }
  .indicator { right: 20px; }
  .flow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}

/* ===== スマホ ===== */
@media (max-width: 767px) {
  .sp-only { display: inline; }
  .wrap, .footer { padding-left: 20px; padding-right: 20px; }

  .nav { height: 64px; padding: 0 8px; }
  .nav-logo { font-size: 22px; }
  .nav-line { height: 44px; border: none; padding: 0 12px; font-size: 12px; }

  .indicator { right: 16px; top: 76px; }
  .indicator-list { display: none; }
  .indicator-pill {
    display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px;
    background: rgba(8, 7, 6, 0.7); border: 1px solid rgba(232, 224, 212, 0.16); border-radius: 999px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .pill-num { font-family: var(--num); font-size: 11px; font-weight: 500; color: var(--gold); }
  .pill-label { font-size: 11px; letter-spacing: 0.14em; }

  .eyebrow { font-size: 16px; }
  .heading { font-size: 26px; }
  .lead { font-size: 14px; line-height: 1.9; }
  .section-head { gap: 10px; }

  .hero { max-height: none; }
  .hero-content { left: 24px; right: 24px; bottom: 56px; align-items: stretch; gap: 14px; }
  .hero-content .eyebrow { font-size: 17px; letter-spacing: 0.2em; }
  .hero-sub { font-size: 16px; line-height: 1.8; letter-spacing: 0.08em; }

  .section { padding: 88px 0 72px; }
  .section-color { gap: 28px; }
  .slider { gap: 12px; padding: 0 20px; scroll-padding: 0 20px; }
  .slide { flex-basis: 78vw; gap: 12px; }
  .slide img { aspect-ratio: 300 / 380; }
  .slide figcaption { font-size: 16px; gap: 12px; }
  .arrows { gap: 8px; }
  .arrow { width: 44px; height: 44px; }

  #pricing .wrap { gap: 28px; }

  .plans { grid-template-columns: 1fr; gap: 20px; }
  .plans .plan-main { order: 0; }
  .plan { padding: 32px 24px; gap: 16px; }
  .plan-kicker { font-size: 12px; }
  .plan-name { font-size: 20px; }
  .price { font-size: 38px; }
  .tax { font-size: 12px; }
  .plan-list { gap: 6px; font-size: 13px; }
  .notes { font-size: 12px; line-height: 1.8; gap: 4px; letter-spacing: 0; }

  #service .wrap { gap: 36px; }
  .points { grid-template-columns: 1fr; gap: 12px; }
  .point { padding: 20px; flex-direction: row; align-items: flex-start; }
  .point svg { flex-shrink: 0; width: 22px; height: 22px; }
  .point > div { gap: 4px; }
  .point h3 { font-size: 15px; }
  .point p { font-size: 13px; line-height: 1.8; }
  .flow { gap: 16px; }
  .sub-label { font-size: 12px; }
  .flow-list { grid-template-columns: 1fr; gap: 0; row-gap: 0; }
  .flow-list li, .flow-list li:first-child {
    padding: 14px 0; border-top: 1px solid var(--line);
    flex-direction: row; align-items: baseline; gap: 16px;
  }
  .flow-list li:last-child { border-bottom: 1px solid var(--line); }
  .flow-list .num { width: 20px; flex-shrink: 0; }
  .flow-list > li > div { gap: 2px; }
  .flow-title { font-size: 14px; font-weight: 400; }
  .flow-desc { font-size: 12px; line-height: 1.7; }
  .area { flex-direction: column; align-items: stretch; gap: 36px; padding-top: 0; border-top: none; }
  .area-info { gap: 12px; }
  .tags { gap: 8px; }
  .tags li { padding: 6px 16px; font-size: 12px; letter-spacing: 0; }
  .area-note { font-size: 12px; }
  .btn-large { height: 56px; }

  .nav-back span { display: none; }
  .article { padding-top: 120px; padding-bottom: 80px; }
  .article h2 { font-size: 17px; margin-top: 20px; }
  .article p, .article li { font-size: 14px; }

  .footer { padding-top: 40px; padding-bottom: 40px; flex-direction: column; gap: 20px; }
  .footer-logo { font-size: 20px; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .footer-copy { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
