/*****************************************************************
事例詳細ページ専用スタイル
*****************************************************************/

/* Main Contents */
#single-cases #mainContents section.wrap {
    padding-top: 80px;
}

#single-cases .casesContainer {
    margin-top: 2rem;
}

/* Cases Category */
.cases_cat {
    max-width: fit-content;
    width: 100%;
    padding: 0.5em 1em;
    font-size: 80%;
    margin-left: 0;
    margin-bottom: 20px;
    filter: unset;
    border-radius: 50px;
    cursor: unset;
    color: #ffffff;
    background-color: #ff8811;
}

/* Cases Table */
.cases_table {
    width: 95%;
    max-width: 950px;
    margin: 2rem auto;
}

.cases_table table {
    width: 100%;
}

.cases_table table th,
.cases_table table td {
    border: 1px solid;
    padding: 0.5em;
    box-sizing: border-box;
    vertical-align: middle;
}

.cases_table table th {
    font-weight: bold;
    background-color: #efeeee;
    width: 250px;
}

.cases_table table td {
    width: calc(100% - 250px);
}

/* Kadai (課題・解決) */
.kadai {
    width: 95%;
    max-width: 1100px;
    margin: 5rem auto;
}

.kadai-before-group {
    width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
    background-color: #e1f4f5;
    border-radius: 10px;
    filter: drop-shadow(1px 1px 5px #d4d4d4);
    margin-bottom: 5rem;
    position: relative;
}

.kadai-before-group::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 38px 48px 0 48px;
    border-color: #f94540 transparent transparent transparent;
    left: 50%;
    bottom: -60px;
    transform: translateX(-50%);
}

.kadai-before-group h5 {
    font-weight: bold;
    text-align: center;
    color: #0fa3b1;
    margin-bottom: 0;
    font-size: 1.25rem;
}

.kadai-before {
    padding: 1.5rem 1rem;
}

.kadai-before li {
    line-height: 1.95;
    display: flex;
    align-items: center;
}

.kadai-before li span {
    color: #0fa3b1;
    margin-right: 5px;
}

.kadai-after-group {
    width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
    background-color: #fff1e2;
    border-radius: 10px;
    filter: drop-shadow(1px 1px 5px #d4d4d4);
    margin-bottom: 5rem;
}

.kadai-after-group h5 {
    font-weight: bold;
    text-align: center;
    color: #f94540;
    margin-bottom: 0;
    font-size: 1.25rem;
}

.kadai-after {
    padding: 1.5rem 1rem;
}

.kadai-after li {
    line-height: 1.95;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.kadai-after li span {
    color: #f94540;
    margin-right: 5px;
}

/* Article Requirements & Set */
.article-requirements,
.article-set {
    display: table;
}

.article-requirements {
    margin-bottom: 2rem;
}

.requirements-head,
.set-head {
    display: table-cell;
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.requirements-head {
    background-color: #277da1;
}

.set-head {
    background-color: #ff8811;
}

.requirements-head p,
.set-head p {
    position: absolute;
    width: max-content;
    font-weight: bold;
    font-size: 20px;
    color: #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.requirements-inner,
.set-inner {
    height: auto;
    display: table-cell;
    vertical-align: middle;
    padding: 1rem;
    box-sizing: border-box;
    line-height: 1.5;
    font-weight: bold;
}

.article-set {
    margin-bottom: 2rem;
}

.article-set-img {
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.article-set-img img {
    margin: 0 auto;
    width: 800px;
    height: auto;
}

/* Article Group */
.arsecle-group {
    position: relative;
    counter-reset: listnum;
}

.article-wrap {
    padding: 4rem 0;
    position: relative;
}

.article-wrap::before {
    position: absolute;
    counter-increment: listnum;
    content: counter(listnum, decimal-leading-zero);
    top: -7%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #0fa3b1;
    font-weight: bold;
    font-size: 1.7rem;
    background-image: url(../img/cases_bubble.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 3rem;
    height: 3rem;
    text-align: center;
    padding-top: 1rem;
}

.article-midashi {
    color: #00b4c2;
    font-weight: bold;
    text-align: center;
    font-size: 1.35rem;
}

.article-honbun {
    margin-top: 2rem;
}

/* Staff Quote */
.case-staff-quote {
    margin: 40px 0;
    padding: 0 20px;
}

.quote-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 40px;
    background-color: #f9f9f9;
    border-left: 4px solid #ff8811;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quote-container blockquote {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0 0 15px 0;
    font-style: italic;
    position: relative;
    text-align: center;
}

.quote-mark {
    font-size: 42px;
    color: #ff8811;
    position: absolute;
    left: -25px;
    top: -10px;
    opacity: 0.5;
}

.quote-mark.closing {
    left: auto;
    right: -15px;
    bottom: -20px;
    top: auto;
}

.staff-attribution {
    text-align: right;
    margin-top: 15px;
    font-size: 16px;
    color: #555;
}

.staff-position {
    display: inline-block;
    margin-right: 8px;
    font-size: 14px;
}

.staff-name {
    font-weight: bold;
    color: #333;
}

/* Responsive Styles */
@media screen and (max-width: 767px) {
    .cases_table table th,
    .cases_table table td {
        width: 100%;
    }
    
    .kadai-before,
    .kadai-after {
        padding: 1.5rem 0 0 0;
    }
    
    .kadai-before li,
    .kadai-after li {
        align-items: flex-start;
    }
    
    .kadai-before li span,
    .kadai-after li span {
        margin-top: 5px;
    }
    
    .kadai-before-group::after {
        border-width: 30px 40px 0 40px;
    }
    
    .requirements-head,
    .set-head {
        display: inline-block;
        width: 60px;
        height: 60px;
    }
    
    .requirements-head p,
    .set-head p {
        font-size: 1rem;
    }
    
    .requirements-inner,
    .set-inner {
        padding: 0 0 0 1rem;
    }
    
    .article-set {
        margin-bottom: 2rem;
    }
    
    .article-wrap::before {
        top: 0%;
    }
    
    .article-midashi {
        font-size: 1.35rem;
    }
    
    .article-honbun {
        margin-top: 1rem;
    }
    
    .quote-container {
        padding: 20px 25px;
    }
    
    .quote-container blockquote {
        font-size: 16px;
    }
    
    .quote-mark {
        font-size: 32px;
        left: -20px;
    }
}