@charset "UTF-8";
/* ==========================================================================
   Layout
   ========================================================================== */
.l-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* ==========================================================================
   Component
   ========================================================================== */
.c-sec-title {
  font-size: 2.5rem;
  color: #326CD3;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}
/* ==========================================================================
   Project: Hero
   ========================================================================== */
.p-hero {
  background-image: url('../img/bg_hero-main.png');
  background-size: cover;
  background-position: top left;
  background-repeat: no-repeat;
  padding: 60px 0;
  position: relative;
}
.p-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.p-hero__content {
  width: 50%;
  padding-top: 20px;
}
.p-hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #326CD3;
  line-height: 1.3;
  margin-bottom: 20px;
}
.p-hero__subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #326CD3;
}
/* ▼ p-hero__leadを分割した要素のスタイリング */
/* キャッチコピー全体のベース */
.p-hero__catch {
  color: #333;
  letter-spacing: 0.05em; /* 文字間をわずかに広げて視認性を高める */
  margin-bottom: 16px; /* 下の説明文(.p-hero__desc)との余白を少し広げる */
}
/* 1行目：最も目立たせるメインコピー */
.p-hero__catch-main {
  line-height: 1.4;
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700; /* より太く力強く */
  margin-bottom: 8px; /* 1行目と2行目の間の余白 */
}
/* マーカー風のあしらい（ユーザーの視線をフックする） */
.u-mark {
  font-size: 1.5rem;
  background: linear-gradient(transparent 60%, #FFF2CC 60%);
  padding-bottom: 2px;
}
.p-hero__desc {
  font-size: 0.95rem;
  color: #4B4F58;
  line-height: 1.6;
  margin-bottom: 30px;
  /* ▼ 追加：要素を横並びにし、画面幅が狭い場合は自然に折り返す */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
/* チェックマーク付きの各項目 */
.u-check-icon {
  position: relative;
  padding-left: 18px; /* チェックマークを配置するスペース */
  margin-right: 16px; /* 次の項目との余白 */
  font-weight: 600;
  color: #333; /* テキストを少し濃くして強調 */
}
/* CSSのみでチェックマーク（✓）を描画 */
.u-check-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 45%;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 10px;
  border-bottom: 2px solid #326CD3; /* P-CUBEのテーマカラー（青） */
  border-right: 2px solid #326CD3;
}
/* 結びのテキスト */
.p-hero__desc-text {
  color: #4B4F58;
  font-weight: normal;
}
.p-hero__lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4B4F58;
}
.p-hero__img {
  width: 60%;
}
.p-hero__img img {
  width: 100%;
  height: auto;
}
/* ==========================================================================
   Project: Page Nav (ページ内ナビゲーション)
   ========================================================================== */
.p-page-nav {
  margin: 30px auto 10px;
}
.p-page-nav__list {
  display: flex;
  border-left: 1px solid #E5E5E5;
  list-style: none;
  padding: 0;
  margin: 0;
}
.p-page-nav__item {
  flex: 1;
  border-right: 1px solid #E5E5E5;
}
.p-page-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s ease;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
}
.p-page-nav__link:hover {
  background-color: #F8F8FB;
}
.p-page-nav__num {
  font-size: 1.5rem;
  color: #326CD3;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1;
}
.p-page-nav__text {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
  line-height: 1.3;
}
/* ==========================================================================
   Project: Intro (導入部分)
   ========================================================================== */
