html {
    animation: fadeIn 1s ease-in-out;
    opacity: 0;
    animation-fill-mode: forwards;

    overflow-y: scroll;
    scrollbar-color: rgb(219, 219, 219) rgb(46, 47, 48);
    scrollbar-width: thin;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.03em;
    background-image: url("./img/forest.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


h1,
h2,
h3 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

html,
body {
    margin: 0;
    scroll-behavior: smooth;
}

textarea {
    resize: none;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

p {
    line-height: 1.6;
}

/* ==================================================================== */
/* #region ヘッダー */

.header {
    display: flex;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
}

.headerContent {
    padding: 5px;
}

.title {
    margin-left: 50px;
}

.contact {
    position: fixed;
    top: 15px;
    right: 250px;
    font-size: 12px;
}

.search {
    display: flex;
    position: fixed;
    top: 35px;
    right: 0;
    height: 20px;
    align-items: center;
    margin-right: 10px;
}

.search label {
    margin-right: 5px;
}

/* #endregion */

/* ==================================================================== */
/* #region メインビュー */

.spacing {
    height: 120px;
}

.mainView {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
}

/* 商品画像1, 2, 3 */
.mainView img {
    width: 45vw;
    height: auto;
    margin: 15px 0 15px 0;
}

.mainView img:hover {
    scale: 1.05;
    cursor: pointer;
}

.zoomback img {
    width: 50%;
}

#zoomback {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    display: none;
}

#zooming {
    max-width: 95vw;
    max-height: 70vh;
    object-fit: contain;
    border: solid 5px white;
}

.zoomIn {
    animation: zoomIn 0.2s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0);
    }
}


/*【ご購入はこちら】ボタン */
.mainView button {
    background-color: rgb(168, 182, 108);
    border: solid 2px rgb(40, 41, 40);
    border-radius: 15px;
    color: white;
    width: 300px;
    font-size: 20px;
    text-align: center;
    padding: 20px 60px 20px 60px;
    cursor: pointer;
}

.mainView button:hover {
    background-color: rgb(103, 112, 61);
}

.mainView button:active {
    scale: 0.95;
}

/* #endregion */

/* ==================================================================== */
/* #region 申し込みフォーム */

.application {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(226, 229, 233, 0.80);
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

/* #region 入力フォームヘッダ */
.applicationFormHeader {
    display: flex;
    flex-direction: column;
}

.applicationFormHeader h2 {
    text-align: center;
    margin-bottom: -15px;
}

.applicationFormHeader h3 {
    margin-left: 20px;
    padding: 5px 10px 5px 10px;
    color: white;
    background-color: rgb(46, 47, 48);
    ;
}

.applicationFormHeader p {
    font-size: 14px;
    float: left;
    margin: 0 80px 20px 20px;
}

.details {
    margin: 0 20px -20px 20px;
}

#scrollTarget {
    scroll-margin-top: 100px;
}

/* #endregion */

/* #region 入力フォーム */

.applicationFormInputContents {
    display: flex;
    position: relative;
    flex-direction: column;
}

.applicationFormInputContent {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.applicationFormInputContent p {
    margin-right: 30px;
}

.applicationFormInputContent input,
select {
    width: 100px;
    height: 20px;
    margin-right: 15px;
}

label {
    margin-right: 15px;
}

.name {
    border-top: solid 1px;
    border-bottom: solid 1px;
}

.name p {
    margin-right: 101px;
}

.wrapper {
    position: relative;
}

.alert {
    position: absolute;
    top: -0.8rem;
    color: red;
    font-size: 0.65rem;
    white-space: nowrap;
}

#zipCodeAlert {
    margin-left: 32px;
}

.zipCode p {
    margin-right: 64px;
}

.prefectures p {
    margin-right: 85px;
}

.prefectures select {
    width: 150px;
    height: 27px;
}

/* 初期値の色を変えるために必須 */
.prefectures select:invalid {
    color: gray;
}


optgroup {
    color: rgb(153, 192, 130);
    font-size: 1rem;
}

.prefectures option {
    color: black;
    font-size: 0.8rem;
}

.municipalities p {
    margin-right: 85px;
}

.municipalities input {
    width: 350px;
}

.streetBlockNumber p {
    margin-right: 68px;
}

.streetBlockNumber input {
    width: 350px;
}

.buildingName p {
    margin-right: 101px;
}

.buildingName input {
    width: 200px;
    margin-right: 40px;
}

#feeValue {
    width: 80px;
    color: rgb(212, 30, 30);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 5px 0 10px;
}

.telephoneNumber {
    border-top: solid 1px;
    border-bottom: solid 1px;
}

.telephoneNumber p {
    margin-right: 85px;
}

.telephoneNumber input {
    margin-right: 40px;
}


.email p {
    margin-right: 35px;
}

.email input {
    width: 350px;
}

.birthday {
    border-top: solid 1px;
    border-bottom: solid 1px;
}

.birthday p {
    margin-right: 100px;
}

.birthday select {
    width: 50px;
}

#currentAge {
    margin: 0 5px 0 5px;
}

.inquiryDetails {
    align-items: flex-start;
    margin: 5px 0 5px 0;
}

