@charset "utf-8";

/* new case detail */

.case_detail {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.case_detail * {
    transition: none;
}

.Wrapper {
    width: 1600px; /* Figma Frame width */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content */
}

/* Header Styles */
.Header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.Header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    padding: 6px 56px;
    background-color: #1D8B9C;
    color: #FFFFFF;
}

.textlink {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.langage {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.langage img {
    width: 24px;
    height: 24px;
}

.Header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 56px;
    border-bottom: 1px solid #E7EBEE;
}

.logo {
    display: flex;
    align-items: center; /* Figma logo frame layout */
    gap: 8px; /* Gap from Figma */
}

.call4_logo, .tagline {
    display: flex;
    gap: 2px; /* Assuming small gap for SVG parts based on visual */
}

.call4_logo img, .tagline img {
    height: 20px; /* Approximate height, adjust as needed */
}

.leftSide {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navItem {
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-align: center;
}

.CTAButton {
    display: inline-flex; /* To match Figma's auto-layout */
    align-items: center;
    justify-content: center; /* Center text */
    padding: 14px 24px;
    background-color: #FF6701;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
    /* border-radius: 4px; Common border radius */
    text-align: center;
}

.CTAButton:hover {
    background-color: #CC4902;
    color: #FFFFFF;
    opacity: 1;
}

.Header-CTA {
    /* Specific styles if different from base CTAButton */
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 250px; /* Matches Figma padding */
    font-size: 14px;
    font-weight: 500;
    color: #212529; /* Default text color */
}

.breadcrumb a {
    color: #1D8B9C; /* Link color from Figma */
}

.breadcrumb span {
    color: #212529; /* Current page color */
}

.breadcrumb img {
    width: 24px;
    height: 24px;
}

/* Main Content Styles */
/* main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
} */

.section {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0 auto;
}

.section_under_case_tab {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
}

.head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 80px 0;
    width: 1100px; /* Max width of content area */
    margin: 0 auto;
}

.head-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.head-content h1 {
    color: #373D42;
    font-weight: 700;
}

.hashtags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1px 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    border: 1px solid #62C7CD;
    border-radius: 999px;
    color: #1D8B9C;
    background-color: #FFFFFF;
}

.case_row {
    display: flex;
    align-items: flex-start; /* Default alignment */
    gap: 24px;
    width: 100%;
}

.img {
    /* For image containers */
}
.main-image {
    width: 629px; /* Figma width */
    height: 420px; /* Figma height */
    overflow: hidden; /* Ensures image fits */
}
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.text-area {
    display: flex;
    flex-direction: column;
    flex: 1; /* Takes remaining space */
    margin-top: 32px;
}

.floating-banner .text-area {
    margin-top: 0;
}
.floating-banner .author {
    margin-top: 0;
}

.donation-info, .supporter-info {
    display: flex;
    flex-direction: column;
}

.tit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #1D8B9C;
    letter-spacing: 0.04em;
}

.tit img {
    width: 24px;
    height: 24px;
}

.case_row .amount, .case_row .count {
    font-size: 44px;
    font-weight: 700;
    color: #212529;
    letter-spacing: 0.04em;
}


.unit {
    font-size: 24px;
}

.target {
    font-size: 16px;
    color: #515F69;
    letter-spacing: 0.04em;
}

.divider {
    width: 1px;
    align-self: stretch;
    background-color: #CBD3D6;
    margin: 32px 0 12px; /* Figma padding */
}

