/*
Theme Name: Solarsail
Theme URI:
Author: Motoki Nakagawa
Description: wordpress base theme
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
}

body {
    color: #333;
    display: flex;
    flex-flow: column;
    min-height: 100vh;
    font-family: 'BIZ UDPGothic', sans-serif;
}

main {
    flex: 1;
}

p {
    line-height: 1.6em;
}

dt {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

dd {
    line-height: 1.6rem;
}

.content article table {
    margin-top: 20px;
    width: 60%;
}

.content article th {
    background-color: #333;
    color: #eee;
    padding: 15px;
}

.content article td {
    padding: 10px;
    width: 50%;
}

.content article td:first-child {
    padding: 10px;
    width: 50%;
    font-weight: bold;
}

.content article tr {
    border-bottom: 1px solid #333;
}

.content article tr:nth-child(2n) {
    background-color: #dadada;
}

.hero {
    width: 100%;
    height: 20vh;
    background-color: #333;
    border-radius: 0 0 20px 20px;
    color: #eee;
    filter: drop-shadow(0px 5px 5px rgba(190, 190, 190, 0.8)) drop-shadow(0px 10px 5px rgba(190, 190, 190, 0.8));
}

#header-title {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 5px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#header-title h1 {
    font-size: 40px;
}

#helo-logo {
    height: 80px;
    position: relative;
    top: -20px;
    left: 10px;
}

#header {
    padding: 20px 20px 10px 20px;
    background-color: #333;
    border-radius: 0 0 20px 20px;
    color: #eee;
    filter: drop-shadow(0px 5px 5px rgba(190, 190, 190, 0.8)) drop-shadow(0px 10px 5px rgba(190, 190, 190, 0.8));
}

#header a {
    color: #eee;
    text-decoration: none;
    transition: all 0.5s;
}

.header-container {
    display: flex;
    justify-content: space-between;
}

.header-container div {
    display: flex;
    justify-content: center;
}

.header-container div:first-child {
    justify-content: flex-start;
    padding-top: 5px;
}

.header-container div:last-child {
    justify-content: flex-end;
}

.header-logo {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 5px;
    font-size: 20px;
    font-weight: 600;
}

.header-logo-img {
    height: 20px;
    position: relative;
    top: -30px;
    left: 240px;
}

#header a:hover {
    color: rgb(110, 156, 255);
}

.header-search-form {
    justify-content: flex-end;
}

/****************************
 * ハンバーガーメニューボタン
 ***************************/
.menu-trigger,
.menu-trigger span {
    display: inline-block;
    transition: all 0.4s;
    box-sizing: border-box;
}

#menu-button {
    display: none;
}

.menu-trigger {
    position: relative;
    width: 25px;
    height: 22px;
    background: none;
    border: none;
    appearance: none;
    cursor: pointer;
}

.menu-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
}

.menu-trigger span:nth-of-type(1) {
    top: 0;
}

.menu-trigger span:nth-of-type(2) {
    top: 10px;
}

.menu-trigger span:nth-of-type(3) {
    bottom: 0;
}

#menu-button.active span:nth-of-type(1) {
    transform: translateY(10px) rotate(-45deg);
}

#menu-button.active span:nth-of-type(2) {
    left: 50%;
    opacity: 0;
    animation: active-menu-button-bar02 0.8s forwards;
}

@keyframes active-menu-button-bar02 {
    100% {
        height: 0;
    }
}

#menu-button.active span:nth-of-type(3) {
    transform: translateY(-10px) rotate(45deg);
}

@media (max-width: 900px) {
    #header {
        padding: 20px 20px 0px 20px !important;
    }

    #menu-button {
        position: relative;
        top: 5px;
        display: block;
        left: calc(100% - 30px);
    }

    #header-title h1 {
        font-size: 25px !important;
    }

    #helo-logo {
        height: 40px;
        position: relative;
        top: -20px;
        left: 0px;
    }

    #header-menu-containar {
        display: block !important;
        width: 100% !important;
    }

    #header-menu {
        display: none;
        color: rgba(238, 238, 238, 0);
    }

    .header-search-form {
        display: none;
    }

    .header-full {
        animation-name: slideDown;
        animation-fill-mode: backwards;
        animation-duration: 0.5s;
        animation-timing-function: ease;
        animation-direction: normal;
        height: 100vh;
    }

    @keyframes slideDown {
        0% {
            height: 67px;
        }

        100% {
            height: 100vh;
        }
    }

    .header-menu-active {
        display: block !important;
        position: absolute;
        top: 62px;
        left: 0px;
        width: 100%;
        color: rgba(238, 238, 238, 1) !important;
    }

    #header .nav-item {
        display: flex !important;
        margin: 0;
        padding: 10px !important;
        justify-content: center !important;
    }

    .content article table {
        width: 100% !important;
    }
}

