/* ============================================================
   v9 refinement — Tech / Parts / Flow layouts + global type/decoration overrides
   ============================================================ */

/* ---------- global tone-down: kill blob decorations entirely ---------- */
.deco-blob { display: none !important; }

/* ---------- typography hierarchy lift ---------- */
:root {
  --v9-h2-scale: 1;
  --v9-display: calc(clamp(3rem, 6vw, 5.2rem) * var(--v9-h2-scale));    /* big editorial display */
  --v9-num: calc(clamp(5rem, 10vw, 9rem) * var(--v9-h2-scale));          /* huge anchor numerals */
  --v9-h2: calc(clamp(2.2rem, 4.4vw, 3.6rem) * var(--v9-h2-scale));      /* section h2 */
  --v9-h3: calc(clamp(1.5rem, 2.4vw, 2.05rem) * var(--v9-h2-scale));     /* card h3 */
}

/* ---------- tweak: tech stagger ---------- */
body[data-tech-stagger="aligned"] .tv9-visual-trio img:nth-child(2),
body[data-tech-stagger="aligned"] .tv9-visual-trio img:nth-child(3) {
  transform: none;
}

/* ---------- tweak: parts ours tone (kept for tweaks panel; defaults to light) ---------- */
body[data-parts-tone="dark"] .pv9-ours {
  background: var(--color-text);
  color: #FFF7EB;
  border-color: var(--color-text);
}
body[data-parts-tone="dark"] .pv9-ours .pv9-card-head { border-bottom-color: rgba(255, 247, 235, 0.22); }
body[data-parts-tone="dark"] .pv9-ours .pv9-card-list li { border-bottom-color: rgba(255, 247, 235, 0.14); color: rgba(255, 247, 235, 0.94); }

body[data-parts-tone="orange"] .pv9-ours {
  background: var(--color-accent);
  color: #FFF7EB;
  border-color: var(--color-accent);
}
body[data-parts-tone="orange"] .pv9-ours .pv9-card-head { border-bottom-color: rgba(255, 247, 235, 0.32); }
body[data-parts-tone="orange"] .pv9-ours .pv9-card-list li { border-bottom-color: rgba(255, 247, 235, 0.2); color: #FFF7EB; }
body[data-parts-tone="orange"] .pv9-ours .pv9-card-num,
body[data-parts-tone="orange"] .pv9-ours .pv9-card-label,
body[data-parts-tone="orange"] .pv9-ours .pv9-li-num { color: #FFF7EB; }

/* ---------- tweak: flow timeline style ---------- */
body[data-flow-style="minimal"] .flow-v9 .fv9-timeline::before { display: none; }
body[data-flow-style="minimal"] .fv9-num::after { display: none; }

body[data-flow-style="pills"] .flow-v9 .fv9-timeline::before { display: none; }
body[data-flow-style="pills"] .fv9-num::after { display: none; }
body[data-flow-style="pills"] .fv9-num {
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  display: inline-block;
  background: var(--color-accent);
  color: #FFF;
  padding: 6px 18px 8px;
  border-radius: 999px;
  line-height: 1;
  margin-bottom: 22px;
}

/* Section header (shared v9 variant) — left-aligned, single orange rule */
.tv9-head, .fv9-head, .pv9-head {
  display: grid;
  gap: 22px;
  margin-bottom: 88px;
  max-width: 920px;
}

.tv9-eyebrow, .fv9-eyebrow, .pv9-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0;
}
.tv9-idx, .fv9-idx, .pv9-idx {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}
.tv9-rule, .fv9-rule, .pv9-rule {
  flex: 0 0 56px;
  height: 1px;
  background: var(--color-accent);
}

.tv9-title, .fv9-title, .pv9-title {
  font-family: var(--font-heading);
  font-size: var(--v9-h2);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--color-text);
  margin: 0;
}

.tv9-lead, .fv9-meta {
  color: var(--color-text-mid);
  font-size: 1.05rem;
  line-height: 1.95;
  font-weight: 500;
  margin: 0;
}
.fv9-meta strong { color: var(--color-accent); font-weight: 800; font-size: 1.25em; }

