:root {
  /* Colors */
  --color-primary: #1e293b;
  --color-primary-dark: #0f172a;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-secondary: #f97316;
  --color-bg-light: #f8fafc;
  --color-bg-white: #ffffff;
  --color-text-main: #334155;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 70px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  line-height: 1.5;
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

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

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

*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 2000;
  padding: 8px 16px;
  background: var(--color-primary-dark);
  color: white;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
}

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

/* ===== Utilities ===== */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 960px;
}

.bg-light {
  background-color: var(--color-bg-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 15px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  border: 1px solid var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--color-accent);
  color: white;
}

.btn--full {
  width: 100%;
  margin-bottom: 20px;
}

.section-padding {
  padding: 80px 0;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

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

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary-dark);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 16px;
  display: block;
  margin-bottom: 16px;
}

/* ===== Logo / Image ===== */

.lp-image {
  width: 200px;
  max-width: 100%;
  height: auto;
}

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

header {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-back-btn {
  padding: 14px 15px;
  font-size: 16px;
  gap: 8px;
}

.header-back-btn::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;
}

.logo {
  font-weight: 800;
  font-size: 24px;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--color-accent);
}

.logo-img {
  height: 32px;
  width: auto;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav a {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-accent);
}

nav a:hover,
nav a:focus {
  color: var(--color-accent-hover);
}

/* 固定ヘッダー分のスクロールオフセット */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

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

.hero-logo {
  margin: 1.5rem 0 1.5rem;
}

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

.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  overflow: hidden;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  padding-block: 35px;
}

.hero-text h1 {
  font-size: 40px;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}

.hero-text p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: white;
}

.hero-accent {
  color: var(--color-accent);
}

.hero-cta {
  display: flex;
  gap: 16px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: 0.3s;
}

.feature-card:hover,
.feature-card:focus {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

.feature-link {
  color: var(--color-accent);
  font-weight: 600;
}

.feature-link:hover,
.feature-link:focus {
  text-decoration: underline;
}

/* ===== Detailed Services ===== */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.service-detail:nth-child(even) .service-text {
  order: 2;
}

.service-detail:nth-child(even) .service-img {
  order: 1;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-title {
  font-size: 32px;
}

.service-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fff7ed;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.service-img img {
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== Video Section ===== */

.video-caption {
  color: var(--color-text-muted);
}

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: flex-start;
}

.pricing-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--color-border);
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--color-accent);
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: bold;
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 2rem;
}

.plan-price span {
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.pricing-card-desc {
  color: var(--color-text-muted);
  font-size: 16px;
}

.price-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 16px;
}

.price-features li:last-child {
  border-bottom: none;
}

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

footer {
  background-color: var(--color-primary-dark);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.footer-logo {
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

.footer-text a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.footer-text a:hover,
.footer-text a:focus {
  color: white;
}

.btn--footer {
  background: white;
  color: var(--color-primary-dark);
  border-color: white;
}

.footer-copy {
  margin-top: 60px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Hamburger Menu ===== */

.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: var(--color-primary-dark);
  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 {
  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;
}

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

/* --- Tablet: 〜1023px --- */
@media (max-width: 1023px) {
  .hero {
    padding: 120px 0 80px;
  }

  .hero-content {
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 44px;
  }

  .service-detail {
    gap: 40px;
  }

  .pricing-card.featured {
    transform: scale(1.02);
  }
}

/* --- Mobile: 〜767px --- */
@media (max-width: 767px) {
  /* ヘッダー高さ */
  :root {
    --header-height: 60px;
  }

  /* ロゴ縮小 */
  .lp-image {
    width: 150px;
  }

  /* ハンバーガーを表示 */
  .hamburger {
    display: flex;
  }

  /* ナビ: ドロップダウン */
  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  nav.is-open {
    display: block;
  }

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

  nav ul li {
    display: block;
  }

  nav a:not(.btn) {
    display: block;
    padding: 14px;
    border-bottom: 1px solid var(--color-border);
    font-size: 16px;
    text-align: center;
  }

  nav ul li:last-child {
    margin-top: 12px;
    text-align: center;
  }

  nav ul li:last-child .btn {
    width: 100%;
  }

  .header-back-btn {
    font-size: 16px;
    padding: 6px 12px;
  }

  /* ヒーローロゴ: センタリング */
  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }

  /* ヒーロー: 1カラム縦積み */
  .hero {
    padding: 90px 0 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 16px;
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* セクション共通 */
  .section-padding {
    padding: 50px 0;
  }

  .section-title {
    font-size: 26px;
  }

  /* フィーチャーカード */
  .feature-card {
    padding: 28px;
  }

  /* サービス詳細: 1カラム、テキスト先・画像後 (DOM順) */
  .service-detail {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 60px;
  }

  /* モバイルでは交互レイアウト (order) をリセット */
  .service-detail:nth-child(even) .service-text,
  .service-detail:nth-child(even) .service-img {
    order: unset;
  }

  .service-title {
    font-size: 24px;
  }

  /* プライシング: 1カラム */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* featured カードの scale を解除 (はみ出し防止) */
  .pricing-card.featured {
    transform: none;
  }
}

/* --- 小型スマホ: 〜480px --- */
@media (max-width: 480px) {
  .lp-image {
    width: 120px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  /* CTAボタンを縦並び・全幅に */
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  .plan-price {
    font-size: 32px;
  }

  .pricing-card {
    padding: 28px 24px;
  }
}

@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;
  }
}

@media print {
  .header, .hamburger, .nav-overlay, .btn, .footer { display: none; }
  body { color: #000; background: #fff; }
}
