/* ========================================
   Agency Single Page - Note-like Style
   noteスタイルに近い読みやすいデザイン
======================================== */

/* 基本レイアウトは既定のスタイルを維持 */

/* タイトルブロックはNEWSページと統一したスタイル */
.agency-single .title_block {
    background: #fff;
    /* padding-top: 235px; */
}

.agency-single .title_block__inner {
    margin: 0 auto;
    max-width: 1160px;
    padding: 0 20px 150px;
}

.agency-single .title_block__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 100px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    margin: 0;
}

.agency-single .title_block__sub_title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    margin: 0;
    display: inline-block;
}

/* メインコンテンツエリア */
.agency-single .contents_block {
    background: #fff;
    padding: 0;
}

.agency-single .contents_block__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.agency-single .contents_block__body {
    padding: 40px 0 60px;
}

/* 記事タイトルと日付 */
.agency-single .contents_block__title_wrapper {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.agency-single .contents_block__title_date {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-bottom: 16px;
    display: block;
}

.agency-single .contents_block__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

/* カテゴリー・タグのスタイル */
.agency-single .contents_block__categories,
.agency-single .contents_block__tags {
    margin: 16px 0 0 0;
}

.agency-single .contents_block__label {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-right: 8px;
}

.agency-single .contents_block__category,
.agency-single .contents_block__tag {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-right: 6px;
    font-weight: 400;
}

.agency-single .contents_block__tag {
    background: #e9ecef;
    color: #6c757d;
}

/* メイン記事コンテンツ */
.agency-single .contents_block__article {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    word-wrap: break-word;
}

/* 見出しスタイル */
.agency-single .contents_block__article h1 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 48px 0 20px 0;
    line-height: 1.4;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.agency-single .contents_block__article h2 {
    margin: 40px 0 20px 0; /* h1とのバランスを考慮し、margin-topを追加 */
    background-color: #1a1a1a; /* 仕様通り黒背景 */
    color: #fff; /* 仕様通り白抜き文字 */
    padding: 10px 15px;
    border-radius: 5px; /* 添付画像のような角丸装飾 */
}

.agency-single .contents_block__article h3 {
    margin: 32px 0 16px 0; /* h2とのバランスを考慮し、margin-topを追加 */
    background-color: #f5f5f5; /* 仕様通りグレー背景 */
    color: #1a1a1a; /* 仕様通り黒文字 */
    padding: 8px 15px 8px 20px; /* 添付画像のような左パディング */
    border-radius: 5px; /* 添付画像のような角丸装飾 */
}

.agency-single .contents_block__article h4 {
    background-color: transparent; /* 仕様通り背景色なし */
    border-bottom: 1px solid #1a1a1a; /* 仕様通り下線（実線） */
    padding-bottom: 5px;
    margin-top: 18px;
    margin-bottom: 8px;
}

/* 段落と文章 */
.agency-single .contents_block__article p {
    margin: 20px 0;
    line-height: 1.8;
    color: #333;
}

.agency-single .contents_block__article p:first-child {
    margin-top: 0;
}

.agency-single .contents_block__article p:last-child {
    margin-bottom: 0;
}

/* リスト */
.agency-single .contents_block__article ul,
.agency-single .contents_block__article ol {
    margin: 20px 0;
    padding-left: 24px;
}

.agency-single .contents_block__article li {
    margin: 8px 0;
    line-height: 1.7;
    color: #333;
}

/* リンク */
.agency-single .contents_block__article a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.agency-single .contents_block__article a:hover {
    color: #0052a3;
    opacity: 1;
}

/* 引用 */
.agency-single .contents_block__article blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    background: #f8f9fa;
    border-left: 4px solid #dee2e6;
    font-style: italic;
    color: #495057;
}

/* コード */
.agency-single .contents_block__article code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    color: #e83e8c;
    font-family: 'Courier New', monospace;
}

.agency-single .contents_block__article pre {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid #e9ecef;
}

.agency-single .contents_block__article pre code {
    background: none;
    padding: 0;
    color: #495057;
}

