/* ============================
   基本設定
============================ */

body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  background: #f5f7fa;
  color: #333;
  line-height: 1.8;
  font-size: 16px;
}

h2, h3 {
  font-weight: 700;
}

/* ============================
   ヒーロー
============================ */

.hero {
  background: linear-gradient(135deg, #dfe7ff, #f7f9ff);
  padding: 80px 20px;
  text-align: center;
  border-bottom: 1px solid #dfe3eb;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  background-image: url("images/head.png"); /* ←入れたい画像パス */
}

.hero h1 {
  font-size: 32px;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.lead {
  margin-top: 14px;
  font-size: 18px;
  color: #fff;
}

/* ============================
   セクション
============================ */

.section {
  padding: 60px 20px;
  max-width: 1050px;
  margin: auto;
}

.section-bg-light {
  background: #eef2f9;
  border-top: 1px solid #dde3f0;
  border-bottom: 1px solid #dde3f0;
}

/* ============================
   セクションタイトル（強調・章タイトル風）
============================ */

.section {
  padding: 40px 20px; /* 上下の余白を広げて章感を出す */
  position: relative;
}

/* セクションの上に太い区切り線 */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 6px;
  background: #4a6cf7;
  border-radius: 3px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(to bottom, #7f94b8, #556ba8, #364a88);
  padding: 14px 28px;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}


.section-title h2.ope {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  background: #2f7fbf;
  padding: 14px 28px;
  border-radius: 0;
  display: block;
}




/* タイトル下のラインを太く長く */
.title-line {
  width: 100px;
  height: 6px;
  background: linear-gradient(90deg, #4a6cf7, #6a8dfc);
  margin: 20px auto 0;
  border-radius: 3px;
}

/* ============================
   課題・支援・解決（横3つ）
============================ */

.kadai-wrapper {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.kadai-box {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  width: 32%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid #e6e9ef;
  text-align: center;
}

.kadai-icon {
  width: 90%;
  margin-bottom: 16px;
}

.kadai-box h3 {
  color: #3a4a85;          /* 少し柔らかい青み */
  margin-bottom: 10px;
  margin-top: 0px;
  font-weight: 500;
  padding: 6px 12px;       /* ふんわり余白 */
  border: 2px solid #d6d9e4; /* 主張しすぎない淡い枠線 */
  border-radius: 6px;      /* 角を少し丸くして優しい印象 */
  background: #f7f8fc;     /* ほんのり色をつけてボックス感 */
}


.kadai-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kadai-box li {
  margin: 6px 0;
}

@media (max-width: 768px) {
  .kadai-wrapper {
    flex-wrap: wrap;
  }
  .kadai-box {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* ============================
   SERVICES（横並びカード）
============================ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18%, 1fr));
  gap: 10px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 0px 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid #e6e9ef;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

h3.service-card {
  box-shadow: none !important;
  color: #3a4a85;
  margin: 10px 0 10px 0;
  font-weight: 500;
  padding: 5px 10px;
  border: 1.5px solid #d6d9e4;
  border-radius: 4px;
  background: transparent;
  align-items: center;       /* 縦中央 */
  justify-content: center;   /* 横中央 */
  text-align: center;
  min-height: 48px;          /* 1〜2行の高さを揃える（調整OK） */
  max-height: 72px;          /* 3行になったら自然に広がる */
  line-height: 1.4;
}
.service-card p {
  flex-grow: 1;
  text-align:left;
}

/* ボタンをカードの一番下に固定 */
.service-card .btn {
  margin-top: auto;
}

.service-icon {
  width: 80%;
  display: block;
  margin: 10px auto 0; /* 上10px、左右autoでセンター、下0 */
}

/* ============================
   ボタン
============================ */

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4a6cf7, #6a8dfc);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  margin-bottom:30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================
   料金表（お堅め＋縦線あり）
============================ */

h3.ryokin {
  color: #3a4a85;
  margin-bottom: 0px;
  margin-top: 40px;
  font-weight: bold;
  padding: 8px 12px; /* 上だけ少し余白を広めに */
  background: #ffffff;   /* ほんのり色で見出しを浮かせる */
  border-top: 2px solid #e3e5ec; /* 左線の代わりに“上だけ”のアクセント */
  border-bottom: 2px solid #e3e5ec; /* 左線の代わりに“上だけ”のアクセント */
  border-radius: 4px;    /* 控えめな丸み */
}


.price-table,
.feature-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #ffffff;
  border: 2px solid #c2c7d0; /* 表全体の枠線を太めに */
}

.price-table th,
.feature-table th {
  background: #e6e9ef;
  padding: 14px;
  font-weight: 700;
  color: #2a3f7a;
  border-bottom: 2px solid #c2c7d0;
  border-right: 1px solid #c2c7d0; /* 縦線追加 */
  text-align: left;
  height:50px;
}

.price-table th:last-child,
.feature-table th:last-child {
  border-right: none; /* 最後の列は右線なし */
}

.price-table td,
.feature-table td {
  padding: 12px;
  border-bottom: 1px solid #d5d9e0;
  border-right: 1px solid #c2c7d0; /* 縦線追加 */
  font-size: 15px;
  color: #333;
}

.price-table td:last-child,
.feature-table td:last-child {
  border-right: none; /* 最後の列は右線なし */
}

.price-table tr:last-child td,
.feature-table tr:last-child td {
  border-bottom: none; /* 最終行の下線は消す */
}
/* ============================
   料金表：列幅を統一
============================ */

/* サービス名は広め、その他の列は同じ幅にする */
.feature-table th:nth-child(1),
.feature-table td:nth-child(1) {
  width: 32%; /* サービス名（広め） */
}

.feature-table th:nth-child(2),
.feature-table td:nth-child(2),
.feature-table th:nth-child(3),
.feature-table td:nth-child(3),
.feature-table th:nth-child(4),
.feature-table td:nth-child(4) {
  width: 12%; /* リード獲得／即効性／拡散性（統一） */
}

/* 最後の列（向いている企業）は少し広め */
.feature-table th:nth-child(5),
.feature-table td:nth-child(5) {
  width: 32%;
}
.price-flex {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.price-table.half {
  width: 48%;
}


/* 表タイトル（キャプション） */
caption {
  text-align: left;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
  color: #2a3f7a;
  border-left: 4px solid #4a6cf7;
  padding-left: 10px;
}


/* 表のキャプション（タイトル） */
caption {
  text-align: left;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
  color: #2a3f7a;
  border-left: 4px solid #4a6cf7; /* 左に帯を追加して公式感UP */
  padding-left: 10px;
}

/* ============================
   箇条書き
============================ */

.bullet {
  list-style: none;
  padding-left: 0;
}

.bullet li {
  margin: 6px 0;
}

/* ============================
   フェードイン
============================ */

.fadein {
  opacity: 0;
  animation: fadein 0.8s ease-out forwards;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================
   お問い合わせフォームスペース
============================ */

.form-space {
  background: #fff;
  border: 2px dashed #aac0ff;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  margin-top: 40px;
}

.form-space p {
  color: #2a3f7a;
  font-size: 18px;
  font-weight: bold;
}

/* ============================
   固定CTAフッター
============================ */

.cta-footer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #4a6cf7, #6a8dfc);
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 999;
}

.cta-footer a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .cta-footer {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    padding: 16px;
    text-align: center;
  }
}


/* ============================
   フッター（OPTRONICS風）
============================ */

.footer {
  background: #ffffff;
  border-top: 1px solid #dcdfe5;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1050px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #2a3f7a;
}

.footer-left p {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
}

.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-right li {
  margin: 6px 0;
}

.footer-right a {
  text-decoration: none;
  color: #2a3f7a;
  font-size: 14px;
}

.footer-copy {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e3e6eb;
  font-size: 13px;
  color: #777;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
}
