@charset "UTF-8";

/* ================================================
   Case Studies Common Styles
   ================================================ */

/* Common Section Wrapper */
.case-study-section {
    padding: 80px 0;
}

.case-study-section .container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.section-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-forest-dark);
    text-align: center;
    margin-bottom: 16px;
}

.section-title span {
    color: var(--color-bronze);
}

.section-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-teal);
    text-align: center;
    margin-bottom: 50px;
}

/* Utilities */
.pc-only { display: inline; }
.sp-only { display: none; } /* Added for consistency */

/* Background Variations */
.background-section {
    background: var(--color-gray-lightF2);
}
.background-section .container {
    max-width: 800px;
}

/* ================================================
   Case Studies Top Page (List) Styles
   ================================================ */

/* Top Hero Section */
.case-top-hero {
    background: linear-gradient(135deg, #063026 0%, #2C7260 100%);
    color: #fff;
    padding: 166px 24px 74px;
    text-align: center;
    position: relative;
}

.case-top-hero .hero-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.case-top-hero .hero-title span {
    color: var(--color-bronze);
}

.case-top-hero .hero-lead {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 32px;
    font-weight: 500;
}

/* Top Hero Stats */
.case-top-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-bronze);
    line-height: 1.1;
    margin-bottom: 8px;
    font-family: "Noto Sans JP", sans-serif;
}

.stat-item .stat-value span {
    font-size: 20px;
    margin-left: 4px;
}

.stat-item .stat-label {
    display: block;
    font-size: 16px;
    font-weight: 300;
    color: var(--white);
    opacity: 0.9;
}

.hero-disclaimer {
    font-size: 16px;
    color: var(--white);
    line-height: 1.6;
    padding-left: 1em;
    text-indent: -1em;
}

/* Case List Grid (Top Page) */
.case-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.case-list-card {
    background: var(--color-sage-lightC6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.case-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-teal);
    text-decoration: none;
    color: inherit;
}

.case-card-image {
    height: 200px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.case-card-image img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 画像が写真の場合 */
.case-card-image.photo-bg {
    padding: 0;
}
.case-card-image.photo-bg img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.case-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-forest-dark);
    margin-bottom: 12px;
}

.case-card-meta {
    margin-bottom: 16px;
}

.meta-industry,
.hash-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--color-bronze);
    background: var(--color-gray-lightF2);
    padding: 4px 12px;
    border-radius: 16px;
}

.case-card-problem {
    background: var(--color-green-lightE8);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.problem-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-teal);
    margin-bottom: 4px;
}

.problem-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-forest-dark);
    margin: 0;
}

.case-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 20px;
}

.hash-tag {
    font-weight: 500;
}

.case-card-footer {
    text-align: center;
    margin-top: auto;
}

.btn-detail {
    display: block;
    width: 100%;
    padding: 10px 0;
    background: #fff;
    border: 1px solid var(--color-teal);
    color: var(--color-teal);
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s;
}

.case-list-card:hover .btn-detail {
    background: var(--color-teal);
    color: #fff;
}


/* ================================================
   Individual Case Study Page Styles
   ================================================ */

/* Hero Section (Individual) */
.case-study-hero {
    background: linear-gradient(135deg, #d4e9e2 0%, #c5dfd4 100%);
    padding: 0;
    position: relative;
}

.case-study-hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 180px 40px 60px;
}

.hero-main {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.hero-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.company-logo-box {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.company-logo-box img {
    max-width: 240px;
    height: auto;
    display: block;
}

.hero-right {
    flex: 1;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.5;
    color: #1a3a2e;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.7;
    color: var(--color-teal);
    font-weight: 500;
    margin-bottom: 20px;
}

.note-mark {
    font-size: 12px;
    vertical-align: super;
}

.hero-industry {
    margin-top: 20px;
}

.industry-tag {
    display: inline-block;
    padding: 8px 28px;
    background-color: #EFEFEF;
    border-radius: 24px;
    font-size: 14px;
    color: #c17a4d;
    font-weight: 600;
}

.hero-summary-cards {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 24px 0;
}

.hero-summary-card {
    flex: 1;
    background-color: transparent;
    padding: 0px 20px;
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid #f6f1f1;
}

.hero-summary-card:last-child {
    border-right: none;
}

.summary-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-forest-dark);
    margin-bottom: 12px;
    text-align: center;
}

.summary-card-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-teal);
    margin: 0;
    text-align: center;
}

.hero-note {
    font-size: 12px;
    line-height: 1.8;
    color: #1a3a2e;
    margin: 0;
}

/* Individual Content Styles */
#introduction.case-study-section.case-study-section {
    background: var(--color-gray-light);
}

