/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team. */

/* ==========================================================================
 * Base styles: opinionated defaults
 * ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design. */

::-moz-selection,
::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https: */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles. */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas. */

textarea {
    resize: vertical;
}

/* ==========================================================================
 * Browser Upgrade Prompt
 * ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
 * Author's custom styles
 * ========================================================================== */

html {
    font-size: 62.5%;
}

body {
    -webkit-text-size-adjust: 100%;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "游ゴシック Medium", "Yu Gothic Medium", "ヒラギノ角ゴ ProN W3", Hiragino Kaku Gothic ProN, Arial, "メイリオ", Meiryo, sans-serif;
    font-size: 16px;
    font-size: 1.6rem;
    line-height: 1.5;
}

body * {
    box-sizing: border-box;
}

body *::before,
body *::after {
    box-sizing: border-box;
}

a {
    color: #1a0dab;
    opacity: 1;
    transition: opacity 300ms ease-in-out;
}

a:hover ,
button:hover {
    opacity: .6;
}

input[type="submit"],
input[type="reset"],
input[type="button"] {
    border-radius: 0;
    -webkit-box-sizing: content-box;
    -webkit-appearance: button;
    appearance: button;
    border: none;
    box-sizing: border-box;
    cursor: pointer;
}

input[type="file"] {
    cursor: pointer;
}

button {
    border-radius: 0;
    -webkit-box-sizing: content-box;
    -webkit-appearance: button;
    appearance: button;
    border: none;
    box-sizing: border-box;
    cursor: pointer;
    opacity: 1;
    transition: opacity 300ms ease-in-out;
}

button::-webkit-search-decoration {
    display: none;
}

button::focus {
    outline-offset: -2px;
}

input[type="submit"]::-webkit-search-decoration,
input[type="reset"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
    display: none;
}

input[type="submit"]::focus,
input[type="reset"]::focus,
input[type="button"]::focus {
    outline-offset: -2px;
}

img {
    max-width: 100%;
    height: auto;
}

#header{
    width: 1000px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

#header h1{
    margin: 0;
    padding-top: 10px;
    line-height: 1;
}

#header h1 a {
    display: block;
    width: 210px;
    color: #333;
    font-family: Georgia, "游明朝体", "YuMincho", "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN W3", HiraMinProN-W3, "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
    text-align: center;
    text-decoration: none;
}

#header h1 a span{
    display: block;
    margin-top: 10px;
    font-size: 1.8rem;
    letter-spacing: 3px;
}

#header h2{
    position: relative;
    margin: 50px 0 0 0;
    padding-left: 1.3em;
    border-bottom: solid 3px #e7958e;
    font-size: 3.2rem;
    font-weight: normal;
}

#header h2::before {
    font-family: 'Font Awesome 5 Free';
    content: '\f303';
    position: absolute;
    padding: 0;
    color: #84b4d9;
    left: 0;
    top: 50%;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-weight: bold;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

#header h2::after {
    position: absolute;
    content: '';
    display: block;
    border-bottom: solid 3px #84b4d9;
    left: 0;
    bottom: -3px;
    width: 40%;
}

#content {
    width: 1000px;
    max-width: 100%;
    margin: 40px auto;
    padding: 0 10px;
}

#footer {
    padding: 40px 0;
    background: #000;
    color: #fff;
    text-align: center;
    font-size: 1.4rem;
}

#footer a {
    color: #fff;
}

#footer > p {
    margin: 0;
}

.message{
    position: relative;
    width: 600px;
    max-width: 90%;
    margin: 40px auto;
    padding: 20px;
    border-top: solid 2px #84b4d9;
    border-bottom: solid 2px #84b4d9;
    text-align: center;
}

.message.error{
    border-top-color: #e7958e;
    border-bottom-color: #e7958e;
}

.message::before,
.message::after{
    content: '';
    position: absolute;
    top: -7px;
    width: 2px;
    height: -webkit-calc(100% + 14px);
    height: calc(100% + 14px);
    background-color: #84b4d9;
}

.message.error::before,
.message.error::after{
    background-color: #e7958e;
}

.message::before {
    left: 7px;
}
.message::after {
    right: 7px;
}


.entries.form input[type="text"],
.entries.form input[type="tel"],
.entries.form input[type="email"],
.entries.form input[type="date"],
.entries.form input[type="number"],
.entries.form input[type="file"],
.entries.form input[type="password"],
.entries.form select{
    flex: 1;
    width: 100%;
    height: 40px;
    padding: 0 10px;
    line-height: 40px;
}

.entries.form textarea {
    flex: 1;
    width: 100%;
    height: 140px;
    padding: 10px;
}

.entries.form input[type="file"]{
    width: auto;
    max-width: 100%;
}

.entries.form .input.radio > label:not(:nth-of-type(1)){
    margin-left: 15px;
}

label > input[type="checkbox"],
label > input[type="radio"]{
    margin-right: 5px;
}

.entries.form form p.required::after,
.entries.form form div.required > label::after{
    content: '必須';
    display: inline-block;
    float: right;
    padding: 5px;
    background: #f33;
    color: #fff;
    line-height: 1;
}

.entries.form form > p{
    margin: 40px 0 10px 0;
}

.entries.form form > fieldset{
    border: solid 1px #ccc;
    padding: 10px;
}

.entries.form form > fieldset > div:not(:nth-of-type(1)) > div:nth-of-type(1){
    margin-top: 30px;
}

.entries.form form > fieldset > div > div:nth-of-type(1) > p{
    padding-left: 10px;
    border-left: solid 10px rgba(132, 180, 217, .3);
}

.entries.form .name{
    display: flex;
}

.entries.form .name > div:nth-of-type(1){
    width: 50%;
    padding-right: 5px;
}

