@charset "UTF-8";

#contact .ttl div {
    background-image: url(img/ttl_bg.png);
}

#contact .section>ul>li {
    padding: 20px 45px;
}

#contact .section>ul>li:first-child {
    padding-top: 0;
}

#contact .section>ul>li:nth-child(even) {
    background: #e5e9f2;
}

#contact .section ul li p {
    color: #003280;
}

#contact .section ul li ul {
    -js-display: flex;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

#contact .section ul li ul li {
    margin-right: 50px;
}

.number {
    font-size: 23px;
    letter-spacing: 0.06em;
}

#form .head01 img {
    transform: scale(0.9) translateY(-4px);
}

#form .head01 span {
    display: inline-block;
    transform: translateY(-10px);
    color: #003280;
    background: transparent;
}

#form .formArea {
    width: 100%;
    margin: 0 auto;
    padding: 50px;
    background: #E5E9F2;
    color: inherit;
}

#form .formArea .formBox {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 2.0em;
}

#form .formArea .formBox:last-child {
    margin-bottom: 0;
}

#form .formArea .formBox .titleArea .title {
    display: inline-block;
    margin-bottom: 1.0em;
    margin-right: 0.5em;
    font-weight: bold;
    color: #003280;
    background: transparent;
}

#form .formArea .formBox .titleArea .required {
    display: inline-block;
    padding: 0.2em 0.5em;
    transform: translateY(-2px);
    font-size: 12px;
    font-weight: bold;
    background: #003280;
    color: #FFFFFF;
}

#form .formArea .formBox .textArea input {
    width: 100%;
    padding: 1.0em;
    border: none;
    background: #FFFFFF;
}

#form .formArea .formBox.-flex {
    display: flex;
}

#form .formArea .formBox.-flex .item {
    width: 48%;
    margin-right: 4%;
}

#form .formArea .formBox.-flex .item:last-child {
    margin-right: 0;
}

@media screen and (max-width: 768px) {
    #form .formArea {
        padding: 5vw;
    }
}

@media screen and (max-width: 768px) {
    #contact .section>ul>li {
        padding: 15px;
    }
}

@media screen and (max-width: 640px) {
    #contact .ttl div {
        background-image: url(img/ttl_bg_mb.jpg);
    }
}

@media screen and (max-width: 550px) {
    #contact .head01 span {
        margin-left: 0;
        display: block;
        margin-top: 10px;
    }
}

@media screen and (max-width: 350px) {

    #contact .head01,
    #contact .intro {
        font-size: 17px;
    }

    .number {
        font-size: 20px;
        letter-spacing: normal;
    }

    #email a {
        font-size: 20px;
    }
}

#form .formArea .formBox input::placeholder,
#form .formArea textarea::placeholder {
    color: #BBBBBB;
}

#form .formArea .formBox input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

#form .formArea .btnArea {
    display: flex;
    justify-content: center;
}

#form .formArea .btnArea .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 250px;
    height: 45px;
    cursor: pointer;
    padding: 1.4em 1.5em;
    text-align: center;
    background: #003280;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
    position: relative;
    border: none;
    font-size: 90%;
}

#form .formArea .btnArea .btn:hover {
    opacity: 0.8;
}

#form .formArea .formBox.last {
    margin-bottom: 3em;
}

#form .formArea textarea {
    width: 100%;
    box-sizing: border-box;
    border: none;
    padding: 1em;
}

/* ── エラー表示 ── */
.errorArea {
    max-width: 750px;
    margin: 20px auto;
    padding: 15px 20px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

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

.errorArea ul li {
    color: #c0392b;
    font-size: 14px;
    line-height: 1.8;
}

/* ── 確認画面 ── */
#form .formArea .confirmBox {
    max-width: 650px;
    margin: 0 auto;
}

#form .formArea .confirmItem {
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
}

#form .formArea .confirmItem:first-child {
    border-top: 1px solid #ccc;
}

#form .formArea .confirmLabel {
    font-weight: bold;
    color: #003280;
    margin-bottom: 5px;
    font-size: 14px;
}

#form .formArea .confirmValue {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

#form .formArea .btnArea {
    margin-top: 30px;
    gap: 20px;
}

#form .formArea .btnArea .btnBack {
    background: #888;
}

/* ── 完了画面 ── */
.completeArea {
    padding: 50px;
    text-align: center;
}

.completeMessage {
    font-size: 20px;
    font-weight: bold;
    color: #003280;
    margin-bottom: 20px;
}

.completeArea p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.completeArea .btnArea {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.completeArea .btnArea .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 250px;
    height: 45px;
    cursor: pointer;
    padding: 1.4em 1.5em;
    text-align: center;
    background: #003280;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    font-size: 90%;
}

.completeArea .btnArea .btn:hover {
    opacity: 0.8;
}
