/* ══════════════════════════════════════════════════
   RETOUCH PAGE — retouch.css
══════════════════════════════════════════════════ */

/* ── Hero ── */
.rt-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 20px 48px;
  overflow: hidden;
}
.rt-hero-bg {
  position: absolute; inset: 0;
  background: center center / cover no-repeat;
  z-index: 0;
}
.rt-hero-overlay {
  position: absolute; inset: 0;
  background: none;
  z-index: 1;
}
.rt-hero-inner {
  position: relative; z-index: 2;
  max-width: 600px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 32px 28px;
  border-radius: var(--rd);
}
.rt-breadcrumb {
  font-family: var(--en); font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; color: rgba(26,26,46,0.6);
  margin-bottom: 16px;
}
.rt-breadcrumb a { color: rgba(26,26,46,0.6); transition: color 0.2s; }
.rt-breadcrumb a:hover { color: var(--yellow); }
.rt-breadcrumb span { color: var(--navy); }
.rt-hero-eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--en); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; color: var(--yellow);
  background: rgba(255,210,51,0.12);
  border: 1px solid rgba(255,210,51,0.25);
  padding: 6px 18px; border-radius: var(--rd-pill);
  margin-bottom: 16px; text-transform: uppercase;
}
.rt-hero-h1 {
  font-size: clamp(28px, 7vw, 52px);
  font-weight: 900; line-height: 1.25;
  color: var(--navy); margin-bottom: 16px;
}
.rt-hero-sub {
  font-size: 14px; color: rgba(26,26,46,0.75);
  line-height: 2; margin-bottom: 20px;
}
.rt-hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.rt-hero .badge.glass {
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(26,26,46,0.15);
  color: var(--navy);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 700;
  padding: 7px 18px; border-radius: var(--rd-pill);
}
.rt-hero-btns { display: flex; flex-direction: column; gap: 10px; }
.rt-hero-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--yellow); color: var(--navy);
  font-size: 14px; font-weight: 700;
  padding: 16px 36px; border-radius: var(--rd-pill);
  font-family: var(--sans); transition: all 0.25s;
  box-shadow: 0 6px 28px rgba(255,210,51,0.4);
  width: 100%; max-width: 320px;
}
.rt-hero-btn:hover {
  background: var(--yellow-dark); transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(255,210,51,0.5);
}
.rt-hero-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Quote ── */
.rt-quote {
  position: relative;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--rd);
  padding: 32px 28px;
  max-width: 720px;
}
.rt-quote-icon {
  position: absolute; top: -8px; left: 20px;
  font-family: var(--en); font-size: 56px; font-weight: 900;
  color: var(--teal); opacity: 0.15; line-height: 1;
}
.rt-quote p {
  font-size: 14px; color: var(--gray); line-height: 2.2;
}

/* ── Stats ── */
.rt-stats {
  display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap;
}
.rt-stat {
  flex: 1; min-width: 120px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--rd);
  padding: 20px 16px; text-align: center;
  transition: border-color 0.3s;
}
.rt-stat:hover { border-color: var(--teal); }
.rt-stat-num {
  font-family: var(--en); font-size: 28px; font-weight: 800;
  color: var(--teal); margin-bottom: 4px;
}
.rt-stat-label {
  font-size: 11px; color: var(--gray-light); font-weight: 500;
}

/* ── What We Do Menu ── */
.rt-menu {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 32px; max-width: 800px;
}
.rt-menu-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.rt-menu-item:last-child { border-bottom: none; }
.rt-menu-num {
  font-family: var(--en); font-size: 20px; font-weight: 800;
  color: var(--teal); flex-shrink: 0; width: 36px;
}
.rt-menu-body { flex: 1; }
.rt-menu-name {
  font-size: 15px; font-weight: 900; color: var(--navy);
  margin-bottom: 2px;
}
.rt-menu-en {
  font-family: var(--en); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--gray-light);
  text-transform: uppercase;
}
.rt-menu-note {
  font-size: 12px; color: var(--gray); flex-shrink: 0;
  text-align: right;
}

