/* ===== FONT: Yu Gothic (Windows Medium mapping) ===== */
@font-face {
  font-family: AdjustedYuGothic;
  font-weight: 400;
  src: local("Yu Gothic Medium"), local("YuGothic-Medium");
}
@font-face {
  font-family: AdjustedYuGothic;
  font-weight: 700;
  src: local("Yu Gothic Bold"), local("YuGothic-Bold");
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:     #0077c7;
  --blue-dk:  #1b75ba;
  --teal:     #00c4cc;
  --teal-lt:  #3cdce2;
  --yellow:   #ffcd00;
  --dark:     #23221e;
  --gray:     #706d65;
  --gray-lt:  #aaa69f;
  --gray-bd:  #d6d3d0;
  --bg:       #f8f7f6;
  --bg2:      #edebe8;
  --white:    #ffffff;
  --container: 1200px;
  --pad-x:    clamp(20px, 5vw, 120px);
  --pad-y:    80px;
  --radius:   6px;
}

html {
  scroll-behavior: smooth;
  /* 横スクロール防止：要素が viewport を数px超えても無視
     overflow-x: clip は sticky を壊さない新仕様、hidden は古いブラウザ用フォールバック */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: AdjustedYuGothic, "Yu Gothic", YuGothic, "Hiragino Sans", sans-serif;
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.fa-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.fa-phone::before { content: "☎"; }
.fa-bars::before { content: "☰"; }
.fa-xmark::before { content: "×"; }
.fa-globe::before { content: "◎"; }
.fa-shield-halved::before { content: "◇"; }
.fa-bolt::before { content: "⚡"; }
.fa-envelope::before { content: "✉"; }
.fa-comments::before { content: "…"; }
.fa-pen-to-square::before { content: "✎"; }
.fa-language::before { content: "A"; }
.fa-magnifying-glass::before { content: "⌕"; }
.fa-rocket::before { content: "↑"; }
.fa-plus::before { content: "+"; }
.fa-paper-plane::before { content: "→"; }
.fa-circle-check::before { content: "✓"; }
.fa-circle-exclamation::before { content: "!"; }

.fa-spinner {
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}

.fa-spinner::before { content: ""; }

.fa-spin {
  animation: iconSpin .8s linear infinite;
}

@keyframes iconSpin {
  to { transform: rotate(360deg); }
}

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

/* ===== NAV ===== */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-bd);
  height: 56px;
}

.nav-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  transition: color .2s;
}

.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: opacity .2s;
  white-space: nowrap;
}

.nav-cta:hover { opacity: .85; }

/* Mobile Sticky CTA（既定は非表示、SPでのみ表示） */
.sticky-cta {
  display: none;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--dark);
  font-size: 20px;
}

/* ===== HERO ===== */
#hero {
  background-image: url('hero.webp');
  background-image: image-set(url('hero.webp') type('image/webp'), url('hero.png') type('image/png'));
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: var(--pad-y) var(--pad-x);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  align-self: flex-start;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.hero-h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.03em;
}

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

.hero-desc {
  font-size: 16px;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.5;
  max-width: 520px;
  text-shadow: 0 0 6px rgba(255,255,255,.9), 0 0 14px rgba(255,255,255,.7), 0 0 28px rgba(255,255,255,.4);
}

.hero-btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 400px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 199, 0.3);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  padding: 11px 23px; /* border:1px 分を引いてbtn-primaryと外形サイズを統一 */
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
}

.btn-secondary:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 199, 0.15);
}

.btn-secondary--on-dark {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-secondary--on-dark:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

.hero-card {
  width: 380px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--gray-bd);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.hero-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-lt);
  letter-spacing: 1px;
}

