
:root {
    --primary: #0600a3;
    --secondary: #E0E0E0;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9F9F9;
    --bg-tertiary: #F0F0F0;
    --text-default: #263238;
    --text-on-fill: #FFFFFF;
    --text-gray: #808080;
    --shd: rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark){
    :root{
        --secondary: #2F2F2F;
        --bg-primary: #1A1A1C;
        --bg-secondary: #202020;
        --bg-tertiary: #414143;
        --text-default: var(--text-on-fill);
        --shd: rgba(255,255,255,0.2)
    }
}

* {
    margin: 0;
    padding: 0;
    color: var(--text-default);
    font-family: "Hiragino Kaku Gothic Pro", "Noto Sans CJK JP", Meiryo, "Yu Gothic", "MS Gothic", sans-serif;
}

html{
    overflow: auto;
    scroll-behavior: smooth;
}


.link::before {
    content: '';
}

.link {
    font-weight:bold;
}

.link::after{
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url(/assets/img/link-solid.svg);
    background-size: contain;
    vertical-align: middle;
}

.be_linked {
    padding-top: 70px;
    margin-top:-70px;
    box-sizing: content-box;
}

body {
    background-color: var(--bg-secondary);
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}
h1{
    font-size: min(85px, 100vw/12);
}

ul:not(li ul) {
    padding: 16px;
}

ol:not(li ol) {
    padding: 16px;
}

li ul li {
    margin: 0 0 0 1em;
    padding: 0;
}

li ol li {
    margin: 0 0 0 1em;
    padding: 0;
}

#load {
    z-index: 1000;
    width: 100%;
    height: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--primary);
    text-align: center;
    opacity: 1;
    -webkit-animation: load 2s linear;
    animation: load 2s linear;
}

#load img {
    width: min(100%, 640px);
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    opacity: 1;
    -webkit-animation: loadimg .5s linear;
    animation: loadimg .5s linear;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

@-webkit-keyframes load {
    0% {
        opacity: 1;
        height: 100vh;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        height: 100vh;
    }
}

@keyframes load {
    0% {
        opacity: 1;
        height: 100vh;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        height: 100vh;
    }
}

@-webkit-keyframes loadimg {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes loadimg {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#barcnt {
    background-color: var(--primary);
    height: 70px;
    z-index: 999;
    position: fixed;
    width: 100%;
    top: 0;
    -webkit-box-shadow: 0 4px 8px 0 var(--shd);
    box-shadow: 0 4px 8px 0 var(--shd);
}

#bar_bg {
    height: 70px;
    width: 100%;
    position: absolute;
    background-color: var(--primary);
}

#bar {
    width: clamp(80%, 800px, 100%);
    margin: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    height: 100%;
    position: absolute;
    z-index: 10;
}

#bar img {
    width: 160px;
    margin: 8px;
    -webkit-transition: ease-out;
    -o-transition: ease-out;
    transition: ease-out;
}

@media screen and (max-width: 800px) {
    #bar {
        background-color: var(--primary);
    }

    #hmbg {
        height: 100%;
        margin: 8px;
        max-height: 54px;
        aspect-ratio: 1;
        display: block !important;
        background-image: url('img/hamburg.svg');
        -webkit-filter: invert(80%);
        filter: invert(80%);
    }

    nav {
        position: absolute;
        background-color: var(--primary);
        top: 70px;
        left: 100vw;
        -webkit-transition: all .5s ease;
        -o-transition: all .5s ease;
        transition: all .5s ease;
    }

    input[type=checkbox]:checked~nav {
        -webkit-transform: translateX(-100vw);
        -ms-transform: translateX(-100vw);
        transform: translateX(-100vw);
    }

    nav {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 100% !important;
        -webkit-box-shadow: 0 4px 8px 0 var(--shd);
        box-shadow: 0 4px 8px 0 var(--shd);
    }

    nav div {
        padding: 0 !important;
        width: 100% !important;
    }

    nav .st::before {
        display: none;
    }

    nav .ed::after {
        display: none;
    }

    nav div a {
        display: block;
    }
}