.p-intro {
  padding: 40px 0;
  background-color: #ffffff;
}
.p-intro__text {
  text-align: left;
  max-width: fit-content; /* テキストの幅ぴったりに箱を縮める */
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 50px;
}
.p-intro__cards {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.p-intro__card {
  box-sizing: border-box;
  width: calc(100% / 3 - 14px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.p-intro__card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.p-intro__card-img {
  height: 200px; /* 高さを固定（※画像に合わせて適宜調整してください） */
  display: flex;
  align-items: center; /* 画像を上下中央に配置 */
  justify-content: center;
  margin-bottom: 20px;
}
.p-intro__card-img img {
  max-width: 100%;
  max-height: 100%; /* 固定した高さからはみ出さないようにする */
  height: auto;
}
.p-intro__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
  /* margin-top: auto; を削除し、画像の下にピタッと揃うようにします */
  color: #333;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin: 0;
}
.p-intro__card-emph {
  color: #326CD3;
  display: block;
  margin-top: auto;
  padding-top: 15px;
}
/* ==========================================================================
   Project: Feature Detail (01 特長の詳細)
   ========================================================================== */
.p-detail {
  position: relative; /* 波形SVGの基準位置とするため追加 */
  padding: 100px 0 80px; /* 波形がかぶらないように上部の余白を微増 */
  background-color: #F8F8FB; /* ▼背景色をグレーに変更 */
  scroll-margin-top: 100px;
}
/* ▼ 波形SVGのスタイリング */
.p-detail__shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.p-detail__shape svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 42px;
}
.p-detail__shape .shape-fill {
  fill: #ffffff; /* 上のセクション（.p-intro）の色で波を描く */
}
.p-detail__block {
  margin-bottom: 60px;
}
.p-detail__head {
  margin-bottom: 30px;
}
.p-detail__title {
  font-size: 1.8rem;
  color: #326CD3;
  font-weight: 700;
  border-bottom: 2px solid #E5E5E5;
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.p-detail__desc {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.8;
}
/* ▼ Point見出しのスタイリング（外側・左寄せ） */
.p-detail__point-title {
  font-size: 1.5rem;
  color: #326CD3;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: left; /* 左寄せに変更 */
}
/* ▼ 白箱のスタイリング */
.p-detail__point-box {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 40px;
  /* flex-start を stretch に変更し、左右の箱の高さを強制的に揃える */
  align-items: stretch;
}
/* PC：左右2カラムレイアウト */
.p-detail__item {
  display: flex;
  flex-direction: column;
  width: calc(50% - 20px);
  min-width: 0;
  /* border-box を指定し、安全に幅を計算させます */
  box-sizing: border-box;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
/* アイテムが1つしかない場合（特長1）は1カラム（100%幅）にする */
.p-detail__item:only-child {
  width: 100%;
}
/* 1カラム時は画像を中央に配置し、巨大化しすぎないよう上限を設ける */
.p-detail__item:only-child .p-detail__item-img {
  display: flex;
  justify-content: center; /* 左右中央に配置 */
  align-items: center; /* 上下中央に配置 */
  width: 100%;
  margin-top: 20px; /* 上の文章との余白 */
}
.p-detail__item:only-child .p-detail__item-img img {
  width: auto; /* 画像本来の比率を維持 */
  max-width: 100%; /* 親要素からはみ出ないように制限 */
  height: auto;
  max-height: 400px; /* 画像が大きくなりすぎないよう高さを制限（お好みで調整可） */
}
.p-detail__item-content {
  margin-bottom: 20px;
}
.p-detail__item-heading {
  font-size: 1.3rem;
  color: #326CD3;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.5;
}
.p-detail__item-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.8;
}
.p-detail__item-img {
  position: relative;
  width: 100%;
  /* ▼ align-items: stretch; と組み合わせることで、画像が最下部にピタッと揃います */
  margin-top: auto;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  max-width: 100%;
}
.p-detail__item-img img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}
/* ▼ 新規追加：画像とアイコンを包む枠 */
.p-detail__img-wrapper {
  position: relative; /* ← アイコンの配置基準をここにする */
  display: inline-block; /* ← 枠の幅を画像の幅にピッタリ合わせる */
  line-height: 0; /* ← 画像の下にできる余計な隙間（謎の余白）を消す */
}
/* ▼ 新規追加：右下の拡大アイコンのスタイル */
.p-detail__zoom-icon {
  position: absolute;
  bottom: 15px; /* 下からの位置 */
  right: 15px; /* 右からの位置 */
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.9); /* 少し透ける白背景 */
  color: #326CD3; /* アイコンの色（テーマカラー） */
  border-radius: 50%; /* 丸くする */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* 軽い影をつける */
  pointer-events: none; /* アイコン自体はクリック判定を持たず、下の画像を確実にクリックさせる */
  transition: all 0.3s ease;
}
/* ▼ 新規追加：画像にマウスを乗せた時（ホバー時）のアクション */
.p-detail__item-img:hover img {
  opacity: 0.8; /* 画像が少し薄くなる */
}
.p-detail__item-img:hover .p-detail__zoom-icon {
  background-color: #326CD3; /* ホバー時にアイコン背景をテーマカラーに反転 */
  color: #ffffff;
  transform: scale(1.1); /* アイコンが少し大きくなる */
}
/* ==========================================================================
   Project: Mechanism (02 仕組みと流れ)
   ========================================================================== */
