/* =====================================================
   SUICH | reasons.css
   【用途】選ばれる理由ページ（reasons.html）専用スタイル
   　・3つの強みカード
   　・一般会社との比較テーブル
   　・FAQアコーディオン
   　・閉じるボックス（CTA）
===================================================== */

/* メインレイアウト：コンテンツ幅と縦余白 */
.main-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 96px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* セクションブロック：各コンテンツのまとまり */
.section-block { /*margin-bottom: 100px; */scroll-margin-top: 92px; }

.js-sp-accordion-content{
 padding-bottom: 100px;
}
  
/* セクション番号ラベル（例：「Our Strength」） */
.section-num {
  font-family: 'Cormorant Garamond', serif;
  font-size:16px; letter-spacing: 0.25em;
  color: var(--green-accent); font-weight: 600;
  margin-bottom: 8px; text-transform: uppercase;
}

/* セクション見出し */
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700; color: var(--green-dark);
  line-height: 1.5; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}

/* 本文リード文 */
.lead-text {
  font-size: 16px; color: var(--grey-mid); line-height: 2; margin-bottom: 40px;
}

/* =====================================================
   強みカード（3枚）
===================================================== */
.reason-cards { display: flex; flex-direction: column; gap: 32px; }

.reason-card {
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.reason-card:hover {
  box-shadow: 0 8px 40px rgba(26,58,42,0.1);
  transform: translateY(-3px);
}

/* カードヘッダー：番号＋見出し */
.reason-card-head {
  background: var(--green-dark);
  padding: 28px 36px;
  display: flex; align-items: flex-start; gap: 24px;
}
.reason-big-num {
  margin-top: -0.3em;
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px; font-weight: 600;
  color: var(--green-vivid); line-height: 1; flex-shrink: 0;
}
.reason-head-text h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700; color: #fff; line-height: 1.6;
  margin-bottom: 8px;
}
.reason-head-text p {
  font-size:16px; color: var(--on-dark-low); line-height: 1.85;
}

/* カード本体：ポイントリスト */
.reason-card-body { padding: 32px 36px; background: #fff; }

.reason-points {
  margin-top: 1em;;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.reason-point {
  background: var(--grey-pale);
  border-radius: 6px; padding: 20px;
  border-left: 3px solid var(--green-accent);
}
.reason-point-title {
  font-size:16px; font-weight: 700;
  color: var(--green-dark); margin-bottom: 6px;
}
.reason-point-desc { font-size:16px; color: var(--grey-mid); line-height: 1.85; }

/* =====================================================
   比較テーブル
===================================================== */
.comp-wrap { overflow-x: auto; margin-top: 24px; }
.comp-table { width: 100%; border-collapse: collapse; font-size:16px; }
.comp-table th {
  padding: 16px 20px; text-align: center;
  font-weight: 700; font-size:16px; letter-spacing: 0.05em;
}
.th-label { background: var(--green-dark); color: #fff; }
.th-other { background: var(--grey-light); color: #fff; }
.th-us    { background: var(--green-mid); color: #fff; }
.comp-table td {
  padding: 16px 20px; border-bottom: 1px solid var(--border); background: #fff; text-align: center;
}
.comp-table td:first-child { font-weight: 600; color: var(--green-dark); background: var(--green-pale); font-size:16px; }
.td-other { color: var(--grey-mid); }
.td-us    { color: var(--green-mid); font-weight: 600; }
.comp-table tr:last-child td { border-bottom: none; }

/* =====================================================
   FAQアコーディオン
===================================================== */
.faq-list { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; }
.faq-item { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.faq-q {
  padding: 20px 24px; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  background: #fff; transition: background .18s;
  user-select: none;
}
.faq-q:hover { background: var(--green-pale); }
.faq-item.is-open .faq-q { background: var(--green-pale); }
.faq-q-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600;
  color: var(--green-accent); flex-shrink: 0;
  line-height: 1;
}
.faq-q-text { font-size: 16px; font-weight: 700; color: var(--green-dark); line-height: 1.5; }
.faq-a {
  display: none;
  padding: 16px 24px 24px 64px;
  font-size:16px; color: var(--grey-mid); line-height: 2;
  background: #fff; border-top: 1px solid var(--border);
}

/* 右端の開閉アイコン（閉じている時：↑） */
.faq-item .faq-q{position: relative;}
.faq-item .faq-q::after {
  width: 1.0em;
  height: 1.0em;
  background: url("../img/icon_open.png") no-repeat center / contain;
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: sans-serif;
  color: var(--green-accent);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.3s;
}

/* 開いている時のスタイル（開いている時：↓） */
.faq-item.is-open .faq-q::after {
  background: url("../img/icon_close.png") no-repeat center / contain;
}

/* =====================================================
   閉じるCTA（ページ末尾の相談ボタンエリア）
===================================================== */
.closing-box {
  background: var(--green-dark); border-radius: 8px; overflow: hidden;
}
.closing-inner {
  padding: 56px; text-align: center;
  position: relative;
}
.closing-inner h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700; color: #fff; line-height: 1.6; margin-bottom: 12px;
}
.closing-inner p { font-size:16px; color: var(--on-dark-low); margin-bottom: 32px; line-height: 1.9; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-accent); color: #fff;
  padding: 16px 40px; font-size: 16px; font-weight: 700;
  letter-spacing: 0.08em; text-decoration: none;
  border-radius: 3px; transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); }

/* レスポンシブ対応 */
@media (max-width: 900px) {
  .main-layout { padding: 64px 24px; gap: 64px; }
  .reason-points { grid-template-columns: 1fr; }
  .reason-card-head { padding: 24px; }
  .reason-card-body { padding: 24px; }
  .closing-inner { padding: 36px 24px; }
}

/* section headings (synced from guide.css) */
.section-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 0.25em;
  color: var(--green-accent);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-num em {
  font-style: normal;
  font-size: 50px;
  font-weight: 500;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 3.7vw, 36px);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.5;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Mobile layout */
@media (max-width: 900px) {
  .main-layout {
    padding: 14vw 5vw;
    gap: 11vw;
  }
  .reason-card-head,
  .reason-card-body,
  .closing-inner {
    padding: 5vw 4vw;
  }
  .reason-card-head {
    display: grid;
    gap: 2vw;
  }
  .reason-points {
    grid-template-columns: 1fr;
  }
  .comp-wrap {
    overflow-x: auto;
    margin-left: -5vw;
    margin-right: -5vw;
    padding: 0 5vw;
  }
  .comp-table {
    min-width: 680px;
  }
  .faq-q {
    padding: 4vw 10vw 4vw 4vw;
  }
  .faq-a {
    padding: 3vw 4vw 4vw;
  }
  .closing-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-layout {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}
