/* Thiết lập font cho toàn bộ trang web */
html, body {
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* --- FV（ファーストビュー）全体の枠組み --- */
.fv-wrapper {
  position: relative; 
  width: 100%;
  max-width: 720px; /* Giới hạn chiều rộng bằng với cột nội dung PC */
  margin: 15px auto;
  overflow: hidden;
  border-radius: 0; 
}

/* --- 背景画像 --- */
.fv-bg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- テキスト画像を配置するコンテナ --- */
.fv-text-layer {
  position: absolute;
  top: 5%; /* 以前のコード通り12%の位置に戻しました */
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* 左右中央揃え */
  z-index: 2;
}

/* --- WebのデフォルトCSSによる画像の歪みを防ぐ --- */
.fv-text-layer img {
  max-width: none !important;
  display: block;
}

/* --- 上段テキスト（知っておこう！） --- */
.text-top {
  height: 25px; /* SPサイズに調整しました */
  margin-bottom: 5px; /* 下の行との余白 */
}

/* --- 下段テキストを横並びにする --- */
.fv-main-text-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap !important; /* 重要：文字を強制的に横並びにし、絶対に改行させない */
  align-items: center; /* 縦方向の中央揃え */
  justify-content: center;
  gap: 3px; /* SP用に隙間を縮小 */
}

/* ピンクの大きい文字（妊娠中、感染症） */
.text-large {
  height: 36px; /* SPサイズに調整しました */
}

/* グレーの少し小さい文字（に気をつけたい） */
.text-medium {
  height: 25px; /* SPサイズに調整しました */
  margin-top: 10px;
}
/* =========================================
   FIRST VIEW (max-width: 100% に更新)
========================================= */
.fv-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* =========================================
   イントロダクション部分（ファーストビューの下）
========================================= */
.intro-section {
  width: 100%;
  margin: -90px auto 0 auto; /* SP用に重ね幅を縮小 */
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 15px; /* スマホ画面の左右余白 */
  box-sizing: border-box;
}

/* 青いグリッドの背景フレーム */
.intro-frame {
  width: 100%; 
  background-image: url("../image/sp/sp1_fv_introduction/sp_introduction_frame.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  
  /* SP用に上下の余白を縮小しました */
  padding: 20px 15px; 
  box-sizing: border-box;

  font-family: 'A P-OTF Maru Antique+ ProN', "Hiragino Maru Gothic ProN", sans-serif;
  color: #424242; 
  
  display: flex;
  flex-direction: column;
  align-items: center; 
}

/* --- リード文 --- */
/* --- リード文 --- */
.intro-lead-text {
  width: 100%;
  font-size: 13px; /* SP用に縮小 */
  line-height: 1.8; 
  font-weight: normal; 
  margin-top: 0;
  margin-bottom: 20px; /* 医師ブロックまでの下の余白 */
  letter-spacing: 0;
  text-align: left; /* 左揃えを追加 */
}

/* --- 医師プロフィールのカラム分割フレーム --- */
.intro-doctor-profile {
  width: 100%;
  display: flex;
  flex-direction: row; /* SP版：画像の通りに横並びに戻す */
  align-items: flex-start; /* 上揃えに変更 */
  gap: 15px; /* 画像とテキストの隙間 */
}

/* 医師の画像 */
.doctor-icon {
  margin: 0;
  flex-shrink: 0;
  width: 100px; /* SPの横並び用に少し縮小（120pxから100pxへ） */
}

.doctor-icon img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
}

/* 医師のテキスト情報カラム */
.doctor-info {
  flex-grow: 1; /* 残りのスペースを埋めるように変更 */
  text-align: left; /* 左揃え */
}

/* 名前と役職 */
.doctor-name {
  width: 100%;
  font-size: 10px; /* SPの横並び用に少し縮小 */
  line-height: 1.5; 
  font-weight: normal; /* 画像に合わせて太字(bold)を解除 */
  margin-top: 0;
  margin-bottom: 10px;
}

/* 医師の略歴 */
.doctor-bio {
  width: 100%;
  font-size: 10px; /* SPの横並び用に少し縮小 */
  line-height: 1.6; 
  font-weight: normal; 
  margin: 0;
  text-align: left; 
}