.p-mechanism {
  padding: 40px 0;
  background-color: #ffffff;
  scroll-margin-top: 100px;
}
.p-mechanism__block {
  margin-bottom: 40px;
}
.p-mechanism__block:last-child {
  margin-bottom: 0;
}
.p-mechanism__sub-title {
  font-size: 1.5rem;
  color: #326CD3;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}
.p-mechanism__desc {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
  text-align: left;
  max-width: fit-content; /* 文章の長さに合わせて箱幅を可変にし中央配置 */
  margin: 0 auto 40px;
}
/* 概念図の画像調整 */
.p-mechanism__diagram-img {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.p-mechanism__diagram-img img {
  width: 100%;
  height: auto;
}
/* フローカード（3ステップ） */
.p-mechanism__flow {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 60px;
}
.p-mechanism__flow-card {
  box-sizing: border-box;
  flex: 1;
  background-color: #F7FAFF;
  border-radius: 12px;
  border: 1px solid #E0ECFB;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
}
.p-mechanism__flow-head {
  text-align: center;
  margin-bottom: 5px;
}
.p-mechanism__flow-step {
  display: inline-block;
  background-color: #326CD3;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.p-mechanism__flow-title {
  font-size: 1.2rem;
  color: #333;
  font-weight: 700;
  margin: 5px 0; /* ★追加：ブラウザ特有の広い上下余白を打ち消す */
}
.p-mechanism__flow-img {
  height: 200px; /* ★ 160px から 200px 等へ大きくする */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px; /* ★ 変更：figureのデフォルト余白を消し、下余白だけ10px取る */
}
.p-mechanism__flow-img img {
  max-height: 100%;
  width: auto;
}
.p-mechanism__flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
}
.p-mechanism__flow-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}
.p-mechanism__flow-list li:last-child {
  margin-bottom: 0;
}
.p-mechanism__flow-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #326CD3;
  font-weight: bold;
}
/* フロー矢印 (PC用) */
.p-mechanism__flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 20px;
  flex-shrink: 0;
}
.p-mechanism__flow-arrow::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent #326CD3;
}
/* ==========================================================================
   Project: Pattern (03 受付パターン)
   ========================================================================== */
.p-pattern {
  padding: 40px 0;
  background-color: #F8F8FB;
  scroll-margin-top: 100px;
}
.p-pattern__intro {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
  text-align: left;
  max-width: fit-content;
  margin: 0 auto 40px;
}
/* セクション内のコンテンツ全体の最大幅を制限して中央に寄せる ▼ */
.p-pattern .l-inner {
  max-width: 1000px; /* ここを900px〜1000pxの間でお好みのサイズに調整してください */
  margin: 0 auto;
}
/* 比較画像 */
.p-pattern__table-img {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 50px;
  text-align: center;
}
.p-pattern__table-img img {
  width: 100%;
  height: auto;
}
/* 2カラムカード構造 */
.p-pattern__cards {
  display: flex;
  gap: 30px;
  align-items: stretch;
}
.p-pattern__card {
  box-sizing: border-box;
  width: calc(50% - 15px);
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.p-pattern__card-head {
  border-bottom: 2px solid #E5E5E5;
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.p-pattern__card-badge {
  display: inline-block;
  background-color: #326CD3;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.p-pattern__card-title {
  font-size: 1.3rem;
  color: #326CD3;
  font-weight: 700;
}
.p-pattern__card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.p-pattern__card-img {
  position: relative;
  text-align: center;
  margin-bottom: 25px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-pattern__card-img img {
  width: 100%;
  max-width: 100%;
  max-height: 100%; /* 高さ380pxの枠いっぱいに拡大 */
  height: auto;
  object-fit: contain;
}
/* ▼ 新規追加：右下の拡大アイコンのスタイル */
.p-pattern__zoom-icon {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #326CD3;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none; /* クリック判定を下の画像に貫通させる */
  transition: all 0.3s ease;
}
/* ▼ 新規追加：画像ホバー時のアイコンアクション */
.p-pattern__card-img:hover .p-pattern__zoom-icon {
  background-color: #326CD3;
  color: #ffffff;
  transform: scale(1.1); /* アイコンが少し大きくなる */
}
.p-pattern__card-content {
  margin-top: 0;
}
.p-pattern__card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
}
.p-pattern__card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}
.p-pattern__card-list li:last-child {
  margin-bottom: 0;
}
.p-pattern__card-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #326CD3;
  font-weight: bold;
}
/* 補足注記ボックス */
.p-pattern__card-note {
  font-size: 0.85rem;
  color: #333;
  border-radius: 0 4px 4px 0;
  margin-top: 15px;
}
.p-pattern__caption {
  font-size: 0.85rem;
  color: #666;
  text-align: right;
  margin-top: 20px;
}
/* ==========================================================================
   Project: Merit (04 患者様へのメリット)
   ========================================================================== */
