@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ==========================================================================
   カスタム投稿ページスタイル
   ライバー事務所向け - ピンク系・シンプルクリーンデザイン
   ========================================================================== */

:root {
    --custom-primary: #ef9da1;        /* メインピンク */
    --custom-primary-light: #FCE4F0;  /* 薄いピンク背景 */
    --custom-primary-dark: #C4176F;   /* 濃いピンク */
    --custom-text: #333333;           /* 本文テキスト */
    --custom-text-light: #666666;     /* 薄いテキスト */
    --custom-border: #EEEEEE;         /* ボーダー */
    --custom-bg: #FFFFFF;             /* 背景 */
    --custom-bg-gray: #FAFAFA;        /* グレー背景 */
}

/* 記事全体 - レイアウトは下部の「記事ページレイアウト」セクションで定義 */

/* ==========================================================================
   記事ヘッダー
   ========================================================================== */

.custom-post-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--custom-border);
}

/* カテゴリー */
.custom-post-category {
    margin-bottom: 16px;
}

.custom-category-link {
    display: inline-block;
    padding: 6px 16px;
    background: var(--custom-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin: 0 4px;
}

.custom-category-link:hover {
    background: var(--custom-primary-dark);
    color: #fff;
}

/* タイトル */
.custom-post-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--custom-text);
    margin: 0 0 16px 0;
}

@media (max-width: 768px) {
    .custom-post-title {
        font-size: 22px;
    }
}

/* 公開日 */
.custom-post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.custom-post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--custom-text-light);
}

.custom-date-icon::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666666'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11zM9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* ==========================================================================
   アイキャッチ画像
   ========================================================================== */

.custom-post-thumbnail {
    margin-bottom: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.custom-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   記事本文
   ========================================================================== */

.custom-post-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--custom-text);
    margin-bottom: 48px;
}

.custom-post-content h2 {
    color: #ef9da1;
    background-color: #fff;
    font-size: 20px;
    padding: 20px;
    display: block;
    border: 2px solid #ef9da1;
    box-shadow: 5px 8px 0 #ef9da1;
}

.custom-post-content h2::before{
    border: none;
}

.custom-post-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--custom-primary);
}

.custom-post-content h3::before {
    background: none;
}

.custom-post-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--custom-primary-dark);
}

.custom-post-content p {
    margin-bottom: 24px;
}

.custom-post-content a {
    color: var(--custom-primary);
    text-decoration: underline;
}

.custom-post-content a:hover {
    color: var(--custom-primary-dark);
}

@media (max-width: 768px) {
    .custom-post-title{
        font-size: 20px;
    }
    
    .custom-post-content h2 {
        font-size: 16px;
    }

    .custom-post-content h3{
        font-size: 16px;
    }

    .custom-post-content p{
        font-size: 14px;
    }

    .cap_box_ttl{
        font-size: 14px;
    }

    .post_content li{
        font-size: 12px;
        line-height: 1.7;
        margin: .4em 0;
    }

    .post_content th{
        font-size: 12px;
    }

    .post_content td{
        font-size: 12px;
    }
}

/* ==========================================================================
   記事フッター
   ========================================================================== */

.custom-post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--custom-border);
}

/* ==========================================================================
   SNSシェアボタン
   ========================================================================== */

.custom-share-buttons {
    text-align: center;
    margin-bottom: 48px;
}

.custom-share-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--custom-text-light);
    margin-bottom: 16px;
}

.custom-share-list {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.custom-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-share-twitter {
    background: #000000;
    color: #fff;
}

.custom-share-twitter:hover {
    background: #333333;
    color: #fff;
}

.custom-share-facebook {
    background: #1877F2;
    color: #fff;
}

.custom-share-facebook:hover {
    background: #0d5fc7;
    color: #fff;
}

.custom-share-line {
    background: #06C755;
    color: #fff;
}

.custom-share-line:hover {
    background: #05a648;
    color: #fff;
}

@media (max-width: 768px) {
    .custom-share-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* ==========================================================================
   前後の記事リンク
   ========================================================================== */

.custom-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .custom-post-navigation {
        grid-template-columns: 1fr;
    }
}

.custom-nav-link {
    display: block;
    padding: 20px;
    background: var(--custom-bg-gray);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--custom-border);
}

.custom-nav-link:hover {
    background: var(--custom-primary-light);
    border-color: var(--custom-primary);
}

.custom-nav-prev {
    text-align: left;
}

.custom-nav-next {
    text-align: right;
}

.custom-nav-label {
    display: block;
    font-size: 12px;
    color: var(--custom-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.custom-nav-title {
    display: block;
    font-size: 14px;
    color: var(--custom-text);
    line-height: 1.5;
}

/* ==========================================================================
   関連記事
   ========================================================================== */

.custom-related-posts {
    margin-bottom: 48px;
}

.custom-related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--custom-text);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--custom-primary);
}

.custom-related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .custom-related-list {
        grid-template-columns: 1fr;
    }
}

.custom-related-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--custom-bg-gray);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--custom-border);
}

.custom-related-item:hover {
    background: var(--custom-primary-light);
    border-color: var(--custom-primary);
}

.custom-related-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
}

.custom-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-related-info {
    flex: 1;
    min-width: 0;
}

