@charset "utf-8";
/*背景*/
.grecaptcha-badge {
    display: block !important;
    visibility: visible !important;
}

.bg {
    display: none;
}

body.appear .bg{
    display: block;
    content: "";
    position:fixed;
    z-index: 999;
    width: 100%;
    height: 120vh;
    border-radius: 150px 150px 0 0;
    top: -20%;
    left: 0;
    transform: scaleY(0);
    background-color: #e03346;
    animation-name:PageAnime;
    animation-duration:0.5s;
    animation-timing-function:ease-in-out;
    animation-fill-mode:forwards;
}
@keyframes PageAnime{
  0% {
    transform-origin:bottom;
    transform:scaleY(0);
  }
  50% {
    transform-origin:bottom;
    transform:scaleY(1.5);
  }
  511% {
    transform-origin:top;
    transform:scaleY(1.5);
  }
  100% {
    transform-origin:top;
    transform:scaleY(0);
  }
}

.wrapper1 {
    opacity: 0;
}

body.appear .wrapper1 {
    animation-name:PageAnimeAppear;
    animation-duration:1s;
    animation-delay: 0.2s;
    animation-fill-mode:forwards;
    opacity: 0;
}
  
  @keyframes PageAnimeAppear{
    0% {
    opacity: 0;
    }
    100% {
    opacity: 1;
  }
}

.eazel {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translate(-50%);
    display: none;
    z-index: -1;
    width: 100%;
    height: 500px;
}

.eazel.active {
    display: block;
}

.eazel img {
    object-fit: scale-down;
    max-height: 500px;
    height: 100%;
}

/*404*/
.error_log {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
}

.error_log img {
    width: 150px;
}

/*h2バラバラに出現させる*/
h2 span {
    opacity: 0;
    animation: random 0.5s ease-out forwards;
}
@keyframes random {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
}

h2 span:nth-child(3n-1) {
    animation-delay: 0.4s; 
}

h2 span:nth-child(2n+1) {
    animation-delay: 0.2s; 
}

h2 span:nth-child(7n) {
    animation-delay: 0.6s;
}

.error_log h2 {
    text-align: center;
    white-space: nowrap;
}

.error_log h2 span:nth-child(4) {
    white-space: wrap;
}

.message h2 {
    text-align: center;
}

/*サイドバー*/
aside {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.language aside {
    align-items: start;
}

.include aside {
    align-items: end;
    width: 100px;
}

.langmenu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.base {
    position: relative;
}

.base p {
    font-size: 0.6rem;
    width: 40px;
    height: 10px;
    position: absolute;
    bottom: -15px;
    font-family: "Jockey One", "cookierun", "Lilita One", "Yusei Magic", "FULLY FREE", sans-serif;}

/*ハンバーガーメニュー*/
.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1; 
    display: block;
    transition: all 0.3s;
}

.hamburger .custom-shape.active {
    position: absolute;
    top: 8px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: #fcf8ef;
    z-index: 20;
    clip-path: circle(50% at 50% 50%);
}

.hamburger span {
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.hamburger span:nth-child(1) {
    content: "";
    width: 30px;
    height: 8px;
    background-color: #d2691e;
    position: absolute;
    top: -5px;
    border-radius: 8px 8px 0 0;
    z-index: 1; 
}

.hamburger span:nth-child(2) {
    content: "";
    width: 30px;
    height: 5px;
    top: 8px;
    background-color: #800000;
    display: block;
    position: absolute;
    z-index: 1; 
}

.hamburger span:nth-child(3) {
    content: "";
    width: 30px;
    height: 8px;
    background-color: #d2691e;
    position: absolute;
    bottom: -5px;
    border-radius: 0 0 8px 8px;
    z-index: 1; 
}

.hamburger.active {
    transform: rotate(180deg);
}

aside .wrapper {
    background-color: #ffffff;
    width: 0;
    height: 0;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s;
    overflow: hidden;
    z-index: -1;
    opacity: 0;
    position: absolute;
    top: -20px;
}

aside .wrapper.active {
    width: auto;
    height: auto;
    border-radius: 30px;
    text-align: center;
    padding: 10px;
    box-shadow: 0px 0 10px rgba(0, 0, 0, 0.5);
    top: 50px;
    opacity: 1;
    z-index: 200;
}

.language h3 {
    line-height: 1em;
    margin-bottom: 20px;
}

aside h4 {
    color: #e03346;
    transition: all 0.3s;
}

aside ul li a {
    transition: all 0.3s;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    white-space: nowrap;
}

aside ul li:hover a {
    color: #e03346;
}

.lang a.match {
    color: #e03346;
}

.langmenu h4 {
    position: relative;
    z-index: 10;
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
    padding-top: 5px;
    width: 70px;
}

.langmenu h4::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0px;
    width: 70px;
    height: 40px;
    border-radius: 40px;
    background-color: #ffffff;
    z-index: -1;
    box-shadow: 0px 0 20px rgba(0, 0, 0, 0.5);
}

