@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Silkscreen:wght@400;700&display=swap");
* {
    margin: 0;
    padding: 0;
}
div,
h1,
h2,
h3,
p,
ul,
li,
input,
textarea,
table,
tr,
th,
td,
footer,
header,
nav,
section {
    box-sizing: border-box;
}
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}
a {
    text-decoration: none;
    outline: none;
}
a img {
    border-style: none;
}
ul,
li {
    list-style-type: none;
}

html {
    min-height: 100%;
    position: relative;
    font-size: 62.5%;
}
body {
    margin: 0;
    background-color: #2c2028; /* Dark background for contrast */
    background-image: linear-gradient(to right, #486b7f 1px, transparent 1px),
        linear-gradient(to bottom, #486b7f 1px, transparent 1px);
    background-size: 25px 25px; /* Grid spacing */
    color: #dccdc1;
    font-size: 1.2em; /* TEXT SIZE */
    font-family: Orbitron, Silkscreen, Verdana, Roboto, Meiryo, sans-serif;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
a:not(:has(img)) {
    color: #4cc6b6;
}
.block a:not(:has(img)) {
    display: inline-block;
}
.block a:not(:has(img)):hover {
    color: #bb474f;
}
.block a img {
    vertical-align: bottom;
}
.block a:not(:has(img))::before {
    content: "◇";
    color: #4cc6b6;
}
.block a:not(:has(img)):hover::before {
    content: "◆";
    color: #bb474f;
}
/*--------------------------------------------------------
Basic
--------------------------------------------------------*/
#wrapper {
    text-align: left;
}
#index {
    margin: 0 auto;
    width: 500px;
}
/*--------------------------------------------------------
Top
--------------------------------------------------------*/
header {
    background: #2c2028;
    /*border-bottom: 3px solid #2c2028;*/
    position: fixed;
    top: 0;
    left: 0;
    min-height: 80px;
    width: 100%;
    z-index: 10;
}
#header-inner {
    margin-bottom: 3em; /* メニュー分余白 */
    padding: 10px;
}
/*--------------------------------------------------------
Main
The sum of left and right widths cannot exceed the total width.
--------------------------------------------------------*/
#contents {
    margin: 0 auto;
    height: 100%;
    width: 1000px; /* Change the overall width and size here */
}
/* Left Side */
#leftcolumn {
    float: left;
    text-align: left;
    width: 300px;
}
/* Right Side */
#rightcolumn {
    display: inline;
    float: right;
    margin: 0;
    width: 700px;
}
.block {
    background: #2c2028;
    border: 3px inset #4cc6b6;
    border-radius: 5px;
    box-shadow: 5px 5px #486b7f;
    clear: both;
    margin: 20px 10px;
    padding: 8px;
    word-wrap: break-word;
}
#contents,
#rightcolumn,
#leftcolumn,
.block {
    box-sizing: border-box;
}
/*--------------------------------------------------------
Bottom
--------------------------------------------------------*/
footer {
    background: #2c2028;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-width: 1000px; /* Same as #contents width */
}
.footer-inner {
    padding: 10px;
    text-align: center;
}
footer a {
    color: #dccdc1;
}
/*--------------------------------------------------------
Menu
--------------------------------------------------------*/
#menu {
    border: solid #4cc6b6;
    position: absolute;
    bottom: 0;
    line-height: 1;
    text-align: center;
    width: 100%;
}
nav li {
    display: inline-block; /* Display horizontally */
    position: relative; /* Sub-menu display position reference */
    height: 2em;
    line-height: 2em; /* Menu height */
}
nav li a,
nav li span {
    color: #dccdc1;
    display: inline-block;
    padding: 0 5px;
}
nav li a:hover,
nav li span:hover {
    background: #bb474f;
    transition: 0.6s;
}
/* Sub-Menu */
.sub-menu {
    background: #4cc6b6;
    position: absolute;
    width: 200px; /* Sub-menu width */
    z-index: 20;
}
.sub-menu li {
    display: block; /* Reset horizontal layout */
    visibility: hidden; /* Hide */
    overflow: hidden; /* Hide */
    height: 0; /* Hide */
    width: 100%;
}
.sub-menu li a {
    border-bottom: 1px solid #2c2028;
    color: #2c2028;
    display: block;
}
.sub-menu li a:hover {
    background: #bb474f;
    color: #2c2028;
}
nav li:hover .sub-menu li {
    visibility: visible;
    overflow: visible;
    height: 2em;
    line-height: 2em; /* Sub-menu height */
    transition: 0.5s;
}
#open {
    display: none;
}
/*--------------------------------------------------------
Link to top of page, copyright notice
--------------------------------------------------------*/
#pagetop {
    /* Button to scroll to top; scroll.js */
    background: #486b7f; /* Background */
    border: 3px solid #4cc6b6;
    color: #dccdc1; /* Color */
    height: 60px;
    width: 60px; /* Size */
    border-radius: 30px;
    box-sizing: border-box;
    display: block;
    line-height: 20px;
    padding-top: 27px;
    position: fixed;
    text-align: center;
    z-index: 10;
}
#pagetop:before {
    content: "\25B2";
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 7px;
    width: 100%;
}
#pagetop:hover {
    background: #bb474f;
    color: #2c2028;
}
#fl a {
    display: inline-block;
    margin: 5px 0;
}
/*--------------------------------------------------------
Headings, Borders, and Lines
--------------------------------------------------------*/
h1 {
    color: #4cc6b6;
    font-size: 1.5em;
    margin: 0 0 0.5em;
}
h2 {
    background: #486b7f;
    border-radius: 6px;
    color: #dccdc1;
    font-size: 1em;
    margin: 1em 0;
    padding: 10px;
    position: relative;
}
h2::after {
    border: 8px solid transparent;
    border-top: 8px solid #486b7f;
    content: "";
    position: absolute;
    top: 100%;
    left: 30px;
    height: 0;
    width: 0;
}
h3 {
    background: #bb474f;
    border-radius: 6px;
    color: #dccdc1;
    font-weight: 400;
    margin: 1em 0;
    padding: 0 10px;
}
dt {
    border-bottom: 1px solid;
    font-weight: 700;
}
dd {
    padding: 1em;
}
em {
    background: linear-gradient(to bottom, transparent 60%, #bb474f 0%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
input,
textarea {
    background: #486b7f;
    border: 1px dotted #4cc6b6;
    color: #dccdc1;
    margin: 3px 0;
    width: 200px;
}
textarea {
    height: 50px;
}
hr {
    display: block;
    border: 0;
    border-top: 1px solid #4cc6b6;
    margin: 1em 0;
    padding: 0;
    height: 1px;
}
.marker {
    background: #fcd097;
    color: #2c2028;
    padding: 1px 5px;
}
.dcline {
    border-left: 5px solid #fcd097;
    margin: 5px 0;
    padding: 3px;
}
.textbox {
    border: 1px solid;
    margin: 10px 0;
    padding: 3px;
    text-align: center;
}
.title {
    color: #bb474f;
    font-size: 1.5em;
    font-weight: 700;
    margin: 2em 0;
    text-align: right;
}
.txt {
    border-left: 1px dotted;
    color: #fcd097;
    margin: 1em;
    padding: 0 0 0 1em;
}
.frame {
    border: double #4cc6b6;
    border-radius: 3px;
    padding: 5px;
}
.cf:before,
.cf:after {
    content: " ";
    display: table;
}
.cf:after {
    clear: both;
}
/*--------------------------------------------------------
For smartphones and tablets
Switch at 600px width
--------------------------------------------------------*/
@media screen and (max-width: 600px) {
    body {
        font-size: 1.3em;
    }
    header {
        border-bottom: 20px solid #4cc6b6;
        position: relative;
    }
    #header-inner {
        margin-bottom: 0;
    }
    h1 {
        line-height: 1;
        min-height: 40px;
        padding-right: 50px;
    }
    #index h1 {
        min-height: inherit;
        padding-right: 0;
    }
    #contents {
        margin: 0 auto 50px auto;
        width: 100%;
    }
    #leftcolumn,
    #rightcolumn {
        float: none;
        width: 100%;
    }
    #rightcolumn {
        margin-left: 0;
    }
    header,
    footer {
        min-width: 100%;
    }
    .block a:not(:has(img)) {
        display: inline-block;
    }
    .block a:not(:has(img)):hover {
        color: #bb474f;
    }
    .block a img {
        vertical-align: bottom;
    }
    .block a:not(:has(img))::before {
        content: "◇";
        color: #4cc6b6;
    }
    .block a:not(:has(img)):hover::before {
        content: "◆";
        color: #bb474f;
    }
    #fl a {
        color: #dccdc1;
        background: #486b7f;
        border-radius: 5px;
    }
    #index {
        width: auto;
    }
    /* 画像の縮小表示 */
    img {
        max-width: 100%;
        height: auto;
    }
