body {
    background-image: url("../images/bg-body.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    line-height: 2em!important;
    font-family: 1.7rem!important;
}
body:before {
    background-image: url(../images/top-body.png);
    background-size: cover;
    background-position: center bottom;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 229px;
    width: 100%;
}
blockquote {
    position: relative;
    border-left: 2px solid #A5CC80;
    border-right: 2px solid #A5CC80;
    padding: 40px 20px;
    background: #DDE8C2
}

blockquote:before {
    position: absolute;
    font-family: 'Font Awesome 6 Free';
    content: '\f10d';
    font-size: 28px;
    font-weight: 900;
    color: #A5CC80;
    top: 5px;
    left: 10px
}

blockquote:after {
    position: absolute;
    font-family: 'Font Awesome 6 Free';
    content: '\f10e';
    font-size: 28px;
    font-weight: 900;
    color: #A5CC80;
    right: 10px;
    bottom: 5px
}

blockquote cite {
    display: block;
    font-size: .8rem;
    text-align: right;
    color: gray;
    padding-right: 20px
}
.footer .nav-item a:hover {
    color: rgb(75,75,75);
    text-decoration: none;
    font-weight: bold;
}
.footer .nav-item.activate a,.footer .nav-item.current a {
    text-decoration: none;
    font-weight: bold;
}
.com-content-article.item-pagetermspage, .com-content-article.item-page,
.com-contact.contact, .com-users-registration, .com-users-reset, .com-users-remind {
    background: #fffffa;
    padding: 4rem;
    border-radius: 30px;
}
.termspage .page-header h1 {
    text-align: center;
}
@media (max-width: 767.98px) {
    .footer ul {
        width: 100%;
        margin-left: 2rem;
    }
}
/* ==================================================
各種ボタンについて
================================================== */
.btn.btn-primary {
    background-color: #6464ff;
    border-color: #6464ff;
}
.btn.btn-primary,.search .btn-toolbar .btn {
    background: -webkit-gradient(linear,left top,left bottom,#4B9Dff,to(#6464ff));
    background: -webkit-linear-gradient(top,#4B9Dff,#6464ff);
    background: -o-linear-gradient(top,#4B9Dff,#6464ff);
    background: linear-gradient(180deg,#4B9Dff,#6464ff)
}
#copy-page {
    display: inline-block;
    width: 130px;
    padding: 0;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    font-weight: 700;
    border: 0;
    border-radius: 5px;
    background: #909090;
    outline: none;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    position: relative;
    top: -10px
}

#copy-page:hover {
    cursor: pointer;
    opacity: .7
}
.btn-twitter {
    display: inline-block;
    padding: .6em 1em .6em 2.5em;
    margin: 0 0 .4em;
    background-color: #55acee;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    text-decoration: none
}

.btn-twitter::after {
    position: absolute;
    content: '\e61a';
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
    top: 50%;
    left: .5em;
    transform: translateY(-50%);
    font-size: 1.2em
}

.btn-facebook {
    display: inline-block;
    padding: .6em .8em .6em 2.5em;
    margin: 0 0 .4em;
    background-color: #315096;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease 0s
}

.btn-facebook::after {
    position: absolute;
    content: '\f09a';
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
    top: 50%;
    left: .5em;
    transform: translateY(-50%);
    font-size: 1.2em
}

.btn-line {
    display: inline-block;
    padding: .6em 1em .6em 2.5em;
    margin: 0 0 .4em;
    background-color: #1dcd00;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease 0s
}

.btn-line::after {
    position: absolute;
    content: "\f3c0";
    font-family: 'Font Awesome 6 Brands';
    top: 50%;
    left: .5em;
    transform: translateY(-50%);
    font-size: 1.2em;
    font-weight: 400
}

.btn-urlcopy {
    display: inline-block;
    padding: .6em 1em .6em 2.5em;
    margin: 0 0 .4em;
    background-color: #909090;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease 0s;
    border: 0
}

.btn-urlcopy::after {
    position: absolute;
    content: "\f328";
    font-family: 'Font Awesome 6 Free';
    top: 50%;
    left: .5em;
    transform: translateY(-50%);
    font-size: 1.2em;
    font-weight: 400
}
/* ==================================================
   ヘッダー
   PC：ロゴ左、メニュー右
   スマホ：ロゴ左、バーガーボタン右
================================================== */

.container-header {
    background: none;
}

/* ヘッダー内の横幅 */
.container-header .container-nav {
    max-width: 1320px;
    width: 100%;
    margin-inline: auto;
}
/* ヘッダーメニュー色*/
.container-header .mod-menu>li>a {
    color: #212529;
    font-weight: 600;
}
/* .container-header .metismenu>li.level-1.active>a{
    text-decoration-line: underline;
    text-decoration-color: red;
} */
/* アクティブメニュー */
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
    position: relative;
}

/* 少し隙間を空けた太いアンダーライン */
.container-header .mod-menu > li.active > a::after,
.container-header .mod-menu > li.current > a::after,
.container-header .mod-menu > li > a:hover::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.2rem;
    height: 4px;
    background-color: orangered;
    border-radius: 2px;
}

/* PC表示 */
@media (min-width: 992px) {

    .container-header {
        display: flex;
        align-items: center;
        padding-inline: max(1rem, calc((100% - 1320px) / 2));
    }

    /* ロゴ */
    .container-header .navbar-brand {
        flex: 0 0 auto;
        margin: 0;
        padding: 1rem 0;
    }

    .container-header .navbar-brand img {
        display: block;
        width: auto;
        max-height: 70px;
    }

    /* メニュー領域 */
    .container-header .container-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1 1 auto;
        width: auto;
        margin: 0 0 0 auto;
        padding: 0;
    }

    .container-header .container-nav nav {
        margin-left: auto;
    }

    /* メニューを右寄せ */
    .container-header .mod-menu {
        justify-content: flex-end;
        margin-left: auto;
    }
    /*アクティブの場合のアンダーライン*/
    .container-header .mod-menu > li > a {
        padding-bottom: .8rem;
    }

    .container-header .mod-menu > li.active > a::after,
    .container-header .mod-menu > li.current > a::after {
        bottom: 0.35rem;
        height: 4px;
    }
}

