/* ============================共通============================ */

.l-container {
  background-image: url(../images/home/bg-circle-02.jpg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 50px;
}
@media screen and (max-width: 768px) {
  .l-container {
    padding: 0 20px;
  }
}
.p-service-whereabouts,
.p-service-adultery,
.p-service-retrospective,
.p-whereabouts-what,
.p-whereabouts-fee,
.p-retrospective-reason,
.p-retrospective-fee,
.p-retrospective-feeplan,
.p-adultery-what,
.p-adultery-reason,
.p-adultery-price,
.p-adultery-voice,
.p-adultery-faq {
  padding: 48px 0 72px;
}
@media screen and (max-width: 768px) {
  .p-service-whereabouts,
  .p-service-adultery,
  .p-service-retrospective,
  .p-whereabouts-what,
  .p-whereabouts-fee,
  .p-retrospective-reason,
  .p-retrospective-fee,
  .p-retrospective-feeplan,
  .p-adultery-what,
  .p-adultery-reason,
  .p-adultery-price,
  .p-adultery-voice,
  .p-adultery-faq {
    padding: 48px 0 0;
  }
}

.sp-only {
  display: none;
}

/* SP（例: 〜768px以下）で表示 */
@media screen and (max-width: 768px) {
  .sp-only {
    display: block;
  }
}
.p-service-text {
  font-size: 16px;
}

.p-service-bold {
  font-weight: bold;
}
#p-about-office,
#p-about-access,
#p-about-message,
#lawyer,
#p-service-whereabouts,
#p-service-adultery,
#p-service-retrospective,
#p-service-price,
#p-service-price-trial,
#p-service-price-time,
#p-service-price-success,
#p-service-price-pack,
#p-whereabouts-what,
#p-whereabouts-fee,
#p-retrospective-reason,
#p-retrospective-fee,
#p-retrospective-feeplan,
#p-adultery-adultery,
#p-adultery-what,
#p-adultery-reason,
#p-adultery-price,
#p-adultery-voice,
#p-adultery-faq,
#p-adultery-flow,
#p-retrospective-retrospective,
#p-retrospective-what,
#p-retrospective-reason,
#p-retrospective-price,
#p-retrospective-voice,
#p-retrospective-faq,
#p-retrospective-flow,
#p-whereabouts-whereabouts,
#p-whereabouts-what,
#p-whereabouts-reason,
#p-whereabouts-price,
#p-whereabouts-voice,
#p-whereabouts-faq,
#p-whereabouts-flow,
#p-personalcredit-personalcredit,
#p-personalcredit-what,
#p-personalcredit-reason,
#p-personalcredit-price,
#p-personalcredit-voice,
#p-personalcredit-faq,
#p-personalcredit-flow,
#p-corporate-corporate,
#p-corporate-what,
#p-corporate-reason,
#p-corporate-price,
#p-corporate-voice,
#p-corporate-faq,
#p-corporate-flow,
#p-corporate-01,
#p-corporate-02,
#p-corporate-03,
#p-corporate-04,
#p-corporate-05,
#p-corporate-06,
#p-adultery-price-01,
#p-adultery-price-02,
#p-adultery-price-03,
#p-adultery-price-04 {
  scroll-margin-top: 140px; /* 好きな高さに調整 */
}

