@charset "UTF-8";

/* CSS Document */
/* 変数を宣言し、格納する。 */
:root {
    --white: #fff;
    --black: #000;
    --red: #ff0000;/* 赤 */
    --green: #00ff00;/* 緑 */
    --blue: #0000ff;/* 青 */
    --yellow: #ffff00;/* 黄 */
    --gray: #808080;/* 灰色 */
    --sans: yakuhanjp, "Noto Sans JP", sans-serif;
    --serif: "Noto Serif JP", serif;
}

/* 変数の呼び出し例
 body {
 background-color: ver(--white);
 color: var(--black);
 font-family: var(--sans);
}*/

/*header*/
/*画像幅がデバイスより広い場合*/
.mv {
    height: 857px;
    overflow: hidden;
    position: relative;
}
.mv .pc {
    width: auto !important;
    max-width: unset;
    height: 100%;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}
/*area_link*/
.link {
    text-align: center;
}

.link a {
    margin-inline: auto;
    display: inline-block;
    overflow: hidden;
    transition: 0.5s;
}

.link a:hover {
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
}

@media screen and (max-width: 1100px) {
    .mv {
        height: 500px;
    }
}

/*area1*/
.area_1 {
  padding-block: 43px 70px;
  background: #DDEEFF;
}
/*area_2*/
.area_2 {
  padding-block: 78px 20px;
}
/*area_3*/
.area3_wave {
  background: url(../images/are3_back@2x.png);
  background-position: center top 100px;
  background-size: auto calc(100% - 100px); /* 上100px分引いた高さで背景を収める */
  padding-bottom: 120px;
  background-repeat: no-repeat;
}
/*area_4*/
.area_4 .flex {
  gap: 55px 75px;
}
/*area_5*/
/*area_6*/
.area_6 {
  background: #6482FF;
}
.area_6 .bg_white {
  border-radius: 10px;
}
.gif {
  border: 2px solid #646464;
}
/*area_7*/
.voice {
  padding-bottom: 170px;
}

/*footer*/
footer {
    background: #6482FF;
    padding: 20px 0;
}

footer a,
.white {
    color: #fff;
}

#page-top {
    position: fixed;
    bottom: 30px;
    right: 10px;
    font-size: 12px;
    z-index: 9;
}

#page-top a {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FF9BB4;
    font-weight: bold;
    color: #fff;
    letter-spacing: -0.5px;
    text-decoration: none;
    border-radius: 10px;
}

#page-top p {
    padding: 0;
}

/*スマホ==========================================================================================================*/
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    .margin {
        margin-bottom: 30px;
    }

    .sp {
        display: block;
    }

    .pc {
        display: none;
    }

    img {
        vertical-align: bottom;
    }
    .marker {
      background: linear-gradient(transparent 50%, yellow 30%);
    }

    .inner {
        max-width: 345px;
    }

    .link {
        margin-inline: auto;
    }
    .mv {
        height: unset;
    }
    .w_300 {
      max-width: 300px;
      margin-inline: auto;
    }
    .area_1 {
      padding-block: 25px;
    }
    .area_2 {
      padding-block: 25px 30px;
    }
    .area_3 h2,.area_4 h2,.area_5 h2,.area7_last {
      width: 100vw;
      margin-inline: calc(50% - 50vw);
    }
    .area_3 h2 img,.area_4 h2 img,.area_5 h2 img,.area7_last img {
      max-width: unset;
      width: 100%;
    }
    .area_3 .t15 {
      font-size: 12px;
    }
    .area3_wavesp {
      background: url(../images/are3_backsp@2x.png);
      background-position: center top 370px;
      background-size: 100vw calc(100% - 370px); /* 上100px分引いた高さで背景を収める */
      padding-bottom: 50px;
      background-repeat: no-repeat;
    }
    .area3_image {
      padding-bottom: 90px !important;
    }
    .area_4 {
      padding-block: 40px 45px !important;
    }
    .area_4 .flex {
      padding-bottom: 50px !important;
    }
    .area_6 {
      padding-top: 30px !important;
    }
    .area_6 .bg_white {
      padding: 20px 25px;
    }
    .area_6 h3 {
      font-size: 17px;
    }
    .area_7 .inner {
      padding-top: 40px !important;
    }
    .area7voice {
      display: flex;
      flex-direction: column;
      gap: 45px;
      margin-bottom: 70px;
    }
    .link_last {
      padding-top: 20px !important;
    }

    /*footer*/
    footer {
        padding: 30px 0px 20px;
    }

    footer .wrap {
        width: 100%;
        padding: 0 20px;
    }

    footer .footer {
        padding: 0;
        justify-content: center;
        flex-direction: column;
    }

    #page-top {
        bottom: 25px;
    }

    footer a {
        padding: 10px 0;
        display: inline-block;
    }
}