.hero-card-price-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.hero-card-num {
  font-size: 52px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.hero-card-unit {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.hero-card-tax {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.hero-card-sub {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
}

.hero-card-divider {
  height: 1px;
  background: var(--blue);
  margin: 8px 0;
}

.hero-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-card-features li {
  font-size: 13px;
  color: var(--dark);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hero-card-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 0.45em; /* テキスト1行目の中央に光学補正 */
}

/* ===== STATS BAND ===== */
#stats {
  background: linear-gradient(160deg, var(--teal-lt) 0%, var(--teal) 100%);
  padding: 64px var(--pad-x);
}

.stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  display: none;
}

.stat-num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  padding-bottom: 12px;
  position: relative;
}

.stat-num::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1.6px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, var(--yellow) 30%, var(--yellow) 70%, rgba(255,255,255,0) 100%);
}

.stat-num--text {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s ease, transform .8s ease;
}

.stat-num--text.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-note {
  font-size: 16px;
  color: var(--white);
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.8);
  flex-shrink: 0;
}

/* ===== SECTION COMMON ===== */
.section {
  padding: var(--pad-y) var(--pad-x);
}

.section-bg { background: var(--bg); }
.section-teal { background: rgba(0,197,204,0.05); }
.section-faq { background: radial-gradient(ellipse at 70% 70%, #ebf4f3, #f2f6f5); }

.heading-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
}

/* section-lead ありのカードセクションのみ視覚補正 */
.pricing-inner > .heading-group    { margin-bottom: 16px; } /* +32px card padding = 48 */

.section-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
}

.section-h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.section-lead {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.5;
  max-width: 640px;
}

/* ===== ABOUT ===== */
.about-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.about-img {
  width: 480px;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
  flex-shrink: 0;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  cursor: pointer;
  transition: box-shadow .25s ease;
}

.about-img:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transform: scale(.9);
  transition: transform .3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.about-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-step-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.about-step-body p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.5;
}

/* ===== WHY ===== */
.why-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: linear-gradient(160deg, #2996de 0%, var(--blue-dk) 100%);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: none;
  box-shadow: 0 4px 16px rgba(0,119,199,.2);
  transition: transform .25s ease, box-shadow .25s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,119,199,.3);
}

.why-card:nth-child(2) {
  background: linear-gradient(160deg, #f5cf46 0%, var(--yellow) 100%);
  box-shadow: 0 4px 16px rgba(255,205,0,.25);
}

.why-card:nth-child(2):hover {
  box-shadow: 0 8px 24px rgba(255,205,0,.35);
}

.why-card:nth-child(3) {
  background: linear-gradient(160deg, var(--teal-lt) 0%, var(--teal) 100%);
  box-shadow: 0 4px 16px rgba(0,196,204,.2);
}

.why-card:nth-child(3):hover {
  box-shadow: 0 8px 24px rgba(0,196,204,.3);
}

.why-card-icon {
  font-size: 40px;
  color: var(--white);
}

.why-card:nth-child(2) .why-card-icon { color: var(--white); }

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
}

.why-card p {
  font-size: 16px;
  color: var(--white);
  line-height: 1.5;
  text-align: center;
  flex: 1;
}

.why-badge {
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.25);
  color: var(--white);
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,1);
  border-radius: 3px;
  margin-top: auto;
}

.why-card:nth-child(2) .why-badge {
  background: rgba(255,255,255,.3);
}

.why-card:nth-child(3) .why-badge {
  background: rgba(255,255,255,.25);
}

/* ===== FLOW ===== */
.flow-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.flow-box {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 48px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.flow-row {
  display: flex;
  gap: 24px;
}

.flow-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  flex-shrink: 0;
}

.flow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.flow-row:last-child .flow-circle { background: var(--teal); }
.flow-row:last-child .flow-day { color: var(--teal); }

.flow-line {
  width: 3px;
  flex: 1;
  background: var(--bg2);
  min-height: 72px;
}

.flow-row:last-child .flow-line { display: none; }

.flow-right {
  flex: 1;
  padding-bottom: 32px;
}

.flow-row:last-child .flow-right { padding-bottom: 0; }