@media screen and (max-width: 768px) {
  #p-about-office,
  #p-about-access,
  #p-about-message,
  #lawyer,
  #p-service-whereabouts,
  #p-service-adultery,
  #p-service-retrospective,
  #p-service-price,
  #p-service-price-trial,
  #p-service-price-time,
  #p-service-price-success,
  #p-service-price-pack,
  #p-whereabouts-what,
  #p-whereabouts-fee,
  #p-retrospective-reason,
  #p-retrospective-fee,
  #p-retrospective-feeplan,
  #p-adultery-adultery,
  #p-adultery-what,
  #p-adultery-reason,
  #p-adultery-price,
  #p-adultery-voice,
  #p-adultery-faq,
  #p-adultery-flow,
  #p-whereabouts-whereabouts,
  #p-whereabouts-what,
  #p-whereabouts-reason,
  #p-whereabouts-price,
  #p-whereabouts-voice,
  #p-whereabouts-faq,
  #p-whereabouts-flow,
  #p-retrospective-retrospective,
  #p-retrospective-what,
  #p-retrospective-reason,
  #p-retrospective-price,
  #p-retrospective-voice,
  #p-retrospective-faq,
  #p-retrospective-flow,
  #p-personalcredit-personalcredit,
  #p-personalcredit-what,
  #p-personalcredit-reason,
  #p-personalcredit-price,
  #p-personalcredit-voice,
  #p-personalcredit-faq,
  #p-personalcredit-flow,
  #p-corporate-corporate,
  #p-corporate-what,
  #p-corporate-reason,
  #p-corporate-price,
  #p-corporate-voice,
  #p-corporate-faq,
  #p-corporate-flow,
  #p-corporate-01,
  #p-corporate-02,
  #p-corporate-03,
  #p-corporate-04,
  #p-corporate-05,
  #p-corporate-06,
  #p-adultery-price-01,
  #p-adultery-price-02,
  #p-adultery-price-03,
  #p-adultery-price-04 {
    scroll-margin-top: 80px; /* 好きな高さに調整 */
  }
}

/* ----------------------------anchor link---------------------------- */
.p-service-btnbox {
  margin-top: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.p-service-btnbox a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px; /* ←文字サイズ */
  font-weight: 600;
  color: #2458a2; /* ←文字色 */
  text-decoration: none;
  line-height: 1.4;
  padding-bottom: 12px;
}

.p-service-btnbox a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0; /* ←アイコンの下まで線を伸ばす */
  bottom: 0;
  height: 1px;
  background: #d8d8d8; /* ←線の色 */
}

.p-service-btnbox .anchor-link-arrow {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.p-service-btnbox a:hover .anchor-link-arrow {
  transform: translateY(3px);
}

@media screen and (max-width: 768px) {
  .p-service-btnbox a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px; /* ←文字サイズ */
    font-weight: 600;
    color: #2458a2; /* ←文字色 */
    text-decoration: none;
    line-height: 1.4;
    padding-bottom: 12px;
  }

  .p-service-btnbox a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0; /* ←アイコンの下まで線を伸ばす */
    bottom: 0;
    height: 1px;
    background: #d8d8d8; /* ←線の色 */
  }

  .p-service-btnbox .anchor-link-arrow {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    vertical-align: middle;
    transition: transform 0.2s ease;
  }

  .p-service-btnbox a:hover .anchor-link-arrow {
    transform: translateY(2px);
  }
}

/* ============================page-service============================ */
/* ============================サービスページ============================ */

/* ----------------------------Whereabouts investigation---------------------------- */

/* タイトル（英語＋日本語） */
.p-service-title {
  margin: 0 0 50pxpx;
}

.p-service-titleEn {
  font-family: "Outfit", Noto Sans;
  display: block;
  color: #2458a2;
  font-weight: bold;
  font-size: 22px;
  margin-bottom: 14px;
}

.p-service-titleJa {
  display: block;
  color: #000000;
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.3;
  position: relative;
  padding-bottom: 30px;
  font-size: 40px;
}

.p-service-titleJa::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 6px;
  background: #fc8a22; /* オレンジライン */
}

@media screen and (max-width: 768px) {
  .p-service-title {
    margin: 0 0 50pxpx;
  }

  .p-service-titleEn {
    font-family: "Outfit", Noto Sans;
    display: block;
    color: #2458a2;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .p-service-titleJa {
    display: block;
    color: #000000;
    font-weight: 600;
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.3;
    position: relative;
    padding-bottom: 20px;
    font-size: 30px;
  }

  .p-service-titleJa::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 4px;
    background: #fc8a22; /* オレンジライン */
  }
}
/* リード文＋点線 */
.p-service-textArea {
  /* max-width: 72ch; */
  margin-top: 18px;
  padding-bottom: 24px;
}

.p-service-textArea p {
  color: #000;
  font-size: 16px;
  line-height: 1.9;
  padding-top: 20px;
}
@media screen and (max-width: 768px) {
  .p-service-textArea {
    /* max-width: 72ch; */
    margin-top: none;
    padding-bottom: 24px;
  }
  .p-service-textArea p {
    color: #000;
    font-size: 12px;
    line-height: 1.7;
    padding-top: 20px;
  }
}

