* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    width: 90%;
    margin: 0 auto;
}

#container {
    margin: 10px 5px;
    padding: 0;
}

#header {
    width: 33.33%;
    margin: auto;
    min-width: 250px;
    position: relative;
}

#main {
    margin: 30px auto 20px;
    text-align: center;
    width: 70%;
}

#nav ul {
    text-align: center;
    padding: 5px;
}

#nav ul li {
    padding-top: 5px;
    padding-bottom: 5px;
    border-bottom: solid 2px grey;

}

#footer {
    background-color: lightgrey;
    padding: 30px 30px;
    text-align: center;
    margin-top: 50px;
}

h1 {
    text-align: center;
    font-size: 40px;
}

h2 {
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    display: inline-block;
    width: 70px;
    height: 5px;
    bottom: -5px;
    background-color: gray;
}

img {
    width: 100%;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    display: block;
}

.topImage {
    position: relative;
}

.topphrase {
    position: absolute;
    left: 15px;
    top: 70px;
    color: white;
    font-weight: bold;
    text-shadow: 2px 3px 0 gray;
    font-size: 1.5rem;
}

.button a,
.button input {
    color: rgb(110, 110, 110);
    padding: 5px;
    font-weight: bold;
    appearance: none;
    cursor: pointer;
    border: solid 1.5px whitesmoke;
    display: inline-block;
}

.button a:hover,
.button a:focus,
.button input:hover,
.button input:focus,
.pagebutton a:hover,
.pagebutton a:focus,
.pagebutton input:hover,
.pagebutton input:focus {
    background-color: rgb(214, 214, 214);
}

.pagebutton a,
.pagebutton input a {
    border: solid 2px black;
    border-radius: 15px;
    display: inline-block;
    min-width: 200px;
    text-align: center;
    padding: 15px;
    margin: 15px;
    box-shadow: 1px 1px 0 gray;
    font-weight: bold;
    font-size: larger;
    appearance: none;
    cursor: pointer;
    color: black;
}

.open div {
    border: solid 3px gray;
    margin: 15px auto;
    transition: 2.5s ease-out;
    opacity: 0;
    transform: translateY(30px);
}

.open div.active {
    opacity: 1;
    transform: translateY(0px);
}

.open dd {
    text-align: center;
    margin: auto;
    padding: 8px;
}

.thumbnail {
    height: calc(100vh - 5px);
    max-height: 200px;
    object-fit: cover;
}

.yotei dd {
    padding-top: 15px;
}

.yotei img {
    width: 100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 15px 10px;
}

.mark img {
    max-width: 300px;
}

.snsIcon {
    display: flex;
    justify-content: center;
    margin: 20px auto;
}

.snsIcon img {
    width: 60px;
    padding-left: 12px;
    padding-right: 12px;
    float: right;
}

.fotlist {
    padding: 15px;
}

.fotlist li {
    margin: 10px auto;
}

.fotlist a {
    color: rgb(0, 0, 0);
    border-bottom: solid 0.5px rgb(0, 0, 0);
}

.lastbutton {
    border: none;
    appearance: none;
}

.lastbutton::after {
    content: 'ページトップへ';
}

/*naiyo*/
.roots p {
    padding: 20px;
    background-color: whitesmoke;
    text-align: left;
    line-height: 2;
    text-indent: 1rem;
    margin-top: -10px;
}

.preparation {
    position: relative;
}

.preparation ul {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    min-width: 100px;
}

.preparation li,
.preparation p {
    padding: 5px;
    font-size: 1rem;
    color: black;
    text-shadow: 1px 1px 0.5px gray;
    background-color: rgba(255, 255, 255, 0.8);
}

.preparation li::before {
    content: '・';
}

.preparation img {
    filter: blur(2px);
    min-height: 250px;
}

.hajimari {
    background-color: whitesmoke;
}

.fukidashi {
    margin-bottom: 15px;
    padding-bottom: 20px;
    display: grid;
    justify-content: center;
    font-size: x-large;
    font-weight: bolder;

}

.fukidashi::before {
    content: '↓';
    font-weight: bolder;
    font-size: 30px;
}

.maker {
    color: white;
    text-align: justify;
    padding-left: 5px;
    padding-right: 5px;
    background-image: linear-gradient(to right, transparent 50%, rgb(255, 166, 0) 50%);
    background-size: 200% 1em;
    background-position: 0 .5em;
    transition: all 4s ease;
    font-weight: bold;
    background-color: bisque;
}

.maker.active {
    background-position: -100% 1em;
}

table {
    width: 90%;
    caption-side: bottom;
    margin: auto;
}

table tr {
    height: 50px;
}

table caption {
    padding-top: 5px;
    padding-bottom: 15px;
    text-align: end;
}

.profile {
    margin-bottom: 25px;
    display: inline-block;
}

.profile dt {
    margin: 0px;
    padding: 5px;
    font-weight: bolder;
}

