/* ══════════════════════════════════════════
   service.css — Service ページ専用スタイル
══════════════════════════════════════════ */

/* ─────────────────────
   Hero（アニメーションオーブ付き）
───────────────────── */
.sv-hero {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 420px;
  overflow: hidden;
  background: var(--dark);
}

/* オーブ（worksページと同じ1つ・中央上） */
.sv-hero-orb {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(300px, 70vw, 900px);
  height: clamp(300px, 70vw, 900px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210,100,30,.75) 0%, rgba(180,70,20,.4) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation-duration: 16s;
  animation-delay: -5s;
}

.sv-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(21,20,21,0)    0%,
    rgba(21,20,21,0)    50%,
    rgba(21,20,21,.75)  82%,
    rgba(21,20,21,1)   100%
  );
  z-index: 1;
}

.sv-hero-content {
  position: absolute;
  bottom: clamp(32px, 6vw, 70px);
  left: clamp(5%, 8vw, 10%);
  z-index: 2;
}

.sv-hero-sub {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(13px, 1.3vw, 17px);
  letter-spacing: .1em;
  color: rgba(239,228,211,.75);
  margin-bottom: 12px;
}

.sv-hero-title-img {
  width: clamp(220px, 38vw, 660px);
  height: auto;
  display: block;
}

.sv-hero-title-text {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}

