@charset "utf-8";

/* ------------------------------------common----------------------------------- */
html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #133f70;
    font-size: 14px;
    font-family: "Hiragino Mincho Pro", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "ヒラギノ明朝", serif;
    line-height: 1.7;
    letter-spacing: 0.025em;
    background-color: #e6f0fb;
}

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

.inner {
    width: 89%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

main {
    flex: 1;
}

/* ------hamburger　menu------ */
.hamburger {
    display: block;
    width: 30px;
    height: 22px;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* ---開いたときのアニメーション--- */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

header nav {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

header nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background-color: rgba(110, 149, 201, 0.8);
}

/* ------header------ */

header {
    padding: 15px 0;
    background-color: rgba(92, 122, 166, 0.8);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

header nav {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    background-color: rgba(92, 122, 166, 0.95);
    padding: 20px;
    border-radius: 8px;
}

header nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

header img {
    width: 60px;
}

a {
    color: #133f70;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #e6f0fb;
    text-decoration: underline;
}

.btn:hover {
    color: #133f70;
    background-color: #9ab2d2;
    text-decoration: underline;
}

.title:hover {
    color: #5f8ec4;
    text-decoration: underline;
}

/* ------footer------ */

footer {
    padding: 40px 0 45px 0;
    background-image: url(/blog/wp-content/themes/17_blog/images/2x/footer_umi.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100%;
    background-color: #9ab2d2;
    text-align: center;
}

footer ul {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    align-items: center;
    column-gap: 70px;
    font-size: 15px;
    font-weight: bold;
}


/* ------------------------------------top----------------------------------- */

/* ------main------ */
.mainvisual {
    padding: 300px 0;
    /* background: url(/images/2x/umi.png) no-repeat bottom center/100%; */
    background-image: url(/blog/wp-content/themes/17_blog/images/2x/umi.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100%;
}

.mainvisual h1 {
    font-size: 35px;
    font-weight: bold;
    text-align: center;
}

/* ------titleサムネ------ */
.if {
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #ddd;
    position: relative;
}

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

.wp-post-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #ddd;
    position: relative;
}


/* ------category button------ */
.category-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #7c95bf;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
}

/* ------blog ------*/
.blog_top {
    text-align: center;
}

.blog_top h2 {
    padding: 200px 0 90px 0;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.blog_top article {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    width: 80%;
    padding: 30px 25px 30px 25px;
    background-color: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

.blog_top article:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog_top h3 {
    margin: 30px 0 5px 0;
    font-size: 25px;
    font-weight: bold;
    height: calc(50px + 42px);
    /* 2行分の高さ */
    /* フォントのサイズ×行数 + フォントのサイズ×行数×行間 */
}

.blog_top time {
    margin-bottom: 10px;
    font-size: 18px;
}

.cafe {
    display: grid;
    row-gap: 100px;
}

.blog_top .btn {
    margin: 75px 0 100px 0;
}

.btn {
    padding: 15px;
    display: inline-block;
    width: 160px;
    background-color: #133f70;
    color: #fff;
    font-weight: bold;
}

/* ------about------- */
.about {
    margin-top: 70px;
    padding: 50px 0 25px 0;
    /* background: url(/images/2x/about_umi.png) no-repeat top center/100%; */
    background-image: url(/blog/wp-content/themes/17_blog/images/2x/about_umi.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
    text-align: center;
}

.about h2 {
    font-size: 30px;
    font-weight: bold;
}

.about .name {
    font-size: 15px;
    font-weight: bold;
}

.about .circle {
    min-width: 0%;
    margin: 20px 0 15px 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.about .x_icon {
    min-width: 0%;
    margin-top: 20px;
    width: 35px;
    height: 35px;
}


/* ------------------------------------single----------------------------------- */
.single {

    main {
        padding-top: 100px;
    }

    .start h1,
    .start h2,
    .start h3 {
        position: relative;
        padding-left: 12px;
        font-weight: bold;
        line-height: 1.4;
    }

    .start h1::before,
    .start h2::before,
    .start h3::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        width: 3px;
        height: 1.3em;
        background-color: #5f8ec4;
    }

    h1 {
        margin-top: 70px;
        margin-bottom: 15px;
        font-size: 25px;
        font-weight: bold;
    }

    h2 {
        margin: 45px 0 5px 0;
        font-size: 21px;
        font-weight: bold;
        text-align: left;
    }

    h3 {
        margin: 40px 0;
        font-size: 19px;
        font-weight: bold;
    }

    h4 {
        margin: 30px 0;
        font-size: 18px;
        font-weight: bold;
    }

    h5 {
        margin: 25px 0;
        font-size: 15px;
        font-weight: bold;
    }

    h6 {
        margin: 20px 0;
        font-size: 13px;
        font-weight: bold;
    }

    .blog p {
        margin-bottom: 27px;
        text-align: left;
    }

    .blog img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 600px;
    }

    .start p {
        margin-top: 30px;
    }

    .start {
        padding: 0;
        background: none;
    }

    .post-nav {
        display: flex;
        margin-top: 130px;
        justify-content: center;
        font-weight: bold;
    }

    .post-nav .prev::before {
        content: "";
        display: inline-block;
        width: 1px;
        height: 20px;
        background-color: #aaa;
        margin-left: 20px;
        margin-right: 20px;
        vertical-align: middle;
    }


    /* ------Comment------ */

    .widget_title {
        margin: 20px 0 15px 0;
        font-size: 20px;
        font-weight: bold;
    }

    .comment-section {
        background: transparent;
        padding: 1.5rem 0;
        margin: 2rem auto;
        border-top: 1px solid #dce4ef;
        max-width: 650px;
    }

    .comment-section h2 {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: #133f70;
    }

    /* ---コメントフォーム--- */
    .comment-form {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    /* ---入力するところ--- */
    .comment-form input,
    .comment-form textarea {
        width: 100%;
        padding: 0.7rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        background: #fff;
        box-sizing: border-box;
    }

    .comment-form textarea {
        height: 150px;
    }

    .comment-form input::placeholder,
    .comment-form textarea::placeholder {
        color: #999;
        font-size: 14px;
    }

    /* ---submit--- */
    .comment-form button,
    .comment-form input[type="submit"] {
        width: 80px;
        align-self: flex-start;
        background: #9ab2d2;
        color: #fff;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
        transition: background 0.3s;
    }

    .comment-form button:hover,
    .comment-form input[type="submit"]:hover {
        background: #6e8cc0;
    }

    /* --------------フォーマット---------------- */

    /* ------HTMLフォーマット------ */
    .wp-block-quote {
        position: relative;
        padding: 20px 20px 20px 50px;
        margin: 20px 0;
        font-style: italic;
        color: #133f70;
        border: 1px solid #6e8cc0;
    }

    .wp-block-quote::before {
        content: "“";
        position: absolute;
        left: 15px;
        top: 10px;
        font-size: 3em;
        color: #ccc;
        line-height: 1;
    }

    .wp-block-quote cite {
        display: block;
        margin-top: 10px;
        font-style: normal;
        text-align: right;
        color: #133f70;
    }

    .has-fixed-layout {
        background-color: #fff;
    }

    .has-fixed-layout th {
        background-color: #9ab2d2;
        font-size: 17px;
        text-align: center;
        font-weight: bold;
    }

    .has-fixed-layout td {
        text-align: center;
    }

    .wp-block-list ul {
        list-style-type: disc;
        margin: 1em 0;
        padding-left: 20px;
    }

    .wp-block-list ol {
        list-style-type: decimal;
        margin: 1em 0;
        padding-left: 20px;
    }

    /* ------引用フォーマット------ */
    .start blockquote {
        position: relative;
        padding: 20px 20px 20px 50px;
        margin: 20px 0;
        font-style: italic;
        color: #133f70;
        border: 1px solid #6e8cc0;
    }

    .start blockquote::before {
        content: "“";
        position: absolute;
        left: 15px;
        top: 10px;
        font-size: 3em;
        color: #ccc;
        line-height: 1;
    }

    /* ------リストフォーマット------ */
    .start ol {
        list-style-type: decimal;
        margin: 1em 0;
        padding-left: 20px;
    }
}


/* 記事一覧 */
.notes article {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    width: 80%;
    padding: 30px 25px 30px 25px;
    background-color: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

.notes article:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.notes h1 {
    margin-bottom: 75px;
    padding-top: 220px;
    font-size: 35px;
    font-weight: bold;
    text-align: center;
}

.notes h2 {
    margin: 30px 0 15px 0;
    font-size: 20px;
    font-weight: bold;
}

.notes p {
    margin-bottom: 10px;
    font-size: 18px;
}

.notes .post-box {
    background-color: #fff;
    padding: 30px 25px 30px 25px;
}

/* ページネーション */
.pagination {
    width: 100%;
    display: flex;
    grid-auto-flow: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    column-gap: 8px;
    list-style: none;
    padding-left: 0;
    margin: 65px 0 80px 0;
    grid-column: 1 / -1;
    transform: scale(0.8);
}

.pagination a:hover {
    background-color: #f5f9ff;
    color: #5f8ec4;
}

.page-numbers {
    display: grid;
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border: 1px solid #9ab2d2;
    border-radius: 50%;
    background-color: #fff;
    color: #133f70;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.current {
    background-color: #133f70;
    color: #fff;
    border: none;
    text-decoration: none;
}

.pagination .prev,
.pagination .next {
    border-radius: 20px;
    padding: 0 15px;
    min-width: auto;
    transition: all 0.3s ease;
}

.pagination .prev:hover,
.pagination .next:hover {
    background-color: #f5f9ff;
    color: #5f8ec4;
}

/* ------------------------------------040----------------------------------- */
.not-found {
    text-align: center;
    padding: 250px 0 200px 0;
    color: #133f70;
}

.not-found h1 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.not-found h2 {
    font-size: 15px;
    margin-bottom: 20px;
}

.not-found p {
    font-size: 12px;
    margin-bottom: 30px;
}

.not-found a {
    display: inline-block;
    padding: 6px 25px;
    background-color: #133f70;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.not-found a:hover {
    background-color: #9ab2d2;
    color: #133f70;
}

/* ------------------------------------メディアクエリ----------------------------------- */
@media (width>640px) {
    header nav {
        display: flex;
        /* 横並び */
        gap: 20px;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        background: none;
        width: auto;
        padding: 0;
    }

    .hamburger {
        display: none;
    }

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

    header ul {
        display: grid;
        grid-auto-flow: column;
        column-gap: 30px;
        font-weight: bold;
    }

    .mainvisual {
        padding: 350px 0 400px 0;
    }

    .mainvisual h1 {
        margin-bottom: 100px;
    }

    .blog_top .cafe {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 50px;
        row-gap: 35px;
    }

    .blog_top article {
        width: 100%;
    }

    .blog_top .btn {
        margin-bottom: 200px;
    }

    .about {
        padding: 300px 0 90px 0;
    }


    footer {
        padding: 70px 0 100px 0;
    }


    /* single */
    .single {
        .blog img {
            width: 100%;
        }

        .blog p {
            margin-bottom: 35px;
        }

        h2 {
            margin: 45px 0 5px 0;
        }

        .start p {
            margin-top: 35px;
        }

        .end ul {
            margin: 70px 0 30px 0;
        }

        .comment-section {
            width: 100%;
            max-width: none;
        }

        footer {
            padding: 70px 0 100px 0;
        }
    }

    /* 記事一覧 */
    .wp-singular .posts {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 50px;
        row-gap: 50px;
    }

    .wp-singular article {
        width: 100%;
        margin: 0;
    }

    .pagination {
        margin: 50px 0 120px 0;
        column-gap: 15px;
        transform: none;
    }

    .post-nav {
        margin: 150px 0 40px 0;
    }

    .not-found h1 {
        font-size: 30px;
    }

    .not-found h2 {
        font-size: 17px;
    }

    .not-found p {
        font-size: 14px;
    }
}