/*--------------------------------------------------------
Menu for smartphones and tablets
--------------------------------------------------------*/
    /* Menu */
    #menu {
        background: #4cc6b6; /* Menu background color */
        display: none;
        left: 0;
        bottom: inherit;
        text-align: left;
        z-index: 20;
    }
    nav li {
        display: block; /* Cancel horizontal alignment */
        height: auto;
        line-height: inherit; /* Reset Height */
    }
    nav li a,
    nav li span {
        color: #2c2028;
        display: block;
        position: relative;
        padding: 15px 20px; /* Adjust link spacing and row height */
    }
    nav li a:hover,
    nav li span:hover {
        background: #bb474f;
        color: #2c2028;
    }
    /* Sub-Menu */
    .sub-menu {
        background: none;
        position: static;
        display: none; /* Hide */
        width: 100%;
        z-index: auto;
    }
    .sub-menu li {
        display: inline-block; /* If you want to do it for each row, delete this */
        visibility: visible; /* Reset */
        overflow: visible; /* Reset */
        height: auto; /* Height Reset */
        width: 50%; /* 一列ごとにするならここを削除 */
    }
    .sub-menu li a {
        border-bottom: 0;
        color: #2c2028;
    }
    .sub-menu li a:after {
        display: none;
    }
    nav li:hover .sub-menu li {
        height: auto;
        line-height: inherit; /* Height Reset */
    }
    nav li span:after {
        border-top: 3px solid #2c2028; /* Menu ">" color */
        border-right: 3px solid #2c2028; /* Menu ">" color */
        content: "";
        display: block;
        margin-top: -5px;
        position: absolute;
        top: 50%;
        right: 10px;
        height: 5px;
        width: 5px;
        -ms-transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        transition: 0.2s;
    }
    nav li span.open:after {
        -ms-transform: rotate(135deg);
        -webkit-transform: rotate(135deg);
        transform: rotate(135deg);
    }
    /* Open menu button */
    #open {
        display: inline-block;
        margin: 0 5px;
        position: absolute;
        height: 40px;
        width: 40px; /* Size */
        top: 10px;
        right: 10px; /* Position */
    }
    #open-icon,
    #open-icon:before,
    #open-icon:after {
        background: #fff; /* Line Color */
    }
    #open-icon {
        display: block;
        margin: -1px 0 0 -10px;
        position: absolute;
        top: 50%;
        left: 50%;
        height: 2px;
        width: 20px;
    }
    #open-icon:before,
    #open-icon:after {
        content: "";
        display: block;
        position: absolute;
        top: 50%;
        left: 0;
        height: 2px;
        width: 20px;
        transition: 0.3s;
    }
    #open-icon:before {
        margin-top: -8px;
    }
    #open-icon:after {
        margin-top: 6px;
    }
    #open .close {
        background: transparent;
    }
    #open .close:before,
    #open .close:after {
        margin-top: 0;
    }
    #open .close:before {
        -ms-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    #open .close:after {
        -ms-transform: rotate(-135deg);
        -webkit-transform: rotate(-135deg);
        transform: rotate(-135deg);
    }
}