/* =========================================
   目次部分（INDEX SECTION）
========================================= */

/* Index部分全体を囲むフレーム */
.index-section-wrapper {
  width: 90%; /* SP用に調整 */
  margin: 40px auto 0 auto; 
}

/* タイトル画像（pc_index.png） */
.index-title-image {
  display: block;
  max-width: 70%; /* SP用に調整 */
  height: auto;
  margin: 0 auto 20px auto; 
}

/* =========================================
   リンクのリスト（LIST ITEMS）
========================================= */

/* 外側を囲むulタグ */
.index-link-list {
  list-style-type: none; /* ulのデフォルトの黒丸を削除 */
  padding: 0;
  margin: 0;
  border-top: 1px solid #e5e5e5; /* 一番上の細いグレーの線 */
}
/* --- ページ内リンクのなめらかなスクロール（スムーススクロール） --- */
html {
  scroll-behavior: smooth;
}

/* もし上部に固定ヘッダー（スクロールしても追従するメニュー）がある場合、
  移動した際にタイトルがヘッダーの下に隠れてしまうのを防ぐための余白設定です。
  ※ヘッダーの高さに合わせて数値を調整してください（例: 80px）
*/
#link1, #link2, #link3, #link4, #link5 {
  scroll-margin-top: 80px; /* 固定ヘッダーがない場合は不要です */
}
/* 各li行 */
.index-link-list li {
  border-bottom: 1px solid #e5e5e5; /* 行を区切る細いグレーの線 */
}

/* aタグ（クリック可能なエリア） */
.index-link-list a {
  display: flex; 
  align-items: center; 
  padding: 15px 10px; /* SP用にpaddingを縮小 */
  text-decoration: none; 
  color: #424242; 
  transition: background-color 0.2s ease; 
}

.index-link-list a:hover {
  background-color: #f9f9f9; 
}

/* ハートアイコン */
.heart-icon {
  width: 25px; /* SP用に縮小 */
  height: auto;
  flex-shrink: 0; 
  margin-right: 15px; /* SP用に間隔を縮小 */
}

/* リスト内のテキスト */
.index-text {
  font-size: 16px; /* SP用に縮小 */
  line-height: 1.4; 
  font-weight: 500; 
  font-family: "A P-OTF Maru Antique+ ProN", "Meiryo", sans-serif; 
}

.section-check01 {
  width: 100%;
  margin: 50px auto; /* SP用に縮小 */
  position: relative;
  background-color: #ffffff; 
  text-align: center;
  padding-bottom: -10px;
}

.bg-yellow-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0; 
}

.check-content {
  position: relative;
  z-index: 1; 
}

.check-icon {
  position: relative;
  top: -15px; 
  margin-bottom: -5px;
}

/* PC向けのcheck 01アイコン画像のサイズを大きくする */
.check-icon img {
  width: 120px; /* SP用に縮小 */
  height: auto;
  display: inline-block;
}

.check-heading {
  margin-bottom: 5px;
  padding: 0 15px; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* オレンジ色のテキスト - PCサイズ */
.check-heading .text-orange {
  color: #FFA011; 
  font-size: 22px !important; /* SP用に縮小 */
  font-weight: bold;
  border-bottom: 3px dotted #FFA011; 
  padding-bottom: 5px; 
  margin: -5px 0 5px 0; 
  line-height: 1.4;
}

/* 黒色のテキスト - PCサイズ */
.check-heading .text-dark {
  color: #424242;
  font-size: 26px !important; /* SP用に縮小 */
  font-weight: bold;
  border-bottom: 3px dotted #424242; 
  padding-bottom: 2px;
  margin: 0 0 10px 0; 
  letter-spacing: 1px; 
}

/* 小さい注釈テキスト - PCサイズ */
.check-heading .text-note {
  color: #424242;
  font-size: 11px !important; /* SP用に縮小 */
  line-height: 1.6;
  margin: 0;
  text-align: center; 
}

/* --- 1. 吹き出し（Hukidashi） --- */
.info-bubble {
  text-align: center;
  position: relative;
  z-index: 10; 
  top: 15px;
  margin-bottom: -20px; 
}

.info-bubble img {
  width: 220px; /* SP用に縮小 */
  height: auto;
  display: inline-block;
  position: relative;
}

/* --- 2. オレンジの枠 --- */
.info-orange-frame {
  position: relative;
  z-index: 2; 
  width: 95%; /* SP用に調整 */
  margin: 0 auto; 
}

.bg-orange-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; 
}

