@charset "utf-8";

@font-face {
    font-family: 'Shippori Mincho';
    src: url('/blog/fonts/ShipporiMincho-Regular.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* --------------------------共通css-------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    height: 100%;
    color: #0d0d0d;
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: normal;
    font-style: normal;
    margin: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* 画面全体に広げる */
}

main {
    flex: 1;
    /* コンテンツ部分が伸びてフッターを下に押す */
}

a {
    word-break: break-all;
}

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

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

blockquote {
    margin: 1em auto;
    padding: 0.5em 1em;
    border-left: 3px solid #666;
    font-size: 1.1em;
    line-height: 1.6;
}

cite {
    font-style: italic;
    color: #555;
}

dt {
    font-weight: bold;
}

dd {
    margin-left: 20px;
}

strong,
b {
    font-weight: bold;
}

em,
i {
    font-style: italic;
}

ins {
    text-decoration: underline;
}

kbd {
    font-family: monospace;
    font-size: 0.9em;
    padding: 0.1em 0.2em;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 3px;
    display: inline-block;
}

sup {
    vertical-align: super;
    font-size: 0.8em;
}

sub {
    vertical-align: sub;
    font-size: 0.8em;
}

var {
    font-style: italic;
}

abbr[title] {
    border-bottom: 1px dotted;
    /* 下線で略語を示す */
    cursor: help;
    /* ホバー時にヒントを示す */
    text-decoration: none;
}

code,
samp,
pre {
    font-family: monospace;
    background-color: #f4f4f4;
    padding: 0.1em 0.2em;
    border-radius: 3px;
}

address {
    background-color: #fff;
    border: 1px solid #000;
    padding: 5px 20px;
    border-radius: 10px;
}

.inner {
    width: 85%;
    max-width: 1366px;
    margin-left: auto;
    margin-right: auto;
}


.navigation.pagination .page-numbers.current {
    background-color: #fff;
    /* 背景を白に */
    color: #1b1c1d;
    /* 文字色を黒に */
    border-radius: 3px;
}

/* cpmments */
.comments h3 {
    text-align: center;
    font-size: 26px;
    margin: 40px 0 20px;
}

.commets-list .avatar {
    display: block;
    width: 5%;

}

.comment-author.vcard {
    display: flex;
    justify-content: start;
    align-items: center;
}

.comment-meta.commentmetadata {
    font-size: 14px;
}

.comment-edit-link {
    color: #1b1c1d;
}

.comment-body cite {
    color: #333;
}

.comment-body {
    color: #000;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 10px;
    margin: 15px 0;
}

.comment .reply {
    margin: 5px 0;
    margin-left: 1%;
}

.comment .reply a {
    color: #000;
    background-color: #fff;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.comment-form p {
    margin: 5px 0;
}



/* header----------------------------- */
header {
    background-color: #1b1c1d;
}

header a {
    display: block;
    text-align: left;
}

header img {
    width: 86%;
    padding: 15px 0;
}

/* main-------------------------------- */
main {
    background: #100000;
}

/* footer---------------------------- */
footer {
    color: #fff;
    text-align: center;
    background: #1b1c1d;
    font-size: 12px;
    padding: 20px 0;
}

.social-button {
    display: flex;
    justify-content: center;
    /* 横方向の中央寄せ */
    gap: 10px;
    /* ボタン間の余白 */
    padding: 0;
    margin: 10px auto;
}

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

.hamburger-overlay__line {
    position: absolute;
    left: 11px;
    width: 26px;
    height: 2px;
    background-color: #888;
    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;
    z-index: 900;
}

.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;
}

.nav-overlay__list {
    text-align-last: right;
    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;
    margin-left: auto;
}

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

/* menu */

/* トグルボタン */
.menu-toggle {
    display: inline-block;
    padding: 20px;
    color: #fff;
    Font-size: 20px;
    text-decoration: none;
    transition: color .3s;
    cursor: pointer;
}

/* スライドインメニュー本体 */
.menu {
    position: fixed;
    top: 0;
    right: -260px;
    /* 初期は隠す */
    width: 260px;
    height: 100vh;
    background: #1b1c1d;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 1300;
    padding: 24px;
}