.entries.form .name > div:nth-of-type(2){
    width: 50%;
    padding-left: 5px;
}

.entries.form .birthdate > div > select{
    width: auto;
}

.entries.form .birthdate > div > select:nth-of-type(2){
    margin: 0 10px;
}

.entries.form .address > div,
.entries.form .experiment > div{
    margin-top: 10px;
}

.entries.form .period select{
    width: auto;
}

.entries.form .period{
    flex: 1;
    width: 100%;
}

.entries.form .period > div{
    display: inline-block;
}

.entries.form .period > div:nth-of-type(3){
    margin-top: 10px;
}

.entries.form .period > div > span{
    display: inline-block;
    margin: 0 5px;
}

.entries.form .income{
    flex: 1;
    width: 100%;
}

.entries.form .income > div{
    max-width: 80%;
}

.entries.form .income::after{
    content: '万円';
    display: inline-block;
    margin: 0 5px;
}

.entries.form .income > div,
.entries.form .income input[name="income"]{
    display: inline-block;
    width: auto;
}

.entries.form .preferred > div:not(:nth-of-type(1)),
.entries.form .resume > div:not(:nth-of-type(1)){
    margin-top: 10px;
}

.entries.form .policy > p{
    margin: 40px 0 10px;
}

.entries.form .policy > div{
    height: 200px;
    margin: 10px 0;
    padding: 0 5px;
    border: solid 1px #ccc;
    background: #fff;
    overflow: auto;
}

.entries.form button[type="submit"]{
    display: block;
    width: 280px;
    height: 60px;
    margin: 40px auto;
    text-align: center;
    line-height: 60px;
    background: #00885a;
    color: #fff;
}

.entries.form form div.required > label[for="acceptance"]::after{
    float: none;
}

.entries.form form .appointment-box select{
    display: inline-block;
    width: auto;
    margin-left: 10px;
}

.entries.form form .appointment-box > div:not(:nth-of-type(1)){
    margin-top: 10px;
}

.entries.form form .appointment-box div > label{
    display: block;
}

.entries.form form .appointment-box div.required > label::after{
    display: none;
}

.entries.form form input.acceptance{
    margin-top: 10px;
}

.calendar{
    max-width: 960px;
    min-width: 300px;
    margin: 2.0833% auto;
}

.calendar > div{
    position: relative;
    padding-bottom: 100%;
    height: 0;
}

.calendar iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}


.error-message{
    position: relative;
    display: inline-block;
    margin-top: 5px;
    padding: 2px 10px;
    background: #f33;
    color: #fff;
}

.error-message::before{
    content: '※';
}

.error-message::after{
    content: '';
    position: absolute;
    top: -20px;
    left: 20px;
    border: 5px solid transparent;
    border-bottom: 20px solid #f33;
}

#page-nav{
    margin-bottom: 10px;
}

#page-nav > ul{
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

#page-nav > ul > li{
    display: inline-block;
}

#page-nav > ul > li > a{
    display: inline-block;
    position: relative;
    padding-left: 1.3em;
    text-decoration: none;
}

#page-nav > ul > li > a::before{
    font-family: 'Font Awesome 5 Free';
    content: '\f101';
    position: absolute;
    padding: 0;
    left: 0;
    top: 50%;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-weight: bold;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

/* ==========================================================================
 * Helper classes
 * ========================================================================== */

/*
 * Hide visually and from screen readers */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https: */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
    /* 1 */
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https: */

/*
 * Hide visually and from screen readers, but maintain layout */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements. */

.clearfix:before {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
}

.clearfix:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
    clear: both;
}

/* ==========================================================================
 * EXAMPLE Media Queries for Responsive Design.
 * These examples override the primary ('mobile first') styles.
 * Modify as content requires.
 * ========================================================================== */

@media only screen and (min-width: 769px) {
    /* Media Queries */

    .entries.form form > fieldset{
        padding: 0;
    }

    .entries.form form > fieldset > div{
        display: flex;
        border-bottom: solid 1px #ccc;
    }

    .entries.form form > fieldset > div:nth-last-of-type(1){
        border-bottom: none;
    }

    .entries.form form > fieldset > div:not(:nth-of-type(1)) > div:nth-of-type(1){
        margin-top: 0;
    }

    .entries.form form > fieldset > div > div:nth-of-type(1){
        display: flex;
        width: 200px;
        padding: 0 10px;
        background: rgba(132, 180, 217, .1);
        flex-direction: column;
        justify-content: center;
    }

    .entries.form form > fieldset > div > div:nth-of-type(1) > p{
        margin: 0;
        padding-left: 0;
        border-left: none;
    }

    .entries.form form > fieldset > div > div:nth-of-type(2){
        flex: 1;
        padding: 10px;
    }

    .entries.form .address > div,
    .entries.form .experiment > div{
        display: flex;
    }

    .entries.form .address > div:nth-of-type(1),
    .entries.form .experiment > div:nth-of-type(1){
        margin-top: 0;
    }

    .entries.form .address > div > label,
    .entries.form .experiment > div > label{
        width: 160px;
        padding: 5px 10px 0 0;
    }

    .entries.form .address > div > input,
    .entries.form .address > div > select,
    .entries.form .experiment > div > select{
        flex: 1;
    }

    .entries.form .period > div:nth-of-type(3){
        margin-top: 0;
    }

    .entries.form .period > div > select{
        width: auto;
    }

    .entries.form .period > br{
        display: none;
    }

    .entries.form form .appointment-box div > label{
        display: inline-block;
    }

    .calendar > div{
        padding-bottom: 75%;
    }

}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
 * Print styles.
 * Inlined to avoid the additional HTTP request:
 * http://www.phpied.com/delay-loading-your-print-css/
 * ========================================================================== */