.flow-day {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.flow-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.flow-desc {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.5;
}

/* ===== SAMPLE ===== */
.sample-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sample-card {
  background: var(--white);
  border: 1px solid var(--gray-bd);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
}

.sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.sample-bar {
  background: var(--bg2);
  padding: 0 16px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sample-dots {
  display: flex;
  gap: 5px;
}

.sample-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.sample-dot:nth-child(1) { background: #ff5f57; }
.sample-dot:nth-child(2) { background: #febc2e; }
.sample-dot:nth-child(3) { background: #28c840; }

.sample-url {
  font-size: 12px;
  color: var(--gray);
  flex: 1;
}

.sample-lang-badge {
  background: var(--blue);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}

.sample-img-area {
  height: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-lt);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}

.sample-img-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;  
}

.sample-body {
  padding: 20px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sample-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
}

.sample-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.sample-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
  flex: 1;
}

.sample-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.sample-link.inactive { color: var(--gray-lt); }

/* ===== PRICING ===== */
.pricing-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pricing-main {
  display: flex;
  align-items: center;
  gap: 32px;
}

.pricing-card-main {
  flex: 1;
  background: linear-gradient(160deg, #2996de 0%, #0177c7 100%);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(1,119,199,.25);
}

.pricing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: 1px;
}

.pricing-badge-teal {
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pricing-plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.pricing-price-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.pricing-price-num {
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.pricing-price-unit {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.pricing-price-tax {
  font-size: 12px;
  color: rgba(255,255,255,.85);
}

.pricing-divider {
  height: 1px;
  background: rgba(255,255,255,.13);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  flex-shrink: 0;
}

.pricing-plus {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  background: #0177c7;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(1,119,199,.3);
  align-self: center;
}

.pricing-card-support {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-bd);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  align-self: stretch;
}

.pricing-label-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-lt);
  letter-spacing: 1px;
}

.pricing-badge-yellow {
  background: var(--yellow);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pricing-plan-name2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.pricing-price-num2 {
  font-size: 44px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.pricing-price-unit2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.pricing-price-tax2 {
  font-size: 12px;
  color: var(--gray);
}

.pricing-annual-tag {
  background: #fff5e0;
  border: 1px solid #f5d080;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #b8930a;
  align-self: flex-start;
}

.pricing-divider2 {
  height: 1px;
  background: var(--blue);
}

.pricing-features2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-features2 li {
  font-size: 13px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features2 li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* Monitor Banner */
.monitor-banner {
  background: linear-gradient(160deg, #f5cf46 0%, var(--yellow) 100%);
  border: 1px solid var(--yellow);
  border-radius: 12px;
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.monitor-top {
  display: flex;
  align-items: center;
  gap: 32px;
}

.monitor-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(35,34,30,.15);
  flex-shrink: 0;
}

.monitor-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.monitor-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.monitor-badge {
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
}

.monitor-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.monitor-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}
.monitor-desc2 {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.7;
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.monitor-desc2 li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.monitor-desc2 li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
}

.monitor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--radius);
  min-width: 240px;
  transition: transform .2s, box-shadow .2s;
}

.monitor-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 199, 0.3);
}

.monitor-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.monitor-prices-row {
  display: flex;
  gap: 32px;
}

.monitor-price-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 200px;
}

.monitor-price-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
}

.monitor-price-from {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
}

.monitor-price-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
}

.monitor-price-num--sm {
  font-size: 28px;
}

.monitor-price-note {
  font-size: 10px;
  color: var(--gray);
  text-align: left;
}

