@charset "UTF-8";

:root {
    --viewport-size: calc(100vw - 16px);
    --moon-size: calc(100vw * 0.1);
    --moon-size-half: calc(var(--moon-size) / 2);
    --button-size: calc(100vw / 5);
}

body {
    font-size: 12pt;
}

/* Body */
div#body.animate-avant {
    opacity: 0;
}

div#body.animate {
    animation: body 0.6s 0.1s cubic-bezier(.6,.04,.98,.34) 1 normal both running;
}

@keyframes body {
    
    0% {
        opacity: 0;
    }
    
    100% {
        opacity: 1;
    }
}

/* Global menu */
div#moon-menu {
    font-size: 1rem;
    padding-top: 16px;
    padding-bottom: 16px;
    height: 60px;
}

div#moon-menu ul {
    justify-content: space-between;
    margin: 0 0 0 8px;
}

div#moon-menu ul li {
    padding: 0 !important;
}

div#moon-menu ul li:first-child {
    display: none;
}

/* Top */
div#logo {
    height: auto;
    margin-bottom: 16px;
}

div#logo img {
    width: var(--viewport-size);
}

div#moon-phases {
    overflow: hidden;
    height: calc(var(--viewport-size) * 0.8);
}

div#sora {
    flex-direction: column;
    justify-content: flex-end;
    height: calc(var(--viewport-size) * 0.8);
}

div#sora div.text {
    font-size: calc(var(--viewport-size) / 19);
    margin-bottom: 2rem;
    line-height: 2rem;
}

div#moon {
    --moon-offset: calc(var(--viewport-size) / 2 + var(--moon-size) * 6.5);
    top: var(--moon-offset);
}

div#moon div.phase {
    --moon-phase-translate: 0, calc(-1 * var(--viewport-size) * 0.5 * 2.3);
    top: calc(100vw / 12);
}

div#moon > div.phase[data-pos="0"] {
    --moon-phase-scale: 2;
    display: block;
    opacity: 0.9;
}

div#moon > p {
    top: calc(var(--viewport-size) * -1 + var(--moon-size));
}

/* Section */
div.section {
    flex-direction: column;
    padding-top: 3rem;
    padding-bottom: 0;
}

div#main div.section:first-child {
    margin-top: 0;
    padding-top: 0;
}

div.section:not(:last-child) {
    padding-bottom: 1rem;
}

div.section-title {
    width: auto;
    margin: 0;
    text-align: center;
}

div.section-title > div {
    margin-bottom: 1rem !important;
}

div.section-title > div > span {
    font-size: 2.5rem;
}

div.section-contents > p {
    text-align: justify;
    font-size: 1.1rem;
}

div.section-contents > p:not(:first-child) {
    padding-top: 1.5rem;
}

div.section-contents > p br {
    display: none;
}

div.section-button {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 3px;
}

div.section-button a {
    line-height: 1.1rem;
    margin-left: auto;
    margin-right: auto;
}

/* Works */
div#works div.section-contents {
    /*flex-direction: column;*/
    justify-content: space-around;
}

div#works div.works-item {
    --works-image-width: calc(50vw - 40px);
    width: calc(50% - 20px);
    padding: 0;
}

div#works div.works-item p.title {
    margin-bottom: 20px;
}

/*
div#works div.works-item:not(:first-child) {
    padding: 2rem 0 0 0;
}
*/

div#works div.works-item works-image {
    width: calc(100% - 6px);
}

/* Flags */
div#flags div.section-title div.sticky {
    position: static;
}

div#section-flags div#flags-bear {
    flex-wrap: wrap;
    justify-content: space-between;
}

div#section-flags div#flags-bear img {
    margin: 0;
    margin-top: 8px;
    width: calc(100% / 3 - 4px);
}

div#section-flags div#flags-flag img {
    width: calc((100% - 2rem) / 2);
}

/* About */
div#about div.section-contents > p:last-of-type {
    text-align: center;
}

div#about div.section-button a,
div#profile div.section-button a,
div#map div.section-button a {
    margin: inherit; /* or 6px, inherit from div.section-button a { margin } @moon.css */
}

/* SNS */
div#sns-logo {
    margin-top: 20%;
}

/* Contact */
div#contact {
    padding-bottom: 0;
}

div#contact form {
    margin-bottom: 8px;
}

div#contact form fieldset {
    margin: 1rem 1rem 0 1rem;
    padding: 0 1rem 0 1rem;
}

div#contact form fieldset input, div#contact form fieldset textarea {
    padding: 0.3rem;
}

div#contact form fieldset input[type="submit"] {
    padding: 1rem;
    border-radius: 0;
}

div#contact div.done p {
    margin-top: 60px;
    font-size: 1.5rem;
}

/* Map */
div#map div.section-title span {
    line-height: 1.2;
}

div#map div.section-contents iframe {
    width: var(--viewport-size);
    height: var(--viewport-size);
    /*height: calc(var(--viewport-size) * 0.6);*/
    margin-bottom: 0;
}

/* Profile */
div#profile div.section-title span {
    line-height: 1.2;
}

div#profile dl {
    display: block;
    margin: 0 1rem 0 1rem;
}

div#profile dt {
    padding: 0;
    text-align: left;
    text-align-last: auto;
    font-weight: bold;
}

div#profile dd {
    padding-bottom: 1rem;
}
