/* ================================================================
   a010-samples.css
   SAMPLES page (page-samples.php) 専用スタイル — loaded only on /samples/
   クラス接頭辞: smp-
   ================================================================ */

/* ================================================================
   PAGE HEAD
   ================================================================ */
.smp-head { padding-top: 64px; padding-bottom: 56px; }
.smp-head__h1 { margin: 0 0 20px; font-size: clamp(1.75rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.smp-head__lead { margin: 0; font-size: 1rem; line-height: 2; color: var(--ink-2); max-width: 60ch; }

/* ================================================================
   SHOWCASE — 改修デモ共通
   ================================================================ */
.smp-showcase { padding-top: 24px; padding-bottom: 88px; }

.smp-demo { margin-bottom: 64px; }
.smp-demo:last-child { margin-bottom: 0; }

.smp-demo__head {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 24px; align-items: start;
  padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--rule);
}
.smp-demo__num { font-size: 0.75rem; color: var(--g-30); padding-top: 4px; }
.smp-demo__title { margin: 0 0 8px; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.smp-demo__desc { margin: 0; font-size: 0.875rem; line-height: 1.9; color: var(--g-70); max-width: 56ch; }
.smp-demo__price { text-align: right; flex-shrink: 0; white-space: nowrap; }
.smp-demo__price-time { display: block; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--g-50); font-family: var(--mono); }
.smp-demo__price-amount { display: block; margin-top: 4px; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }

.smp-demo__stage { background: var(--bg-2); border: 1px solid var(--rule); padding: 28px; }

.smp-demo__toggle { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.smp-demo__toggle-btn {
  appearance: none; border: none; background: transparent; cursor: pointer;
  padding: 9px 22px; font-family: var(--sans-en); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--g-50); transition: background 180ms, color 180ms;
}
.smp-demo__toggle-btn.is-active { background: var(--ink); color: var(--bg); }
.smp-demo__toggle-btn:not(.is-active):hover { color: var(--ink); }

.smp-demo__viewport { position: relative; }
.smp-demo__viewport--center { display: flex; align-items: center; justify-content: center; min-height: 160px; }
.smp-demo__pane { display: none; }
.smp-demo__pane.is-active { display: block; animation: procStepIn 220ms ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .smp-demo__pane.is-active { animation: none; }
}

/* ---- Demo 01: 横スライダーの追加 ---- */
.smp-slider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.smp-slider-grid__item { aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: #e6e1d4; border: 1px solid var(--rule); }

.smp-slider { position: relative; display: flex; align-items: center; gap: 12px; }
.smp-slider__track {
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  cursor: grab; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-y;
}
.smp-slider__track::-webkit-scrollbar { display: none; }
.smp-slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.smp-slider__slide {
  flex: 0 0 70%; aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: #e6e1d4;
  scroll-snap-align: center; border: 1px solid var(--rule); pointer-events: none;
}
.smp-slider__arrow {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--paper); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 0.9375rem; color: var(--ink);
  transition: background 180ms, color 180ms;
}
.smp-slider__arrow:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 720px) {
  .smp-slider__slide { flex-basis: 82%; }
}

/* ---- Demo 02: HEROスクロールアニメーション ---- */
.smp-hero-demo-wrap { position: relative; }
.smp-hero-demo {
  position: relative; height: 300px; border: 1px solid var(--rule);
  overflow: hidden; background: var(--ink);
}
.smp-hero-demo__bg {
  position: absolute; inset: -40px -20px auto -20px; height: 380px;
  background: linear-gradient(135deg, #43403780 0%, #1a1a1a 55%, #0d0c0a 100%), var(--ink);
}
.smp-hero-demo--static .smp-hero-demo__content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 10px; color: var(--bg); padding: 0 24px;
}
.smp-hero-demo--scroll { overflow-y: auto; }
.smp-hero-demo__scroll-inner { position: relative; height: 900px; }
.smp-hero-demo--scroll .smp-hero-demo__content {
  position: sticky; top: 0; height: 300px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 10px; color: var(--bg);
  will-change: opacity, transform; padding: 0 24px;
}
.smp-hero-demo__eyebrow { font-size: 0.6875rem; letter-spacing: 0.22em; opacity: 0.7; }
.smp-hero-demo__heading { margin: 0; font-size: 1.375rem; font-weight: 700; }
.smp-hero-demo__filler {
  position: relative; padding: 32px 28px 60px; color: var(--bg); opacity: 0.75;
  max-width: 40ch; margin: 0 auto; text-align: center; font-size: 0.8125rem; line-height: 1.95;
}
.smp-hero-demo__hint {
  position: absolute; bottom: 10px; right: 14px; z-index: 2;
  font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--bg);
  background: rgba(0,0,0,0.4); padding: 5px 12px; border-radius: 999px; pointer-events: none;
}

