/* Works Page Styles - Hilomel Style */

/* Case Study Modal Styles */
.case-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.case-modal.active {
    display: block;
    overflow: hidden;
}

.case-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    overflow: hidden;
}

.case-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: #000000;
    border-radius: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10002;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    overscroll-behavior: contain;
}

/* Close Button */
.case-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10003;
    color: #ffffff;
}

.case-modal-close:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.1);
}

.case-modal-close svg {
    width: 30px;
    height: 30px;
}

/* Hero Section */
.case-modal-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #000000;
}

.case-modal-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Body Section */
.case-modal-body {
    background: #000000;
    padding: 60px 0;
}

.case-modal-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.case-modal-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: start;
}

/* Left Column */
.case-modal-left {
    padding-right: 20px;
}

.case-modal-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.case-modal-description {
    font-size: 1.3rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
}

/* Right Column - Info Box */
.case-modal-info-box {
    background: #000000;
    border: 1px solid #45EEFF;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
}

.case-modal-info-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    background: #45EEFF;
    padding: 15px 30px;
    margin: 0;
}

.case-modal-info-content {
    padding: 30px;
}

.case-modal-info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

.case-modal-info-row:last-of-type {
    border-bottom: none;
    flex-direction: column;
    gap: 15px;
}

.case-modal-info-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    min-width: 140px;
    margin-right: 20px;
}

.case-modal-info-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #45EEFF;
}

.case-modal-info-text {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
}

.case-modal-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-modal-tag {
    display: inline-block;
    padding: 8px 20px;
    background: #45EEFF;
    color: #000000;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* CTA Button */
.case-modal-cta-button {
    width: 100%;
    padding: 18px 30px;
    background: #FF0000;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.case-modal-cta-button:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

/* Details Section */
.case-modal-details {
    background: #000000;
    padding: 60px 0 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.case-modal-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    position: relative;
    padding-bottom: 15px;
}

.case-modal-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: #45EEFF;
}

.case-modal-detail-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    margin: 40px 0 30px 0;
}

.case-modal-detail-section {
    margin-bottom: 40px;
}

.case-modal-detail-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.case-modal-detail-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin: 0;
}

.case-modal-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-modal-detail-list li {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.case-modal-detail-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #45EEFF;
}

.case-modal-detail-numbered-list {
    padding-left: 30px;
    margin: 0;
}

