@charset "utf-8";

body {
    background-image: url(/blog/wp-content/themes/22_blog/images/mainvisual.png);
    background-size: cover;
    background-position: center;
    font-size: 14px;
    font-family: "abolition", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-weight: 1.75;
    letter-spacing: 0.3em;
}

img {
    max-width: 100px;
    height: auto;
    vertical-align: middle;
}

.inner {
    width: 88%;
    margin-left: auto;
    margin-right: auto;
}


.loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 555;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader .txt {
    font-size: 45px;
    font-weight: bold;
    color: rgb(30, 50, 93);
    display: none;
}


.logo {
    max-width: 90px;
    height: auto;
    vertical-align: middle;
}

.pic img {
    width: 100%;
    height: auto;
}

.attachment-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3 / 2;
}


article .pic {
    position: relative;
    overflow: hidden;
    margin: 20px 0 20px;
    padding: 20px 20px;
    /* background: #fff; */
    border-radius: 10px;
    transition: transform 0.3s ease;

}

article .pic:hover {
    transform: translateY(-5px);
    /* ふわっと浮かせる */
}

article .pic::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    /* 背景をぼかす */
    background: rgba(37, 37, 37, 0.2);
    /* 半透明で色もつける */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    /* コンテンツの後ろに置く */
}

article .pic:hover::before {
    opacity: 1;
}

.blur-image img {
    width: 100%;
    display: block;
}




h2 {
    color: #fff;
    text-align: center;
    font-size: 17px;
    letter-spacing: 0.5em;
    font-weight: bold;
    margin: 50px 0 70px;
    text-shadow: 0.5px 0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px -0.5px 0 #000;
}

h3 {
    color: #fff;
    text-align: center;
    letter-spacing: 0.5em;
    text-shadow: 0.5px 0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px -0.5px 0 #000;
}

h3::after {
    content: "";
    display: block;
    width: 40px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    border-bottom: #fff 1px solid;
}



h4 {
    color: #fff;
    font-size: 14px !important;
    text-shadow: 0.5px 0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px -0.5px 0 #000;
}

.data {
    color: #fff;
    font-size: 10px !important;
    text-shadow: 0.5px 0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px -0.5px 0 #000;
    margin-bottom: 0px;
}

p {
    color: #fff;
    margin-top: 10px;
    margin-bottom: 20px;
    text-shadow: 0.5px 0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px -0.5px 0 #000;
}

header {
    position: relative;
    top: -30px;
    left: 0;
    background-color: #fff;
    padding: 20px 0;
}

header .inner {
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
}

.mainvisual {
    position: relative;
    width: 100%;
    height: 70vh;
    /* 画面の高さの7割 */
    background: url("<?php echo get_template_directory_uri(); ?>/images/mainvisual.jpg") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.mainvisual::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* 半透明の黒で暗くする */
}

.mainvisual-inner {
    position: relative;
    /* ::after の上に載せるため */
    z-index: 1;
}

.mainvisual-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.mainvisual-sub {
    font-size: 0.8rem;
}


.global ul {
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    column-gap: 20px;
    color: #000;
    align-items: center;
}

article img {
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}



section .article {
    /* display: grid; */
    /* grid-auto-flow: column; */
    /* grid-template-columns: repeat(2, 2fr); */
    grid-gap: 60px;
}

section .posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
}

.button {
    border-right: #fff 1px solid;
}


.posts li {
    margin-bottom: 60px;
    font-size: 13px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    /* ボタンの間隔 */
    margin-top: 20px;
    margin-bottom: 30px;
}


.page.active {
    background-color: black;
    color: white;
}


small {
    color: #fff;
}

footer ul {
    color: #fff;
}

footer {
    position: relative;
    background-color: #2B2B2B;
    padding: 60px 0;
}

pre {
    word-break: break-all;
    white-space: pre-wrap;
}