.monitor-saving {
  background: var(--white);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Options */
.options-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.options-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 1px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.option-item {
  background: var(--white);
  border: 1px solid var(--gray-bd);
  border-radius: 12px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.option-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.option-sub {
  font-size: 12px;
  color: var(--gray);
  margin-top: 3px;
}

.option-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.option-price-unit {
  font-size: 12px;
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-box {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 48px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.faq-item {
  border-bottom: 1px solid var(--gray-bd);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  user-select: none;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
}

.faq-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}

.faq-q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.faq-icon {
  color: var(--gray-lt);
  font-size: 16px;
  transition: transform .3s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  font-size: 16px;
  color: var(--gray);
  line-height: 1.5;
  transition: max-height .35s ease, opacity .3s ease, padding .35s ease;
}

.faq-item.open .faq-a {
  max-height: 200px;
  opacity: 1;
  padding: 0 0 20px 0;
}

/* ===== FOUNDER ===== */
.founder-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.founder-card {
  background: var(--bg);
  border: 1px solid var(--gray-bd);
  border-radius: 12px;
  padding: 48px 40px;
  display: flex;
  gap: 48px;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.founder-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 160px;
  flex-shrink: 0;
}

.founder-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--gray-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-lt);
  font-size: 36px;
  overflow: hidden;
}

.founder-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--gray-bd);
  object-fit: cover;
  object-position: center top;
  display: block;
}

.founder-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.founder-name-en {
  font-size: 12px;
  color: var(--gray);
}

.founder-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.founder-tag {
  background: var(--bg2);
  font-size: 12px;
  color: var(--gray);
  padding: 3px 8px;
  border-radius: 3px;
}

.founder-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.founder-quote {
  border-left: 4px solid var(--blue);
  padding-left: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
}

.founder-bio {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.5;
}

.founder-links {
  display: flex;
  gap: 24px;
}

.founder-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.founder-links a:hover { text-decoration: underline; }

/* ===== CTA ===== */
#cta {
  background: linear-gradient(160deg, var(--teal) 0%, #17c8d1 100%);
  padding: var(--pad-y) var(--pad-x);
}

.cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.cta-h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,.95);
  line-height: 1.5;
}

