:root {
    --break-point: 1200px;

    /* デバッグ用 */
    --debug-color-1: #f00;
    --debug-color-2: #00f;
    --debug-color-3: #ff0;
    --debug-color-4: #0ff;
    --debug-color-5: #0f0;
}

body {
    background-image: url("../resource/background.png?version=24012616");
    background-size: 60px 60px;
}

#header {
    display: block;
    position: relative;
    left: 0;
    right: 0;
    top: 0;
    width: var(--break-point);
    height: calc(var(--break-point) / 20 * 3);
    border-bottom: 2px solid black;
    overflow: hidden;
    padding: 0px;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-color: white;
    box-sizing: content-box;
    z-index: 128;
}

#header img {
    display: block;
    position: absolute;
    top: 16%;
    width: auto;
    height: 68%;
}

#wrapper1 {
    display: none; /* block */
    width: 100%;
    height: calc(var(--break-point) / 20 * 3);
}

#wrapper2 {
    display: block;
    margin: 0 auto;
    width: var(--break-point);
}

#wrapper3 {
    display: block;
    margin: 6px 12px;
}

#menu {
    position: sticky;
    width: 100%;
    top: 0; /*calc(var(--break-point) / 20 * 3 - 2px); */
    color: white;
    text-align: center;
}

#menu-button {
    display: none;
}

#pictures {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 1;
    text-align: center;
}

#pictures>img {
    position: absolute;
    display: none;
    width: auto;
    aspect-ratio : 4 / 3;
    border-radius: 6% / 8%;
}

#pictures div.hurin {
    display: inline-block;
    width: calc(100% / 3);
    height: 100%;
    text-align: center;
}

#pictures div.hurin img {
    height: 100%;
    width: auto;
    margin-top: -6px;
}

#wrapper4 {
    display: flex;
    width: 100%;
    height: auto;

    gap: 10px;
}

#content {
    background-color: ivory;
    padding: 10px;
    flex: 7;
}

#sidebar {
    background-color: ivory;
    padding: 10px;

    height: 10em;
    flex: 3;
}

#footer {
    display: block;
    width: 100%;
    background-color: rgb(7, 89, 18);
    color: ivory;
    padding: 10px;
    font-size: 9pt;
    text-align: center;
}

#footer a {
    color: ivory;
    text-decoration: none;
    text-decoration-line: ivory;
}

/* メニュー */
#menu-button {
    display: none;
    color: cornflowerblue;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    font-size: 20pt;
    font-weight: bold;

    border-bottom: 1px solid #ccc;
    background-color: #6F6;
}

#menu nav{
    border-bottom: 1px solid #ccc;
    background-color: #AFA;
}
#menu nav ul{
    display: table;
    margin: 0 auto;
    padding: 0;
    width: 80%;
    text-align: center;
}
#menu nav ul li{
    display: table-cell;
    min-width: 50px;
    border-right: 1px solid #ccc;
}
#menu nav ul li:first-child{
    border-left: 1px solid #ccc;
}
#menu nav ul li a{
    display: block;
    width: 100%;
    padding: 10px 0;
    text-decoration: none;
    color: #000000;
}
#menu nav ul li a:hover{
    background-color:#F8E750;
    border-bottom: 5px solid #F8E750;
}
#menu nav ul li.current{
    font-weight: bold;
}
#menu nav ul li.current a{
    border-bottom: 5px solid rgb(0, 180, 0);
    color: rgb(0, 180, 0);
}

h3 {
    border-left: 3pt solid green;
    background-color: #AFA;
    padding: 0.5em;
    box-shadow: 5px 5px 0 pink;
}

h4 {
    border-bottom: 2pt solid green;
    padding: 0.2em;
    text-align: center;
}

.clearfix {
    content: "";
    display: block;
    clear: both;
 }

 .left-box {
    display: block;
    float: left;
    padding: 5px;
    width: 50%;
}

.left-box img {
    width: 100%;
    height: auto;
    margin-top: 5px;
}