/* ========================================
   スマホ・タブレット用ヘッダー
======================================== */
@media (max-width: 991.98px) {

    /* 1行目：ロゴ左、ボタン右 */
    .container-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 1rem;
        padding: 0.75rem 1rem;
    }

    /* ロゴ */
    .container-header .navbar-brand {
        grid-column: 1;
        grid-row: 1;

        width: auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .container-header .navbar-brand img {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: 55px;
    }

    /*
     container-nav と nav の箱をなくして、
     ボタンと開閉メニューをGridへ直接配置
    */
    .container-header .container-nav,
    .container-header .container-nav nav {
        display: contents;
    }

    /* バーガーボタン：右上 */
    .container-header .navbar-toggler {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;

        position: static;
        width: auto;
        margin: 0;
        background-color: #6464ff;
    }

    /* 開いたメニュー：2行目全幅 */
    .container-header .navbar-collapse {
        grid-column: 1 / -1;
        grid-row: 2;

        position: static;
        width: 100%;
        margin: 0.75rem 0 0;
        padding: 0.5rem 0;

        background-color: #1e315f;
    }

    /* 閉じているとき */
    .container-header .navbar-collapse:not(.show):not(.collapsing) {
        display: none;
    }

    /* 開閉中・開いているとき */
    .container-header .navbar-collapse.show,
    .container-header .navbar-collapse.collapsing {
        display: block;
        width: 100%;
        background-color: #fbfbf2;
    }

    /* メニュー本体 */
    .container-header .navbar-collapse .mod-menu {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .container-header .navbar-collapse .mod-menu > li {
        display: block;
        width: 100%;
        margin: 0;
    }

    .container-header .navbar-collapse .mod-menu > li > a {
        display: inline-block;
        width: auto;
        position: relative;
        padding: 0.75rem 0;
        color: #212529;
        white-space: normal;
    }
    .metismenu.mod-menu .metismenu-item.active>a,
    .metismenu.mod-menu .metismenu-item.current>a,
    .metismenu.mod-menu .metismenu-item>a:hover {
        text-decoration: none;
    }
    .metismenu.mod-menu .metismenu-item>a:after {
        opacity: .2;
    }
}
.footer {
    background: none;
    background-color: #fffffa;
    color: rgb(75, 75, 75);
}
/* ========================== */
/* トップページ*/
/* ========================== */
.toppage .card, .aboutuspage .card {
    border: none;
    background: none;
}
/*　セクションタイトル*/
.toppage .card-header, .aboutuspage .card-header {
    margin-top: 50px;
    margin-bottom: 40px;
    background: none;
    text-align: center;
    font-size: 2em;
    color: rgb(75, 75, 75);
    letter-spacing: 0.2em;
    border: none;
}
/* ソーシャルボタン表示欄 */
.otameshi {
    margin-top: 20px!important;
    text-align: center;
    font-size: 1.2rem
}
/* ==================================================
   TOPページ：ユーザー登録案内バナー
================================================== */

.top-register-banner {
    position: relative;
    max-width: 1360px;
    min-height: 380px;
    margin: 60px auto;
    padding: 50px;

    border-radius: 36px;
    overflow: hidden;
}

/* 背景画像 */
.top-register-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1);
    transition: transform 0.6s ease;
}
.register-banner1::before {
    background-image: url("/images/joomlart/game-detail/item-12.jpg");
}

