@charset "UTF-8";

/* ================================================
   ブログ・wellness 共通CSS (page-blog.css)
   ================================================ */

/* メインビジュアル見出し */
#main_visual .page-title-text {
    display: block;
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.15em;
    font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
}
#main_visual .page-title-en {
    display: block;
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.3em;
    margin-top: 12px;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

/* メインビジュアル背景 */
#blog #main_visual_bg {
    background: url(../images/common/main_visual_blog.jpg) no-repeat center top;
    background-size: cover !important;
}
#wellness #main_visual_bg {
    background: url(../images/common/main_visual_wellness.jpg) no-repeat center top;
    background-size: cover !important;
}

/* ===== 一覧ページ ===== */
.post-archive {
    margin-top: 60px;
}
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-list__item {
    border-bottom: 1px solid #ddd;
}
.post-list__item:first-child {
    border-top: 1px solid #ddd;
}
.post-list__link {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
    padding: 30px 0;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s;
    align-items: center;
}
.post-list__link:hover {
    opacity: 0.7;
}
.post-list__thumb {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-list__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
}
/* サムネあり：cover で全体を埋める */
.post-list__thumb.has-thumb img {
    object-fit: cover !important;
}
/* サムネなし：ロゴをcontainで表示 */
.post-list__thumb.no-thumb {
    padding: 20px;
    box-sizing: border-box;
}
.post-list__thumb.no-thumb img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}
.post-list__body {
    flex: 1;
    min-width: 0;
}
.post-list__date {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}
.post-list__title {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    border-left: none !important;
    padding-left: 0 !important;
    line-height: 1.5 !important;
    background: none !important;
}
.post-list__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* ページネーション */
.pagination {
    text-align: center;
    margin-top: 50px;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #22ac38;
    color: #fff;
    border-color: #22ac38;
}
.no-post {
    text-align: center;
    font-size: 16px;
    color: #888;
    margin-top: 60px;
}

/* ===== 詳細ページ ===== */
.post-single {
    margin-top: 60px;
}
.post-single__thumb {
    width: 100%;
    margin-bottom: 30px;
}
.post-single__thumb img {
    width: 100%;
    height: auto;
}
.post-single__header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #22ac38;
}
.post-single__date {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}
.post-single__title {
    font-size: 26px !important;
    font-weight: bold !important;
    color: #333 !important;
    line-height: 1.5 !important;
    background: none !important;
    margin-bottom: 0 !important;
    border-left: none !important;
    padding-left: 0 !important;
}

/* 記事本文 */
.post-single__content {
    font-size: 15px;
    line-height: 2;
    color: #333;
    margin-bottom: 60px;
}
.post-single__content h2 {
    font-size: 22px;
    font-weight: bold;
    border-left: 4px solid #22ac38;
    padding-left: 12px;
    margin: 40px 0 20px;
    background: none;
}
.post-single__content h3 {
    font-size: 20px;
    font-weight: bold;
    color: #555;
    padding: 5px 0 5px 15px;
    border-left: solid 4px #22ac38;
    margin: 35px 0 15px;
}
.post-single__content h4 {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    margin: 30px 0 12px;
}
.post-single__content p { margin-bottom: 20px; }
.post-single__content img { max-width: 100%; height: auto; margin: 20px 0; }
.post-single__content ul,
.post-single__content ol { padding-left: 1.5em; margin-bottom: 20px; }
.post-single__content ul li,
.post-single__content ol li { margin-bottom: 8px; line-height: 1.8; }
.post-single__content a { color: #22ac38; text-decoration: underline; }
.post-single__content blockquote {
    border-left: 4px solid #ddd;
    padding: 10px 20px;
    margin: 20px 0;
    color: #666;
    background: #f9f9f9;
}

/* 前後ナビ */
.post-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
    align-items: stretch;
}
.post-nav__prev,
.post-nav__next {
    flex: 1;
    min-width: 200px;
}
.post-nav__back {
    width: 100%;
    text-align: center;
}
.post-nav__back .btn {
    display: block;
    width: 380px;
    max-width: 100%;
    padding: 18px 40px;
    background: #fff url(../images/common/arrow04.png) no-repeat 90% 50%;
    background-size: 10px;
    border: 1px solid #333;
    color: #333;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
    box-sizing: border-box;
    margin: 0 auto;
}
.post-nav__back .btn:hover { background-color: #f5f5f5; }
.post-nav__link {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 15px;
    border: 1px solid #ddd;
    transition: background 0.3s;
    height: 100%;
    box-sizing: border-box;
}
.post-nav__link:hover { background: #f5f5f5; }
.post-nav__link--next { text-align: right; }
.post-nav__label {
    display: block;
    font-size: 12px;
    color: #22ac38;
    margin-bottom: 6px;
}
.post-nav__title {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}

/* スマホ */
@media screen and (max-width: 650px) {
    .post-list__link {
        flex-direction: column !important;
        gap: 15px;
    }
    .post-list__thumb {
        width: 100%;
        height: 180px;
    }
    .post-single__title { font-size: 20px !important; }

    /* 前後ナビ：スマホ */
    .post-nav__prev,
    .post-nav__next {
        flex: 1;
        min-width: 100px;
    }
    .post-nav__link {
        padding: 10px 6px;
        word-break: break-all;
        overflow-wrap: break-word;
    }
    .post-nav__label {
        font-size: 10px;
        white-space: normal;
    }
    .post-nav__title {
        font-size: 11px;
        white-space: normal;
        word-break: break-all;
    }
    .post-nav__back .btn {
        width: 100% !important;
        padding: 22px 30px !important;
        background-size: 8px;
        display: block;
        box-sizing: border-box;
    }
}
