/* =========================================================
 全体の基本スタイル
========================================================= */
body {
  font-family: "Meiryo", "メイリオ", sans-serif;
  font-size: medium;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #0F141A;
  text-align: justify;
}
p {
  font-size: 1.25em;
}
.main {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* =========================================================
 ヒーローセクション
========================================================= */
.hero-section {
  padding: 50px 100px;
  background-image: url("2_top_background.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  text-align: left;
}
.hero-text {
  position: relative;
  text-align: center;
  font-weight: 600; /* 例：700=太字、600=やや太字 */
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.25);
}
.hero-section .new-release-icon {
  position: absolute;
  left: -150px;
  top: 100px;
  width: 220px;
  height: auto;
  max-width: none; /* hero-section img の max-width を打ち消す */
}
.hero-text .brand-logo {
  width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto; /* ロゴを中央へ */
  filter:
    drop-shadow(0 0 14px rgba(255,255,255,.95))
    drop-shadow(0 0 36px rgba(255,255,255,.70))
    drop-shadow(0 0 64px rgba(255,255,255,.42))
    drop-shadow(0 10px 22px rgba(0,0,0,.28));
}
.container2 {
  position: relative;
  text-align: center;
  padding: 50px 100px;
  font-size: 1.7em;
}
.container2 p {
  line-height: 2;
}
.container2 .loyal_customer_image {
  width: 650px;
  height: auto;
  display: block;
  margin: 0 auto; /* ロゴを中央へ */
}
.container2 .text_or {
  color: #E6871E;
}
.container2 .va_b {
  width: 750px;
  height: auto;
  margin: 0 auto;
}

/* 独自タグ（p1〜p5） */
.hero-section p1 {
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 5px;
  color: #fff;
  padding: 0px 1px;
}
.hero-section p2 {
  font-size: 2em;
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}
.hero-section p3 {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}
.hero-section p4 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}
.hero-section p5 {
  font-size: 0.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}
.hero-section a {
  text-decoration: none;
  color: #E8C731;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0.05em;
  padding: 14px 6px;
}
.hero-section .cta-button {
  background-color: #FFFFFF;
  color: #022553;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid transparent; /* ← 最初から透明なボーダーを設定 */
  padding: 20px 80px;
  font-size: 1.25em;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s ease;
  text-shadow:
    0 0px 0px rgba(0, 0, 0, 0.35),
    0 0px 0px rgba(0, 0, 0, 0.25);
}
.hero-section .cta-button:hover {
  background-color: #022553;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  outline: none;
}

.id_merge {
  width: 800px;
  height: auto;
  display: block;
  margin: 0 auto; /* ロゴを中央へ */
}
.Inquiry_button {
  padding: 50px 100px;
  position: relative;
  text-align: center;
}
.Inquiry_button .cta-button {
  background-color: #E6871E;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid transparent;
  padding: 20px 80px;
  font-size: 1.25em;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s ease;
  text-shadow:
    0 0px 0px rgba(0, 0, 0, 0.35),
    0 0px 0px rgba(0, 0, 0, 0.25);
}
.Inquiry_button .cta-button:hover {
  background-color: #022553;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  outline: none;
}
.system {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* スマホ：SatisfaOneData ロゴを適切なサイズに */
@media screen and (max-width: 767px) {
  body {
    text-align: left;
  }
  .hero-text .brand-logo {
    max-width: none; /* 250px制限を解除 */
    width: 88vw; /* 画面幅の88%（おすすめ） */
    min-width: 300px; /* 小さくなりすぎない保険 */
    height: auto;
    margin: 0 auto;
  }
}

/* =========================================================
 製品内ナビ（特徴 / システム概念図）：SaaS風セグメントタブ
========================================================= */
.product-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 16px;
  background: rgba(249, 249, 249, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228, 234, 243, 0.9);
}
.product_nav {
  list-style: none;
  margin: 0 auto 24px;
  padding: 6px;
  max-width: 1140px;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border: 1px solid #E4EAF3;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.product_nav li {
  flex: 1 1 0;
  margin: 0;
  padding: 0;
  display: flex;
}
.product_nav a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  color: #022553;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 1.05em;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
  position: relative;
}
.product_nav a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E6871E;
  margin-right: 10px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .18s ease, transform .18s ease;
}
.product_nav a:hover {
  background: rgba(29,106,241,.08);
  transform: translateY(-1px);
}
.product_nav a:hover::before {
  opacity: 1;
  transform: scale(1);
}
.product_nav a:active {
  transform: translateY(0);
}
.product_nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(29,106,241,.20);
}
/* スマホ：ナビ */
@media (max-width: 767px) {
  .product-nav-wrap {
    padding: 10px 10px;
  }
  .product_nav {
    margin-bottom: 16px;
    padding: 5px;
    border-radius: 16px;
  }
  .product_nav a {
    padding: 12px 10px;
    font-size: 1em;
    letter-spacing: .04em;
  }
}

