/*
Theme Name: XeoryBaseChild
Theme URI: https://xeory.jp/base/
Template: xeory_base
Description: Xeoryベース子テーマ
Author: バズ部
Author URI: https://bazubu.com/
 Version: 1.0.2
*/

/* --------------------------------
   1. 記事全体のコンテナ
   -------------------------------- */
.post-content,
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* --------------------------------
   0. サイト全体の背景（白に統一）
   -------------------------------- */
html,
body {
    background: #fff !important;
}

/* --------------------------------
   2. PRタグ・更新日表示
   -------------------------------- */
.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* single-detail.php の post-meta でも article-meta をそのまま使えるように調整 */
ul.post-meta.article-meta {
    list-style: none;
    padding-left: 0;
    margin: 0 0 20px;
}
ul.post-meta.article-meta li {
    margin: 0;
}

.pr-tag {
    display: inline-block;
    background-color: #666 !important;
    color: #fff;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
}

/* 親テーマ color.css の `.colorXX .post-meta li { background: #fff; }` に負けないように上書き */
.post-meta.article-meta > li.pr-tag,
.color01 .post-meta.article-meta > li.pr-tag,
.color02 .post-meta.article-meta > li.pr-tag,
.color03 .post-meta.article-meta > li.pr-tag {
    background-color: #666 !important;
    color: #fff !important;
    display: inline-block !important;
}

.update-date {
    color: #666;
}

/* ヘッダーロゴ画像の表示崩れ防止 */
#logo .site-logo-picture,
#logo .site-logo-img {
    display: block;
    height: auto;
}

/* 注釈ポップアップ（*）ボタン：枠なし・背景なし */
button.showPopup {
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 0 0 6px;
    color: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    vertical-align: baseline;
}

button.showPopup:hover,
button.showPopup:active,
button.showPopup:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* --------------------------------
   3. 見出しデザイン（h2, h3）
   -------------------------------- */
.post-content h2,
.entry-content h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    padding: 15px 0 15px 20px;
    margin: 50px 0 25px 0;
    /* ボタンの青と被らないように、見出しはオレンジ系に寄せる */
    border-left: 5px solid #ff8c00;
    border-bottom: 1px solid #ddd;
    /* 背景は白に統一 */
    background: #fff;
}

.post-content h3,
.entry-content h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    padding: 10px 0 10px 20px;
    margin: 35px 0 20px 0;
    /* ボタンの青と被らないように、見出しはオレンジ系に寄せる */
    border-bottom: 2px solid #ff8c00;
}

/* 特別な見出し（.detail-h） */
.detail-h {
    font-size: 28px;
    text-align: center;
    padding: 20px;
    margin: 30px 0;
    background-color: #f5f5f5;
    border-radius: 8px;
}

/* --------------------------------
   15. 詳細ページ（バナー / 会社情報）レイアウト
   - PC: .detail-banner と .detail-company を横並び
   - SP: 縦並び
   -------------------------------- */
@media screen and (min-width: 769px) {
    .detail-banner {
        float: left;
        width: 300px;
        max-width: 40%;
        margin: 0 20px 20px 0;
    }

    .detail-banner img {
        display: block;
        width: 100%;
        height: auto;
    }

    /* float横の回り込みで横並びにする */
    .detail-company {
        overflow: hidden;
    }

    /* 上辺を揃える（detail-company 内の table の上マージンを除去） */
    .detail-company table {
        margin-top: 0;
    }
}

/* --------------------------------
   4. テーブルデザイン
   -------------------------------- */
.post-content table,
.entry-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    font-size: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* PC横並び時：テーブル側の共通 margin（25px 0）を確実に上書きして上辺を揃える */
@media screen and (min-width: 769px) {
    .post-content .detail-company table,
    .entry-content .detail-company table {
        margin-top: 0 !important;
    }
}

.post-content table thead tr,
.entry-content table thead tr {
    /* ボタンの青と被らないように、テーブル見出しは濃いグレー系に寄せる */
    background-color: #2f3640;
    color: #fff;
}

.post-content table th,
.entry-content table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    /* 背景は白に統一 */
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.post-content table thead th,
.entry-content table thead th {
    /* ボタンの青と被らないように、テーブル見出しは濃いグレー系に寄せる */
    background-color: #2f3640;
    color: #fff;
}

.post-content table td,
.entry-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.post-content table tbody tr:hover,
.entry-content table tbody tr:hover {
    background-color: #f9f9f9;
}

.post-content table tbody tr:hover td,
.entry-content table tbody tr:hover td {
    background-color: #f9f9f9;
}

/* テーブルキャプション */
.post-content table caption,
.entry-content table caption {
    caption-side: top;
    text-align: left;
    font-weight: bold;
    padding: 10px 0;
    color: #333;
}

/* --------------------------------
   5. リストデザイン（ul_waku対応）
   -------------------------------- */
