/* =================
   ベース
================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  color: #333;
  padding-bottom: 80px; /* 固定CTA対策 */
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

h1, h2 {
  margin-bottom: 20px;
}

.center {
  text-align: center;
}

/* =================
   FV
================= */
.fv {
  background: #eef5fb;
  padding: 60px 0;
}

.fv .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.fv-text {
  flex: 1;
}

.fv-image {
  flex: 1;
  min-height: 300px;
  border-radius: 10px;
  background: url("img/fv.jpg") no-repeat center/cover;
}

/* 安心要素 */
.trust {
  margin-top: 15px;
  font-size: 14px;
}

.trust p {
  margin: 5px 0;
}

/* バッジ */
.badge {
  display: inline-block;
  margin: 10px 0;
  padding: 5px 10px;
  background: #2a7f62;
  color: #fff;
}

/* 価格 */
.price-box span {
  font-size: 28px;
  font-weight: bold;
  color: #ff7a00;
}

/* =================
   CTA
================= */
.cta {
  margin-top: 20px;
}

.cta.center {
  text-align: center;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  margin-right: 10px;
  text-decoration: none;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn.primary {
  background: #ff7a00;
  box-shadow: 0 4px 10px rgba(255,122,0,0.3);
}

.btn.line {
  background: #00c300;
}

/* =================
   共感
================= */
.empathy {
  background: #f5f5f5;
  padding: 60px 0;
}

.empathy ul {
  list-style: none;
  padding: 0;
}

.empathy li {
  margin-bottom: 10px;
}

/* =================
   サービス
================= */
.service {
  padding: 60px 0;
}

.service-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-box {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s;
  transform: translateZ(0);
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box .img {
  width: 100%;
}

.service-box img {
  display: block;
  width: 100%;
  height: auto;
}

.service-box h3 {
  margin: 0;
  padding: 12px;
  text-align: center;
  background: #f0f3f7;
}

.service-box .desc {
  padding: 0 15px 15px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.plus {
  font-size: 40px;
}

/* =================
   強み
================= */
.strength {
  padding: 60px 0;
}

.strength-grid {
  display: flex;
  gap: 20px;
}

.card {
  flex: 1;
  padding: 20px;
  background: #f0f8ff;
  border-radius: 10px;
}

/* =================
   TMS
================= */
.tms {
  padding: 60px 0;
}

.tms-flex {
  display: flex;
  gap: 30px;
}

.tms img {
  max-width: 100%;
  height: 200px;
  border-radius: 8px;
  background: #ddd;
}

.highlight {
  font-size: 24px;
  font-weight: bold;
  color: #ff7a00;
}

.case {
  padding: 60px 0;
  background: #fff;
}

.case h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

.case-card {
  max-width: 800px;
  margin: auto;
  background: #f9fafb;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.case-card h3 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
}

.case-content {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.case-before,
.case-after {
  width: 48%;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
}

.case-before {
  border-top: 5px solid #f87171;
}

.case-after {
  border-top: 5px solid #34d399;
}

.case-before h4,
.case-after h4 {
  margin-bottom: 10px;
}

.case-comment {
  margin-top: 20px;
  text-align: center;
  font-style: italic;
  color: #333;
}

.case-note {
  text-align: center;
  font-size: 12px;
  margin-top: 15px;
  color: #666;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .case-before,
  .case-after {
    width: 100%;
  }
}


/* =================
   料金
================= */
.price {
  padding: 60px 0;
  text-align: center;
  background: #fff3e8;
}

.price h2 {
  font-size: 40px;
  font-weight: bold;
  color: #ff7a00;
}

/* =================
   流れ（完成版）
================= */

.flow {
  padding: 60px 0;
  background: #f9fafb;
}

.flow h3 {
  text-align: center;
  margin-bottom: 40px;
}

/* リスト全体 */
.flow ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  position: relative;
}

/* 縦ライン */
.flow ol::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
}

/* 各ステップ */
.flow li {
  position: relative;
  background: #fff;
  padding: 20px 20px 20px 70px;
  margin-bottom: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
  counter-increment: step;
  transition: 0.3s;
}

/* ホバーで少し浮く（PC） */
.flow li:hover {
  transform: translateY(-3px);
}

/* ステップ番号 */
.flow li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #4CAF50, #66bb6a);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 34px;
  font-weight: bold;
  font-size: 14px;
}

/* タイトル */
.flow li h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #333;
}

/* 説明文 */
.flow li p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* スマホ対応 */
@media (max-width: 768px) {

  .flow li {
    padding: 15px 15px 15px 60px;
  }

  .flow li::before {
    left: 15px;
    top: 18px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 13px;
  }

  .flow ol::before {
    left: 28px;
  }

  .flow li h4 {
    font-size: 16px;
  }

  .flow li p {
    font-size: 13px;
  }
}
/* =================
   FAQ
================= */
.faq {
  padding: 60px 0;
}

/* =================
   FAQ装飾
================= */
/* =================
   FAQ（共通）
================= */
.faq {
  background: #f9fbff;
  padding: 60px 0;
}

.faq h2 {
  text-align: center;
  margin-bottom: 30px;
}

.faq details {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden; /* ←SafariでもOKな安全な使い方 */
}

/* 質問 */
.faq summary {
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 18px 45px 18px 15px;
  font-size: 16px;
  line-height: 1.5;
}

/* デフォルト矢印削除 */
.faq summary::-webkit-details-marker {
  display: none;
}

/* ＋ボタン */
.faq summary::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: bold;
  color: #ff7a00;
  transition: 0.3s;
}

/* 開いた時 */
.faq details[open] summary::after {
  content: "−";
}

/* 開いた時の色 */
.faq details[open] summary {
  background: #fff3e8;
}

/* 回答 */
.faq details p {
  padding: 15px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

/* =================
   スマホ最適化
================= */
@media (max-width: 768px) {

  .faq {
    padding: 40px 0;
  }

  .faq h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .faq summary {
    font-size: 15px;
    padding: 16px 45px 16px 15px;
  }

  .faq details p {
    font-size: 14px;
    padding: 12px 15px 18px;
  }

  /* タップしやすく */
  .faq summary {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* カード間の余白広め */
  .faq details {
    margin-bottom: 12px;
  }
}
/* =================
   クロージング
================= */
.closing {
  padding: 60px 0;
  text-align: center;
  color: #fff;
  background: #1e4f7a;
}

/* =================
   フッター
================= */
footer {
  padding: 20px;
  text-align: center;
  background: #eee;
}

/* =================
   固定CTA
================= */
.floating-cta {
  display: none;
}

/* =================
   レスポンシブ
================= */
@media (max-width: 768px) {

  /* FV */
  .fv .container {
    flex-direction: column-reverse;
  }

  .fv-image {
    width: 100%;
    height: 40vh;
    min-height: 200px;
    background-position: center top;
  }

  /* レイアウト系まとめ */
  .service-flex,
  .strength-grid,
  .tms-flex,
  .flow-flex {
    flex-direction: column;
  }

  /* ボタン */
  .btn {
    display: block;
    margin-bottom: 10px;
  }

  /* サービスカード */
  .service-box {
    flex: 1;
  }

  .service-box .desc {
    font-size: 13px;
    line-height: 1.6;
    padding: 10px 12px 15px;
  }

  /* 固定CTA */
  .floating-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .floating-cta .btn {
    flex: 1;
    margin: 0;
    padding: 15px;
    font-size: 14px;
    text-align: center;
    border-radius: 0;
  }
}