/* =========================================================
 セクション共通
========================================================= */
section {
  padding: 0px 32px 40px 32px;
  max-width: 1140px;
  margin: auto;
}
section h1 {
  font-size: 2em;
  border-bottom: solid 3px #828282;
  margin: 40px 0 24px 0;
}

/* =========================================================
 #worry（「こんなお悩み解決します！」がある場合の最終スタイル）
 ※ HTML側で移動している想定。未移動でも破綻しないようにしています。
========================================================= */
#worry h2,
#effects h2 {
  text-align: center;
  font-size: 2.6em;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 56px 0 40px;
  color: #022553;
  position: relative;
}
/* 下線アクセント */
#worry h2::after,
#effects h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #E6871E;
  margin: 16px auto 0;
  border-radius: 2px;
}

/* =========================================================
 特徴（最終仕上げ）
 - SaaSっぽい 48:52 カラム
 - ②/④の縦リズム統一
========================================================= */
#features .flex {
  display: flex;
  gap: 32px; /* SaaS感の余白 */
  align-items: flex-start; /* 先頭揃え */
}
/* 左右カラム比率（共通） */
#features .flex > figure.image {
  flex: 0 0 48%;
  max-width: 48%;
  margin: 0;
  padding: 0;
}
#features .flex > .text-group {
  flex: 1 1 52%;
  max-width: 52%;
}
/* 画像の描画 */
#features figure.image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px; /* SaaS感の角丸（不要なら削除可） */
}
/* ②/④（feature-item_v2）：画像を本文開始位置に合わせる */
.feature-item_v2 .flex > figure.image {
  margin-top: 16px; /* 見出しブロックの高さ + 本文開始位置と揃える基準 */
}
/* 見出し（番号＋タイトル）縦リズム統一 */
#features .number-title {
  display: flex;
  align-items: center;
  margin-bottom: 12px; /* 見出し→本文の間隔 */
}
#features .number-title h2 {
  margin: 0; /* 余計な上下余白を消して高さを統一 */
  line-height: 1.2;
}
/* 番号 */
.text-group .number,
.text-group .number2 {
  font-family: 'BIZ UDGothic', sans-serif;
  font-size: 3em;
  color: #B9C7DC;
  margin-bottom: 0;
}
/* 既存の左右オフセットをSaaS風に緩める */
.number-title .number { margin: 0 12px 0 0; }
.number-title .number2 { margin: 0 12px 0 0; }
/* 本文：開始位置を完全統一（text1/text2の固定幅解除） */
#features p.text1,
#features p.text2 {
  width: auto;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1em;
  margin: 16px 0 0 0; /* ←本文開始位置統一 */
  padding: 0;
  text-align: justify;
}
/* ②/④の小見出し */
.feature-item h3,
.feature-item_v2 h3 {
  text-align: center;
  font-size: 1.5em;
  padding-top: 40px;
}
/* 特徴ブロック（背景・角丸は既存踏襲） */
.feature-item,
.feature-item_v2 {
  background-color: #D9DFE5;
  padding: 32px;
  margin-bottom: 32px;
}
.feature-item {
  border-radius: 8px 50px 8px 50px;
}
.feature-item_v2 {
  border-radius: 50px 8px 50px 8px;
}
/* ④：方法A（transform）で微差を吸収（画像内余白の差対策） */
#features img[alt="顧客クラスタリング_イメージ画像"] {
  transform: translateY(10px); /* 8〜12pxで微調整推奨 */
}
/* 製品特徴：タイトル（h2）を常に太字にする */
#features .number-title h2 {
  font-weight: 800; /* 700でもOK（端末差が少ない） */
  color: #022553; /* 任意：見出しらしく */
}

