:root {
    --themeColor: black;
    --textColor: white;
    --fontSizePhoneTitle: 1.3rem;
    --fontSizePhoneMain: 1rem;

    --fontSizeTabletTitle: 1.5rem;
    --fontSizeTabletMain: 1.3rem;
}

.content-wrapper {
    background-color: var(--themeColor);
    color: var(--textColor);
    font-family: 'M PLUS 2', sans-serif;
    overflow: hidden;
    min-height: 100vh;
    font-size: var(--fontSizePhoneMain);
}

@media (min-width: 768px) {
    .content-wrapper {
        font-size: var(--fontSizeTabletMain);
    }
}

.header {
    width: 100%;
}

@media screen and (max-width: 600px) {
    .header {
        display: none;
    }
}

.header-container {
    padding: 1rem 0;
    display: flex;
    justify-content: flex-end;
}

@media screen and (max-width: 767px) {
    .header-container {
        padding: 0.5rem;
    }
}

.gn-list {
    margin-right: 2rem;
    display: flex;
    gap: 1.5rem;
}

.gn-item {
    border: 2px solid black;
    transition: border-bottom-color 0.3s ease;
}

.gn-item:hover {
    border-bottom-color: white;
    opacity: 0.7;
}

.nav-item {
    margin-right: 0.5rem;
}

.logo-container {
    height: 80vh;
    width: auto;
    padding: 0 30vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

#logo {
    overflow: visible;
}

.section-title {
    text-align: center;
    padding: 2rem 0;
}

.images {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 1rem;
}

.images .item {
    width: 45%;
}

@media (min-width: 768px) {
    .images .item {
        width: 30%;
    }
}

.item img {
    max-width: 100%;
    height: auto;
}

.item figcaption {
    background-color: var(--textColor);
    color: var(--themeColor);
}

.footer-container {
    padding-bottom: 2rem;
    margin-top: 2rem;
}

.links {
    display: flex;
    flex-flow: column nowrap;
    text-align: center;
    gap: 1rem;
}

.links ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 100%;
}

.link-group1 {
    max-width: 100%;
}

.link-group3 {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.link-group3>a {
    height: 20px;
    width: 200px;
}

.copyright {
    margin-top: 1rem;
    text-align: center;
}

#splash {
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    background: #333;
    text-align: center;
    color: #fff;
}

#splash_text {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 999;
    width: 100%;
    transform: translate(-50%, -50%);
    color: #fff;
}

#g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: 0;
    right: -120%;
    width: 100%;
    height: 100vh;
    /*ナビの高さ*/
    background: #999;
    /*動き*/
    transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
    right: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*リストのレイアウト設定*/

#g-nav li {
    list-style: none;
    text-align: center;
}

#g-nav li a {
    color: #333;
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
}

/*========= ボタンのためのCSS ===============*/
.openbtn1 {
    position: fixed;
    z-index: 9999;
    /*ボタンを最前面に*/
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

@media screen and (min-width: 600px) {
    .openbtn1 {
        display: none;
    }
}

/*×に変化*/
.openbtn1 span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--textColor);
    width: 45%;
}

.openbtn1 span:nth-of-type(1) {
    top: 15px;
}

.openbtn1 span:nth-of-type(2) {
    top: 23px;
}

.openbtn1 span:nth-of-type(3) {
    top: 31px;
}

.openbtn1.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn1.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn1.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

/*==================================================
ギャラリーのためのcss
===================================*/
.gallery {
    columns: 4;
    /*段組みの数*/
    padding: 0 15px;
    /*ギャラリー左右に余白をつける*/
}

.gallery li {
    margin-bottom: 20px;
    /*各画像下に余白をつける*/
}

.gallery-item-title {
    position: absolute;
    right: 10px;
    top: 25%;
    font-size: 0.8rem;
    text-align: left;
}

.gallery img:hover {
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

/*ギャラリー内のイメージは横幅100%にする*/
.gallery img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
    /*画像の下にできる余白を削除*/
}

/*　横幅900px以下の段組み設定　*/
@media only screen and (max-width: 900px) {
    .gallery {
        columns: 3;
    }
}

@media only screen and (max-width: 768px) {
    .gallery {
        columns: 2;
    }
}

/*画像を出現させるアニメーションCSS*/

.flipLeft {
    animation-name: flipLeft;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    perspective-origin: left center;
    opacity: 0;
}

@keyframes flipLeft {
    from {
        transform: perspective(600px) translate3d(0, 0, 0) rotateY(30deg);
        opacity: 0;
    }

    to {
        transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
        opacity: 1;
    }
}