.p-merit {
  padding: 40px 0;
  background-color: #ffffff;
  scroll-margin-top: 100px;
}
/* 導入メッセージ枠 */
.p-merit__intro {
  text-align: left;
  max-width: fit-content;
  margin: 0 auto 40px;
  padding: 10px 30px;
}
.p-merit__intro-tag {
  display: block;
  font-size: 1.1rem;
  color: #326CD3;
  font-weight: 700;
  margin-bottom: 8px;
}
.p-merit__intro-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.8;
  margin: 0;
}
/* 3カラムカードレイアウト */
.p-merit__cards {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 70px;
}
.p-merit__card {
  box-sizing: border-box;
  width: calc(100% / 3 - 14px);
  background-color: #ffffff;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #E5E5E5;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.p-merit__card-img {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.p-merit__card-img img {
  max-height: 100%;
  width: auto;
}
.p-merit__card-title {
  font-size: 1.1rem;
  color: #326CD3;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.5;
}
.p-merit__card-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
  text-align: left;
  margin: 0;
}
/* 動画エリア */
.p-merit__video-block {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}
.p-merit__video-title {
  font-size: 1.5rem;
  color: #326CD3;
  font-weight: 700;
  margin-bottom: 25px;
}
.p-merit__video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 レシオ保持 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.p-merit__video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* ==========================================================================
   Project: Preparation (05 必要な準備・補助金)
   ========================================================================== */
.p-preparation {
  padding: 40px 0;
  background-color: #F8F8FB;
  scroll-margin-top: 100px;
}
.p-preparation__block {
  margin-bottom: 30px;
}
.p-preparation__block:last-child {
  margin-bottom: 0;
}
.p-preparation__sub-title {
  font-size: 1.5rem;
  color: #326CD3;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}
.p-preparation__desc {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
  text-align: left;
  max-width: fit-content;
  margin: 0 auto 30px;
}
/* 準備フロー画像 */
.p-preparation__flow-img {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 10px;
}
.p-preparation__flow-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
/* 補助金注記（キャプション）のスタイル */
.p-preparation__caption {
  font-size: 0.85rem; /* 本文より少し小さめのサイズ */
  color: #666666; /* 補足文らしい控えめなグレー */
  text-align: center; /* 図解に合わせて中央揃え */
  margin-top: 15px; /* 上の画像との間隔 */
  line-height: 1.5;
}
.c-faq-section {
  padding: 20px 0;
  background: #ffffff;
}
/* FAQ回答内の解説画像スタイル */
.c-faq__img {
  margin-top: 15px;
  text-align: center;
}
.c-faq__img img {
  max-width: 100%;
  max-height: 280px;
  height: auto;
  border-radius: 8px;
}
/* 「電子処方箋 関連ワード」の下部余白調整 */
#faq-words {
  padding-bottom: 80px; /* ここでお好みの広さに数値を調整してください（60px〜100pxなど） */
}
/* ==========================================================================
   Project: Inline CTA (途中の問い合わせボタン)
   ========================================================================== */
.p-inline-cta {
  text-align: center;
  margin-top: 50px;
}
.p-inline-cta__text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px;
}
.p-inline-cta__btn {
  display: flex;
  justify-content: center;
}
/* ==========================================================================
   Image Modal (画像拡大ポップアップ)
   ========================================================================== */
/* クリックできる画像にマウスカーソル(虫眼鏡)とホバー効果を付ける */
img.js-modal-trigger {
  cursor: zoom-in;
  transition: opacity 0.3s ease;
}
img.js-modal-trigger:hover {
  opacity: 0.8;
}
/* ポップアップ全体 */
.c-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* 表示状態 */
.c-image-modal.is-open {
  opacity: 1;
  visibility: visible;
}
/* 背景の黒い半透明エリア */
.c-image-modal__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer; /* 背景クリックで閉じられることを示す */
}
/* 画像を表示するコンテンツエリア */
.c-image-modal__content {
  position: relative;
  z-index: 1;
  max-width: 70%;
  max-height: 80vh;
}
.c-image-modal__content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: block;
}
/* 閉じるボタン（×印） */
.c-image-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.c-image-modal__close::before, .c-image-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
}
.c-image-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.c-image-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
/* ==========================================================================
   Project: Useful & Links (お役立ち情報・関連リンク集)
   ========================================================================== */