.langmenu h4::after {
    content: '';
    position: absolute;
    top: 1px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent; 
    border-right: 10px solid transparent; 
    border-bottom: 30px solid #ffffff;
    transform: rotate(90deg);
    z-index: -1;
}

.comment {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
}

.comment1 .title {
    width:auto;
    position: relative;
}

.comment1 .book {
    position: absolute;
    right: 10%;
    top: 65%;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.comment1 .book button {
    border-radius: 20px;
    padding: 0 10px;
    background: linear-gradient(90deg, #cccccc 0%, #d2691e 50%, #e03346 100%);
    background-size: 200% 100%;
    border: none;
    transition: 0.5s ease;
}

.comment1 .book a {
    color: #1f1f1f;
}

.comment1 .book .img1, .comment1 .book .img2 {
    width: 20px;
    height: auto;
    opacity: 0;
    transition: 0.5s ease;
    pointer-events: none;
}

.comment1 .book .img1 {
    transform: rotate(-720deg) scale(7) translateX(-30px) translateY(30px);
}

.comment1 .book .img2 {
    transform: rotate(720deg) scale(7) translateX(-30px) translateY(30px);
}

.comment1 .book button:hover  {
    background-position: 100%;
}

.comment1 .book button:hover a {
    color: #fcf8ef;
}

.comment1 .book:hover .img1,.comment1 .book:hover .img2 {
    opacity: 1;
    transform: rotate(0) scale(1) translateX(0) translateY(0);
}

.comment1 .message {
    margin-top: 0;
    padding-top: 0;
    width: 100%
}

.title {
    white-space: nowrap;
    width: 35%;
    text-align: center;
    margin-bottom: 40px;
}

.titlename {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.form {
    margin-bottom: 50px;
}

.body-transition header .nav {
    animation: nav 0.5s ease-in;
    display: flex;
}
@keyframes nav {
    0% {
        display: none;
    }
    90% {
        display: none;
    }
    100% {
        display: flex;
    }
}

#body header h1, #error header h1 {
    width: 40%;
}

.body-transition header h1 {
    animation: header 0.5s ease-in;
    width: 50%;
}
@keyframes header {
    0% {
        width: 100%;
    }
    100% {
        width: 50%;
    }
}

.body-transition aside {
    animation: aside 0.5s ease-in;
}
@keyframes aside {
    0% {
        display: none;
    }
    90% {
        display: none;
    }
    100% {
        display: flex;
    }
}

#body {
    position: relative;
    max-width: 1600px;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    z-index: 100;
}

#body header, #error header {
    display: flex;
    gap: 3%;
    align-items: baseline;
    margin-bottom: 30px;
    height: 90px;
}

#body header .menu_contents, #error header .menu_contents {
    display: flex;
    width: 72%;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

#body header .nav h4, #error header .nav h4 {
    font-size: clamp(1rem, 2vw, 2rem);
}

#body header .nav, #error header .nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2%;
}

#body header li.active {
    color: #e03346;
}

.flex2 {
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: baseline;
    flex-wrap: wrap;
}

.view {
    border: 1px solid #1f1f1f;
    border-radius: 30px;
    padding: 0 10px;
    transition: 0.3s ease;
}

.view:hover {
    background-color: #e03346;
    border: 1px solid #e03346;
}

.view:hover a {
    color: #fcf8ef;
}

#error footer {
    position: fixed;
}

footer h4 {
    font-family: "Showcard Gothic", "FULLY FREE" , "ZCOOL_KuaiLe", "cookierun", sans-serif;
    line-height: 2.5rem;
}

footer p {
    font-size: 1rem;
    line-height: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 5px;
    color: #1f1f1f;
}

footer .block {
    display: none;
    padding: 50px;
}

