html,
body,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
p,
form,
input,
div {
    margin: 0;
    padding: 0;
}

body {
    opacity: 0;
    transition: opacity 2.25s ease;
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    height: 100%;
    background-image: url(./img/background04.jpg);
    /* background-position: right 40%; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
body.fade-in {
    opacity: 1;
}

li {
    list-style: none;
}

/* ヘッダー */
.header {
    width: 100%;
    height: 11%;
    background-image: url("./img/header2.jpg");
    /* background-size: contain; */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: fixed;
    z-index: 9999;
}

.header-logo {
    float: left;
    font-size: xx-large;
    color: aliceblue;
    padding: 25px;
    margin-left: 30px;
}

.header-list ul {
    position: absolute;
    right: 275px;
    padding-top: 20px;
    color: aliceblue;
}

.search-container {
    text-align: right;
    margin-top: 50px;
}

.search-label {
    font-size: 18px;
    color: aliceblue;
    padding-right: 12px;
}

.search-input {
    margin-right: 30px;
}

#target {
    scroll-margin-top: 100px;
}

/* メインレイアウト */
main {
    display: flex;
    flex-direction: column;
    padding-top: 140px;
}

.container {
    width: 75%;
    margin: 0 auto;
    text-align: center;
}

.contents {
    width: 100%;
    text-align: center;
}

/* ボタン */
.btn-visual {
    margin: 20px 0;
}

/* ボタンの詳細設定 */
#btn-buy {
    background-color: sienna;
    border: solid 2px brown;
    color: white;
    border-radius: 20px;
    padding: 30px 80px;
    text-decoration: none;
    font-size: 1em;
    box-shadow: 0 5px 0 brown;
    display: inline-block;
    transition: all 0.2s ease;
}

/* ホバー時 */
#btn-buy:active {
    background-color: peru;
    transform: translateY(3px);
    box-shadow: 0 2px 0 brown;
}

/* クリック時 */
/* #btn-buy:active {
    background-color: saddlebrown;
    transform: translateY(5px);
    box-shadow: none;
} */

/* フォーム全体 */
input[type="text"],
input[type="email"],
input[type="tel"],
select[id="year"],
select[id="month"],
select[id="day"],
input[type="password"] {
    width: 500px;
    height: 20px;
    box-sizing: border-box;;
    font-size: 16px;
}

.address-form {
    display: flex;
    text-align: left;
    align-items: center;
    flex-direction: column;
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.7);
}

.explanation {
    width: 70%;
    text-align: center;
}

.explanation h2 {
    padding: 20px 0 20px 0;
}

.tell-app p {
    text-align: left;
}

.my-form {
    width: 70%;
}

/* 共通フォーム */
.form-group {
    width: 100%;
    padding: 10px 0 10px 0;
    flex-direction: column;
}

.border-line {
    width: 100%;
    text-align: center;
    margin-left: 0;
    gap: 10px;
    border: 2px solid brown;
    padding-top: 10px;
}

.border-line h3 {
    text-align: left;
    font-size: 23px;
}

.border-line h4 {
    text-align: left;
    font-size: 23px;
}

.border-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-top: 2px solid brown;
    padding-top: 20px;
    /* padding-bottom: 8px; */
}

/* レスポンス調整 */
.response-left {
    width: 30%;
    /* width: 30%; */
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.response-right {
    width: 70%;
    display: flex;
    justify-content: space-between;
    position: relative;
    /* align-items: center; */
}

.input-form {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.detailed-info {
    width: 100%;
}

.tel-number {
    width: 50%;
}

/* 入力系共通 */

.form-group input {
    width: 150px;
    /* inputタグの基本 */
    max-width: 300px;
    box-sizing: border-box;
}

/* inputの最大最小の設定 */
input.small {
    width: 100px;
}

input.large {
    width: 300px;
}


.form-group label {
    width: 300px;
    padding-left: 10px;
    white-space: nowrap;
}


/* 氏名 */
/* **************************** */
/* 各行 */
.form-row{
    display: flex;
    align-items: center;
    padding: 10px 0;
    /* gap: 20px; */
}
.nameLabel {
    width: 90px;  /*左の氏名の幅を固定*/
    padding-right: 208px;
}
.name-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.name-group input{
    width: 120px;
}

#lastName-error{
    width: 180px;
    /* display: block; */
    margin-bottom: 5px;
}

#firstName-error {
    width: 100px;
    white-space: nowrap;
}

.input-item{
    width: 100px;
}