.gage {
    width: 100%;
    height: 24px;
    background-color: #E7EBEE;
    border-radius: 4px;
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.gage-filled {
    height: 100%;
    background: linear-gradient(to right, #1D8B9C, #09A4BC);
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #FFFFFF;
    letter-spacing: 0.04em;
}

.gage-filled.empty {
    color: #1D8B9C;
}

.gage-filled.full {
    background: #FF6701;
}

.gage-filled span {
    padding: 0 12px;
}
.author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    letter-spacing: 0.04em;
    margin-top: 12px;
}
.author a {
    color: #212529;
}
.author a:hover {
    color: #1D8B9C;
}

.author-icon {
    width: 32px; /* Figma size */
    height: 32px;
    border-radius: 999px;
    background-color: #000;
}

.buttonArea {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start; /* Align button to start */
    margin-top: 12px;
}

.buttonArea .CTAButton {
    width: 447px; /* Figma specific width */
    height: 60px;
    font-size: 18px;
    padding: 16px; /* Reset padding if specific height/width */
}

.share-buttons {
    justify-content: flex-end; /* Align to end as in Figma */
    gap: 8px;
}

.shareButton {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.shareButton:hover img {
    filter: invert(34%) sepia(91%) saturate(1172%) hue-rotate(157deg) brightness(94%) contrast(77%);
}
.shareButton img.hover {
    display: none;
}
.shareButton:hover img.default {
    display: none;
}
.shareButton:hover img.hover {
    display: block;
    filter: none;
}


.shareButton img {
    width: 24px;
    height: 24px;
}
.shareButton:hover img {
    opacity: 1;
}

.intro-paragraph {
    background-color: #EEF7F7;
    padding: 32px 230px;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.04em;
    text-align: justify; /* Based on visual */
    position: relative; /* For quotes */
    width: 100%; /* Full width of parent */
    box-sizing: border-box;
}
.intro-paragraph > div {
    position: relative;
}
.intro-paragraph span {
    position: relative;
    z-index: 1000;
}

.quote-open {
    position: absolute;
    left: 190px; /* Figma position */
    top: 16px;    /* Figma position */
    width: 56px; /* Figma size */
    height: 40px; /* Figma size */
    fill: #DAEEEE;
}

.quote-close {
    position: absolute;
    right: 190px; /* Adjust based on quote open and text */
    bottom: 16px;  /* Adjust based on quote open and text */
    width: 56px;
    height: 40px;
    fill: #DAEEEE;
}


/* Tabs Section */
.section-tabs {
    gap: 0;
    padding-top: 0;
    width: 1100px; /* Max width */
    margin: 0 auto 32px;
    position: relative;
}

.Tabs {
    display: flex;
    align-self: stretch;
}
.tabs-divider {
    border-bottom: 2px solid #CBD3D6;
    width: 100%;
    position: absolute;
    z-index: 1;
    bottom: 0;
}

.Tab {
    padding: 10px 24px; /* Approximate from Figma: 2px vertical + 8px label padding */
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 43px; /* Fixed height from Figma */
    box-sizing: border-box;
    position: relative;
    border-bottom: 2px solid #CBD3D6
}

.Tab a {
    color: inherit;
}

.Tab a:hover {
    text-decoration: none;
}

.Tab.active {
    color: #1D8B9C;
    border-bottom: 2px solid #1D8B9C
}

.Tab:hover {
    opacity: 0.7;
}

.TabBlank {
    flex-grow: 1;
    border-bottom: 2px solid #CBD3D6;
}

.Tab.active::after {
    display: block;
    width: 100%;
    content: '';
    color: #1D8B9C;
    border-bottom: 1px solid #1D8B9C;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.Tab .tag.new {
    background-color: #FFF0D3;
    color: #FF6701;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 1px;
    border: none;
}

.content-row {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 24px;
}

.main-content {
    width: 640px;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Default gap for p, h2 etc. */
}

.main-content .h2 {
    /* padding for h2 if needed */
}

.main-content .p {
    padding-top: 16px; /* Space above paragraphs */
}
.main-content .p:first-child {
    padding-top: 0;
}


.main-content .textlink {
    color: #1D8B9C;
    text-decoration: underline;
}

.imgArea {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.imgArea img{
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px; /* If images have rounded corners */
}

.caption {
    font-size: 14px;
    font-weight: 500;
    color: #515F69;
    letter-spacing: 0.04em;
    text-align: left;
}

.main-content .h2:not(:first-child) {
    padding-top: 32px; /* Space above subsequent h2 */
}

.main-content .h3 {
    padding-top: 24px; /* Space above h3 */
}

.border-left {
    display: inline-block; /* To apply border and padding */
    border-left: 4px solid #31B3BE;
    padding-left: 12px;
}

.box {
    background-color: #F4F6F7; /* Default for .box */
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 4px; /* Common radius */
}

.box h4 {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.box p {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
}

.sidecolumn {
    width: 436px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-box {
    background-color: #EEF7F7;
    padding: 24px;
    gap: 12px;
}

.side-box-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.highlight-tag {
    display: inline-flex;
    padding: 2px 24px;
    background-color: #FFFFFF;
    color: #FF6701;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
}
.side-box p {
    margin: 0;
}

.side-box-head p {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: strict;
}

.side-box-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-box-card p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    color: #212529;
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: strict;
}

.deadline {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #515F69;
}

.deadline img {
    width: 20px;
    height: 20px;
}

.side-box .CTAButton {
    padding: 12px 16px;
    font-size: 16px;
    width: 100%; /* Make button full width of card */
    box-sizing: border-box;
}

.side-box-head-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.side-box-head-link h3 {
    font-size: 20px;
    color: #000000;
    line-height: 1.4;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.side-box-head-link .textlink {
    font-size: 14px;
    color: #1D8B9C;
}

.card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}

.info-row img {
    width: 20px;
    height: 20px;
}

.comment-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.user-icon {
    width: 40px; /* Figma size */
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
}

.comment .content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.name-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.name {
    font-size: 14px;
    font-weight: 700;
    color: #212529;
}

.date {
    font-size: 12px;
    font-weight: 500;
    color: #515F69;
}

.comment p {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
}

.divider-horizontal {
    height: 1px;
    background-color: #CBD3D6;
    width: 100%;
}

.author-profile-box {
    border: 1px solid #CBD3D6;
    padding: 24px 32px;
    display: flex;
    flex-direction: column; /* Changed to column for better layout */
    align-items: center; /* Center items */
    gap: 24px;
    text-align: center; /* Center text */
}
.author-profile-box p:empty {
    display: none;
}

.author-icon-large {
    width: 80px; /* Figma size */
    height: 80px;
    border-radius: 999px;
    object-fit: cover;
}

.author-profile-text {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center text within this div */
    gap: 8px;
}

.author-profile-text h4 {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
}

.author-profile-text p {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    line-height: 1.7;
    white-space: pre-line; /* To respect line breaks from Figma */
}

.Button.white-button {
    display: flex; /* Use flex for alignment */
    align-items: center; /* Vertically align icon and text */
    justify-content: center; /* Horizontally center content */
    gap: 16px;
    border: 1px solid #212529;
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    background-color: #FFFFFF;
    width: 325px; /* Figma fixed width */
    padding: 13px 16px;
    box-sizing: border-box;
    position: relative;
    text-align: center;
}
.Button.white-button:hover {
    color: #1D8B9C;
    border-color: #1D8B9C;
}
.Button.white-button:hover img {
    opacity: 1;
    filter: invert(48%) sepia(44%) saturate(775%) hue-rotate(140deg) brightness(86%) contrast(86%);
}
 
.button-container .back-button.Button {
    margin: 32px auto 80px;
}

.back-button img {
    width: 24px;
    height: 12px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
}

/* Recommended Cases Section */
.recommended-cases {
    background-color: #F4F6F7;
    padding: 80px 250px; /* Match Figma padding */
    width: 100%;
    box-sizing: border-box;
}

.recommended-cases .head-content h2 {
     color: #373D42;
     text-align: left; /* Align heading to the left */
     width: 1100px; /* Content width */
     margin: 0 auto 24px auto; /* Center and add bottom margin */
}

.case-cards {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 16px;
    justify-content: center; /* Center cards */
    width: 1100px; /* Content width */
    margin: 0 auto; /* Center */
}

.cassette_case {
    width: calc(25% - 12px); /* 4 cards per row, (16px * 3 gaps) / 4 cards = 12px adjustment */
    background-color: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.08); /* Subtle shadow */
    display: flex;
    flex-direction: column;
    padding: 12px;
    box-sizing: border-box;
    gap:12px;
}

.case-image {
    width: 100%;
    height: 160px; /* Approximate height */
    overflow: hidden;
    border-radius: 2px; /* Slight radius for image container */
}
.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.cassette_case .text {
    gap: 8px;
}

.cassette_case .tags {
    gap: 4px;
}

.cassette_case .tag {
    font-size: 12px;
    padding: 2px 8px;
}

.tag.new {
    background-color: #FFF0D3;
    color: #FF6701;
    border: none;
}

.tag.recruiting {
    background-color: #DAEEEE;
    color: #1D8B9C;
    border: none;
}

.case-title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    line-height: 1.4;
    letter-spacing: 0.04em;
    min-height: 44.8px; /* for 2 lines */
}

.hash {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #515F69;
}

.cassette_case .author {
    font-size: 13px;
    font-weight: 700;
    gap: 4px;
}

.author-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 999px;
}

.case-gage {
    height: 18px;
}
.case-gage .gage-filled {
    font-size: 14px;
    line-height: 1;
    padding: 0 6px 1px; /* Figma specific padding */
}

.case-stats {
    gap: 4px;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    font-weight: 700;
    color: #515F69;
    flex: 1; /* Distribute space */
}
.stat img {
    width: 16px;
    height: 16px;
}

.divider-vertical {
    width: 1px;
    height: 16px; /* Approximate height */
    background-color: #CBD3D6;
}

.all-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
    width: 1100px; /* Content width */
    margin: 0 auto; /* Center */
    justify-content: center;
}