.sitemap {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 50px 4% 150px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.sitemap a {
    text-decoration: underline;
    margin: 10px;
}

.sitenav {
    border-bottom: 1px solid #cccccc;
}

.tops, .sitenews, .works {
    width: calc(100%/3);
}
/*カテゴリーボタン*/
.category_nav {
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.category_nav button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    transition: 0.3s ease;
    text-align: center;
    vertical-align: middle;
    color: #fcf8ef;
    padding: 1rem 2rem 1rem;
    background: #e03346;
}

.category_nav button:before {
    position: absolute;
    top: -5px;
    left: -5px;
    bottom: 5px;
    right: 5px;
    content: "";
    transition: 0.3s ease;
    border: 3px solid #1f1f1f;
}

.category_nav button:hover {
    padding: 1rem 2rem;
}

.category_nav button:hover:before {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.category_nav button.active {
    padding: 1rem 2rem;
    color: #e03346;
    background-color: #fcf8ef;
}

.category_nav button.active:before {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border: 3px solid #e03346;
}

#img {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 50px;
    width: 70px;
    height: 70px;
    padding: 10px 20px;
    background-color: #e03346;
    color: #fcf8ef;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 200;
    text-align: center;
}

#img p {
    font-size: 1rem;
    line-height: 1rem;
    width: 2rem
}

#img img {
    display: block;
    width: 60%;
    margin: 0 auto; 
    animation: transform 2s ease infinite;    
}
@keyframes transform {
    0% {
        transform: rotateY(0deg);
        }
    100% {
        transform: rotateY(180deg);
        }
}

#img:hover {
    background-color: #e03346;
}

.history {
    color:#1f1f1f
}

.underline a {
    text-decoration: underline;
}

/*language切り替え*/
.language-switch {
    position: relative;
    cursor: pointer;
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0px;
    background-color: #fcf8ef;
    padding: 5px;
    border-radius: 5px;
}

.language-menu.visible {
    display: block;
}

.language {
    user-select: none;
}

.language-menu li {
    padding-left: 20px;
}

.language-menu a {
    font-family: "Noto Sans JP";
    font-weight: 400;
    font-size: 1em;
}

.language-menu .triangle {
    position: relative; 
    margin-bottom: 0;
}

.language-menu .triangle::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 10px; /* 上 下 左 右 の順で設定 */
    border-color: transparent transparent transparent #ff0000; /* 三角形の色を設定 */
}

@media screen and (width < 850px){
    .eazel {
        top: 100px
    }

    h2 {
        font-size: 4rem;
    }

    .body-transition header h1 {
        animation: none;
    }

    .body-transition header .nav {
        animation: none;
    }

    .body-transition aside {
        animation: none;
    }

    #body header, #error header {
        flex-direction: column;
        height: auto;
        gap: 5px;
        margin-bottom: 0;
    }

    #body header h1, #error header h1 {
        width: 100%;
    }

    #body header .menu_contents, #error header .menu_contents {
        width: 100%;
        align-items: last baseline;
    }

    #body header .nav, #error header .nav {
        width: 100%;
        justify-content: space-between;
    }

    #body header .nav h4 {
        font-size: clamp(1.5rem, 3vw, 4rem);
    }

    .error_log h2 {
        font-size: 2.5rem;
    }

    .error_log img {
        width: 120px;
    }
    
    .title {
        width: 100%;
        margin-bottom: 0;
    }

    .form {
        margin-bottom: 10px;
    }

    .comment {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .titlename {
        text-align: center;
        margin-bottom: 0;
    }

    .titlename h2 {
        margin-bottom: 20px;
    }

    .category_nav button {
        padding: 1rem 1.5rem;
    }

    .category_nav button.active {
        padding: 1rem 1.5rem
    }

    .category_nav button p {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
    }

    .sitemap {
        flex-wrap: wrap;
        gap: 0;
        row-gap: 10px;
    }

    .sitemap .tops, .sitemap .sitenews {
        width: 50%;
    }

    .sitemap .works {
        width: 100%;
    }

    footer a img {
        margin-bottom: 10px;
    }

}
@media screen and (width < 600px){
    #wpadminbar {
        position: fixed;
    }

    .langmenu h4 {
        font-size: 1.3rem;
    }

    #body header .nav, #error header .nav {
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: 5px;
    }

    #body header .nav h4 {
        line-height: 1.3rem;
        font-size: clamp(1rem, 5vw, 2rem);
    }

    .comment1 .title {
        margin-bottom: 50px;
    }

    .comment1 .book {
        top: 100%;
    }

    #body header .menu_contents, #error header .menu_contents {
        align-items: center;
        gap: 35px;
    }

    .category_nav button {
        padding: 1rem;
    }

    .category_nav button.active {
        padding: 1rem;
    }

}
