@charset "utf-8";

/*------------------------------------------
    ベース
------------------------------------------*/
:root {
    --inner-width-sp: 92%;
    --inner-width-pc: 1180px;
    --inner-width-pc-small: 960px;
    --base-font: "Noto Sans JP", "游ゴシック", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ ゴシック", sans-serif;
    --en-font: "Poppins", sans-serif;
    --base-color: #333;
    --key-color: #F08925;
}

html {
    font-size: 10px;
    overflow-y: scroll; /* クロールバーを常に表示 */
}

body {
    font-family: var(--base-font);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.875;
    -webkit-text-size-adjust: 100%;
    color: var(--base-color);

}

a {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none; /* クリックした時に選択状態にならないようにする */
    -moz-user-select: none;
    -webkit-user-select: none;
}

a:hover {
    opacity: 0.7;
}

p {
    text-align: justify;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}


/*------------------------------------------
    コンテンツ
------------------------------------------*/

.main {
    padding-bottom: 85px;
}

@media screen and (min-width: 768px) {
    .main {
        padding-bottom: 120px;
    }
}

/* インナー */
.inner {
	width: var(--inner-width-sp);
	max-width: 100%;
	margin: 0 auto;

}

@media screen and (min-width: 992px) {
    .inner.is-small {
        width: var(--inner-width-pc-small);
    }
}

@media screen and (min-width: 1260px) {
    .inner {
        width: var(--inner-width-pc);
    }
}

/* メインビジュアル */
.mv {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background: url('../img/mv_sp.webp') no-repeat border-box center/cover;
}
.mv__ttl {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}
.mv__en {
    font-family: var(--en-font);
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 0.08em;
}
.mv__ja {
    font-weight: bold;
}

@media screen and (min-width: 768px) {
    .mv {
        height: 265px;
        background-image: url('../img/mv_pc.webp');
    }
    .mv__en {
        font-size: 4rem;
    }
    .mv__ja {
        font-size: 2rem;
    }
}

/* 冒頭テキスト */
.top {
    margin-top: 50px;
}
.top__ttl {
    font-size: 2rem;
    font-weight: normal;
    text-align: center;
}
.top__txt {
    margin-top: 25px;
}

@media screen and (min-width: 768px) {
    .top {
        margin-top: 78px;
    }
    .top__ttl.is-completed {
        font-size: 2.4rem;
    }
    .top__txt {
        margin-top: 23px;
        text-align: center;
    }

}

/* フォーム */
.form {
    margin-top: 25px;
}
.form__block:not(:first-child) {
    margin-top: 21px;
}
.form__ttl {
    font-weight: bold;
}
.form__table {
    margin-top: 8px;
    border: 1px solid #ccc;
}
.form__row:not(:last-of-type) {
    border-bottom: 1px solid #ccc;
}
.form__th {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    font-weight: bold;
    background-color: #F6F5F5;
    border-bottom: 1px solid #ccc;
}
.form__td {
    padding: 15px;
}
.form__submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
}

@media screen and (min-width: 768px) {
    .form {
        margin-top: 50px;
    }
    .form__block:not(:first-child) {
        margin-top: 28px;
    }
    .form__table {
        margin-top: 5px;
    }
    .form__row {
        display: flex;
    }
    .form__th {
        width: 250px;
        padding: 20px;
        border-right: 1px solid #ccc;
        border-bottom: none;
    }
    .form__td {
        flex: 1;
        padding: 15px;
    }
    .form__submit {
        flex-direction: row-reverse;
        justify-content: center;
        margin-top: 50px;
    }
}

/* 必須 */
.required {
    padding: 0 7px;
    font-weight: bold;
    line-height: 1.5;
    color: #fff;
    background-color: var(--key-color);
}

/* テキスト */
.text-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 10px;
}
.text-input.is-mt {
    margin-top: 3px;
}
.text-input input {
    width: 100%;
    padding: 5px 15px;
    font-family: var(--base-font);
    font-size: 1.6rem;
    border: 1px solid #D2CDCD;
    border-radius: 0;
}
.text-input input:placeholder {
    color: #9D9B9B;
}
.text-input.is-zip input {
    width: 114px;
}