/* 閉じるボタン */
.menu-close {
    display: block;
    margin-left: auto;
    /* 右寄せ */
    font-size: 48px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* 表示状態 */
.menu.active {
    right: 0;
}

/* 背景の半透明オーバーレイ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1200;
}

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

.menu h2 {
    color: #fff;
    font-size: 30px;
    margin: 20px 0 40px;
}

.menu ul {
    overflow: scroll;
    height: 550px;
    list-style: none;
    padding: 0;
}


.menu ul li {
    position: relative;
    display: inline-block;
    display: flex;
    justify-content: space-between;
    color: #fff;
    text-decoration: none;
    padding: 4px 0;
    margin: 10px 0;
}

/* 下線（初期は幅ゼロ、中央から） */
.menu ul li a::after {
    content: "";
    position: absolute;
    left: 3%;
    right: auto;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.menu ul li a:hover::after {
    transform: scaleX(1);
}

/* ----------------------個別css----------------------- */

.no-js {

    /* main------------------------------ */
    main {
        position: relative;
        padding-bottom: 20px;
    }

    .subtitle {
        color: #fff;
        font-size: 30px;
        text-align: center;
        padding: 64px 0 30px;
    }

    .caption .inner {
        color: #fff;
        position: relative;
    }

    .caption ul {
        font-size: 30px;
        position: absolute;
        bottom: 10px;
        right: 20px;
    }

    .caption li {
        position: relative;
    }

    .caption li:nth-child(1) {
        right: 40px;
    }

    .caption .border {
        display: block;
        width: 80%;
        height: 7px;
        background: #fff;
    }

    /* プロフィール */
    .border_secound {
        position: relative;
    }

    .border_secound::before {
        content: "";
        position: absolute;
        inset: 0 0 0 15%;
        border-left: 7px solid #fff;
        pointer-events: none;
        z-index: 500;
    }

    .prof_card {
        width: 75%;
        max-width: 1366px;
        font-size: 16px;
        text-align: center;
        background-color: #f4f4f4;
        padding: 30px 20px;
        margin-right: auto;
        margin-left: auto;
    }

    .prof_card img {
        width: 100px;
        height: auto;
        background: #ddd;
        padding: 20px;
        border: 4px solid #000;
        border-radius: 50%;
        margin: 0 auto;
    }

    /* list */
    .list {
        position: relative;
        z-index: 800;
        background: #f4f4f4;
        padding: 20px 20px;
    }

    .list a {
        display: block;
    }

    .list article {
        padding: 20px 5px;
        border-bottom: 1px solid #5b5b5b;
        background-color: #f4f4f4;
        transition: background-color 0.4s ease, color 0.4s ease;
    }

    .list article img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }

    /* aspect-ratioで表示部分の縦横比を固定し、overflow:hiidenではみ出た部分を非表示  */
    .img-box {
        aspect-ratio: 9/5;
        overflow: hidden;
    }

    .list article:hover {
        background-color: #1b1c1d;
        color: #f4f4f4;
    }

    .list_info h3 {
        font-size: 18px;
        margin: 2px 0 10px;
    }

    .list_info p,
    .list_info a {
        font-size: 13px;
    }

    .btn {
        display: block;
        text-align: center;
        width: 200px;
        font-size: 24px;
        background: #f4f4f4;
        display: block;
        margin: 40px auto 20px;
    }

    .nav-links {
        color: #fff;
        font-size: 18px;
        text-align: center;
        letter-spacing: 0.2em;
        margin: 20px 0 20px 45px;
    }

}

.no-web {

    /* main--------------------------------- */
    main {
        padding: 20px 0 10px;
    }

    /* blog */
    .blog {
        background: #f4f4f4;
        padding: 40px 20px;
    }

    .blog_info {
        font-size: 13px;
    }

    .blog_info time {
        margin-bottom: 10px;
    }

    .blog ul {
        margin-left: 20px;
        list-style: none;
    }

    .blog ol {
        margin-left: 20px;
        list-style: decimal;
    }

    .breadcrumbs {
        display: flex;
        column-gap: 5px;
        overflow-x: scroll;
        white-space: nowrap;
        -ms-overflow-style: none;
        /* IE / Edge */
        scrollbar-width: none;
        /* Firefox */
        margin-bottom: 40px;
    }

    .breadcrumbs::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .blog_title {
        font-size: 30px;
        line-height: 1.5;
    }

    .blog_title::before,
    .blog_title::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background-color: #030303;
    }

    .blog_title::before {
        margin: 5px 0 8px;
    }

    .blog_title::after {
        margin: 8px 0 10px;
    }

    .blog_title.long-title {
        font-size: 25px;
    }

    .blog_caption {
        width: 100%;
        min-width: 50%;
        height: 150px;
        object-fit: cover;
        margin-bottom: 30px;
    }

    .blog h3 {
        font-size: 22px;
        background: #fff;
        padding: 5px 10px;
        margin: 40px 0 20px;
    }

    .blog a {
        display: block;
    }

    .blog_img {
        margin: 20px 0;
    }

    .post-nav {
        color: #f4f4f4;
        padding: 0;
        margin: 16px 0;
    }

    .post-nav li {
        margin: 10px 0;
    }

    .post-nav a {
        color: #000;
        position: relative;
        z-index: 5;
    }

    .post-nav .prev {
        text-align: left;
    }

    .post-nav .next {
        text-align: right;
    }

    /* 疑似要素で背景を作る */
    .post-nav a::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 110%;
        height: 110%;
        background: #f4f4f4;
        border-radius: 50px;
        transform: scaleX(1);
        /* 横幅を0にして隠す */
        transform-origin: center;
        /* 中央から伸びる */
        transition: transform 0.3s ease;
        /* アニメーション */
        z-index: -1;
        /* テキストの後ろに置く */
    }

    .post-nav a:hover::before {
        transform: scaleX(1.15);
        /* ホバー時に全体に広がる */
    }

    /* comment-form */
    .comments {
        color: #fff;
    }

    .comment-form {
        max-width: 400px;
        margin: 20px auto;
        display: flex;
        flex-direction: column;
    }

    .comment-form label {
        color: #fff;
        margin: 10px 0 5px;
        font-weight: bold;
    }

    .comment-form textarea {
        display: block;
        width: 100%;
    }

    .comment-form input,
    .comment-form textarea {
        text-align: left;
        font-size: 14px;
        color: #000;
        background-color: #fff;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .comment-form button {
        width: fit-content;
        margin-top: 15px;
        padding: 10px;
        background-color: #333;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .comment-form button:hover {
        background-color: #555;
    }
}