footer small {
    color: #fff;
    position: absolute;
    top: 260px;
    right: 2%;
    font-size: 8px;
}

.top {
    scroll-behavior: smooth;
}

.nav-previous {
    font-size: 10px;
}

.nav-next {
    font-size: 10px;
}

/* overlay-styles.css */
.hamburger-overlay {
    position: absolute;
    top: 15px;
    right: 10px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 999;
}

.hamburger-overlay__line {
    position: absolute;
    left: 11px;
    width: 26px;
    height: 2px;
    background-color: #333;
    transition: all .6s;
    z-index: 999;
}

.hamburger-overlay__line:nth-of-type(1) {
    top: 14px;
}

.hamburger-overlay__line:nth-of-type(2) {
    top: 23px;
}

.hamburger-overlay__line:nth-of-type(3) {
    top: 32px;
}

.hamburger-overlay.active .hamburger-overlay__line {
    background-color: #fff;
}

.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(1) {
    transform: translateY(9px) rotate(-45deg);
}

.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(2) {
    opacity: 0;
}

.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(3) {
    transform: translateY(-9px) rotate(45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    visibility: hidden;
    opacity: 0;
    transition: all .6s;
    z-index: 99;
}

.nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.nav-overlay__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 99;
}

.nav-overlay__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-overlay__item {
    opacity: 0;
    transform: translateY(20px);
    transition: all .6s;
}

.nav-overlay.active .nav-overlay__item {
    opacity: 1;
    transform: translateY(0);
}

.nav-overlay.active .nav-overlay__item:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-overlay.active .nav-overlay__item:nth-child(2) {
    transition-delay: 0.2s;
}

.nav-overlay.active .nav-overlay__item:nth-child(3) {
    transition-delay: 0.3s;
}

.nav-overlay.active .nav-overlay__item:nth-child(4) {
    transition-delay: 0.4s;
}

.nav-overlay__link {
    display: inline-block;
    padding: 20px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: color .3s;
}

.nav-overlay__link:hover {
    color: #4a90e2;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    /* 丸くするポイント */
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: #333;
    color: #fff;
}

.nav-links .current {
    background: #555;
    /* WordPressっぽい青 */
    color: #fff;
    font-weight: bold;
}

.nav-links .dots {
    display: none;
}

.nav-links .prev,
.nav-links .next {
    display: none;
    padding: 0 14px;
    width: auto;
    /* 固定幅にしない */
    border-radius: 18px;
    /* 丸角で pill に */
}

/*---------------
single page
-----------------*/