/* =========================================================
 製品概要：注釈
========================================================= */
#product-overview p8 {
  font-size: 0.85em;
  line-height: 1.8;
}

/* =========================================================
 Card Group（共通）
========================================================= */
.card-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.card-group img {
  width: 100%;
  max-width: 1000px; /* 必要なら 1140px にしてセクション幅いっぱいでもOK */
  height: auto;
  display: block;
  margin: 0 auto;
}
/* #worry の画像だけは「セクション幅」に合わせる（左右余白統一） */
#worry .card-group img {
  max-width: 1140px;
}

/* =========================================================
 Table（#effects）
 ※ 既存踏襲：カード風スタイル
========================================================= */
.tableWrap {
  overflow: hidden;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: auto;
}
.table th,
.table td {
  padding: 14px 14px;
  vertical-align: top;
}
.table thead th {
  background: linear-gradient(90deg, #1D6AF1, #4F8EF7);
  color: #fff;
  font-size: 1.1em;
  letter-spacing: .05em;
  padding: 18px;
  border: none;
}
.table tbody th {
  width: 260px;
  background: #F3F6FB;
  font-weight: 700;
  color: #022553;
  padding: 20px;
  border-bottom: 1px solid #E4EAF3;
}
.table tbody td {
  background: #ffffff;
  padding: 20px;
  border-bottom: 1px solid #E4EAF3;
  line-height: 1.7;
}
.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: none;
}
/* スマホ：CAM効果の表を見やすく（横スクロール対応） */
@media screen and (max-width: 767px) {
  /* 表全体を横スクロール可能に */
  .tableWrap {
    overflow-x: auto; /* 横スクロール許可 */
    -webkit-overflow-scrolling: touch;
  }
  /* 表は縮めず、必要な幅を確保 */
  .table {
    min-width: 600px; /* ← ここ重要（500〜700で調整可） */
  }
  /* セル内の文字折り返しを自然に */
  .table th,
  .table td {
    white-space: normal;
    word-break: keep-all; /* 日本語が縦割れしない */
    line-height: 1.6;
    font-size: 0.95em;
  }
}

/* =========================================================
 よくあるご質問（FAQ）
========================================================= */
.faq {
  margin-bottom: 40px;
}
.faq .actab input[type=checkbox] {
  display: none;
}
.faq .actab {
  padding: 20px 0;
  border-bottom: 1px dotted #cccccc;
}
.faq label {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 1.25em;
  width: calc(100% - 70px);
  margin: 0 0 0 50px;
  cursor: pointer;
  gap: 0.5em;
}
.faq-q {
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  font-size: 1.5em;
  color: #7689A2;
}
.faq label::before {
  position: absolute;
  content: '+';
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1em;
  margin-left: -50px;
  transition: 0.4s ease;
}
.faq .actab input[type=checkbox]:checked~label::before {
  transform: rotate(45deg);
}
.faq .actab-content {
  font-size: 1.25em;
  position: relative;
  overflow: hidden;
  height: 0;
  margin: 0 40px;
  padding: 0 14px;
  transition: 0.4s ease;
  opacity: 0;
}
.faq .actab input[type=checkbox]:checked~.actab-content {
  height: auto;
  padding: 14px;
  opacity: 1;
}

