/* ===== Reset & Base ===== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.5;
  color: #0f172a;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* ===== Focus Visible ===== */

*:focus-visible {
  outline: 2px solid #008dc0;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 2000;
  padding: 8px 16px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Header Navigation ===== */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.lp-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.lp-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #008dc0;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid #008dc0;
  padding: 14px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lp-nav-back::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  flex-shrink: 0;
}

.lp-nav-back:hover,
.lp-nav-back:focus {
  background-color: #008dc0;
  color: #fff;
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

#main-nav a {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #008dc0;
  text-decoration: none;
  padding: 14px 15px;
  transition: opacity 0.2s;
}

#main-nav a:hover,
#main-nav a:focus {
  opacity: 0.7;
}

#main-nav .lp-nav-cta {
  background: #008dc0;
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  transition: opacity 0.2s;
}

#main-nav .lp-nav-cta:hover,
#main-nav .lp-nav-cta:focus {
  opacity: 0.85;
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Layout ===== */

.lp-container {
  max-width: 1160px;
  margin: 0 auto;
}

.lp-section {
  margin-bottom: 80px;
}

/* ===== Section Label ===== */

.section-label {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #008dc0;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

/* ===== Hero ===== */

.lp-hero {
  text-align: left;
  background: #eef9fa;
  color: #0f172a;
  padding: 90px 40px;
  border-radius: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-bottom: 80px;
}

.lp-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.lp-hero-text {
  flex: 1;
  min-width: 0;
}

.hero-lead {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0f172a;
  line-height: 1.5;
}

.lp-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #008dc0;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.lp-hero .sub-copy {
  font-size: 1rem;
  font-weight: 400;
  color: #64748b;
  margin-bottom: 32px;
  line-height: 1.5;
}

.lp-hero .lp-btn {
  background-color: #008dc0;
  color: #fff;
}

.lp-hero .lp-btn:hover,
.lp-hero .lp-btn:focus {
  background-color: #007aa8;
}

.hero-image {
  flex: 1;
  min-width: 0;
}

.hero-image .img-fluid {
  border: none;
  border-radius: 8px;
}

/* ===== Button ===== */

.lp-btn {
  display: inline-block;
  background-color: #008dc0;
  color: #fff;
  padding: 14px 15px;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  transition: background-color 0.2s;
}

.lp-btn:hover,
.lp-btn:focus {
  background-color: #0c8fa6;
}

.lp-btn--white {
  background-color: #008dc0;
  color: #fff;
}

.lp-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.lp-btn--outline:hover,
.lp-btn--outline:focus {
  background: #fff;
  color: #0f172a;
}

/* ===== Typography ===== */

.lp-h2 {
  font-size: 2rem;
  text-align: center;
  padding-bottom: 0;
  margin-top: 0;
  border-bottom: none;
  color: #0f172a;
  font-weight: bold;
  margin-bottom: 80px;
}

code {
  background-color: #f0f4f8;
  color: #003a70;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

dl {
  margin: 0;
}

dt {
  font-weight: bold;
  margin-bottom: 8px;
  color: #0f172a;
}

dd {
  margin: 0 0 20px 0;
  padding-left: 16px;
  color: #555;
}

/* ===== Pain Points ===== */

.lp-pain-points .lp-h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 80px;
}

.lp-pain-points .point {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 16px;
}

.point-icon {
  flex-shrink: 0;
  width: 280px;
  height: 177px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.point-icon img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.point-body {
  display: flex;
  padding: 40px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 8px;
  background: #EEF9FA;
}

.point-body h3 {
  font-size: 24px;
  color: #0f172a;
  margin: 0;
  font-weight: bold;
}

.point-body p {
  font-size: 1rem;
  color: #0f172a;
  margin: 0;
  line-height: 1.5;
}

/* ===== Features ===== */

#features {
  background: #f8fafc;
  padding: 80px 40px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

#features > .section-label,
#features > .lp-h2,
#features > .lp-feature {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

#features > .lp-h2 {
  font-size: 2.5rem;
  margin-bottom: 80px;
}

.lp-feature {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 80px;
}