@media screen and (min-width: 768px) {
    .text-input input {
        padding: 9px 15px;
    }
    .text-input.is-zip input {
        width: 105px;
    }
    .text-input.is-prefecture input {
        width: 187px;
    }
}

@media screen and (min-width: 992px) {
    .text-input input {
        width: 470px;
    }
    .text-input.is-w100 input {
        width: 100%;
    }
}

/* ラジオボタン */
.radio-input {
    display: flex;
    align-items: center;
    gap: 3px 30px;
}
.radio-input.is-column {
    flex-direction: column;
    align-items: start;
}
.radio-input__item {
    display: flex;
    align-items: start;
    gap: 10px;
}
.radio-input__item input {
    margin-top: 10px;
}

@media screen and (min-width: 768px) {
    .radio-input {
        row-gap: 10px;
        padding: 0 10px;
        height: 100%;
    }
}

/* セレクトボックス */
.select-group__row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.select-group__row:not(:first-child) {
    margin-top: 7px;
}
.select-group__blank, .select {
    width: 141px;
}
.select {
    position: relative;
    border: 1px solid #D2CDCD;
    border-radius: 0;
}
.select::before {
    content: '';
    position: absolute;
    top: 0;
    right: 10px;
    bottom: 0;
    width: 11px;
    height: 5px;
    margin: auto;
    background: url('../img/tri_bottom.svg') no-repeat border-box center/cover;
}
.select select {
    width: 100%;
    padding: 9px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    font-family: var(--base-font);
    color: var(--base-color);
}

@media screen and (max-width: 380px) {
    .select {
        width: 120px;
    }
}

@media screen and (min-width: 992px) {
    .select-group {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 7px 10px;
    }
    .select-group__row:not(:first-child) {
        margin-top: 0;
    }
}

/* 住所レイアウト */
.address {
    margin-top: 10px;
}
.address__row:not(:first-child) {
    margin-top: 5px;
}
.address__row .text-input {
    margin-top: 3px;
}

@media screen and (min-width: 768px) {
    .address__row {
        display: flex;
        align-items: center;
    }
    .address__row:not(:first-child) {
        margin-top: 8px;
    }
    .address__label {
        width: 156px;
    }
    .address__row .text-input {
        flex: 1;
        margin-top: 0;
    }
}

/* 注意書き */
.notice.is-tenure {
    margin-top: 5px;
}
.notice.is-file {
    margin-top: 10px;
    font-size: 1.2rem;
    line-height: 2;
}

@media screen and (min-width: 768px) {
    .notice {
        margin-top: 10px;
    }
}

/* エラー表示 */
.errors {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.errors__item {
    padding: 5px 15px;
    font-weight: 500;
    color: red;
    border: 1px solid red;
    margin-bottom: 5px;
}

@media screen and (min-width: 768px) {
    .errors__item {
        padding: 10px 20px;
        text-align: center;
    }
}

/* ボタン */
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 280px;
    height: 60px;
    font-weight: bold;
    color: #fff;
    border-radius: 10px;
    transition: 0.2s;
}
.btn:hover {
    opacity: 0.7;
}
.btn.is-submit {
    background-color: var(--key-color);
}
.btn.is-back {
    background-color: var(--base-color);
}

@media screen and (min-width: 768px) {
    .btn {
        width: 300px;
        height: 60px;
        font-size: 2rem;
        border-radius: 12px;
    }
}

/* 添付ファイル用装飾 */
.file-input{
    position: relative;
}
.form__history-file {
    position: absolute;
    top: -3px;
    left: 132px;
    width: 62%;
    overflow: scroll;
    background: #FFF;
    padding: 2px;
  }
  @media screen and (min-width: 768px) {
    .form__history-file {
      left: 128px;
      top: -4px;
      width: clamp(29.5rem, -2.139rem + 41.196vw, 54.3rem);
      padding-right: 175px;
      overflow: auto;
    }
  }
  .invalid + .form__history-file {
    background: rgb(255, 225, 225);
  }

/* バリデーション後inputの背景色 */
.invalid{
    background: rgb(255, 225, 225);
}


