/* ============ スマカクHP デザインパターンデモ 共通CSS ============ */
:root {
  --teal: #52bcb1;
  --teal-deep: #2a7f76;
  --ink: #0c1f22;
  --ink-mid: #3d5a57;
  --paper: #f8fcfb;
  --serif: "Shippori Mincho B1", serif;
  --sans: "Noto Sans JP", sans-serif;
  --en: "Inter", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: initial; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- テーマ ---------- */
.theme-dark { background: #071a20; color: #f2faf8; }
.theme-dark .sec-label, .theme-dark .rail { color: #a5c4c0; }
.theme-light { background: var(--paper); color: var(--ink); }

/* ---------- プリローダー ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.theme-dark .preloader { background: #071a20; }
.preloader-brand {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 34px);
  letter-spacing: .6em; text-indent: .6em; font-weight: 500;
  color: var(--ink);
}
.theme-dark .preloader-brand { color: #f2faf8; }
.preloader-sub {
  position: absolute; top: 56%; left: 50%; transform: translateX(-50%);
  font-family: var(--en); font-size: 10px; letter-spacing: .5em; text-indent: .5em;
  color: #7fa39e;
}
.preloader-count {
  position: absolute; right: 6vw; bottom: 5vh;
  font-family: var(--serif); font-size: clamp(48px, 8vw, 96px);
  color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums;
}
.theme-dark .preloader-count { color: #f2faf8; }
.preloader-bar {
  position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%);
  width: 64px; height: 2px; background: currentColor; transform-origin: left;
}

/* ---------- 常時UI ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  z-index: 900;
}
.rail {
  position: fixed; left: 28px; top: 50%; transform: translateY(-50%);
  z-index: 800; display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--en); font-size: 10px; letter-spacing: .25em;
  color: #6f918d;
}
.rail .rail-ch { font-weight: 600; }
.rail .rail-line { width: 1px; height: 90px; background: currentColor; opacity: .4; }
.rail .rail-label { writing-mode: vertical-rl; letter-spacing: .35em; opacity: .8; }
@media (max-width: 860px) { .rail { display: none; } }

.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 850; display: flex; gap: 2px; padding: 7px 10px;
  border-radius: 999px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 30, 34, .55); border: 1px solid rgba(82, 188, 177, .25);
}
.theme-light .nav, .nav.nav-light { background: rgba(255,255,255,.65); border-color: rgba(12,31,34,.08); }
.nav a {
  font-size: 12.5px; font-weight: 500; padding: 8px 15px; border-radius: 999px;
  color: #cfe2df; transition: background .3s, color .3s; white-space: nowrap;
}
.theme-light .nav a, .nav.nav-light a { color: #3d5a57; }
.nav a.on, .nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.theme-light .nav a.on, .theme-light .nav a:hover,
.nav.nav-light a.on, .nav.nav-light a:hover { background: rgba(12,31,34,.07); color: var(--ink); }
@media (max-width: 1100px) { .nav a { padding: 8px 10px; font-size: 11.5px; } }
@media (max-width: 860px) { .nav { display: none; } }

.brand {
  position: fixed; top: 22px; left: 32px; z-index: 850;
  display: flex; align-items: center; gap: 10px;
}
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand span { font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.cta-fixed {
  position: fixed; top: 22px; right: 32px; z-index: 850;
  display: flex; align-items: center; gap: 8px;
  background: var(--teal); color: #06282c !important;
  font-size: 13px; font-weight: 700; padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 8px 28px rgba(82,188,177,.4);
  transition: transform .3s;
}
.cta-fixed:hover { transform: translateY(-2px); }
.cta-fixed i { width: 6px; height: 6px; border-radius: 50%; background: #06282c; }
@media (max-width: 640px) { .brand span { display: none; } .cta-fixed { right: 16px; padding: 10px 15px; } }

.cursor {
  position: fixed; width: 28px; height: 28px; border: 1.5px solid var(--teal);
  border-radius: 50%; pointer-events: none; z-index: 999;
  transform: translate(-50%, -50%); transition: width .25s, height .25s, opacity .25s;
  opacity: .8;
}
.cursor.grow { width: 56px; height: 56px; opacity: .5; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- セクション基礎 ---------- */
section { position: relative; overflow: hidden; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 3; }
.sec { padding: 120px 0; }
.sec-label {
  display: flex; align-items: center; gap: 16px; margin-bottom: 34px;
  color: var(--ink-mid);
}
.sec-label .n { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.sec-label .l { width: 52px; height: 1px; background: currentColor; opacity: .5; }
.sec-label .e { font-family: var(--en); font-size: 12px; letter-spacing: .3em; font-weight: 500; }
.sec-label .j { font-size: 11.5px; letter-spacing: .15em; opacity: .8; }
h2.sec-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: .08em; line-height: 1.7;
}
.sec-sub { margin-top: 20px; font-size: 14px; line-height: 2; color: var(--ink-mid); max-width: 640px; }
.theme-dark .sec-sub { color: #9dbcb8; }

/* ---------- ヒーロー ---------- */
.hero { height: 100svh; min-height: 640px; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-bg { position: absolute; inset: -6%; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; z-index: 1; }
.hero-inner { position: relative; z-index: 3; padding: 0 24px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--en); font-size: 11px; letter-spacing: .4em; text-indent: .4em;
  color: #8fd0c9; margin-bottom: 26px;
}
.hero-tag::before, .hero-tag::after { content: ""; width: 44px; height: 1px; background: var(--teal); opacity: .6; }
h1.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 6.4vw, 76px); letter-spacing: .06em; line-height: 1.55;
}
.hero-sub { margin-top: 26px; font-size: clamp(12.5px, 1.2vw, 15px); letter-spacing: .1em; line-height: 2; }
.hero-ctas { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.btn:hover { transform: translateY(-3px); }
.btn-fill { background: var(--teal); color: #06282c; box-shadow: 0 10px 32px rgba(82,188,177,.35); }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.btn-ghost.dark { border-color: rgba(12,31,34,.25); color: var(--ink); background: rgba(255,255,255,.4); }
.hero-stats { margin-top: 52px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stat-chip {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 20px;
  border-radius: 14px; backdrop-filter: blur(10px);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.stat-chip b { font-family: var(--en); font-size: 22px; font-weight: 600; color: var(--teal); }
.stat-chip span { font-size: 11.5px; opacity: .85; }
.stat-chip.on-light { background: rgba(255,255,255,.6); border-color: rgba(12,31,34,.08); }
.stat-chip.on-light b { color: var(--teal-deep); }
.scroll-hint {
  position: absolute; left: 40px; bottom: 34px; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--en); font-size: 10px; letter-spacing: .35em; color: #86a5a1;
}
.scroll-hint::after { content: ""; width: 56px; height: 1px; background: var(--teal); animation: hint 2.2s ease-in-out infinite; transform-origin: left; }
@keyframes hint { 0%,100% { transform: scaleX(.4); opacity: .4; } 50% { transform: scaleX(1); opacity: 1; } }

/* ---------- グラスカード ---------- */
.glass {
  border-radius: 24px; padding: 56px;
  background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 24px 60px rgba(8,38,36,.12);
}
.glass-dark {
  background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
@media (max-width: 720px) { .glass { padding: 32px 24px; } }

/* ---------- サービスカード ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card {
  border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .4s cubic-bezier(.22,1,.36,1), background .4s, border-color .4s;
}
.card:hover { transform: translateY(-6px); }
.card .top { display: flex; justify-content: space-between; align-items: center; }
.card .rn { font-family: var(--serif); font-size: 15px; opacity: .65; }
.card .pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--en); font-size: 10px; letter-spacing: .18em;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(82,188,177,.14); border: 1px solid rgba(82,188,177,.4); color: var(--teal-deep);
}
.theme-dark .card .pill { color: #8ddcd3; }
.card .pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.card h3 { font-size: 18.5px; font-weight: 700; }
.card p { font-size: 12.5px; line-height: 1.9; color: var(--ink-mid); flex: 1; }
.theme-dark .card p { color: #9dbcb8; }
.card .foot { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: #7d9995; }
.card .foot .ar { font-size: 15px; color: var(--teal); transition: transform .3s; }
.card:hover .foot .ar { transform: translateX(5px); }
.card-dark { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.card-light { background: #fff; border: 1px solid rgba(12,31,34,.07); box-shadow: 0 14px 36px rgba(8,38,36,.06); }

/* ---------- 横スクロールギャラリー（お客様の声） ---------- */
.hs-outer { overflow: hidden; }
.hs-track { display: flex; gap: 30px; padding: 0 32px; will-change: transform; }
.voice-card {
  flex: 0 0 auto; width: min(430px, 82vw); height: 420px; border-radius: 20px;
  padding: 40px 36px; position: relative; overflow: hidden; color: #0a2422;
}
.voice-card .q { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; line-height: 1.9; letter-spacing: .04em; position: relative; z-index: 2; }
.voice-card .bignum { position: absolute; left: 28px; bottom: 4px; font-family: var(--en); font-weight: 800; font-size: 96px; color: rgba(255,255,255,.85); line-height: 1; }
.voice-card .who { position: absolute; left: 36px; bottom: 110px; font-size: 12.5px; opacity: .8; }
.hs-meta { display: flex; justify-content: space-between; padding: 26px 32px 0; font-family: var(--en); font-size: 11px; letter-spacing: .3em; color: #86a5a1; }

/* ---------- フロー ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } }
.flow .step { padding: 8px 28px; border-left: 1px solid rgba(12,31,34,.12); }
.theme-dark .flow .step { border-color: rgba(255,255,255,.12); }
.flow .step:first-child { border-left: none; }
.flow .big {
  font-family: var(--en); font-weight: 800; font-size: clamp(56px, 6vw, 88px); line-height: 1.1;
  color: transparent; -webkit-text-stroke: 1.5px var(--teal);
}
.flow h3 { margin-top: 12px; font-size: 16.5px; font-weight: 700; }
.flow p { margin-top: 10px; font-size: 12.5px; line-height: 1.9; color: var(--ink-mid); }
.theme-dark .flow p { color: #9dbcb8; }

/* ---------- マーキー ---------- */
.marquee { overflow: hidden; white-space: nowrap; padding: 28px 0; border-top: 1px solid rgba(12,31,34,.08); border-bottom: 1px solid rgba(12,31,34,.08); }
.theme-dark .marquee { border-color: rgba(255,255,255,.1); }
.marquee-inner { display: inline-block; animation: mq 26s linear infinite; }
.marquee span {
  font-family: var(--en); font-weight: 600; letter-spacing: .12em;
  font-size: clamp(20px, 2.4vw, 30px); margin-right: 64px;
  color: transparent; -webkit-text-stroke: 1px rgba(82,188,177,.75);
}
.marquee span.fill { color: var(--teal); -webkit-text-stroke: 0; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CTA ---------- */
.cta-sec { text-align: center; }
.cta-sec .en-quote { font-family: var(--en); font-style: italic; font-size: 14px; color: #7d9995; margin-top: 22px; }

/* ---------- フッター ---------- */
footer { position: relative; overflow: hidden; padding: 90px 0 40px; }
.foot-giant {
  font-family: var(--serif); font-weight: 800; text-align: center;
  font-size: clamp(90px, 19vw, 280px); line-height: 1.05; letter-spacing: .02em;
  background: linear-gradient(100deg, #52bcb1, #8fd8cf 45%, #5c9ed9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.foot-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 60px; font-family: var(--en); font-size: 11px; letter-spacing: .1em; color: #7d9995; }
.theme-dark footer .foot-bar { color: #86a5a1; }

/* ---------- アニメ初期状態 ---------- */
.js-reveal .rv-line { display: block; overflow: hidden; }
.js-reveal .rv-inner { display: block; transform: translateY(110%); }
[data-fade] { opacity: 0; transform: translateY(44px); }
[data-wipe] { clip-path: inset(0 100% 0 0); }
[data-wipe] img { transform: scale(1.15); }

/* ---------- パターン別 ---------- */
/* A: 深海ティール */
.theme-a .hero-veil { background: radial-gradient(ellipse at 50% 38%, rgba(82,188,177,.18), transparent 55%), linear-gradient(180deg, rgba(4,16,19,.55), rgba(4,16,19,.15) 40%, rgba(4,16,19,.7)); }
#particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* B: 雲上 */
.theme-b .hero-veil { background: linear-gradient(180deg, rgba(255,252,246,.1), rgba(20,45,50,.42) 85%); }
.theme-b .hero-title, .theme-b .hero-sub { color: #fff; text-shadow: 0 4px 40px rgba(10,30,34,.45); }
/* C: エディトリアル */
.theme-c .hero { text-align: left; justify-content: flex-start; }
.theme-c .hero-inner { max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 32px; }
.theme-c .hero-veil { background: linear-gradient(90deg, rgba(248,252,251,.92) 8%, rgba(248,252,251,.55) 42%, rgba(248,252,251,0) 70%); }
.theme-c .hero-tag { color: var(--teal-deep); }
.theme-c .hero-tag::before, .theme-c .hero-tag::after { background: var(--teal-deep); }
.theme-c h1.hero-title { color: var(--ink); }
.theme-c .hero-sub { color: var(--ink-mid); }
.theme-c .hero-ctas, .theme-c .hero-stats { justify-content: flex-start; }
/* D: オーロラ */
.theme-d .hero-veil { background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.55) 90%); }
.theme-d h1.hero-title { color: var(--ink); }
.theme-d .hero-tag { color: var(--teal-deep); }
.theme-d .hero-sub { color: var(--ink-mid); }

/* ---------- インデックス ---------- */
.idx-hero { min-height: 38vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 40px; }
.idx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin: 50px 0 110px; }
@media (max-width: 860px) { .idx-grid { grid-template-columns: 1fr; } }
.idx-card { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid rgba(12,31,34,.08); box-shadow: 0 18px 44px rgba(8,38,36,.08); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.idx-card:hover { transform: translateY(-6px); }
.idx-card .thumb { height: 250px; overflow: hidden; }
.idx-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.idx-card:hover .thumb img { transform: scale(1.05); }
.idx-card .body { padding: 26px 28px 30px; }
.idx-card .body .tag { font-family: var(--en); font-size: 10.5px; letter-spacing: .25em; color: var(--teal-deep); }
.idx-card .body h3 { font-family: var(--serif); font-size: 22px; margin-top: 10px; letter-spacing: .05em; }
.idx-card .body p { margin-top: 12px; font-size: 12.5px; line-height: 1.9; color: var(--ink-mid); }
.idx-card .body .go { margin-top: 16px; font-family: var(--en); font-size: 12px; letter-spacing: .18em; color: var(--teal-deep); font-weight: 600; }
