#hpb-main-sub {
    width: 100%;
    max-width: 1080px;  /* レイアウトの上限。お好みで */
    margin: 0 auto;     /* 中央寄せ */
    float: none;
    padding: 20px;
    box-sizing: border-box;
    text-align: left;
  }

/*写真とテキスト横並び用CSS*/
.image-text-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin: 30px 0;
  }
  
  .image-area {
    flex: 0 0 40%;
    max-width: 400px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  
  .image-area img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
  }
  
  .image-area:hover {
    transform: scale(1.02);
  }
  
  .text-area {
    flex: 1;
    min-width: 240px;
    font-size: 1em;
    line-height: 1.6;
    color: #333;
  }
  
  .text-area h2 {
    margin-top: 0;
    color: #006e54; /* 筑波グリーン */
    font-size: 1.5em;
    border-bottom: 2px solid #00aa88;
    padding-bottom: 4px;
  }

  @media screen and (max-width: 768px) {
    .image-text-box {
      flex-direction: column;
      text-align: center;
    }
  
    .text-area {
      text-align: left;
    }
  }

/* 画像とテキストを左右逆にしたいとき */
.image-text-box.reverse {
    flex-direction: row-reverse;
  }
  
  @media screen and (max-width: 768px) {
    .image-text-box.reverse {
      flex-direction: column; /* モバイル時は縦並びに戻す */
    }
  }
  
  /* 文字サイズ*/
  p {
    font-size: 1.5em;
    line-height: 1.8;
    margin-bottom: 1.2em;
    color: #222;
  }
  
  /*画像二個左詰め*/
  .double-image-text-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
  }
  
  .double-image-area {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
  }
  
  .double-image-area img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .double-image-area img:hover {
    transform: scale(1.05);
  }
  
  .text-area {
    flex: 1;
    min-width: 250px;
    font-size: 1.05em;
    line-height: 1.6;
    color: #333;
  }
  
  .text-area h2 {
    margin-top: 0;
    color: #006e54;
    font-size: 1.4em;
    border-bottom: 2px solid #00aa88;
    padding-bottom: 6px;
  }

  @media screen and (max-width: 768px) {
    .double-image-text-box {
      flex-direction: column;
      align-items: center;
    }
  
    .double-image-area {
      justify-content: center;
    }
  
    .text-area {
      text-align: center;
    }
  }

  /*画像のクリック拡大用*/
  /* オーバーレイ背景 */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  /* 拡大画像 */
  .image-overlay img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
  }
  
  /* ×ボタン */
  .image-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 32px;
    height: 32px;
    cursor: pointer;
  }

  
  