@charset "utf-8";

/* ============================================================
   base_sp.css — デザイントークン・共通スタイル・ヘッダー・フッター
   ============================================================ */

/* ##########SP########## */
@media screen and (min-width:1px) and (max-width:479px) {


    html {
        font-size: 3.6vw;
        min-width: auto;
        -webkit-text-size-adjust: 100%;
    }

    body {
        min-width: initial;
        min-width: auto;
        overflow-y: scroll;
        overflow-x: hidden;
    }

    .side_nav_show{
        overflow-y: hidden;
    }

    .side_nav_show body{
        overflow-y: hidden;
    }


    .site-header__inner {
        height: 16vw;
        padding: 0 19vw 0 2vw;
    }

    .site-header__logo-link {
        gap: 2vw;
    }

    .site-header__logo-mark {
        width: 3rem;
        height: 3rem;
    }

    .site-header__logo-title {
        width: 12rem;
        height: 3rem;
    }

    .site-header__search{
        width: 2.25rem;
    }

    .search_form_box{
        top: 15vw;
        right: -13vw;
    }

        .search_form_box dl dd form input[type="search"]{
            width: 16em;
        }

    main {
        padding-top: 16vw;
    }

    .contents {
        margin-top: 16vw;
    }

    .nav_oc {
        width: 16vw;
        height: 16vw;
        top: 0;
        right: 0;
    }

    .pagetop {
        width: 3.5rem;
        height: 3.5rem;
        bottom: 5.5rem;
        right: 2rem;
    }

    .page_container table a,
    .page_container li a,
    .page_container p a {
        word-break: break-all;
    }

    .link-list__grid {
        width: 95vw;
    }

    .link-list__grid ul {
        gap: 0.5rem;
    }

    .link-list__grid ul li {
        width: calc((100% - 0.5rem) / 2);
    }

    .link-item {
        align-items: flex-start;
        gap: 0.5rem;
    }

    .link-item__thumb {
        width: 4rem;
        height: auto;
        aspect-ratio: 7 / 5;
    }

    .link-item__ja {
        font-size: 0.9rem;
    }

    .link-item__text {
        padding-right: 1rem;
    }

    .site-footer__main {
        width: 100%;
        border-radius: unset;
    }

    .site-footer__container {
        gap: 0;
    }

    .site-footer__right {
        flex: unset;
    }

    .site-footer__copy {
        padding: 1.5rem 1rem;
    }

    .site-footer__copy p {
        font-size: 0.75rem;
    }

    .side_nav .side_global_nav {
        padding: 20vw 0 0 0;
    }

    .side_nav .side_global_nav>ul {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .side_nav .side_global_nav>ul>li {
        width: calc(50% - 0.5rem);
    }

    .side_nav .side_global_nav>ul>li>a {
        font-size: 1.1em;
        padding: 0.8rem 0.5rem;
    }

    .side_nav .side_global_nav>ul>li>a::after {
        font-size: 1.2rem;
        top: calc(50% - 0.8rem);
    }

    /*改行のPC,SPでの表示切替*/
    br.pc,
    img.pc,
    span.pc {
        display: none;
    }

    br.sp,
    img.sp,
    span.sp {
        display: inline;
    }

}