body.single {
    h3 {
        font-size: 20px;
        padding-top: 10px;
        margin-bottom: 50px;
        font-weight: bold;
        text-align: center;
    }

    .inner {
        color: #fff;
        font-size: 14px !important;
        text-shadow: 0.5px 0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px -0.5px 0 #000;
    }

    h2 {
        color: #fff;
        font-size: 20px !important;
        text-shadow: 0.5px 0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px -0.5px 0 #000;
    }


    .visible {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
        padding: 25px;
        background-color: rgba(255, 255, 255, 0.5);
    }

    .example {
        max-width: 60%;
        margin-bottom: 20px;
    }

    footer small {
        color: #fff;
        position: absolute;
        top: 260px;
        right: -0.1%;
        font-size: 8px;
    }

    /*-------
    php
    --------*/

    .post-navigation {
        display: grid;
        grid-auto-flow: column;
        column-gap: 50px;
        text-align: center;
        margin-bottom: 70px;
    }

    .document li {
        list-style: circle;
        margin-left: 10px;
    }

    .document td {
        border: 1px solid;
        padding: 20px;
    }

    .document th {
        border: 1px solid;
        padding: 20px;
    }

    .document dt {
        margin: 20px 0;
    }

    b {
        word-break: break-all;
        white-space: pre-wrap;
        text-shadow: 0.5px 0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px -0.5px 0 #000;
    }

    /* 共通設定：画像がはみ出さない */
    img {
        height: auto;
    }

    /* 左寄せ */
    .alignleft {
        float: left;
        margin: 0 1em 1em 0;
    }

    /* 右寄せ */
    .alignright {
        float: right;
        margin: 0 0 1em 1em;
    }

    /* 中央寄せ */
    .aligncenter {
        display: block;
        margin-left: auto;
        margin-right: auto;
        clear: both;
    }

    /* 指定なし（alignnone） */
    .alignnone {
        display: inline-block;
        margin: 1em auto;
    }

    /* キャプション対応（もし figure + figcaption 形式なら） */
    .wp-caption {
        text-align: center;
        margin: 1em auto;
        max-width: 100%;
    }

    .wp-caption img {
        display: block;
        margin: 0 auto;
    }

    .wp-caption-text {
        font-size: 0.9em;
        color: #666;
        margin-top: 0.3em;
    }

    /* 「左寄せ」という文字が含まれる段落は左寄せ */
    p:contains("左寄せ") {
        text-align: left;
    }

    /* 「中央寄せ」という文字が含まれる段落は中央寄せ */
    p:contains("中央寄せ") {
        text-align: center;
    }

    /* 「右寄せ」という文字が含まれる段落は右寄せ */
    p:contains("右寄せ") {
        text-align: right;
    }

    /* 「両端揃え」という文字が含まれる段落はjustify */
    p:contains("両端揃え") {
        text-align: justify;
    }

    /* 全体のblockquote共通スタイル */
    blockquote {
        border-left: 4px solid #ccc;
        /* 左にライン */
        padding-left: 1em;
        /* 内側余白 */
        margin: 1.5em 0;
        font-style: italic;
        /* 斜体にする */
        color: #555;
        /* 文字色 */
        background: #f9f9f9;
        /* 背景色を薄く */
        border-radius: 4px;
    }

    /* 引用の中のcite（出典） */
    blockquote cite {
        display: block;
        margin-top: 0.5em;
        font-size: 0.9em;
        text-align: right;
        color: #888;
    }


    /* コメントフォーム全体を四角で囲む */
    #commentform {
        max-width: 600px;
        margin: 2rem auto;
        padding: 2rem;
        background: #fafafa;
        border: 2px solid #ccc;
        border-radius: 0;
        /* 四角く */
        font-family: "Helvetica Neue", Arial, sans-serif;
    }

    /* コメント入力欄の囲み */
    #commentform textarea {
        width: 100%;
        padding: 1rem;
        border: 0.5px solid #bbb;
        border-radius: 0;
        /* 四角 */
        font-size: 1rem;
        resize: vertical;
        transition: border-color 0.2s;
        box-sizing: border-box;
        overflow-wrap: break-word;
        transition: background 0.3s, transform 0.1s;
    }

    #commentform textarea:focus {
        border-color: #000;
        outline: none;
    }

    #commentform textarea:hover {
        background: #000;
    }


    /* コメントラベル */
    #commentform label {
        font-weight: bold;
        margin-bottom: 0.5rem;
        display: block;
    }

    /* SUBMITボタン → 四角だけど角は丸く */
    #commentform .submit {
        background: #666;
        color: #fff;
        font-size: 1rem;
        font-weight: bold;
        border: none;
        border-radius: 8px;
        /* ←角を少し丸める */
        padding: 0.75rem 1.5rem;
        cursor: pointer;
        transition: background 0.3s, transform 0.1s;
    }

    #commentform .submit:hover {
        background: #000;
    }

    #commentform .submit:active {
        transform: scale(0.97);
    }

    .comment-body p {
        background-color: #000;
        /* 背景色 */
        border: 0.5px solid #fff;
        /* 枠線 */
        border-radius: 5px;
        /* 少し角丸（完全四角にしたいなら 0） */
        padding: 12px 16px;
        /* 内側余白 */
        margin: 8px 0;
        /* 外側余白 */
        display: inline-block;
        /* テキスト幅に合わせたいなら inline-block */
        max-width: 90%;
        /* 横幅が広がりすぎないよう制御 */
        line-height: 1.6;
        /* 読みやすい行間 */
    }



    /*------------------
    menu
    -----------------*/
    /* overlay-styles.css */
    .hamburger-overlay {
        position: fixed;
        top: 60px;
        right: 40px;
        z-index: 1000;
        width: 48px;
        height: 48px;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .hamburger-overlay__line {
        left: 11px;
        width: 26px;
        height: 2px;
        background-color: #333;
        transition: all .6s;
    }

    .hamburger-overlay__line:nth-of-type(1) {
        top: 14px;
    }

    .hamburger-overlay__line:nth-of-type(2) {
        top: 23px;
    }

    .hamburger-overlay__line:nth-of-type(3) {
        top: 32px;
    }

    .hamburger-overlay.active .hamburger-overlay__line {
        background-color: #fff;
    }

    .hamburger-overlay.active .hamburger-overlay__line:nth-of-type(1) {
        transform: translateY(9px) rotate(-45deg);
    }

    .hamburger-overlay.active .hamburger-overlay__line:nth-of-type(2) {
        opacity: 0;
    }

    .hamburger-overlay.active .hamburger-overlay__line:nth-of-type(3) {
        transform: translateY(-9px) rotate(45deg);
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        visibility: hidden;
        opacity: 0;
        transition: all .6s;
    }

    .nav-overlay.active {
        visibility: visible;
        opacity: 1;
    }

    .nav-overlay__content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        text-align: center;
    }

    .nav-overlay__list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-overlay__item {
        opacity: 0;
        transform: translateY(20px);
        transition: all .6s;
    }

    .nav-overlay.active .nav-overlay__item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-overlay.active .nav-overlay__item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-overlay.active .nav-overlay__item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-overlay.active .nav-overlay__item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-overlay.active .nav-overlay__item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-overlay__link {
        display: inline-block;
        padding: 20px;
        color: #fff;
        font-size: 24px;
        text-decoration: none;
        transition: color .3s;
    }

    .nav-overlay__link:hover {
        color: #4a90e2;
    }

    .comment-reply-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        /* 四角を強調：角をほぼゼロにする */
        border-radius: 6px;
        /* 完全角にしたければ 0 に */
        padding: 10px 14px;
        min-width: 84px;
        /* 幅を揃えたいときに調整 */
        height: 40px;
        margin-bottom: 20px;

        background-color: #fff;
        /* 背景色：好きな色に */
        color: #fff;
        border: 0.5px solid #000;
        /* 境界線で角張りを強調 */
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
    }
}