.register-banner2::before {
    background-image: url("/images/joomlart/game-detail/game.png");
}
/* 背景画像の上に置く内容 */
.top-register-banner__inner {
    position: relative;
    z-index: 1;

    display: flex;
    min-height: 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 45px;
}

/* 案内文 */
.top-register-banner__message {
    width: 100%;
    margin: 0;
    padding: 8px 20px;

    color: #fff;
    background-color: rgba(55, 105, 105, 0.55);

    font-size: clamp(1.1rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ユーザー登録ボタン */
.top-register-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 300px;
    min-height: 88px;
    padding: 18px 40px;

    color: #fff;
    background: linear-gradient(135deg, #4486f4, #6559f5);
    border: 0;
    border-radius: 20px;

    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

/* マウス操作ができる端末だけホバーを適用 */
@media (hover: hover) and (pointer: fine) {

    /* バナーにマウスを乗せると背景画像だけ拡大 */
    .top-register-banner:hover::before {
        transform: scale(1.06);
    }

    /* ボタンにマウスを乗せたとき */
    .top-register-banner__button:hover {
        color: #fff;
        text-decoration: none;

        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.28);
        filter: brightness(1.05);
    }
}

/* キーボード操作時 */
.top-register-banner__button:focus-visible {
    color: #fff;
    text-decoration: none;
    outline: 3px solid rgba(255, 255, 255, 0.95);
    outline-offset: 4px;
}

/* ==================================================
   スマートフォン
================================================== */

@media (max-width: 767.98px) {

    .top-register-banner {
        min-height: 300px;
        margin: 35px 15px;
        padding: 25px 15px;

        border-radius: 22px;
    }

    .top-register-banner::before {
        background-position: center;
    }

    .top-register-banner__inner {
        min-height: 250px;
        gap: 30px;
    }

    .top-register-banner__message {
        padding: 8px 12px;

        font-size: 1rem;
        line-height: 1.6;
    }

    .top-register-banner__button {
        width: min(100%, 280px);
        min-width: 0;
        min-height: 64px;
        padding: 14px 24px;

        border-radius: 14px;

        font-size: 1.15rem;
    }
}

/* ================================================== */
/*記事カード 上画像、下テキスト*/
/* ================================================== */
.com-content-category-blog__item .page-header,
.com-content-category-blog__item .page-header h2 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1.25rem!important;
}

.estory-article-card-wrap {
    list-style: none;
}
.mod-articles-items .estory-article-card,
.com-content-category-blog__item {
    background: #fffffa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.estory-article-card-image {
    margin: 0;
}

.estory-article-card-image figure,
.estory-article-card-image .item-image,
.estory-article-card-image img {
    margin: 0;
}

.estory-article-card-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.estory-article-card-title {
    margin: 0;
    padding: 1rem 1.25rem .4rem;
    font-size: 1.25rem!important;
    line-height: 1.4;
}
.estory-article-card-info {
    padding: 0 1.25rem;
    margin-bottom: 0;
}
.estory-article-card-title a,
.com-content-category-blog__item .page-header a {
    color: #174a9a;
    text-decoration: none;
}

.estory-article-card-title a:hover,
.com-content-category-blog__item .page-header a:hover {
    text-decoration: underline;
}

.estory-article-card-text {
    padding: 0 1.25rem 1.25rem;
    line-height: 1.7;
}
.com-content-category-blog__item .item-content {
    margin: 0;
    padding: 0 1rem;
    
    line-height: 1.4;
}
/* ================================================================== */
/*  About us */
/* ================================================================== */
.section-title-wrap {
    margin-bottom: 2.5rem;
}
.section-title-wrap .section-title {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.2;
}
.title-gradient {
    background: -webkit-gradient(linear,left top,right top,from(#4FB0D1),to(#57B9D3));
    background: -webkit-linear-gradient(left,#4FB0D1,#57B9D3);
    background: -o-linear-gradient(left,#4FB0D1,#57B9D3);
    background: linear-gradient(to right,#4FB0D1,#57B9D3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}
.app-img {
    margin-bottom: 1.5rem;
}
/* ========================================
   左画像・右テキストの共通レイアウト
======================================== */

.animate-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    /* margin-block: 4rem; */
}

.animate-block__image img {
    display: block;
    width: 100%;
    height: auto;
}

/* ========================================
   アニメーション共通
======================================== */

/* 表示前 */
.reveal {
    opacity: 0;
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

/* 下から */
.reveal-up {
    transform: translateY(100px);
}

/* 左から */
.reveal-left {
    transform: translateX(-55px);
}

/* 右から */
.reveal-right {
    transform: translateX(55px);
}

/* 表示後 */
.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 少し遅れて表示 */
.reveal-delay {
    transition-delay: 0.18s;
}


/* ========================================
   スマホ
======================================== */

@media (max-width: 767.98px) {

    .animate-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-block: 2.5rem;
    }

    /*
     スマホでは左右から大きく動かすと
     横スクロールの原因になりやすいため移動量を小さくする
    */
    .reveal-left {
        transform: translateX(-25px);
    }

    .reveal-right {
        transform: translateX(25px);
    }

    .reveal-up {
        transform: translateY(30px);
    }

    .reveal-delay {
        transition-delay: 0.1s;
    }
}


/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   ABOUT US スライダー
======================================== */
.top-slider-module,
.top-slider-module .n2-section-smartslider,
.top-slider-module .n2-ss-slider,
.top-slider-module .n2-ss-slider-1,
.top-slider-module .n2-ss-slider-2,
.top-slider-module .n2-ss-slider-3 {
    border-radius: 32px;
    overflow: hidden;
}
/* ========================================
   ABOUT US スライダー下の案内・ボタン
======================================== */

.top-action-box {
    position: relative;
    z-index: 10;

    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: 3rem;

    max-width: 1180px;
    margin: -90px auto 4rem;
    padding: 2.75rem 3.5rem;

    background: #fff;
    border-radius: 32px;
    box-shadow: 0 15px 40px rgb(0 0 0 / 8%);
}

.top-action-box__message {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.65;
    color: #111;
}

.top-action-box__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.top-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    /* min-height: 90px; */
    padding: 1rem 1.5rem;

    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 16px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.top-action-button:hover,
.top-action-button:focus-visible {
    color: inherit;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgb(0 0 0 / 10%);
}

@media (max-width: 767.98px) {
    .top-slider-module,
    .top-slider-module .n2-section-smartslider,
    .top-slider-module .n2-ss-slider,
    .top-slider-module .n2-ss-slider-1,
    .top-slider-module .n2-ss-slider-2,
    .top-slider-module .n2-ss-slider-3 {
        border-radius: 16px;
        overflow: hidden;
    }
    .top-slider-module .card-body,
    .top-slider-module-action .card-body {
        padding: 0;
    }
    .top-action-box {
        display: block;
        padding: 2rem 1rem;
        margin: -35px auto 0;
    }
    .top-action-box__message {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.2;
        color: #111;
        margin-bottom: 1rem;
    }
    .estory-slide-tilte div {
        font-size: 1.2rem!important;
    }
    .estory-slide-text {
        font-size: .7rem!important;
    }
}

/* =========================
   サイドバー
========================= */
.sidebar-right.card .card-header {
    background-color: #3399cc;
    color: #fff;
    line-height: normal;
    text-transform: uppercase;
    font-size: 16px;
    padding: 10px 15px;
    -webkit-border-radius: 8px 8px 0 0;
    -moz-border-radius: 8px 8px 0 0;
    border-radius: 8px 8px 0 0;
    background-color: #3399cc;
    background-image: -moz-linear-gradient(top,#86b7cf,#3399cc);
    background-image: -webkit-gradient(linear,0 0,0 100%,from(#86b7cf),to(#3399cc));
    background-image: -webkit-linear-gradient(top,#86b7cf,#3399cc);
    background-image: -o-linear-gradient(top,#86b7cf,#3399cc);
    background-image: linear-gradient(to bottom,#86b7cf,#3399cc);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#86b7cf', endColorstr='#3399cc', GradientType=0);
  }
  .sidebar-right.card .card-body {
      border: 1px solid rgb(229, 229, 229);
      background: #fffffa;
  }

/*Scratch 関係*/
@media screen and (min-width: 992px) {
    /*　画面サイズ960px以上　*/
.view-category .t4-main-body, .view-article .t4-main-body, .view-featured .t4-main-body, .view-author .t4-main-body {
	padding: 4rem 0;
}
.com-content-article.item-page .section-lead {
	margin: 0 auto 3rem;
}
.scratch-play {
	border: orange solid 5px;
}
.scratch-play p {
	text-align: center;
}
.s_iframe {
	height: 402px;
}
.y_iframe {
	width: 500px;
	height: 315px;
}

}