.inquiryDetails label:first-child {
    margin-right: 50px;
    text-align: center;
}

.inquiryDetails textarea {
    width: 300px;
    height: 100px;
    margin-right: 5px;
}

.inquiryDetails #count {
    align-self: flex-end;
}

.orderQuantity {
    border-top: solid 1px;
    border-bottom: solid 1px;
}

.orderQuantity p {
    margin-right: 100px;
}

.orderQuantity input {
    width: 30px;
}

.orderQuantity label {
    margin-right: 80px;
}

.satisfactionLevel p {
    margin-right: 65px;
}

.satisfactionLevel input {
    width: 200px;
}

#satisfactionLevel {
    transform: translateY(4px);
}

#count {
    width: 100px;
}

#total {
    width: 80px;
    color: rgb(212, 30, 30);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 5px 0 10px;
}

#restoreBtn {
    position: absolute;
    right: 30px;
    bottom: 0;
    border: solid 2px gray;
    border-radius: 5px;
    background-color: rgb(245, 245, 245);
    color: rgb(24, 24, 24);
    text-align: center;
    font-size: 0.5rem;
    width: 65px;
    padding: 6px;
    margin: 30px 0 30px 0;
    cursor: pointer;
}

#restoreBtn:hover {
    background-color: rgb(171, 174, 175);
    color: rgb(255, 255, 255);
}

#restoreBtn:active {
    background-color: rgb(117, 117, 119);
}

i {
    margin-right: 3px;
}

.satisfactionLevelContainer {
    position: relative;
    user-select: none;
}

#satisfactionLevelText {
    position: absolute;
    top: 0;
    left: 48%;
    transform: translate(-50%, -50%);
    z-index: 900;
    width: 20px;
    text-align: center;
    color: rgb(78, 76, 76);
    user-select: none;
    display: none;
}

/* #endregion */

/* #region 送信ボタン */
.submit {
    align-self: center;
    flex-direction: column;
    border: solid 2px rgb(53, 94, 53);
    background-color: rgb(168, 182, 108);
    border-radius: 5px;
    color: white;
    text-align: center;
    width: 135px;
    padding: 6px;
    margin: 30px 0 30px 0;
}

.submit:hover {
    background-color: rgb(103, 112, 61);
    color: rgb(255, 255, 255);
    cursor: pointer;
}

.submit:active {
    scale: 0.95;
}

.menu {
    display: none;
}


/* #endregion */

/* #endregion */

/* ==================================================================== */
/* フッター */

footer {
    text-align: center;
    width: 100%;
    height: 50px;
    font-size: 12px;
    color: white;
}

/* ==================================================================== */
/* etc... */

.bg {
    background-color: rgb(46, 47, 48);
}

/* ==================================================================== */
/* # region responsive */
@media (max-width: 700px) {
    .contact {
        width: 100px;
        font-size: 0.6rem;
    }
}

@media (max-width: 600px) {
    body {
        overflow-x: hidden;
    }

    .header {
        position: fixed;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .headerContent {
        padding: 5px 0;
        text-align: center;
    }

    .title {
        margin-left: 50px;
        font-size: 20px;
        text-align: left;
        width: 100%;
    }

    .contact {
        display: none;
        position: static;
        font-size: 12px;
        margin: 5px 0;
        text-align: center;
    }

    .search {
        display: none;
        position: static;
        margin: 5px 0;
        justify-content: center;
        width: 100%;
    }

    /* 画像を画面幅に収める */
    .mainView img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .mainView button {
        width: 90%;
        font-size: 16px;
        padding: 15px;
    }

    /* フォーム横並び→縦並び */
    .applicationFormInputContent {
        flex-direction: column;
        align-items: flex-start;
    }

    /* inputの固定幅解除 */
    .municipalities input,
    .streetBlockNumber input,
    .buildingName input,
    .email input {
        width: 100%;
        margin-right: 0;
    }

    #submit {
        align-items: center;
    }

    select {
        width: 100%;
    }

    #zipCodeAlert {
        margin-left: 0px;
    }

    .applicationFormInputContent p {
        margin-right: 0;
        margin-bottom: 5px;
    }

    label {
        margin-right: 0;
    }

    .application {
        padding: 10px;
    }

    .inquiryDetails textarea {
        width: 100%;
    }

    .menu {
        display: block;
        position: fixed;
        top: 91px;
        right: 0;
        width: 50%;
        height: 100%;
        background-color: rgb(46, 47, 48);
        color: white;
        font-size: 0.85rem;
        padding-left: 15px;
        border-top: solid 1px rgb(201, 201, 201);
        z-index: 1001;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    #scrollTarget {
        scroll-margin-top: 80px;
    }

    #menu-toggle {
        position: fixed;
        top: -100px;
    }

    #menu-toggle:checked~.menu {
        display: block;
        transform: translateX(0);
    }

    .menu-icon {
        position: fixed;
        top: 10px;
        right: 15px;
        font-size: 40px;
        color: white;
        cursor: pointer;
        z-index: 1001;
    }

    .menu input {
        margin-bottom: 25px;
    }

    #restoreBtn {
        position: absolute;
        right: -40px;
        bottom: 0;
    }
}

/* #endregion */