/* =========================================
   記事詳細ページ専用スタイル
   ========================================= */

/* ▼ レイアウト設定（2カラム） */
.page-single {
    padding-top: 50px;
    padding-bottom: 80px;
    display: flex;
    justify-content: space-between;
    /* 両端揃え */
    /* gapはサイドバーのcalc計算に含まれている雰囲気なので、あえて指定せず space-between に任せます */
    /* もし間隔が詰まりすぎる場合は gap: 3rem; などを追加してください */
}

/* --- 左側：記事メインエリア --- */
.single-main {
    width: 65%;
    /* サイドバー(35%弱)に合わせて調整 */
}

/* --- 右側：サイドバー（いただいたCSSを移植） --- */
.page-single .sidebar {
    width: calc(35% - 3rem);
    height: fit-content;
    position: sticky;
    top: 150px;
}

.page-single .sidebar p.sidebar-ttl {
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: .5rem;
    border-bottom: 1px solid #000;
    margin-bottom: 1.8rem;
}

.page-single .sidebar .single-list {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.page-single .sidebar .single-list li {
    padding-bottom: .9rem;
    border-bottom: 1px solid #000;
}

.page-single .sidebar .single-list li a {
    display: flex;
    gap: .9rem;
    text-decoration: none;
    /* 下線を消す */
    color: #333;
    /* 文字色 */
    align-items: flex-start;
    /* 上揃え */
}

.page-single .sidebar .single-list li a img {
    width: 25%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: .5rem;
}

.page-single .sidebar .single-list li a p {
    width: calc(75% - .9rem);
    font-size: .9rem;
    line-height: 1.5;
    margin: 0;
}

/* ▲▲▲ 2カラム・サイドバー設定ここまで ▲▲▲ */


/* =========================================
   ▼ 記事の中身（.entry-content）のデザイン
   ========================================= */

/* タイトル周り */
.entry-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.entry-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    color: #888;
    margin-bottom: 10px;
}

.entry-meta .cat-label {
    background: #007DA5;
    color: #fff;
    padding: 2px 10px;
    font-size: 12px;
}

.entry-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4;
}

/* --- 記事本文 --- */
.page-single .entry-content h2,
.page-single .entry-content h3 {
    background-color: #007DA5;
    color: #fff;
    padding: 15px 20px;
    margin: 60px 0 30px;
    font-size: 22px;
    font-weight: bold;
    border-radius: 4px;
    line-height: 1.4;
}

.page-single .entry-content h4 {
    font-size: 20px;
    padding: 5px 0 5px 15px;
    border-left: 6px solid #007DA5;
    border-bottom: 1px solid #eee;
    margin: 40px 0 20px;
    font-weight: bold;
}

.page-single .entry-content h5 {
    font-size: 18px;
    border-bottom: 2px dashed #007DA5;
    padding-bottom: 5px;
    margin: 30px 0 15px;
    font-weight: bold;
}

.page-single .entry-content p {
    margin-bottom: 2em;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.page-single .entry-content img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin: 30px auto;
    display: block;
}