.lp-feature:last-child {
  margin-bottom: 0;
}

.lp-feature--normal {
  flex-direction: row;
}

.lp-feature--reverse {
  flex-direction: row-reverse;
}

.lp-feature-text {
  flex: 0 0 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lp-feature-image {
  flex: 0 0 550px;
  min-width: 0;
}

.lp-feature-image .img-fluid {
  border-radius: 8px;
}

.feature-tag {
  display: inline-block;
  width: fit-content;
  background: #ffedf4;
  color: #fa1678;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 16px;
}

.lp-feature h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.45;
}

.lp-feature p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.45;
}

/* ===== Flow Section ===== */

#flow .lp-h2 {
  font-size: 2.5rem;
  margin-bottom: 80px;
}

.flow-desc {
  font-size: 1rem;
  color: #0f172a;
}

.lp-step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-block: 80px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step-number {
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  background: #008dc0;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.step-body {
  background: #eef9fa;
  padding: 16px;
  border-radius: 8px;
}

.step-body p {
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.45;
}

.flow-note {
  font-size: 1rem;
  color: #0f172a;
}

/* ===== Pricing Section ===== */

#pricing {
  background: #eef9fa;
  padding: 80px 40px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-bottom: 0;
}

#pricing > .section-label,
#pricing > .lp-h2,
#pricing > .pricing-desc,
#pricing > .table-scroll-wrap,
#pricing > .pricing-note {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

#pricing > .lp-h2 {
  font-size: 2.5rem;
  margin-bottom: 80px;
}

.pricing-desc {
  font-size: 1rem;
  color: #0f172a;
}

.pricing-note {
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.45;
}

/* ===== Pricing Table ===== */

.table-scroll-wrap {
  overflow-x: auto;
}

.lp-price-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  margin-block: 80px;
}

.lp-price-table th,
.lp-price-table td {
  border: 1px solid #e2e8f0;
  padding: 24px;
  text-align: center;
  font-size: 1rem;
  color: #0f172a;
  width: 25%;
}

.lp-price-table thead th {
  background-color: #008dc0;
  color: #fff;
  font-weight: 700;
}

.lp-price-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.lp-price-table tbody tr:nth-child(odd) {
  background-color: #fff;
}

/* ===== FAQ ===== */

#faq {
  padding-top: 80px;
}

#faq > .lp-h2 {
  font-size: 2.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.faq-q {
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  background: #008dc0;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
}

.faq-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.faq-answer {
  background: #eef9fa;
  padding: 16px;
  border-radius: 8px;
}

.faq-answer p {
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.45;
}

/* ===== Images ===== */

.img-fluid {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 0;
}

/* ===== CTA ===== */

.lp-cta {
  text-align: center;
  margin-top: 80px;
  background: #f8fafc;
  padding: 80px;
  border-radius: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
}

.cta-sub {
  font-size: 1rem;
  font-weight: 700;
  color: #008dc0;
}

.lp-cta .lp-btn {
  display: block;
  width: fit-content;
  margin-inline: auto;
  background-color: #008dc0;
  color: #fff;
}

/* ===== Footer ===== */

.lp-footer {
  background: #00212d;
  color: #fff;
  padding: 0;
}

.lp-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.lp-footer-brand {
  font-size: 2rem;
  font-weight: 700;
}

.lp-footer-tagline {
  font-size: 1rem;
  color: #fff;
  line-height: 1.45;
}

.lp-footer .lp-btn--white {
  background: #fff;
  color: #008dc0;
  font-weight: 700;
}

.lp-footer .lp-btn--white:hover,
.lp-footer .lp-btn--white:focus {
  opacity: 0.9;
}

.lp-footer-notes {
  font-size: 1rem;
  color: #fff;
  text-align: center;
  line-height: 1.45;
}

.lp-footer-copy {
  font-size: 1rem;
  color: #fff;
}

/* =============================================
   Responsive Design
   ============================================= */

/* ===== Feature折り返し（〜1200px） ===== */

