@charset "utf-8";

*, ::before, ::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box; /* 幅と高さの計算方法をシンプルに計算できる設定 */
}

ul, ol {
    list-style: none; /* 行頭アイコンを非表示 */
}

a {
    color: inherit; /* 文字色をなくす */
}

img {
    max-width: 100%;
}

html{
    scroll-behavior: smooth;
}

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 16px; /* 文字サイズ */
    color: #223a70;
    line-height: 1.5; /* 行間 */
    text-align: center;
    background-color: #ffffff; /* 背景色を白に */
    display: flex;
    min-height: 100vh;
}

.main-area {
    width: 900px;
    min-width: 330px;
    z-index: 10;
    box-shadow: 0 10px 25px 0 rgba(0, 0, 0, .5);
}

.header-inner {
    margin-top: 25px;
    margin-bottom: 25px;
}

.errors {
    margin-top: 25px;
    width: 500px;
    max-height: 240px;
    text-align: left;
    display: inline-block;
    justify-content: center;
    overflow-wrap: break-word;
    overflow: auto;
}

.error-list {
    list-style: disc inside;
    color: red;
}

fieldset {
    margin: auto;
    padding: 15px;
    border-top: double 10px #6694ff;
    border-bottom: double 10px #6694ff;
    border-left: none;
    border-right: none;
    border: none;
    width: 600px;
}

legend {
    font-weight: bold;
    font-size: 25px;
    display: none;
}

footer {
    margin: 25px 0;
}

h1 {
    border-top : solid 5px #223a70;
    border-bottom : solid 5px #223a70;
    margin-left: 10px;
    margin-right: 10px;
    border: none;
    background-color: #6694ff;
    color: #ffffff;
}

.URL-list li {
    padding: 10px 0;
}

.page-back input {
    width: 230px;
    background-color: #ff7f50;
    letter-spacing: 5px;
}

.page-back input:hover {
    color: #ff7f50;
    border: 1px solid #ff7f50;
}

.asterisk {
    font-size: 14px;
    font-weight: normal;
    color: red;
    display: inline-block;
}

.blue {
    color: #00f;
}
.red {
    color: #f00;
}

.legend-name {
    color: #000000;
}

.honorific-title {
    margin-left: 10px;
}

.message {
    font-size: 18px;
}

@media (min-width: 900px) {
    .left-area,.right-area {
        width: calc(50vw - 450px);
        background-color: #f8f8f8;
    }
}

@media (max-width: 900px) {
    .main-area {
        box-shadow: none;
    }
}

@media (max-width: 650px) {
    .main-area {
        width: 100vw;
    }

    .errors {
        width: calc(100vw - 150px); /* 100vw-(650px-500px) */
        min-width: 180px;
    }

    fieldset {
        width: calc(100vw - 50px);
    }

    .form-area {
        margin: 0;
    }
}