.info-frame-content {
  position: relative;
  z-index: 1; 
  padding: 30px 15px 20px 15px; /* SP用に縮小 */
}

/* 内側の白いボックス */
.info-white-box {
  background-color: #ffffff;
  text-align: center;
  padding: 15px 10px; /* SP用に縮小 */
  margin-bottom: 20px; 
}

/* 白いボックス内のオレンジ色のテキスト */
.info-white-box .orange-text {
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", "Yu Rounded", sans-serif;
  color: #FF9702; 
  font-weight: bold;
  margin: 0;
  line-height: 1.5;
}

/* 白いボックス内のテキスト */
.info-white-box .text-small {
  font-size: 16px; /* SP用に縮小 */
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", "Yu Rounded", sans-serif;
}

.info-white-box .text-large {
  font-size: 18px; /* SP用に縮小 */
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", "Yu Rounded", sans-serif;
}

/* 下の白いテキスト部分 */
.info-white-text p {
  color: #ffffff;
  font-size: 14px; /* SP用に縮小 */
  line-height: 1.6; 
  margin: 0;
  text-align: left; 
}

/* --- 3. 下向き矢印 --- */
.info-arrow {
  position: absolute;
  bottom: -30px; 
  left: 50%; 
  transform: translateX(-50%); 
  z-index: 3; 
}

.info-arrow img {
  height: 60px; /* SP用に縮小 */
  width: auto;
  display: block;
}

/* 上に挿入される黄色いバナー */
.survey-banner {
  text-align: center;
  margin-top: 50px;
  margin-bottom: -20px; 
  position: relative;
  z-index: 2;
}

.survey-banner img {
  width: 280px; /* SP用に縮小 */
  height: auto;
}

/* --- 角丸の白いカード --- */
.survey-white-card {
  background-color: #ffffff;
  width: 90%; /* SP用に調整 */
  margin: 0 auto;
  border-radius: 20px; 
  padding: 40px 20px 30px 20px; /* SP用に縮小 */
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
}

/* --- 質問（Q）部分 --- */
.survey-question {
  display: flex; 
  align-items: flex-start; 
  justify-content: center;
  gap: 15px; /* SP用に縮小 */
  margin-bottom: 20px;
}

.survey-question .q-mark {
  color: #FFDE11; 
  font-size: 70px; /* SP用に縮小 */
  font-weight:500;
  line-height: 1; 
  font-family: "A P-OTF Maru Antique+ ProN", Arial, sans-serif; 
  margin-top: -5px; 
}

.survey-question .q-text {
  text-align: left; 
  color: #424242;
  font-size: 14px; /* SP用に縮小 */
  font-weight: 600;
  margin: 0;
  line-height: 1.6; 
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", sans-serif;
}

/* --- 各行のドットの下線 --- */
.survey-question .q-text .dotted-line {
  border-bottom: 2px dotted #424242; 
  padding-bottom: 2px;
  display: inline-block; 
}

/* --- CMVの質問（長いテキスト）用の個別CSS --- */
.survey-question .q-text-blue {
  text-align: left; 
  color: #424242;
  font-size: 14px; /* SP用に縮小 */
  font-weight: 600;
  margin: 0;
  line-height: 1.6; 
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", sans-serif;
}

/* --- CMV部分のドットの下線 --- */
.survey-question .q-text-blue .dotted-line {
  border-bottom: 2px dotted #424242; 
  padding-bottom: 2px;
  display: inline-block; 
}

/* --- Qマークを30pxのテキストとずれないように微調整 --- */
.survey-question .text-blue-q {
  color: #47B2E3 !important;
  font-size: 70px; /* SP用に縮小 */
  line-height: 0.8; 
  margin-top: 5px; 
  flex-shrink: 0;
}

/* --- グラフ部分 --- */
.survey-graph {
  text-align: center;
  margin-bottom: 25px;
}