/*---------------------------
about page
---------------------------*/

@media(540px <=width) {
    /* スマホよりデカくなったらこうなるのが、mediaです。 */

    .inner {
        width: 88%;
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
    }

    img {
        max-width: 150px;
        height: auto;
        vertical-align: middle;
    }

    .mouse {
        background: black;
        border-radius: 50%;
        position: fixed;
        z-index: 100;
        pointer-events: none;
        transition: transform 200ms ease-in-out, opacity 200ms ease-in-out;
    }

    header {
        position: relative;
        top: 0;
        left: 0;
        background-color: #fff;
        padding: 30px 0;
    }

    .logo {
        max-width: 110px;
        height: auto;
        vertical-align: middle;
    }

    .mainvisual {
        position: relative;
        width: 100%;
        height: 85vh;
        /* 画面の高さの7割 */
        background: url("<?php echo get_template_directory_uri(); ?>/images/mainvisual.jpg") no-repeat center center/cover;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-align: center;
    }

    .mainvisual::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
        /* 半透明の黒で暗くする */
    }

    .mainvisual-inner {
        position: relative;
        /* ::after の上に載せるため */
        z-index: 1;
    }

    .mainvisual-title {
        font-size: 2.4rem;
        margin-bottom: 10px;
    }

    .mainvisual-sub {
        font-size: 1.2rem;
    }

    /*---------
    search
    --------*/
    .search-category {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin: 30px 0 30px 0;
        gap: 20px;
        color: #fff;
        text-shadow: 0.5px 0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px -0.5px 0 #000;
    }


    .search-logo,
    .category-logo {
        font-weight: bold;
        font-size: 18px;
        cursor: pointer;
        display: inline-block;
        position: relative;
    }

    .search-box form {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* 入力欄（白背景＋黒文字） */
    .search-box input[type="search"] {
        flex: 1;
        min-width: 200px;
        padding: 8px 12px;
        border: 0.5px solid #fff;
        /* 黒枠 */
        border-radius: 4px;
        background-color: #000;
        /* 背景：白 */
        color: #fff;
        /* 文字色：黒 */
        font-size: 16px;
        outline: none;
    }

    .search-box input[type="search"]::placeholder {
        color: #777;
    }

    /* 検索ボタン（黒背景＋白文字） */
    .search-box input[type="submit"] {
        padding: 8px 16px;
        border: 0.5px solid #fff;
        border-radius: 4px;
        background-color: #000;
        color: #fff;
        font-weight: bold;
        cursor: pointer;
        transition: 0.3s;
    }

    .search-box input[type="submit"]:hover {
        background-color: #333;
        /* hoverで濃いグレー */
    }

    /*------------
    img
    ------------*/

    .blur-image {
        width: 100%;
        display: block;
        filter: grayscale(100%);
        /* 最初はモノクロ */
        transition: filter 0.5s ease;
        /* なめらかに変化 */
    }

    .blur-image:hover {
        filter: grayscale(0%);
        /* カラーに戻る */
    }

    h2 {
        font-size: 20px;
    }

    ul li {
        font-size: 12px;
    }

    footer small {
        color: #fff;
        position: absolute;
        top: 50%;
        right: -80px;
        transform: rotate(270deg);
        font-size: 12px;
    }

    .posts li {
        margin-bottom: 60px;
        font-size: 20px;
    }

    p {
        color: #fff;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    footer {
        position: relative;
        background-color: #2B2B2B;
        padding: 100px 0 100px;
    }

    /* overlay-styles.css */
    .hamburger-overlay {
        position: fixed;
        top: 60px;
        right: 40px;
        z-index: 1000;
        width: 48px;
        height: 48px;
        border: none;
        background: transparent;
        cursor: pointer;
        z-index: 999;
    }

    .hamburger-overlay__line {
        left: 11px;
        width: 26px;
        height: 2px;
        background-color: #333;
        transition: all .6s;
    }

    .hamburger-overlay__line:nth-of-type(1) {
        top: 14px;
    }

    .hamburger-overlay__line:nth-of-type(2) {
        top: 23px;
    }

    .hamburger-overlay__line:nth-of-type(3) {
        top: 32px;
    }

    .hamburger-overlay.active .hamburger-overlay__line {
        background-color: #fff;
    }

    .hamburger-overlay.active .hamburger-overlay__line:nth-of-type(1) {
        transform: translateY(9px) rotate(-45deg);
    }

    .hamburger-overlay.active .hamburger-overlay__line:nth-of-type(2) {
        opacity: 0;
    }

    .hamburger-overlay.active .hamburger-overlay__line:nth-of-type(3) {
        transform: translateY(-9px) rotate(45deg);
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        visibility: hidden;
        opacity: 0;
        transition: all .6s;
    }

    .nav-overlay.active {
        visibility: visible;
        opacity: 1;
    }

    .nav-overlay__content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        text-align: center;
    }

    .nav-overlay__list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-overlay__item {
        opacity: 0;
        transform: translateY(20px);
        transition: all .6s;
    }

    .nav-overlay.active .nav-overlay__item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-overlay.active .nav-overlay__item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-overlay.active .nav-overlay__item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-overlay.active .nav-overlay__item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-overlay.active .nav-overlay__item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-overlay__link {
        display: inline-block;
        padding: 20px;
        color: #fff;
        font-size: 24px;
        text-decoration: none;
        transition: color .3s;
    }

    .nav-overlay__link:hover {
        color: #4a90e2;
    }

    /* blog */

    section .article {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 60px;
    }

}

