
  /* 画面全体 */
  .JudgmentPage{
    font-family: "Hiragino Sans";
    padding: 20px;
  }

  /* 対象外の文字 */
.highlight-text {
    /* color: blue; */
    color: blue !important;
    font-size: 40px;
    font-weight: bold;
  }
  /* 説明と画像 */
  .content-wrapper {
    display: flex;
    justify-content: space-between;
  }

      /* 説明と画像___説明文 */
      .text-section {
        flex: 40%;
        min-width: 300px;
        font-size: 28px;
        box-sizing: border-box;
        margin-right: 10px;
      }
    
.image-row {
        display: flex;
        justify-content: center;
        gap: 1%;
        max-width: 95%; /* 少しだけ余白 */
        margin: 0 auto;
      }
      
      .image-row img {
        width: 49.5%; /* 2枚で合計90%になるよう調整 */
        height: auto;
        object-fit: contain;
        border: 1px solid #ccc; /* 任意：画像に枠線 */
        border-radius: 4px;     /* 任意：角丸 */
      }
      
  /* 説明と画像__説明のタイトル */
  #title {
    font-size: 33px;
    margin-bottom: 20px;
    text-decoration: underline;
  }

  /* 次へボタン */
  .btn {
    width: 330px;
    height: 70px;
    text-align: center;
    padding: 10px 30px;
    background-color: #0059b3;
    display: block;
    font-size: 28px;
    color: white;
    border-radius: 7px;
    margin-top: 10px;
  }

  /* 入力欄 hantei_1*/
  .hantei1_box select {
    appearance: none;
    width: 340px;
    height: 2.5em;
    padding: .4em calc(.8em + 30px) .4em .8em;
    font-size: 30px;
  }

  /* hantei_2 品番＋プルダウン*/
  /* hantei_3 製造番号＋欄*/
  .input-container {
    display: flex;
    align-items: center;
    /* 垂直方向中央揃え */
  }

  /* hantei_2プルダウン*/
  .hantei2_box select {
    display: inline-block;
    appearance: none;
    width: 330px;
    height: 2.5em;
    padding: .4em calc(.8em + 30px) .4em .8em;
    /* margin-right: 90px; */
    border: 1px solid #cccccc;
    font-size: 28px;
  }

  /* hantei_3 入力欄 */
  .input-large {
    width: 330px;
    height: 70px;
    font-size: 35px;
    padding: 10px;
    box-sizing: border-box;
  }

  /* hantei_2  品番：*/
  /* hantei_3  製造番号：*/
  #second_text {
    /* font-size: 28px; */
    font-size: 24px;
    display: inline-block;
    margin-right: 10px;
    white-space: nowrap;
    justify-content: center;
    align-items: center
  }
  /* hantei_2 【手順２】*/
  /* hantei_3 【手順３】*/
  #main_text {
    font-size: 28px;
    display: inline-block;
    margin-right: 400px;
  }

  
/* 結果画面 */

/* メッセージ */
p {
  font-size: 24px;
}

