html, body {
    overflow-x: hidden;
}

body {
    background: #000000;
    /* ウェブフォント指定を削除し、システムフォントのみにする */
    font-family: "游明朝", "Yu Mincho", "MS 明朝", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif;
    letter-spacing: 1px;
    line-height: 0;
    font-size: 1rem;
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1;
    scroll-behavior: smooth;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
}

a:link {
    color: #ffffff;
}

a:visited {
    color: #cccccc;
}

a:hover {
    color: #ea8d8d;
}

iframe {
    border: 0
}

h1 {
    font-size: 2em;
    /* text-shadow: 0.5px 0px 0px currentColor; */
}

h2 {
    font-size: 2em;
    /* text-shadow: 0.5px 0px 0px currentColor; */
}

h3 {
    font-size: 1.5em;
    /* text-shadow: 0.5px 0px 0px currentColor; */
}

h4 {
    font-size: 1.125em;
    /* text-shadow: 0.5px 0px 0px currentColor; */
}

.antialias {
    -webkit-transform: rotate(0.028deg);
    -moz-transform: rotate(0.028deg);
    -ms-transform: rotate(0.028deg);
    -o-transform: rotate(0.028deg);
    transform: rotate(0.028deg);
}

.overflow {
    overflow: hidden;
}

.iframe {
    width: 100%;
    height: 95%;
    border: none;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background: rgba(0, 0, 0, 1.0);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, .1);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .3);
}

#youtube::-webkit-scrollbar {
    height: 12px;
}

#youtube::-webkit-scrollbar-track {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0);
}

#youtube::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0);
}


/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/

#header {
    display: block;
    position: fixed;
    height: 70px;
    width: 100%;
    z-index: 1000;
    background: url("../images/blacktex.jpg");
    opacity: 1.0;
}

#header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

#header-logo {
    position: fixed;
    width: 70px;
    height: 70px;
    background-image: url("../images/logo-mini.png");
    background-size: cover;
}

#header-logo-link {
    position: fixed;
    width: 70px;
    height: 70px;
}

#navi {
    display: block;
    text-align: right;
    font-size: 1rem;
    line-height: 70px;
    margin: 0;
    padding: 0;
}

#navi li {
    display: inline;
    padding: 20px 10px;
    vertical-align: middle;
}

.linkbox {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
    line-height: 150px;
}

#navi li a {
    display: inline-block;
    text-decoration: none;
    margin-top: -10px;
    padding: 10px;
}

#navi li a:link {
    color: #bbb;
    transition: 0.4s;

}

#navi li a:visited {
    color: #bbb;
    transition: 0.4s;
}

#navi li a:hover {
    color: #ffffff;
    transition: 0.2s;
}

.image-margin {}

#mail {

    height: 16px;
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> footer >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
#footer {
    position: relative;

    background: url("../images/blacktex.jpg");
    overflow: hidden;
    z-index: 0;
}

#footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

#footer-inner {
    width: 1140px;
    margin: auto;
    padding-top: 60px;
    padding-bottom: 30px;
    padding-bottom: 30px;
    color: #bbb;
    text-align: center;
    font-size: 0.875rem;
}

#footer-inner div a {
    text-decoration: none;
    color: #cccccc;
    transition: 0.4s;
}

#footer-inner div a:hover {
    color: #ffffff;
    transition: 0.2s;
}

.footer-all {
    display: inline-block;
    vertical-align: top;
    text-align: left;
    line-height: 280%;
    text-decoration: none;
}

#footer-left {
    margin-right: 220px;
    width: 40%;
}

#footer-center {
    width: 21%;
}

#footer-right {
    width: 18%;
}

#footer-prof {
    width: 500px;
    height: auto; /* widthに合わせて高さを可変にする */
}




#copylight {
    margin-top: 40px;
    margin-bottom: 10px;
}

/* Initial Hidden State */
#header {
    /* Specific initial state for header */
    opacity: 0;
    transform: translateY(-100%);
    /* Start from above */
}

/* Animation properties when 'animate-in' class is applied */
#header.animate-in {
    /* Specific animated state for header */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 2.4s cubic-bezier(0.7, 0, 0.3, 1), transform 2.4s cubic-bezier(0.7, 0, 0.3, 1);
}

/* ウィンドウ幅900〜1139px */
@media screen and (max-width:1139px) {
    #navi li {
        padding: 20px 5px;
    }
}

/* ウィンドウ幅0〜899px */
@media screen and (max-width:899px) {
    #header,
    #header.animate-in {
        display: none; /* 閉じた状態では非表示にする */
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none !important;
        background: transparent;
        height: 70px;
    }

    #header-logo,
    #menu {
        display: none;
    }

    #mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 24px;
        cursor: pointer;
        z-index: 1002;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #header.is-open+#mobile-menu-toggle .fa-bars {
        display: none;
    }

    #header.is-open+#mobile-menu-toggle .fa-times {
        display: block;
    }

    #mobile-menu-toggle .fa-times {
        display: none;
    }

    #header.is-open {
        display: block; /* 開いた状態でのみ表示する */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 1000;
        overflow-y: auto;
    }

    #header.is-open #menu {
        display: block;
        padding-top: 80px;
        box-sizing: border-box;
    }

    #header.is-open #navi {
        text-align: center;
        line-height: normal;
        padding: 0;
        width: 100%;
    }

    #header.is-open #navi li {
        display: block;
        padding: 0;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    #header.is-open #navi li.animate-in {
        opacity: 1;
        transform: translateY(0);
    }


    #header.is-open #navi li:nth-child(1) {
        transition-delay: 0.05s;
    }

    #header.is-open #navi li:nth-child(2) {
        transition-delay: 0.1s;
    }

    #header.is-open #navi li:nth-child(3) {
        transition-delay: 0.15s;
    }

    #header.is-open #navi li:nth-child(4) {
        transition-delay: 0.2s;
    }

    #header.is-open #navi li:nth-child(5) {
        transition-delay: 0.25s;
    }

    #header.is-open #navi li a {
        display: block;
        padding: 20px;
        margin: 0;
        border-bottom: 1px solid #333;
        font-size: 1.2em;
        background: rgba(0, 0, 0, 0.8);
        color: white;
    }

    #header.is-open #navi li:first-child a {
        border-top: 1px solid #333;
    }

    #header.is-open #navi li a:hover {
        background: rgba(0, 0, 0, 0.9);
    }

    .image-margin {
        display: none !important;
    }
}