/* ── Before/After ── */
.rt-ba-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; margin-top: 32px;
}
.rt-ba-card {
  border-radius: var(--rd); overflow: hidden;
  border: 2px solid var(--border);
}
.rt-ba-viewer {
  position: relative; aspect-ratio: 4/5;
  overflow: hidden; cursor: ew-resize;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
  background: var(--gray-bg);
}
.rt-ba-layer {
  position: absolute; inset: 0;
}
.rt-ba-layer img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.rt-ba-before { clip-path: inset(0 50% 0 0); z-index: 1; }
.rt-ba-lbl {
  position: absolute; top: 14px; z-index: 3; pointer-events: none;
  font-family: var(--en); font-size: 9px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); background: rgba(0,0,0,0.45);
  padding: 4px 10px; border-radius: 4px;
}
.rt-ba-lbl-l { left: 14px; }
.rt-ba-lbl-r { right: 14px; }
.rt-ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  z-index: 4; pointer-events: none;
}
.rt-ba-bar {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 2px; transform: translateX(-1px);
  background: var(--yellow);
}
.rt-ba-knob {
  position: absolute; top: 50%; left: 0;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.rt-ba-ph {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  font-size: 12px; color: var(--gray-light); font-weight: 500;
  background: var(--gray-bg);
}

/* ── Checklist ── */
.rt-cl-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; margin-top: 32px;
}
.rt-cl-card {
  border-radius: var(--rd); overflow: hidden;
  border: 2px solid var(--border);
  aspect-ratio: 3/4; background: var(--gray-bg);
}
.rt-cl-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.rt-cl-ph {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; color: var(--gray-light);
  background: linear-gradient(135deg, var(--yellow-light), var(--teal-light));
}
.rt-cl-quote {
  margin-top: 40px; text-align: center;
}
.rt-cl-quote p {
  font-size: 15px; color: var(--navy); line-height: 2.2; font-weight: 700;
}

/* ── Price（rt固有の上書き） ── */
.rt-price-table { margin-top: 24px; max-width: 600px; }
.rt-price-table .price-table { min-width: 0; }
.rt-price-table .price-table td:nth-child(2) { white-space: nowrap; }

/* ── CTA ── */
.rt-cta-btns {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 32px;
}
.rt-cta-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #06C755; color: var(--white);
  font-size: 16px; font-weight: 900;
  padding: 18px 44px; border-radius: var(--rd-pill);
  transition: all 0.25s; box-shadow: 0 4px 20px rgba(6,199,85,0.3);
}
.rt-cta-line:hover {
  background: #05b04c; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(6,199,85,0.4);
}
.rt-cta-line svg { flex-shrink: 0; fill: currentColor; }
.rt-cta-back {
  font-size: 13px; color: var(--gray); font-weight: 600;
  border-bottom: 1px dashed var(--border); padding-bottom: 2px;
  transition: color 0.2s;
}
.rt-cta-back:hover { color: var(--teal); }

/* ══ PC ══ */
@media (min-width: 768px) {
  .rt-hero { padding: 0 6% 64px; }
  .rt-hero-inner { max-width: 720px; }
  .rt-hero-h1 { font-size: clamp(36px, 4.5vw, 52px); }
  .rt-hero-sub { font-size: 16px; }
  .rt-hero-btn { width: auto; max-width: none; }

  .rt-stats { gap: 24px; }
  .rt-stat { padding: 28px 20px; }
  .rt-stat-num { font-size: 36px; }

  .rt-menu-item { gap: 24px; padding: 24px 0; }
  .rt-menu-name { font-size: 17px; }
  .rt-menu-note { font-size: 13px; }

  .rt-ba-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .rt-cl-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .rt-cta-line { font-size: 18px; padding: 20px 56px; }
}

/* ══ SP ══ */
@media (max-width: 767px) {
  .rt-hero { padding: 0 16px 32px; min-height: 70svh; }
  .rt-hero-inner {
    width: 100%;
    max-width: 280px;
    margin-left: 0;
    margin-right: auto;
    padding: 22px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .rt-hero-h1 { font-size: clamp(24px, 7vw, 36px); }
  .rt-hero-eyebrow { font-size: 9px; padding: 4px 14px; }
  .rt-hero-sub { font-size: 12px; }
  .rt-hero .badge.glass { font-size: 10px; padding: 5px 14px; }
  .rt-hero-btn { font-size: 13px; padding: 12px 28px; max-width: 280px; }
  .rt-hero-bg { background-position: 60% center; }

  .rt-quote { padding: 24px 20px; }
  .rt-quote p { font-size: 12px; }

  .rt-stats { gap: 8px; }
  .rt-stat { padding: 14px 10px; }
  .rt-stat-num { font-size: 22px; }
  .rt-stat-label { font-size: 9px; }

  .rt-menu-item { flex-wrap: wrap; gap: 8px; padding: 14px 0; }
  .rt-menu-num { font-size: 16px; width: 28px; }
  .rt-menu-name { font-size: 13px; }
  .rt-menu-note { flex-basis: 100%; text-align: left; padding-left: 44px; font-size: 11px; }

  .rt-ba-grid { gap: 12px; }
  .rt-ba-knob { width: 32px; height: 32px; font-size: 11px; }

  .rt-cl-grid { gap: 10px; grid-template-columns: repeat(3, 1fr); }
  .rt-cl-card { aspect-ratio: 3/4; }

  .rt-cl-quote p { font-size: 12px; }

  .rt-price-table { margin-top: 16px; }

  .rt-cta-line { font-size: 14px; padding: 14px 32px; }
}

/* ── セクション余白縮小（retouch ページ専用 / 約30%縮小） ── */
.sec, .sec-faq { padding-top: 44px; padding-bottom: 44px; }
@media (min-width: 768px) {
  .sec, .sec-faq { padding-top: 68px; padding-bottom: 68px; }
}
@media (min-width: 1200px) {
  .sec, .sec-faq { padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 767px) {
  .sec { padding-top: 32px; padding-bottom: 32px; }
  .sec-faq { padding-top: 24px !important; padding-bottom: 24px !important; }
}

/* ── WHAT WE DO 3列グリッド ── */
.whatwedo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  max-width: none;
  margin-top: 32px;
}
.whatwedo-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 20px;
  background: var(--white);
  border-radius: var(--rd);
  border-bottom: none;
  height: 100%;
  box-sizing: border-box;
}
.whatwedo-card .rt-menu-note {
  text-align: left;
  margin-top: 4px;
}
@media (max-width: 1024px) {
  .whatwedo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .whatwedo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .whatwedo-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px;
    padding: 12px 8px;
  }
  .whatwedo-card .rt-menu-body {
    flex: none;
    width: 100%;
  }
  .whatwedo-card .rt-menu-num {
    font-size: 1.1em;
    margin-bottom: 2px;
  }
  .whatwedo-card .rt-menu-name {
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    white-space: normal !important;
    word-break: break-word;
  }
  .whatwedo-card .rt-menu-en {
    font-size: 8px;
    letter-spacing: 0.08em;
    white-space: normal !important;
  }
  .whatwedo-card .rt-menu-note {
    flex-basis: auto !important;
    padding-left: 0 !important;
    text-align: left !important;
    font-size: 10px;
    line-height: 1.6;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* ── Why Us 見出し1行化 ── */
#rt-whyus .rt-menu-name {
  font-size: 0.92em;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@media (max-width: 767px) {
  #rt-whyus .rt-menu-name {
    white-space: normal;
    font-size: 1em;
    letter-spacing: 0;
  }
}

