/* ============================================================
   lp-sim.css  トップの「経営シミュレーション」セクション(section#simulation)  2026-10-31
   - template.html の head で読み込む(style-1 / style-2 は触らない)
   - 見た目は新 LP の型に合わせている
       見出し: closing-sections_heading(小見出し → 短い罫線 → ネイビー太字見出し)と同じ値
       主ボタン: closing-sections_downloadButton(青の塗り)と同じ値
       カード: 白地・薄い水色の罫線 #d6eaf8・角丸
       背景の淡い水色パネル: 旧 COLUMN 内の小さな導線(closing-sections_simulation)と同じ #eff8ff・角丸 12px
   - 1100px 以下で左右 2 カラムを縦積みにする(新 LP の他セクションと同じ切り替え幅)
   - 出現アニメーションは motion.js が data-m を付ける(このファイルには書かない)
   ============================================================ */

.lp-sim {
  padding: 56px 0;
  background: #fff;
  color: var(--navy);
}
.lp-sim__wrap {
  width: min(1160px, calc(100% - 100px));
  margin-inline: auto;
}

/* ----- 見出しブロック(closing-sections_heading と同じ値) ----- */
.lp-sim__head {
  text-align: center;
}
.lp-sim__eyebrow {
  margin: 0;
  color: #0751c7;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: .04em;
}
.lp-sim__rule {
  display: block;
  width: 30px;
  height: 1px;
  margin: 6px auto 18px;
  background: #4b7ee0;
}
.lp-sim__head h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: -.045em;
}
.lp-sim__head h2 span {
  white-space: nowrap;
}

/* ----- 左右 2 カラム(淡い水色のパネルの上に並べる) ----- */
.lp-sim__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: center;
  gap: 48px;
  margin-top: 32px;
  padding: 40px 48px;
  border-radius: 12px;
  background: #eff8ff;
}

/* ----- 左: 紹介文 ----- */
.lp-sim__copy {
  min-width: 0;
}
.lp-sim__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 16px 4px 4px;
  border: 1px solid #d6eaf8;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}
.lp-sim__badge span {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
}
.lp-sim__lead {
  margin: 20px 0 0;
  color: #4a5f86;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: -.01em;
}
.lp-sim__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.lp-sim__chips li {
  padding: 8px 14px;
  border: 1px solid #d6eaf8;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}
.lp-sim__chips b {
  margin-inline: 2px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
}

/* 主ボタン(closing-sections_downloadButton と同じ値) */
.lp-sim__button,
.lp-sim__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 28px;
  border: 1px solid #1752bd;
  border-radius: 7px;
  background: linear-gradient(110deg, #175bc9, #1252bd);
  /* 2026-10-31 白点滅対策: グラデーション→単色の hover 遷移中に background-color が transparent から始まって背後が透けるのを防ぐ
     (グラデーションの終端色と同じ色を下に敷く。background ショートハンドの後に書くこと) */
  background-color: #1252bd;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s, box-shadow .16s, transform .16s;
}
.lp-sim__button {
  display: inline-flex;
  margin-top: 28px;
}
.lp-sim__button svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.lp-sim__button:hover,
.lp-sim__submit:hover {
  transform: translateY(-2px);
  background: #07449f;
  box-shadow: 0 5px 16px #174b9826;
}
.lp-sim__button:focus-visible,
.lp-sim__submit:focus-visible {
  outline: 3px solid #008be0;
  outline-offset: 4px;
}

/* ----- 右: 入力カード ----- */
.lp-sim__card {
  min-width: 0;
  padding: 28px;
  border: 1px solid #d6eaf8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 74, 140, .08);
}
.lp-sim__form {
  margin: 0;
}
.lp-sim__step {
  display: inline-block;
  margin: 0;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .04em;
}
.lp-sim__cardTitle {
  margin: 12px 0 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -.02em;
}
.lp-sim__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  margin-top: 18px;
}
.lp-sim__field {
  min-width: 0;
}
.lp-sim__field label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}
/* 入力欄: 淡い水色の地・水色の枠・角丸 8px(下層の問い合わせ・診断ページと同じ) */
.lp-sim__field input,
.lp-sim__field select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #c7dcf2;
  border-radius: 8px;
  background-color: #f5f9fd;
  color: var(--navy);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.lp-sim__field select {
  padding-right: 36px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231157c9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}
.lp-sim__field input::placeholder {
  color: #8a9bb8;
}
.lp-sim__field input:focus,
.lp-sim__field select:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(17, 87, 201, .25);
  outline-offset: 0;
}