/* セクション見出し（青・左バー） */
.p-service-h4 {
  margin: 60px 0 18px;
  color: #2458a2;
  font-weight: 600;
  font-size: 35px;
  line-height: 1.4;
  padding-left: 22px; /* 左の余白はそのまま維持 */
  padding-top: 3px;
  border-left: 6px solid #fc8a22; /* ← before の代わり */
}

/* .p-service-h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 5px;
  height: 25px;
  background: #FC8A22;
} */

.p-service-h5 {
  margin: 40px 0 0;
  color: #2458a2;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.4;
  position: relative;
  padding-top: 3px;
}

/* .p-service-h5::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 6px;
  height: 35px;
  background: #FC8A22;
} */
@media screen and (max-width: 768px) {
  .p-service-h4 {
    margin: 15px 0 10px;
    color: #2458a2;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
    padding-left: 11px; /* 左の余白はそのまま維持 */
    padding-top: 3px;
    border-left: 4px solid #fc8a22; /* ← before の代わり */
  }
  .p-service-h5 {
    margin: 30px 0 0;
    color: #2458a2;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.4;
    position: relative;
    padding-top: 3px;
  }
}

/* グリッド：少し広めの余白＆高さ揃え */
.p-service-cards--grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  padding: 25px 0;
}
@media (max-width: 1024px) {
  .p-service-cards--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .p-service-cards--grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px 0;
  }
}

/* カード本体：影をやや強め、角丸少し大きく、内側余白を調整 */
.p-service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  padding: 34px 24px;
  box-shadow: 2px 4px 20px rgba(0, 0, 0, 0.06);
}

/* タイトル：中央揃え＋下に薄い仕切り線 */
.p-service-cardTitle {
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
  color: #0f2237;
  position: relative;
  padding-bottom: 14px;
}
.p-service-cardTitle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #d8d8d8;
}

/* 本文：上マージンを少し広げ、色はやわらかめのグレーで左揃え */
.p-service-cardText {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.9;
  color: #000;
  text-align: left;
}

@supports (text-wrap: balance) {
  .p-service-cardTitle {
    text-wrap: balance;
  }
}

@media screen and (max-width: 768px) {
  .p-service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    padding: 25px 24px;
    box-shadow: 2px 4px 20px rgba(0, 0, 0, 0.06);
  }

  .p-service-cardTitle {
    margin: 0;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.35;
    color: #0f2237;
    position: relative;
    padding-bottom: 14px;
  }
  .p-service-cardTitle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #d8d8d8;
  }

  .p-service-cardText {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.9;
    color: #000;
    text-align: left;
  }
}

/* ----------------------------list---------------------------- */

.p-service-list {
  margin: 16px 0 0;
  padding-left: 1.2em;
  list-style: none; /* デフォルトの黒丸を消す */
}

.p-service-list li {
  position: relative;
  padding-left: 20px; /* 青丸と文字の間の余白 */
  margin-bottom: 8px; /* 各行の間隔 */
  font-size: 16px;
  font-weight: 600;
  color: #0f2237;
  line-height: 1.8;
}

/* 青丸マーカーを疑似要素で作る */
.p-service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em; /* 文字高さに合わせて中央寄せ */
  width: 8px; /* 丸の大きさ（少し大きめ） */
  height: 8px;
  border-radius: 50%;
  background-color: #2458a2; /* 指定の青 */
}

/* 上部アンカーリンク */
.p-service-btnbox {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 28px 0 40px;
}

.p-service-btnbox a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #2458a2;
  text-decoration: none;
  line-height: 1.4;
  padding-bottom: 12px;
}

.p-service-btnbox a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #d8d8d8;
}

.anchor-link-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.p-service-btnbox a:hover .anchor-link-arrow {
  transform: translateY(1px);
}

.p-service-gray-Text {
  padding: 10px;
  background-color: #e5ecf9;
  margin: 15px 0;
  border-radius: 10px;
  padding: 30px 30px 20px 30px;
}