/* ボタン2つ */
.center-box {
  display: flex;
  justify-content: center;
}
/* 画像hantei */
.hantei-img {
  /* width: 600px; */
  max-width: 90%;
  height: auto;
}
/* 再入力するボタン */
/* 次へボタン */
.sai_btn,.uke_btn {
  width: 330px;
  height: 60px;
  text-align: center;
  background-color: #0059b3;
  font-size: 28px;
  color: white;
  border-radius: 7px;
  display: inline-block;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 再入力ボタン */
.sai_btn {
  margin-right: 30px;
}
/* 受付へボタン*/
.uke_btn {
  margin-right: 0;
}
/* お知らせへ戻るボタン */
.info_btn {
  width: 330px;
  height: 60px;
  text-align: center;
  background-color: #696969;
  font-size: 28px;
  color: white;
  border-radius: 7px;
  display: inline-block;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 広い画面：説明文・フォームは左列、QRボックスは右列（説明文と上端を揃える） */
    .w-index-grid {
      display: grid;
      grid-template-columns: max-content auto;
      grid-template-areas:
        "maintext qrbox"
        "form     qrbox";
      column-gap: 32px;
      row-gap: 12px;
      align-items: start;
    }
    .w-maintext {
      grid-area: maintext;
      font-size: 24px;
      /* font-size: 28px; */
    }
    .w-form     { grid-area: form; }
    .w-qrbox    { grid-area: qrbox; }
    
    .sp-only-br {
      display: none;
    }

    /* 【要調整】この幅を境に、説明文とQRボックスの横並びが厳しくなったら縦積みに切り替える */
    @media screen and (max-width: 1270px) {
      .w-index-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
          "maintext"
          "form"
          "qrbox";
      }
    }

    /* QRコード案内ボックス（画面イメージの右上枠に合わせた簡易スタイル） */
    .qr-info-box {
      border: 2px solid #000000;
      border-radius: 6px;
      padding: 16px 20px;
      box-sizing: border-box;
      width: fit-content;
      max-width: 640px;
    }
    .qr-info-box p {
      /* font-size: 28px; */
      font-size: 24px;
      margin: 0 0 12px 0;
    }
    /* 品番・製造番号の確認箇所を示す画像（QRボックスの外、下に大きく表示） */
    .w-image-area {
      margin-top: 16px;
    }
    .product-image-large {
      display: block;
      width: 100%;
      max-width: 700px;
      height: auto;
    }
/* スマホ画面 */
@media screen and (max-width: 768px) {

  /* === 全体調整 === */
  .JudgmentPage {
    padding: 10px;
  }
  /* === フォントサイズ統一 === */
  .text-section,
  #title,
  #second_text,
  .w-maintext,
  .hantei1_box select, 
  .hantei2_box select,
  .input-large,
  .btn,
  .sai_btn,
  .uke_btn,
  .info_btn,
  p {
    font-size: 18px !important;
  }
  /* === ボタン共通調整 === */
  .btn,
  .sai_btn,
  .uke_btn,
  .info_btn {
    height: 50px;
  }
  /* === 特定ボタン並び調整（再入力・お知らせ）=== */
  .sai_btn,
  .info_btn {
    width: 47%;                  /* 横に2つ並べるための幅調整 */
    min-width: 140px;            /* 幅が狭すぎるときのための保険 */
    margin-right: 0;             /* 既存の余白をリセット */
  }
  /* === ボタン配置（中央、横並び）=== */
  .center-box {
    justify-content: center !important;
    display: flex !important;
    /* flex-direction: column; */
   flex-direction: row;          /* 0424追記  */
    align-items: center;
    gap: 10px;                   /* 0424追記  */ 
  }
  /* === テキスト調整 === */
  /* hantei_2 【手順２】*/
  /* hantei_3 【手順３】*/
  #main_text {
    margin-right: 0;
  }
 /* 対象外、対象製品の文字 */ 
  .highlight-text {
    font-size: 24px; 
  }
  /* === レイアウト === */
  .content-wrapper {
    flex-direction: column;
  }
  /* hantei_2 品番＋プルダウン*/
  /* hantei_3 製造番号＋欄*/
  .input-container {
    flex-direction: column;
    align-items: flex-start;
  }
 /* === hantei1（製品コード）=== */
 /* hantei_1プルダウンと入力欄 */
 .hantei1_box select,
 .input-large {
   width: 95% !important;
   max-width: 320px;
   height: 2.5em;
 }
 /* === hantei2（プルダウン）=== */
 /* hantei_2プルダウン*/
  .hantei2_box {
     width: 100%;
   }
   .hantei2_box select {
     width: 95% !important;
     max-width: 320px;
     margin: 0 auto;
     height: 2.5em;
 }
 /* === 画像調整 === */
 /* 画像hantei  */
  .hantei-img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
      
      .image-row {
        flex-direction: column;
        align-items: center;
        gap: 10px; 
      }
      
      .image-row img {
        width: 100% !important;
        max-width: 100%;
        height: auto;
      }
      .pc-only-br {
        display: none;
      }
      
      .qr-info-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }
      .sp-only-br {
        display: inline;
      }
}