/* ============================================================
   ゲンバAI — サイト共通スタイル
   デザイントークンの出典: .gpt-image-website/kensetsu-ai/02-reference/design-system.md
   ============================================================ */

:root {
  --navy: #1f2a38;
  --navy-deep: #16202c;
  --beige: #f5f1e8;
  --orange: #e8611a;
  --orange-dark: #c94f10;
  --gray: #ecebe4;
  --line: #d8d4c8;
  --white: #ffffff;
  --text: #1f2a38;
  --text-weak: #5a6572;
  --radius: 4px;
  --maxw: 1080px;
  --fs-body: 1.0625rem;   /* 17px — 読者層に合わせて大きめ */
  --fs-small: 0.9375rem;
  --space-section: clamp(64px, 9vw, 112px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

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

h1, h2, h3 { font-weight: 900; line-height: 1.45; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.125rem); }
h3 { font-size: clamp(1.125rem, 2.2vw, 1.3125rem); }

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: var(--fs-small);
  border-bottom: 3px solid var(--orange);
  padding-bottom: 2px;
  margin-bottom: 14px;
}

.section { padding: var(--space-section) 0; }
.section-beige { background: var(--beige); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-top: 14px; color: var(--text-weak); }
.section-navy .section-head p { color: #c9d0d9; }

/* ---------- 工事帯（安全ストライプ） ---------- */
.hazard-stripe {
  height: 18px;
  background: repeating-linear-gradient(
    -45deg,
    var(--orange) 0 26px,
    var(--navy) 26px 52px
  );
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 16px 30px;
  font-size: 1.0625rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  min-height: 48px;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--gray); }