.all-tags .tag {
     background-color: #FFFFFF;
     border: 1px solid #62C7CD;
     color: #1D8B9C;
}

/* Banners Section */
.banners {
    padding: 80px 250px;
    gap: 24px;
    flex-direction: column; /* Stack banners vertically */
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.banner-image {
    max-width: 1100px; /* Max width of banner */
    width: 100%;
    height: auto;
    border-radius: 4px; /* If banners have radius */
}

/* Footer Styles */
.footer {
    width: 100%;
    background-color: #1D8B9C;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
}

.footer-head {
    display: flex;
    justify-content: space-between;
    padding: 56px 250px;
    gap: 16px; /* Gap between logo area and sitemap */
}

.logo-area {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start; /* Align logo to start */
}

.footer-logo .call4_logo img, .footer-logo .tagline img {
    height: 20px; /* Consistent with header logo */
    filter: brightness(0) invert(1); /* Make SVGs white */
}

.snsArea {
    display: flex;
    gap: 14px;
    align-self: stretch; /* Figma: space-between, but seems fixed here */
}

.snsArea img {
    width: 32px; /* Figma default size for these icons */
    height: 32px;
    filter: brightness(0) invert(1); /* Make SVGs white, except if already white */
}

/* Special case for Line icon which has a green part in Figma */
.snsArea a[href*="line"] img { /* A bit hacky selector */
    /* If specific parts of an SVG need different colors, 
       it's better to edit SVGs or use them as inline SVG in HTML */
}

.sitemap {
    display: flex;
    gap: 32px;
}

.sitemap .column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 200px; /* Figma width */
}

.footer-navItem {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    display: flex; /* To align icon and text */
    align-items: center;
    gap: 4px;
}
.footer-navItem img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.btnArea {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-CTA {
    width: 190px; /* Figma width */
    padding: 14px 32px;
    font-size: 14px;
}

.SubButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    background-color: #FFFFFF;
    color: #212529;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 4px;
    width: 100%; /* Full width within its column */
    box-sizing: border-box;
}

.footer-foot {
    background-color: #1E7180;
    padding: 12px 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-links .langage img {
     filter: brightness(0) invert(1);
}

.footer-links .textlink {
    font-size: 12px;
}

.copyright {
    font-size: 12px;
    font-weight: 500;
}

/* Floating Banner */
.floating-banner {
    position: fixed;
    bottom: 20px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.16);
    border-radius: 2px;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2000;
    width: 1100px; /* Auto width based on content */
    max-width: calc(100% - 40px); /* Ensure it doesn't overflow screen */
    visibility: hidden;
}
.floating-banner.visible {
    transform: translate(-50%, 0);
    visibility: visible;
}

.floating-banner .text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1; /* Allow text to take available space */
}

.floating-banner .title {
    font-size: 16px;
    font-weight: 700;
    color: #465058;
    white-space: nowrap; /* Prevent title from wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis if too long */
    line-height: 1.7;
}

.floating-banner .author {
    font-size: 14px;
    font-weight: 500;
    color: #465058;
    align-items: center;
}
.floating-banner .author-icon-small{
    width: 20px;
    height: 20px;
}

.fav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
}

.fav img {
    width: 24px; /* From Figma */
    height: 24px;
}

.floating-banner .CTAButton {
    padding: 14px 48px;
    font-size: 16px;
    white-space: nowrap; /* Prevent button text from wrapping */
}


/* SP Fixed Footer Nav */
.sp-fixed-footer {
    display: none; /* Initially hidden, shown in SP media query */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0px -2px 16px 0px rgba(0, 0, 0, 0.08);
    padding: 8px 16px;
    align-items: center;
    justify-content: space-between; /* Distribute items */
    gap: 8px; /* Gap between items */
    z-index: 1000;
}

