/* lp.css - LP全体 */

/* Base */
:root {
  --bg: #f8fafc;
  --white: #fff;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, .10);
  --card: rgba(255, 255, 255, .88);
  --shadow: 0 12px 28px rgba(15, 23, 42, .12);
  --radius: 18px;
  --accent: #c27a12;
  --accent-hover: #a5670f;
  --accent-text: #7a523b;
  --blue-ui: #407cbc;
  --blue-ui-hover: #2f679f;
  --brand: #5b3a29;
  --brand-hover: #7a523b;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}

/* Text size (single source of truth) */
h1 {
  font-size: 38px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 18px;
}

/* LP用コンテナ */
.lp-container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 1. Hero ========== */
.lp-hero {
  position: relative;
  padding: 105px 0 89px;
  background:
    url("top.png") center bottom / cover no-repeat,
    radial-gradient(900px 280px at 30% 0%, rgba(91, 58, 41, .12), transparent 55%),
    radial-gradient(800px 240px at 70% 0%, rgba(91, 58, 41, .12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .75) 100%);
  background-attachment: fixed;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  text-align: center;
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(91, 58, 41, .14) 0%, rgba(91, 58, 41, .08) 100%);
  pointer-events: none;
}

.lp-hero .lp-container {
  position: relative;
  z-index: 1;
}

.lp-hero-layout {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(3px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 700px);
  align-items: center;
  gap: 28px;
}

.lp-hero-left {
  justify-self: start;
  transform: translateX(-28px);
  padding: 20px 24px;
  text-align: center;
}

.lp-hero-right {
  width: min(100%, 700px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  padding: 16px 18px;
}

.lp-hero-phone-slot {
  display: block;
  width: min(220px, 32%);
  aspect-ratio: 448 / 893;
  object-fit: cover;
}

.lp-hero-pc-slot {
  display: block;
  width: min(468px, 68%);
  aspect-ratio: 6366 / 3794;
  object-fit: cover;
}

.lp-hero-title {
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--ink);
  line-height: 1.35;
}

.lp-hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #5b3a29;
  background: rgba(122, 82, 59, .18);
}

.lp-hero-logo {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0 auto;
}

.lp-hero-lead {
  margin: 0 0 28px;
  font-size: 24px;
  color: var(--muted);
  line-height: 1.6;
  text-decoration-line: underline;
  text-decoration-color: #facc15;
  text-decoration-thickness: 0.24em;
  text-underline-offset: 0.09em;
  text-decoration-skip-ink: none;
}

.lp-brand {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: .03em;
}

.lp-brand-hero {
  margin-left: 0.5em;
}

.lp-dx {
  display: inline-flex;
  justify-content: center;
  margin-left: 1px;
  padding: 1px 6px;
  background: #d97706;
  color: #fff;
  line-height: 1;
}

.lp-btn,
.btn {
  display: inline-block;
  font-size: 16px;
  padding: 20px 58px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, .06);
  transition: background .2s, transform .15s, box-shadow .15s;
  background: var(--blue-ui);
  color: white;
  box-shadow: 0 10px 20px rgba(95, 134, 176, .30);
}

.lp-btn:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(79, 116, 157, .34);
  background: var(--blue-ui-hover);
}

/* ========== 2. サービスの特徴 3つ ========== */
.lp-section {
  padding: 48px 0 56px;
}

.lp-features-intro,
.lp-features,
.lp-pricing {
  background: var(--white);
}

.lp-speech-bubble {
  font-weight: 800;
  letter-spacing: .04em;
}

.lp-section-header {
  margin-bottom: 28px;
  text-align: center;
}

.lp-section-header .lp-section-title {
  margin-bottom: 0;
}

.lp-section-lead {
  max-width: 760px;
  margin: 16px auto 0;
  line-height: 1.9;
  color: var(--muted);
}

.lp-section-title {
  margin: 0 0 28px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  letter-spacing: .02em;
}

.lp-features-intro-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.lp-features-intro-item {
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.lp-features-intro-icon {
  display: block;
  margin: 0 auto 16px;
  color: var(--brand);
  line-height: 0;
}

.lp-features-intro-icon svg {
  display: block;
  margin: 0 auto;
}

.lp-features-intro-heading {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .02em;
}

.lp-features-intro-item p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

/* ========== 3. Features（機能 6つ） ========== */
.lp-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.lp-features-item {
  padding: 20px 24px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.lp-features-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  background: #7a523b;
  color: #fff;
  border-radius: 50%;
  line-height: 0;
}

.lp-features-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.lp-features-item-heading {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--ink);
}

.lp-features-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ========== 4. 無人店舗化 3STEP ========== */
.lp-steps {
  background: var(--bg);
}

.lp-steps-main-title {
  position: relative;
  display: inline-block;
  z-index: 0;
  text-decoration: none;
}

.lp-steps-main-title::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 6px;
  bottom: 3px;
  width: calc(100% - 6px);
  height: 10px;
  background: rgba(194, 122, 18, .30);
}

.lp-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.lp-steps-item {
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lp-steps-num {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--blue-ui);
}

