@charset "utf-8";

/* はみ出し確認用 */

/* * {
    outline: 2px red solid;
} */

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin-right: 0;
    margin-left: 0;
    background-color: #fdfdeb;
}

h1 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: lighter;
    position: fixed;
    top: -8px;
    left: 6%;
    color: #fed120;
    z-index: 1100;
}

h1 span {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

h2.section-title {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    margin-top: 22px;
    margin-bottom: 0;
    padding-left: 20px;
    color: #242424;
    background-color: #fed120;
}

h3 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 24px;
    font-weight: normal;
    color: #242424;
}


section p {
    font-weight: lighter;
    line-height: 24px;
    color: #505050;
}

p a, a {
    text-decoration: none;
    color: #242424;
}

/* ハンバーガーメニュー */

/* ページ内リンク調整 */
section:before {
    content: "";
    display: block;
    height: 50px;
    /* 調整したい高さ（固定ヘッダーの高さ） */
    margin-top: -15px;
    /* heightと同じ分のネガティブマージン */
    visibility: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #242424;
    padding: 10px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
    margin-left: auto;
    padding-right: 30px;
    transition: .3s;
}

.menu-icon.close {
    padding-right: 20px;
    transition: .3s;
}

.menu-icon span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fed120;
    margin: 4px 0;
    transform-origin: 0% 50%;
    transition: .3s;
}

.menu-icon.close span:nth-of-type(1) {
    transform: rotate(45deg);
    width: 100%;
    padding-left: 1px;
}

.menu-icon.close span:nth-of-type(2) {
    opacity: 0;
}

.menu-icon.close span:nth-of-type(3) {
    transform: rotate(-45deg);
    width: 100%;
    padding-left: 1px;
}

.nav-links {
    list-style: none;
    display: none;
    flex-direction: column;
    width: 100%;
    position: fixed;
    top: 52px;
    left: 0;
    background-color: #242424;
    z-index: 900;
    margin: 0;
    padding: 0;
    transition: 0.5s;
}


.nav-links.show {
    display: flex;
    background-color: #242424d0;
    /* アニメーション */
    animation-name: fadeIn;
    animation-fill-mode: forwards;
    animation-duration: 0.6s;
}

.nav-links.hide {
    animation: fadeOut 0.6s forwards;
}



/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-600px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フェードアウトアニメーション */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-600px);
    }
}

.nav-links li {
    text-align: center;
    margin: 12px 0;
}

.nav-links a {
    color: #fed120;
    font-size: 18px;
    font-family: sans-serif;
    transition: 0.3s;
}


/* ハンバーガーメニューここまで */

#header-border {
    width: 100vw;
    height: 60px;
    background-color: #fed120;
    position: fixed;
    top: 0;
    z-index: 300;
}

.container p {
    padding-left: 2%;
    padding-right: 2%;
}

main {
    padding-top: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;

}


#top-image {
    height: 100vh;
    background-image: url(../images/top-image-resize.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;
}


/* about */
#contents-about {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    padding-left: 10px;
}

#about-img {
    height: 80px;
    width: 80px;
    padding: 10px;
    border-radius: 50%;
}

section {
    padding-right: 15px;
    padding-left: 15px;
}

#page-top {
    border-radius: 50%;
    background-color: #fed120;
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 2%;
    right: 3%;
    z-index: 100;
    border: #242424 2px solid;
}

#page-top p {
    text-decoration: none;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 20px;
    text-align: center;
    color: #242424;
    margin-top: 17px;
    z-index: 200;
}

/* ワークス */

#flex-games {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 20px;
    justify-content: center;
}

#section-works img {
    max-width: 270px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 4%;
    border: #242424 3px solid;
}

#section-works figcaption {
    text-align: center;
}

/* ニュース */

#title-news {
    margin-right: 15px;
    margin-left: 15px;
}

#section-news {
    padding-left: 0;
    padding-right: 0;
}

#news {
    list-style-type: none;
}


#news li {
    position: relative;
    left: -20px;
}

#news p {
    font-weight: 400;
    color: #242424;
    text-align: left;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 5px;
    margin-left: 10px;
}

.news-title {
    font-size: 130%;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: center;
    line-height: 130%;
    /* 水平方向に中央揃え */
}


.main-sentence {
    padding-top: 0;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 1s ease;
    /* フェードイン・フェードアウトのアニメーション設定 */
}

p.main-sentence {
    line-height: 180%;
}


p.timeP {
    text-indent: 40%;
}

#news time {
    font-weight: 400;
    font-size: 85%;
    color: #606060;
    line-height: 100%;
}

.bordered {
    padding: 5px 5px 10px 5px;
    margin: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: max-height 1s ease, opacity 1s ease;
    /* 高さと不透明度のアニメーションを追加 */
    overflow: hidden;
    /* コンテンツが枠を超えないようにする */
    max-height: 120px;
    /* 初期の高さを設定 */
    max-width: 500px;
}

.bordered.expanded {
    max-height: 500px;
    /* 拡張時の最大高さを設定 */
    background-color: #fffcab;
}

#flex-x {
    display: flex;
    flex-direction: row;
    justify-content: center;

}

#flex-x p {
    font-size: 20px;
    font-weight: bold;
    color: #242424;
    padding-left: 0;
    margin-top: 65px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

#icon-x {
    margin-top: 30px;
    width: 60px;
    height: 60px;
    background-color: black;
    border-radius: 10%;
}

#section-contact img {
    width: 40px;
    height: 40px;
    margin: 10px;
}

.spacer {
    padding-bottom: 20px;
}

footer p {
    text-align: center;
}