.custom-related-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--custom-text);
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-related-date {
    font-size: 12px;
    color: var(--custom-text-light);
}

/* ==========================================================================
   記事ページレイアウト
   ========================================================================== */

.custom-page-content .custom-article {
    max-width: 800px;
    margin: 0 auto;
    background: var(--custom-bg);
    padding: 40px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .custom-page-content .custom-article {
        padding: 24px 8px;
    }
}

/* 記事一覧に戻るボタン */
.back-to-list {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--custom-border);
}

.back-to-list-link {
    display: inline-block;
    padding: 14px 40px;
    background: var(--custom-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.back-to-list-link:hover {
    background: var(--custom-primary-dark);
    color: #fff;
}

@media (max-width: 768px) {
    .back-to-list {
        margin-top: 32px;
        padding-top: 24px;
    }
}

/* ==========================================================================
   目次（TOC）
   ========================================================================== */

.custom-toc {
    background: var(--custom-bg-gray, #FAFAFA);
    border: 1px solid var(--custom-border, #EEE);
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.custom-toc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--custom-text, #333);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--custom-primary, #ef9da1);
    text-align: center;
}

.custom-toc-list {
    margin: 0;
    padding: 0 0 0 1.5em;
}

.custom-toc-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.custom-toc-list li:last-child {
    margin-bottom: 0;
}

.custom-toc-list li a {
    color: var(--custom-text, #333);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.custom-toc-list li a:hover {
    color: var(--custom-primary, #ef9da1);
}

.custom-toc-list li.toc-h3 {
    margin-left: 1.2em;
    font-size: 13px;
}

.custom-toc-list li.toc-h3 a {
    font-size: 13px;
    color: var(--custom-text-light, #666);
}

@media (max-width: 768px) {
    .custom-toc {
        padding: 20px;
    }
}

/* ==========================================================================
   著者情報ボックス
   ========================================================================== */

.custom-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--custom-bg-gray, #FAFAFA);
    border: 1px solid var(--custom-border, #EEE);
    border-radius: 8px;
    padding: 24px;
    margin-top: 40px;
    margin-bottom: 8px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-label {
    display: block;
    font-size: 11px;
    color: var(--custom-text-light, #666);
    margin-bottom: 4px;
}

.author-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--custom-text, #333);
    margin-bottom: 8px;
}

.author-description {
    font-size: 13px;
    line-height: 1.7;
    color: var(--custom-text-light, #666);
    margin: 0;
}

@media (max-width: 768px) {
    .custom-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .author-avatar img {
        width: 64px;
        height: 64px;
    }
}

/* ==========================================================================
   タイトル位置: コンテンツ上（post-title-top）
   ========================================================================== */

.post-title-top {
    background: var(--custom-bg-gray, #FAFAFA);
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--custom-border, #EEE);
}

.post-title-top-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-title-top .custom-post-title {
    font-size: 30px;
    margin: 0;
}

.post-title-top .custom-post-meta {
    margin-bottom: 16px;
}

.post-title-top .custom-post-category {
    margin-bottom: 12px;
}

/* blog-single-layout 内のタイトルトップ対応 */
.blog-single .post-title-top .post-title-top-inner {
    max-width: none;
}

@media (max-width: 768px) {
    .post-title-top {
        padding: 32px 0 28px;
    }

    .post-title-top .custom-post-title {
        font-size: 22px;
    }
}

/* ==========================================================================
   ブログ記事内 CTAセクション
   ========================================================================== */

.blog-cta-section {
    margin-top: 48px;
}

.blog-cta-section .cta-inner {
    position: relative;
}

.blog-cta-section .cta-inner > picture img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-cta-section .cta-image-link {
    display: block;
    position: absolute;
    bottom: 8%;
    left: 0;
    right: 0;
    width: 90%;
    margin-inline: auto;
}

.blog-cta-section .cta-image-link img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .blog-cta-section {
        margin-top: 32px;
    }
}

@media (min-width: 769px) {
    .blog-cta-section .cta-image-link {
        width: 40%;
        bottom: 10%;
        left: 12%;
        right: auto;
    }
}

/* ==========================================================================
   404エラーページ
   ========================================================================== */

.error-404-content {
    text-align: center;
    padding: 60px 20px;
}

.error-404-code {
    font-family: 'Poppins', sans-serif;
    font-size: 100px;
    font-weight: 700;
    color: var(--custom-primary);
    line-height: 1;
    margin: 0 0 16px;
    opacity: 0.8;
}

.error-404-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--custom-text);
    margin: 0 0 20px;
}

.error-404-message {
    font-size: 15px;
    line-height: 1.8;
    color: var(--custom-text-light);
    margin: 0 0 40px;
}

.error-404-action .back-to-list-link {
    display: inline-block;
    padding: 14px 40px;
    background: var(--custom-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.error-404-action .back-to-list-link:hover {
    background: var(--custom-primary-dark);
    color: #fff;
}

@media (max-width: 768px) {
    .error-404-content {
        padding: 40px 16px;
    }

    .error-404-code {
        font-size: 72px;
    }

    .error-404-title {
        font-size: 20px;
    }

    .error-404-message {
        font-size: 14px;
    }
}

