/*
Theme Name: YK FREE SOZAI
Description: 先生のためのフリー素材サイト
Version: 1.0
Author: Yuka
*/

@charset "UTF-8";


/* ==================================================
   基本
================================================== */

html {
    font-family: "Kosugi Maru", sans-serif;
}

body {
    width: 100%;
    margin: 0;

    background-color: #fffcd0;

    color: #333;
    font-family: "Kosugi Maru", sans-serif;
}

button,
input,
textarea,
select {
    font-family: "Kosugi Maru", sans-serif;
}


/* ==================================================
   ヘッダー
================================================== */

.site-header {
    width: 100%;
    padding: 0;
    background-color: #fffaf5;
}

.header {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ==================================================
   なみなみ屋根
================================================== */

.header-roof,
.header-wall {
    display: block;

    width: 100%;
    height: auto;

    filter: drop-shadow(
        0 6px 4px rgba(0, 0, 0, 0.12)
    );
}


/* ==================================================
   ロゴ・説明
================================================== */

.header .wrapper {
    width: 100%;
    padding-bottom: 20px;

    text-align: center;
}

.site-title {
    margin: 0;

    color: #65c8d0;
    font-size: 36px;
    font-weight: 900;

    filter: drop-shadow(
        0 6px 4px rgba(0, 0, 0, 0.12)
    );
}

.site-logo {
    display: block;

    width: 200px;
    height: auto;

    margin: 0 auto;
}

.site-description {
    margin-top: 15px;
}


/* ==================================================
   ヘッダー：スマホ
================================================== */

@media (max-width: 700px) {

    .header .wrapper {
        padding: 30px 15px 0;
    }

    .site-logo {
        width: 80px;
        padding-bottom: 0;
    }

    .header-roof {
        padding: 0;
    }

    .header-wall {
        display: none;
    }

    .site-title {
        margin-bottom: 20px;
        font-size: 24px;
    }
}


/* ==================================================
   ナビゲーション
================================================== */

.primary-navigation {
    position: relative;
}

.primary-navigation .wrapper {
    display: flex;
    justify-content: center;
}

.menu-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 30px;

    margin: 10px 0;
    padding: 0;

    list-style: none;
}

.menu-wrapper li {
    position: relative;
    list-style: none;
}

.menu-wrapper a {
    display: block;

    padding: 10px 15px;

    color: #65c8d0;

    text-decoration: none;

    font-size: 24px;
    font-weight: bold;

    border-radius: 20px;

    transition:
        background-color 0.4s ease,
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.menu-wrapper li a:hover {
    background-color: #fffaf5;

    transform: translateY(-3px);

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}


/* ==================================================
   子メニュー
================================================== */

.menu-wrapper .sub-menu {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    min-width: 160px;

    margin: 0;
    padding: 10px 0;

    background: #fff;

    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);

    z-index: 1000;
}

.menu-wrapper li:hover > .sub-menu {
    display: block;
}

.menu-wrapper .sub-menu li {
    width: 100%;
}

.menu-wrapper .sub-menu a {
    padding: 10px 20px;
    white-space: nowrap;
}

.menu-wrapper .sub-menu a:hover {
    background-color: #f1f6df;
}


/* ==================================================
   ハンバーガーメニュー
================================================== */

.menu-toggle {
    display: none;
}


/* ==================================================
   ハンバーガーメニュー：スマホ
================================================== */

@media (max-width: 768px) {

    .primary-navigation {
        position: relative;
        margin-top: 20px;
    }

    .menu-toggle {
        display: flex;

        width: 45px;
        height: 45px;

        margin: 0 auto;
        padding: 8px;

        flex-direction: column;
        justify-content: center;
        align-items: center;

        gap: 5px;

        border: 2px solid #65c8d0;
        border-radius: 12px;

        background: #fff;

        cursor: pointer;
    }

    .menu-toggle span {
        display: block;

        width: 24px;
        height: 3px;

        background-color: #65c8d0;

        border-radius: 3px;
    }

    .primary-navigation .menu-wrapper {
        display: none;
    }

    .primary-navigation.menu-open .menu-wrapper {
        display: flex;

        flex-direction: column;

        width: 100%;

        margin-top: 15px;
        padding: 10px 0;

        gap: 0;

        background: #fff;

        border-radius: 18px;

        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .primary-navigation.menu-open .menu-wrapper li {
        width: 100%;
        text-align: center;
    }

    .primary-navigation.menu-open .menu-wrapper a {
        display: block;

        padding: 14px 20px;

        font-size: 16px;
    }

    .primary-navigation.menu-open .menu-wrapper .sub-menu {
        position: static;

        width: 100%;

        padding: 0;

        background: #f8fbf0;

        border-radius: 0;

        box-shadow: none;
    }

    .primary-navigation.menu-open .menu-wrapper .sub-menu a {
        font-size: 14px;
    }
}


/* ==================================================
   検索
================================================== */

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;

    margin: 50px auto 30px;
}

