@charset "utf-8";
/************************************************

 *  safety.css  福一の安心・安全ページ専用

 *  他ページへの影響を避けるため .safety- 接頭辞で調整

 ************************************************/
/* ラッパー全体 */
.safety-page.safety-wrapper {
  background-color: #f7fafc; /* うっすら青みのあるグレーで「清潔感」 */
  padding: 40px 16px 80px;
}
.safety-inner {
  max-width: 1040px;
  margin: 0 auto;
}
/* メインタイトル・リード

   about系のデザインを崩さない程度に上書き

------------------------------------------------- */
.safety-title.about-heading-main {
  text-align: center;
  font-size: 2.2rem;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.safety-title.about-heading-main::before {
  content: "Safety";
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  background-color: #e3f2fd;
  color: #1e88e5;
}
.safety-lead.about-lead {
  max-width: 780px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: center;
  color: #333;
}
/* ブロック全体（カード風）

------------------------------------------------- */
.safety-block {
  margin-bottom: 32px;
}
.safety-block-box {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid #e3f2fd;
}
/* テキスト＋画像レイアウト

------------------------------------------------- */
.safety-txt-img {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* 画像側 */
.safety-img {
  flex: 0 0 auto;
}
.safety-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}
/* テキスト側 */
.safety-txt {
  flex: 1 1 auto;
}
/* セクション見出し */
.safety-heading-title {
  margin-bottom: 8px;
}
.safety-heading-title .safety-heading {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  position: relative;
  padding-left: 12px;
}
.safety-heading-title .safety-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 4px;
  height: 1.1em;
  border-radius: 999px;
  background-color: #1e88e5;
}
/* テキスト本文 */
.safety-txt-box p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #444;
  margin: 0;
}
/* 最後のまとめブロックだけ少し余白を大きく */
.safety-block:last-of-type .safety-block-box {
  padding-top: 28px;
  padding-bottom: 28px;
}
/* PCレイアウト（768px～）

------------------------------------------------- */
@media (min-width: 768px) {
  .safety-page.safety-wrapper {
    padding: 56px 16px 96px;
  }
  .safety-title.about-heading-main {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  .safety-lead.about-lead {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }
  .safety-block {
    margin-bottom: 40px;
  }
  .safety-block-box {
    padding: 28px 32px;
    border-radius: 20px;
  }
  .safety-txt-img {
    flex-direction: row;
    align-items: stretch;
    gap: 28px;
  }
  .safety-img {
    flex: 0 0 40%;
  }
  .safety-txt {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* 2,4番目のブロックは左右反転でリズムを出す */
  .safety-inner .safety-block:nth-of-type(2) .safety-txt-img, .safety-inner .safety-block:nth-of-type(4) .safety-txt-img {
    flex-direction: row-reverse;
  }
  .safety-heading-title .safety-heading {
    font-size: 1.4rem;
  }
  .safety-txt-box p {
    font-size: 1rem;
  }
}
/* スマホ向けの微調整（～767px）

------------------------------------------------- */
@media (max-width: 767px) {
  .safety-page.safety-wrapper {
    padding-top: 32px;
    padding-bottom: 56px;
  }
  .safety-title.about-heading-main {
    font-size: 1.7rem;
  }
  .safety-lead.about-lead {
    font-size: 0.95rem;
    text-align: left;
  }
  .safety-block-box {
    padding: 18px 14px;
  }
  .safety-heading-title .safety-heading {
    font-size: 1.1rem;
  }
  .safety-txt-box p {
    font-size: 0.92rem;
  }
}
/* 細かいアクセントや可読性補強

------------------------------------------------- */
.safety-section + .safety-section {
  margin-top: 24px;
}
/* ブロック間の余白が詰まりすぎないように */
.safety-block + .safety-block {
  margin-top: 24px;
}
/* aタグ（今後リンクを追加したとき用） */
.safety-block-box a {
  color: #1e88e5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.safety-block-box a:hover {
  text-decoration-thickness: 2px;
}
/* PC表示用：画像を少し大きく＆縦制限を外す */
@media (min-width: 768px) {
  /* 画像を45％くらいに拡大（テキスト55％） */
  .safety-img {
    flex: 0 0 45%;
    max-width: 480px; /* ここで最大幅も調整できます */
  }
  .safety-txt {
    flex: 1 1 55%;
  }
  /* 画像の高さ制限を外して、横幅に合わせて自然に拡大 */
  .safety-img img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
  }
}
/* ===========================

   safetyページ用 フォント調整

   （about / TOP に近づける）

   =========================== */
/* PCサイズ */
@media (min-width: 768px) {
  /* H1：メインタイトルをしっかり大きめに */
  .safety-title.about-heading-main {
    font-size: 2.6rem;
  }
  /* リード文：読みやすい標準より少し大きめ */
  .safety-lead.about-lead {
    font-size: 1.15rem;
    line-height: 2;
  }
  /* 各ブロックの見出し */
  .safety-heading-title .safety-heading {
    font-size: 1.35rem;
  }
  /* 本文：ベースより少し大きめ */
  .safety-txt-box p {
    font-size: 1.05rem;
    line-height: 1.9;
  }
}
/* スマホサイズ */
@media (max-width: 767px) {
  .safety-title.about-heading-main {
    font-size: 1.9rem;
  }
  .safety-lead.about-lead {
    font-size: 1.02rem;
    line-height: 1.9;
  }
  .safety-heading-title .safety-heading {
    font-size: 1.2rem;
  }
  .safety-txt-box p {
    font-size: 0.98rem;
    line-height: 1.9;
  }
}
/* ===========================

   safetyページ：フォント統一（TOP / aboutと同等）

   =========================== */
/* PC版（768px&#12316;） */
@media (min-width: 768px) {
  /* ★ H1：38px換算 */
  .safety-title.about-heading-main {
    font-size: 2.375rem; /* 38px */
    line-height: 1.3;
  }
  /* ★ リード文：24px換算 */
  .safety-lead.about-lead {
    font-size: 1.5rem; /* 24px */
    line-height: 1.9;
  }
  /* ★ 見出しH2：24px&#12316;26px程度が自然（24px基準） */
  .safety-heading-title .safety-heading {
    font-size: 1.5rem; /* 24px */
    line-height: 1.6;
  }
  /* ★ 本文：24px換算 */
  .safety-txt-box p {
    font-size: 1.5rem; /* 24px */
    line-height: 1.9;
  }
}
/* スマホ版（&#12316;767px） */
@media (max-width: 767px) {
  /* スマホは少しだけ縮める：H1=28px程度 */
  .safety-title.about-heading-main {
    font-size: 1.75rem; /* 約28px */
    line-height: 1.4;
  }
  /* リード：20px&#12316;22px相当 */
  .safety-lead.about-lead {
    font-size: 1.3rem; /* 約20.8px */
    line-height: 1.8;
  }
  /* 中見出し：20&#12316;22px */
  .safety-heading-title .safety-heading {
    font-size: 1.3rem; /* 約20.8px */
    line-height: 1.6;
  }
  /* 本文：20px相当 */
  .safety-txt-box p {
    font-size: 1.25rem; /* 20px */
    line-height: 1.8;
  }
}
/* PC のときだけ画像を少し大きくする */
@media (min-width: 768px) {
  .safety-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
  }
  .safety-img img {
    width: 100%;
    max-width: 420px; /* ←ここで画像の最大幅を調整 */
    border-radius: 8px;
  }
  .safety-text {
    flex: 1;
  }
}
.safety-block + .safety-block {
  margin-top: 24px;
}
.safety-block {
  margin-bottom: 32px; /* PCで40px */
}