/* ─────────────────────
   Service Body
───────────────────── */
.sv-body {
  background: var(--dark);
  padding: clamp(60px, 7vw, 110px) clamp(60px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* ─── Row header ─── */
.sv-row-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.sv-row-num {
  font-family: 'Inter', sans-serif;
  font-size: clamp(10px, .9vw, 13px);
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: rgba(239,228,211,.45);
  white-space: nowrap;
}

.sv-row-rule {
  flex: 1;
  height: .3px;
  background: rgba(239,228,211,.18);
}

/* ─── Row inner ─── */
.sv-row-inner {
  display: flex;
  gap: clamp(48px, 8vw, 140px);
  align-items: flex-start;
}

/* ─── Left ─── */
.sv-row-left {
  flex: 0 0 auto;
  width: clamp(200px, 26vw, 340px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sv-title-img {
  width: clamp(160px, 22vw, 320px);
  height: auto;
  display: block;
}

.sv-title-img--web {
  width: clamp(90px, 12vw, 190px);
}

.sv-catch {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: .1em;
  color: rgba(200,90,28,.9);
}

.sv-desc {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(11px, 1.05vw, 15px);
  line-height: 2.1;
  letter-spacing: .06em;
  color: var(--cream);
}

/* ─── Right: Icon grid ─── */
.sv-row-right {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: clamp(16px, 2vw, 28px);
}

/* Webセクション：グリッド全幅表示 */
.sv-row-right--web {
  justify-content: flex-start;
  width: 100%;
}

.sv-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  width: 100%;
}

/* Webアイコン：Graphicと同じ4列構造で1・2列目に配置 */
.sv-icon-grid--sm {
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

/* アイコンボックス：ラベル内包・角丸なし */
.sv-icon-box {
  width: clamp(60px, 6.5vw, 90px);
  aspect-ratio: 1;
  border: .3px solid rgba(239,228,211,.26);
  border-radius: 0;
  background: rgba(48,42,38,.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, .8vw, 10px);
  padding: clamp(8px, 1vw, 13px) 4px clamp(6px, .8vw, 10px);
  transition: border-color .25s, background .25s;
}

.sv-icon-box:hover,
.sv-icon-link:hover {
  border-color: rgba(239,228,211,.38);
  background: rgba(68,60,54,.8);
}

/* リンクアイコン */
.sv-icon-link {
  text-decoration: none;
  cursor: pointer;
}

.sv-icon-box:hover .sv-icon-img {
  opacity: .85;
  transform: scale(1.08);
}

.sv-icon-img {
  width: clamp(20px, 2.2vw, 32px);
  height: clamp(20px, 2.2vw, 32px);
  object-fit: contain;
  flex-shrink: 0;
  transition: opacity .2s, transform .2s;
}

.sv-icon-box span {
  font-family: 'Inter', sans-serif;
  font-size: clamp(7px, .62vw, 9px);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(239,228,211,.55);
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

/* ─── Price button ─── */
.sv-price-wrap {
  display: flex;
  justify-content: center;
  padding-top: clamp(8px, 1.5vw, 16px);
}

.sv-price-btn {
  min-width: 200px;
  justify-content: center;
}

/* ─────────────────────
   Flow Section
───────────────────── */
.sv-flow {
  background: var(--dark);
  padding: clamp(80px, 10vw, 150px) clamp(12%, 16vw, 22%);
}

.sv-flow-head {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.sv-flow-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 16px;
}

.sv-flow-title-img {
  width: clamp(120px, 18vw, 260px);
  height: auto;
  display: block;
  margin: 0 auto 16px;
}

.sv-flow-sub {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: .15em;
  color: rgba(239,228,211,.55);
}

/* ─── Steps 縦一列・線つなぎ ─── */
.sv-flow-steps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.sv-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
  width: 100%;
  padding-bottom: 36px;
}

.sv-step:last-child {
  padding-bottom: 0;
}

/* ─── 丸＋線をまとめるラッパー ─── */
.sv-step-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

/* 丸から次の丸へ伸びる縦線 */
.sv-step:not(:last-child) .sv-step-left::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  width: 1.5px;
  height: 36px;
  background: rgba(200,90,28,.85);
  transition: transform .5s ease; /* un-lit時はすぐリセット */
}

.sv-step-num {
  font-family: 'Inter', sans-serif;
  font-size: clamp(8px, .75vw, 10px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(239,228,211,.15);
  white-space: nowrap;
  transition: color .7s ease;
  margin-bottom: 6px;
}

.sv-step-circle {
  width: clamp(92px, 10vw, 130px);
  height: clamp(92px, 10vw, 130px);
  border-radius: 50%;
  border: .5px solid rgba(239,228,211,.12);
  background: rgba(21,20,21,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(16px, 1.8vw, 24px);
  letter-spacing: .06em;
  color: rgba(239,228,211,.18);
  text-align: center;
  line-height: 1.6;
  flex-shrink: 0;
  transition: border-color .7s ease, color .7s ease;
}

/* ─── 番号＋説明文をまとめる右側ラッパー ─── */
.sv-step-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: clamp(16px, 2vw, 22px);
}

.sv-step-desc {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(14px, 1.4vw, 20px);
  line-height: 2;
  letter-spacing: .03em;
  color: rgba(239,228,211,.15);
  text-align: left;
  transition: color .7s ease;
}

/* ─── 点灯状態 ─── */
.sv-step--lit .sv-step-num {
  color: rgba(239,228,211,.5);
}

.sv-step--lit .sv-step-circle {
  border-color: rgba(200,90,28,.85);
  color: var(--cream);
  box-shadow: 0 0 22px rgba(200,90,28,.25), inset 0 0 14px rgba(200,90,28,.08);
  transition: border-color .4s ease, color .4s ease, box-shadow .4s ease;
}

.sv-step--lit .sv-step-desc {
  color: var(--cream);
}

.sv-step--lit .sv-step-left::after {
  transform: translateX(-50%) scaleY(1);
  transition: transform .5s ease .3s; /* 丸点灯の0.3s後に線が描き始める */
}

/* 特定の丸：文字サイズ個別調整 */
.sv-step-circle--xs {
  font-size: clamp(12px, 1.3vw, 17px);
}

.sv-step-circle--md {
  font-size: clamp(14px, 1.55vw, 20px);
}

.sv-step-circle--sm {
  font-size: clamp(12px, 1.35vw, 18px);
}

.sv-step-circle--wire {
  font-size: clamp(12px, 1.35vw, 18px);
  line-height: 1.35;
}

.sv-step-arrow { display: none; }

.sv-step-link {
  color: rgba(239,228,211,.15);
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-color: rgba(239,228,211,.08);
  transition: color .7s ease, text-decoration-color .7s ease;
}

.sv-step--lit .sv-step-link {
  color: rgba(239,228,211,.75);
  text-decoration-color: rgba(239,228,211,.35);
}

.sv-step-link:hover {
  color: var(--cream);
  text-decoration-color: rgba(239,228,211,.8);
}

/* ─── Flow オーブ（点灯に追従して上→下へ） ─── */
.sv-flow-orb {
  position: absolute;
  top: 0%;          /* JSで更新 */
  left: -10%;
  width: clamp(260px, 42vw, 560px);
  height: clamp(260px, 42vw, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,80,18,.36) 0%, rgba(160,55,10,.16) 45%, transparent 70%);
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  /* スクロールに合わせてtopとopacityをスムーズに変化 */
  transition: top 1s cubic-bezier(.25,.46,.45,.94), opacity .9s ease;
}

/* ─────────────────────
   nav active link
───────────────────── */

/* ─────────────────────
   スマホ
───────────────────── */
@media (max-width: 700px) {
  .sv-hero {
    height: 52vh;
    min-height: 300px;
  }

  .sv-hero-title-img {
    width: clamp(180px, 68vw, 360px);
  }

  .sv-body {
    padding-left: clamp(5%, 8vw, 10%);
    padding-right: clamp(5%, 8vw, 10%);
  }
  .sv-flow {
    padding-left: clamp(5%, 8vw, 10%);
    padding-right: clamp(5%, 8vw, 10%);
  }

  .sv-row-inner {
    flex-direction: column;
    gap: 32px;
  }

  .sv-row-left,
  .sv-row-right { width: 100%; }

  .sv-icon-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
  }

  .sv-icon-grid--sm {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }

  .sv-icon-box {
    width: 100%;
    gap: 6px;
    padding: 10px 4px 8px;
  }

  .sv-icon-img {
    width: clamp(22px, 6vw, 32px);
    height: clamp(22px, 6vw, 32px);
  }

  .sv-icon-box span {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .sv-flow-steps {
    max-width: 100%;
  }

  .sv-step {
    gap: 22px;
    padding-bottom: 28px;
    align-items: center;
  }

  .sv-step:not(:last-child) .sv-step-left::after {
    height: 28px;
  }

  .sv-step-circle {
    width: clamp(68px, 18vw, 90px);
    height: clamp(68px, 18vw, 90px);
    font-size: 12px;
  }
  .sv-step-circle--xs,
  .sv-step-circle--sm,
  .sv-step-circle--wire {
    font-size: 10px;
  }

  .sv-step-right {
    padding-top: clamp(10px, 2.5vw, 16px);
  }

  .sv-step-desc {
    font-size: 13px;
  }

  .sv-row-left {
    width: 100%;
  }
  .sv-desc {
    font-size: 13px;
    width: 100%;
  }
}