.search-box {
    display: flex;
    align-items: center;

    width: 400px;
    max-width: 90%;

    overflow: hidden;

    background: #fff;

    border: 2px solid #65c8d0;
    border-radius: 50px;
}

.search-box input {
    flex: 1;

    min-width: 0;

    padding: 12px 16px;

    border: none;

    outline: none;

    font-size: 24px;
}

.search-box button {
    flex-shrink: 0;

    padding: 24px;

    border: none;

    background: #65c8d0;
    color: #fff;

    cursor: pointer;
}


/* ==================================================
   ホーム：素材カード
================================================== */

.home-page {
    padding: 40px 20px 80px;
}

.home-page .post-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    max-width: 1200px;

    margin: 0 auto;

    gap: 30px;
}

.home-page .post-item {
    width: 100%;

    box-sizing: border-box;

    padding: 20px;

    background: #fff;

    border-radius: 24px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

    text-align: center;

    transition: 0.3s;
}

.home-page .post-item:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}


/* ==================================================
   ホーム：画像
================================================== */

.home-page .post-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 240px;

    margin: 0 0 15px;

    overflow: hidden;

    background: #fff;

    border-radius: 18px;
}

.home-page .post-thumbnail img {
    display: block;

    width: auto;
    height: auto;

    max-width: 90%;
    max-height: 220px;
}


/* ==================================================
   ホーム：タイトル
================================================== */

.home-page .post-header {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin: 10px 0;

    text-align: center;
}

.home-page .post-title {
    order: 2;

    margin: 15px 0 10px;

    font-size: 32px;
    font-weight: bold;
}

.home-page .post-title a {
    color: #65c8d0;

    text-decoration: none;
}


/* ==================================================
   ホーム：カテゴリー
================================================== */

.home-page .post-header .post-category {
    margin-top: 8px;
}

.home-page .post-category ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 6px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.home-page .post-category li {
    margin: 0;
}

.home-page .post-category a {
    display: inline-block;

    padding: 4px 10px;

    background: #f1f6df;

    border-radius: 20px;

    color: #555;

    text-decoration: none;

    font-size: 12px;
}


/* ==================================================
   リクエストページ
================================================== */

.request-page {
    padding: 40px 0 80px;
}