.case-modal-detail-numbered-list li {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .case-modal-content {
        width: 95%;
        height: 95vh;
        border-radius: 8px;
    }

    .case-modal-hero {
        height: 250px;
    }

    .case-modal-container {
        padding: 0 20px;
    }

    .case-modal-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-modal-title {
        font-size: 1.8rem;
    }

    .case-modal-info-box {
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .case-modal-info-title {
        font-size: 1.1rem;
        padding: 12px 20px;
    }

    .case-modal-info-content {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .case-modal-info-item {
        width: 100%;
        overflow-wrap: break-word;
    }

    .case-modal-info-label {
        min-width: 100px;
        font-size: 0.85rem;
    }

    .case-modal-info-value {
        font-size: 1.4rem;
        word-break: break-word;
    }

    .case-modal-cta-button {
        font-size: 1rem;
        padding: 15px 25px;
    }

    .case-modal-section-title {
        font-size: 1.5rem;
    }

    .case-modal-detail-title {
        font-size: 1.3rem;
    }

    .case-modal-detail-heading {
        font-size: 1.1rem;
    }

    .case-modal-detail-text,
    .case-modal-detail-list li,
    .case-modal-detail-numbered-list li {
        font-size: 1rem;
    }
}

/* Filter Header Overlay */
.filter-header {
    position: fixed;
    top: var(--header-height, 80px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.filter-group {
    position: relative;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.filter-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(69, 238, 255, 0.3);
    border-radius: 8px;
    margin-top: 10px;
    padding: 10px 0;
    min-width: 200px;
    display: none;
    backdrop-filter: blur(10px);
}

.filter-dropdown.active {
    display: block;
}

.filter-option {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 25px;
}

/* Hero Carousel Section */
.p-headline {
    --works-filter-offset: 52px; /* フィルター帯の高さ相当 */
}
.p-headline {
    position: relative;
    width: 100%;
    margin-top: 0;
    padding-top: var(--works-filter-offset); /* 固定フィルター分の余白を内部で確保 */
    background: #000000;
    overflow: hidden;
    border: none;
    border-bottom: none;
    z-index: 100; /* 他の要素より上に表示 */
}

.p-headline__carousel {
    position: relative;
    width: 100%;
    /* より大きいヒーローセクション */
    height: clamp(450px, 45vw, 700px);
}

.p-headline__carousel-body {
    position: relative;
    width: 100%;
    height: 100%;
}

.p-headline__carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transition: opacity 1s ease;
}

.p-headline__carousel-item.active {
    opacity: 1;
}

/* 左側画像エリア */
.p-headline__carousel-item-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.p-headline__carousel-item-img picture {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/* c-img-coverクラスのスタイル追加 */
.c-img-cover {
    display: block;
    width: 100%;
    height: 100%;
}

.c-img-cover source {
    display: block;
}

.p-headline__carousel-item-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.p-headline__carousel-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* 2枚目以降は中央揃え */
    opacity: 0.4;
}

/* 1枚目のスライドは画像を完全表示と下揃え */
.first-slide .p-headline__carousel-item-img img {
    opacity: 1;
    object-position: center bottom; /* 1枚目のみ下揃え */
}

/* 1枚目のスライドは背景オーバーレイなし */
.first-slide .p-headline__carousel-item-img::after {
    display: none;
}

/* 右側テキストエリア */
.p-headline__carousel-item-txt {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.p-headline__carousel-item-txt .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 0 60px; /* 左側のみパディング */
}

/* カテゴリー部分 */
.category {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.category .name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.js-p-headline__menu-open-button {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.js-p-headline__menu-open-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* メインコンテンツ */
.others {
    max-width: 600px; /* より左寄せに見せるため幅を制限 */
}

.others .title {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
}

.others .description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 下部エリア */
.wrap {
    display: flex;
    align-items: center;
    gap: 30px;
}

.agent-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.agent-price .price {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.agent-price .price .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFD700;
    margin-left: 10px;
}

.more {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, #45EEFF 0%, #3A9FFF 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(69, 238, 255, 0.4);
}

/* Carousel Pagination */
.p-headline__carousel-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.p-headline__carousel-pagination .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.p-headline__carousel-pagination .dot.active {
    background: white;
    transform: scale(1.3);
}

/* Container */
.l-container {
    max-width: 100%;
    padding: 0 60px;
    margin: 0 auto;
    background: transparent;
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

/* FV直後の余白を動的ヘッダー高に追随（ズレ防止） */
.p-headline + .l-container,
.p-headline + div,
.p-headline + section {
    margin-top: var(--works-filter-offset) !important; /* フィルター帯の高さぶん下げる */
    padding-top: 0;
}

/* デフォルトではフッター下のモバイルFVを非表示 */
.mobile-hero-below-footer {
    display: none;
}

/* Carousel Sections */
.indexPage-carousels {
    padding: 60px 0;
    background: transparent;
    border: none;
    border-top: none;
}

.p-carousel-section {
    margin-bottom: 80px;
    background: transparent;
    border: none;
}

.p-carousel-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: transparent;
    border: none;
    padding: 0;
}

.p-carousel-section__header .title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.p-carousel-section__header .more {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.3s ease;
    padding: 10px 20px;
    background: transparent;
}

.p-carousel-section__header .more:hover {
    transform: translateX(5px);
}

.p-carousel-section__header .more::after {
    content: '→';
    font-size: 1.2rem;
}

/* Carousel Body */
.p-carousel-section__carousel {
    position: relative;
}

.p-carousel-section__carousel-body {
    overflow: hidden;
}

.p-carousel-section__swiper {
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.p-carousel-section__swiper:active {
    cursor: grabbing;
}

.p-carousel-section__swiper-wrap {
    display: flex;
    transition: transform 0.3s ease;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.p-carousel-section__swiper-wrap .item {
    flex: 0 0 290px;
    padding-right: 20px;
}

/* Case Article Card */
.p-case-article {
    background: rgba(26, 26, 26, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    height: 100%;
}

.p-case-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(69, 238, 255, 0.3);
    border-color: rgba(69, 238, 255, 0.4);
}

.p-case-article a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.p-case-article__img {
    width: 100%;
    height: 160px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.p-case-article__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: all 0.3s ease;
}

.p-case-article:hover .p-case-article__img img {
    opacity: 0.9;
    transform: scale(1.05);
}

.p-case-article__txt {
    padding: 20px;
}

.p-case-article__industry {
    margin-bottom: 10px;
}

.p-case-article__industry span {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #45EEFF 0%, #3A9FFF 100%);
    color: white;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Industry-specific colors */
.p-case-article__industry span:contains("IT") {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.p-case-article__industry span:contains("飲食") {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.p-case-article__industry span:contains("化粧品"),
.p-case-article__industry span:contains("コスメ") {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
}

.p-case-article__industry span:contains("人材"),
.p-case-article__industry span:contains("コンサル") {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.p-case-article__industry span:contains("ベンチャー") {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}

.p-case-article__industry span:contains("地方自治体") {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
}

.p-case-article__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-case-article__price {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.p-case-article__price .value {
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.p-case-article__price .value:contains("ASK") {
    background: linear-gradient(135deg, #45EEFF 0%, #3A9FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Buttons */
.p-carousel-section__swiper-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

.p-carousel-section__swiper-navigation button {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-carousel-section__swiper-navigation button:hover {
    background: white;
    transform: scale(1.1);
}

.p-carousel-section__swiper-navigation button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.p-carousel-section__swiper-navigation .prev {
    left: -20px;
}

.p-carousel-section__swiper-navigation .next {
    right: -20px;
}

.p-carousel-section__swiper-navigation .prev::before {
    content: '←';
    font-size: 1.2rem;
    color: #333;
}

.p-carousel-section__swiper-navigation .next::before {
    content: '→';
    font-size: 1.2rem;
    color: #333;
}

/* Responsive */
@media (max-width: 1200px) {
    .l-container {
        padding: 0 40px;
    }
    
    .p-carousel-section__swiper-wrap .item {
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .l-container {
        padding: 0 20px;
    }
    /* 画像の下に見出し以降が来る：FVを表示、フッター下の臨時画像は隠す */
    .p-headline { display: block; }
    .mobile-hero-below-footer { display: none; }
    
    .p-headline__carousel {
        height: auto !important;
        min-height: 550px !important;
        position: relative;
    }
    
    .p-headline__carousel-item {
        flex-direction: column;
        position: relative !important;
        height: auto !important;
        min-height: 520px !important;
    }
    /* アクティブ以外は表示しない → 余白を削除 */
    .p-headline__carousel-item:not(.active) { display: none !important; }
    
    .p-headline__carousel-item-img {
        position: relative !important;
        width: 100%;
        height: 250px;
        overflow: hidden;
    }
    
    /* pictureタグとimgタグの高さを明示的に設定 */
    .p-headline__carousel-item-img picture,
    .p-headline__carousel-item-img img,
    .c-img-cover,
    .c-img-cover img {
        display: block !important;
        width: 100% !important;
        height: 250px !important;
        object-fit: cover !important;
    }
    
    /* モバイルではオーバーレイを削除 */
    .p-headline__carousel-item-img::after {
        display: none !important;
    }
    
    /* モバイルでは画像を完全表示 */
    .p-headline__carousel-item-img img {
        opacity: 1 !important;
    }
    
    .p-headline__carousel-item-txt {
        position: relative !important;
        padding: 20px 15px;
        height: auto !important;
        min-height: 200px;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        background: #000;
        width: 100% !important;
    }
    
    /* ドットの位置を固定 */
    .p-headline__carousel-pagination {
        position: absolute !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 20;
    }
    
    .p-headline__carousel-item-txt .container { padding: 0; }
    
    .category {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .category .name {
        font-size: 0.75rem;
    }
    
    .others .title {
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .others .description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .wrap {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }
    
    .agent-price .price {
        font-size: 0.75rem;
    }
    
    .agent-price .price .value {
        font-size: 1.1rem;
    }
    
    .more {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* 各カードの文字サイズ個別調整 */
    .carousel-item-2 .others .title {
        font-size: 1.1rem !important;
    }
    
    .carousel-item-3 .others .title {
        font-size: 1.0rem !important;
    }
    
    /* 1枚目はテキストエリアを非表示 */
    .first-slide .p-headline__carousel-item-txt {
        display: none !important;
    }
    
    /* 1枚目は画像をドットの手前まで拡張 */
    .first-slide.p-headline__carousel-item {
        min-height: 520px !important;
    }
    
    .first-slide .p-headline__carousel-item-img {
        height: calc(100% - 40px) !important; /* ドット分のスペースを確保 */
        min-height: 480px !important;
    }
    
    .first-slide .p-headline__carousel-item-img picture,
    .first-slide .p-headline__carousel-item-img img,
    .first-slide .c-img-cover,
    .first-slide .c-img-cover img {
        height: 100% !important;
        min-height: 480px !important;
        object-fit: cover !important;
    }
    
    .carousel-item-4 .others .title {
        font-size: 1.2rem !important;
    }
    
    .carousel-item-5 .others .title {
        font-size: 1.0rem !important;
    }
    
    .p-carousel-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .p-carousel-section__swiper-wrap .item {
        flex: 0 0 280px;
    }
    
    .p-carousel-section__swiper-navigation button { width: 35px; height: 35px; }
}