/* Responsive adjustments if necessary */
@media (max-width: 1148px) {
    .Wrapper {
        width: 100%;
        padding-left: 20px; /* Add some padding on smaller screens */
        padding-right: 20px;
        box-sizing: border-box;
    }
    .Header-top, .Header-main, .breadcrumb, .footer-head, .footer-foot, .banners, .recommended-cases {
        padding-left: 20px;
        padding-right: 20px;
    }
    .head, .section-tabs, .recommended-cases .head-content h2, .case-cards, .all-tags {
        width: calc(100% - 40px); /* Adjust content width */
        max-width: 1100px; /* Keep max width */
    }
    .intro-paragraph {
        padding: 32px 5%; /* Use percentage for responsive padding */
    }
    .quote-open {
        left: 2%;
    }
    .quote-close {
        right: 2%;
    }
    .content-row {
        flex-direction: column; /* Stack main content and sidebar on smaller screens */
        align-items: center;
    }
    .main-content, .sidecolumn {
        width: 100%;
        max-width: 640px; /* Maintain readability */
    }
    .sidecolumn {
         max-width: 436px;
    }

    .cassette_case {
        width: calc(50% - 8px); /* 2 cards per row */
    }
    .floating-banner{
        padding: 12px 16px;
    }
    .floating-banner .CTAButton{
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 24px; line-height: 1.4; }
    h2 { font-size: 20px; line-height: 1.4; }
    h3 { font-size: 18px; line-height: 1.4; }
    .Wrapper {
        /* SP specific Wrapper styles if any */
    }

    .Header {
        border-top: 2px solid #1D8B9C;
    }

    .Header-top {
        display: none; /* Hidden in SP design */
    }

    .Header-main {
        padding: 12px 16px;
    }

    .logo .call4_logo img, .logo .tagline img {
        height: 16px; /* Adjusted for SP */
    }

    .case_detail {
        width: 100%;
        margin-bottom: 40px;
    }

    .section-activities {
        width: 100%;
    }
    .section-comments {
        width: 100%;
    }
    .section-materials {
        width: 100%;
    }
    .section-schedules {
        width: 100%;
    }

    .leftSide {
        /* In SP, menu icon is used instead of nav items */
        display: none; 
    }
    /* Add menu icon style if it's separate from Header-main */
    .menu-icon-sp {
        display: block; /* Assuming it's a block for layout */
        padding: 8px;
    }
    .menu-icon-sp img {
        width: 24px; /* From SP Figma */
        height: 24px;
    }

    .breadcrumb {
        padding: 6px 16px;
        font-size: 11px;
        gap: 4px;
        flex-wrap: wrap; /* Allow breadcrumbs to wrap */
    }
    .breadcrumb img {
        width: 16px; /* Smaller chevrons */
        height: 16px;
    }
    .breadcrumb span:last-child {
        white-space: normal; /* Allow last item to wrap */
        flex-basis: 100%; /* Take full width if it wraps */
    }

    .case_row .amount, .case_row .count {
        font-size: 32px;
        white-space: nowrap;
    }
    .unit {
        font-size: 20px;
    }

    .section, .section-tabs, .recommended-cases, .banners {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .section.case-detail-section {
        padding: 0 0;
    }
    .section.case-detail-section .content-row > *{
        padding: 0 16px;
    }
    .main-content-divider {
        padding: 0;
    }

    .head {
        padding-top: 32px;
        padding-bottom: 32px;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    .head-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .head .row {
       /* Handled by global .row stacking */
    }

    .case_row {
        flex-flow: column;
        padding-bottom: 16px;
    }
    .case_row .text-area {
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
    }
    .case_row_text {
        margin-top: 0;
    }

    .text-area .case_row {
        flex-flow: row;
    }
    

    .main-image {
        height: auto; /* Aspect ratio from image */
        max-height: 250px; /* Limit height on SP */
        width: 100%;
    }

    .buttonArea .CTAButton {
        width: 100%;
    }

    .text {
        /* General text container on SP */
    }
    .case_row {
        gap: 16px;
    }
    .donation-info, .supporter-info {
        gap: 4px; /* Reduced gap */
        flex: 1;
    }
    .tit {
        font-size: 14px;
        white-space: nowrap;
    }
    .tit img {
        width: 20px;
        height: 20px;
    }
    .amount, .count {
        font-size: 32px; /* Smaller for SP */
    }
    .target {
        font-size: 14px;
    }
    .divider {
        height: 30px;
        margin: 28px 0 0;    
    }
    .share-buttons {
        justify-content: center;
    }
    .gage {
        height: 20px;
    }
    .gage-filled {
        font-size: 12px;
    }
    .author {
        font-size: 16px; /* Adjusted author font size */
        gap: 8px;
    }
    .author-icon {
        width: 32px; /* Smaller icon */
        height: 32px;
    }
    .buttonArea .CTAButton {
        font-size: 16px;
        height: auto; /* Adjust height based on padding */
        padding: 16px;
    }
    .share-buttons .shareButton {
        padding: 12px; /* Smaller padding for share buttons */
    }
    .share-buttons .shareButton img {
        width: 20px; /* Smaller icons */
        height: 20px;
    }

    .intro-paragraph {
        padding: 0 16px; /* SP padding */
        font-size: 14px;
        background: none;
    }
    .intro-paragraph > div {
        padding: 24px 24px;
        background-color: #EEF7F7;
        width: 100%;

    }
    .quote-open, .quote-close {
        width: 30px; /* Smaller quotes */
        height: 22px;
    }
    .quote-open { left: 32px; top: 16px; }
    .quote-close { right: 32px; bottom: 16px; }

    .section-tabs {
        padding: 32px 0;
        gap: 0;
        margin-bottom: 0;
    }
    .Tabs {
        padding-left:12px; /* Remove PC padding if any */
        padding-right:12px;
        overflow-x: auto; /* Allow horizontal scroll for tabs */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
        padding-bottom: 0px;
        position: relative;
        z-index: 100;
    }
    .Tabs::-webkit-scrollbar { /* Chrome, Safari, Opera */
        display: none;
    }

    .Tab {
        padding: 8px 10px;
        font-size: 14px;
        white-space: nowrap; /* Prevent tabs from wrapping */
        height: 40px; /* SP Tab height */
    }
    .Tab .tag.new {
        font-size: 10px;
        padding: 1px 3px;
    }
    .main-content .box:first-of-type {
        padding: 16px;
        gap:8px;
    }
    .main-content .box:first-of-type h4 {
        font-size: 16px;
    }
    .main-content .box:first-of-type p {
        font-size: 14px;
        line-height: 1.6;
        color: #1D8B9C; /* Link-like color from figma */
    }

    .main-content .h2 {
        padding-top: 24px;
    }
    .main-content .p, .imgArea, .main-content .h3, .box {
        padding-top: 16px;
    }
    .caption {
        font-size: 12px;
    }

    .sidecolumn {
        /* Stacked, so full width essentially */
    }
    .side-box {
        padding: 24px;
    }
    .side-box-head p {
        font-size: 18px;
    }
    .card p, .deadline, .card h4, .info-row, .comment p, .author-profile-text p {
        font-size: 14px;
    }
    .comment .name {
        font-size: 12px;
    }
    .comment .date {
        font-size: 10px;
    }
    .author-profile-box {
        padding: 16px;
    }
    .author-icon-large {
        width: 130px;
        height: 130px;
    }

    .button-container .back-button.Button {
        margin-top: 24px;
        margin-bottom: 80px;
    }

    .back-button.Button {
        width: 100%;
        max-width: 320px; /* Max width for button on SP */
        font-size: 14px;
        padding: 14px 16px;
    }

    .recommended-cases {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .recommended-cases .head-content h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .case-cards {
        /* Flex wrap is already there */
    }
    .cassette_case {
        width: calc(50% - 8px); /* 2 cards per row for SP, from figma */
        gap: 8px;
        padding: 8px;
    }
    .case-image {
        height: 120px; /* Adjusted for SP card size */
    }
    .case-title {
        font-size: 14px;
        min-height: auto; /* Allow dynamic height */
    }
    .hash span {
        font-size: 10px;
    }
    .cassette_case .author {
        font-size: 11px;
    }
    .author-icon-small {
        width: 20px;
        height: 20px;
    }
    .case-gage {
        height: 14px;
    }
    .case-gage .gage-filled {
        font-size: 10px;
        padding: 0 6px;
    }
    .stat {
        font-size: 11px;
    }
    .stat img {
        width: 14px;
        height: 14px;
    }
    .all-tags {
        padding-top: 16px;
        gap: 6px;
    }
    .all-tags .tag {
        font-size: 12px;
        padding: 1px 10px;
    }

    .banners {
        padding-top: 32px;
        padding-bottom: 32px;
        gap: 16px;
    }

    .footer {
      /* General footer adjustments for SP */
    }
    .footer-head {
        padding: 32px 16px;
        flex-direction: column; /* Stack logo and sitemap */
        align-items: center;
        gap: 32px;
    }
    .logo-area {
        align-items: center;
        gap: 24px;
    }
    .sitemap {
        flex-direction: row; /* Side by side columns for sitemap */
        width: 100%;
        justify-content: space-around; /* Distribute sitemap columns */
        gap: 12px; /* Gap between sitemap columns */
    }
    .sitemap .column {
        width: auto; /* Allow columns to size based on content */
        align-items: center; /* Center nav items in column */
        gap: 4px;
    }
    .footer-navItem {
        padding: 8px 0;
        font-size: 12px;
        justify-content: center;
    }
    .footer-navItem img {
        width: 16px;
        height: 16px;
    }
    .btnArea {
        width: 100%;
        align-items: center;
        margin-top: 16px; /* Space above buttons */
    }
    .footer-CTA, .SubButton {
        width: 100%;
        max-width: 240px; /* Max width for buttons in footer */
        font-size: 14px;
        padding: 12px 16px;
    }

    .footer-foot {
        padding: 16px;
        flex-direction: column;
        gap: 16px;
        background-color: #FFFFFF; /* SP footer foot background */
        border-top: 1px solid #CBD3D6; /* SP footer foot border */
    }
    .footer-foot .link {
        flex-direction: column;
        gap: 12px;
    }
    .footer-foot .langage {
        /* SP specific if needed */
    }
    .footer-foot .textlink {
        font-size: 12px;
        color: #212529; /* SP footer links color */
    }
    .footer-foot .langage span, .footer-foot .langage img {
        color: #212529;
        filter: none; /* Remove white filter if applied earlier */
    }
    .copyright {
        font-size: 11px;
        color: #515F69; /* SP copyright text color */
        text-align: center;
    }
    .footer-foot .langage {
        order: 1; /* Move language selector to top in column */
    }
    .footer-foot .copyright {
        order: 2; /* Move copyright below links */
    }

    .floating-banner {
        padding: 8px 16px;
        gap: 8px;
        width: calc(100% - 20px); /* Adjust width for SP */
        bottom: 10px;
    }
    .floating-banner .text {
        /* Assuming text already handled by flex-grow */
    }
    .floating-banner .title {
        font-size: 12px; /* Smaller title */
    }
    .floating-banner .author {
        display: none; /* Hide author in SP floating banner as per Figma */
    }
    .fav {
        width: 36px; /* Smaller fav icon */
        height: 36px;
        padding: 4px;
    }
    .fav img {
        width: 20px;
        height: 20px;
    }
    .floating-banner .CTAButton {
        font-size: 12px;
        padding: 10px 16px;
    }

     /* SP specific Top page / footer */
    .footer-top-sp {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        padding: 16px;
        background-color: #FFFFFF;
        border-top: 1px solid #CBD3D6;
        color: #212529;
        font-size: 14px;
        font-weight: 500;
    }
    .footer-top-sp img {
        width: 20px;
        height: 20px;
    }

    .sp-footer-item {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 6px;
        border-radius: 999px; /* Circular for icon buttons */
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(4px);
        width: 44px; /* Fixed width for icon buttons */
        height: 44px; /* Fixed height for icon buttons */
        box-sizing: border-box;
    }

    .sp-footer-item img {
        width: 12px;
        height: 24px;
    }

    .sp-fixed-footer .CTAButton {
        flex-grow: 1; /* Allow CTA to take remaining space */
        padding: 12px 16px; /* Adjusted padding for SP footer CTA */
        font-size: 14px;
        height: 44px; /* Match icon button height */
        box-sizing: border-box;
        text-align: center;
        background-color: #FF6701;
        border-radius: 0;
    }
    .floating-banner {
        display: none;
    }

    .sp-fixed-footer {
        display: none; /* Initially hidden, shown in SP media query */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(12px);
        box-shadow: 0px -2px 16px 0px rgba(0, 0, 0, 0.08);
        padding: 8px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between; /* Distribute items */
        gap: 8px; /* Gap between items */
        z-index: 1000;
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .sp-fixed-footer.visible {
        transform: translateY(0);
        visibility: visible;
    }

    /* Sticky Tabs for SP */
    .tabs-placeholder {
        display: none;
        height: 0;
    }
    .section-tabs {
        transition: none !important;
    }
    .section-tab * {
        transition: none !important;
    }
    .section-tabs.sticky-tabs {
        position: fixed;
        transition: none !important;
        top: 0; /* Assuming header scrolls away on SP. If header is fixed, adjust this value */
        left: 0;
        right: 0;
        width: 100%;
        background-color: #FFFFFF; /* Or an appropriate background */
        z-index: 999; /* Ensure it's above content but below modals etc. */
        /* padding for tabs might need adjustment if original padding was for non-fixed state */
        padding-bottom: 0;
        padding-top: 16px;
    }
    .section-tabs.sticky-tabs .Tabs {
        /* Ensure tabs themselves are styled correctly when sticky */
        /* For example, if they need full width or different padding */

        box-sizing: border-box;
    }
    .tabs-divider {
        bottom: 32px;
    }
    .section-tabs.sticky-tabs .tabs-divider {
        bottom: 0;
    }
} 


/* actions */

/* Activities Section Styles */
.section-activities {
    padding-top: 0; /* Remove top padding as tabs are directly above */
    margin: 0 auto;
}

.activities-content {
    width: 640px; /* Width from Figma */
    display: flex;
    flex-direction: column;
    gap: 0; /* No gap between accordions initially, handled by accordion margin/padding */
}

.accordion {
    margin-bottom: 16px;
}

.accordion:first-child {
}

.accordion-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    background-color: #EEF7F7;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-title img {
    width: 24px;
    height: 24px;
}

.accordion-title > span {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    line-height: 1.4;
}

.accordion-head .date {
    font-size: 13px;
    font-weight: 500;
    color: #515F69;
}

.accordion-body {
    padding: 12px;
    background-color: #FFFFFF; /* Figma background */
    display: flex;
    flex-direction: column;
    gap: 16px; /* Gap between paragraphs inside body */
}

.accordion-body p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    color: #212529;
}

.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 0; /* Figma spacing */
}

.spinner img {
    width: 48px; /* Figma size */
    height: 48px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments for Activities Section */
@media (max-width: 767px) {
    .section-activities {
        /* SP specific adjustments if needed */
    }
    .content-row {
        width: 100%;
    }
    .activities-content {
        /* Full width or adjusted width for SP */
        width: 100%;
    }
    .accordion-head {
        padding: 10px 12px;
    }
    .accordion-title h3 {
        font-size: 14px;
    }
    .accordion-head .date {
        font-size: 11px;
    }
    .accordion-body {
        padding: 10px;
    }
    .accordion-body p {
        font-size: 14px;
    }
    .spinner img {
        width: 32px;
        height: 32px;
    }
}

/* Schedules Section Styles */
.section-schedules {
    padding-top: 0; /* Remove top padding as tabs are directly above */
    width: 1100px; /* Max width */
    margin: 0 auto;
}

.schedules-content {
    width: 640px; /* Width from Figma */
    display: flex;
    flex-direction: column;
    gap: 24px; /* Gap between schedule cards */
}

.schedule-card {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 12px;
}

.schedule-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Gap within a card */
    width: 540px;
}

.schedule-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    display: flex;
    flex-basis: content;
    gap: 6px;
    align-items: center;
}