/* ============================================================
   TECH v9 — alternating editorial rows
   ============================================================ */
.tech-v9 .tv9-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid rgba(28, 27, 24, 0.12);
}
.tv9-platform-img {
  width: 100%;
  height: auto;
  display: block;
}
.tech-v9 .tv9-row:last-child { border-bottom: 1px solid rgba(28, 27, 24, 0.12); }
.tech-v9 .tv9-row-reverse { direction: rtl; }
.tech-v9 .tv9-row-reverse > * { direction: ltr; }

.tv9-text {
  display: grid;
  gap: 18px;
  align-content: center;
}
.tv9-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: var(--v9-num);
  line-height: 0.85;
  color: var(--color-accent);
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.tv9-kicker {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-mid);
  font-weight: 600;
  margin: 0;
}
.tv9-h3 {
  font-family: var(--font-heading);
  font-size: var(--v9-h3);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: 0.015em;
  margin: 0;
  color: var(--color-text);
}
.tv9-h3 .accent { color: var(--color-accent); }
.tv9-body {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 2;
  font-weight: 500;
  margin: 4px 0 0;
}

.tv9-visual-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tv9-visual-trio img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #F0EBE0;
  border-radius: 16px;
  min-height: 460px;
}
/* Stagger second & third image so the row feels more editorial */
.tv9-visual-trio img:nth-child(2) { transform: translateY(28px); }
.tv9-visual-trio img:nth-child(3) { transform: translateY(56px); }
.tv9-visual-wide {
  position: relative;
  width: 100%;
  margin: 0 -20px;
}
.tv9-visual-wide .photo-placeholder {
  aspect-ratio: 16 / 11;
}
.tv9-visual-wide .tv9-platform-img {
  width: calc(100% + 40px);
  min-height: 520px;
  height: auto;
  object-fit: contain;
  transform: scale(1.1);
  transform-origin: center;
}

@media (max-width: 1024px) {
  .tech-v9 .tv9-row { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .tech-v9 .tv9-row-reverse { direction: ltr; }
  .tv9-visual-trio { gap: 8px; }
  .tv9-visual-trio img:nth-child(2),
  .tv9-visual-trio img:nth-child(3) { transform: none; }
  .tv9-visual-trio img { min-height: 0; aspect-ratio: 3 / 4; max-height: 280px; }
  .tv9-num { font-size: clamp(3rem, 8vw, 4.5rem) !important; }
  .tv9-h3 { font-size: clamp(1.3rem, 3.4vw, 1.7rem) !important; }
  .tv9-body { font-size: 0.95rem !important; line-height: 1.85 !important; }
  /* PCの画像余白縮小 */
  .tv9-visual-wide { margin: 0; }
  .tv9-visual-wide .tv9-platform-img {
    width: 100%;
    min-height: 0;
    transform: none;
  }
}

/* ============================================================
   PARTS v9 — editorial split with big "01/02" index
   ============================================================ */
.parts-v9 .pv9-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
  margin-top: 24px;
}
.parts-v9 .content { position: relative; }

.pv9-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(28, 27, 24, 0.08);
  padding: 32px 32px 28px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.pv9-yours, .pv9-ours { background: #FFFFFF; color: var(--color-text); border-color: rgba(28, 27, 24, 0.08); }

.pv9-card-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(28, 27, 24, 0.12);
}

.pv9-card-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--color-accent);
}
.pv9-card-meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; padding-bottom: 2px; }
.pv9-card-label {
  font-family: var(--font-en);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  color: var(--color-accent);
}

.pv9-card-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 0 0 4px;
  color: inherit;
}
.pv9-card-body {
  font-size: 0.95rem;
  line-height: 1.85;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--color-text-mid);
}

.pv9-card-photos {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pv9-ph {
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg,
      #ECE6DA 0 8px, #E0DBCF 8px 16px);
}
.pv9-card-photos-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pv9-card-photos-3 img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: #ECE6DA;
}