.page-content {
    max-width: 800px;

    box-sizing: border-box;

    margin: 60px auto 100px;
    padding: 20px 10px;

    background: #fff;

    border-radius: 20px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.page-title {
    margin-bottom: 30px;

    color: #65c8d0;

    font-size: 2rem;

    text-align: center;
}

.request-message {
    margin-bottom: 40px;
    padding: 24px;

    background: #e5f3f4;

    border: 3px dashed #65c8d0;
    border-radius: 16px;
}

.request-message p {
    margin-bottom: 12px;

    line-height: 1.9;
}

.page-body {
    margin-top: 30px;
}


/* ==================================================
   リクエストフォーム
================================================== */

.request-form {
    max-width: 700px;

    box-sizing: border-box;

    margin: 60px auto;
    padding: 40px;

    background: #fffdf0;

    border: 3px dashed #65c8d0;
    border-radius: 30px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.request-form h2 {
    margin-bottom: 15px;

    color: #838bc5;

    font-size: 2rem;

    text-align: center;
}

.request-form p {
    color: #666;

    line-height: 1.8;

    text-align: center;
}


/* ==================================================
   Contact Form 7
================================================== */

.wpcf7 label {
    display: block;

    margin-top: 25px;
    margin-bottom: 8px;

    color: #555;

    font-weight: bold;
}

.wpcf7-form .required {
    color: #ff6b81;

    font-size: 0.9rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;

    box-sizing: border-box;

    padding: 15px;

    background: #fff;

    border: 2px solid #d8f0d2;
    border-radius: 15px;

    font-size: 16px;

    transition: 0.3s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;

    border-color: #65c8d0;

    box-shadow: 0 0 8px rgba(101, 200, 208, 0.3);
}

.wpcf7 textarea {
    min-height: 180px;

    resize: vertical;
}

.wpcf7-checkbox,
.wpcf7-radio {
    display: flex;
    flex-wrap: wrap;

    gap: 12px 20px;

    margin-top: 10px;
}

.wpcf7-list-item {
    margin: 0;
}

.wpcf7 input[type="file"] {
    margin-top: 10px;
}


/* ==================================================
   送信ボタン
================================================== */

.wpcf7-submit {
    display: block;

    width: 100%;

    margin-top: 35px;
    padding: 18px;

    border: none;
    border-radius: 50px;

    background: linear-gradient(90deg, #65c8d0, #8fd694);

    color: #fff;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.wpcf7-submit:hover {
    transform: translateY(-2px);

    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.wpcf7-response-output {
    margin-top: 20px !important;
    padding: 15px !important;

    border-radius: 15px;
}

.wpcf7-not-valid-tip {
    color: #ff5a7d;

    font-size: 14px;
}


/* ==================================================
   投稿ページ
================================================== */

.post-item {
    max-width: 900px;

    margin: 0 auto;
}

.post-thumbnail {
    margin: 30px auto 20px;

    background-color: #f1f6df;

    text-align: center;
}

.post-thumbnail img {
    display: inline-block;

    width: 180px;
    height: auto;
}

.post-header {
    margin-bottom: 30px;

    text-align: center;
}

.post-title {
    margin-bottom: 10px;

    font-size: 32px;
}

.post-category ul {
    display: flex;
    justify-content: center;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.post-category li {
    margin: 0;
}

.post-category a {
    display: inline-block;

    padding: 5px 12px;

    background: #f1f6df;

    border-radius: 20px;

    text-decoration: none;

    font-size: 14px;
}


/* ==================================================
   投稿本文
================================================== */

.post-content {
    max-width: 800px;

    margin: 0 auto;

    line-height: 1.8;
}


/* ==================================================
   素材カード
================================================== */

.material-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 24px;

    margin: 40px 0;
}

.material-card {
    padding: 20px;

    background: #fff;

    border: 1px solid #eee;
    border-radius: 16px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.material-card img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 0 auto 15px;
}

.material-card h2 {
    margin: 10px 0 15px;

    font-size: 18px;
}

.material-card a {
    display: inline-block;

    padding: 10px 24px;

    border-radius: 25px;

    text-decoration: none;

    font-weight: bold;
}


/* ==================================================
   タグ
================================================== */

.post-footer {
    margin-top: 40px;
}

.tags-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.tags-links a {
    padding: 13px 25px;

    background-color: #fffaf5;

    border: 2px solid #65c8d0;
    border-radius: 50px;

    color: #65c8d0;

    text-decoration: none;
}


/* ==================================================
   カテゴリー一覧
================================================== */

.category-page {
    padding: 40px 20px 80px;
}

.category-header {
    margin-bottom: 40px;

    text-align: center;
}

.category-header .page-title {
    margin-bottom: 0;

    color: #838bc5;
}


/* ==================================================
   カテゴリーカード一覧
================================================== */

.category-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    max-width: 1000px;

    margin: 0 auto;

    gap: 30px;
}

.category-card {
    overflow: hidden;

    background: #fffaf5;

    border-radius: 24px;

    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.category-card a {
    display: block;

    color: #333;

    text-decoration: none;
}


/* ==================================================
   カテゴリー画像
================================================== */

.category-image {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 180px;

    box-sizing: border-box;

    padding: 20px;

    overflow: hidden;

    background: #fffaf5;
}

.category-image img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 140px;
}


/* ==================================================
   カテゴリー名
================================================== */

.category-name {
    margin: 0;
    padding: 0 15px 8px;

    color: #838bc5;

    font-size: 20px;

    text-align: center;
}

.category-description {
    margin: 0;
    padding: 0 20px 20px;

    color: #666;

    font-size: 14px;
    line-height: 1;

    text-align: center;
}


/* ==================================================
   素材一覧ページ
================================================== */

.category-page .post-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    max-width: 1000px;

    margin: 40px auto 80px;

    gap: 30px;
}

.category-page .post-item {
    width: 100%;

    box-sizing: border-box;

    padding: 25px;

    background: #fff;

    border-radius: 24px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

    text-align: center;

    transition: 0.3s;
}

.category-page .post-item:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}


/* ==================================================
   素材一覧：アイキャッチ
================================================== */

.category-page .post-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 300px;

    box-sizing: border-box;

    margin: 0 0 20px;
    padding: 10px;

    overflow: hidden;

    background: #fff;

    border-radius: 18px;
}