.cta-btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
#footer {
  background: linear-gradient(160deg, #4e4c49, #535149);
  padding: 48px var(--pad-x) 32px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-addr {
  font-size: 12px;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding-top: 64px;
}

.footer-nav-head {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  letter-spacing: 2px;
}

.footer-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.footer-nav-links a {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  transition: color .2s;
}

.footer-nav-links a:hover { color: var(--white); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.8);
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  :root { --pad-x: 24px; }

  .hero-inner { flex-direction: column; gap: 40px; }
  .hero-card { width: 100%; max-width: 460px; }

  .stats-inner { flex-direction: column; gap: 32px; align-items: center; }
  .stat-divider { width: 80px; height: 1px; background: var(--yellow); }
  .stat-num::after { display: none; }

  .about-grid { flex-direction: column; }
  .about-img { width: 100%; height: auto; }

  .why-grid { grid-template-columns: 1fr; }

  .flow-box { padding: 32px 24px; }

  .sample-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .monitor-banner { padding: 32px 24px; align-items: center; text-align: center; }
  .monitor-top { flex-direction: column; }
  .monitor-divider { width: 80px; height: 1px; align-self: center; }
  .monitor-left { align-items: center; }
  .monitor-badge { align-self: center; }
  .monitor-bottom { flex-direction: column; }

  .options-grid { grid-template-columns: 1fr 1fr; }

  .founder-card { flex-direction: column; align-items: center; }
  .founder-col { width: auto; }
  .founder-tags { flex-direction: row; }
  .founder-body { width: 100%; }

  .footer-body { justify-content: center; gap: 40px; }
  .footer-right { align-items: flex-start; }
  .footer-nav-links { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
}

@media (max-width: 640px) {
  :root { --pad-y: 56px; }

  .nav-links { display: none; }
  .nav-hamburger {
    display: block;
    margin-left: auto;   /* 右端まで押し出す */
    font-size: 24px;     /* 20→24 一回り大きく */
    padding: 8px;        /* 4→8 タップ領域 40px に拡大 */
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-bd);
    gap: 16px;
    z-index: 99;
  }

  .options-grid { grid-template-columns: 1fr; }

  /* Pricing: SP縦並び・カード幅統一・＋中央 */
  .pricing-main { flex-direction: column; align-items: stretch; }
  .pricing-card-main { flex: none; width: 100%; }
  .pricing-card-support { flex: none; width: 100%; align-self: auto; }
  .pricing-plus { width: 48px; height: 48px; align-self: center; }

  /* Monitor: SP縦積み（横並びは窮屈で価格が改行・分裂するため） */
  .monitor-banner { padding: 20px 16px; }
  .monitor-prices-row { flex-direction: column; gap: 20px; }
  .monitor-price-item { width: 100%; }
  .monitor-price-num { font-size: 32px; }
  .monitor-price-num--sm { font-size: 26px; }
  .monitor-title { font-size: 15px; }

  .faq-box { padding: 24px 20px; }

  .founder-card { padding: 32px 24px; }

  .cta-btns { flex-direction: column; align-items: center; }

  /* === SP実機表示の不自然箇所 修正（2026-05-08） === */
  /* Hero h1: 26pxへ縮小し「日。」孤立を解消 */
  .hero-h1 { font-size: 26px; letter-spacing: -0.02em; }

  /* Issue 1根本対策（v2）：nowrap連鎖を断ち切る
     ・ボタンの white-space を normal にして min-content を1文字幅まで縮小
     ・flex親には min-width: 0 を全段に付与
     これでボタン content が viewport を超えても親を押し広げない */
  .hero-left, .hero-btns, .cta-btns { min-width: 0; }
  .hero-btns { width: 100%; max-width: none; }

  /* ボタン：white-space:normal で狭幅では2行折返しを許容（はみ出しより優先） */
  .btn-primary, .btn-secondary {
    font-size: 13px;
    white-space: normal;
    line-height: 1.35;
    min-width: 0;
  }
  .btn-primary  { padding: 12px 12px; }
  .btn-secondary { padding: 11px 11px; } /* border 1px分の差は維持 */

  /* CTA見出し：「い。」孤立を解消 */
  .cta-h2 { font-size: 20px; }

  /* Pricing カード：価格行の合計幅がカード内幅を超えて
     「5,000」「円/月」「（税抜）」が縦分裂する問題を解消 */
  .pricing-card-main, .pricing-card-support { padding: 24px 20px; }
  .pricing-price-row { flex-wrap: wrap; }
  .pricing-price-num  { font-size: 40px; }   /* 52→40 */
  .pricing-price-num2 { font-size: 32px; }   /* 44→32 */
  .pricing-price-unit  { font-size: 16px; }  /* 20→16 */
  .pricing-price-unit2 { font-size: 14px; }  /* 18→14 */
  .pricing-price-tax,
  .pricing-price-tax2 {
    font-size: 11px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Hero カード：価格行も同様に「（税抜）」「相場の約1/3」が
     1文字幅に潰れて縦分裂する問題を解消
     SPでは（税抜）非表示にしてバランス改善 */
  .hero-card-price-row { flex-wrap: wrap; column-gap: 8px; row-gap: 4px; }
  .hero-card-unit,
  .hero-card-sub { white-space: nowrap; flex-shrink: 0; }
  .hero-card-tax { display: none; }

  /* フッター：縦積みに切替えて MENU の窮屈な改行を根本解消 */
  .footer-body { flex-direction: column; gap: 24px; }
  .footer-right { padding-top: 0; width: 100%; }
  .footer-nav-links { gap: 12px 16px; }

  /* === 2026-05-08 v4: カード幅統一 + Founder バッジ === */
  /* Founder バッジ：「社」「ン」が孤立改行する問題を解消 */
  .founder-tag { white-space: nowrap; }

  /* カード幅を FAQ に揃える：内側コンテナの重複 padding-x を解除
     section 側の padding-x: 24px だけが効くようになり、
     全カードが viewport - 48px の幅に統一される */
  .container,
  .founder-inner,
  .pricing-inner { padding: 0; }

  /* モニター価格：本文と箇条書きだけ左揃え（badge/title は中央のまま） */
  .monitor-desc,
  .monitor-desc2 {
    text-align: left;
    align-self: stretch;
  }
  .monitor-desc2 li { text-align: left; }

  /* Mobile Sticky CTA：画面下に常時固定表示 */
  .sticky-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 14px 16px;
    background: var(--blue);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    z-index: 90;
  }
  /* sticky-cta に最下部コンテンツが隠れないよう余白を確保 */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}