.p-useful {
  padding: 40px 0;
  background-color: #F8F8FB; /* 前後のセクションと交互になるよう薄い背景色に設定 */
}
.p-useful__articles {
  margin-bottom: 70px;
}
.p-useful__sub-title {
  font-size: 1.5rem;
  color: #333;
  font-weight: 700;
  text-align: center;
}
/* --- 関連記事（3カラムカード） --- */
.p-useful__cards {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.p-useful__card {
  box-sizing: border-box;
  width: calc(100% / 3 - 14px);
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #333;
}
/* マウスオーバー時のふわっと浮くアニメーション */
.p-useful__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.p-useful__card-img {
  width: 100%;
  height: 180px;
  margin: 0;
}
.p-useful__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像の比率を保ちながら枠いっぱいにトリミング */
}
.p-useful__card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.p-useful__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.5;
  color: #333;
}
.p-useful__card-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 15px;
}
.p-useful__card-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}
/* --- 関連サイト（バナーとリンクボタン） --- */
.p-useful__sites {
  text-align: center;
}
.p-useful__sites-banner {
  max-width: 600px;
  margin: 0 auto 30px;
}
/* ▼ ここから追加：バナーリンクのホバーアクション ▼ */
.p-useful__sites-banner-link {
  display: block; /* 画像の周りに不要な余白ができないようにする */
  transition: opacity 0.3s ease; /* 0.3秒かけてフワッと変化させる */
}
/* マウスを乗せた時に少し透けさせる（色を薄くする） */
.p-useful__sites-banner-link:hover {
  opacity: 0.75;
}
/* ▲ 追加ここまで ▲ */
.p-useful__sites-banner img {
  width: 100%;
  height: auto;
}
.p-useful__sites-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
/* サイトリンク用ボタン */
.c-btn-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  width: 340px;
  box-sizing: border-box;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.c-btn-site:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  color: #ffffff;
}
/* 画像に合わせたボタンの色指定 */
.c-btn-site--green {
  background-color: #64A759;
}
.c-btn-site--blue {
  background-color: #5CB8D8;
}
.c-btn-site .fa-up-right-from-square {
  margin-left: 10px !important; /* テキストとアイコンの間の余白（!importantで強制的に適用） */
  font-size: 0.95em;
}
/* ==========================================================================
   Media Queries (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .u-hidden-sp {
    display: none;
  }
  /* Layout & Component */
  .l-inner {
    padding: 0 15px;
  }
  .c-sec-title {
    font-size: 2rem;
  }
  /* Hero */
  .p-hero {
    padding: 40px 0;
  }
  .p-hero__inner {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .p-hero__content {
    /* contentの箱を無視して、直下の子要素を並び替えられるようにする */
    display: contents;
  }
  .p-hero__catch-main {
    font-size: 1.25rem; /* スマホでは少し縮小 */
  }
  .p-hero__title {
    order: 1;
    font-size: 2.2rem;
    margin-top: 60px;
  }
  .p-hero__subtitle {
    font-size: 1.2rem;
  }
  .p-hero__lead {
    order: 2;
    margin-bottom: 30px;
  }
  /* イラストを3番目に配置 */
  .p-hero__img {
    order: 3;
    width: 80%;
    margin: 0 auto 30px;
  }
  /* ボタンを4番目（一番下）に配置 */
  .p-hero__btn {
    order: 4;
    width: 100%;
    margin-top: 0;
  }
  /* スマホ用ページ内ナビゲーション設定 */
  .p-page-nav {
    margin: 20px auto 0;
  }
  .p-page-nav__list {
    flex-wrap: wrap;
    border-left: none;
    border-top: none;
  }
  .p-page-nav__item {
    width: 50%;
    flex: none;
    box-sizing: border-box;
    border-top: 1px solid #E5E5E5;
    border-left: 1px solid #E5E5E5;
    border-bottom: none;
  }
  .p-page-nav__item:nth-child(even) {
    border-right: 1px solid #E5E5E5;
  }
  /* 5番目の項目だけ全幅表示にする */
  .p-page-nav__item:last-child {
    width: 100%;
    border-right: 1px solid #E5E5E5;
    border-bottom: 1px solid #E5E5E5;
  }
  .p-page-nav__link {
    padding: 10px 5px;
  }
  .p-page-nav__num {
    font-size: 1.2rem;
  }
  .p-page-nav__text {
    font-size: 0.8rem;
  }
  /* 導入 */
  .p-intro {
    padding: 50px 0;
  }
  .p-intro__text {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }
  .p-intro__cards {
    flex-direction: column;
    gap: 30px;
  }
  .p-intro__card {
    width: 100%;
  }
  /* 特徴 */
  .p-detail {
    padding: 60px 0 50px;
    scroll-margin-top: 80px;
  }
  .p-detail__title {
    font-size: 1.4rem;
  }
  .p-detail__point-box {
    padding: 30px 20px;
    /* スマホでは縦並びに戻す */
    flex-direction: column;
    gap: 40px;
  }
  /* スマホ：縦並びのまま */
  .p-detail__item {
    width: 100%;
  }
  .p-detail__item-content {
    /* 以前設定した order 指定をリセット（上テキスト・下画像にするため） */
    order: unset;
  }
  .p-detail__item-img {
    order: unset;
  }
  /* 仕組みと流れ */
  .p-mechanism {
    padding: 50px 0;
    scroll-margin-top: 80px;
  }
  .p-mechanism__sub-title {
    font-size: 1.3rem;
  }
  .p-mechanism__desc {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
    /* ▼ text-align: center; を削除し、以下に変更 */
    text-align: left;
    max-width: fit-content; /* 文章の長さに合わせて箱幅を可変にし中央配置 */
    margin: 0 auto 40px;
  }
  /* フローのスマホ縦並び化 */
  .p-mechanism__flow {
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
  }
  .p-mechanism__flow-card {
    width: 100%;
  }
  /* 下向き矢印に変換 */
  .p-mechanism__flow-arrow {
    width: 100%;
    height: 35px;
  }
  .p-mechanism__flow-arrow::before {
    border-width: 15px 10px 0 10px;
    border-color: #326CD3 transparent transparent transparent;
  }
  /* 受付パターン */
  .p-pattern {
    padding: 50px 0;
    scroll-margin-top: 40px;
  }
  .p-pattern__intro {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .p-pattern__table-img {
    margin-bottom: 30px;
  }
  .p-pattern__cards {
    flex-direction: column;
    gap: 30px;
  }
  .p-pattern__card {
    width: 100%;
    padding: 20px;
  }
  .p-pattern__card-title {
    font-size: 1.1rem;
  }
  /* 患者様へのメリット */
  .p-merit {
    padding: 50px 0;
    scroll-margin-top: 80px;
  }
  .p-merit__intro {
    padding: 20px;
  }
  .p-merit__intro-tag {
    font-size: 1rem;
  }
  .p-merit__intro-text {
    font-size: 0.9rem;
  }
  .p-merit__cards {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
  }
  .p-merit__card {
    width: 100%;
  }
  .p-merit__video-title {
    font-size: 1.25rem;
  }
  /* CTA */
  .p-inline-cta {
    padding: 30px 15px;
    margin-top: 35px;
  }
  .p-inline-cta__text {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  #faq-words {
    padding-bottom: 50px;
  }
  /* スマホ表示ではPC向けのホバー効果（マウスオーバーで薄くなる）を無効にする */
  img.js-modal-trigger:hover {
    opacity: 1;
  }
  /* 枠の幅を広げ、確実にブロック要素として表示させる */
  .c-image-modal__content {
    display: block; /* 非表示になるのを防ぐ */
    width: 95%; /*  width を明示的に指定 */
    max-width: 95%;
  }
  /* 画像自体も確実に表示させる */
  .c-image-modal__content img {
    display: block; /* 追加 */
    width: 100%; /* 幅いっぱいにする */
    height: auto;
  }
  /* スマホでは閉じるボタンを少し大きく、押しやすくする */
  .c-image-modal__close {
    top: -45px;
    right: 0;
    width: 40px;
    height: 40px;
  }
  /* お役立ち情報のスマホレイアウト */
  .p-useful {
    padding: 50px 0;
  }
  .p-useful__cards {
    flex-direction: column;
    gap: 20px;
  }
  .p-useful__card {
    width: 100%;
  }
  .p-useful__sites-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .c-btn-site {
    width: 100%;
    max-width: 100%; /* スマホ時は横幅いっぱい */
  }
  .p-preparation__flow-img {
    margin-bottom: 40px;
  }
  .p-preparation__caption {
    font-size: 0.8rem;
    text-align: left; /* スマホでは左寄せが見やすい場合 */
    padding: 0 10px;
  }
}