:root {
  --color-main: #2b5fa3;
  --color-main-dark: #1b3f6e;
  --color-bg-soft: #eef2f8;
  --color-accent: #f2b134;
  --color-text: #26313f;
  --color-text-soft: #5b6b7d;
  --color-white: #ffffff;
  --max-width: 1120px;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(27, 63, 110, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-white);
}

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

a { color: inherit; }

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

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e4e9f0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--color-text);
}

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

.header-cta {
  display: inline-block;
  background: var(--color-main);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-main-dark);
}

/* ===== セクション共通 ===== */
section { padding: 88px 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: bold;
  color: var(--color-main);
  background: var(--color-bg-soft);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--color-main-dark);
}

.section-lead {
  font-size: 15px;
  color: var(--color-text-soft);
  max-width: 640px;
  margin: 0 0 40px;
}

.section-alt { background: var(--color-bg-soft); }

/* ===== 画像プレースホルダー ===== */
.img-slot {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fbfbfd;
}

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.img-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  font-size: 12.5px;
  color: #9aa7b6;
  background: repeating-linear-gradient(
    45deg,
    #f4f6fa,
    #f4f6fa 10px,
    #eef1f6 10px,
    #eef1f6 20px
  );
  border: 2px dashed #c9d2df;
  padding: 12px;
}

.img-fallback .fallback-label {
  font-weight: bold;
  color: var(--color-main);
}

.img-fallback .fallback-file {
  font-family: monospace;
  color: #6b7787;
}