.category-page .post-thumbnail img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 280px;

    object-fit: contain;
}


/* ==================================================
   素材タイトル
================================================== */

.category-page .post-header {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    min-height: 60px;

    margin: 0;

    text-align: center;
}

.category-page .post-title {
    width: 100%;

    margin: 0;

    font-size: 20px;
    line-height: 1.5;
}

.category-page .post-title a {
    color: #333;

    text-decoration: none;
}


/* ==================================================
   タブレット・スマホ
   768px以下
================================================== */

@media (max-width: 768px) {

    /* ------------------------------
       ホーム
    ------------------------------ */

    .home-page .post-list {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .home-page .post-item {
        width: 80%;

        margin: 0 auto;
        padding: 10px;
    }

    .home-page .post-thumbnail {
        height: 180px;
    }

    .home-page .post-thumbnail img {
        max-width: 80%;
        max-height: 160px;
    }


    /* ------------------------------
       リクエストページ
    ------------------------------ */

    .page-content {
        padding: 25px;
    }

    .request-message {
        padding: 18px;
    }

    .request-form {
        margin: 40px auto;
        padding: 25px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .request-form h2 {
        font-size: 1.6rem;
    }


    /* ------------------------------
       カテゴリー一覧
    ------------------------------ */

    .category-list {
        grid-template-columns: repeat(2, 1fr);

        gap: 20px;
    }


    /* ------------------------------
       素材一覧
    ------------------------------ */

    .category-page .post-list {
        grid-template-columns: repeat(2, 1fr);

        gap: 20px;
    }

    .category-page .post-item {
        width: 90%;

        margin: 0 auto;
        padding: 10px;
    }

    .category-page .post-thumbnail {
        height: 220px;

        padding: 10px;
    }

    .category-page .post-thumbnail img {
        max-width: 65%;
        max-height: 180px;
    }

    .category-page .post-title {
        font-size: 18px;
    }


    /* ------------------------------
       Contact Form 7
    ------------------------------ */

    .wpcf7-checkbox,
    .wpcf7-radio {
        display: block;
    }

    .wpcf7-list-item {
        display: block;

        margin-bottom: 10px;
    }
}


/* ==================================================
   600px以下
================================================== */

@media (max-width: 600px) {

    /* ------------------------------
       投稿ページ
    ------------------------------ */

    .post-item {
        width: 80%;
    }

    .post-thumbnail {
        margin-top: 20px;
    }

    .post-thumbnail img {
        width: 120px;
    }

    .post-title {
        font-size: 26px;
    }


    /* ------------------------------
       素材カード
    ------------------------------ */

    .material-list {
        grid-template-columns: 1fr;

        width: 80%;

        gap: 0;
    }

    .post-content {
        width: 80%;
    }


    /* ------------------------------
       素材一覧
    ------------------------------ */

    .category-page .post-list {
        width: 80%;

        grid-template-columns: 1fr;

        gap: 20px;
    }

    .category-page .post-item {
        width: 80%;

        margin: 0 auto;
        padding: 5px;
    }

    .category-page .post-thumbnail {
        height: 100px;

        padding: 10px;
    }

    .category-page .post-thumbnail img {
        max-width: 55%;
        max-height: 160px;
    }


    /* ------------------------------
       カテゴリー一覧画像
    ------------------------------ */

    .category-image {
        height: 120px;

        padding: 10px;
    }

    .category-image img {
        max-width: 45%;
        max-height: 90px;
    }

    .category-name {
        padding: 15px 10px 8px;

        font-size: 18px;
    }

    .category-description {
        padding: 0 12px 15px;

        font-size: 13px;
    }
}


/* ==================================================
   480px以下
================================================== */

@media (max-width: 480px) {

    body {
        width: 100%;
    }


    /* ------------------------------
       カテゴリー一覧
    ------------------------------ */

    .category-list {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .category-image {
        height: 200px;
    }

    .category-image img {
        max-width: 80%;
        max-height: 200px;
    }

    .material-thumbnail {
        width: 180px;
    }


    /* ------------------------------
       素材一覧
    ------------------------------ */

    .category-page .post-list {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .category-page .post-thumbnail {
        height: 120px;
    }

    .category-page .post-thumbnail img {
        max-width: 80%;
        max-height: 120px;
    }

    .category-page .post-title {
        font-size: 18px;
    }
}


/* ==================================================
   フッター
================================================== */

.site-footer {
    margin-top: 0;
    padding: 40px 20px 25px;

    background-color: #fffaf5;

    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 25px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-menu a {
    color: #555;

    text-decoration: none;

    font-size: 24px;
}

.footer-menu a:hover {
    opacity: 0.7;
}

.copyright {
    margin: 25px 0 0;

    color: #777;

    font-size: 24px;
}


/* ==================================================
   ダウンロードボタン
================================================== */

.post-content a {
    display: inline-block;

    margin: 10px 5px;
    padding: 12px 28px;

    background-color: #65c8d0;

    border-radius: 50px;

    color: #fff;

    text-decoration: none;

    font-size: 20px;
    font-weight: bold;

    box-shadow: 0 4px 0 #4faeb6;

    transition: 0.2s;
}

.post-content a:hover {
    transform: translateY(2px);

    box-shadow: 0 2px 0 #4faeb6;

    opacity: 0.9;
}


/* ==================================================
   投稿ナビゲーション
================================================== */

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;

    max-width: 800px;

    margin: 50px auto 30px;

    gap: 20px;
}

.post-navigation a {
    display: inline-block;

    padding: 13px 25px;

    background-color: #fffaf5;

    border: 2px solid #65c8d0;
    border-radius: 50px;

    color: #65c8d0;

    text-decoration: none;

    font-size: 15px;
    font-weight: bold;

    box-shadow: 0 4px 0 #d8eeee;

    transition: 0.2s;
}

.post-navigation a:hover {
    transform: translateY(3px);

    background-color: #f1f6df;

    box-shadow: 0 1px 0 #d8eeee;
}


/* ==================================================
   投稿ナビゲーション：スマホ
================================================== */

@media (max-width: 600px) {

    .post-navigation {
        margin: 40px 20px 20px;

        gap: 10px;
    }

    .post-navigation a {
        padding: 11px 16px;

        font-size: 13px;
    }
}


/* ==================================================
   投稿一覧：新しい投稿・過去の投稿
================================================== */

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;

    margin: 50px auto 80px;

    text-align: center;
}

.nav-links a {
    display: inline-block;

    padding: 14px 28px;

    background-color: #fffaf5;

    border: 2px solid #65c8d0;
    border-radius: 50px;

    color: #65c8d0;

    text-decoration: none;

    font-size: 16px;
    font-weight: bold;

    box-shadow: 0 5px 0 #bde4e6;

    transition: 0.2s;
}

.nav-links a:first-child {
    color: #838bc5;

    border-color: #838bc5;

    box-shadow: 0 5px 0 #d6d8ee;
}

.nav-links a:last-child {
    color: #65c8d0;

    border-color: #65c8d0;

    box-shadow: 0 5px 0 #bde4e6;
}

.nav-links a:hover {
    transform: translateY(4px);

    background-color: #f1f6df;

    box-shadow: 0 1px 0 transparent;
}


/* ==================================================
   投稿一覧：スマホ
================================================== */

@media (max-width: 600px) {

    .nav-links {
        gap: 10px;

        margin: 40px auto 60px;
    }

    .nav-links a {
        padding: 12px 18px;

        font-size: 14px;
    }
}


/* ==================================================
   タグページ
================================================== */

.tag-page .tag-post-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 900px;
    max-width: 90%;

    margin: 40px auto 80px;

    gap: 30px;
}

.tag-page .tag-post-card {
    width: 100%;

    overflow: hidden;

    background-color: #fff;

    border-radius: 20px;

    text-align: center;
}

.tag-page .tag-post-card > a {
    display: block;

    color: inherit;

    text-decoration: none;
}

.tag-page .tag-post-card .post-image {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 250px;
}

.tag-page .tag-post-card .post-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.tag-page .tag-post-info {
    padding: 15px;
}

.tag-page .tag-post-title {
    margin: 0 0 8px;

    font-size: 18px;
    font-weight: 500;
}

.tag-page .post-category {
    margin: 0;

    font-size: 13px;
}


/* ==================================================
   タグページ：スマホ
================================================== */

@media (max-width: 700px) {

    .tag-page .tag-post-list {
        grid-template-columns: 1fr;

        width: 90%;
        max-width: none;
    }
}


/* ==================================================
   ページネーション
================================================== */

.pagination {
    margin: 50px auto 80px;

    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 10px;
}

.pagination a,
.pagination .current {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-width: 40px;
    height: 40px;

    padding: 0 14px;

    border-radius: 20px;

    text-decoration: none;
}

.pagination a {
    background-color: #fff;

    color: #555;
}

.pagination .current {
    background-color: #b8dfe8;

    color: #fff;
}