.survey-graph img {
  width: 100%; /* SP版は100%幅で */
  height: auto;
}

/* 説明テキスト */
.survey-desc {
  color: #424242;
  font-size: 14px; /* SP用に縮小 */
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-weight: 500;
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", sans-serif;
  text-align: left;
}

/* 横の区切り線 */
.survey-divider {
  border: none;
  border-top: 2px solid #D9D9D9; 
  margin: 25px 0;
}

/* --- コメント部分（Comment Box） --- */
.survey-comments {
  padding-left: 0; 
  margin-top: 40px; 
}

.comment-box {
  background-color: #FFDE11; 
  border-radius: 15px;
  position: relative;
  padding: 15px; /* SP用に縮小 */
  margin-bottom: 40px; 
}

/* 上に突き出たアバター画像 */
.comment-avatar {
  position: absolute;
  top: -20px; 
  left: 10px; 
  width: 80px; /* SP用に縮小 */
  height: auto;
  border-radius: 50%; 
}

/* 名前と白いラベルを囲む部分 */
.comment-header {
  display: flex;
  flex-direction: column; 
  align-items: flex-start; 
  gap: 5px; 
  margin-left: 90px; /* アバターのサイズに合わせて縮小 */
  margin-bottom: 10px; 
}

.comment-name {
  font-size: 15px; /* SP用に縮小 */
  font-weight: normal;
  color: #424242;
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", sans-serif;
  line-height: 1.5;
}

/* 白いラベル（初産／妊娠後期） */
.comment-badge {
  background-color: #ffffff;
  color: #424242;
  font-size: 12px; /* SP用に縮小 */
  padding: 4px 10px;
  border-radius: 15px; 
  font-weight: 500;
  display: inline-block;
}

/* コメントのテキスト部分 */
.comment-text {
  font-size: 12px; /* SP用に縮小 */
  line-height: 1.6;
  color: #424242;
  margin: 0;
  font-weight: normal;
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", sans-serif;
  text-align: left;
}

.comment-box:last-child {
  margin-bottom: 0; 
}

/* --- 関連記事 --- */
.related-articles-section {
  width: 95%; /* SP用に調整 */
  margin: 40px auto 0;
  position: relative;
  z-index: 2;
}

/* --- タイトル --- */
.article-heading {
  text-align: center;
  margin-bottom: 30px;
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-heading h3 {
  margin: 0;
  line-height: 1.6;
}

.article-heading .title-top {
  display: inline-block; 
  font-size: 20px; /* SP用に縮小 */
  color: #424242;
  font-weight: 600;
  border-bottom: 3px dotted #424242; 
  padding-bottom: 3px;
}

/* 下線付きのオレンジ色のテキスト */
.article-heading .text-orange {
  color: #FFA011;
  font-size: 20px; /* SP用に縮小 */
}

/* 下の行の黒いテキスト */
.article-heading .title-bottom {
  display: inline-block;
  font-size: 20px; /* SP用に縮小 */
  color: #424242;
  font-weight: 600;
  border-bottom: 3px dotted #424242; 
  padding-bottom: 3px;
  margin-top: 5px;
}

/* --- 記事リスト --- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 15px; 
  width: 100%; 
}

/* 白いカードの共通スタイル */
.article-card {
  background-color: #ffffff;
  border: 1px solid #E0E0E0; 
  border-radius: 8px; 
  text-decoration: none; 
  display: block;
  position: relative;
  transition: opacity 0.3s ease; 
  width: 100%;
  box-sizing: border-box;
  height: auto; 
  word-break: break-word; 
  overflow-wrap: break-word;
}

.article-card:hover {
  opacity: 0.8; 
}

/* --- カード1（メイン記事） --- */
.card-main {
  padding: 15px;
  box-sizing: border-box; 
}

/* 外に突き出るNEWのリボン */
.badge-new {
  position: absolute;
  top: -15px; 
  left: -10px; 
  width: 120px; /* SP用に縮小 */
  height: auto;
  z-index: 3;
}

.card-img-wrap {
  width: 100%; 
}

.card-img-wrap img {
  width: 100%; /* SP版は幅いっぱいに */
  height: auto;
  display: block; 
  margin: 10px auto; 
}

.card-main .card-text {
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", sans-serif;
  color: #424242;
  font-size: 15px; /* SP用に縮小 */
  line-height: 1.6;
  margin: 15px 0 0 0;
  width: 100%; 
  text-align: left;
}

/* --- カード2 & 3（サブ記事 Coming Soon） --- */
.card-sub {
  display: flex; 
  align-items: center; 
  padding: 15px;
  gap: 15px; /* SP用に縮小 */
  box-sizing: border-box; 
}

/* グレーのComing Soonボックス */
.coming-soon-box {
  background-color: #666666; 
  color: #ffffff;
  font-size: 12px; /* SP用に縮小 */
  font-weight: normal;
  width: 100px; /* SP用に縮小 */
  height: 80px; /* SP用に縮小 */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; 
  font-family: "A P-OTF Maru Antique+ ProN",Arial, sans-serif; 
}

.card-sub .card-text {
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", sans-serif;
  color: #424242;
  font-size: 14px; /* SP用に縮小 */
  line-height: 1.5;
  margin: 0;
  flex-grow: 1; 
  text-align: left;
}

/* 方向を示す矢印 */
.card-arrow {
  width: 12px;
  height: auto;
  flex-shrink: 0; 
}

/* --- たまひよ記事ブロック --- */
.tamahiyo-articles-section {
  width: 100%; /* SP版：左端にぴったりくっつけるため、幅を100%に変更 */
  margin: 50px 0 0;
  position: relative;
  z-index: 2;
}

/* --- タイトル --- */
/* (タイトルのCSSは前回のままでOKです) */
.tamahiyo-heading {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px; 
}

.tamahiyo-heading .heading-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 400px; 
  height: auto;
  z-index: 0;
}