/* 棒グラフ風の飾り(画像を使わず CSS だけで描く。読み上げ対象外) */
.lp-sim__chart {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: #f3f8fd;
}
.lp-sim__chartTitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}
.lp-sim__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: #4a5f86;
  font-size: 12px;
  line-height: 1.4;
}
.lp-sim__bars {
  display: grid;
  gap: 4px;
}
.lp-sim__bar {
  display: block;
  height: 8px;
  border-radius: 999px;
}
.lp-sim__bar--on { background: linear-gradient(90deg, #4b8ef0, var(--blue)); }
.lp-sim__bar--off { background: #c7d3e3; }
.lp-sim__bar--82 { width: 82%; }
.lp-sim__bar--70 { width: 70%; }
.lp-sim__bar--58 { width: 58%; }
.lp-sim__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 12px 0 0;
  color: #4a5f86;
  font-size: 12px;
  line-height: 1.5;
}
.lp-sim__key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lp-sim__key::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.lp-sim__key--on::before { background: var(--blue); }
.lp-sim__key--off::before { background: #c7d3e3; }

.lp-sim__submit {
  width: 100%;
  margin-top: 18px;
  min-height: 56px;
  font-size: 16px;
}

/* ----- 幅ごとの調整(切り替え幅は style-2.css の closing-sections に合わせる) ----- */
@media (max-width:1100px) and (min-width:801px) {
  .lp-sim__wrap { width: calc(100% - 80px); }
  .lp-sim__eyebrow { font-size: 13px; line-height: 1.4; }
  .lp-sim__rule { margin: 3px auto 12px; }
  .lp-sim__head h2 { font-size: 34px; line-height: 1.25; }
}
@media (max-width:1100px) {
  .lp-sim { padding: 44px 0; }
  .lp-sim__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px;
  }
  .lp-sim__copy,
  .lp-sim__card {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }
}
@media (max-width:800px) {
  .lp-sim__wrap { width: calc(100% - 48px); }
  .lp-sim__head h2 { font-size: 34px; }
  .lp-sim { padding: 40px 0; }
}
@media (max-width:600px) {
  .lp-sim__wrap { width: calc(100% - 40px); }
  .lp-sim__eyebrow { font-size: 12px; letter-spacing: .08em; }
  .lp-sim__rule { width: 26px; margin-bottom: 16px; }
  .lp-sim__head h2 { font-size: clamp(25px, 6.75vw, 29px); line-height: 1.5; }
  .lp-sim { padding: 32px 0; }
  .lp-sim__body { margin-top: 24px; padding: 20px 16px; }
  .lp-sim__lead { font-size: 15px; }
  /* スマホは「経営シミュレーション診断を試す →」を 1 行に収める(2026-10-31)
     文字幅の見積もり(border-box。Web フォントは読み込まず端末のフォントで出る)
       375px のボタン内側 = 375 - 40(wrap) - 32(body の左右 padding) - 2(border) - 32(左右 padding 16) = 269px
       中身 = 14 字 × (13.5 - 13.5×.02)px + 8(gap) + 18(矢印) = 185.2 + 26 = 211.2px(全角 1 字 = 1em の場合)
       Windows の Chromium で実測すると文字 197.9px + 26 = 223.9px。どちらでも 269px に収まる */
  .lp-sim__button {
    display: flex;
    width: 100%;
    gap: 8px;
    padding-inline: 16px;
    font-size: 13.5px;
    letter-spacing: -.02em;
    white-space: nowrap;
  }
  .lp-sim__button svg { width: 18px; height: 18px; }
  .lp-sim__card { padding: 20px 16px; }
  .lp-sim__cardTitle { font-size: 18px; }
}
/* 320px 前後: 13.5px・padding 16 のままだと内側 214px に対して中身 211.2px(実測 223.9px)で収まらないので、
   文字を 1px 下げ、左右 padding を 12px に詰める
     内側 = 320 - 40 - 32 - 2 - 24(左右 padding 12) = 222px
     中身 = 14 字 × (13 - 13×.02)px + 8 + 18 = 178.4 + 26 = 204.4px(1 字 = 1em)/ 実測 190.6 + 26 = 216.6px → どちらも 222px に収まる */
@media (max-width:360px) {
  .lp-sim__button { padding-inline: 12px; font-size: 13px; }
}
@media (max-width:420px) {
  .lp-sim__fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion:reduce) {
  .lp-sim__button,
  .lp-sim__submit { transition: none; }
  .lp-sim__button:hover,
  .lp-sim__submit:hover { transform: none; }
}