.schedule-card .info-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #000000; /* Figma text color */
}

.schedule-card .info-row img {
    width: 20px;
    height: 20px;
}

.schedule-detail-box {
    background-color: #F4F6F7;
    padding: 16px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-detail-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #212529;
}

.schedule-detail-box p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #212529;
    white-space: pre-line; /* To respect line breaks */
}

p.caution-text {
    font-size: 12px;
    font-weight: 500;
    color: #212529;
    line-height: 1.4;
}

.schedule-divider {
    border: none;
    border-top: 1px solid #CBD3D6; /* Figma divider style */
    margin: 0; /* Remove default margin */
}

.past-schedule {
    opacity: 0.5; /* Figma style for past schedules */
}

.schedule-card .judgement {
    padding: 4px;
    font-size: 12px;
}

/* Responsive adjustments for Schedules Section */
@media (max-width: 767px) {
    .section-schedules {
        /* SP specific adjustments if needed */
    }
    .schedules-content {
        /* Full width or adjusted for SP */
        gap: 16px;
        width: 100%;
    }
    .schedule-card-content {
        width: auto;
        flex: 1;
    }
    .schedule-card h3 {
        font-size: 18px;
    }
    .schedule-card .info-row {
        font-size: 13px;
    }
    .schedule-detail-box {
        padding: 12px;
    }
    .schedule-detail-box h4 {
        font-size: 13px;
    }
    .schedule-detail-box p {
        font-size: 13px;
    }
    .caution-text {
        font-size: 11px;
    }
}

