@charset "utf-8";

@font-face {
    font-family: "Klee One";
    src: url("../external/KleeOne-Regular.woff2") format("woff2");
    font-display: swap;
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Klee One", sans-serif;
}

:root {
    --scrollbar-track-bg: rgba(0, 0, 0, 0.01);
    --scrollbar-thumb-bg: rgba(0, 0, 0, 0.01);
}

* {
    font-family: "Klee One", cursive;
    font-weight: 400;
    font-style: normal;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    box-sizing: border-box !important;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 一般容器 */
div {
    box-sizing: border-box !important;
    overflow: hidden;
}

/* スクロールバー */
::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track-bg);
    border-radius: 2px;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.08);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-bg);
    border-radius: 2px;
    -webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: #9fcff7;
}

::-webkit-scrollbar-corner {
    background: var(--scrollbar-thumb-bg);
}

/* 選択禁止クラス */
.no-select {
    -moz-user-select: none !important;
    -o-user-select: none !important;
    -khtml-user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.uk-alert-success {
    width: 100%;
    height: max-content;
    border-radius: 0.3rem;
}

/* ステージ整体 */
#stage {
    width: 100%;
    height: 100%;
    overflow: hidden scroll;

    scroll-behavior: smooth;

    background: url(../image/materiaru/backgraund.jpg) repeat;
}

nav,
#st_nv_cmbtn,
aside,
footer,
label,
button,
#st_mn_slider,
#st_mn_ct_side,
#st_mn_ct_mn_n_title,
.st_mn_ct_mn_pd_g_title,
#profile-title,
#title,
.FAQs,
#st_mn-ctc_mn_left {
    -moz-user-select: none !important;
    -o-user-select: none !important;
    -khtml-user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* ____ ナビゲーション部分 ____ */
nav {
    width: 100%;
    height: 16rem;
}

/* モバイルメニュー呼び出しボタン */
#st_nv_cmbtn {
    display: none;
}

/* ブランド */
#st_nv_brand {
    width: 26rem;
    height: 90%;
}

#st_nv_b_logo {
    width: 100%;
    height: 100%;

    background: url(../image/materiaru/logo.png) no-repeat left;
    background-size: contain;
}

/* PCメニュー */
#st_nv_menu {
    width: calc(100% - 26rem);
    height: 90%;
}

a:hover {
    color: #7e6b50;
    text-decoration: none;
}

#st_nv_menu > a {
    position: relative;
    text-decoration: none;
    color: #5d3b23;
    font-size: 2rem;
    margin: 0 1rem;
}

#st_nv_menu > a:last-child {
    margin-right: 2rem;
}

#st_nv_menu > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

#st_nv_menu > a:hover::after,
#st_nv_menu > a:focus-visible::after {
    transform: scaleX(1);
}

@media screen and (orientation: portrait) {
    #st_nv_cmbtn {
        display: block;
        width: 3rem;
        height: 3rem;
        overflow: hidden;

        position: fixed;
        z-index: 999;
        left: 1rem;
        top: 1rem;

        padding: 0;

        background-color: rgba(126, 107, 80, 0.45);
        backdrop-filter: blur(0.4rem);
        border-radius: 1.1rem;
    }

    #st_nv_brand {
        width: 100%;
        justify-content: center;
    }

    #st_nv_b_logo {
        max-height: 8rem;
    }

    #st_nv_menu {
        display: none;
    }

    /* モバイルメニュー */
    .uk-offcanvas-bar {
        background: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(0.9rem) !important;
    }

    #st_as_m_tt_logo {
        width: 2.4rem;
        height: 2.4rem;
    }

    #st_as_mbmenu > div > ul > li > a > span:last-child {
        margin-left: 0.3rem;
        filter: invert(0.9);
    }
}

/* ____ 主要部分 ____ */
main {
    width: 100%;
    min-height: calc(100vh - 16rem);
    min-height: calc(100dvh - 16rem);
}

/* === 正文部分 === */
#st_mn_content {
    width: 90%;
    height: max-content;
    min-height: calc(100vh - 20rem);
    min-height: calc(100dvh - 20rem);
    margin: 2rem 0;
    padding: 1rem;

    background: #fbfcfb;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    overflow: hidden;
}

/* ____ フッター部分 ____ */
footer {
    width: 100%;
}

footer > section {
    width: 100%;
}

#st_ft_link {
    gap: 4rem;
    margin: 1rem 0;
}

#st_ft_link > a {
    color: #5d3b23;
    font-size: 1rem;
    transition: all 0.2s linear;
}

#st_ft_link > a:hover {
    color: #378d15;
    font-weight: bold;
}

#st_ft_info {
    color: #5d3b23;
    background-color: #c1d3c7;
}

#st_ft_info > span {
    margin: 0.6rem 0;
    font-size: 0.92rem;
    font-weight: bold;
}

#st_ft_info > span > a {
    color: #5d3b23;
    font-weight: bold;
    text-decoration: none;
}

#st_ft_info > span > a:hover {
    color: #7e6b50;
}

@media screen and (orientation: portrait) {
    #st_ft_link {
        flex-direction: column;
        gap: 0.4rem;
    }

    #st_ft_link > a {
        font-size: 0.9rem;
    }

    #st_ft_info > span {
        font-size: 0.8rem;
    }
}

/* ____ その他 ____ */

/* トップに戻る猫 */
.peek-cat {
    position: fixed;
    bottom: 118px;
    right: -100px;
    width: 7rem;
    height: auto;
    z-index: 9999;
    transition: right 0.35s ease;

    pointer-events: none; /* 親の空白部分は反応させない */
    overflow: visible; /* ツールチップが切れないようにする */
}

.peek-cat.is-show {
    right: -5px;
}

/* クリック可能なのは子要素だけ */
.peek-cat-image,
.peek-cat-tip {
    pointer-events: auto;
}

.peek-cat-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0; /* ← ここ重要。余白クリックを防ぐ */
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0.3rem 0.3rem 0.3rem rgba(0, 0, 0, 0.4));
}

/* 透明部分の上にマウスがあるときは下へ透過 */
.peek-cat[data-hit="transparent"] .peek-cat-image {
    pointer-events: none;
    cursor: default;
}

.peek-cat-tip {
    position: absolute;
    right: 2.4rem;
    bottom: 6.4rem;
    font-size: 0.8rem;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(0.3rem);
    color: #333;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateX(6px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
    white-space: nowrap;
    cursor: pointer;
}

.peek-cat.is-show .peek-cat-tip,
.peek-cat:hover .peek-cat-tip,
.peek-cat:focus-within .peek-cat-tip {
    opacity: 1;
    transform: translateX(0);
}

@media screen and (orientation: portrait) {
    .peek-cat {
        width: 5rem;
    }

    .peek-cat-tip {
        right: 1.6rem;
        bottom: 4.6rem;
    }
}

/* ニュースタグ */
.fc-news-tag-blank,
.fc-news-tag-fill {
    width: max-content;

    transform: scale(0.8);

    color: #777;
    background: #fff;

    line-height: 1.8;
    text-align: center;

    padding: 0 0.5rem;
    border: 1px solid #999;

    border-radius: 3px;
}

.fc-news-tag-fill {
    color: #fff;

    border-color: transparent;

    background: #c2a384;
}

/* 正文サイドバー・作品２の処理 */
#st_mn_ct_side > div > div:nth-child(2) > a {
    position: relative;
    display: block;
}

#st_mn_ct_side > div > div:nth-child(2) > a > img {
    display: block;
    width: 100%;
    height: auto;
}

.crossfade-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}
