@charset "UTF-8";

/*********************************
preset variables
*********************************/
:root {
    --fontSize: 16px;
    --linkColor: #3562a0;
    --textColor: #333;
    /* color preset */
    --mainColor: #0F547D;
    --mainLightColor: #e4f2fa;
    --subColor: #00a3a3;
    --subLightColor: #19bebe;
    /* width preset */
    --spacing: 1rem;
    --contentWidth: 1200px;
}

/*************************************
* START header
*************************************/
header {
    background: var(--mainColor);
    padding: 3rem 1rem;
    text-align: center;
}

header h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

header p {
    color: #e0e0e0;
    font-size: 1.3rem;
}

/*************************************
* END header START main
*************************************/
main {
    padding: 2rem 0;
}

pre {
    white-space: pre-wrap;
}

main h2 {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.error-box {
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 1rem;
}

.error-box p {
    margin-bottom: 0;
}

.errmsg {
    color: red;
    font-weight: 700;
}

.bold {
    font-weight: bolder;
}

.red {
    color: #e63946;
}

.box-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

input.button {
    padding: .5rem 1rem;
    background: var(--subColor);
    color: #fff;
}

input.button:hover {
    background: var(--subLightColor);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

dl.confirm-arr {
    display: grid;
    grid-template-columns: 350px 1fr;
    border: 2px solid #333;
    row-gap: 1px;
}

dl.confirm-arr dt {
    grid-column: 1;
    padding: .5rem 1rem;
    background: #333;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

dl.confirm-arr dt:nth-of-type(2n) {
    background: var(--mainColor);
}

dl.confirm-arr dd {
    grid-column: 2;
    padding: .5rem 1rem;
    background: #eee;
}

dl.confirm-arr dd:nth-of-type(2n) {
    background: var(--mainLightColor);
}

/** 入力画面用 */
span.need {
    padding: .2rem .8rem;
    margin-left: 1rem;
    display: inline-block;
    background: #c94d00;
    color: #fff;
    font-size: .8rem;
    line-height: 1rem;
}

.mailform dl {
    display: grid;
    grid-template-columns: minmax(300px, 400px) 1fr;
    border: 2px solid #333;
    row-gap: 1px;
}

.mailform dl dt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    grid-column: 1;
    padding: .5rem 2rem .5rem 2rem;
    background: #333;
    color: #fff;
    font-weight: 700;
    text-align: left;
}

.mailform dl dt:nth-of-type(2n) {
    background: var(--mainColor);
}

.mailform dl dt>.red {
    font-size: .8em;
    white-space: nowrap;
}

.mailform dl dt .small {
    font-size: .9em;
    font-weight: normal;
    line-height: 1.4;
    color: #eeeeee;
}

.mailform dl dd {
    grid-column: 2;
    padding: .5rem 1rem;
    background: #eee;
}

.mailform dl dd:nth-of-type(2n) {
    background: var(--mainLightColor);
}

.mailform .box {
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.3rem;
    box-shadow: 0 0 2px 1px rgb(0 0 0 / 8%) inset;
    display: block;
    font-size: .95rem;
    line-height: 1.4;
    padding: 0.3rem 0.5rem;
    width: 100%;
    transition: .2s border;
}

.mailform .box.narrow {
    display: inline-block;
    width: auto;
}

.mailform .box:focus {
    border: 1px solid var(--mainColor);
}

.mailform select.box {
    position: relative;
    appearance: menulist;
}

.mailform label.check>input {
    display: none;
}

.mailform label.check {
    display: inline-block;
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.4;
    cursor: pointer;
}

.mailform label.check::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #ccc;
    background: #fff;
    position: absolute;
    top: .25rem;
    left: .3rem;
}

.mailform label.check::after {
    content: "";
    display: inline-block;
    width: .5rem;
    height: 1rem;
    position: absolute;
    top: .1rem;
    left: .7rem;
    border-bottom: 4px solid #c94d00;
    border-right: 4px solid #c94d00;
    transition: .1s ease-out;
    transform: translate(-.2rem, .2rem) rotate(-100deg) scale(.5);
    opacity: 0;
}

.mailform input:checked+label.check::after {
    transform: rotate(45deg);
    opacity: 1;
}

.flex-center {
    display: flex;
    justify-content: center;
}

/*************************************
* END main START footer
*************************************/
footer {
    padding: 2rem 1rem;
    color: #999;
    text-align: center;
}

/*************************************
* END footer START only for sp
*************************************/
@media only screen and (max-width: 850px) {
    .sp-hide {
        visibility: hidden;
        opacity: 0
    }

    .sp-visible {
        visibility: visible;
        opacity: 1
    }

    .sp-none {
        display: none !important
    }

    .rdx-btn {
        display: block
    }

    dl.confirm-arr,
    .mailform dl {
        display: block;
        border: none;
    }

    dl.confirm-arr dd,
    .mailform dl dd {
        margin-bottom: 1rem;
    }

}

/*************************************
* END only for sp START only for pc
*************************************/
@media print,
screen and (min-width: 850px) {
    .pc-hide {
        visibility: hidden;
        opacity: 0
    }

    .pc-visible {
        visibility: visible;
        opacity: 1
    }

    .pc-none {
        display: none !important
    }

}