/* Comments Section Styles */
.section-comments {
    padding-top: 0; /* Remove top padding as tabs are directly above */
    margin: 0 auto;
}

.comments-content {
    width: 640px; /* Width from Figma */
    display: flex;
    flex-direction: column;
    gap: 16px; /* Gap between comment cards */
}

.comment-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-card .user-icon {
    width: 40px; /* Figma size */
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    margin-top: 4px; /* Align with text content a bit better */
}

.comment-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.comment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.comment-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #212529;
}

.comment-card-date {
    font-size: 12px;
    font-weight: 500;
    color: #515F69;
}

.comment-card p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    color: #212529;
    white-space: pre-line; /* To respect line breaks from Figma comment text */
}

.comment-divider {
    border: none;
    border-top: 1px solid #CBD3D6; /* Figma divider style */
    margin: 0; /* Remove default margin */
}

/* Responsive adjustments for Comments Section */
@media (max-width: 767px) {
    .section_under_case_tab {
        width: 100%;
    }
    .section-comments {
        /* SP specific adjustments if needed */
    }
    .comments-content {
        /* Full width or adjusted for SP */
        gap: 12px;
        width: 100%;
    }
    .comment-card .user-icon {
        width: 32px;
        height: 32px;
    }
    .comment-card-name {
        font-size: 13px;
    }
    .comment-card-date {
        font-size: 11px;
    }
    .comment-card p {
        font-size: 13px;
    }
}

/* Materials Section Styles */
.section-materials {
    padding-top: 0; /* Remove top padding as tabs are directly above */
    margin: 0 auto;
}