/* ===== CONTACT ===== */
#contact { background: var(--bg); }

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--gray-bd);
  border-radius: 8px;
  padding: 40px 48px;
}

.cf-row { display: grid; gap: 16px; margin-bottom: 16px; }
.cf-row-2 { grid-template-columns: 1fr 1fr; }

.cf-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.cf-group:last-of-type { margin-bottom: 0; }

.cf-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cf-req {
  font-size: 10px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.cf-group input[type="text"],
.cf-group input[type="email"],
.cf-group input[type="tel"],
.cf-group textarea {
  font-family: AdjustedYuGothic, "Yu Gothic", YuGothic, "Hiragino Sans", sans-serif;
  font-size: 15px;
  color: var(--dark);
  background: #fff;
  border: 1px solid var(--gray-bd);
  border-radius: var(--radius);
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}
.cf-group input:hover,
.cf-group textarea:hover { border-color: #b0ada9; }
.cf-group input:focus,
.cf-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,119,199,0.12);
}
.cf-group input.error,
.cf-group textarea.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}
.cf-group input::placeholder,
.cf-group textarea::placeholder { color: var(--gray-lt); font-size: 14px; }
.cf-group textarea { resize: vertical; min-height: 100px; }

.cf-err {
  font-size: 12px;
  color: #c0392b;
  margin-top: 2px;
  display: none;
}
.cf-err.visible { display: block; }

.cf-divider {
  border: none;
  border-top: 1px solid var(--gray-bd);
  margin: 24px 0;
}

.cf-check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--gray-bd);
  border-radius: var(--radius);
}

.cf-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dark);
  cursor: pointer;
}
.cf-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}
.cf-check-other { flex-wrap: wrap; }
.cf-check-other input[type="text"] {
  flex: 1;
  min-width: 160px;
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid var(--gray-bd);
  border-radius: var(--radius);
  background: #fff;
  color: var(--dark);
  outline: none;
  font-family: AdjustedYuGothic, "Yu Gothic", YuGothic, "Hiragino Sans", sans-serif;
}
.cf-check-other input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,119,199,0.12);
}

.cf-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 32px;
  background: var(--blue);
  color: #fff;
  font-family: AdjustedYuGothic, "Yu Gothic", YuGothic, "Hiragino Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 28px;
  min-height: 52px;
}
.cf-submit:hover { background: var(--blue-dk); }
.cf-submit:active { transform: scale(0.99); }
.cf-submit:disabled { background: var(--gray-lt); cursor: not-allowed; transform: none; }

.cf-note {
  font-size: 12px;
  color: var(--gray-lt);
  text-align: center;
  margin-top: 16px;
  line-height: 1.7;
}

.cf-result {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.cf-result.visible { display: block; }

.cf-result-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}
.cf-result-ok { color: #27ae60; }
.cf-result-ng { color: #c0392b; }

.cf-result-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.cf-result-body {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}
.cf-result-body a { color: var(--blue); }

/* SP対応 */
@media (max-width: 640px) {
  .contact-form-wrap { padding: 28px 20px; }
  .cf-row-2 { grid-template-columns: 1fr; }
  /* カード幅統一：FAQと同じく section padding のみ効かせる */
  .contact-inner { padding: 0; }
}
