/*TO DO LIST
- REPLACE FONT LINK
- ADD PRIMARY COLOR
*/

@import url('https://fonts.googleapis.com/css2?family=Josefin+Slab:ital,wght@0,100..700;1,100..700&family=Manrope:wght@200..800&family=Noto+Sans+JP:wght@100..900&family=Zen+Kaku+Gothic+New:wght@300;400;500;700;900&display=swap');
@media(max-width:767px) {
    .hide-for-small {
        display: none !important;
    }
}

@media(min-width:768px) {
    .show-for-small {
        display: none !important;
    }
}


/*LOADING*/

#loading {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 9000;
    background-color: #fff9f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#loading .loading-inner {
    display: none;
}
#loading .loading-inner img{
    max-width: 260px;
}
.loading-1 {
    transform-origin: center bottom;
    animation: pikopiko 1s ease-in-out infinite alternate;
}

@keyframes pikopiko {
    0% {
        transform: rotate(3deg);
    }
    to {
        transform: rotate(-3deg);
    }
}

.loading-wave {
    display: inline-flex;
    justify-content: center;
}

.loading-wave span {
    display: inline-block;
    animation: wave 1.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/*BASE*/

html {
    font-size: 62.5%;
    overflow-y: scroll;
}

html.font-size-normal {
  font-size: 72%;
}

html.font-size-large {
  font-size: 82%;
}
body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 1.6rem;
    -webkit-text-size-adjust: none;
    color: #3F3F3F;
    font-weight: 400;
    font-style: normal;
    overflow: hidden;
    --primary-color: #000000;
}

a {
    transition: all 0.5s;
}

a:not(.btn):hover {
    opacity: 0.6;
}


/*GO TOP BUTTON*/

#go-top {
    position: fixed;
    bottom: -120px;
    right: 15px;
    opacity: 0;
    transition: all .3s;
    z-index: 99;
    border-radius: 50%;
    right: 20px;
    border-radius: 20px 0 0 20px;
}

#go-top.show {
    opacity: 1;
    bottom: 15px;
}

#go-top a {
    display: flex;
    flex-direction: column;
    width: 124px;
    height: 160px;
    overflow: hidden;
}

#go-top a:hover {
    animation: hvr-wobble-vertical 1s ease-in-out 1;
}

@keyframes hvr-wobble-vertical {
    16.65% { transform: translateY(8px); }
    33.3%  { transform: translateY(-6px); }
    49.95% { transform: translateY(4px); }
    66.6%  { transform: translateY(-2px); }
    83.25% { transform: translateY(1px); }
    100%   { transform: translateY(0); }
}

#go-top a img {
    margin: 0 auto;
}


/*FONT*/