.materials-content {
    width: 640px; /* Width from Figma */
    display: flex;
    flex-direction: column;
    gap: 32px; /* Gap between table sections */
}

.materials-section h2 {
    font-size: 28px; /* Figma h2 size */
    margin-bottom: 16px;
}

.materials-table {
    width: 100%;
    border-collapse: collapse;
}

.materials-table th,
.materials-table td {
    border-bottom: 1px solid #E7EBEE; /* Figma border */
    padding: 12px; /* Figma padding */
    text-align: left;
    font-size: 14px; /* Figma base text size */
    vertical-align: middle;
}

.materials-table th {
    font-weight: 700; /* Figma bold */
    color: #212529;
}

.materials-table td .tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 1px;
    font-weight: 700;
}

.tag-court {
    background-color: #FFF0D3; /* Figma color for 裁判所 */
    color: #FF6701;
}

.tag-plaintiff {
    background-color: #DAEEEE; /* Figma color for 原告 */
    color: #1D8B9C;
}

.tag-defendant {
    background-color: #FDE6EA; /* Figma color for 国・自治体 */
    color: #D32B5D;
}

.tag-judgment {
    background-color: #A6B4BA; /* Figma color for 判決 */
    color: #FFFFFF;
}

.tag-argument {
    background-color: #CBD3D6; /* Figma color for 主張 */
    color: #515F69;
}

.tag-evidence {
    background-color: #E7EBEE; /* Figma color for 証拠 */
    color: #7A8C96;
}

.materials-table td a.textlink {
    color: #1D8B9C; /* Figma link color */
    text-decoration: underline;
}

.materials-table td a.download-link img {
    width: 24px; /* Adjust as needed */
    height: 24px;
}

/* Responsive adjustments for Materials Section */
@media (max-width: 767px) {
    .section-materials {
        /* SP specific adjustments if needed */
    }
    .materials-content {
        /* Full width or adjusted for SP */
        gap: 24px;
    }
    .materials-section h2 {
        font-size: 20px; /* Adjusted for SP */
        margin-bottom: 12px;
    }
    .materials-table th,
    .materials-table td {
        padding: 8px;
        font-size: 12px;
    }
    .materials-table td .tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    .materials-table th:nth-child(1),
    .materials-table td:nth-child(1) { /* 期日 */
        /* display: none; */ /* Example: Hide if not enough space */
    }
    .materials-table th:nth-child(2),
    .materials-table td:nth-child(2) { /* 当事者 */
         /* display: none; */
    }
     .materials-table th:nth-child(5),
    .materials-table td:nth-child(5) { /* Download Icon */
        width: 30px; /* Ensure space for icon */
    }

} 


.accordion-title img.rotated {
    transform: rotate(90deg);
    transition: transform 0.2s ease;
} 

.accordion-title img {
    transform: rotate(0deg);
    transition: transform 0.2s ease;
} 


/* Table of Contents Styles */
.section-table-of-contents {
    display: none;
    margin: 0 auto;
    padding-top: 32px; /* Space above ToC */
    padding-bottom: 0; /* No bottom padding, section-tabs will handle it */
}

.table-of-contents {
    width: 640px; /* Match main-content width */
    margin: 0; /* Align with main content */
    padding: 24px;
    background-color: #F4F6F7; /* Light grey background */
    border-radius: 4px;
}

.table-of-contents h2 {
    font-size: 20px; /* Smaller than main h2 */
    margin-bottom: 16px;
    color: #373D42;
}

#toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#toc-list ul {
    list-style: none;
    padding-left: 20px; /* Indentation for nested lists */
    margin-top: 8px; /* Space before nested list */
}

.toc-item a {
    text-decoration: none;
    color: #1D8B9C; /* Link color */
    font-size: 16px;
    line-height: 1.7;
    display: block;
    padding: 4px 0;
}

.toc-item a:hover {
    text-decoration: underline;
}

.toc-level-2 a {
    /* Styles for h2 level items if needed */
}

.toc-level-3 a {
    font-size: 15px; /* Slightly smaller for h3 */
    /* padding-left: 20px; */ /* Moved to ul */
}

.toc-level-4 a {
    font-size: 14px; /* Smaller for h4 */
    /* padding-left: 40px; */ /* Moved to ul */
}

.toc-level-5 a {
    font-size: 13px; /* Even smaller for h5 */
    /* padding-left: 60px; */ /* Moved to ul */
}

.main-content-inner {
    position: relative;
}

.read-more-button-container {
    display: none;
    position: absolute;
    bottom: 0;
    margin: 0 auto;
    width: 100%;
    padding-top: 150px;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.main-content-divider {
    display: none;
}

.read-more-button.Button {
    right: 0;
    left: 0;
    margin: 0 auto;
}

/* Responsive adjustments for Table of Contents */
@media (max-width: 767px) {
    .section-table-of-contents {
        /* Full width for SP */
        padding-top: 12px;
        padding-bottom: 32px;
        display: block;
    }
    .table-of-contents {
        width: 100%; /* Full width on SP */
        padding: 16px;
    }
    .table-of-contents h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    #toc-list ul {
        padding-left: 16px;
    }
    .toc-item a {
        font-size: 14px;
    }
    .toc-level-3 a {
        font-size: 13px;
    }
    .toc-level-4 a {
        font-size: 12px;
    }
    .toc-level-5 a {
        font-size: 11px;
    }
    .main-content-divider {
        display: block;
        margin-bottom: 24px;
    }
    .read-more-button.Button {
        width: 100%;
        max-width: 320px;
        font-size: 14px;
        padding: 14px 16px;
        margin-top: 24px;
        margin-bottom: 0px;
    }
} 

.banners-container {
    margin-top: 80px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
#inquiry {
    padding-top: 0;
    padding-bottom: 80px;
}