/* 郵便番号 */
.postcodeInputGroup {
    margin-left: 210px;
    display: flex;
    /* labelの文字改行を防ぐ */
    white-space: nowrap;
}

.postcodeInfo {
    display: flex;
    white-space: nowrap;
    margin-left: 20px;
    padding: 0 0 15px 0;
}
.postcodeInfo input{
    width: 100px;
}


.exPostCode {
    margin-left: 75px;
    text-align: right;
}

.price {
    display: inline-block;
    width: 50px;
}

/* 都道府県 */
.prefectures-info {
    display: flex;
    gap: 10px;
}

#prefectures {
    width: 200px;
    height: 25px;
}

/* 市町村 */
.municipality-info {
    display: flex;
    gap: 10px;
}

.municipality-info input {
    width: 700px;
}

/* 住所 (丁目・番地） */
.street-info {
    display: flex;
    gap: 10px;
}

.street-info input {
    width: 700px;
}

/* 建物名 */
.buildingNameInfo {
    display: flex;
    gap: 10px;
}

.buildingNameInfo p {
    white-space: nowrap;
}

/* 建物名 */
.buildingNameInfo p {
    margin-right: 400px;
    white-space: nowrap;
}

/* 電話番号 */
.tellNumberInfo {
    display: flex;
    /* padding-top: 20px; */
    margin-left: 15px;
}

#phone-error{
    margin-left: 20px;
}

.tellNumberInfo p {
    margin-right: 305px;
    white-space: nowrap;
}

.tellNumberInfo input {
    margin-left: 25px;
}


/* 生年月日 */
.birthday-info {
    display: flex;
    gap: 10px;
}

.birthdayInputGroup {
    display: flex;
    gap: 10px;
    align-items: center;
}

.age {
    margin-left: 20px;
}

/* セレクトサイズ調整 */
#year,
#month,
#day {
    width: 60%;
    height: 100%;
}

.day {
    align-self: flex-end;
}

/* テキストエリア */
#textarea {
    width: 250px;
    height: 120px;
    padding: 10px;
    resize: none;
}

.text-info {
    align-self: flex-end;
    margin-right: 300px;
}

.rest-text {
    margin-left: 36px;
}

.submit {
    text-align: center;
    justify-content: center;
    margin: 30px 0 50px 0;
}

/* 注文個数 */
.order-quantity {
    display: flex;
    gap: 10px;
}

.orderQuantityInputGroup {
    display: flex;
    justify-content: space-between;
}

.orderQuantityInputGroup p {
    white-space: nowrap;
    padding-right: 90px;
}

.orderQuantityInputGroup input {
    width: 70px;
}

.total-price {
    margin-left: 36px;
}

/* 満足度 */
.slider {
    margin-left: 66px;
}

.input-wrap{
    white-space: nowrap;
    position: relative;
}

.error-msg {
    font-size: 12px;
    color: red;
    left: 0;
    top: 4px;
    position: absolute;
    margin-top: -22px;
    pointer-events: none;
    display: block;
    flex-direction: column;
}

.price{
    font-size: 20px;
    font-weight: bold;
    color:red;
}

.total-price{
    font-size: 24px;
    font-weight: bold;
    color: darkred;
}


/* 送信ボタンの設定 */
.button {
    background-color: sienna;
    border: solid 2px brown;
    color: white;
    border-radius: 20px;
    padding: 30px 80px;
    text-decoration: none;
    font-size: 1em;
    box-shadow: 0 5px 0 brown;
    display: inline-block;
    transition: all 0.2s ease;
}

.button:active {
    /* カーソル時の影消去 */
    box-shadow: none;
    background-color: peru;
    transform: translateY(3px);
    box-shadow: 0 2px 0 brown;
}
#submit-btn:disabled{
    transform: none !important;
    box-shadow: none  !important;
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-submit {
    width: 300px;
}

/* フッター */
.footer {
    text-align: center;
    margin-bottom: 30px;
}

.box {
    padding-top: 2%;
    padding-bottom: 1.25%;
    text-align: center;
    color: #fff;
}

/* メール */
.mail-box {
max-width: 600px;
margin: 0 auto;
text-align: center;
}
.mail-box table {
margin: 20px auto;
text-align: left;
}
.mail-box {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}