/* form*/
:root {
    color-scheme: light;
  }
  #eligibility-form { margin: 0; background:#f8fafc; color:#0f172a;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;  padding-block: 30px;}
  .ef-wrap { max-width: 720px; margin: 24px auto; padding: 0 16px; }
  .ef-card { border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; background:#fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
  .ef-title { font-size: 20px; font-weight: 800; margin: 0 0 8px; background: #6482FF; color: #fff; padding: 7px 10px; border-radius: 5px; text-align: center;}
  .ef-progress { font-size: 12px; color:#6b7280; margin-bottom: 12px; }
  .ef-q { font-weight:700; margin: 6px 0 10px; font-size: 17px; }
  .q {color: #3264FF; font-size: 25px; vertical-align: 0; padding-inline: 3px 10px;}
  .ef-grid { display:grid; gap:10px; }
  .ef-opt { padding: 12px; border:1px solid #e5e7eb; border-radius: 12px; cursor:pointer; background:#fff; }
  .ef-opt input[type="radio"] { transform: translateY(8px); }
  .ef-next { margin-top: 12px; display:inline-block; padding:12px 16px; border-radius: 12px; border:none;
    background:#3264FF; color:#fff; font-weight:700; cursor:pointer;display: flex;justify-content: center;width: 100%;max-inline-size: fit-content;margin-inline: auto; }
  .ef-next:disabled { opacity:.5; cursor:not-allowed; margin-inline: auto;max-inline-size: fit-content;display: flex; justify-content: center;width: 100%;}
  .ef-row { display:grid; gap:8px; margin-bottom: 10px; }
  .ef-row.multi { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ef-input, .ef-select { width:100%; padding:10px; border:1px solid #e5e7eb; border-radius:10px; font-size:14px; }
  .ef-note { font-size:12px; color:#6b7280; }
  .ef-help { font-size:12px; color:#6b7280; margin-top:4px; min-height: 1.2em; }
  .ef-roof-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; }
  .ef-roof { border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; cursor:pointer; background:#fff; }
  .ef-roof img { display:block; width:100%; height:auto; }
  .ef-roof label { display:block; padding:8px; font-size:14px; }
  .ef-selected { outline: 2px solid #111827; }
  .ef-result-title { font-size: 22px; font-weight: 900; margin-bottom: 15px;     display: flex;flex-wrap: wrap;gap: 8px 5px;    justify-content: center;}
  .ef-result-title span:not(.marker){background: #6482FF;color: #fff;padding: 10px; border-radius: 5px; margin-right: 7px;}
  .ef-result-title span.marker {    font-size: 30px;vertical-align: 0;    background: linear-gradient(transparent 60%, yellow 30%);}
  .ef-result-body { color:#374151; font-size:16px; margin-bottom: 14px; }
  .ef-result-body span{background: linear-gradient(transparent 60%, yellow 30%);font-weight: 600;}
  .ef-cta { display:flex; flex-wrap:wrap; gap:10px;    justify-content: center; }
  .ef-linkbtn { display:inline-block; text-decoration:none; max-width: 250px; margin-block: 10px;   font-size: 14px;}
  .ef-muted { color:#6b7280; font-size:12px;   display: none;}
  .look {display: block; width: 100%;    text-align: center;}
  @media (max-width: 640px) { .ef-row.multi { grid-template-columns: 1fr; } .ef-roof-grid { grid-template-columns: 1fr; }.ef-opt input[type="radio"] {transform: translateY(5px);}.ef-title{font-size: 18px;}.ef-linkbtn {font-size: 12px;} .ef-result-title span.marker {font-size: 24px;}}

  .ef-input, .ef-select, input, select, textarea { width:100%; padding:10px;
    border:1px solid #e5e7eb; border-radius:10px; font-size:16px; line-height:1.4; }

  .ef-note, .ef-help, .ef-muted { font-size:12px; color:#6b7280; }
  .ef-help { margin-top:4px; min-height: 1.2em; }

  .ef-roof-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; }
  .ef-roof { border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; cursor:pointer; background:#fff; }
  .ef-roof img { display:block; width:100%; height:auto; }
  .ef-roof label { display:block; padding:8px; font-size:14px; }
  .ef-selected { outline: 2px solid #111827; }
  .ef-result-title { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
  .ef-result-body { color:#374151; font-size:14px; margin-bottom: 14px; }
  .ef-cta { display:flex; flex-wrap:wrap; gap:10px; }
  .ef-linkbtn, .ef-btn {
    display:inline-block; text-decoration:none; padding:12px 16px; border-radius:12px;
    background:#06C755; color:#fff; font-weight:700; border:none; cursor:pointer;
  }
  @media (max-width: 640px) { .ef-row.multi { grid-template-columns: 1fr; } .ef-roof-grid { grid-template-columns: 1fr; } }

  /* ラジオ行のレイアウトを安定させる */
.ef-opt {
  display: flex;               /* ← 追加 */
  align-items: center;         /* ← 追加：縦中央 */
  gap: 10px;                   /* ← 追加：ラジオとテキストの間隔 */
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
}

/* ラジオボタンの見た目を固定してズレを防ぐ */
.ef-opt input[type="radio"] {
  margin: 0;                   /* ← 追加：勝手な余白を殺す */
  width: 18px;                 /* ← 追加：サイズ固定（iOSズーム対策にも有効） */
  height: 18px;                /* ← 追加 */
  accent-color: #111827;       /* ← 追加：対応ブラウザで色統一 */
  -webkit-appearance: radio;   /* ← 追加：iOSでの崩れ防止 */
  appearance: auto;
  transform: none;             /* ← 既存の translateY を無効化 */
}

/* ラジオ行のレイアウトを安定させる */
.ef-opt {
  display: flex;               /* ← 追加 */
  align-items: center;         /* ← 追加：縦中央 */
  gap: 10px;                   /* ← 追加：ラジオとテキストの間隔 */
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
}

/* ラジオボタンの見た目を固定してズレを防ぐ */
.ef-opt input[type="radio"] {
  margin: 0;                   /* ← 追加：勝手な余白を殺す */
  width: 18px;                 /* ← 追加：サイズ固定（iOSズーム対策にも有効） */
  height: 18px;                /* ← 追加 */
  accent-color: #111827;       /* ← 追加：対応ブラウザで色統一 */
  -webkit-appearance: radio;   /* ← 追加：iOSでの崩れ防止 */
  appearance: auto;
  transform: none;             /* ← 既存の translateY を無効化 */
}

.btns{
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
}

@media (max-width: 640px) { 
  .btns{
    flex-direction: column;
  }

  .btns .look:first-of-type{
    display: block;
    margin-bottom: 15px;
  }
}