/* Fix for swiper slides height consistency */
.slider-services .swiper-slide {
    height: auto !important;
}

.slider-services .figure-service {
    height: 100%;
}

.slider-services .figure-service .row {
    height: 100%;
}

.slider-services .figure-service__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    /* Set a minimum height for all slides */
}

.slider-services .figure-service__header {
    flex: 1;
}

.slider-services .figure-service__text {
    display: flex;
    flex-direction: column;
}

/* Ensure the footer stays at the bottom */
.slider-services .figure-service__footer {
    margin-top: auto;
}

.blog-card {
    transition: all 0.3s ease;
    background-color: #f7f6f3;
    border-radius: 4px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-card-inner {
    background-color: #f7f6f3;
    color: #111111;
}

.blog-image {
    height: 200px;
    background-color: #f7f6f3;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.empty-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f6f3;
    color: #f7f6f3;
    padding: 15px;
    text-align: center;
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #111111;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    z-index: 2;
}

.blog-content {
    padding: 15px;
    background-color: #f7f6f3;
}

.blog-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #111111;
}

.blog-text {
    font-size: 14px;
    color: #111111;
    line-height: 1.5;
}

/* ブログ・ニュース一覧ページの改善 */
.figure-post__excerpt {
    line-height: 1.5;
}

.figure-post__excerpt p {
    margin-bottom: 0;
    color: #666;
}

.figure-post__meta {
    margin-top: 10px;
}

.figure-post__categories a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.figure-post__categories a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.figure-post__categories a.active {
    color: #7A903E;
    font-weight: 600;
}

.figure-post__tags {
    margin-top: 8px;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.badge-outline-primary {
    color: #007bff;
    border: 1px solid #007bff;
    background-color: transparent;
}

.badge-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
}

.badge-primary {
    color: #fff;
    background-color: #007bff;
    border: 1px solid #007bff;
}

.figure-post__read-more {
    margin-top: 15px;
}

.btn-outline-primary {
    color: #007bff;
    border: 1px solid #007bff;
    background-color: transparent;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    text-decoration: none;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.775rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* タグクラウドの現在のタグハイライト */
.tag-cloud-link.active {
    background-color: #007bff;
    color: #fff;
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
    font-weight: 600;
}

.tag-cloud-link.active:hover {
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
}

/* カテゴリリストの現在のカテゴリハイライト */
.cat-item.current-cat a {
    color: #7A903E;
    font-weight: 600;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .figure-post__meta {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .figure-post__meta span {
        margin-top: 5px;
    }

    .figure-post__tags {
        margin-top: 10px;
    }

    .badge {
        margin-bottom: 3px;
        margin-right: 3px;
    }
}

/* カードレイアウトの改善 */
.figure-post {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.figure-post:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.figure-post__media {
    position: relative;
    overflow: hidden;
}

.figure-post__media img {
    transition: transform 0.3s ease;
}

.figure-post:hover .figure-post__media img {
    transform: scale(1.05);
}

.figure-post__header {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.figure-post__read-more {
    margin-top: auto;
    padding-top: 10px;
}

/* 画像のアスペクト比を統一 */
.figure-post__media {
    height: 240px;
    overflow: hidden;
}

.figure-post__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 空の状態のメッセージスタイル */
.text-center.my-5 {
    padding: 3rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin: 2rem 0 !important;
}

.text-center.my-5 .h5 {
    color: #6c757d;
    margin-bottom: 1rem;
}

.text-center.my-5 p {
    color: #868e96;
    margin-bottom: 0;
}

/* セクション見出しのスタイル改善 */
.section-heading {
    color: #343a40;
    font-weight: 600;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem !important;
}

/* 著者情報のスタイル */
.figure-post__meta .text-muted {
    font-style: italic;
    font-size: 0.8rem;
}

/* ページ説明文のスタイル */
.section-masthead__text {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #007bff;
}

/* ヒーローセクションのテキストスタイル */
.hero-title {
    color: #000000 !important;
    font-size: 3.5rem !important;
}

.hero-subtitle-main {
    color: #000000 !important;
    font-size: 1.8rem !important;
}

.hero-subtitle-sub {
    color: #333333 !important;
    font-size: 1.1rem !important;
}

/* ヒーローセクションのThree.js要素スタイル */
.hero-shape-container {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle-main {
        font-size: 1.3rem !important;
    }

    .hero-subtitle-sub {
        font-size: 0.9rem !important;
    }
}