/* タブレット対応 */
@media screen and (max-width: 1024px) {

    /*全体 */
    body {
        font-size: 14px;
    }

    .container {
        width: 90%;
        margin: 0 auto;
    }

    main {
        padding-top: 120px;
    }

    /*ヘッダー */
    .header {
        height: auto;
        padding: 10px 0;
    }

    .header-logo {
        font-size: 22px;
        padding: 10px;
        margin-left: 0;
    }

    .header-list ul {
        right: 20px;
        font-size: 13px;
    }

    .search-container {
        margin-top: 20px;
    }

    /*画像 */
    .contents img {
        display: block;
        margin: 0 auto;
        max-width: 100%;
        height: auto;
    }

    /*フォーム幅*/
    .my-form {
        width: 90%;
    }

    /*左右バランス調整*/
    .response-left {
        width: 35%;
    }

    .response-right {
        width: 65%;
    }

    /*入力系（固定幅やめる）*/
    input,
    select,
    textarea {
        width: 100%;
        max-width: 350px;
    }

    /*郵便番号*/
    .postcodeInputGroup {
        margin-left: 0;
    }

    .postcodeInfo {
        margin-left: 0;
    }

    .postcodeInfo input {
        margin-left: 85%;
        width: 200px;
        max-width: 70%;
    }

    .exPostCode {
        margin-left: 20px;
        text-align: left;
    }

    /*市町村・住所*/
    .municipality-info input,
    .street-info input {
        width: 100%;
        max-width: 500px;
    }

    /*電話*/
    .tellNumberInfo {
        margin-left: 100;
    }

    .tellNumberInfo input {
        margin-left: 62.5px;
    }

    .tellNumberInfo p {
        margin-right: 62.5px;
    }

    /*テキストエリア */
    #textarea {
        width: 50%;
        max-width: 400px;
    }


    .text-info {
        margin-right: 4000px;
    }

    /*注文個数*/
    .orderQuantityInputGroup {
        gap: 10px;
    }

    /*送料表示*/
    .buildingNameInfo p {
        margin-right: 0;
    }

    /*ボタン*/
    #btn-buy {
        padding: 20px 50px;
        font-size: 14px;
    }

    /*ズレの根本リセット*/
    .postcodeInputGroup,
    .postcodeInfo,
    .tellNumberInfo,
    .buildingNameInfo p,
    .text-info {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* スマホ */
@media screen and (max-width: 768px) {
    /* 全体 */
    .container {
        width: 95%;
    }

    main {
        padding-top: 100px;
    }
    .border-top,
    .form-row,
    .response-right,
    .name-group,
    .postcodeInputGroup,
    .orderQuantityInputGroup,
    .birthdayInputGroup {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* ラベル */
    .response-left {
        width: 100%;
    }

    /* ヘッダー */
    .header {
        height: auto;
        padding: 10px 0;
    }

    .header-logo {
        float: none;
        text-align: center;
        margin: 0;
        padding: 10px 0;
    }

    .header-list ul {
        position: static;
        text-align: center;
        padding: 0;
    }

    .search-container {
        text-align: center;
        margin-top: 10px;
    }

    /* 画像 */
    img {
        width: 100%;
        height: auto;
    }

    /* ボタン */
    #btn-buy {
        padding: 15px 40px;
        font-size: 14px;
    }

    /* フォーム全体 */
    .my-form {
        width: 100%;
    }

    /* 右側 */
    .response-right {
        width: 100%;
    }

    /* inputサイズ調整 */
    input,
    select,
    textarea {
        width: 100% !important;
        max-width: 100%;
    }

    /* 郵便番号 */
    .postcodeInputGroup {
        width: 100%;
        margin-left: 0;
    }
    .postcodeInfo input {
        width: 100% !important;
        max-width: 200px;
    }

    /* デカすぎる要素潰す */
    .municipality-info input,
    .street-info input {
        width: 100%;
    }

    .exPostCode {
        margin-left: 0;
        text-align: left;
    }

    /* 市町村・住所 */
    .municipality-info input,
    .street-info input {
        width: 100%;
    }

    /* 建物・送料 */
    .buildingNameInfo p {
        margin-right: 0;
    }

    /* 電話 */
    .tellNumberInfo {
        margin-left: 0;
        flex-direction: column;
    }

    .tellNumberInfo input {
        margin-left: 0;
    }

    .tellNumberInfo p {
        margin-right: 0;
    }

    /* テキストエリア */
    #textarea {
        width: 100%;
    }

    .text-info {
        margin-right: 0;
    }

    /* 注文個数 */
    .orderQuantityInputGroup {
        gap: 10px;
    }

    /* フッター */
    .box {
        font-size: 12px;
        padding: 10px;
    }

    /* 余計な余白削除 */
    .postcodeInputGroup,
    .postcodeInfo,
    .tellNumberInfo,
    .text-info {
        margin-left: 0 !important;
    }
}