/* 画像 */
.agency-single .contents_block__article img {
    max-width: 100%;
    height: auto;
    margin: 32px 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* テーブル */
.agency-single .contents_block__article table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 14px;
}

.agency-single .contents_block__article th,
.agency-single .contents_block__article td {
    padding: 12px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.agency-single .contents_block__article th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

/* 区切り線 */
.agency-single .contents_block__article hr {
    margin: 48px 0;
    border: none;
    border-top: 1px solid #eee;
}

/* 目次スタイル */
.table-of-contents-wrapper {
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.table-of-contents-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.table-of-contents-toggle {
    font-size: 1.2em;
    margin-right: 10px;
    transition: transform 0.2s ease-in-out;
}

.table-of-contents-wrapper.is-open .table-of-contents-toggle {
    transform: rotate(0deg);
}

.table-of-contents-wrapper.is-closed .table-of-contents-toggle {
    transform: rotate(-90deg);
}

.table-of-contents-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
}

.table-of-contents-list {
    list-style: decimal;
    padding: 0;
    margin: 0!important;
    max-height: 500px; /* 適宜調整 */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.table-of-contents-wrapper.is-closed .table-of-contents-list {
    max-height: 0;
}

.table-of-contents-list li {
    margin-bottom: 8px;
    font-size: 15px;
}

.table-of-contents-list li a {
    color: #1a1a1a!important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-of-contents-list li a:hover {
    color: #1a1a1a!important;
    text-decoration: underline;
}

/* 戻るボタンの調整 */
.agency-single .contents_block__btn {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.agency-single .contents_block__btn a {
    display: inline-block;
    padding: 12px 32px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.agency-single .contents_block__btn a:hover {
    background: #5a6268;
    opacity: 1;
    transform: translateY(-1px);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .agency-single .container {
        padding: 0 16px;
    }
    
    .agency-single .title_block__inner {
        max-width: 100%;
        padding: 100px calc(20 / 375 * 100vw) calc(40 / 375 * 100vw);
    }
    
    .agency-single .title_block__title {
        font-size: 16vw;
    }
    
    .agency-single .title_block__sub_title {
        font-size: calc(14 / 375 * 100vw);
        margin-top: 0;
    }
    
    .agency-single .contents_block__title {
        font-size: 26px;
    }
    
    .agency-single .contents_block__article {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .agency-single .contents_block__article h1 {
        font-size: 24px;
    }
    
    .agency-single .contents_block__article h2 {
        font-size: 20px;
    }
    
    .agency-single .contents_block__article h3 {
        font-size: 18px;
    }
    
    .agency-single .contents_block__inner {
        padding: 0 16px;
    }
    
    .agency-single .contents_block__body {
        padding: 30px 0 40px;
    }
}


 /* リセット用のスコープ付きスタイル */
        .la-cta-wrapper-v2 {
            all: initial;
            display: block;
            font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'メイリオ', Meiryo, sans-serif;
            box-sizing: border-box;
        }
        
        .la-cta-wrapper-v2 * {
            box-sizing: border-box;
        }

        .la-cta-wrapper-v2 a {
            color: inherit;
            text-decoration: none;
        }

        .la-cta-wrapper-v2 a:hover,
        .la-cta-wrapper-v2 a:visited,
        .la-cta-wrapper-v2 a:active,
        .la-cta-wrapper-v2 a:focus {
            color: inherit;
            text-decoration: none!important;
            outline: none;
        }

        /* プロモーションコンテナ */
        .la-promo-container-v2 {
            max-width: 600px;
            margin: 0 auto;
            padding: 32px 20px;
            text-align: center;
        }

        /* ヘッダー部分 */
        .la-promo-header-v2 {
            margin-bottom: 28px;
            position: relative;
            background: linear-gradient(135deg, #FFF9E6 0%, #FFE5B4 100%);
            padding: 16px 24px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .la-highlight-wrapper-v2 {
            display: inline-block;
            position: relative;
            padding: 0 24px;
        }

        .la-highlight-text-v2 {
            font-size: 18px;
            font-weight: 700;
            color: #8B4513;
            letter-spacing: 0.05em;
            line-height: 1.6;
            position: relative;
            z-index: 2;
        }

        @keyframes la-text-shimmer-v2 {
            /* アニメーション削除 */
        }

        /* キラキラ装飾 */
        .la-sparkle-v2 {
            position: absolute;
            top: -4px;
            font-size: 20px;
            color: #D2691E;
            animation: la-sparkle-twinkle-v2 1.5s ease-in-out infinite;
        }

        .la-sparkle-v2.la-left-v2 {
            left: 0;
            animation-delay: 0s;
        }

        .la-sparkle-v2.la-right-v2 {
            right: 0;
            animation-delay: 0.75s;
        }

        @keyframes la-sparkle-twinkle-v2 {
            0%, 100% { 
                transform: scale(1) rotate(0deg);
                opacity: 1;
            }
            50% { 
                transform: scale(1.3) rotate(180deg);
                opacity: 0.6;
            }
        }

        /* CTAボタン本体 */
        .la-cta-button-enhanced-v2 {
            display: inline-block;
            position: relative;
            padding: 20px 48px;
            background: linear-gradient(135deg, #364246 0%, #2a3338 100%);
            color: #ffffff!important;
            text-decoration: none!important;
            border-radius: 50px;
            font-size: 20px;
            font-weight: 600;
            letter-spacing: 0.08em;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            box-shadow: 0 8px 24px rgba(54, 66, 70, 0.3),
                        0 2px 8px rgba(54, 66, 70, 0.2);
            border: 2px solid transparent;
            cursor: pointer;
        }

        .la-cta-button-enhanced-v2:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 12px 32px rgba(54, 66, 70, 0.4),
                        0 4px 12px rgba(54, 66, 70, 0.3);
            background: linear-gradient(135deg, #2a3338 0%, #364246 100%);
        }

        .la-cta-button-enhanced-v2:active {
            transform: translateY(-1px) scale(0.98);
        }

        /* ボタンコンテンツ */
        .la-button-content-v2 {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .la-arrow-v2 {
            display: inline-block;
            font-size: 24px;
            transition: transform 0.3s ease;
        }

        .la-cta-button-enhanced-v2:hover .la-arrow-v2 {
            transform: translateX(4px);
        }

        /* 光沢効果 */
        .la-shine-v2 {
            position: absolute;
            top: -50%;
            left: -100%;
            width: 100%;
            height: 200%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.2),
                transparent
            );
            transform: skewX(-25deg);
            animation: la-shine-sweep-v2 3s ease-in-out infinite;
        }

        @keyframes la-shine-sweep-v2 {
            0% { left: -100%; }
            20%, 100% { left: 200%; }
        }

        /* ボーダーエフェクト */
        .la-border-effect-v2 {
            position: absolute;
            inset: -2px;
            border-radius: 50px;
            padding: 2px;
            background: linear-gradient(
                45deg,
                #FFD700,
                #FFA500,
                #FFD700,
                #FFA500
            );
            background-size: 300% 300%;
            animation: la-border-glow-v2 4s ease infinite;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 0;
            -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                          linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
        }

        .la-cta-button-enhanced-v2:hover .la-border-effect-v2 {
            opacity: 1;
        }

        @keyframes la-border-glow-v2 {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .la-highlight-text-v2 {
				padding: 0 12px;
        }

            @media screen and (max-width: 768px) {
            .la-promo-container-v2 {
                padding: 24px 16px;
            }

            .la-promo-header-v2 {
                padding: 12px 8px;
            }

            .la-highlight-text-v2 {
                font-size: 12px;
				padding: 0;
            }

            .la-cta-button-enhanced-v2 {
                padding: 16px 36px;
                font-size: 17px;
                width: 100%;
                max-width: 320px;
            }

            .la-sparkle-v2 {
                font-size: 16px;
            }
        }

        @media screen and (max-width: 480px) {
            .la-highlight-text-v2 {
                font-size: 12px;
                padding: 0;
            }

            .la-cta-button-enhanced-v2 {
                padding: 14px 28px;
                font-size: 15px;
            }

            .la-arrow-v2 {
                font-size: 20px;
            }
        }