@media screen and (max-width: 768px) {
  .p-service-list {
    margin: 16px 0 0;
    padding-left: 0.2em;
    list-style: none; /* デフォルトの黒丸を消す */
  }

  .p-service-list li {
    position: relative;
    padding-left: 14px; /* 青丸と文字の間の余白 */
    margin-bottom: 5px; /* 各行の間隔 */
    font-size: 14px;
    font-weight: 600;
    color: #0f2237;
    line-height: 1.8;
  }

  /* 青丸マーカーを疑似要素で作る */
  .p-service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em; /* 文字高さに合わせて中央寄せ */
    width: 8px; /* 丸の大きさ（少し大きめ） */
    height: 8px;
    border-radius: 50%;
    background-color: #2458a2; /* 指定の青 */
  }

  /* 上部アンカーリンク */
  .p-service-btnbox {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 28px 0 20px;
  }

  .p-service-btnbox a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2458a2;
    text-decoration: none;
    line-height: 1.4;
    padding-bottom: 12px;
  }

  .p-service-btnbox a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #d8d8d8;
  }

  .anchor-link-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    vertical-align: middle;
  }

  .p-service-btnbox a:hover .anchor-link-arrow {
    transform: translateY(1px);
  }

  .p-service-gray-Text {
    padding: 10px;
    background-color: #e5ecf9;
    margin: 15px 0;
    border-radius: 10px;
    padding: 20px;
  }
}

/* コンテナ */
/* .price-table-wrap {
  max-width: 960px;
  margin: 30px 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 14px;
} */

/* 角丸＋外枠はラッパー側につける */
.price-table-card {
  display: inline-block; /* 左寄せで必要なら block に変更 */
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  overflow: hidden;
  margin: 30px 0;
}

/* テーブル本体 */
.price-table {
  width: 100%;
  border-collapse: collapse; /* ← ふつうのテーブルに戻す */
  table-layout: auto;
}
@media screen and (max-width: 768px) {
  /* 一番外側：スクロールバーをここに出す */
  .price-table-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    display: block;
    padding-bottom: 0;
  }

  .price-table-card {
    min-width: 120%; /* テーブルが潰れないように */
  }

  .price-table {
    width: 100%;
  }
}
/* セルの線（中の区切り線） */
.price-table th,
.price-table td {
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #dcdcdc;
  border-right: 1px solid #dcdcdc;
}

/* 一番右と一番下は外枠とダブらないように消す */
.price-table th:last-child,
.price-table td:last-child {
  border-right: none;
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: none;
}
tbody {
  -webkit-text-size-adjust: 100%;
}

/* 左列（グレーのとこ） */
.price-table .side-head {
  background: #f7f7f7;
  font-weight: 600;
  white-space: nowrap; /* 1行にしたいなら入れる */
}

/* ヘッダー（青帯） */
.price-table thead th {
  background: #1c6ab7;
  color: #fff;
}

/* 細字 */
.price-table thead th .p-service-th-thin {
  padding: 11px;
  font-weight: normal; /* or normal */
}

/* 太字 */
.price-table thead th .p-service-th-bold {
  padding: 12px;
  font-weight: bold; /* or bold */
}

/* 偶奇の背景が欲しければ */
.price-table tbody tr:nth-child(odd) td {
  background: #f9f9f9;
}
@media screen and (max-width: 768px) {
  .price-table th,
  .price-table td {
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #dcdcdc;
    border-right: 1px solid #dcdcdc;
  }

  .price-table th:last-child,
  .price-table td:last-child {
    border-right: none;
  }
  .price-table tbody tr:last-child th,
  .price-table tbody tr:last-child td {
    border-bottom: none;
  }

  .price-table .side-head {
    background: #f7f7f7;
    font-weight: 600;
    white-space: nowrap; /* 1行にしたいなら入れる */
    font-size: 14px;
  }

  .price-table thead th {
    background: #1c6ab7;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
  }

  .price-table thead th .p-service-th-thin {
    padding: 11px 0;
    font-weight: normal; /* or normal */
  }

  .price-table thead th .p-service-th-bold {
    padding: 12px;
    font-weight: bold; /* or bold */
  }

  .price-table tbody tr:nth-child(odd) td {
    background: #f9f9f9;
    font-size: 14px;
  }
}
/* ----------------------------list---------------------------- */