.ul_waku {
    /* 背景は白にして、枠を目立たせる */
    background-color: #fff;
    border: 2px solid #ff8c00;
    border-left-width: 6px;
    border-radius: 10px;
    padding: 20px 20px 20px 40px;
    margin: 20px 0;
    list-style-type: disc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* ul_waku の見出し/強調があればより目立つように */
.ul_waku li {
    position: relative;
}
.ul_waku li::marker {
    color: #ff8c00;
}

.ul_waku li {
    padding: 8px 0;
    line-height: 1.7;
}

.ul_waku li .bold {
    font-weight: bold;
}

/* 番号付きリスト */
.post-content ol,
.entry-content ol {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 20px 20px 45px;
    margin: 20px 0;
    counter-reset: item;
}

.post-content ol li,
.entry-content ol li {
    padding: 10px 0;
    line-height: 1.7;
    border-bottom: 1px dashed #ddd;
}

.post-content ol li:last-child,
.entry-content ol li:last-child {
    border-bottom: none;
}

/* --------------------------------
   6. 吹き出しデザイン
   -------------------------------- */
.fukidashi {
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
}

.fukidashi-comment {
    position: relative;
    background-color: #e8f4fc;
    border: 1px solid #b8d4e8;
    border-radius: 10px;
    padding: 20px;
    margin-left: 15px;
    flex: 1;
}

.fukidashi-comment::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    border: 10px solid transparent;
    border-right-color: #b8d4e8;
    border-left: 0;
}

.fukidashi-comment::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 21px;
    border: 9px solid transparent;
    border-right-color: #e8f4fc;
    border-left: 0;
}

.fukidashi-comment p {
    margin: 0;
    line-height: 1.8;
}

/* --------------------------------
   7. 画像配置
   -------------------------------- */
.txt_center {
    text-align: center;
    margin: 25px 0;
}

.txt_center img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.txt_right {
    text-align: right;
    font-size: 13px;
    color: #666;
    margin: 10px 0;
}

/* --------------------------------
   8. 強調テキスト
   -------------------------------- */
.bold {
    font-weight: bold;
}

.red {
    color: #d32f2f;
}

.bold.red {
    font-weight: bold;
    color: #d32f2f;
}

/* --------------------------------
   9. CTAボタン
   -------------------------------- */
.post-content a[href*="kunugi-inc.com/r/"],
.entry-content a[href*="kunugi-inc.com/r/"] {
    display: inline-block;
    background: linear-gradient(to bottom, #ff8c00, #ff6600);
    color: #fff !important;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(255,102,0,0.3);
    transition: all 0.3s ease;
}

.post-content a[href*="kunugi-inc.com/r/"]:hover,
.entry-content a[href*="kunugi-inc.com/r/"]:hover {
    background: linear-gradient(to bottom, #ff9933, #ff7722);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,102,0,0.4);
}

/* --------------------------------
   9-2. 詳細ページの外部リンクボタン（kunugi-inc.com の見た目に合わせる）
   -------------------------------- */
.detail-btn p.external-link {
    margin: 20px 0 40px;
    text-align: center;
}

.detail-btn .external-link a {
    display: block;
    width: 100%;
    padding: 17px 0;
    margin: 5px 0;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.9;
    color: #fff !important;
    text-decoration: none;
    border: 1px solid #2077ef;
    border-radius: 5px;
    background: linear-gradient(to bottom, #5599f1, #2077ef) !important;
    box-shadow: none !important;
    transform: none !important;
    transition: all 0.2s ease;
}

.detail-btn .external-link a:hover {
    background: linear-gradient(to bottom, #4c8fe7, #1f6fe0) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* --------------------------------
   10. カードローン商品ボックス
   -------------------------------- */
.cardloan-box {
    border: 2px solid #4a90d9;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    background-color: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.cardloan-box img {
    display: block;
    max-width: 300px;
    margin: 0 auto 20px;
}

/* --------------------------------
   11. 著者情報（フッター部分）
   -------------------------------- */
.author-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 50px;
    border: 1px solid #e0e0e0;
}

.author-info h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.author-info p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* --------------------------------
   12. パンくずリスト改善
   -------------------------------- */
.breadcrumb {
    font-size: 13px;
    color: #666;
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #4a90d9;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* --------------------------------
   13. レスポンシブ対応
   -------------------------------- */
@media screen and (max-width: 768px) {
    .post-content h2,
    .entry-content h2 {
        font-size: 20px;
        padding: 12px 0 12px 15px;
    }
    
    .post-content h3,
    .entry-content h3 {
        font-size: 18px;
    }
    
    .post-content table,
    .entry-content table {
        font-size: 13px;
    }
    
    .post-content table th,
    .post-content table td,
    .entry-content table th,
    .entry-content table td {
        padding: 8px 10px;
    }
    
    .ul_waku {
        padding: 15px 15px 15px 35px;
    }
    
    .fukidashi-comment {
        padding: 15px;
    }

    /* 詳細ページ（バナー / 会社情報）: SPは縦並び */
    .detail-banner {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 15px 0;
        text-align: center;
    }

    .detail-banner img {
        max-width: 100%;
        height: auto;
    }

    .detail-company {
        overflow: visible;
    }
}

/* --------------------------------
   14. アプリダウンロードボタン
   -------------------------------- */
.app-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.app-buttons a {
    display: inline-block;
}

.app-buttons img {
    height: 50px;
    width: auto;
}

.app-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}