@media (width >=640px) {
    .inner {
        width: 75%;
    }

    h2 {
        font-size: 35px;
    }

    /* header------------ */
    header .inner {
        text-align-last: left;
    }

    header img {
        width: 26%;
    }

    .menu h2 {
        margin: 100px 0 50px;
    }

    .no-js {
        .subtitle {
            padding: 110px 0 60px;
        }

        /* main-------------- */
        .caption ul {
            font-size: 7vw;
            bottom: 60px;
        }

        .caption li:nth-child(1) {
            right: 60px;
        }

        .caption .border {
            width: 100%;
        }

        .prof_card {
            text-align: left;
            display: grid;
            grid-template-columns: 30fr 70fr;
            column-gap: 40px;
            align-items: center;
            padding: 60px;
            margin-right: 0;
        }

        .prof_card img {
            width: 150px;
        }

        .prof_card p {
            font-size: 20px;
        }

        .list {
            padding: 30px 60px;
        }

        .list article {
            display: grid;
            grid-template-columns: 3fr 7fr;
            align-items: center;
            column-gap: 40px;
            padding: 40px 10px;
        }

        .list_info h3 {
            font-size: 24px;
            margin: 5px 0 20px;
        }
    }

    .no-web {

        main {
            padding: 40px 0 30px;
            flex: 1;
            /* コンテンツ部分が伸びてフッターを下に押す */
        }

        .blog {
            padding: 40px 60px;
        }

        .blog_info time {
            margin-bottom: 0;
        }

        .blog_title {
            font-size: 40px;
            margin: 0 0 30px;
        }

        .blog_caption {
            width: 100%;
            min-width: 50%;
            height: 350px;
            object-fit: cover;
            margin-bottom: 30px;
        }

        .blog h3 {
            font-size: 30px;
            padding: 10px;
        }

        .post-nav {
            display: flex;
            justify-content: space-between;
            /* 左右に配置 */
            align-items: center;
        }

        .post-nav li {
            margin: 0;
            /* 横並び用に縦余白を消す */
        }

        .post-nav .prev {
            text-align: left;
            margin-right: auto;
            /* 左端 */
        }

        .post-nav .next {
            text-align: right;
            margin-left: auto;
            /* 右端 */
        }

    }
}