/* ベースリセット */
body {
    background-color: #F9F4E9;
}

.breadcrumbs {
    margin: 0;
}

/* パンくずリストの余白を削除 */
#breadcrumbs {
    margin: 0 !important;
}

.tips-article-wrapper * {
    box-sizing: border-box;
}

/* 外側コンテナ */
.tips-outer-container {
    background-color: #F9F4E9;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

/* 記事コンテンツエリア（白背景） */
.tips-article-wrapper {
    position: relative;
    padding: 9px 9px;
}

.tips-article-wrapper::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.5%;
    width: 2px;
    height: 99.5%;
    background-color: rgba(100, 100, 100, 0.3);
}
.tips-article-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2%;
    width: 98%;
    height: 2px;
    background-color: rgba(100, 100, 100, 0.3);
}
.tips-article {
    max-width: 1020px;
    padding: 50px 0;
    background-color: #fff;
}

/* 記事ヘッダー */
.tips-header {
    text-align: center;
    margin-bottom: 16px;
}

.tips-category {
    display: block;
    margin-bottom: 20px;
}
.tips-category img {
    max-width: calc(100% - 120px);
    height: auto;
    margin: 0 60px;
}

.tips-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 60px 10px;
    color: #545251;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    letter-spacing: 0.04em;
}


.tips-date {
    font-size: 0.9rem;
    color: #545251;
    margin: 0 60px 8px;
    display: block;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    letter-spacing: 0.08em;
}

/* 著者情報 */
.tips-author-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px 0;
}
.tips-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #e0e0e0;
}
.tips-author-info {
    text-align: left;
}
.tips-author-role {
    font-size: 0.6875rem;
    color: #D81B60;
    font-weight: bold;
    margin-bottom: 3px;
}
.tips-author-name {
    font-size: 0.9375rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* アイキャッチ画像 */
.tips-thumbnail {
    display: block;
    margin: 0 0 30px;
}
.tips-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 本文エリア */
.tips-content {
    font-size: 0.9375rem;
    line-height: 2.0;
    color: #333;
}
.tips-content p {
    margin-bottom: 1.8em;
}
.tips-content h2,
.tips-content h3 {
    font-size: 1.0625rem;
    font-weight: bold;
    color: #D81B60;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 0;
    border-bottom: none;
}
.tips-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Summary（まとめ）ボックス */
.tips-summary-box {
    border: 1px solid #e0e0e0;
    background-color: #fff;
    padding: 30px;
    margin: 40px 0;
    position: relative;
}
.tips-summary-title {
    text-align: center;
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: #D81B60;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* 監修者情報 */
.tips-supervisor {
    margin-top: 50px;
    margin-bottom: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}
.tips-supervisor p {
    font-size: 0.8125rem;
    color: #666;
    margin: 0;
    line-height: 1.8;
}
.tips-supervisor strong {
    color: #333;
    font-weight: 600;
}

/* ==========================================================================
BACK NUMBER SECTION (ショートコード [my_back_number] 用)
========================================================================== */

/* 1. セクション全体のレイアウト設定 */
.back-number-container {
    background-color: #F9F4E9;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.back-number-wrapper {
    position: relative;
    height: 100%;
    padding: 3px 9px;
}

.back-number-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2%;
    width: 98%;
    height: 2px;
    background-color: rgba(100, 100, 100, 0.3);
}

.back-number-wrapper::before {
    content: '';
    position: absolute;
    right: 0;
    top: 2%;
    width: 2px;
    height: 98%;
    background-color: rgba(100, 100, 100, 0.3);
}

.back-number {
    max-width: 1020px;
    width: 99.4%;
    height: 99.4%;
}
.back-number-inner {
    max-width: 900px;
    padding: 50px 60px;
    margin: 0 auto;
    background-color: #fff;
}

/* 2. セクションタイトル (BACK NUMBER) */
.back-number-title {
    text-align: center;
    font-size: 1.375rem;
    font-weight: 700;
    color: #00A0B0;
    letter-spacing: 0.2em;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* 3. グリッドレイアウト：強制的に1行4列を維持 */
.back-number-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px; /* アイテム同士の間隔 */
    width: 100%;
}

/* 4. 記事アイテムのリンク設定 */
.back-number-item {
    display: flex;
    flex-direction: column;
}
.back-number-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.back-number-item a:hover {
    opacity: 0.7; /* ホバー時に少し透明にする */
}

/* 5. サムネイル画像：正方形を維持して枠線をつける */
.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 4%;
    width: 96%;
    height: 2px;
    background-color: rgba(100, 100, 100, 0.3);
}

