/* =============================================
   Column Detail Page Styles (コラム詳細)
   Bootstrap 5 対応版
   ============================================= */

/* Column Detail Section */
.column-detail-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Column Article */
.column-article {}

/* Column Article Header */
.column-article-header {
    margin-bottom: 25px;
}

.column-article-title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.column-article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.column-article-date {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #888;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.column-article-category {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.column-article-category a {
    display: inline-block;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 12px;
    color: #fff;
    background: #00479d;
    padding: 4px 12px;
    border-radius: 3px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.column-article-category a:hover {
    opacity: 0.7;
}

/* Column Article Thumbnail */
.column-article-thumbnail {
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
}

.column-article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Column Article Content */
.column-article-content {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 15px;
    color: #333;
    line-height: 2;
}

.column-article-content p {
    margin-bottom: 1.5em;
}

.column-article-content ul {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.column-article-content li {
    margin-bottom: 0.5em;
    line-height: 1.8;
}

.column-article-content a {
    color: #00479d;
    text-decoration: underline;
}

.column-article-content a:hover {
    opacity: 0.7;
}

/* Column Article Content Items */
.column-article-content h2 {
    background: #00479d;
    border-radius: 25px 0px 0px 25px;
    color: #fff;
    display: inline-block;
    font-weight: bold;
    line-height: 1.3;
    vertical-align: middle;
    width: 100%;
    padding: 0.5em;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.column-article-content h2::before {
    content: '●';
    color: white;
    margin-right: 8px;
}

.column-article-content h3 {
    border-bottom: solid 3px #00479d;
    font-weight: bold;
    position: relative;
    padding: 10px 0;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.column-article-content h3::after {
    position: absolute;
    content: " ";
    display: block;
    border-bottom: solid 3px #dd4000;
    left: 0;
    bottom: -3px;
    width: 30%;
}

.column-article-content h4 {
    position: relative;
    padding-left: 25px;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    color: #00479d;
    font-weight: bold;
}

.column-article-content h4::before {
    position: absolute;
    content: '';
    bottom: -3px;
    left: 0;
    width: 0;
    height: 0;
    border: none;
    border-left: solid 15px transparent;
    border-bottom: solid 15px #00479d;
}

.column-article-content h4::after {
    position: absolute;
    content: '';
    bottom: -3px;
    left: 10px;
    width: 100%;
    border-bottom: solid 3px #00479d;
}

.column-article-content h5 {
    position: relative;
    padding-left: 1.2em;
    line-height: 1.4;
    font-weight: bold;
    margin-bottom: .75rem;
}

.column-article-content h5::before {
    font-family: "Font Awesome 5 Free";
    content: "\f00c";
    font-weight: 900;
    position: absolute;
    font-size: 1em;
    left: 0;
    top: 0;
    color: #00479d;
    font-weight: 900;
}

.column-article-content h6 {
    position: relative;
    line-height: 1.4;
    padding: 0.25em 1em;
    display: inline-block;
    top: 0;
    font-weight: bold;
}

.column-article-content h6:before,
.column-article-content h6:after {
    position: absolute;
    top: 0;
    content: '';
    width: 8px;
    height: 100%;
    display: inline-block;
}

.column-article-content h6:before {
    border-left: solid 1px #00479d;
    border-top: solid 1px #00479d;
    border-bottom: solid 1px #00479d;
    left: 0;
}

.column-article-content h6:after {
    content: '';
    border-top: solid 1px #00479d;
    border-right: solid 1px #00479d;
    border-bottom: solid 1px #00479d;
    right: 0;
}

.column-article-content .wp-block-pullquote {
    padding: 3em 0;
    font-weight: bold;
}

.column-article-content

/* Column Article Figure */
.column-article-figure {
    margin: 30px 0;
}

.column-article-figure img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.column-article-figure figcaption {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

/* Column Article Note */
.column-article-note {
    color: #00479d;
    font-weight: 500;
}

/* Column Article Footer */
.column-article-footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.column-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #00479d;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.column-back-link:hover {
    opacity: 0.7;
    color: #00479d;
}

.column-back-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("../images/arrow-solo.svg") no-repeat center / contain;
    transform: rotate(180deg);
}

/* =============================================
   Sidebar Styles
   ============================================= */

.column-sidebar {
    top: 30px;
}

/* Sidebar Widget */
.sidebar-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget-title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #00479d;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #00479d;
}

/* Sidebar Article List */
.sidebar-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-article-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-article-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.sidebar-article-link:hover {
    opacity: 0.7;
}

.sidebar-article-image {
    width: 80px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    background: #f5f5f5;
}

.sidebar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-body {
    flex: 1;
    min-width: 0;
}

.sidebar-article-title,
.sidebar-article-date {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-article-date {
    margin-top: .5rem;
    color: #848484;
}

/* Sidebar Archive List */
.sidebar-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-archive-list li {
    margin-bottom: 10px;
    display: flex;
    justify-content: start;
    align-items: center;
}

.sidebar-archive-list li:last-child {
    margin-bottom: 0;
}

.sidebar-archive-list a {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    position: relative;
    bottom: -2px;
}

.sidebar-archive-list a::before {
    content: ">";
    color: #00479d;
    font-size: 12px;
}

.sidebar-archive-list a:hover {
    color: #00479d;
}

/* Sidebar Category List */
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list li {
    margin-bottom: 10px;
    display: flex;
    justify-content: start;
    align-items: center;
}

.sidebar-category-list li:last-child {
    margin-bottom: 0;
}

.sidebar-category-list a {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    position: relative;
    bottom: -1.5px;
    margin-right: 4px;
}

.sidebar-category-list a::before {
    content: ">";
    color: #00479d;
    font-size: 12px;
}

.sidebar-category-list a:hover {
    color: #00479d;
}

/* =============================================
   CTA Section
   ============================================= */

.column-cta-section {
    background: url("../images/youto-bg.jpg")no-repeat top center/cover;
}

.column-cta-text {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    color: #333;
    line-height: 1.8;
}

.column-cta-button {
    background: #00479d;
    border-radius: 999px;
    padding: 20px 80px 20px 40px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 71, 157, 0.3);
    position: relative;
}

.column-cta-button::before {
    content: "";
    background: url("../images/arrow-white.svg") no-repeat center / contain;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.column-cta-button:hover {
    background: #00479d;
    color: #fff;
    transform: translateY(-2px);
    opacity: 0.9;
}

/* =============================================
   Responsive Styles
   ============================================= */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .column-article-title {
        font-size: 24px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .column-detail-section {
        padding-top: 30px;
        padding-bottom: 50px;
    }

    .column-article-title {
        font-size: 22px;
    }

    .column-article-content {
        font-size: 14px;
    }

    .column-sidebar {
        position: static;
        margin-top: 40px;
    }

    .column-cta-text {
        font-size: 16px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .column-detail-section {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .column-article-header {
        margin-bottom: 20px;
    }

    .column-article-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .column-article-date {
        font-size: 13px;
    }

    .column-article-thumbnail {
        margin-bottom: 25px;
    }

    .column-article-content {
        font-size: 14px;
        line-height: 1.9;
    }

    .column-article-figure {
        margin: 25px 0;
    }

    .column-article-footer {
        margin-top: 40px;
        padding-top: 25px;
    }

    .sidebar-widget-title {
        font-size: 16px;
    }

    .sidebar-article-title {
        font-size: 12px;
    }

    .column-cta-text {
        font-size: 15px;
    }

    .column-cta-button {
        font-size: 16px;
        padding: 18px 70px 18px 30px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .column-article-title {
        font-size: 18px;
    }

    .column-article-meta {
        gap: 10px;
    }

    .column-article-date {
        font-size: 12px;
    }

    .column-article-category a {
        font-size: 11px;
        padding: 3px 10px;
    }

    .column-article-content {
        font-size: 13px;
        line-height: 1.85;
    }

    .column-article-figure figcaption {
        font-size: 12px;
    }

    .column-back-link {
        font-size: 13px;
    }

    .sidebar-article-image {
        width: 70px;
        height: 48px;
    }

    .column-cta-text {
        font-size: 14px;
    }

    .column-cta-button {
        font-size: 14px;
        padding: 16px 60px 16px 25px;
    }

    .column-cta-button::before {
        width: 30px;
        height: 30px;
        right: 15px;
    }
}