@media (540px<=width) {
    body.single {
        p {
            color: #fff;
            margin-top: 10px;
            text-shadow: 0.5px 0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px -0.5px 0 #000;
        }

        footer small {
            color: #fff;
            position: absolute;
            top: 180px;
            right: -4%;
            font-size: 8px;
        }

        .comment-reply-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;

            /* 四角を強調：角をほぼゼロにする */
            border-radius: 6px;
            /* 完全角にしたければ 0 に */
            padding: 10px 14px;
            min-width: 84px;
            /* 幅を揃えたいときに調整 */
            height: 40px;
            margin-bottom: 20px;

            background-color: #fff;
            /* 背景色：好きな色に */
            color: #fff;
            border: 0.5px solid #000;
            /* 境界線で角張りを強調 */
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
            box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
        }

        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.8s ease, visibility 0.8s ease;
        }

        .loader.hide {
            opacity: 0;
            visibility: hidden;
        }



    }
}


.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-content {
    font-size: 32px;
    color: #000;
    display: inline-block;
}

.loader-content span {
    display: inline-block;
    animation: bounce 0.6s infinite alternate;
}

/* 一文字ずつ時間差で動かす */
.loader-content span:nth-child(1) {
    animation-delay: 0s;
}

.loader-content span:nth-child(2) {
    animation-delay: 0.1s;
}

