.form__agree {
    margin-bottom: 48px;
}
@charset "UTF-8";

html {
    height: 100%;
    margin: 0 auto;
    text-align: center;
    background-color: rgb(255, 255, 255);
    color: #333333;
    font-size: 62.5%;
    font-weight: 400;
    font-family: "Kiwi Maru", serif, sans-serif;
}

img {
    pointer-events: none;
    width: 100%;
}

body {
    width: auto;
    margin: 0 auto;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    text-align: left;
    background: #f0f8ff; /* 薄い青色の背景に変更 */
    line-height: 1;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* PC */
.pc {
    display: block !important;
}
.sp {
    display: none !important;
}

#wrap {
    overflow: hidden;
    max-width: 1300px;
    margin: 0 auto;
}

/* フォーム部分 */
#main {
    background: #e6f2ff; /* メイン部分の背景色を変更 */
    padding: 40px 0;
}

.block {
    max-width: 1000px;
    margin: 0 auto;
    margin-inline: auto;
}

.form__inner {
    padding-block: 6%;
    padding-inline: 4%;
    background-color: white;
    border-radius: 10px; /* 角を丸くする */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* 影を追加 */
}

.form__box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 38px;
    font-size: 2rem; /* フォントサイズを少し小さく */
    line-height: calc(28 / 24);
}

.form__label {
    width: 30%;
}

.form__label.wide {
    width: 100%;
    margin-bottom: 10px;
}

.form__content {
    width: 70%;
}

.form__contentarea {
    width: 100%;
}

.form__content__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.form__label.required::after {
    content: "＊";
    color: #ff4d4d; /* 赤色を少し明るく */
    margin-left: 5px;
}

input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
    height: 48px;
    padding-inline: 12px;
    border-radius: 5px;
    font-size: 1.8rem;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.2); /* 境界線を薄く */
    transition: border-color 0.3s; /* 境界線の色変化にアニメーション */
}

input:not([type="radio"]):not([type="checkbox"]):focus,
select:focus,
textarea:focus {
    border-color: #4d94ff; /* フォーカス時の境界線の色 */
    outline: none;
    box-shadow: 0 0 0 2px rgba(77, 148, 255, 0.2); /* フォーカス時の影 */
}

.form__content__row .inputWrap {
    flex-basis: calc(50% - 10px);
}

select {
    display: flex;
    align-items: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) 50%;
    padding-right: 40px;
    background-size: 18px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form__label span {
    font-size: 1.6rem;
}

textarea {
    resize: vertical;
    min-height: 200px;
    padding: 12px;
}

.form__law {
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 5px;
    font-size: 1.5rem;
    width: 100%;
    height: 250px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    background-color: #f9f9f9; /* 背景色を少し変更 */
    line-height: 1.6;
}

.form__law p {
    margin-bottom: 15px;
}

.form__inner .submitArea input {
    width: 70%;
    background-color: #3a86ff; /* ボタンの色を変更 */
    border: none;
    border-radius: 50px;
    height: 60px;
    font-size: 20px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    margin-bottom: 10px;
    cursor: pointer;
}

.form__inner .submitArea input:hover {
    background-color: #2970e3; /* ホバー時の色 */
    transform: translateY(-2px); /* ホバー時に少し浮き上がる */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.submitArea {
    text-align: center;
    margin-top: 30px;
}

.form__inner .submitArea input:disabled {
    color: #999;
    background-color: #cccccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.postalHead {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 1.8rem;
}

input[name="zipcode"] {
    padding-left: 30px;
}

.inputWrap {
    position: relative;
}

/* チェックボックス */
input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    display: block;
    position: absolute;
    left: 3px;
    top: -2px;
    color: #3a86ff;
    font-size: 18px;
    font-weight: bold;
}

.form__agree__label {
    position: relative;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.validation-x {
    color: #ff0000;
    font-weight: bold;
    font-size: 16px;
    margin-left: 5px;
    display: inline-block;
}

input:disabled[type="checkbox"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.form__agree li {
    padding-bottom: 15px;
}

/* フッター */
footer {
    width: 100%;
    margin: 0 auto;
    padding: 3% 0;
    background: #333; /* 背景を濃いグレーに */
    color: #fff;
}

footer ul {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    margin: 0 15px;
    transition: color 0.3s;
}

footer a:hover {
    color: #3a86ff; /* ホバー時の色 */
}

footer li {
    display: inline-block;
    margin: 10px 0;
}

.copy {
    text-align: center;
    padding: 20px 0 10px 0;
    color: #ccc;
    font-size: 14px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .pc {
        display: none !important;
    }
    .sp {
        display: block !important;
    }

    #main {
        padding: 20px 0;
    }

    .block {
        width: min(1000px, 100%);
        margin-inline: auto;
        padding-inline: 15px;
    }

    .form__inner {
        padding: 30px 20px;
    }

    .form__box {
        display: block;
        margin-bottom: 25px;
        font-size: 1.6rem;
    }

    .form__content,
    .form__label {
        width: 100%;
    }

    .form__label {
        margin-bottom: 10px;
        font-weight: bold;
    }

    input:not([type="radio"]):not([type="checkbox"]),
    select,
    textarea {
        height: 46px;
        font-size: 1.6rem;
        margin-bottom: 0;
    }

    .form__inner .submitArea input {
        width: 100%;
        height: 56px;
        font-size: 18px;
    }

    .form__law {
        padding: 15px;
        font-size: 1.4rem;
        height: 200px;
    }

    footer a {
        font-size: 14px;
        margin: 0 10px;
    }

    footer li {
        margin: 5px 0;
    }
}

/* 利用規約のスクロール処理 */
.form__law {
    padding: 15px;
    height: 200px; /* 高さを指定 */
    overflow-y: auto; /* スクロールを可能にする */
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    font-size: 1.4rem;
    line-height: 1.6;
}

/* チェックボックスのスタイル */
.form__agree {
    margin-top: 20px;
}

.form__agree ul {
    list-style: none;
    padding: 0;
}

.form__agree label {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    cursor: pointer;
}

.form__agree input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    appearance: none;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.form__agree input[type="checkbox"]:checked {
    background-color: #3a86ff;
    border-color: #3a86ff;
}

.form__agree input[type="checkbox"]:checked::after {
    content: "✓";
    display: block;
    color: white;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    left: 4px;
    top: -2px;
}

/* 備考欄のスタイル */
textarea#remarks {
    width: 100%;
    height: 120px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 1.4rem;
    border-radius: 5px;
}

/* 送信ボタンのデザイン */
.submitArea {
    text-align: center;
    margin-top: 20px;
}

.submitArea input {
    width: 100%;
    max-width: 300px;
    height: 50px;
    background-color: #3a86ff;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.submitArea input:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.submitArea input:hover:not(:disabled) {
    background-color: #2970e3;
    transform: translateY(-2px);
}

.common-footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 60px;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
        sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
    text-decoration: underline;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-info p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.copyright {
    font-size: 13px;
    color: #a0a0a0;
    margin: 0;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-links,
    .footer-info {
        width: 100%;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
    }

    .footer-links li {
        margin-right: 15px;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 480px) {
    .common-footer {
        padding: 30px 0 15px;
    }

    .footer-links ul {
        flex-direction: column;
    }

    .footer-links li {
        margin-right: 0;
    }
}