.section-navy .btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.section-navy .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.btn-note { display: block; margin-top: 10px; font-size: 0.875rem; color: var(--text-weak); }
.section-navy .btn-note { color: #c9d0d9; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-name { font-size: 1.375rem; font-weight: 900; letter-spacing: 0.02em; }
.brand-tag { font-size: 0.75rem; color: var(--text-weak); font-weight: 700; }
.site-nav ul { list-style: none; display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 700; font-size: var(--fs-small); }
.site-nav a:hover { color: var(--orange-dark); }
.site-nav .btn { padding: 10px 18px; font-size: var(--fs-small); }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- ヒーロー ---------- */
.hero { background: var(--beige); }
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 20px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero h1 { font-size: clamp(1.75rem, 4.6vw, 2.875rem); line-height: 1.4; }
.hero .lead { margin-top: 18px; font-size: clamp(1rem, 1.8vw, 1.125rem); }
.hero-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-visual img { border: 3px solid var(--navy); border-radius: var(--radius); }
.hero-points {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  font-weight: 700;
  font-size: var(--fs-small);
}
.hero-points li::before { content: "✓ "; color: var(--orange); font-weight: 900; }

/* ---------- 課題（icon feature list） ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pain-item { border-top: 4px solid var(--navy); padding-top: 18px; }
.pain-item .num { font-weight: 900; color: var(--orange); font-size: 0.9375rem; }
.pain-item h3 { margin: 6px 0 8px; }
.pain-item p { font-size: var(--fs-small); color: var(--text-weak); }

/* ---------- できること（bento grid） ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento-tile {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bento-tile.wide { grid-column: span 3; }
.bento-tile.std { grid-column: span 2; }
.bento-tile .tag {
  align-self: flex-start;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 2px;
}
.bento-tile h3 { font-size: 1.125rem; }
.bento-tile p { font-size: var(--fs-small); color: var(--text-weak); line-height: 1.7; }
.bento-tile .io { font-size: 0.8125rem; font-weight: 700; color: var(--navy); background: var(--beige); padding: 8px 10px; border-radius: 2px; margin-top: auto; }

/* ---------- 使い方（step / 濃紺帯） ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.step {
  background: var(--beige);
  color: var(--text);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step .step-num {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  padding: 2px 12px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: var(--fs-small); color: var(--text-weak); }
.steps-cta { text-align: center; }

/* ---------- 比較表 ---------- */
.table-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td {
  border: 2px solid var(--navy);
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  font-size: var(--fs-small);
  background: var(--white);
}
.compare-table thead th { background: var(--navy); color: var(--white); font-size: 1rem; }
.compare-table thead th.hl { background: var(--orange); }
.compare-table td.hl { background: #fdf0e8; font-weight: 700; }
.compare-note { margin-top: 16px; font-size: var(--fs-small); color: var(--text-weak); }

/* ---------- media-text split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split-visual img { border: 3px solid var(--navy); border-radius: var(--radius); }
.split-text h2 { margin-bottom: 16px; }
.split-text p + p { margin-top: 12px; }
.split-text .honest {
  margin-top: 20px;
  border-left: 5px solid var(--orange);
  background: var(--white);
  padding: 16px 18px;
  font-size: var(--fs-small);
}

/* ---------- 料金 ---------- */
.pricing { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: stretch; }
.price-card {
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.price-card .price-head { background: var(--navy); color: var(--white); padding: 14px 22px; font-weight: 900; }
.price-card .price-body { padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-value { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; line-height: 1.2; }
.price-value small { font-size: 1rem; font-weight: 700; }
.price-sub { color: var(--text-weak); font-size: var(--fs-small); }
.price-card .btn { margin-top: auto; }
.included { list-style: none; display: grid; gap: 12px; }
.included li { border-bottom: 2px solid var(--line); padding-bottom: 12px; font-weight: 700; }
.included li span { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--text-weak); }
.included li::before { content: "✓ "; color: var(--orange); font-weight: 900; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); margin-bottom: 14px; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  font-weight: 700;
  padding: 18px 48px 18px 20px;
  cursor: pointer;
  position: relative;
  color: var(--navy);
}
.faq-q::after {
  content: "＋";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  color: var(--orange);
}
.faq-item.open .faq-q::after { content: "－"; }
.faq-a { display: none; padding: 0 20px 18px; font-size: var(--fs-small); color: var(--text-weak); }
.faq-item.open .faq-a { display: block; }

/* ---------- CTAバナー ---------- */
.cta-banner { text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: #c9d0d9; margin-bottom: 26px; }

/* ---------- フォーム ---------- */
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 2px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.opt {
  display: inline-block;
  background: var(--text-weak);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 2px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font: inherit;
  padding: 14px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  min-height: 48px;
}
.field-error { display: none; color: #c0271a; font-size: 0.875rem; margin-top: 4px; }
.form-field.invalid input, .form-field.invalid select { border-color: #c0271a; }
.form-field.invalid .field-error { display: block; }
.form-status { min-height: 1.5em; font-weight: 700; margin: 8px 0 16px; }
.form-status.error { color: #c0271a; }
.form-status.sending { color: var(--text-weak); }
.form-note { font-size: 0.875rem; color: var(--text-weak); margin-top: 14px; }
.form-complete { display: none; background: var(--beige); border: 2px solid var(--navy); border-radius: var(--radius); padding: 28px; }

/* ---------- 記事 ---------- */
.article { max-width: 760px; margin: 0 auto; padding: var(--space-section) 20px; }
.article h1 { font-size: clamp(1.625rem, 3.6vw, 2.25rem); margin-bottom: 10px; }
.article .meta { color: var(--text-weak); font-size: var(--fs-small); margin-bottom: 36px; }
.article h2 { margin: 44px 0 16px; padding-left: 14px; border-left: 6px solid var(--orange); font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
.article h3 { margin: 30px 0 10px; }
.article p + p { margin-top: 14px; }
.article ul, .article ol { padding-left: 1.4em; margin: 14px 0; }
.article li + li { margin-top: 6px; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: var(--fs-small); }
.article th, .article td { border: 2px solid var(--navy); padding: 10px 12px; text-align: left; }
.article th { background: var(--beige); }
.article .prompt-box {
  background: var(--navy);
  color: #f0ece2;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.9375rem;
  line-height: 1.8;
  white-space: pre-wrap;
  margin: 14px 0;
  font-family: inherit;
}
.article .example-box { background: var(--beige); border: 2px solid var(--navy); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; font-size: var(--fs-small); }
.article-cta {
  margin: 40px 0;
  background: var(--beige);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.article-cta h2 { border: none; padding: 0; margin: 0 0 10px; }
.article-cta p { margin-bottom: 18px; }

/* ---------- 汎用・信頼ページ ---------- */
.page-body { max-width: 760px; margin: 0 auto; padding: var(--space-section) 20px; }
.page-body h1 { margin-bottom: 28px; }
.page-body h2 { margin: 36px 0 12px; font-size: 1.25rem; }
.page-body p + p { margin-top: 12px; }
.page-body ul, .page-body ol { padding-left: 1.4em; margin: 12px 0; }
.placeholder { background: #fff3cd; border: 2px dashed #b8860b; padding: 4px 10px; border-radius: 2px; font-weight: 700; }

/* ---------- テンプレDL ---------- */
.dl-list { list-style: none; display: grid; gap: 14px; margin: 24px 0; }
.dl-list li { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 16px 18px; font-weight: 700; }
.dl-list li span { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--text-weak); }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-deep); color: #c9d0d9; font-size: var(--fs-small); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand .brand-name { color: var(--white); font-size: 1.25rem; font-weight: 900; }
.footer-brand p { margin-top: 10px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #c9d0d9; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #3a4656; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .bento-tile.wide, .bento-tile.std { grid-column: span 6; }
  .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 440px; }
  .pain-grid, .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-visual { max-width: 440px; margin: 0 auto; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--navy);
    padding: 12px 20px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 10px; }
  .hero-ctas .btn { width: 100%; }
}