/* --- 全体レイアウト --- */
.plan-layout {
  display: flex;
  align-items: center; /* ← 縦方向の中央寄せ */
  gap: 30px;
  padding: 30px 0;
}

/* --- 角丸テーブル --- */
.plan-table-card {
  max-width: 500px; /* ← 好きな幅に調整 */
  width: 100%;
  margin: 0; /* 左寄せなら 0 */
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  overflow: hidden;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}

.plan-table th {
  color: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid #e3e3e3;
  border-right: 1px solid #e3e3e3;
}

.plan-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e3e3e3;
  border-right: 1px solid #e3e3e3;
}

/* 最後の列＆行の線を消す */
.plan-table tr th:last-child,
.plan-table tr td:last-child {
  border-right: none;
}
.plan-table tr:last-child th,
.plan-table tr:last-child td {
  border-bottom: none;
}

/* 左列 */
.plan-table th {
  width: 30%;
  background: #1c6ab7;
  font-weight: 700;
  text-align: left;
}

/* 右列 */
.plan-table td {
  background: #f9f9f9;
  text-align: left;
}
@media (max-width: 767px) {
  .plan-layout {
    display: flex;
    align-items: center; /* ← 縦方向の中央寄せ */
    gap: 5px;
    padding: 30px 0;
  }

  .plan-table-card {
    max-width: 500px; /* ← 好きな幅に調整 */
    width: 100%;
    margin: 0; /* 左寄せなら 0 */
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    overflow: hidden;
  }

  .plan-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
  }

  .plan-table th {
    color: #fff;
    padding: 10px 16px;
    border-bottom: 1px solid #e3e3e3;
    border-right: 1px solid #e3e3e3;
  }

  .plan-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e3e3e3;
    border-right: 1px solid #e3e3e3;
  }

  .plan-table tr th:last-child,
  .plan-table tr td:last-child {
    border-right: none;
  }
  .plan-table tr:last-child th,
  .plan-table tr:last-child td {
    border-bottom: none;
  }

  .plan-table th {
    width: 32%;
    background: #1c6ab7;
    font-weight: 700;
    text-align: left;
    font-size: 14px;
  }

  .plan-table td {
    background: #f9f9f9;
    text-align: left;
    font-size: 14px;
  }
}
/* --- 画像 --- */
.plan-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; /* ← これを追加すると親（＝表）の高さと揃う */
}

.plan-image img {
  max-height: 100%;
  width: auto;
}

/* --- SP 時：縦積み（HTMLはそのまま） --- */
@media (max-width: 767px) {
  .plan-layout {
    flex-direction: column; /* ← これだけで縦並び！ */
  }

  .plan-image {
    flex: none;
    width: 100%;
    margin-top: 16px;
  }
}
/* ============================page-policy============================ */
/* ============================特定商取引に基づく表記・プライバシーポリシー============================ */

/* ----------------------------list---------------------------- */

.tel-simple {
  color: #1c6ab7; /* 好きそうな青 */
  text-decoration: underline; /* 下線 */
  font-weight: 600; /* 気持ち太めで推せる */
}

/* --- 全体レイアウト --- */
.policy-layout {
  display: flex;
  align-items: center; /* ← 縦方向の中央寄せ */
  gap: 30px;
  padding: 30px 0;
}

/* --- 角丸テーブル --- */
.policy-table-card {
  max-width: 1000px; /* ← 好きな幅に調整 */
  width: 100%;
  margin: 0; /* 左寄せなら 0 */
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  overflow: hidden;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}
@media screen and (max-width: 768px) {
  /* 一番外側：スクロールバーをここに出す */
  .policy-table-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    display: block;
    padding-bottom: 0;
  }
}
.policy-table-card {
  min-width: 800px; /* テーブルが潰れないように */
}

.policy-table {
  width: 100%;
}

.policy-table th {
  color: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid #e3e3e3;
  border-right: 1px solid #e3e3e3;
}

.policy-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e3e3e3;
  border-right: 1px solid #e3e3e3;
}

