@charset "UTF-8";

/*=============================================
=    PAGE-SET   カスタムスタイルをここに追加      =
=============================================*/

/* コンテンツがヘッダーに被るのを防ぐための余白設定 */
#page-set {
    /* PC版ヘッダーの高さ（約64px）分、全体を下にずらす */
    padding-top: 70px !important;
}

@media (max-width: 767px) {
    #page-set {
        /* スマホ版はヘッダーが2段になり高くなる（約120px）ため、余白を増やす */
        padding-top: 140px !important;
    }
}

/*=====  End of PAGE-SET  ======*/

/* 白背景 */
#main {
    max-width: 100%!important;
}

.main-contents {
    background: #ffffff;
    box-sizing: border-box;
    width: 100%;
}
/* メインコンテンツの位置 */
.former-content .main-contents {
    background: #ffffff;
    box-sizing: border-box;
    padding-top: 20px;
    width: 100%;
}

/* ヘッダー位置 */
.header {
    position: fixed !important; /* 強制的に画面固定 */
    top: 0 !important;          /* 画面の最上部に配置 */
    left: 0 !important;
    width: 100% !important;
    z-index: 999999 !important; /* 既存ヘッダーより必ず上にくる数値 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 2%;
    background-color: #fff !important; /* 背景を白で塗りつぶして後ろを隠す */
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    box-sizing: border-box;
    height: auto !important;    /* 高さは中身に合わせる */
}

/* ロゴエリアの調整 */
.lgoo {
    display: flex;
    align-items: center;
    flex-shrink: 1; /* 画面が狭くなったら縮む許可 */
}

.logo_txt {
    font-size: 14px;
    margin-left: 10px;
    line-height: 1.3;
}

/* ボタンエリアの調整 */
.top_btn {
    display: flex;
    gap: 10px;        /* ボタン同士の間隔 */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ボタンのズレ修正 */
.top_btn a {
    display: flex !important;    /* 中身を中央に寄せるためにflex化 */
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1;
    height: 44px;
    padding: 0 15px;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

@media (max-width: 767px) {
    .header {
        flex-direction: column;  /* 2段にして横幅不足によるハミ出しを防止 */
        padding: 10px;
        gap: 8px;
    }
    
    /* 992px以下でボタンが入り切らない場合は、ここを縦並びに変える */
    .logo_txt {
        display: none; /* スマホではキャッチコピーを消してスッキリさせるのも手です */
    }

    .top_btn {
        width: 100%;
        justify-content: center;
        gap: 5px;
    }

    .top_btn li {
        width: 100%;            /* ボタンを横幅いっぱいにして押しやすく */
    }

    .top_btn a {
        width: 100%;
        font-size: 13px;
        height: 40px;           /* SPでは少しコンパクトに */
    }
}

/* 白い四角（親要素）の設定 */
.bana_area .txt_area .wh {
    display: flex !important;
    justify-content: center !important; /* 中身全体を中央寄せ */
    align-items: center !important;     /* 上下の中央を揃える */
    gap: 8px;                           /* ★文字とアイコンの隙間を8pxに固定 */
    
    background-color: #fff;
    font-size: 2rem;
    color: #009cd0;
    font-weight: bold;
    min-width: 175px;
    width: fit-content;                 /* 中身に合わせて幅を調整 */
    margin: 0 auto 4px;                 /* 外側（円の中）でも中央寄せ */
    padding: 5px 20px;
    border-radius: 7px;
    box-sizing: border-box;
}

/* 中の画像サイズを整える */
.bana_area .txt_area .wh img {
    height: 1.2em;      /* 文字の高さに合わせる */
    width: auto;
    margin: 0 !important; /* gapで制御するためマージンを消す */
}

@media (max-width: 572px) {
    .bana_area .txt_area .wh {
        font-size: 1.6rem;
        min-width: 140px;
        gap: 5px;       /* スマホでは隙間を少し狭く */
    }
}

  /* ===== ボックス ===== */
.modal-box {
    position: relative;
    max-width: 1400px;
    width: min(92vw, 100%);
    max-height: calc(100vh - 160px);
    /* ← 追加 */
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    /* ← 追加 */
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    /* ← 追加 */
    margin: 80px auto;
    padding: 145px 80px;
    background: #fff;
    overflow-y: auto;
    /* ← 重要 */
    -webkit-overflow-scrolling: touch;
    /* ← iOS対策 */
  }
  @media (max-width: 800px) {
    .modal-box {
      padding: 60px 20px;
    }
  }
  @media (max-width: 572px) {
    .modal-box {
      padding: 80px 0px;
    }
  }
  
  /* ×ボタン */
  .modal-close {
    position: absolute;
    top: 115px;
    right: 130px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
  }
  @media (max-width: 800px) {
    .modal-close {
      top: 40px;
      right: 70px;
    }
  }
  @media (max-width: 572px) {
    .modal-close {
      top: 75px;
      right: 55px;
    }
  }
  @media (max-width: 460px) {
    .modal-close {
      right: 20px;
    }
  }

/* ===== SP ===== */
@media (max-width: 768px) {
    .modal-box {
      margin: 90px auto;
    }
    .modal-body {
      padding: 0 20px 30px;
    }
  }  