/* 現場メイト LP — Xserver 静的ホスト想定
 *
 * ブランド青: 自社ロゴ #004386（製品 globals.css の --primary と同期）
 * ホバーは同系色を少し濃く。背景は爽やかな白〜薄いクールグレーで軽さを出す。
 */
:root {
  /* 製品 --text #111827 に近いチャコール */
  --ink: #1c1d1f;
  --ink-muted: #4b5563;
  /* ベース・交互セクション用（slate 系の白〜薄グレー） */
  --paper: #f8fafc;
  --paper-deep: #f1f5f9;
  --line: #e2e8f0;
  /* 自社ロゴカラー */
  --accent: #004386;
  --accent-hover: #00366f;
  /* プレリリース帯：青ではなくニュートラルで圧をかけすぎない */
  --banner: #2d2a28;
  --white: #fff;
  --space-section: clamp(3.5rem, 8vw, 6rem);
  --space-block: clamp(1.25rem, 3vw, 2rem);
  --max: 68rem;
  --radius: 6px;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* 縦スクロールバー有無でレイアウトが左右にズレないようにする */
  scrollbar-gutter: stable;
}

main {
  width: 100%;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

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

/* プレリリース帯 */
.pre-banner {
  background: var(--banner);
  color: var(--paper);
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1rem;
}

.pre-banner strong {
  font-weight: 600;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  text-decoration: none;
}

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

.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

/* レイアウト */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: var(--space-section) 0;
}

.section--tight {
  padding-top: calc(var(--space-section) * 0.65);
  padding-bottom: calc(var(--space-section) * 0.65);
}

.section--paper {
  background: var(--paper-deep);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 var(--space-block);
  letter-spacing: 0.02em;
  text-align: center;
}

.section__lead {
  margin: 0 auto 1.5rem;
  color: var(--ink-muted);
  max-width: 38em;
  text-align: center;
}

.section__lead--after-tags {
  margin-top: 1.5rem;
}

/* 運営ブロックはカード内で読みやすく左寄せ */
.section__lead--operator {
  margin-bottom: 0;
  text-align: left;
}

/* ヒーロー */
.hero {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: var(--space-section);
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
  }

  /* サンクスページはPCでも1カラム中央 */
  .hero__grid--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ヒーロー文言はタイトル〜リードと軸を揃えて中央（PCでも見出しとリードのバランスを取る） */
.hero__grid > div:first-child {
  text-align: center;
}

.hero__label {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 auto 1.25rem;
  letter-spacing: 0.02em;
  max-width: 16em;
}

.hero__sub {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  margin: 0 auto 1.75rem;
  max-width: 28em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.hero__note {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 1rem;
}

.steps__note {
  margin-top: 1.5rem;
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

/* ヒーロー実スクリーンショット */
.hero-shot {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(28, 27, 25, 0.08);
  overflow: hidden;
  max-width: 660px;
  margin: 0 auto;
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-shot figcaption {
  padding: 0.6rem 0.85rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  background: #f9fbff;
  text-align: center;
}

/* リスト・カード */
.worry-list,
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.worry-list li,
.benefit-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--ink-muted);
}

.worry-list li::before,
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.7;
}

/* リード文と同じ読み幅にそろえ、PCでも中央に置く */
.section__lead + .worry-list,
.section__lead + .benefit-list,
.section__title + .benefit-list {
  max-width: 38em;
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem auto 0;
  max-width: 56rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.step-card__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.step-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.highlight-box {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem auto 0;
  max-width: 40em;
  text-align: left;
}

.highlight-box p {
  margin: 0;
  font-size: 0.9375rem;
}

.story-body {
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.story-body p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.story-body p:last-child {
  margin-bottom: 0;
}

/* 比較表 */
.compare-table-wrap {
  width: 100%;
  margin-top: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.compare-device-gallery {
  margin: 1.25rem auto 0;
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}

.compare-device {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
}

.compare-device img {
  display: block;
  width: 100%;
  height: auto;
}

.compare-device figcaption {
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-align: center;
  border-top: 1px solid var(--line);
  background: #f9fbff;
}

/* 比率差が大きいので、PCは横長・スマホはやや細く見せる */
.compare-device--pc {
  max-width: 100%;
}

.compare-device--sp {
  max-width: 15rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .compare-device-gallery {
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: center;
    gap: 1.25rem;
  }

  .compare-device--pc img,
  .compare-device--sp img {
    height: 24rem;
    object-fit: contain;
    background: var(--white);
  }

  .compare-device--sp {
    margin: 0;
    justify-self: center;
  }
}

.compare-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.compare-table tbody th[scope="row"] {
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
  background: var(--paper);
}

.compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  vertical-align: top;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.65);
}

.compare-rank {
  display: inline-block;
  min-width: 1.25em;
  font-weight: 700;
  color: var(--accent);
}

.compare-rank--ok {
  color: #2563eb;
}

.compare-rank--mid {
  color: #b45309;
}

.compare-rank--bad {
  color: #991b1b;
}

.compare-pricing-note {
  margin: 1.75rem auto 0;
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 42em;
  text-align: left;
}

.compare-pricing-note p {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.compare-pricing-note p:last-child {
  margin-bottom: 0;
}

/* 料金 */
.pricing {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem auto 0;
  max-width: 52rem;
}

@media (min-width: 560px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.price-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--ink);
}

.price-card .price small {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
}

.price-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.price-card li {
  margin-bottom: 0.35rem;
}

/* ターゲットタグ */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

.tag {
  font-size: 0.8125rem;
  padding: 0.4rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
}

/* 安心 */
.reassure-grid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem auto 0;
  max-width: 56rem;
}

@media (min-width: 600px) {
  .reassure-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reassure-item {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reassure-item strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.reassure-item span {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* 運営 */
.operator {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.operator__box {
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.operator__name {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

/* 最終 CTA */
.final-cta {
  text-align: center;
  padding: var(--space-section) 1.25rem;
  background: var(--ink);
  color: var(--paper);
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 1.5rem;
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn--primary {
  background: var(--paper);
  color: var(--ink);
}

.final-cta .btn--primary:hover {
  background: var(--white);
  color: var(--ink);
}

.final-cta__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  opacity: 0.75;
}

/* 申し込みアンカー */
#apply {
  scroll-margin-top: 5rem;
}

.apply-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.apply-box p {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.contact-form__label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.72rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: 2px solid rgba(0, 67, 134, 0.2);
  border-color: var(--accent);
}

.contact-form__honeypot {
  display: none;
}

/* サンクスページ */
.thanks-block {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.thanks-block h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 1rem;
}

.thanks-block__lead {
  margin-left: auto;
  margin-right: auto;
}

.thanks-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* フッター */
.site-footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.site-footer a {
  color: var(--ink-muted);
}