@media (max-width: 1200px) {

  .lp-feature {
    flex-direction: column !important;
    gap: 24px;
  }

  .lp-feature-text,
  .lp-feature-image {
    flex: 1 1 auto;
    width: 100%;
  }

  #features {
    padding: 60px 20px;
  }
}

/* ===== Tablet（〜768px） ===== */

@media (max-width: 768px) {

  .lp-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .lp-hero,
  #features,
  #pricing {
    padding-left: 20px;
    padding-right: 20px;
  }

  .lp-hero-inner {
    flex-direction: column;
  }

  .lp-hero h1 {
    font-size: 2.2rem;
  }

  .lp-h2 {
    font-size: 1.7rem;
  }

  .lp-feature h3 {
    font-size: 1.4rem;
  }

  /* ハンバーガーメニュー */
  .hamburger {
    display: flex;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  #main-nav.is-open {
    display: block;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
  }

  #main-nav li {
    display: block;
  }

  #main-nav a {
    display: block;
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    text-align: center;
  }

  #main-nav .lp-nav-cta {
    margin-top: 8px;
    text-align: center;
    border-bottom: none;
  }

}

/* ===== Mobile（〜600px） ===== */

@media (max-width: 600px) {

  /* 全幅でないセクションに左右パディング */
  .lp-section {
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 40px;
  }

  /* 全幅セクションはパディングを自前で持つのでリセット */
  .lp-hero,
  #features,
  #pricing {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* ヘッダー */
  .lp-nav-back {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  /* ヒーロー */
  .lp-hero {
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: left;
  }

  .lp-hero-inner {
    flex-direction: column;
    gap: 32px;
  }

  .lp-hero h1 {
    font-size: 1.8rem;
  }

  .hero-lead {
    font-size: 1.1rem;
  }

  .lp-hero .sub-copy {
    font-size: 0.85rem;
    margin-bottom: 24px;
  }

  /* 見出し（詳細度の高いセレクタも含め一括で縮小） */
  .lp-h2,
  .lp-pain-points .lp-h2,
  #features > .lp-h2,
  #flow .lp-h2,
  #pricing > .lp-h2,
  #faq > .lp-h2 {
    font-size: 1.4rem;
    margin-bottom: 40px;
  }

  /* お悩み */
  .lp-pain-points .point {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
  }

  .point-icon {
    width: 120px;
    height: auto;
  }

  .point-icon img {
    width: 100px;
    height: 100px;
  }

  .point-body {
    padding: 24px 20px;
  }

  .point-body h3 {
    font-size: 1.1rem;
  }

  /* Feature */
  .lp-feature {
    flex-direction: column !important;
    gap: 20px;
    margin-bottom: 40px;
  }

  .lp-feature-text {
    flex: 1 1 auto;
    width: 100%;
  }

  .lp-feature-image {
    flex: 1 1 auto;
    width: 100%;
  }

  .lp-feature h3 {
    font-size: 1.2rem;
  }

  /* 導入フロー */
  .lp-step-list {
    margin-block: 40px;
  }

  .step-item {
    gap: 16px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    border-radius: 24px;
  }

  .step-title {
    font-size: 1.1rem;
  }

  /* 料金表 */
  .lp-price-table {
    margin-block: 40px;
  }

  .lp-price-table th,
  .lp-price-table td {
    padding: 10px 8px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* FAQ */
  .faq-item {
    gap: 16px;
  }

  .faq-q {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    border-radius: 24px;
  }

  .faq-title {
    font-size: 1.1rem;
  }

  /* CTA */
  .lp-cta {
    padding: 40px 24px;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  /* ボタン */
  .lp-btn {
    display: block;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
  }

  /* フッター */
  .lp-footer-inner {
    padding: 40px 24px;
    gap: 24px;
  }

  .lp-footer-brand {
    font-size: 1.5rem;
  }

  .lp-footer-notes {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Print ===== */

@media print {
  .lp-header, .hamburger, .nav-overlay, .lp-btn, .lp-cta { display: none; }
  body { color: #000; background: #fff; }
  .lp-hero, #features, #pricing { margin-left: 0; margin-right: 0; padding: 20px 0; }
  .lp-footer { background: #fff; color: #000; }
}