.card-image::before {
    content: '';
    position: absolute;
    right: 0;
    top: 4%;
    width: 2px;
    height: 96%;
    background-color: rgba(100, 100, 100, 0.3);
}

.card-image img {
    width: 97%;
    height: 97%;
    object-fit: cover;
    transition: transform 0.5s;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid #ddd;
    background-color: #fff;
    display: block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 6. 日付のスタイル */
.bn-date {
    font-size: 0.6875rem;
    color: #888;
    margin: 0 0 8px 0;
    font-weight: normal;
}

/* 7. 記事タイトルのスタイル */
.bn-post-title {
    font-size: 0.8125rem;
    line-height: 1.5;
    font-weight: 600; /* 理想イメージに合わせた太さ */
    color: #444;
    margin: 0;
    /* タイトルが長すぎる場合に高さを揃える処理 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.bn-content {
    padding: 15px;
}

/* 一覧ページへ戻るリンク */
.tips-back-link {
    text-align: center;
    padding: 15px 0 50px;
    border-bottom: 1px solid #00A0B0;
    margin: 0 60px;
}

.tips-back-link a {
    display: inline-block;
    padding: 12px 30px;
    background-color: #E67A2E;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.3s, opacity 0.3s;
    letter-spacing: 0.05em;
}

.tips-back-link a:hover {
    background-color: #d46a1e;
    opacity: 0.9;
}

/* スマホのみ表示 */
.sp-only {
    display: none;
}

/* PCのみ表示 */
.pc-only {
    display: block;
}

/* ==========================================================================
   RESPONSIVE STYLES
========================================================================== */

/* 画面幅 760px 以下（スマホ・タブレット） */
@media screen and (max-width: 760px) {
    .tips-category img {
        max-width: calc(100%);
        height: auto;
        margin: 0;
    }
    .tips-outer-container {
        padding: 20px 10px;
    }
    .tips-article-wrapper {
        padding: 10px 10px;
        margin-left: 10px;
        margin-right: 10px;
    }
    .tips-article {
        max-width: 1020px;
        padding: 25px 0px;
        background-color: #fff;
    }
    .tips-article-wrapper::before {
        top: 0.5%;
        height: 99.5%;
    }
    .tips-article-wrapper::after {
        left: 4%;
        width: 96%;
    }

    .tips-header {
        margin-bottom: 0;
    }
    .tips-date {
        font-size: 1.2em;
        color: #666;
        margin: 0 20px 8px;
    }
    .tips-title {
        font-size: 2.1rem;
        margin: 0 20px;
    }
    .tips-summary-box {
        padding: 20px;
    }
    .tips-supervisor {
        margin-top: 40px;
        margin-bottom: 10px;
        padding-top: 10px;
    }

    .back-number-container {
        padding: 25px 20px;
        width: calc(100% - 20px);
    }
    .back-number-wrapper {
        padding: 3px 10px;
        margin-left: 10px;
        margin-right: 10px;
    }
    .back-number-inner {
        padding: 30px 10px;
        margin: 0 auto;
        background-color: #fff;
    }
    .back-number-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .back-number-title {
        font-size: 1.375rem;
        margin-bottom: 30px;
    }
    .bn-post-title {
        font-size: 0.8125rem;
    }
    .tips-back-link {
        margin: 0 40px;
    }
    .sp-only {
        display: block;
    }
    .pc-only {
        display: none;
    }
}