.lp-steps-heading {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--ink);
}

.lp-steps-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.lp-steps-img {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 16px auto 0;
  object-fit: cover;
  border-radius: 8px;
}

.lp-step-note {
  margin-top: 8px;
}

/* ========== 4.x STEPに応じた運用イメージ（比較表） ========== */

.lp-section-subtitle {
  margin-top: 48px;
  margin-bottom: 16px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

/* 比較表ラッパ */
.stepsTableWrap {
  margin-top: 24px;
  text-align: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* STEP専用テーブル（planTableから独立） */
.stepsTable {
  margin: 0 auto;
  min-width: 860px;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

/* 共通セル */
.stepsTable th,
.stepsTable td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: right;
}

/* ヘッダー行 */
.stepsTable thead th {
  background: linear-gradient(180deg, var(--brand-hover) 0%, var(--brand) 100%);
  color: #fff;
  text-align: center;
  border-color: rgba(255, 255, 255, .24);
  font-weight: 700;
}

/* 1列目（項目列） */
.stepsTable tbody th {
  text-align: left;
  background: rgba(122, 82, 59, .10);
  color: var(--ink);
  font-weight: 400;
}

/* 列幅制御 */
.stepsTable col:first-child {
  width: 30%;
}

.stepsTable col:not(:first-child) {
  width: 17.5%;
}

/* 無人（DX化）強調 */
.stepsTable td.dxHighlight {
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}

/* 最下行（運営形態）だけ縦余白追加 */
.lp-steps .stepsTable tbody tr:last-child th,
.lp-steps .stepsTable tbody tr:last-child td {
  padding-top: 18px;
  padding-bottom: 18px;
}

/* ========== 5. Pricing（料金表） ========== */
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.per {
  color: var(--muted);
}

.btn {
  display: block;
  text-align: center;
  width: 100%;
  height: 50px;
  padding: 0 12px;
  line-height: 50px;
}

.btnGhost {
  background: rgba(255, 255, 255, .90);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid #0f172a24;
}

.btnGhost:hover {
  background: rgba(255, 255, 255, .90);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.note+.note {
  margin-top: 8px;
}

.noteMark {
  display: inline-block;
  min-width: 2.2em;
  font-weight: 800;
  color: var(--ink);
}

.pricing-check {
  color: #28a745;
  font-size: 24px;
}

.pricing-cross {
  color: #dc3545;
  font-size: 24px;
}

.planTableWrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.planTable {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.planTable .colAll {
  width: calc(100% / 6);
}

.planTable th,
.planTable td {
  padding: 12px;
  vertical-align: middle;
  background: rgba(255, 255, 255, .65);
  border-bottom: 1px solid rgba(15, 23, 42, .04);
  border-right: 1px solid rgba(15, 23, 42, .10);
}

.planTable thead th {
  font-size: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .70));
  font-weight: 800;
  text-align: center;
}

.planTable thead tr:not(.planRecommendRow) th {
  background: linear-gradient(180deg, var(--brand-hover) 0%, var(--brand) 100%);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, .24);
}

.planTable thead tr.planRecommendRow th {
  padding: 8px 12px;
  border-bottom: none;
  border: none;
  vertical-align: bottom;
}

.planTable thead tr.planRecommendRow th.planRecommendCell {
  background: #efb247;
  color: #fff;
  border-right: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.planRecommendRow .planRecommendCell {
  text-align: center;
  padding-bottom: 4px;
}

.planTable tbody th {
  text-align: left;
  color: var(--ink);
  background: rgba(122, 82, 59, .10);
  font-weight: 400;
  font-size: 14px;
}

.planTable td {
  text-align: right;
  font-weight: 400;
}

.planHead {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.planSubLabel {
  display: inline-block;
  margin-top: 2px;
}

.planBadge {
  font-weight: 800;
  letter-spacing: .1em;
  color: #fff;
}

.planBadge::before {
  content: "🔖";
  margin-right: 6px;
  opacity: .95;
}

.planTitle {
  font-weight: 800;
  color: #fff;
  letter-spacing: .03em;
  display: inline-block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.planPrice {
  font-weight: 600;
  color: #fff;
}

.planTable thead .planPrice .per {
  color: rgba(255, 255, 255, .82);
}

.lp-pricing .planTable tbody td:nth-child(4),
.lp-pricing .planTable tbody th:nth-child(4) {
  background: #f6d79e;
}

/* 最下部のCTAボタン行は4列目の背景強調から除外 */
.lp-pricing .planTable tbody tr.ctaRowTable td:nth-child(4) {
  background: rgba(255, 255, 255, .65);
}

.planTable th:last-child,
.planTable td:last-child {
  border-right: none;
}

.planTable .ctaRowTable th,
.planTable .ctaRowTable td {
  background: rgba(255, 255, 255, .65);
}

.planTable .ctaRowTable td {
  text-align: center;
}

.planTable .notesRow td {
  background: rgba(255, 255, 255, .70);
  border-bottom: none;
  padding: 14px 16px;
}

.tableNotes {
  text-align: left !important;
  font-weight: 400;
}

.simulationSection {
  margin-top: 32px;
}

.lp-simulation {
  background: var(--bg);
}

.simulationCarouselViewport {
  width: 100%;
}

.simulationGrid {
  display: grid;
  gap: 24px;
}

.simulationCard {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
  overflow: hidden;
}

.simulationBody {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.simulationContent {
  min-width: 0;
}

.simulationHead {
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, var(--brand-hover), var(--brand));
}

.simulationLabel {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .86);
  text-transform: uppercase;
}

.simulationTitle {
  margin: 0;
  color: #fff;
}

.simulationTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.simulationTable th,
.simulationTable td {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.8;
}

.simulationTable th {
  width: 126px;
  background: rgba(122, 82, 59, .08);
  color: var(--ink);
  font-weight: 800;
}

.simulationTable td {
  color: var(--muted);
}

.simulationVisual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  background: transparent;
  border-left: 1px solid var(--line);
}

.simulationVisual img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
}

.simulationCarouselControls {
  display: none;
}

.simulationSection.is-carousel .simulationCarouselViewport {
  overflow: hidden;
}

.simulationSection.is-carousel {
  position: relative;
}

.simulationSection.is-carousel .simulationGrid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  transition: transform .45s ease;
  will-change: transform;
}