/* ── FAQ 2列レイアウト（PC） ── */
.faq-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: none;
  width: 100%;
}
.faq-2col > .faq-item2 { height: 100%; }
@media (max-width: 767px) {
  .faq-2col {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
  .faq-2col > .faq-item2 { height: auto; }
}

/* ── Sample ページネーション（SP） ── */
.rt-ba-nav { display: none; }

@media (max-width: 768px) {
  .rt-ba-grid { display: block !important; position: relative; }
  .rt-ba-grid .rt-ba-card { display: none; }
  .rt-ba-grid .rt-ba-card.is-active { display: block; }

  .rt-ba-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
  }
  .rt-ba-dots { display: flex; gap: 8px; }
  .rt-ba-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .rt-ba-dot.is-active {
    background: var(--accent, #5fb8a7);
    color: #fff;
    border-color: var(--accent, #5fb8a7);
    font-weight: bold;
  }
}

@media (min-width: 769px) {
  .rt-ba-grid .rt-ba-card { display: block !important; }
  .rt-ba-nav { display: none !important; }
}

/* ── Hero h1 PC/SP出し分け ── */
.rt-hero-h1 .pc-only { display: inline; }
.rt-hero-h1 .sp-only { display: none; }
@media (max-width: 767px) {
  .rt-hero-h1 .pc-only { display: none; }
  .rt-hero-h1 .sp-only { display: inline; }
}

/* ── スマホ版 セクション見出し統一 + 下線 ── */
@media (max-width: 767px) {
  .sec-title {
    font-size: clamp(16px, 5.2vw, 22px) !important;
    line-height: 1.3 !important;
    font-weight: 900;
    margin-bottom: 16px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--navy);
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sec-title br {
    display: none;
  }
  .sec-title em {
    font-size: inherit;
    font-style: normal;
    white-space: nowrap;
  }
  .sec-label {
    margin-bottom: 6px !important;
  }
  .sec-title + .sec-desc,
  .sec-title + * {
    margin-top: 8px;
  }
}

/* ── Why Us SP横長カードレイアウト ── */
@media (max-width: 767px) {
  #rt-whyus .rt-cl-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #rt-whyus .rt-cl-grid > div {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 14px;
    align-items: start;
  }
  #rt-whyus .rt-cl-card {
    aspect-ratio: 3/4;
    width: 100%;
  }
  #rt-whyus .rt-cl-grid > div > div:last-child {
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  #rt-whyus .rt-menu-name {
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    letter-spacing: 0;
  }
  #rt-whyus .rt-cl-grid > div > div:last-child > p {
    font-size: 11px;
    line-height: 1.7;
    margin: 0;
  }
}

/* ── Checklist 画像 タップ拡大（SP専用） ── */
.rt-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.rt-zoom-overlay.is-open {
  display: flex;
  opacity: 1;
}
.rt-zoom-overlay .rt-zoom-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  touch-action: pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}
.rt-zoom-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.rt-zoom-close:active {
  background: rgba(255, 255, 255, 0.25);
}
@media (max-width: 767px) {
  .rt-cl-zoomable {
    cursor: zoom-in;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
}
@media (min-width: 768px) {
  .rt-zoom-overlay { display: none !important; }
}
body.rt-zoom-locked {
  overflow: hidden;
  touch-action: none;
}