.page-single .entry-content .text_wavy {
    background: linear-gradient(transparent 60%, #fff3ad 60%);
    font-weight: bold;
    padding: 0 2px;
}

.page-single .entry-content .standout {
    color: #007DA5;
    font-weight: bold;
    font-size: 18px;
    border-bottom: 1px dashed #007DA5;
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-single .entry-content .wakuB {
    border: 3px solid #007DA5;
    padding: 25px 20px 20px;
    margin: 40px 0;
    position: relative;
    text-align: center;
    border-radius: 5px;
    background: #f9fbfd;
}

.page-single .entry-content .wakuB::before {
    content: "CHECK!";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #007DA5;
    color: #fff;
    padding: 2px 15px;
    font-weight: bold;
    border-radius: 15px;
    font-size: 14px;
}

.page-single .entry-content .wakuB a {
    color: #007DA5;
    font-weight: bold;
    text-decoration: underline;
    font-size: 18px;
}

.page-single .entry-content .wakuB a:hover {
    text-decoration: none;
    opacity: 0.7;
}

.page-single .entry-content ul {
    margin: 0 0 30px 20px;
    list-style: disc;
}

.page-single .entry-content li {
    margin-bottom: 5px;
}

/* --- 前後の記事ナビ --- */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-navigation a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

.post-navigation a:hover {
    color: #007DA5;
}


/* --- スマホ対応（縦並びに戻す） --- */
@media screen and (max-width: 768px) {

    /* Flexを解除して縦並びに */
    .page-single {
        display: block;
        padding: 50px 1rem;
    }

    .single-main {
        width: 100%;
        margin-bottom: 50px;
    }

    /* サイドバーのスマホ表示 */
    .page-single .sidebar {
        width: 100%;
        position: static;
        /* スマホでは固定しない */
    }

    .entry-title {
        font-size: 20px;
    }

    .page-single .entry-content h2,
    .page-single .entry-content h3 {
        font-size: 18px;
        padding: 12px;
    }

    .page-single .entry-content h4 {
        font-size: 17px;
    }

    .page-single .entry-content {
        font-size: 15px;
    }
}

/* =========================================
   目次（TOC）のデザイン
   ========================================= */

/* 目次全体の外枠 */
.page-single .entry-content #toc_container {
    background: #f9fbfd;
    border: 2px solid #007DA5;
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 5px;
    width: 100%;
    display: inline-block;
    min-width: 50%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 目次のタイトル「ページコンテンツ」 */
.page-single .entry-content .toc_title {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: #007DA5;
    margin-bottom: 15px;
}

/* [表示/非表示] ボタン */
.page-single .entry-content .toc_toggle {
    font-size: 14px;
    font-weight: normal;
}

.page-single .entry-content .toc_toggle a {
    color: #888;
    text-decoration: none;
}

/* 目次リスト（大枠） */
.page-single .entry-content .toc_list {
    list-style: none !important;
    /* 点を消す */
    padding: 0;
    margin: 0;
}

/* 各リスト項目 */
.page-single .entry-content .toc_list li {
    margin-bottom: 8px;
    font-size: 15px;
    list-style: none !important;
    /* 念のためここでも消す */
}

/* リンクのデザイン */
.page-single .entry-content .toc_list li a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    /* ホバー時の下線準備 */
    transition: all 0.3s;
}

.page-single .entry-content .toc_list li a:hover {
    color: #007DA5;
    border-bottom: 1px solid #007DA5;
}

/* 階層（H3以下のインデント） */
.page-single .entry-content .toc_list ul {
    list-style: none !important;
    padding-left: 20px;
    /* 左にずらす */
    margin-top: 5px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .page-single .entry-content #toc_container {
        display: block;
        /* スマホなら横幅いっぱいに */
        width: 100%;
        padding: 15px;
    }
}

/* =========================================
   店舗情報・詳細ボックス (.infoWrapBox)
========================================= */
.detail.infoWrapBox {
    background-color: #fcfcfc;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* タイトル部分 */
.detail.infoWrapBox strong {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #00a0e9;
    /* アクアベース風のアクセントカラー */
    text-align: center;
}

/* 空のpタグが悪さをするのを防ぐ */
.detail.infoWrapBox p:empty {
    display: none;
}

/* dlリスト全体の調整 */
.detail.infoWrapBox dl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px dashed #ccc;
    margin: 0;
    padding: 1.2rem 0;
}

.detail.infoWrapBox dl:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

/* 左側の見出し (dt) */
.detail.infoWrapBox dt {
    width: 25%;
    font-weight: bold;
}

.detail.infoWrapBox dt span {
    display: inline-block;
    background-color: #eef8fb;
    /* うっすら青い背景 */
    color: #0080bc;
    font-size: 0.9rem;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

/* 右側の内容 (dd) */
.detail.infoWrapBox dd {
    width: 75%;
    margin: 0;
    line-height: 1.6;
    color: #444;
}

/* =========================================
   スマホ表示 (767px以下)
========================================= */
@media screen and (max-width: 767px) {
    .detail.infoWrapBox {
        padding: 1.5rem;
    }

    .detail.infoWrapBox dl {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
    }

    .detail.infoWrapBox dt {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .detail.infoWrapBox dd {
        width: 100%;
        padding-left: 0.5rem;
    }
}