.simulationSection.is-carousel .simulationCard {
  flex: 0 0 100%;
}

.simulationSection.is-carousel .simulationCarouselControls {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.simulationNav {
  position: absolute;
  top: 48%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  transform: translateY(-50%);
}

.simulationNavIcon {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.simulationPrev {
  left: -70px;
}

.simulationNext {
  right: -70px;
}

.simulationNav:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.simulationNav:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.simulationDots {
  display: flex;
  gap: 8px;
}

.simulationDot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(71, 85, 105, .35);
  cursor: pointer;
  padding: 0;
}

.simulationDot[aria-selected="true"] {
  background: var(--brand);
}

@media (max-width: 768px) {
  .simulationBody {
    grid-template-columns: 1fr;
  }

  .simulationVisual {
    padding: 20px;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .simulationTable,
  .simulationTable tbody,
  .simulationTable tr,
  .simulationTable th,
  .simulationTable td {
    display: block;
    width: 100%;
  }

  .simulationTable th,
  .simulationTable td {
    padding: 12px 16px;
  }

  .simulationTable th {
    border-top: 1px solid var(--line);
    border-bottom: none;
  }

  .simulationTable td {
    border-top: none;
    padding-top: 0;
  }

  .simulationSection.is-carousel .simulationCarouselControls {
    margin-top: 12px;
  }

  .simulationNav {
    width: 52px;
    height: 52px;
  }

  .simulationNavIcon {
    width: 28px;
    height: 28px;
  }

  .simulationPrev {
    left: 6px;
  }

  .simulationNext {
    right: 6px;
  }
}

/* ========== 6. FAQ ========== */
.lp-faq {
  background:
    url("top.png") center 30% / cover no-repeat,
    radial-gradient(900px 280px at 30% 0%, rgba(91, 58, 41, .12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .75) 100%);
  background-attachment: fixed;
}

.lp-faq-list {
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
}

.lp-faq-item {
  margin-bottom: 1px;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.lp-faq-q {
  margin: 0;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.lp-faq-a {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* ========== 7. CTA ========== */
.lp-cta {
  padding: 56px 0;
  background: rgba(122, 82, 59, .08);
  border-top: 1px solid var(--line);
  text-align: center;
}

.lp-cta .lp-section-title {
  color: var(--ink);
}

/* ========== 8. Footer ========== */
.lp-footer {
  padding: 24px 0;
  background: rgba(15, 23, 42, .04);
  border-top: 1px solid var(--line);
}

.lp-footer-inner {
  text-align: center;
}

.lp-footer-text {
  margin: 0;
  color: var(--muted);
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .lp-hero-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lp-hero-left {
    justify-self: center;
    transform: none;
  }

  .lp-hero-right {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(120px, 34vw) minmax(180px, 52vw);
    justify-content: center;
    align-items: end;
    column-gap: 14px;
  }

  .lp-hero-phone-slot {
    width: 100%;
  }

  .lp-hero-pc-slot {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .lp-hero-layout {
    width: calc(100% - 24px);
    padding: 14px;
    gap: 14px;
    overflow: hidden;
  }

  .lp-hero-left {
    width: 100%;
    padding: 12px 8px;
  }

  .lp-hero-right {
    width: 100%;
    grid-template-columns: 1fr;
    row-gap: 12px;
    justify-items: center;
    padding: 10px;
  }

  .lp-hero-phone-slot {
    width: min(58vw, 220px);
  }

  .lp-hero-pc-slot {
    width: min(100%, 340px);
  }

  .lp-hero {
    padding: 74px 0 58px;
  }

  .lp-section {
    padding: 36px 0 44px;
  }

  .lp-features-intro-list,
  .lp-features-list {
    grid-template-columns: 1fr;
  }
}