.loader-content span:nth-child(3) {
    animation-delay: 0.2s;
}

.loader-content span:nth-child(4) {
    animation-delay: 0.3s;
}

.loader-content span:nth-child(5) {
    animation-delay: 0.4s;
}

.loader-content span:nth-child(6) {
    animation-delay: 0.5s;
}

.loader-content span:nth-child(7) {
    animation-delay: 0.6s;
}

/* ドットはフェードインを繰り返す */
.loader-content .dot {
    animation: dots 1.2s infinite;
    opacity: 0;
}

.loader-content .dot:nth-of-type(8) {
    animation-delay: 0.2s;
}

.loader-content .dot:nth-of-type(9) {
    animation-delay: 0.4s;
}

.loader-content .dot:nth-of-type(10) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

@keyframes dots {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.arrow-line {
    position: relative;
    width: 3px;
    height: 30px;
    background: #fff;
    margin: 20px auto;
    animation: bounce 1.5s infinite;
}

.arrow-line::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #fff;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.mainvisual-sub {
    margin: 30px 0 30px;
}

.search-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 30px 0 30px 0;
    gap: 20px;
    color: #fff;
    text-shadow: 0.5px 0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px -0.5px 0 #000;
}


.search-logo,
.category-logo {
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.search-box {
    display: none;
    /* 最初は非表示 */
}

.search-box form {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 入力欄（白背景＋黒文字） */
.search-box input[type="search"] {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 0.5px solid #fff;
    /* 黒枠 */
    border-radius: 4px;
    background-color: #000;
    /* 背景：白 */
    color: #fff;
    /* 文字色：黒 */
    font-size: 16px;
    outline: none;
}

.search-box input[type="search"]::placeholder {
    color: #777;
}

.search-box input[type="text"] {
    border: 0.5px solid #fff;
    border-radius: 4px;
    padding: 8px 12px;
}

/* 検索ボタン（黒背景＋白文字） */
.search-box input[type="submit"] {
    padding: 8px 16px;
    border: 0.5px solid #fff;
    border-radius: 4px;
    background-color: #000;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.search-box input[type="submit"]:hover {
    background-color: #333;
    /* hoverで濃いグレー */
}