@charset "utf-8";

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    position: relative;
    background-color: black;
}

#page.site {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

#main-content, main {
  flex: 1 0 auto;
}

footer {
  margin-top: auto;
}

p, a {
    color: white;
    text-decoration: none;
}

figcaption {
	color: white;
}

section {
    margin: 50px auto 50px 15%;
    padding-top: 20px;
    padding-left: 5%;
    padding-right: 5%;
    max-width: 1080px;
}

@media screen and (min-width: 1800px) {
    section {
        margin: 50px auto;
    }
}

header {
    position: fixed;
    width: 20%;
    height: 100%;
    max-width: 350px;
    top: 0;
    left: 0;
    padding-left: 30px;
    z-index: 5;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

#banner {
    position: absolute;
    margin: auto 10px 30px 10px;
    width: 80%;
    height: auto;
    bottom: 0;
}

.banner-rapper {
    margin: 10px 20% 0 0;
    width: 80%;
}

.banner-rapper img {
    width: 100%;
    height: auto;
}

#cgarts {
    margin-right: 35%;
    margin-left: 1.5%;
    width: 65%;
}

.only_mobile {
    display: none;
}

iframe {
	width:100%;
}

iframe[src*="youtube"] {
	height:auto;
    aspect-ratio: 16 / 9;
	display:block;
}

#main-image {
    margin: 50px 30px 30px auto;
    max-width: 300px;
}

#main-image img {
    width: 100%;
    height: auto;
}

ul {
    margin: 50px 30px 30px auto;
    max-width: 250px;
    padding-left: 10px;
}

li {
    list-style: none;
    margin: 20px auto auto 0;
    max-width: 100px;
}

li a {
    color: white;
    text-decoration: none;
}

.menu-item-has-children {
    position: relative; 
}

.sub-menu {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    width: 150px;
    position: absolute;
    top: 0;
    left: 100%;
    margin: 0;
    padding: 0;
    background-color: #3a3a3a;
    color: white;
}

.menu-item-has-children:hover .sub-menu {
    visibility: visible;
    opacity: 1;
}

.sub-menu li {
    margin: 0;
    padding: 0;
    max-width: 150px;
}

.sub-menu li a {
    display: block;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
}

.sub-menu li a:hover {
    background-color: white;
    color: black;
}

.menu-item-has-children::after {
  content: "＞";
  margin-left: 4px;
  color: rgb(185, 185, 185);
  font-weight: bold;
}

#top-video {
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
    filter: blur(0px);
}

h1, h2 {
    font-family: "Rosarivo", Sans-serif;
    color: white;
    text-align: center;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 3px solid #9e0000;
}

h3, h4, h5, h6 {
    color: white;
}

footer,
footer a {
    text-align: center;
    color: white;
}

#gotop {
    cursor: pointer;
}

#back-image {
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    filter: blur(15px);
}

/* オーバーレイ用 */
#back-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(24, 24, 24);
    pointer-events: none;
}

#back-image-page {
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    filter: blur(12px);
}

#back-image-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.2);
}

.single-content {
  margin: 50px 20px;
}

.archive-articles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.articles-content {
    width: 250px;
    height: 340px;
    margin: 0 10px 30px 10px;
    flex-shrink: 0;
    flex-grow: 0;
    overflow: hidden;
}

.articles-content img {
    object-fit: contain;
    object-position: center center;
    width: 100%;
    height: 100%;
}

/*
#sc-archives {
    max-width: 1080px;
}

@media screen and (min-width: 1800px) {
    #sc-archives {
        margin: 50px auto;
    }
}*/

.container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.thumbnail {
    object-fit: cover;
}

#overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 1));
}

#overlay.show {
    opacity: 1;
}

.archive-img-back {
    width: 100%;
    position: absolute;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    top: 0;
    left: 0;
}

.archive-img-back img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: 0.3s;
}

.archive-img {
    width: 100%;
    position: absolute;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    top: 0;
    left: 0;
    opacity: 0;
    transition: 0.5s;
}

.archive-img-works {
    width: 100%;
    position: absolute;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    top: 0;
    left: 0;
}

.archive-img-works img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.archive-img-back-works {
    width: 100%;
    position: absolute;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    top: 0;
    left: 0;
    filter: blur(15px);
}

.archive-img-back-works img {
    object-fit: contain;
    object-position: center center;
    width: 100%;
    height: 100%;
}

.articles-content:hover .archive-img-back img:not(.noimg) {
    filter: blur(15px);
    transition: 0.5s;
}

.articles-content:hover .archive-img:not(.noimg) {
    opacity: 1;
    transition: 0.3s;
}

.corner-box {
  position: relative;
  margin: 5%;
  width: 90%;
  height: 90%;
}

.corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-style: solid;
  border-color: white;
  pointer-events: none;
}

.top-left {
  top: 0;
  left: 0;
  border-width: 4px 0 0 4px;
}

.top-right {
  top: 0;
  right: 0;
  border-width: 4px 4px 0 0;
}

.bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 4px 4px;
}

.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 4px 4px 0;
}

#more {
    position: absolute;
    top:50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);/*ベンダープレフィックス*/
    -webkit-transform: translate(-50%,-50%);/*ベンダープレフィックス*/
    transform: translate(-50%,-50%);/*センター寄せの修正*/
    margin: 0 !important;/*文字がずれている場合や*/
    padding: 0 !important;/*文字が折り返される場合*/
    opacity: 0;
    transition: 0.5s;
}

#more {
    font-family: "Rosarivo", Sans-serif;
    opacity: 1;
    font-size: 2rem;
    text-align: center;
    transition: 0.5s;
}

.container:hover #more {
    font-size: 2.2rem;
    transition: 0.5s;
}

#page-404 {
    text-align: center;
}

/*コンタクトフォーム用レイアウト*/
.wpcf7-text, .wpcf7-textarea {
	width: 100%;
}

form .required {
	margin-left: 10px;
	color: #ee3333;
}

form .option {
	margin-left: 10px;
	color: #339933;
}

@media screen and (max-width: 959px) {
	/* 959px以下に適用されるCSS（タブレット用） */

    .only_mobile {
        display: block;
    }

    section {
        margin: 50px auto;
        padding-top: 50px;
    }

    header {
        position: fixed;
        width: 100%;
        max-width: none;
        height: 90px;
        top: 0;
        left: 0;
        padding: 5px 0;
        z-index: 5;
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
        background-color: rgba(0, 0, 0, 0.5);
    }

    #banner {
        display: none;
    }

    #main-image {
        margin: 15px auto 15px 10px;
        height: 60px;
    }

    #main-image img {
        object-fit: contain;
        object-position: center left;
        width: 100%;
        height: 100%;
    }

    /* メニューのスタイル */
    .menu {
        position: fixed;
        top: 0;
        right: -100%; /* 初期状態では画面の外に隠れている */
        width: 250px;
        height: 100%;
        /*background-color: #fafad2;*/
        color: #333;
        transition: right 0.3s ease; /* スライドインのアニメーション */
        padding: 0;
        box-sizing: border-box;
        z-index: 10;
    }

    /* メニューが開いているとき */
    .menu.open {
        right: 0;
    }

    /* ボタンのスタイル */
    .hamburger {
        position: fixed;
        top: 25px;
        right: 30px;
        width: 40px;
        height: 32px;
        padding-top: 8px;
        cursor: pointer;
        z-index: 20;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: white;
        margin: 5px 0;
        transition: 0.4s;
    }

    /* バツ印に変化するスタイル */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    ul {
        margin: 100px 0 auto auto;
        width: 150px;
        padding: 0 25px 25px 0;
        background-color: rgba(0, 0, 0, 0.5);
    }

    li {
        width: 100%;
        max-width: 100%;
        text-align: right;
        box-sizing: border-box;
    }

    li a {
        color: white;
        text-decoration: none;
    }

    .menu-item-has-children {
        position: relative; 
    }

    .sub-menu {
        display: none;
        position: static;
        visibility: visible;
        opacity: 1;
        background-color: rgba(0, 0, 0, 0);
        margin: 10px 0 10px 0;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .menu-item-has-children.is-submenu-open > .sub-menu {
        display: block;
    }

    .sub-menu li {
        margin: 0;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        padding-right: 10px;
    }

    .sub-menu li a {
        display: block;
        padding: 8px 12px;
        white-space: nowrap;
        text-align: right;
    }

    .sub-menu li a:hover {
        background-color: rgba(0, 0, 0, 0);
        color: white;
    }

    .menu-item-has-children::after {
        display: none;
        content: none;
    }
    .menu-item-has-children::before {
        content: "∨";
        margin-left: 4px;
        color: rgb(185, 185, 185);
        font-weight: bold;
    }

    #more {
        font-size: 2em;
    }

}
@media screen and (max-width: 480px) {
	/* 480px以下に適用されるCSS（スマホ用） */

    header {
        position: fixed;
        width: 100%;
        height: 60px;
        max-width: none;
        top: 0;
        left: 0;
        padding: 0;
        z-index: 5;
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    }

    section {
        padding-top: 30px;
    }

    #main-image {
        margin: 10px auto 10px 10px;
        height: 40px;
    }

    .hamburger {
        position: fixed;
        top: 15px;
        right: 15px;
        width: 25px;
        height: 19px;
        padding: 3px 0;
        cursor: pointer;
        z-index: 20;
    }

    .hamburger span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: white;
        margin: 5px 0;
        transition: 0.4s;
    }

    ul {
        margin-top: 60px;
    }

    .archive-img-back img:not(.noimg) {
        filter: blur(15px);
        transition: 0.5s;
    }

    .archive-img:not(.noimg) {
        opacity: 1;
        transition: 0.3s;
    }

    .articles-content {
        aspect-ratio: 25 / 34;
        width: 90%;
        height: auto;
    }

    #more {
        font-size: 2em;
    }
}