/* =========================================================
 問い合わせ
========================================================= */
#inquiry {
  background: #D9DFE5;
}
#inquiry p {
  font-size: 1.25rem;
  margin: 0;
}
#inquiry .c-btn {
  background-color: #022553;
  color: #FFFFFF;
  font-weight: bold;
  border: 1px solid transparent;
  padding: 8px 50px;
  font-size: 1.5em;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s ease;
  text-decoration: none;
}
#inquiry .c-btn:hover {
  background-color: #FFFFFF;
  color: #022553;
  border: 1px solid #022553;
  outline: none;
}
@media screen and (min-width: 768px) {
  #inquiry .text {
    padding: 10px 0;
  }
  #inquiry .wrap {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
  }
  #inquiry .button-group {
    display: flex;
    gap: 16px;
  }
}
@media only screen and (max-width: 767px) {
  #inquiry {
    padding: 20px 0 0;
  }
  #inquiry p {
    font-size: 1rem;
    margin: 16px;
  }
  #inquiry .wrap {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: column;
  }
  #inquiry .button-group {
    display: flex;
    gap: 16px;
  }
  #inquiry .inner-block {
    padding: 0;
  }
  #inquiry .c-btn {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .Inquiry_button .cta-button{
    display: block; /* widthを確実に反映 */
    width: min(92vw, 460px); /* ←横幅（好みで 420〜520px 程度で調整） */
    max-width: none; /* 既存の max-width:320px を解除 */
    margin: 0 auto; /* 中央寄せ */
    padding: 14px 0; /* 高さは今のスマホ指定を踏襲 */
    box-sizing: border-box;
    white-space: nowrap; /* 文字を折り返さない */
  }
}

/* =========================================================
 レスポンシブ（全体）
========================================================= */
@media screen and (max-width: 767px) {
  section {
    padding: 0 16px;
  }
  section h1 {
    font-size: 1.5em !important;
  }
  p {
    font-size: 1em;
  }
  .main {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .hero-section .new-release-icon {
    width: 150px;
    top: -10px;
    left: 0;
  }
  .hero-section .cta-button{
    display: block; /* widthを確実に効かせる */
    width: min(92vw, 460px); /* ← ここで横幅を伸ばす（好みで460px調整） */
    max-width: none; /* 既存の max-width:320px を解除 */
    margin: 0 auto; /* 中央寄せ */
    padding: 14px 0; /* 既存踏襲（高さは維持） */
    box-sizing: border-box;
    white-space: nowrap; /* 1行維持（崩れ防止） */
  }
  .hero-section {
    flex-direction: column;
    padding: 32px 24px;
    gap: 32px;
    text-align: center;
    background-position: left;
  }
  .hero-text {
    max-width: 100%;
    font-size: 1em !important;
  }
  .hero-section img {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  .feature-item_v2 {
    padding: 24px;
  }

  /* スマホ：特徴は縦並び */
  #features .flex {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  /* v2（②/④）は画像→テキストの順が崩れないように（必要なら column-reverse） */
  .feature-item_v2 #features .flex {
    /* 保険：効かない環境があるので下で確定 */
  }
  .feature-item_v2 .flex {
    flex-direction: column-reverse;
    align-items: center;
    gap: 24px;
  }
  /* 比率指定解除 */
  #features .flex > figure.image,
  #features .flex > .text-group {
    flex: 1 1 auto;
    max-width: 100%;
  }
  figure.image {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }
  figure.image img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  /* ④：スマホは下げ幅を控えめに */
  #features img[alt="顧客クラスタリング_イメージ画像"] {
    transform: translateY(6px);
  }

  /* #worry / #effects の見出しをスマホ最適化 */
  #worry h2,
  #effects h2 {
    font-size: 1.8em;
    margin: 40px 0 24px;
    letter-spacing: .05em;
  }
}

/* =========================================================
 ✅ 追記（最重要）：スマホでオレンジボタンを確実に中央寄せ＆はみ出し防止
  - 親(Inquiry_button)のPC用padding(左右100px)がスマホで効くとズレるため上書き
  - display:flex + justify-content:center で中央配置を保証
  - ボタンは width:100% + max-width で親幅に収める
========================================================= */
@media screen and (max-width: 767px) {
  .Inquiry_button {
    padding: 32px 16px !important;
    display: flex;
    justify-content: center;
  }
  .Inquiry_button .cta-button {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
  }
}