.right-box {
    display: block;
    float: right;
    padding: 5px;
    width: 50%;
}

.right-box img {
    width: 100%;
    height: auto;
    margin-top: 5px;
}

#top-contents {
    table-layout: fixed;
    width: 60%;
    margin: 10px 20%;
    margin-bottom: 10px;
    background-color: white;
}

#top-contents tr {
    border-top: 1pt solid #080;
    border-bottom: 1pt solid #080;
}

#top-contents td.title {
    width: 30%;
    text-align: center;
    font-weight: bold;
    border: 1pt solid #080;
    padding: 2px 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: pre-wrap;
    vertical-align: middle;
}

#top-contents td.content {
    width: 70%;
    text-align: left;
    padding: 2px 10px;
    border: 1pt solid #080;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: pre-wrap;
}

#top-contents textarea {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    resize: none;
}

/* 教室のご案内 */
div#content div.flex-boxes {
    display: flex;
    flex-wrap: wrap;    
    align-items: start;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

div.flex-boxes div {
    width: 48%;
    padding: 0.5em;
    border-radius: 0.5em;
    background-color: #CFC;
    box-shadow: 3px 3px 0 orange;
}

div.flex-boxes div div{
    box-shadow: none;
}

div.flex-boxes div .box-title {
    width: 100%;
    text-align: center;
    border-bottom: 2px solid green;
    border-radius: 1em;
    font-size: 14pt;
    font-weight: bold;
    color: green;
}
div.flex-boxes div .box-title2 {
    width: 100%;
    text-align: center;
    border-bottom: 2px solid red;
    border-radius: 1em;
    font-size: 14pt;
    color: red;
}

div.flex-boxes div .box-date {
    width: 100%;
    font-size: 10pt;
}

div.flex-boxes div .box-text {
    width: 100%;
    font-size: 12pt;
}

div.flex-boxes div .box-price {
    width: 100%;
    font-size: 10pt;
    text-align: right;
}

table.calendar {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

table.calendar th {
    border: 1px solid black;
    padding: 5px;
    font-weight: bold;
    background-color: #CCC;
}

table.calendar tr.satday {
    background-color: #eef;
}

table.calendar tr.sunday {
    background-color: #fee;
}

table.calendar td {
    border: 1px solid black;
    padding: 5px;
}

table.calendar td input[type="text"] {
    background-color: white;
    width: 100%;
}

#button-sp {
    display: none;
}

#contact {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-around;
}

#contact a {
    width: 30%;
}

#footer-sp {
    display: none;
    margin: 0;
}

#footer-sp iframe {
    display: none;
}

@media screen and (max-width: 1200px) {
    #button-sp {
        display: block;
    }

    #button-sp .button-sp-inner {
        display: flex;
        margin: 1em auto;        
        width: 90%;
        justify-content: space-around;
    }

    #button-sp .button-sp-inner img {
        width: 40vw;
    }

    #footer-sp {
        display: block;
        margin: 1em auto;;
    }

    #footer-sp iframe {
        display: inline;
    }

    #content {
        width: 100%;
    }

    #sidebar {
        display: none;
    }

    #header {
        width: 100%;
        height: auto;
        aspect-ratio: 20 / 3;
    }

    #wrapper1 {
        width: 100%;
        height: auto;
        aspect-ratio: 20 / 3;
    }

    #wrapper2 {
        width: 100%;
    }

    #menu {
        display: none;
        top: calc(100vw / 10 - 2px);
    }

    #menu-button {
        display: block;
    }

    #menu nav{
        display: none;
    }

    #menu nav ul {
        display: block;
        width: 100%;
    }

    #menu nav ul li {
        display: block;
        border-right: none;
        border-bottom: 1px solid #CCC;
        width: 100%;
    }

    #menu nav ul li:first-child {
        border-left: none;
        border-top: 1px solid #CCC;
    }

    #menu nav ul li a {
        padding: 10px;
    }

    table#top-contents {
        width: 90%;
        margin: 10px 5%;
        font-size: 8pt;
    }
}