.profile dd {
    border-bottom: solid 2px gray;
    padding: 8px;
    margin: 0px;
}

/*otoiawase*/

.selectpage {
    border: solid 2px gray;
    padding: 5px;
}

.selectpage p {
    font-weight: bold;
    margin-top: 30px;
    font-size: 30px;
}

.selectpage img {
    width: 50px;
    padding-right: 5px;
}

.botanset {
    margin: 20px auto;
}

.botanset a {
    display: flex;
    align-items: center;
}

/*sub*/
.question {
    font-size: 40px;
}

.question::after {
    background-color: #AF1717;
}

.gimon {
    text-align: left;
    margin-bottom: 30px;
}

.gimon p {
    border-bottom: solid 1px #AF1717;
    margin-bottom: 10px;
}

.gimon input,
.gimon select {
    width: 50%;
    font-size: 20px;
}

.gimon textarea {
    width: 100%;
    font-size: 25px;
}

form .pagebutton {
    border: none;
    box-shadow: none;
    text-align: center;
    display: block;
}

form .pagebutton input {
    padding: 15px;
    font-weight: bold;
    font-size: 20px;
}

#loading {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1.0);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading img {
    width: 25%;
    height: auto;
    position: fixed;
    left: 50%;
    transform: translateX(-5%);
    animation-name: loadSlide;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.loadText {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 60%;
    font-weight: bolder;
    font-size: 0.8rem;
}

@keyframes loadSlide {
    0% {
        opacity: 0;
        transform: translateX(0%);
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
        transform: translateX(-75%);
    }
}

@-webkit-keyframes loadSlide {
    0% {
        opacity: 0;
        transform: translateX(0%);
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
        transform: translateX(-75%);
    }
}


@media(min-width:768px) {

    body {
        max-width: 1200px;
        margin: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .loadText {
        top: 66.6%;
    }

    #main {
        width: 100%;
    }

    #nav ul {
        display: flex;
    }

    #nav ul li {
        width: calc(100% / 3);
        border: solid 1px gray;
        box-shadow: 1px 1px 0 gray;
        padding: 0;
    }

    h1,
    h2 {
        margin-top: 50px;
        margin-left: 20px;
        text-align: left;
    }

    h2 {
        border-bottom: solid 3px gray;
    }

    h2::after {
        display: none;
    }

    .topImage {
        margin-top: -3px;
    }

    .topphrase {
        font-size: 2rem;
        margin-top: 100px;
        margin-left: 100px;
    }

    .button a,
    .button input {
        border: none;
        display: block;
    }

    .open {
        display: flex;
        flex-wrap: wrap;
    }

    .open div {
        width: calc(100%/3.5);
        padding: 5px;
    }

    .pagebutton {
        margin-top: 20px;
        margin-bottom: 10px;
    }

    #footer {
        display: flex;
        justify-content: center;
        position: relative;
    }

    .mark {
        padding-right: 100px;
    }

    .lastbutton {
        right: 20px;
        position: absolute;
        border: none;
    }

    .lastbutton::after {
        content: none;
    }

    /*naiyo*/
    .roots {
        display: flex;
        flex-direction: row-reverse;
    }

    .roots img {
        width: 50%;
    }

    .roots p {
        padding-right: 8px;
        margin-top: 0;
    }

    .hajimari {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        align-items: center;
    }

    .preparation {
        margin-top: 0;
        text-align: left;
        width: 50%;
    }

    .preparation li,
    .preparation p {
        padding: 8px;
        font-size: 1.25rem;
        text-align: center;
    }

    .fukidashi {
        left: 8%;
        position: relative;
        display: flex;
        justify-content: center;
        margin-bottom: 0;
        padding-bottom: 0;
        font-size: 2.5rem;
        width: 40%;
    }

    .fukidashi::before {
        content: '→';
        padding-left: 10px;
        font-size: 40px;
        position: absolute;
        top: 50%;
        left: -20%;
        transform: translateY(-50%);
    }

    .profile dt{
        float: left;
        padding: 12px 8px 8px 3rem;
    }

    .profile dd {
        padding: 12px 8px 8px 15rem;
        text-align: left;
    }

    /*otoiawase*/
    .selectpage {
        display: inline-block;
        margin: 10px;
        padding: 0;
    }

    .selectpage div {
        display: flex;
        align-items: baseline;
        justify-content: space-around;
    }

    .selectpage p {
        margin-left: 40px;
        margin-bottom: 30px;
    }

    .botanset {
        margin-right: 40px;
        width: 270px;
    }

    .botanset .pagebutton {
        margin: auto;
    }

    .selectpage p::after {
        content: '→';
        color: black;
        font-size: larger;
        margin: auto 18px;
    }

    /*sub*/
    .question {
        border-bottom: solid 2px#AF1717;
        display: inline-block;
    }

    .gimon input {
        width: 30%;
    }

    .selfor {
        display: flex;
    }

    .selfor div {
        width: calc(100%/2);
    }
}