#introduction.case-study-section.case-study-section .container {
     max-width: 800px;
}

#prospects .content-box img {
    width: 12px;
    filter: invert(18%) sepia(32%) saturate(734%) hue-rotate(135deg) brightness(95%) contrast(97%);
}
#prospects .content-box img#target {
    width: 16px;
}

.content-box {
    background-color: var(--color-sage-lightC6);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-forest-dark);
    margin-bottom: 30px;
}

.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.challenge-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    margin: 0;
    background-color: transparent;
    border-radius: 0;
    border-left: none;
    border-bottom: 1px solid var(--white);
}

.challenge-item:last-child {
    border-bottom: none;
}

.challenge-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-right: 20px;
    margin-top: 6px;
    flex-shrink: 0;
    position: relative;
    top: 0;
    left: 0;
}

.challenge-icon::before {
    content: '';
    position: absolute;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('../img/icon/icon-cross.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 6px;
    height: 6px;
    opacity: var(--scroll-opacity);
    pointer-events: none;
    z-index: 10;
    filter: invert(18%) sepia(32%) saturate(734%) hue-rotate(135deg) brightness(95%) contrast(97%);
}

.challenge-content {
    flex: 1;
}

.challenge-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-forest-dark);
}

.challenge-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-forest-dark);
    margin: 0;
}

/* Solution Section (Individual) */
.solution-section {
    background-color: var(--color-gray-light);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    border-color: #4a9b7f;
    box-shadow: 0 4px 12px rgba(74, 155, 127, 0.1);
}

.solution-card-highlight {
    background: linear-gradient(135deg, #e8f4f0 0%, #d4e9e2 100%);
    border-color: #4a9b7f;
}

.solution-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-forest-dark);
    margin-bottom: 16px;
}

.solution-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-forest-dark);
    margin-bottom: 24px;
    flex-grow: 1;
}

.solution-result {
    padding: 25px 32px;
    border-left: 4px solid #c17a4d;
    background-color: var(--color-green-lightE8);
    border-radius: 8px;
}

.result-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-forest-dark);
    margin-bottom: 12px;
}

.result-label img {
    width: 12px;
    filter: invert(16%) sepia(30%) saturate(1062%) hue-rotate(120deg) brightness(90%) contrast(95%);
}

.result-text {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Results Section (Individual) */
.results-section {
    background-color: var(--color-sage-lightC6);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 18px;
}

.result-card {
    background-color: #fff;
    padding: 40px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-badge {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.result-label-small {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    margin-bottom: 12px;
}

.result-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-bronze);
    line-height: 1.25;
}

.result-text-large {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #c17a4d;
    line-height: 1.4;
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-forest-dark);
    margin-bottom: 16px;
}

.result-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-teal);
    text-align: left;
}

.results-note {
    font-size: 12px;
    line-height: 1.8;
    color: #777;
    text-align: center;
}

/* Summary Conclusion Section */
.summary-conclusion-section {
    background-color: #fff;
}