/* 最後の列＆行の線を消す */
.policy-table tr th:last-child,
.policy-table tr td:last-child {
  border-right: none;
}
.policy-table tr:last-child th,
.policy-table tr:last-child td {
  border-bottom: none;
}

/* 左列 */
.policy-table th {
  width: 20%;
  background: #1c6ab7;
  font-weight: 700;
  text-align: left;
  font-size: 14px;
}

/* 右列 */
.policy-table td {
  background: #f9f9f9;
  text-align: left;
  font-size: 14px;
}
@media (max-width: 767px) {
  /* レイアウト：縦並び */
  .policy-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 0;
  }

  /* ★ 横スクロールを持つ箱（ここにスクロールバーが出る） */
  .policy-table-outer {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* テーブルの土台：SPのときだけ横幅を広くする */
  .policy-table-card {
    min-width: 800px; /* ← ここで列の余裕を増やす。数値はお好みで */
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    overflow: hidden;
    display: inline-block; /* 高さを保つため */
  }

  /* table は SP では auto にしておくと幅が決まりやすい */
  .policy-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* ← fixed だと幅がおかしくなりやすいので SP では auto に */
    font-size: 14px;
  }

  .policy-table th {
    width: auto; /* ← 固定幅やめる */
    white-space: nowrap; /* ← 変な改行を防ぐ。横スクロールで見せる */
    padding: 10px 12px;
    font-size: 14px;
  }

  .policy-table td {
    padding: 10px 12px;
    font-size: 14px !important;
  }

  .policy-image {
    flex: none;
    width: 100%;
    margin-top: 16px;
  }
}
/* ============================page-about============================ */
/* ============================私たちについて============================ */
/* ----------------------------代表挨拶---------------------------- */

/* ----------------------------list---------------------------- */

/* --- 全体レイアウト --- */
.about-layout {
  display: flex;
  align-items: center; /* ← 縦方向の中央寄せ */
  gap: 30px;
  padding: 30px 0;
}

/* --- 角丸テーブル --- */
.about-table-card {
  max-width: 100%; /* ← 好きな幅に調整 */
  width: 100%;
  margin: 0; /* 左寄せなら 0 */
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  overflow: hidden;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}
@media screen and (max-width: 768px) {
  /* 一番外側：スクロールバーをここに出す */
  .about-table-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    display: block;
    padding-bottom: 0;
  }

  .about-table-card {
    min-width: 800px; /* テーブルが潰れないように */
  }

  .about-table {
    width: 100%;
  }
}

.about-table th {
  color: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid #e3e3e3;
  border-right: 1px solid #e3e3e3;
}

.about-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e3e3e3;
  border-right: 1px solid #e3e3e3;
}

/* 最後の列＆行の線を消す */
.about-table tr th:last-child,
.about-table tr td:last-child {
  border-right: none;
}
.about-table tr:last-child th,
.about-table tr:last-child td {
  border-bottom: none;
}

/* 左列 */
.about-table th {
  width: 20%;
  background: #1c6ab7;
  font-weight: 700;
  text-align: left;
}

/* 右列 */
.about-table td {
  background: #f9f9f9;
  text-align: left;
}
@media (max-width: 767px) {
  .about-layout {
    display: flex;
    align-items: center; /* ← 縦方向の中央寄せ */
    gap: 5px;
    padding: 30px 0;
  }

  .about-table-card {
    max-width: 200px; /* ← 好きな幅に調整 */
    width: 70%;
    margin: 0; /* 左寄せなら 0 */
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    overflow: hidden;
  }

  .about-table {
    width: 70%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
  }

  .about-table th {
    color: #fff;
    padding: 10px 16px;
    border-bottom: 1px solid #e3e3e3;
    border-right: 1px solid #e3e3e3;
  }

  .about-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e3e3e3;
    border-right: 1px solid #e3e3e3;
  }

  .about-table tr th:last-child,
  .about-table tr td:last-child {
    border-right: none;
  }
  .about-table tr:last-child th,
  .about-table tr:last-child td {
    border-bottom: none;
  }

  .about-table th {
    width: 19%;
    background: #1c6ab7;
    font-weight: 700;
    text-align: left;
    font-size: 14px;
  }

  .about-table td {
    background: #f9f9f9;
    text-align: left;
    font-size: 14px;
  }
}
/* --- 画像 --- */
.about-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 40%; /* ← これを追加すると親（＝表）の高さと揃う */
}