/* ---- Demo 03: マイクロインタラクション ---- */
.smp-plain-btn {
  appearance: none; border: 1px solid var(--g-30); background: var(--paper); color: var(--ink);
  padding: 12px 24px; font-family: var(--sans-jp); font-size: 0.875rem; border-radius: 2px; cursor: default;
}
.smp-micro-btn { position: relative; overflow: hidden; }
.smp-micro-btn__arrow { display: inline-block; position: relative; z-index: 1; transition: transform 260ms cubic-bezier(.25,.8,.35,1), color 260ms ease; }
.smp-micro-btn:hover .smp-micro-btn__arrow,
.smp-micro-btn.is-hover .smp-micro-btn__arrow { transform: translateX(6px); color: var(--ink); }
.smp-micro-btn::before {
  content: ""; position: absolute; inset: 0; background: var(--bg); border-radius: inherit;
  transform: translateX(-102%); transition: transform 320ms cubic-bezier(.65,0,.35,1); z-index: 0;
}
.smp-micro-btn:hover::before,
.smp-micro-btn.is-hover::before { transform: translateX(0); }
.smp-micro-btn span.jp { position: relative; z-index: 1; transition: color 260ms ease; }
.smp-micro-btn:hover span.jp,
.smp-micro-btn.is-hover span.jp { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .smp-micro-btn__arrow, .smp-micro-btn::before, .smp-micro-btn span.jp { transition: none; }
}

/* ================================================================
   DOCUMENT CARDS — 見積書 / 月次レポート サンプル共通
   ================================================================ */
.smp-estimate, .smp-report-section { padding-top: 24px; padding-bottom: 88px; }

.smp-doc { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); padding: 48px 44px; }
.smp-doc__watermark {
  position: absolute; top: 62px; right: -70px; transform: rotate(20deg);
  font-family: var(--sans-en); font-weight: 700; letter-spacing: 0.1em;
  font-size: clamp(1.25rem, 3.6vw, 2.375rem); color: var(--ink); opacity: 0.13;
  white-space: nowrap; pointer-events: none; z-index: 0;
}
.smp-doc__body { position: relative; z-index: 1; }
.smp-doc__badge {
  display: inline-block; font-size: 0.6875rem; letter-spacing: 0.16em; color: var(--g-50);
  border: 1px solid var(--g-30); border-radius: 999px; padding: 4px 12px; margin-bottom: 24px;
}

/* ---- 見積書 ---- */
.smp-invoice__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.smp-invoice__title { margin: 0 0 10px; font-size: 1.5rem; font-weight: 700; }
.smp-invoice__to { font-size: 1.0625rem; font-weight: 500; }
.smp-invoice__date { font-size: 0.75rem; color: var(--g-50); margin-top: 8px; font-family: var(--mono); }
.smp-invoice__from { text-align: right; font-size: 0.8125rem; color: var(--g-70); line-height: 1.85; }
.smp-invoice__subject {
  font-size: 0.9375rem; font-weight: 700; padding: 14px 0; margin-bottom: 24px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}

.smp-invoice__table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.smp-invoice__table th {
  text-align: left; font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--g-50);
  padding: 0 8px 10px; border-bottom: 1px solid var(--ink); font-weight: 500;
}
.smp-invoice__table td { padding: 12px 8px; border-bottom: 1px solid var(--rule); }
.smp-invoice__table th:nth-child(2), .smp-invoice__table td:nth-child(2),
.smp-invoice__table th:last-child, .smp-invoice__table td:last-child {
  text-align: right; font-family: var(--mono); white-space: nowrap;
}
.smp-invoice__table tr.smp-invoice__row--sum td { border-bottom: none; color: var(--g-70); padding-top: 10px; }
.smp-invoice__table tr.smp-invoice__row--total td {
  border-top: 2px solid var(--ink); border-bottom: none; font-weight: 700; font-size: 1.0625rem; padding-top: 16px;
}
.smp-invoice__footnote { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.75rem; color: var(--g-50); line-height: 1.85; }

/* ---- 月次レポート ---- */
.smp-report__title { margin: 0 0 32px; font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.smp-report__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 40px; }
.smp-report__stat { background: var(--bg); padding: 20px; }
.smp-report__stat-label { display: block; font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--g-50); margin-bottom: 8px; }
.smp-report__stat-value { font-size: 1.625rem; font-weight: 700; font-family: var(--mono); color: var(--ink); }
.smp-report__stat-delta { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--g-70); }

.smp-report__block { margin-bottom: 32px; }
.smp-report__block:last-child { margin-bottom: 0; }
.smp-report__block-label {
  font-size: 0.75rem; letter-spacing: 0.1em; color: var(--g-50); display: block;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.smp-report__list { list-style: none; margin: 0; padding: 0; }
.smp-report__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule-2); font-size: 0.875rem; color: var(--ink-2); }
.smp-report__list li:last-child { border-bottom: none; }
.smp-report__list-hour { font-family: var(--mono); color: var(--g-50); flex-shrink: 0; font-size: 0.8125rem; }
.smp-report__footnote { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.75rem; color: var(--g-50); line-height: 1.85; }

/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 720px) {
  .smp-head { padding-top: 44px; padding-bottom: 40px; }
  .smp-showcase, .smp-estimate, .smp-report-section { padding-bottom: 56px; }

  .smp-demo__head { grid-template-columns: 1fr; gap: 10px; }
  .smp-demo__price { text-align: left; }
  .smp-demo__stage { padding: 16px; }
  .smp-slider-grid { gap: 8px; }

  .smp-doc { padding: 32px 20px; }
  .smp-doc__watermark { font-size: 1.125rem; top: 40px; right: -50px; }
  .smp-invoice__head { flex-direction: column; }
  .smp-invoice__from { text-align: left; }
  .smp-invoice__table th, .smp-invoice__table td { padding: 10px 6px; font-size: 0.8125rem; }
  .smp-report__stats { grid-template-columns: 1fr; }
  .smp-report__list li { font-size: 0.8125rem; }
}