.conclusion-box {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.conclusion-text {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    margin: 0;
}

/* Future Section */
.future-section {
    background: linear-gradient(135deg, #1a3a2e 0%, #2d5a4a 100%);
    color: #fff;
}

.future-section .section-title,
.future-section .section-subtitle {
    color: #fff;
}

.future-section .content-box {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.future-section .content-text {
    color: #e0e0e0;
}

.future-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.future-item {
    display: flex;
    align-items: flex-start;
    padding: 24px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border-left: 4px solid #4a9b7f;
}

.future-item:last-child {
    margin-bottom: 0;
}

.future-icon {
    font-size: 32px;
    margin-right: 20px;
    flex-shrink: 0;
}

.future-content {
    flex: 1;
}

.future-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.future-description {
    font-size: 14px;
    line-height: 1.7;
    color: #e0e0e0;
    margin: 0;
}

/* Final CTA Section */
.final-cta-section {
    background: linear-gradient(135deg, #1a3a2e 0%, #2d5a4a 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.final-cta-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.final-cta-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 24px;
}

.final-cta-text {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.btn-large {
    padding: 18px 48px;
    font-size: 16px;
    font-weight: 700;
}

ul.table-notes {
    margin: 24px 0 0 0;
    list-style: none;
}

ul.table-notes li {
    font-size: 12px;
    line-height: 1.8;
    color: var(--color-primary);
    padding-left: 1em;
    text-indent: -1em;
}

ul.table-notes a:link,
ul.table-notes a:visited {
    color: var(--color-forest-dark);
    text-decoration: underline;
}
ul.table-notes a:hover {
    color: var(--color-green-light69);
    text-decoration: none!important;
}


/* ================================================
   Responsive Styles (Consolidated)
   ================================================ */

/* Tablet (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    /* Top Page List Grid */
    .case-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Individual Page Hero */
    .case-study-hero-inner {
        padding: 50px 30px;
    }

    .hero-main {
        flex-direction: column;
        gap: 30px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-summary-cards {
        flex-direction: column;
    }

    /* Grids */
    .solution-grid,
    .results-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Sections */
    .case-study-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .content-box {
        padding: 30px 24px;
    }

    .result-number {
        font-size: 48px;
    }

    .result-text-large {
        font-size: 20px;
    }

    .final-cta-title {
        font-size: 28px;
    }

    .final-cta-text {
        font-size: 15px;
    }
}

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Utilities */
    .pc-only {
        display: none;
    }
    .sp-only {
        display: inline;
    }

    /* Top Page Specific */
    .case-top-hero {
        padding: 166px 16px 50px;
    }
    
    .case-top-hero .hero-title {
        font-size: clamp(32px, 4vw, 48px);
    }

    .case-top-stats {
        display: flex;
        gap: 8%;
    }

    .case-top-hero .hero-lead {
        font-size: clamp(18px, 2vw, 24px);
    }

    .stat-item .stat-label {
        font-size: 12px;
    }

    .stat-item {
        width: auto;
    }
    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-item .stat-value {
        font-size: 36px;
        margin-bottom: 0;
    }
    
    .case-list-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Individual Page Hero */
    .case-study-hero {
        border-width: 2px;
    }

    .case-study-hero-inner {
        padding: 40px 20px;
    }

    .hero-main {
        gap: 24px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .company-logo-box {
        background-color: transparent;
        padding: 0;
    }

    .company-logo-box img {
        max-width: 180px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .hero-disclaimer {
        font-size: 12px;
        color: var(--white);
        line-height: 1.6;
    }

    .industry-tag {
        font-size: 12px;
        padding: 6px 20px;
    }

    .hero-summary-cards {
        flex-direction: column;
        gap: 0;
        padding: 24px;
    }

    .case-study-section .container {
        padding: 0 32px;
    }

    .hero-summary-card {
        padding: 20px 16px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .hero-summary-card:last-child {
        border-bottom: none;
    }

    .summary-card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .summary-card-text {
        font-size: 12px;
    }

    .hero-note {
        font-size: 11px;
    }

    /* Common Sections Mobile */
    .case-study-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .content-box {
        padding: 30px 24px;
    }

    .content-text {
        font-size: 14px;
    }

    .challenge-item {
        padding: 16px 0;
    }

    .challenge-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 16px;
        margin-right: 16px;
    }

    .challenge-title {
        font-size: 15px;
    }

    .challenge-description {
        font-size: 13px;
    }

    .solution-card {
        padding: 24px;
    }

    .solution-title {
        font-size: 16px;
        text-align: center;
    }

    .solution-description {
        font-size: 13px;
    }

    .result-text {
        font-size: 12px;
    }

    .result-card {
        padding: 30px 20px;
    }

    .result-badge {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .result-label-small {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .result-number {
        font-size: 24px;
    }

    .result-text-large {
        font-size: 18px;
    }

    .result-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .result-description {
        font-size: 13px;
    }

    .results-note {
        font-size: 11px;
        padding: 0 10px;
    }

    .conclusion-box {
        padding: 30px 24px;
    }

    .conclusion-text {
        font-size: 14px;
    }

    .future-item {
        padding: 20px 16px;
        margin-bottom: 16px;
    }

    .future-icon {
        font-size: 28px;
        margin-right: 16px;
    }

    .future-title {
        font-size: 15px;
    }

    .future-description {
        font-size: 13px;
    }

    .final-cta-section {
        padding: 60px 0;
    }

    .final-cta-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .final-cta-text {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 15px;
        width: 100%;
        max-width: 100%;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    /* Individual Page Hero */
    .case-study-hero-inner {
        padding: 150px 24px 30px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .company-logo-box {
        background-color: transparent;
        padding: 0;
    }

    .company-logo-box img {
        max-width: 80%;
        margin: 0 auto;
    }

    .hero-summary-card {
        padding: 16px 12px;
    }

    .content-box {
        padding: 20px 16px;
    }

    .challenge-item,
    .future-item {
        padding: 16px 12px;
    }

    .solution-card {
        padding: 20px 16px;
    }

    .result-card {
        padding: 24px 16px;
    }

    .conclusion-box {
        padding: 24px 20px;
    }

    .final-cta-title {
        font-size: 22px;
    }

    .btn-large {
        font-size: 14px;
        padding: 14px 24px;
    }
}