.ff-kaku {
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.ff-jose {
    font-family: "Josefin Slab", serif;
}

.ff-manrope {
    font-family: "Manrope", sans-serif;
}


/*ANIMATION*/

@keyframes showTextFromBottom{
  0%{
    transform: translateY( 100% );
  }
  50%{
    transform: translateY( -20% );
  }
  100%{
    transform: translateY( 0px );
  }
}
.anime-up.displayed span{
  animation: showText 1s backwards;
  display: inline-block;
}
.anime-up.displayed > span{
  overflow: hidden;
}
.anime-up.displayed > span > span{
  animation: showTextFromBottom 0.5s backwards;
}
.anim {
    opacity: 0;
}

.anim.blur {
    opacity: 1;
}


.anim.blur.is-animated,
.add-animation .anim.blur {
    animation-name: blurAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes blurAnime {
    from {
        filter: blur(10px);
        transform: scale(1.02);
    }
    to {
        filter: blur(0);
        transform: scale(1);
    }
}

.anim.fade {
    opacity: 0;
}

.anim.fade.is-animated {
    opacity: 1;
    animation-name: fade;
    animation-duration: 2s;
}

.anim.slideinBottom.is-animated {
    opacity: 1;
    animation-name: slideinBottom;
    animation-duration: 0.5s;
}

@keyframes slideinBottom {
    0% {
        transform: translateY(100px);
    }
    100% {
        transform: translateY(0);
    }
}

.anim.faderight.is-animated {
    opacity: 1;
    animation-name: faderight;
    animation-duration: 2s;
}

.anim.fade.is-animated {
    opacity: 1;
    animation-name: fade;
    animation-duration: 2s;
}

.anim.fadeleft.is-animated {
    opacity: 1;
    animation-name: fadeleft;
    animation-duration: 2s;
}

.anim.fadeup.is-animated {
    animation: fadeup 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    opacity: 1;
}

.anim.fadeup-2.is-animated {
    opacity: 1;
    animation-name: fadeup-2;
    animation-duration: 0.5s;
}

.home .anim.fadedown.is-animated {
    opacity: 1;
    animation-name: fadedown;
    animation-duration: 0.5s;
}

.anim.zoomin.is-animated {
    animation: zoomIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes faderight {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes fadedown {
    from {
        opacity: 0;
        transform: translateY(-150px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes fadeup {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeup-2 {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0px);
    }
}

@keyframes fadeleft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.anim.effectfade {
    opacity: 0;
    transform: translate(0, 20px);
    transition: all 1.5s ease;
}

.anim.effectfade.is-animated {
    opacity: 1;
    transform: translate(0, 0);
}


/*HEADER*/

.header-main .logo-left .logo {
    margin-right: 0px;
    width: 365px;
    line-height: 1;
    padding: 0;
    position: relative;
    padding-bottom: 80px;
}

.header-inner {
    position: static;
    padding-left: 40px;
    padding-right: 25px;
    padding-top: 25px;
    padding-bottom: 25px;
}

#logo .header-logo {
    width: 100%;
}

.header-main .main-menu {
    flex: 1;
    margin-left: 20px;
}

.header-main .main-menu .nav {
    position: static;
    width: fit-content;
    margin-left: auto;
    margin-right: 0;
    margin-bottom: 0;
    margin-top: 25px;
}
.news-item.biggerlink{
    flex:1;
}
@media(min-width: 768px) {
    
    body:not(.home) .header-wrapper:before{
        background-color: white;
        width: 950px;
        height: 100%;
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        display: block;
        border-bottom-left-radius: 25px;
    }
    body:not(.home) .size-text p, body:not(.home)  .switch-button{
        z-index: 1;
    }
    body:not(.home) header.DownMove .header-wrapper:before{
        display: none;
    }
}
.header-main .main-menu .nav>li {
    margin: 0;
    position: static;
    transition: .3s;
    padding-bottom: 0px;
    margin-right: 0;
}

.header-main .main-menu .nav>li:last-child {
    margin-right: 0;
}

.header-main .main-menu .nav>li>a {
    font-weight: bold;
    padding: 0;
    color: #333;
    text-align: center;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    letter-spacing: 0.05em;
    min-height: 48px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    min-width: 122px;
    min-height: 96px;
    gap: 10px;
}


/* .header-main .main-menu .nav>li>a::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #87c153;
    transition: all .3s;
    transform: scale(0, 1);
} */


/* .header-main .main-menu .nav>li>a span {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    padding-top: 5px;
} */

.header-main .main-menu .nav>li:nth-last-child(1) {
    border-right: none;
}

.box-main-menu {
    position: static;
}

.header-main .main-menu .nav>li>a:hover,
.header-main .main-menu .nav>li.current>a {
    opacity: 1;
}

@media (min-width: 768px) {
    .header-main .main-menu .nav>li.current>a::after,
    .header-main .main-menu .nav>li:hover>a::after {
        opacity: 1;
        width: 100%;
        transform: scale(1, 1);
        /*X方向にスケール拡大*/
    }
}

.main-menu li.nav-item:hover>a span::after,
.main-menu li.nav-item.current>a span::after {
    left: 50%;
    opacity: 1;
}

.loading-active main {
    opacity: 0;
}

.loading-active header {
    opacity: 0;
}

.loading-active footer {
    opacity: 0;
}


/*MEGA MENU*/

.mega-menu {
    left: 0;
    position: absolute;
    text-align: left;
    width: 100%;
    text-align: center;
    padding-top: 0px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
    visibility: hidden;
    top: 117px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-main .main-menu .nav>li.nav-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    top: 135px;
    z-index: 12;
}
@media(min-width: 768px) {
    header.UpMove .header-wrapper {
        animation: UpAnime 0.5s forwards;
        background-color: #fff;
    }
    header{
        height: 201px;
    }
    @keyframes UpAnime {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(-100px);
        }
    }

    @keyframes DownAnime {
        from {
            opacity: 0;
            transform: translateY(-100px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    header.DownMove .header-wrapper {
        animation: DownAnime 0.5s forwards;
        background-color: #fff9f0;
    }

   
    .header-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 99;
    }
    body.admin-bar .header-wrapper {
        top: 32px;
    }
}
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

input[type="search"]::-moz-search-clear {
  display: none;
}

input[type="search"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}
#home-education,#home-support{
    z-index: 1;
    position: relative;
}
.post-content img{
    height: auto;
}
#home-guardian{
    position:relative;
}