.tamahiyo-heading .heading-text {
  position: relative;
  z-index: 1;
  font-size: 21px; 
  font-weight: 600;
  color: #424242;
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", sans-serif;
  margin: 0;
  letter-spacing: 1px;
}

/* --- 記事リスト --- */
.tamahiyo-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-left: 0; 
  width: 100%; 
}

/* --- 3. グレーの枠線を削除し、白いフレームの左端を平らにする（PC版と同じ処理） --- */
.tamahiyo-card {
  background-color: #ffffff;
  
  /* 枠線の修正：PC版と同様に左側の枠線を消す */
  border: 1px solid #E0E0E0 !important;
  border-left: none !important; 
  
  /* 角丸の修正：右側の2つの角のみ丸くし、左側は0（直角）にする */
  border-radius: 0 10px 10px 0 !important; 
  
  display: flex; 
  flex-direction: row; 
  align-items: center; 
  padding: 12px 15px 12px 0; /* 左側のpaddingを0にして画像を枠に密着させる */
  text-decoration: none;
  box-sizing: border-box;
  gap: 12px;
  
  /* PC版と同様に、幅を92%にして右側に黄色い余白を残す */
  width: 97%; 
}

.tamahiyo-card:hover {
  opacity: 0.8;
}

/* --- 画像のラッパー（内側の画像フレーム） --- */
.card-thumb {
  width: 110px; 
  aspect-ratio: 486 / 324; 
  height: auto; 
  flex-shrink: 0; 
  
  /* 左側の角を直角(0)にし、右側だけ少し丸くする(5px) */
  border-radius: 0 5px 5px 0; 
  
  overflow: hidden;
  background-color: #ffffff; 
  margin: 0;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

/* 記事のテキスト（中央） */
.tamahiyo-card .card-title {
  font-family: "A P-OTF Maru Antique+ ProN", "Hiragino Maru Gothic ProN", sans-serif;
  color: #424242;
  font-size: 13px; 
  line-height: 1.5;
  margin: 0;
  padding: 0; 
  text-align: left;
  flex-grow: 1; 
  box-sizing: border-box;
}

/* 矢印（右側） */
.tamahiyo-card .card-arrow {
  display: block; 
  width: 14px; 
  height: auto;
  flex-shrink: 0;
}
/* --- セクション CHECK 02（ブルーテーマ） --- */
.section-check02 {
  width: 100%;
  margin: 0 auto;
  position: relative;
  background-image: url("../image/sp/sp3_check02/sp_bg_check02.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 110%;
  text-align: center;
  padding-bottom: 80px;
  margin-top: 0; 
}

/* 青い曲線の画像 */
.bg-blue-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1; 
}

/* テキストコンテンツが青い画像の上にもくるようにする */
.section-check02 .check-content {
  position: relative;
  z-index: 2;
}

/* メインの青い文字色 */
.text-blue {
  color: #77C7E8 !important;
  font-size: 22px !important; /* SP用に縮小 */
  font-weight: bold;
  border-bottom: 3px dotted #77C7E8;
  padding-bottom: 5px;
  margin: -5px 0 5px 0;
  line-height: 1.4;
  font-family: "A P-OTF Maru Antique+ ProN", sans-serif;
}

.text-blue .text-large {
  font-size: 26px; /* SP用に縮小 */
}

/* 青いコンテンツフレーム */
.info-blue-frame {
  position: relative;
  width: 95%; /* SP用に調整 */
  margin: 30px auto 0;
  background-color: #E6F4FA; 
  border-radius: 20px;
  padding: 30px 15px 20px 15px; /* SP用に縮小 */
  box-sizing: border-box;
}

/* 病名のタイトル（風疹など） */
.disease-title {
  margin-top: -40px;
  margin-bottom: 20px;
}
.disease-title img {
  width: 160px; /* SP用に縮小 */
  height: auto;
}

/* 角丸の濃い青のボックス */
.info-blue-box {
  background-color: #31A4D3;
  border-radius: 30px;
  padding: 15px 10px;
  margin-bottom: 20px;
}

.info-blue-box .white-text {
  color: #ffffff;
  font-size: 16px; /* SP用に縮小 */
  font-weight: bold;
  line-height: 1.5;
  margin: 0;
}

/* 説明テキスト */
.desc-text p {
  color: #ffffff; 
  background-color: #47B2E3; 
  padding: 15px;
  border-radius: 15px;
  font-size: 14px; /* SP用に縮小 */
  line-height: 1.6;
  text-align: left;
  margin-bottom: 20px;
}

/* 予防ポイントブロック */
.prevention-box {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 25px 15px 15px 15px; /* SP用に縮小 */
  position: relative;
  margin-top: 40px;
}

.prevention-header {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #8CD3F5;
  color: #ffffff;
  font-size: 16px; /* SP用に縮小 */
  font-weight: bold;
  padding: 8px 30px;
  border-radius: 20px;
  white-space: nowrap;
}

.prevention-content p {
  color: #424242;
  font-size: 14px; /* SP用に縮小 */
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

/* --- セクション2のタイトル：「が」の文字を黒にする --- */
.text-blue-row {
  font-family: "A P-OTF Maru Antique+ ProN", sans-serif;
  font-size: 20px; /* SP用に縮小 */
  color: #424242; 
  font-weight: bold;
  margin: -5px 0 5px 0;
}

.text-blue {
  color: #47B2E3; 
  border-bottom: 3px dotted #47B2E3;
  padding-bottom: 5px;
}

/* --- 1. 青いフレーム（最下部に配置） --- */
.disease-blue-card {
  position: relative;
  z-index: 1; 
  background-color: #7ABFDE;
  width: 95% !important; /* SP用に調整 */
  margin: 30px auto 0;
  padding: 30px 20px 80px 20px; /* SP用に縮小 */
  box-sizing: border-box;
}

/* メイン情報の濃い青のボックス */
.info-dark-blue-box {
  background-color: #31A4D3;
  border-radius: 30px;
  padding: 15px 10px;
  margin-bottom: 20px;
  text-align: center;
}

.info-dark-blue-box .white-text {
  color: #ffffff;
  font-size: 20px; /* SP用に縮小 */
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

/* 白い説明テキスト */
.disease-desc p {
  color: #ffffff;
  font-size: 14px; /* SP用に縮小 */
  line-height: 1.6;
  text-align: left;
  margin-bottom: -10px;
}

/* 白い予防ポイントブロック */
.prevention-white-box {
  background-color: #E4F3F9;
  border-radius: 15px;
  padding: 30px 15px 15px; /* SP用に縮小 */
  position: relative;
  margin-top: 40px;
}

/* 画像ラベル：中央揃えにし、上に突き出させる */
.prevention-label-img {
  position: absolute;
  top: 10px; 
  left: 50%;
  transform: translateX(-50%);
  width: 140px; /* SP用に縮小 */
  height: auto;
  z-index: 10;
}

/* --- テキストコンテンツ --- */
.prevention-text {
  color: #424242;
  font-size: 14px; /* SP用に縮小 */
  line-height: 1.6;
  text-align: left;
  margin-top: 30px; 
}

/* --- セクション2のQマーク用の青色 --- */
.text-blue-q {
  color: #47B2E3 !important;
  font-size: 70px; /* SP用に縮小 */
  font-weight: 500;
  line-height: 0.8; 
  margin-top: 5px;
  flex-shrink: 0;
}

/* --- 薄い青のコメントボックス --- */
.comment-box.box-light-blue {
  background-color: #E6F4FA; 
  border-radius: 15px;
  position: relative;
  padding: 15px; /* SP用に縮小 */
  margin-bottom: 20px;
}

/* --- 1. ピンクのリボン（最優先） --- */
.section-check02 .survey-banner {
    position: relative;
    z-index: 50; 
    margin-top: 10px;
    margin-bottom: -30px; 
    text-align: center;
}

/* --- 2. アンケートの白いフレーム（バナーの下の層） --- */
.section-check02 .survey-white-card {
    position: relative;
    z-index: 40; 
    background-color: #ffffff;
    width: 95% !important; /* SP用に調整 */
    margin: 0 auto;
    border-radius: 20px;
    padding: 40px 20px 30px; /* SP用に縮小 */
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- 3. 外側のラッパー（wrapperを使用している場合） --- */
.survey-wrapper {
    position: relative;
    z-index: 10; 
    margin-top: -60px; /* SP用に縮小 */
}

.disease-title-blue {
  margin-top: -40px;
  margin-bottom: 20px;
}

.disease-title-blue img {
  width: 280px; /* SP用に縮小 */
  height: auto;
}

/* --- 画面全体の白い背景 --- */
.other-diseases-section {
  background-color: #ffffff;
  width: 100%;
  margin: 30px 0 30px 0; /* SP用に縮小 */
  position: relative;
  overflow: visible !important; /* はみ出し許可 */
  padding: 20px 0;
  z-index: 3;
}

/* --- 中央揃えのコンテナ --- */
.container-other {
  width: 95%; /* SP用に調整 */
  margin: 0 auto;
  padding: 0 10px;
  position: relative;
  text-align: center;
}

/* --- 青いフレーム付きのタイトル --- */
.other-header {
  position: relative;
  margin: 20px 0 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hoka-frame {
  width: 90%;
  max-width: 100%;
}

.hoka-title {
  position: absolute;
  color: #47B2E3;
  font-size: 20px; /* SP用に縮小 */
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
}

.hoka-title .dot-underline {
  color: #424242;
  border-bottom: 3px dotted #424242;
  padding-bottom: 5px;
}

/* --- テキストコンテンツ --- */
.other-content {
  text-align: left;
  width: 90%;
  margin: 0 auto;
}

.other-content p {
  color: #424242;
  font-size: 15px; /* SP用に縮小 */
  line-height: 1.6;
  margin-bottom: 20px;
}

.other-content p span {
  color: #47B2E3; 
  font-weight: 600;
}

/* --- 赤ちゃんを囲むブロック --- */
.baby-container {
  position: absolute;
  right: 40px; /* SP用に調整 */
  bottom: -80px; /* SP用に調整 */
  z-index: 999; 
  pointer-events: none; 
}

.baby-img {
  width: 80px; /* SP用に縮小 */
  height: auto;
  display: block; 
}

/* --- 背景を含む外側のラッパー --- */
.closing-content-wrapper { 
  position: relative; 
  width: 100%; 
  
  /* --- SỬA DÒNG NÀY --- */
  /* Trượt lên trên 30px để đè vào nền cũ, căn giữa 2 bên, margin dưới bằng 0 */
  margin: -40px auto 0;   
  
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  overflow: hidden; 
  background-image: url("../image/sp/sp4_closing/sp_bg_closing.png");
  background-repeat: no-repeat;
  background-position: top center; 
  background-size: 100% 110%; 
  z-index: 10;
}

/* --- 内側のテキストコンテンツを含むブロック --- */
.closing-inner-content {
   position: relative; 
   z-index: 10; 
   width: 85%; 
   margin: 0 auto; 
   padding: 20px 15px 0 15px; /* SP用に縮小 */
   text-align: center; 
}

.survey-footer-note { 
  background-color: #ffffff; 
  text-align: left;
  padding: 20px 0 0; 
  z-index: 2; 
  position: relative; 
}

.closing-heart img {
  width: 50px; /* SP用に縮小 */
  margin-top: -15px;
  z-index: 1000;
}

.closing-title {
  font-size: 23px; /* SP用に縮小 */
  font-weight: bold;
  color: #424242;
  line-height: 1.4;
  margin-bottom: 5px;
}

.closing-divider img {
  width: 100%;
  margin-bottom: 5px;
}

.closing-main-text {
  text-align: left;
  margin-bottom: 18px;
}

.closing-main-text p {
  font-size: 15px; /* SP用に縮小 */
  line-height: 1.6;
  color: #424242;
  margin-bottom: 5px;
}

.closing-reference {
  text-align: center; /* 追加：中央揃えにする (Thêm lệnh căn giữa) */
  font-size: 8px!important;
  color: #424242;
  margin: 5px auto 5px auto !important;
  width: 100%;
  display: block;
}

/* --- 家族の画像 --- */
.closing-family-img img {
    display: block;
    margin: 40px auto 0 !important; 
    width: 100%; 
    max-width: 550px;
    height: auto;
    position: relative;
    left: 0;
    right: 0;
}

/* --- アンケートの注釈（下の白い背景） --- */
.footer-note-inner {
  width: 100%;
  margin: 0 auto;
  text-align: left;
  padding: 10px 0 0px 20px; /* SP用に縮小 */
}

.footer-note-inner p {
  font-size: 9px; /* SP用に縮小 */
  color: #666666;
  line-height: 1.5;
  margin-bottom: 5px;
}

/* --- サブタイトルの微調整 --- */
.articles-custom-header {
  text-align: center;
  margin-bottom: 25px;
}

.header-blue {
  color: #47B2E3;
  font-size: 23px; /* SP用に縮小 */
  font-weight: bold;
  border-bottom: 3px dotted #47B2E3;
  display: inline-block;
}

.header-black {
  color: #424242;
  font-size: 23px; 
  font-weight: bold;
  border-bottom: 3px dotted #424242;
  display: table;
  margin: 10px auto 0; 
}
@media screen and (max-device-width: 896px) {
 /* --- ĐÂY LÀ ĐOẠN CÒN THIẾU ĐỂ NÚT TRÔI NỔI BÊN PHẢI --- */
.floating_button_sp {
    position: fixed !important;
    bottom: 20px !important;
    right: 15px !important;
    z-index: 9999 !important;
    display: block !important;
}
.floating_button_sp a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #d2a76f !important;
    background: #fff !important;
    border: solid 1px #d2a76f !important;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    text-indent: 0 !important; /* Bỏ thụt đầu dòng cũ */
}
/* Fix Icon hiển thị */
.floating_button_sp a::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    /* Dùng đường dẫn tương đối chính xác */
    background: url("../image/sp/sp4_closing/sp_outl_icon.png") no-repeat center !important;
    background-size: contain !important;
    margin-right: 6px !important;
}

.floating_button_sp a:active {
    background-color: #f0f0f0;
}

/* =========================================
   SỬA LỖI CUỘN TRANG (SMOOTH SCROLL)
========================================= */
html {
  scroll-behavior: smooth;
}

/* ĐÃ THÊM #outline_sp VÀO DANH SÁCH */
/* Chú ý: Vì Header PC rất cao, bạn có thể cần tăng 80px lên thành 120px hoặc 280px để không bị che khuất */
#outline_sp, #link1, #link2, #link3, #link4, #link5 {
  scroll-margin-top: 100px; 
}
}