.about-image img {
  max-width: 100%;
  width: auto;
}

/* --- SP 時：縦積み（HTMLはそのまま） --- */
@media (max-width: 767px) {
  .about-layout {
    flex-direction: column; /* ← これだけで縦並び！ */
  }

  .about-image {
    flex: none;
    width: 100%;
    margin-top: 16px;
  }
}

@media screen and (max-width: 768px) {
  /* 一番外側：スクロールバーをここに出す */
  .about-table-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    display: block;
    padding-bottom: 0;
  }
}

/* ----------------------------office---------------------------- */
.office-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC：3列 */
  gap: 30px; /* 画像の間隔 */
}

/* 画像のスタイル */
.office-gallery__item img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

/* SP（例：～767px）は2列×3行 */
@media (max-width: 767px) {
  .office-gallery {
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 10px;
  }
}

/* 全体ボックス */
.p-about-qualification {
  padding: 10px 67px 70px;
  margin-top: 140px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.p-about-qualification__textArea {
  margin-bottom: 50px;
}

.p-about-qualification__imgArea {
  display: grid;
  gap: 30px;
  justify-content: center;
  align-items: end; /* ★これで下揃えになる！ */
  margin-top: 30px;
}

/* 1段目（4枚） */
.p-about-qualification__imgArea:nth-of-type(1) {
  grid-template-columns: repeat(4, 206px);
}

/* 2段目（2枚） */
.p-about-qualification__imgArea:nth-of-type(2) {
  grid-template-columns: repeat(2, 206px);
}

.p-about-qualification__img {
  width: 206px;
  object-fit: contain;
  object-position: center;
}

/* --- SP（スマホ） --- */
@media (max-width: 767px) {
  .p-about-qualification {
    padding: 20px;
    margin-top: 32px;
    margin-bottom: 60px;
  }

  .p-about-qualification__imgArea {
    gap: 20px;
    margin-bottom: 20px;
  }
  .p-about-qualification__textArea {
    line-height: 1.7;
    margin-bottom: 50px;
    font-size: 12px;
  }
  /* 大小どちらも SP は2列 */
  .p-about-qualification__imgArea:nth-of-type(1),
  .p-about-qualification__imgArea:nth-of-type(2) {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-about-qualification__img {
    width: 100%;
  }
}
/* ----------------------------Access---------------------------- */
/* --- 全体 2 カラム --- */
.access-two-column {
  display: flex;
  gap: 40px;
  position: relative;
  margin: 40px 0;
}

/* --- 中央の縦線 --- */
.access-two-column::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: #ddd; /* グレーのライン */
  transform: translateX(-50%);
}

/* --- カラム --- */
.access-column {
  flex: 1;
}

/* 見出し（緑の丸アイコンつき見出し風） */
.access-heading {
  font-size: 20px;
  font-weight: bold;
  color: #2458a2;
  margin-bottom: 16px;
}

/* 画像 */
.access-column img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  display: block;
}

/* --- スマホ時は縦積み --- */
@media (max-width: 768px) {
  .access-heading {
    margin-bottom: 1px;
  }

  .access-two-column {
    flex-direction: column;
  }

  .access-two-column::before {
    display: none; /* 縦線消す */
  }

  .access-column {
    width: 100%;
  }
}
/* PC 非表示 / SP 表示 */
.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .sp-only {
    display: block;
  }
}
/* ===== スマホ時に非表示 ===== */
.sp-hide {
  display: block;
}

@media (max-width: 768px) {
  .sp-hide {
    display: none !important;
  }
}

.access-two-column_02 {
  display: flex;
  gap: 40px;
  position: relative;
  margin: 40px 0;
}

/* --- 中央の縦線 --- */
.access-two-column_02::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: #ffffff; /* グレーのライン */
  transform: translateX(-50%);
}

.p-service-cardimg {
  border-radius: 10px;
  padding-top: 0px;
}