.pv9-card-list-lg li {
  font-size: 1.25rem;
  line-height: 1.55;
  font-weight: 700;
  padding: 18px 0;
  gap: 18px;
  align-items: center;
}
.pv9-li-check {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.pv9-li-check img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.pv9-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  flex: 1;
}
.pv9-card-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 27, 24, 0.08);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-text);
}
.pv9-card-list li:last-child { border-bottom: none; }
.pv9-li-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .parts-v9 .pv9-stage { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 1024px) {
  /* PARTS 02のチェックアイコンとテキストの上下中央揃え */
  .pv9-card-list li,
  .pv9-card-list-lg li {
    align-items: center;
  }
  .pv9-card-list-lg li {
    font-size: 1rem;
    padding: 14px 0;
    gap: 14px;
  }
  .pv9-li-check img { width: 22px; height: 22px; }
}

/* ============================================================
   FLOW v9 — horizontal timeline with big numerals
   ============================================================ */
.flow-v9 .fv9-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  counter-reset: fv9;
}
.flow-v9 .fv9-timeline::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.35;
}

.fv9-step {
  position: relative;
  padding: 0 28px 0 0;
  border-left: 1px solid rgba(28, 27, 24, 0.1);
  padding-left: 28px;
  padding-top: 0;
}
.fv9-step:first-child { border-left: none; padding-left: 0; }

.fv9-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 24px;
  position: relative;
}
/* Orange dot sitting on the timeline */
.fv9-num::after {
  content: "";
  position: absolute;
  top: 56px;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 6px #FFF1E0;
}

.fv9-kicker {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-mid);
  font-weight: 600;
  margin: 0 0 10px;
}
.fv9-h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
  color: var(--color-text);
}
.fv9-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text);
  font-weight: 500;
  margin: 0;
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .flow-v9 .fv9-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 48px 32px;
  }
  .flow-v9 .fv9-timeline::before { display: none; }
  .fv9-step { border-left: none; padding-left: 0; }
  .fv9-num::after { display: none; }
}
@media (max-width: 600px) {
  .flow-v9 .fv9-timeline { grid-template-columns: 1fr; gap: 40px; }
}


/* ============================================================
   v9.1 — single-view compaction for Parts & Pricing
   ============================================================ */

/* Parts section — tighter, fit-in-view */
.parts-v9 { padding: 56px 0 64px !important; }
.parts-v9 .pv9-head { margin-bottom: 36px; }
.parts-v9 .pv9-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }

/* Pricing — shrink initial fee, tighten rows */
.pricing { padding: 56px 0 64px !important; }
.pricing .initial-fee {
  padding: 10px 16px;
  margin: 0 0 20px;
  background: transparent;
  border: 1px solid rgba(28, 27, 24, 0.12);
  max-width: none;
  display: inline-flex;
  gap: 12px;
}
.pricing .initial-label { font-size: 0.78rem; letter-spacing: 0.06em; opacity: 0.75; }
.pricing .initial-amount { font-size: 1.1rem; font-weight: 800; color: var(--color-text); }

.pricing .section-head { margin-bottom: 18px; }
.pricing .section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }

.pricing .pt-plan { padding: 18px 12px 14px; }
.pricing .pt-plan-name { font-size: 0.92rem; margin-bottom: 4px; }
.pricing .pt-plan-price strong { font-size: 1.85rem; }
.pricing .pt-plan-price span { font-size: 0.72rem; }
.pricing .pt-plan-price small { font-size: 0.8rem; }
.pricing .pt-corner { padding: 12px; }
.pricing .pt-badge { top: -10px; font-size: 0.65rem; padding: 3px 12px; letter-spacing: 0.16em; }

.pricing .pt-feat { padding: 14px 22px; font-size: 1rem; }
.pricing .pt-feat .ft-icon { width: 18px; height: 18px; }
.pricing .pt-feat em { font-size: 0.8rem; }
.pricing .pt-feat small { font-size: 0.78em; }
.pricing .pt-val { padding: 14px 12px; font-size: 1.1rem; font-weight: 800; }
.pricing .pt-val small { font-size: 0.7em; font-weight: 500; }
.pricing .pricing-notes { margin-top: 16px; padding: 12px 16px; gap: 4px; }
.pricing .pricing-notes p { font-size: 0.78rem; line-height: 1.55; }