#navchk,
#hmbg {
    display: none;
}

nav {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    width: min(60%, 800px);
}

nav div {
    padding-right: 0.5em;
    padding-left: 0.5em;
    line-height: 70px;
}

.nest_parent * {
    color: var(--text-on-fill);
}


@media not screen and (max-width: 800px) {
    .nest_parent {
        position: relative;
    }
    
    .nest_parent .nest_child {
        position: absolute;
        top: 70px;
        max-height: 0;
        padding: 0 1em;
        visibility: hidden;
        opacity: 0;
        background-color: var(--primary);
        text-align: start;
        -webkit-transition: all .2s ease;
        transition: all .2s ease;
        margin-left: -1em;
    }
    
    .nest_parent:hover .nest_child {
        top: 70px;
        max-height: 100vh;
        visibility: visible;
        opacity: 1;
        line-height: 70px;
    }
}


@media screen and (max-width: 800px) {
    .nest_parent .nest_child {
        max-height: 0;
        visibility: hidden;
        opacity: 0;
        border: solid 4px var(--text-gray);
        background-color: hsl(242, 100%, 20%);
        
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-transition: all .2s ease;
        transition: all .2s ease;
    }

    .nest_parent:hover p:after {
        content: "▼";
        padding-left: 4px;
    }
    
    .nest_parent:hover .nest_child {
        max-height: 100vh;
        visibility: visible;
        opacity: 1;
    }

    /* hasをサポートしているブラウザは限られるが、あまり重要な所じゃないので、使う */
    nav:has(.nest_parent:hover) {
        overflow-y: auto;
    }
}


nav a{
    color: var(--text-on-fill);
    white-space: nowrap;
}

.to77th {
    background-color: #000;
}

.to77th a {
    color: white;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#a3c0e3), to(#a3c0e3));
    background-image: linear-gradient(#a3c0e3, #a3c0e3);
}

@media screen and (max-width: 600px) {
    #banner {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

#banner {
    width: 100%;
    top: 70px;
    right: 0;
}

#banner * {
    vertical-align: middle;
}

#banner img {
    height: 70px;
    margin-bottom: 2px;
}

a {
    color: var(--text-default);
    text-decoration: none;
    background-image: -webkit-gradient(linear, left top, left bottom, from(lightgray), to(lightgray));
    background-image: linear-gradient(lightgray, lightgray);
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    -webkit-transition: .2s linear;
    -o-transition: .2s linear;
    transition: .2s linear;
}

a:hover {
    background-size: 100% 2px;
}

.un_effect {
    text-decoration: none;
    background-image: none;
}

main {
    background-color: var(--bg-primary);
    max-width: 1080px;
    margin: auto;
    padding: 10px;
    min-height: 100vh;
    text-align: center;
}

section {
    max-width: 640px;
    margin: auto;
}

.button {
    background-color: var(--primary);
    margin: 4px;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: none;
    outline: none;
       /* パッディング(ボタン内側の余白)の設定 上下10px、左右16px */
   padding: 10px 16px;
   border-radius: 4px;
   /* ボタンに影をつける */
   box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12);
   /* 影をふわっと表示させる */
   transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
   
   color: var(--text-on-fill);
   text-align: center;
}

.button * {
    color: var(--text-on-fill);
    text-align: center;
}

#spacer{
    height: 70px;
}


footer {
    background-color: var(--primary);
    line-height: 40px;
}

.social-sns {
    margin: 0 auto;
    width: max-content;
    display: flex;
}

@media screen and (max-width: 700px) {
    .social-sns {
        display: block;
    }
}
.social-link {
    margin: 0 8px;
   	vertical-align: middle;
   	list-style: none;
}

footer * {
    color: var(--text-on-fill);
    font-size: small;
}

.social-link img {
    height: 24px;
	  vertical-align: middle;
}

.lum-lightbox {
    z-index: 9999;
}