/* Related Content Section Styles */
.section-related-content {
    background-color: #F4F6F7;
    padding: 80px 0;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.related-content-head {
    width: 1100px;
    margin: 0 auto;
}

.related-content-head h2 {
    font-size: 40px;
    font-weight: 700;
    color: #373D42;
    line-height: 1.25;
    letter-spacing: 0.04em;
    margin: 0;
}

.related-content-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 1100px;
    margin: 0 auto;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 calc((100% - 48px) / 3); /* Gap 24px * 2 / 3COLUMNS */
    min-width: 300px; /* Minimum width for proper wrapping */
    overflow: hidden;
}

.related-img {
    width: 100%;
    height: 173px;
    overflow: hidden;
    position: relative;
}

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

.related-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0px;
}

.related-tag {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 2px 8px;
    border-radius: 1px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
    width: fit-content;
}

.tag-story {
    background-color: #DAEEEE;
    color: #1D8B9C;
}

.tag-column {
    background-color: #DAEEEE;
    color: #1D8B9C;
}

.tag-case {
    background-color: #DAEEEE;
    color: #1D8B9C;
}

.related-title h3 {
    font-size: 14px;
    font-weight: 700;
    color: #212529;
    line-height: 1.4;
    letter-spacing: 0.04em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.related-card:hover h3 {
    color: #1D8B9C;
    text-decoration: underline;
}
.related-card:hover {
    text-decoration: none;
}

.related-title p {
    font-size: 12px;
    font-weight: 500;
    color: #515F69;
    line-height: 1.4;
    letter-spacing: 0.04em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Styles for 1 content item */
.related-content-row:has(.related-card:nth-child(1):last-child) .related-card {
    flex-grow: 1;
}
.related-content-row:has(.related-card:nth-child(1):last-child) .podcast  {
    max-width: 660px;
    margin: 0 auto;
}

.related-content-row:has(.related-card:nth-child(1):last-child) .related-img {
    height: 500px;
}
.related-content-row:has(.related-card:nth-child(1):last-child) .podcast .related-img {
    max-width: 660px;
    height: 177px;
}

.related-content-row:has(.related-card:nth-child(1):last-child) .related-title h3 {
    font-size: 24px;
    line-height: 1.4;
}

.related-content-row:has(.related-card:nth-child(1):last-child) .related-title p {
    font-size: 16px;
    line-height: 1.4;
}

/* Styles for 2 content items */
.related-content-row:has(.related-card:nth-child(2):last-child) .related-card {
    flex-grow: 1;
}
.related-content-row:has(.related-card:nth-child(2):last-child) .related-img {
    height: 250px;
}

.related-content-row:has(.related-card:nth-child(2):last-child) .related-title h3 {
    font-size: 20px;
}

.related-content-row:has(.related-card:nth-child(2):last-child) .related-title p {
    font-size: 14px;
}

.related-content-row:has(.related-card:nth-child(4):last-child) .related-img {
    height: 173px;
}

/* Fallback for browsers that don't support :has() */
.related-content-row.one-item .related-img {
    height: 500px;
}

.related-content-row.one-item .related-title h3 {
    font-size: 24px;
    line-height: 1.4;
}

.related-content-row.one-item .related-title p {
    font-size: 16px;
    line-height: 1.4;
}

.related-content-row.two-items .related-img {
    height: 250px;
}

.related-content-row.two-items .related-title h3 {
    font-size: 20px;
}

.related-content-row.two-items .related-title p {
    font-size: 14px;
}

/* Hover effects */
.related-card {
    cursor: pointer;
}

.section-recommend-cases {
    margin-top: 80px;
}

/* Responsive adjustments for Related Content Section */
@media (max-width: 1148px) {
    .section-related-content {
        padding: 80px 20px;
    }
    
    .related-content-head,
    .related-content-row {
        width: calc(100% - 40px);
        max-width: 1100px;
    }
}

@media (max-width: 767px) {
    .section-related-content {
        padding: 80px 16px;
        gap: 32px;
    }
    
    .related-content-head,
    .related-content-row {
        width: 100%;
    }
    
    .related-content-head h2 {
        font-size: 28px;
        text-align: left;
        line-height: 1.4;
    }
    
    .related-content-row {
        flex-direction: column;
        gap: 24px;
    }
    
    .related-card {
        width: 100%;
        min-width: auto;
        flex: none;
    }
    
    .related-img {
        height: 166px;
    }
    
    .related-title {
        padding: 0px;
    }
    
    .related-title h3 {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .related-title p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .related-tag {
        font-size: 12px;
        padding: 2px 8px;
    }
    
    /* 1 content item styles for mobile */
    .related-content-row:has(.related-card:nth-child(1):last-child) .related-img,
    .related-content-row.one-item .related-img {
        height: 166px; /* Slightly larger than default mobile */
    }
    
    .related-content-row:has(.related-card:nth-child(1):last-child) .related-title h3,
    .related-content-row.one-item .related-title h3 {
        font-size: 16px; /* Slightly larger than default mobile */
    }
    
    .related-content-row:has(.related-card:nth-child(1):last-child) .related-title p,
    .related-content-row.one-item .related-title p {
        font-size: 12px; /* Slightly larger than default mobile */
    }
    
    /* 2 content items styles for mobile */
    .related-content-row:has(.related-card:nth-child(2):last-child) .related-img,
    .related-content-row.two-items .related-img {
        height: 166px; /* Keep mobile image height */
    }
    
    .related-content-row:has(.related-card:nth-child(2):last-child) .related-title h3,
    .related-content-row.two-items .related-title h3 {
        font-size: 16px; /* Keep mobile title size */
    }
    
    .related-content-row:has(.related-card:nth-child(2):last-child) .related-title p,
    .related-content-row.two-items .related-title p {
        font-size: 12px; /* Keep mobile description size */
    }
    .related-content-row:has(.related-card:nth-child(4):last-child) .related-img {
        height: 166px;
    }
}

#recommend_case {
    max-width: 1100px;
}

#recommend_case .home-tags-container .home-tags {
    margin-top: 48px;
}

#recommend_case .row {
    margin: 0;
}
@media (max-width: 767px) {
    #recommend_case {
        margin-left: 16px;
        margin-right: 16px;
    }
    .case_detail #inquiry {
        padding-bottom: 80px;
    }
}

/* #inquiry {
    padding-left: 15px;
    padding-right: 15px;
} */