/* ===== ヒーロー ===== */
.hero {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .catch {
  font-size: 34px;
  line-height: 1.5;
  margin: 0 0 20px;
  color: var(--color-main-dark);
}

.hero-copy .catch em {
  font-style: normal;
  color: var(--color-main);
}

.hero-copy .sub {
  font-size: 15.5px;
  color: var(--color-text-soft);
  margin: 0 0 20px;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  color: #8a5a00;
  background: #fdf1d9;
  border: 1px solid #f2b134;
  padding: 7px 16px;
  border-radius: 999px;
  margin: 0 0 28px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: bold;
  text-align: center;
}

.btn-primary {
  background: var(--color-main);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #fff;
  color: var(--color-main);
  border: 1.5px solid var(--color-main);
}

.hero-visual .img-slot { aspect-ratio: 16 / 9; box-shadow: var(--shadow); }

/* ===== 紹介動画(PV) ===== */
.pv-section {
  text-align: center;
  padding-bottom: 64px;
}

.pv-section .section-eyebrow,
.pv-section .section-title {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.pv-section .section-title { margin-bottom: 28px; }

.pv-video-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0b1220;
}

.pv-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== 無料診断バナー ===== */
.diagnosis-banner {
  background: linear-gradient(135deg, #fff6e5, #ffe8b8);
  border-top: 1px solid #f2d99a;
  border-bottom: 1px solid #f2d99a;
  padding: 36px 0;
}

.diagnosis-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.diagnosis-text { flex: 1; min-width: 260px; }

.diagnosis-tag {
  display: inline-block;
  background: #fff;
  color: #b5790f;
  font-weight: bold;
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.diagnosis-text h2 {
  font-size: 22px;
  margin: 0 0 6px;
  color: #5a3d05;
}

.diagnosis-text p {
  font-size: 13.5px;
  color: #7a5c1e;
  margin: 0;
}

.btn-diagnosis {
  background: var(--color-main-dark);
  color: #fff;
  padding: 16px 32px;
  font-size: 15px;
  white-space: nowrap;
  flex: none;
}

/* ===== 課題提起 ===== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.problem-list li {
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14.5px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.problem-list li::before {
  content: "!";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #5a4300;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-visual .img-slot { aspect-ratio: 16 / 9; }

/* ===== コンセプト ===== */
.concept-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.concept-visual .img-slot { aspect-ratio: 3 / 2; }

.concept-copy p { font-size: 14.5px; color: var(--color-text-soft); }

/* ===== 強み ===== */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.strength-card {
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: var(--radius);
  padding: 26px 22px;
}

.strength-card .num {
  font-size: 12px;
  color: var(--color-main);
  font-weight: bold;
  letter-spacing: 0.06em;
}

.strength-card h3 {
  font-size: 16px;
  margin: 10px 0 8px;
  color: var(--color-main-dark);
}

.strength-card p {
  font-size: 13.5px;
  color: var(--color-text-soft);
  margin: 0;
}

/* ===== プラグイン一覧 ===== */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plugin-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--color-text-soft);
  text-align: center;
}

.plugin-card {
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plugin-card .img-slot { aspect-ratio: 1 / 1; width: 56px; height: 56px; border-radius: 10px; }
.plugin-card .img-slot .img-fallback { font-size: 8.5px; padding: 4px; }

.plugin-card h3 {
  font-size: 16px;
  margin: 0;
  color: var(--color-main-dark);
}

.plugin-card .plugin-pain {
  font-size: 12.5px;
  color: #b0472f;
  background: #fdf0ec;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 0;
}

.plugin-card .plugin-solve {
  font-size: 13.5px;
  color: var(--color-text-soft);
  margin: 0;
}

/* ===== 導入の流れ ===== */
.flow-visual .img-slot { aspect-ratio: 3 / 1; margin-bottom: 40px; }

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.flow-step {
  text-align: center;
  position: relative;
}

.flow-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 12px;
}

.flow-step h4 {
  font-size: 14.5px;
  margin: 0 0 6px;
  color: var(--color-main-dark);
}

.flow-step p {
  font-size: 12.5px;
  color: var(--color-text-soft);
  margin: 0;
}

/* ===== 実績インパクト ===== */
.impact-stat {
  background: var(--color-main-dark);
  color: #fff;
}

.impact-stat-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.impact-stat-visual .img-slot { aspect-ratio: 16 / 9; }
.impact-stat-visual .img-fallback {
  background: repeating-linear-gradient(45deg, #2a4a78, #2a4a78 10px, #294570 10px, #294570 20px);
  border-color: #3a5d90;
  color: #b9c9e0;
}

.impact-stat-number {
  display: inline-block;
  font-size: 15px;
  font-weight: bold;
  color: #2c1f00;
  background: var(--color-accent);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.impact-stat-copy h2 {
  color: #fff;
  font-size: 28px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.impact-stat-copy p {
  font-size: 14.5px;
  color: #cfdcec;
  line-height: 1.85;
  margin: 0 0 28px;
}

.impact-stat-copy .btn-primary { background: var(--color-accent); color: #4a3200; }

/* ===== 料金 ===== */
.pricing-box {
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.pricing-box .price-note {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-top: 14px;
}

.placeholder-fill {
  color: var(--color-main);
  font-weight: bold;
}

/* ===== 実績 ===== */
.testimonial-box {
  border: 1px dashed #c9d2df;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 14px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: var(--radius);
  padding: 56px 24px 26px;
  text-align: center;
}

.testimonial-card .testimonial-quote,
.testimonial-card .testimonial-who {
  text-align: left;
}

.testimonial-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  color: var(--color-main);
  background: var(--color-bg-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 14px;
}

.testimonial-avatar {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  background: #fff;
}

.testimonial-avatar .img-fallback {
  font-size: 8px;
  padding: 2px;
  border-radius: 50%;
}

.testimonial-who {
  font-size: 12.5px;
  color: var(--color-text-soft);
  margin: 0;
}

.testimonial-note {
  font-size: 12.5px;
  color: var(--color-text-soft);
  margin-top: 20px;
}

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; max-width: 760px; }

.faq-item {
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 14.5px;
  font-weight: bold;
  color: var(--color-main-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--color-main);
}

.faq-item[open] summary::after { content: "-"; }

.faq-item p {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--color-text-soft);
}

/* ===== 会社概要 ===== */
.company-table {
  width: 100%;
  max-width: 680px;
  border-collapse: collapse;
}

.company-table th, .company-table td {
  text-align: left;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
}

.company-table th {
  width: 140px;
  color: var(--color-text-soft);
  font-weight: normal;
}

/* ===== お問い合わせ ===== */
.contact-box {
  background: var(--color-main-dark);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}

.contact-box h2 { color: #fff; }

.contact-box .section-lead { color: #cfdcec; margin-left: auto; margin-right: auto; }

.contact-box .btn-primary { background: var(--color-accent); color: #4a3200; }

.contact-form {
  text-align: left;
  max-width: 640px;
  margin: 32px auto 0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: bold;
  color: #dce6f2;
  margin-bottom: 16px;
}

.contact-field-label-wide { grid-column: 1 / -1; }

.contact-input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  color: var(--color-text);
  font-family: inherit;
}

.contact-input:focus { outline: 2px solid var(--color-accent); }

.contact-textarea { resize: vertical; }

.contact-form-error {
  font-size: 12.5px;
  color: #ffd7cf;
  margin: -4px 0 14px;
}

.contact-form button[type="submit"] {
  border: none;
  width: 100%;
}

.contact-form-success {
  max-width: 640px;
  margin: 32px auto 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-form-success p { margin: 0; font-size: 14px; color: #eef4fb; }

/* ===== 無料診断モーダル ===== */
.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quiz-modal[hidden] {
  display: none;
}

.quiz-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 45, 0.55);
}

.quiz-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.quiz-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-soft);
  cursor: pointer;
  padding: 4px 8px;
}

.quiz-progress {
  height: 6px;
  background: var(--color-bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0 24px;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-main);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.quiz-step-label {
  font-size: 12px;
  color: var(--color-text-soft);
  margin: 0 0 8px;
}

.quiz-question {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-main-dark);
  margin: 0 0 18px;
  line-height: 1.6;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-options-grid {
  grid-template-columns: repeat(2, 1fr);
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid #dbe3ee;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.quiz-option:hover {
  border-color: var(--color-main);
  background: var(--color-bg-soft);
}

.quiz-intro p {
  font-size: 14px;
  color: var(--color-text-soft);
  margin: 0 0 20px;
}

.quiz-result-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  color: #b5790f;
  background: #fff6e5;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.quiz-result-title {
  font-size: 19px;
  color: var(--color-main-dark);
  margin: 0 0 12px;
}

.quiz-result-body {
  font-size: 14px;
  color: var(--color-text-soft);
  line-height: 1.85;
  margin: 0 0 12px;
}

.quiz-result-body:last-of-type {
  margin-bottom: 24px;
}

.quiz-note {
  font-size: 11px;
  color: #98a4b3;
}

.quiz-lead-note {
  font-size: 13px;
  color: var(--color-text-soft);
  margin: 0 0 20px;
  line-height: 1.7;
}

.quiz-field-label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: var(--color-main-dark);
  margin-bottom: 14px;
}

.quiz-input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font-size: 14px;
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  color: var(--color-text);
  font-family: inherit;
}

.quiz-input:focus {
  outline: none;
  border-color: var(--color-main);
}

.quiz-lead-error {
  font-size: 12.5px;
  color: #b5342a;
  margin: 0 0 14px;
}

.quiz-lead-submit {
  width: 100%;
  border: none;
}

.quiz-back {
  background: none;
  border: none;
  color: var(--color-text-soft);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
}

/* ===== フッター ===== */
.site-footer {
  background: #f6f8fb;
  padding: 40px 0;
  font-size: 12.5px;
  color: var(--color-text-soft);
  text-align: center;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .nav-links, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .hero .container { grid-template-columns: 1fr; }
  .problem-grid, .concept-grid, .impact-stat-inner { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .plugin-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e4e9f0;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open a {
    padding: 14px 24px;
    border-top: 1px solid #eef1f6;
  }
}

@media (max-width: 520px) {
  section { padding: 56px 0; }
  .hero-copy .catch { font-size: 26px; }
  .strength-grid, .plugin-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .quiz-dialog { padding: 26px 18px 22px; }
  .quiz-question { font-size: 16px; }
  .quiz-options-grid { grid-template-columns: 1fr; }
  .contact-form-grid { grid-template-columns: 1fr; }
}