.navbar {
    margin-top: 40px;
}

.nav-item {
    display: inline-flex;
    margin-left: 20px;
    padding: 10px;
}

footer {
    margin-top: 100px;
    width: 100%;
    height: 100px;
    padding-top: 200px;
    background-color: rgb(161, 161, 161);
    border-radius: 20px 20px 0px 0px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

footer div {
    width: 100%;
    text-align: center;
}

.content {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.content article {
    margin-top: 50px;
    padding: 30px 20px 30px 20px;
    background-color: #eee;
    border-radius: 15px;
    filter: drop-shadow(0px 5px 5px rgba(190, 190, 190, 0.8));
}

.article-content {
    margin-top: 15px;
}

.article-content h2:nth-child(n + 1) {
    margin-top: 40px;
}

.article-content h3,
h4 {
    margin-top: 20px;
}

.article-content p {
    margin-top: 1rem;
}

.article-content code {
    padding: 10px;
    margin: 10px 0 10px 0;
    width: calc(100% - 20px);
    font-family: 'Source Code Pro', monospace;
    background-color: #333;
    border-radius: 10px;
    color: #eee;
    display: block;
}

.article-content ul {
    margin-top: 10px;
    margin-left: 30px;
}

.article-content li {
    line-height: 2rem;
}

.more-button {
    margin-top: 20px;
    text-align: right;
}

.btn {
    padding: 10px;
    border-radius: 5px;
    border: solid 1px #0054a3;
    background-color: #0054a3;
    color: #fff;
    transition: all 0.5s;
}

.btn:hover {
    padding: 10px;
    border-radius: 5px;
    border: solid 1px rgb(165, 194, 255);
    background-color: rgb(165, 194, 255);
    color: rgb(0, 33, 59);
    filter: drop-shadow(0px 5px 5px rgba(87, 87, 87, 0.8));
}

.flex-containar {
    display: flex;
    margin-top: 15px;
}

.flex-containar:first-child {
    margin-top: 0px !important;
}

.flex-item:first-child {
    width: fit-content;
    margin-right: 10px;
}

.blog-category {
    margin-top: 5px;
}

.category-button {
    padding: 5px;
    border-radius: 5px;
    border: solid 1px #af5ffa;
    background-color: #af5ffa;
    line-height: 1.3em;
    color: #fff;
    transition: all 0.5s;
    font-size: 8px;
}

.category-button:hover {
    border: solid 1px #fc4ded;
    background-color: #fc4ded;
    color: #790d67;
    filter: drop-shadow(0px 5px 5px rgba(87, 87, 87, 0.8));
}

@media (max-width: 900px) {
    .content {
        width: 90% !important;
    }
}

/****************************
 * swiper.js
 ***************************/

.swiper-control div {
    display: inline;
}

.works-swiper {
    width: 100%;
    height: 250px;
}

.works-swiper-silde {
    background-color: #fff;
    height: 240px !important;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    cursor: pointer;
}

.works-swiper-silde img {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
}

.works-swiper-silde h3 {
    display: flex;
    font-size: 16px;
    margin: 0;
    align-items: center;
}

.swiper-scrollbar {
    bottom: 0px !important;
}

.swiper-scrollbar-drag {
    background: rgba(0, 0, 0, 0.3) !important;
}

.works-thumbnail {
    max-width: 100%;
    border-radius: 5px;
}

/****************************
 * リンク
 ***************************/

a {
    color: #0054a3;
    transition: all 0.5s;
}

a:hover {
    color: #3d7bff;
}

footer a {
    color: #333;
}

/****************************
 * フォーム
 ***************************/
.form input {
    padding: 10px;
    border-radius: 5px;
    border: solid 1px rgb(165, 193, 255);
}

.form textarea {
    padding: 10px;
    border-radius: 5px;
    border: solid 1px rgb(165, 193, 255);
}

.schroll-disable {
    overflow: hidden;
}

.wp-block-image {
    text-align: center;
}

.wp-block-image img {
    border-radius: 10px !important;
}

.wp-block-image figcaption {
    font-size: 8px;
    text-align: center;
}

/************************************
 * works-list
 ************************************/

.works-list-content {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 20px;
    margin-bottom: 40px;
}

.works-list-thumbnail {
    width: 45%;
    padding-right: 20px;
}

.works-list-overview {
    width: 55%;
}

.works-list-overview h3 {
    margin: 0 !important;
}

.works-list-thumbnail img {
    max-width: 100%;
    border-radius: 10px !important;
}

@media (max-width: 900px) {
    .works-list-content {
        display: block !important;
    }

    .works-list-thumbnail {
        width: 100% !important;
    }

    .works-list-overview {
        width: 100% !important;
        margin-top: 10px;
    }
}
