@CHARSET "utf8";

body {
    margin:0;
    overflow-y:scroll;
    line-height: 1.8em;
}
header {
    margin:3em 0;
}
header .logo {
    background-image: url(../img/logo.svg);
    background-repeat: no-repeat;
    background-size: contain;
    max-width: 460px;
    width: 100%;
    height: 80px;
    margin: auto;
}
footer {
    margin:3em 0 1em;
    text-align: center;
}
a {
    word-break: break-all;
}
a,
a:visited {
    color: blue;
}
.sp {
    display: none;
}
.main {
    min-width: 600px;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    position: relative;
}

h1 {
    text-align: center;
    margin: 2em 0;
}

.description {
    display: inline-block;
    width: calc(100% - 280px - 6em);
    position: relative;
    padding-right: 2em;
}
.description.single {
    width: 100%;
}
.description ol {
    margin: 2.5em 0;
    font-weight: bold;
}
.description ol p {
    font-weight: bold;
}
.description ol ul {
    font-weight: bold;
}
.description ol li {
    margin-top: 1em;
}
.description ol li:nth-child(1) {
    margin-top: 0;
}
.description .dl {
    margin-top: 0.5em;
}
.description .dl .textbookthumbnail {
    display: inline-block;
    width: 15%;
    vertical-align: top;
}
.description .dl .downloadlink {
    display: inline-block;
    width: 80%;
    margin-left: 2%;
    vertical-align: top;
}
.description .dl .downloadlink .text {
    display: inline-block;
    margin-left: 1.3em;
    position: relative;
    line-height: 1.3em;
    margin-top: 0.2em;
}
.description .dl .downloadlink .text:before {
    content: '※';
    display: block;
    position: absolute;
    left: -1.3em;
}
.inputform {
    border: 1px solid;
    border-radius: 1em;
    padding: 1em;
    max-width: 280px;
    min-width: 280px;
    vertical-align: top;
    display: inline-block;
    position: relative;
}
.inputform p {
    margin: 1em 0;
    font-weight: bold;
    text-align: center;
}
.inputform label {
    display: inline-block;
    margin-top: 1em;
}
.inputform input,
.inputform select {
    width: calc(100% - 1em);
    padding: 0.5em;
    border-radius: 0.5em;
    border-width: 1px;
}
.inputform input[type="radio"],
.inputform input[type="checkbox"] {
    width: auto;
    margin: 0 0.5em 0 2em;
}
.inputform input[readonly] {
    background-color: #ddd;
}
.inputform button {
    border: 1px solid #000;
    border-radius: 0.5em;
    padding: 0.5em 1.5em;
    text-align: center;
    margin: 1em auto;
    display: block;
    font-weight: bold;
    background: #008cff;
    color: #fff;
    letter-spacing: 0.2em;
}
.inputform button:hover {
    /*filter: drop-shadow(1px 1px 1px #008cff);*/
    filter: drop-shadow(1px 1px 1px #777);
}
.inputform button:active {
    transform: translate(1px, 1px);
    filter: drop-shadow(0px 0px 0px #fff);
    border-bottom: 1px solid #888;
    border-right: 1px solid #888;
}
.inputform #result {
    display: none;
    color: #00a;
}
.inputform #result #mailaddr {
    color: #0000FF;
    border-bottom: 1px solid #333;
}
.inputform #Gakunen,
.inputform #YoteiNinsu {
    width: 5em;
    margin-right: 0.3em;
}

@media screen and (max-width: 767px) {
    body {
        font-size: 16px;
    }
    header .logo {
        width: 80%;
        height: 55px;
    }
    .sp {
        display: inline-block;
    }
    .main {
        min-width: auto;
        max-width: max-content;
    }
    h1 {
        margin: 1em 0;
        font-size: 1.5rem;
    }
    .description,
    .description.single {
        display: block;
        width: 90%;
        margin: 0 auto 2em;
        padding: 0;

    }

    .inputform {
        display: block;
        width: calc(90% - 2em);
        margin: 0 auto;
        padding: 1em;
        max-width: unset;
        min-width: unset;
    }

    .inputform input,
    .inputform select,
    .inputform button {
        font-size: 16px;
    }
}