@charset "utf-8";

/* new case detail */

.case_detail {
    max-width: 1132px;
    /* width + padding*/
    width: 100%;
    margin: 0 auto;
    overflow: visible;
    padding: 0 16px;
}

.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 {
    color: #FFFFFF;
    opacity: 0.7;
}

.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: 16px 0;
}

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

.head-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 5px;
}

.head-content h1 {
    color: #000000;
    font-weight: 700;
    font-size: 28px;
    line-height: 40px;
    letter-spacing: 0.56px;
    margin-bottom: 0;
}

.hashtags {
    display: flex;
    gap: 9px;
    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;
}

/* headセクション内のハッシュタグ */
.head .hashtags .tag {
    padding: 7px 13px;
    font-size: 12px;
}

.case_row {
    display: flex;
    align-items: flex-start;
    gap: 34px;
    width: 100%;
}

/* PC: 1行目=タイトル・タグ全幅、2行目=画像 | 寄付カラム（DOM は画像→タイトル→カラムだが Grid で並べる） */
.case_row.case_row--hero {
    display: grid;
    grid-template-columns: 1fr 397px;
    grid-template-rows: auto auto;
    column-gap: 34px;
    align-items: start;
}

.case_row.case_row--hero>.head-content {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-top: 60px;
    margin-bottom: 5px;
}

.case_row.case_row--hero>.main-image {
    grid-column: 1;
    grid-row: 2;
}

.case_row.case_row--hero>.text-area.case_row_text {
    grid-column: 2;
    grid-row: 2;
}

.img {
    /* For image containers */
}

.main-image {
    overflow: hidden;
    /* Ensures image fits */
    background-color: #F5F5F5;
}

.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;
}

.case_row_text {
    margin-top: 0;
    margin-right: 24px;
}

.case_row_text>.case_row {
    order: 1;
}

.case_row_text>.gage {
    order: 2;
    /* Figma 4349:13007 — スタッツ行〜gage 上端 17px 相当 */
    margin-top: 17px;
}

.case_row_text>.target {
    order: 3;
}

.case_row_text>.author {
    order: 4;
}

.case_row_text>.buttonArea {
    order: 5;
}

.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;
    font-size: 13px;
    line-height: 26px;
    font-weight: 500;
    color: #939393;
    letter-spacing: 0.26px;
}

/* Figma 4349:13031 — アイコンは数値・単位の左（.tit ではなく .amount / .count 行） */
.case_row .amount,
.case_row .count {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    font-size: 32px;
    line-height: 32px;
    font-weight: 700;
    color: #212529;
    letter-spacing: 0;
}

.case_row .amount .case-stat-icon,
.case_row .count .case-stat-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}


.unit {
    font-size: 22px;
}

/* Figma 4349:13007 / row 4349:13024 — 1行: ラベル + 数値・単位 */
.target {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 18px;
    font-size: 13px;
    color: #939393;
    letter-spacing: 0.26px;
    height: 44px;
}

.target-label {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #939393;
    letter-spacing: 0.26px;
}

/* Figma: Roboto Bold 26px（数値）＋ 円 22px */
.target-value {
    flex: 1 1 auto;
    text-align: left;
    font-family: Roboto, YuGothic, "游ゴシック体", "游ゴシック", "Yu Gothic", 'Hiragino Kaku Gothic ProN', 'MS PGothic', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0;
    white-space: nowrap;
}

.target-value .unit {
    font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.divider {
    width: 1px;
    align-self: stretch;
    background-color: #CBD3D6;
    margin: 7px 0 7px;
}

.gage {
    width: 100%;
    height: 25px;
    background-color: #E7EBEE;
    border-radius: 50px;
    display: flex;
    align-items: center;
    margin-top: 0;
    overflow: hidden;
}

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

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

.gage-filled.full {
    background: #FF6701;
    border-radius: 50px;
}

.gage-filled span {
    padding: 0 12px;
}

.author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.3px;
    /* Figma 4349:13007 — target ブロック下端〜author top(168) ≈ 18px */
    margin-top: 18px;
}

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

.author a span {
    color: #212529;
    text-decoration: underline;
    font-weight: 500;
}

.author-icon {
    width: 30px;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* ケース主催者ラベル */
.author-label {
    font-size: 13px;
    font-weight: 500;
    color: #939393;
    letter-spacing: 0.26px;
    white-space: nowrap;
}

.buttonArea {
    display: flex;
    flex-direction: column;
    /* Figma 4349:13008 — share は CTA 下 86px、CTA 高さ56 → 間 30px */
    gap: 30px;
    align-items: flex-start;
    /* Align button to start */
    /* author 下端〜btn top(239) ≈ 32px */
    margin-top: 32px;
}

.buttonArea .CTAButton {
    width: 373px;
    /* Figma specific width */
    height: 56px;
    font-size: 17px;
    padding: 16px;
    /* Reset padding if specific height/width */
    border-radius: 4px;
    position: relative;
}

.buttonArea .CTAButton:not(.is-closed)::after {
    content: "";
    width: 7px;
    height: 12px;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: url("/common/img/icon/keyboard_arrow_right_white.svg") no-repeat center / contain;
}


.buttonArea .CTAButton.is-closed {
    background-color: #909090;
}

.buttonArea .CTAButton.is-closed:hover {
    text-decoration: none;
    cursor: default;
}

.share-buttons {
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.shareLabel {
    font-family: Roboto, YuGothic, "游ゴシック体", "游ゴシック", "Yu Gothic", 'Hiragino Kaku Gothic ProN', 'MS PGothic', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #939393;
    letter-spacing: 0.26px;
}

.shareButton {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    min-width: 24px;
    min-height: 24px;
}

/* .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;
}

.shareCopyButton {
    width: 188px;
    height: 35px;
    border: 2px solid #E0E0E0;
    border-radius: 3px;
    gap: 8px;
    justify-content: flex-start;
    padding: 0 12px;
}

.shareCopyButton:hover {
    color: inherit;
}

.shareCopyButton img {
    width: 17px;
    height: 21px;
    object-fit: contain;
    flex-shrink: 0;
}

.shareCopyButton span {
    font-size: 12px;
    font-weight: 700;
    color: #5B5B5B;
    letter-spacing: 0.24px;
    line-height: 1;
}

.shareButton:hover img {
    opacity: 1;
}

.intro-paragraph {
    background-color: #e9f3f5;
    padding: 22px 80px;
    font-size: 15px;
    line-height: 26px;
    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アイコンはFigmaデザインに含まれないため非表示 */
.quote-open,
.quote-close {
    display: none;
}


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

.case-detail-section,
.section-activities,
.section-comments {
    margin-top: 32px;
}

.Tabs {
    display: flex;
    align-self: stretch;
    gap: 0;
    border-bottom: 5px solid #CBD3D6;
}

.tabs-divider {
    display: none;
}

.Tab {
    padding: 10px 22px;
    /* Figma: 縦padding, 横はgapで管理 */
    font-size: 15px;
    font-weight: 700;
    color: #212529;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    /* Fixed height from Figma */
    box-sizing: border-box;
    position: relative;
    border-bottom: 5px solid transparent;
    margin-bottom: -5px;
    /* border-bottom overlap */
}

.Tab a {
    color: inherit;
}

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

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

.Tab:hover {
    opacity: 0.7;
}

.TabBlank {
    flex-grow: 1;
}

.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;
}

.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;
}

/* Tab.active::after は削除 (border-bottomで対応) */

.Tab .tag.new {
    background-color: rgba(255, 103, 1, 0.15);
    color: #FF6701;
    font-family: Roboto, YuGothic, "游ゴシック体", "游ゴシック", "Yu Gothic", 'Hiragino Kaku Gothic ProN', 'MS PGothic', sans-serif;
    font-size: 15px;
    font-weight: 700;
    height: 20px;
    min-width: 12px;
    padding: 2px 2px 1px;
    border-radius: 1px;
    border: none;
    line-height: 1;
}

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

.main-content {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    /* 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: 409px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.side-box {
    box-sizing: border-box;
}

.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-promo {
    background-color: #EEF7F7;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.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;
    margin-top: 18px;
}

.side-box-promo .side-box-card {
    gap: 8px;
}

.side-box-promo .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-promo .CTAButton {
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.side-box-head-link {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    min-height: 74px;
    padding: 27px 26px 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.side-box-head-link>* {
    position: relative;
    z-index: 1;
}

.side-box-head-link::before,
.side-box-head-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.side-box-head-link::before {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.side-box-report .side-box-head-link::before {
    background-image: url("/common/img/icon/case_detail_sidebar_activity_report_bg.png");
}

.side-box-calendar .side-box-head-link::before {
    background-image: url("/common/img/icon/case_detail_sidebar_next_date_bg.png");
}

.side-box-comment .side-box-head-link::before {
    background-image: url("/common/img/icon/case_detail_sidebar_supporter_voice_bg.png");
}

.side-box-head-link h3 {
    font-size: 16px;
    color: #FFFFFF;
    line-height: 18px;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.side-box-head-link .textlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    line-height: 13px;
    white-space: nowrap;
}

.side-box-head-link .textlink::after {
    content: "";
    width: 6px;
    height: 10px;
    background: url("/common/img/icon/chevron-right-white.svg") center / contain no-repeat;
    flex-shrink: 0;
}

.side-box-report,
.side-box-calendar,
.side-box-comment {
    border: 2px solid #E0E0E0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 18px;
}

.side-box-report .side-box-card,
.side-box-calendar .side-box-card {
    width: 346px;
    gap: 10px;
}

.side-box-comment .side-box-card {
    width: 351px;
    align-items: flex-start;
    text-align: left;
}

.side-box-card h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    color: #000000;
    letter-spacing: 0.02em;
    margin: 0;
}

.side-box-report-title,
.side-box-report-body,
.comment .content {
    min-width: 0;
    max-width: 100%;
}

.side-box-report-title>.jpn,
.side-box-report-title>.eng,
.side-box-report-body>.jpn,
.side-box-report-body>.eng,
.side-box-comment-body {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: strict;
}

.side-box-report-title>.jpn,
.side-box-report-title>.eng {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.side-box-report-body>.jpn,
.side-box-report-body>.eng,
.side-box-comment-body {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.side-box-report .side-box-card>div,
.side-box-report .side-box-card>div span,
.side-box-calendar .info-row,
.side-box-comment .comment p {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #080808;
}

.side-box-card>span {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #080808;
}

.side-box-report .side-box-card>p {
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    color: #949494;
    letter-spacing: 0.02em;
}

.side-box-meta-date {
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    color: #949494;
    letter-spacing: 0.02em;
}

.side-box-card>.textlink {
    width: 232px;
    min-height: 38px;
    margin: 8px auto 0;
    border-radius: 4px;
    background-color: #E9F3F5;
    color: #1D8B9C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    text-decoration: none;
}

.side-box-card>.textlink::after {
    content: "";
    width: 6px;
    height: 10px;
    background: url("/common/img/icon/chevron-right-teal.svg") center / contain no-repeat;
    flex-shrink: 0;
}

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

.info-row {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #000000;
}

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

.comment-section {
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: 100%;
    align-items: stretch;
}

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

.side-box-comment .comment > a {
    flex: 0 0 40px;
    width: 40px;
    line-height: 0;
}

.user-icon {
    width: 40px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.comment .content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    text-align: left;
}

.name-date {
    display: block;
}

.comment .name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 15px;
    color: #1D8B9C;
}

.comment .date {
    display: none;
}

.comment p {
    line-height: 21px;
}

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

.home-calendar-item a {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: inherit;
    text-decoration: none;
}

.home-calendar-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    color: #000000;
}

.home-calendar-title-arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transform: rotate(90deg);
}

.home-calendar-divider {
    width: 100%;
    height: 1px;
    background-color: #D8D8D8;
}

.home-calendar-schedule {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-calendar-date-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.home-calendar-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 3px;
    background-color: #FF6701;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    line-height: 13px;
}

.home-calendar-date {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: nowrap;
}

.home-calendar-date-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 22px;
    margin-top: 7px;
}

.home-calendar-date-icon img {
    width: 22px;
    height: 22px;
}

.home-calendar-item a:hover img {
    opacity: 1;
}

.home-calendar-date-content {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    flex-wrap: nowrap;
    color: #1D8B9C;
    white-space: nowrap;
}

.home-calendar-year {
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    margin-top: 10px;
}

.home-calendar-monthday {
    font-size: 36px;
    font-weight: 400;
    line-height: 36px;
}

.home-calendar-weekday {
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    margin-top: 10px;
}

.home-calendar-time {
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    margin-top: 8px;
}

.home-calendar-place {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #080808;
    padding-left: 0;
}

.author-profile-box {
    background-color: #E9F3F5;
    padding: 33px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
}

.author-profile-description p:empty {
    display: none;
}

.author-profile-title {
    min-width: 244px;
    height: 45px;
    padding: 0 34px;
    border-radius: 30px;
    background-color: #1D8B9C;
    color: #F2F2F2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 17px;
    font-weight: 700;
    line-height: 17px;
    letter-spacing: 0.02em;
}

.author-profile-title::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #1D8B9C;
}

.author-profile-image {
    margin-top: 10px;
}

.author-icon-large {
    width: 141px;
    height: auto;
    display: block;
    border-radius: 0;
}

.author-profile-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.author-profile-text h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 21px;
    color: #000000;
    margin: 0;
}

.author-profile-description {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.author-profile-description.is-collapsed::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 84px;
    background: linear-gradient(180deg, rgba(233, 243, 245, 0) 0%, #E9F3F5 100%);
}

.author-profile-text p {
    font-size: 14px;
    font-weight: 500;
    color: #080808;
    line-height: 21px;
    white-space: pre-line;
    margin: 0;
}

.author-profile-read-more {
    display: none;
    width: 100%;
    justify-content: center;
}

a.author-profile-read-more-button {
    text-decoration: none;
    min-width: 134px;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 4px;
    background-color: #9E9E9E;
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    line-height: 13px;
}

a.author-profile-read-more-button:hover {
    color: #FFFFFF;
}

.author-profile-read-more-button::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: rotate(45deg) translateY(-1px);
}

.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 */
    max-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 */
    max-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: auto;
    border-radius: 4px;
    display: block;
}

.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;
    max-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;
    left: 50%;
    transform: translate(-50%, 16px);
    width: min(1200px, calc(100% - 40px));
    min-height: 74px;
    padding: 15px 17px 13px 33px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background-color: #FFFFFF;
    box-shadow: 2px 3px 9px 2px rgba(0, 0, 0, 0.13);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-banner.visible {
    transform: translate(-50%, 0);
    visibility: visible;
    opacity: 1;
}

.floating-banner .text-area {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1 1 811px;
    min-width: 0;
}

.floating-banner .title {
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.02em;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-banner .author {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: 0.02em;
    color: #000000;
    cursor: pointer;
}

.floating-banner .author span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: underline;
}

.floating-banner .author-icon-small {
    width: 21px;
    height: auto;
    flex: 0 0 auto;
}

.floating-banner .floating-banner-cta {
    width: 192px;
    min-height: 44px;
    padding: 15px 11px 15px 36px;
    box-sizing: border-box;
    justify-content: flex-start;
    gap: 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex: 0 0 auto;
}

.floating-banner .floating-banner-cta::after {
    content: "";
    width: 7px;
    height: 12px;
    flex: 0 0 auto;
    background: url("/common/img/icon/keyboard_arrow_right_white.svg") no-repeat center / contain;
}


/* SP Fixed Footer Nav */
.sp-fixed-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    box-shadow: 2px -3px 9px 2px rgba(0, 0, 0, 0.13);
    z-index: 1000;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Responsive adjustments if necessary */
@media (max-width: 768px) {
    .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;
    }

    .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: 0;
        padding: 0;
    }

    .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: 25px;
        line-height: 25px;
        white-space: nowrap;
    }

    .unit {
        font-size: 13px;
    }

    .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 23px;
    }

    .content-row>.sidecolumn {
        padding: 0 23px;
    }

    .section-activities .content-row>.sidecolumn,
    .section-comments .content-row>.sidecolumn,
    .section-materials .content-row>.sidecolumn {
        display: none;
    }

    .main-content-divider {
        padding: 0;
    }

    .head {
        padding-top: 0;
        padding-bottom: 0;
        gap: 30px;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 25px;
    }

    /* SP: DOM 順＝画像 → タイトル・タグ → 寄付ブロック（Grid を解除して縦並び） */
    .case_row.case_row--hero {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .case_row.case_row--hero>.head-content {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
        margin-bottom: 0;
    }

    .case_row.case_row--hero>.main-image,
    .case_row.case_row--hero>.text-area.case_row_text {
        grid-column: auto;
        grid-row: auto;
        gap: 15px;
    }

    .case_row.case_row--hero>.text-area.case_row_text {
        margin-top: 0;
        margin-right: 0;
    }

    .head-content h1 {
        font-size: 20px;
        line-height: 26px;
        letter-spacing: 0.4px;
    }

    .head .hashtags {
        gap: 6px;
    }

    .head .hashtags .tag {
        font-size: 12px;
        line-height: 21px;
        border-width: 1px;
        padding: 0 9px;
    }

    .head-content {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .case_row {
        flex-flow: column;
    }

    .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 {
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 3 / 2;
    }

    .buttonArea .CTAButton {
        width: 100%;
    }

    .text {
        /* General text container on SP */
    }

    .case_row {
        gap: 18px;
    }

    .donation-info,
    .supporter-info {
        gap: 4px;
        /* Reduced gap */
        flex: 1;
    }

    .tit {
        font-size: 12px;
        color: #939393;
        white-space: nowrap;
    }

    .case_row .amount .case-stat-icon,
    .case_row .count .case-stat-icon {
        width: 16px;
        height: 16px;
    }

    /* SP: Figma 2倍フレーム → 縦マージン・gap は ÷2 */
    .case_row_text>.gage {
        margin-top: 0;
    }

    .case_row_text>.target {
        margin-top: 0;
        height: 22px;
    }

    .case_row_text>.author {
        margin-top: 0;
    }

    .case_row_text>.buttonArea {
        margin-top: 0;
        gap: 15px;
    }

    .target-label {
        font-size: 12px;
        letter-spacing: 0.24px;
    }

    .target-value {
        font-size: 13px;
        /* 26÷2 */
    }

    .target-value .unit {
        font-size: 11px;
        /* 22÷2 よしなに */
    }

    .divider {
        margin: 13px 0 13px;
    }

    .share-buttons {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0;
    }

    .gage {
        height: 23px;
        border-radius: 25px;
    }

    .gage-filled {
        font-size: 13px;
        border-radius: 25px 0 0 25px;
    }

    .gage-filled.full {
        border-radius: 25px;
    }

    .author {
        font-size: 13px;
        /* SP Figma値 26px ÷ 2 */
        gap: 8px;
    }

    .author-icon {
        width: 20px;
        /* SP Figma値 39px ÷ 2 ≈ 20px */
        height: auto;
    }

    .buttonArea .CTAButton {
        font-size: 15px;
        /* SP Figma値 30px ÷ 2 */
        height: 50px;
        /* SP Figma値 100px ÷ 2 */
        padding: 0 16px;
        position: relative;
    }

    .buttonArea .CTAButton:not(.is-closed)::after {
        content: "";
        width: 7px;
        height: 12px;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: url("/common/img/icon/keyboard_arrow_right_white.svg") no-repeat center / contain;
    }

    .share-buttons .shareButton {
        padding: 0;
    }

    .share-buttons .shareButton img {
        width: 21px;
        height: 21px;
    }

    .share-buttons .shareLabel {
        font-size: 12px;
        letter-spacing: 0.24px;
    }

    .share-buttons .shareCopyButton {
        width: 163px;
        height: 33px;
        padding: 0 10px;
        gap: 6px;
        flex-shrink: 0;
    }

    .share-buttons .shareCopyButton span {
        font-size: 11px;
        letter-spacing: 0.22px;
    }

    .intro-paragraph {
        padding: 0 16px;
        /* SP padding */
        font-size: 13px;
        background: none;
    }

    .intro-paragraph>div {
        padding: 18px;
        /* SP Figma値 36px ÷ 2 */
        background-color: #e9f3f5;
        width: 100%;
        font-size: 13px;
        line-height: 20px;
        /* SP Figma値 40px ÷ 2 */
    }

    .section-tabs {
        padding: 0 0;
        gap: 0;
        margin-bottom: 0;
    }

    .Tabs {
        margin: 0 20px;
        -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 */
        border-bottom: 2px solid #CBD3D6;
    }

    .Tab .tag.new {
        font-size: 11px;
        min-width: 15px;
        height: 15px;
        padding: 1px 2px 0;
    }

    .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 {
        width: 100%;
        gap: 16px;
        padding-top: 0;
    }

    .side-box-promo {
        padding: 24px;
    }

    .side-box-head p {
        font-size: 18px;
    }

    .side-box-head-link {
        min-height: 60px;
        padding: 21px 21px 0;
    }

    .side-box-head-link h3 {
        font-size: 18px;
        line-height: 18px;
    }

    .side-box-head-link .textlink {
        gap: 6px;
    }

    .side-box-report,
    .side-box-calendar,
    .side-box-comment {
        padding-bottom: 12px;
    }

    .side-box-report .side-box-card,
    .side-box-calendar .side-box-card,
    .side-box-comment .side-box-card {
        width: calc(100% - 40px);
    }

    .side-box-report .side-box-card h4,
    .home-calendar-title {
        font-size: 16px;
        line-height: 21px;
    }

    .side-box-report .side-box-card>div,
    .side-box-report .side-box-card>div span,
    .side-box-calendar .info-row,
    .side-box-comment .comment p,
    .author-profile-text p,
    .side-box-card>span {
        font-size: 13px;
        line-height: 19px;
    }

    .side-box-report .side-box-card>p {
        font-size: 11px;
        line-height: 11px;
    }

    .side-box-meta-date {
        font-size: 11px;
        line-height: 11px;
    }

    .side-box-card>.textlink {
        width: 215px;
        margin-top: 4px;
    }

    .comment {
        gap: 12px;
    }

    .comment .content {
        gap: 4px;
    }

    .home-calendar-date {
        gap: 8px;
        align-items: center;
    }

    .home-calendar-schedule {
        gap: 4px;
    }

    .home-calendar-date-row {
        gap: 8px;
    }

    .home-calendar-date-icon {
        align-items: center;
        width: 16px;
        margin-top: 5px;
    }

    .home-calendar-date-icon img {
        width: 16px;
        height: 16px;
    }

    .home-calendar-date-content {
        gap: 7px;
    }

    .home-calendar-year {
        font-size: 13px;
        line-height: 13px;
        margin-top: 7px;
    }

    .home-calendar-monthday {
        font-size: 28px;
        line-height: 28px;
    }

    .home-calendar-weekday {
        font-size: 11px;
        line-height: 11px;
        margin-top: 8px;
    }

    .home-calendar-time {
        font-size: 14px;
        line-height: 14px;
        margin-top: 6px;
    }

    .home-calendar-place {
        font-size: 13px;
        line-height: 19px;
    }

    .author-profile-box {
        padding: 25px 25px 40px;
        gap: 18px;
    }

    .author-profile-title {
        min-width: 211px;
        height: 43px;
        padding: 0 28px;
    }

    .author-profile-title::after {
        border-left-width: 7px;
        border-right-width: 7px;
        border-top-width: 10px;
    }

    .author-profile-image {
        margin-top: 0;
    }

    .author-icon-large {
        width: 88px;
        height: auto;
    }

    .author-profile-text h4 {
        font-size: 17px;
        line-height: 21px;
    }

    .author-profile-description.is-collapsed::after {
        height: 72px;
    }

    .author-profile-read-more-button {
        min-width: 173px;
        min-height: 39px;
        font-size: 13px;
    }

    .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: auto;
    }

    .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 */
    }

    /* 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;
    }

    .floating-banner {
        display: none;
    }

    .sp-fixed-footer {
        display: flex;
    }

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

    /* Sticky Tabs for SP */
    .tabs-placeholder {
        display: none;
        height: 0;
    }

    .section-tabs {
        transition: none !important;
        overflow-x: scroll;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .section-tab * {
        transition: none !important;
    }

    .tabs-divider {
        bottom: 32px;
    }

    .section-tabs.sticky-tabs .tabs-divider {
        bottom: 0;
    }
}


/* actions */

/* Activities Section Styles */
.section-activities,
.section-comments {
    padding: 0;
}

.activities-content {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accordion.open {
    gap: 9px;
}

.accordion-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    cursor: pointer;
    border: 0;
    background-color: #E9F3F5;
    text-align: left;
    appearance: none;
    font: inherit;
    color: inherit;
}

.accordion-head-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.accordion-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.02em;
    color: #000000;
}

.accordion-title .jpn,
.accordion-title .eng {
    display: block;
}

.accordion-date {
    font-size: 13px;
    font-weight: 400;
    line-height: 13px;
    letter-spacing: 0.02em;
    color: #909090;
}

.accordion-toggle {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-left: 18px;
    background: center / contain no-repeat url("/common/img/icon/activity_accordion_closed.svg");
}

.accordion.open .accordion-toggle {
    background-image: url("/common/img/icon/activity_accordion_open.svg");
    height: 2px;
    margin-top: -1px;
}

.accordion-body {
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.02em;
}

.accordion-body>* {
    width: 100%;
}

.accordion-body .jpn,
.accordion-body .eng {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.accordion-body .jpn>*+*,
.accordion-body .eng>*+* {
    margin-top: 22px;
}

.accordion-body .jpn>p:has(strong)+p,
.accordion-body .eng>p:has(strong)+p {
    margin-top: 0;
}

.accordion-body p {
    margin: 0;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.02em;
}

.accordion-body p strong {
    font-weight: 700;
    line-height: inherit;
}

.accordion-body p a,
.accordion-body a {
    color: #1D8B9C;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    overflow-wrap: anywhere;
}

.accordion-body p:has(> img) {
    display: flex;
    justify-content: center;
    width: 100%;
}

.accordion-body p>img,
.accordion-body img {
    display: block;
    width: 100%;
    max-width: 506px;
    height: auto;
    aspect-ratio: 506 / 325;
    object-fit: cover;
    margin: 0 auto;
}

.accordion-body p:has(> img)+p,
.accordion-body figcaption,
.accordion-body .caption,
.accordion-body .wp-caption-text {
    width: 100%;
    max-width: 506px;
    margin: 2px auto 0;
    color: #7E7575;
    font-size: 14px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0.02em;
}

.accordion-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    font-size: 14px;
    line-height: 20px;
}

.accordion-actions a {
    color: #1D8B9C;
}

.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) {
    .content-row {
        width: 100%;
        gap: 40px;
    }

    .activities-content {
        width: 100%;
        gap: 15px;
        padding: 0 23px;
    }

    .accordion.open {
        gap: 15px;
    }

    .accordion-head {
        padding: 17.5px 12.5px;
    }

    .accordion-head-content {
        gap: 9px;
    }

    .accordion-title {
        font-size: 14px;
        line-height: 17px;
    }

    .accordion-date {
        font-size: 10px;
        line-height: 10px;
    }

    .accordion-toggle {
        width: 12.5px;
        height: 12.5px;
        margin-left: 12px;
    }

    .accordion-body {
        gap: 20px;
        font-size: 14px;
        line-height: 23px;
    }

    .accordion-body .jpn,
    .accordion-body .eng {
        gap: 0;
    }

    .accordion-body .jpn>*+*,
    .accordion-body .eng>*+* {
        margin-top: 20px;
    }

    .accordion-body .jpn>p:has(strong)+p,
    .accordion-body .eng>p:has(strong)+p {
        margin-top: 0;
    }

    .accordion-body p {
        font-size: 14px;
        line-height: 23px;
        letter-spacing: 0.02em;
    }

    .accordion-body p>img,
    .accordion-body img {
        max-width: 343px;
        aspect-ratio: 686 / 441;
    }

    .accordion-body p:has(> img)+p,
    .accordion-body figcaption,
    .accordion-body .caption,
    .accordion-body .wp-caption-text {
        max-width: 343px;
        margin-top: 9.5px;
        font-size: 13px;
        line-height: 13px;
        letter-spacing: 0.02em;
    }

    .accordion-actions {
        gap: 12px;
        font-size: 12px;
        line-height: 17px;
    }

    .spinner img {
        width: 32px;
        height: 32px;
    }
}

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

.schedules-content {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.schedule-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background-color: #E9F3F5;
    scroll-margin-top: 190px;
}

.schedule-card~.search_page,
.accordion~.search_page {
    margin-top: 52px;
}

.comment-card~.search_page {
    margin-top: 62px;
}

.schedule-card-header {
    margin: 18px 20px 0;
    padding: 18px 21px 16px 20px;
    background-color: #FFFFFF;
}

.schedule-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px 18px;
}

.schedule-card .home-calendar-schedule {
    gap: 8px;
}

.schedule-card-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    row-gap: 6px;
}

.schedule-card-arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transform: rotate(90deg);
}

.schedule-card-title {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.34px;
    color: #080808;
    word-break: break-word;
}

.schedule-card .home-calendar-place {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.32px;
}

.schedule-card-title-row .calendar-card__judgement {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff6701;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.56px;
    border-radius: 4px;
    padding: 0 7px;
    height: 21px;
    flex-shrink: 0;
    line-height: 1;
}

.schedule-detail-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #D9D9D9;
    margin: 0;
}

.schedule-detail-box {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-detail-box h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0.28px;
    color: #080808;
}

.schedule-detail-box p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.3px;
    color: #080808;
    white-space: pre-line;
}

.schedule-detail-box p:empty,
p.caution-text:empty {
    display: none;
}

.schedule-card-body a {
    color: #1D8B9C;
    text-decoration: underline;
    word-break: break-all;
}

p.caution-text {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #080808;
    line-height: 19px;
    letter-spacing: 0.24px;
    white-space: pre-line;
}

.schedule-card-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0 16px;
}

.schedule-card-actions a {
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}

.schedule-divider {
    display: none;
}

.past-schedule {
    opacity: 0.3;
}

/* Legacy schedule list styles retained below for unrelated markup */
.schedule-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 540px;
}

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

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

/* Responsive adjustments for Schedules Section */
@media (max-width: 767px) {

    .schedule-card~.search_page,
    .accordion~.search_page,
    .comment-card~.search_page {
        margin-top: 35px;
    }

    .section-schedules {
        /* SP specific adjustments if needed */
    }

    .schedules-content {
        gap: 15px;
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
    }

    .schedule-card-header {
        margin: 23px 23px 0;
        padding: 20px;
    }

    .schedule-card .home-calendar-schedule {
        gap: 10px;
    }

    .schedule-card-title {
        font-size: 16px;
        line-height: 20px;
        letter-spacing: 0.32px;
    }

    .schedule-card .home-calendar-place {
        font-size: 13px;
        line-height: 19px;
        letter-spacing: 0.26px;
    }

    .schedule-card-body {
        gap: 5px;
        padding: 16px 23px 23px;
    }

    .schedule-detail-box {
        gap: 5px;
    }

    .schedule-detail-box h4 {
        font-size: 15px;
        line-height: 30px;
        letter-spacing: 0.3px;
    }

    .schedule-detail-box p {
        font-size: 14px;
        line-height: 21px;
        letter-spacing: 0.28px;
    }

    p.caution-text {
        font-size: 12px;
        line-height: 15px;
        letter-spacing: 0.24px;
    }

    .schedule-card-actions {
        gap: 0 12px;
    }

    .schedule-card-actions a {
        font-size: 12px;
        line-height: 18px;
    }
}

/* Comments Section Styles */
.section-comments {
    padding-top: 0;
}

.comments-content {
    max-width: 650px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.comment-card {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 15px;
    align-items: flex-start;
}

.comment-card-icon {
    width: 40px;
    height: auto;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    flex: 0 0 40px;
    line-height: 0;
}

.comment-card-icon-link {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
}

.comment-card .user-icon {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.comment-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 0;
    min-width: 0;
    flex: 1 1 auto;
}

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

.comment-card-name {
    display: block;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: 0.28px;
    color: #1D8B9C;
    flex: 1 1 auto;
}

.comment-card-name a {
    color: inherit;
    text-decoration: none;
}

.comment-card-date {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 0.24px;
    color: #A29F9F;
    text-align: right;
    white-space: nowrap;
}

.comment-card-body {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.3px;
    color: #080808;
    white-space: pre-line;
    word-break: break-word;
}

.comment-hr {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid #D9D9D9;
}

/* Responsive adjustments for Comments Section */
@media (max-width: 767px) {
    .section_under_case_tab {
        width: 100%;
    }

    .comments-content {
        width: 100%;
        max-width: 100%;
        padding: 0 23px;
        box-sizing: border-box;
        gap: 20px;
    }

    .comment-card {
        gap: 20px 7.5px;
    }

    .comment-card-name {
        font-size: 14px;
        line-height: 17px;
        letter-spacing: 0.28px;
    }

    .comment-card-date {
        font-size: 11px;
        line-height: 11px;
        letter-spacing: 0.22px;
    }

    .comment-card-content {
        gap: 3px;
        width: 0;
        flex: 1 1 auto;
    }

    .comment-card-body {
        font-size: 14px;
        line-height: 21px;
        letter-spacing: 0.28px;
    }
}

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

.materials-content {
    width: 650px;
    /* 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 */
    }

}


/* 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;
    }
}

/* ============================================================
   Related Content Section Styles
   ============================================================ */
.section-related-content {
    padding: 0;
    background: rgba(210, 232, 235, 0.5);
    width: 100vw;
    margin-top: 73px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.rc-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.rc-inner:not(:has(div)) {
    display: none;
}

/* --- Subsection --- */
.rc-subsection {
    padding-bottom: 60px;
}

.rc-inner {
    padding-top: 80px;
}

/* --- Section Title --- */
.rc-section-title {
    font-size: 22px;
    font-weight: bold;
    color: #1d8b9c;
    letter-spacing: 0.88px;
    padding-bottom: 10px;
    margin: 0;
}

/* --- Card Row (Story / Column) --- */
.rc-card-row {
    display: flex;
    gap: 19px;
}

/* --- Card --- */
.rc-card {
    width: 354px;
    background: #fff;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
}

.rc-card:hover {
    text-decoration: none;
}

.rc-card:hover .rc-card-title {
    color: #1d8b9c;
}

/* --- Card Image --- */
.rc-card-img {
    width: 100%;
    height: 217px;
    overflow: hidden;
    flex-shrink: 0;
}

.rc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rc-card-column .rc-card-img {
    height: 171px;
}

/* --- Card Text --- */
.rc-card-text {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.rc-card-date {
    font-family: Roboto, YuGothic, "游ゴシック体", "游ゴシック", "Yu Gothic", 'Hiragino Kaku Gothic ProN', 'MS PGothic', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #909090;
    letter-spacing: 0.24px;
    margin: 0;
}

.rc-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    letter-spacing: 0.32px;
    line-height: 22px;
    max-height: 44px;
    overflow: hidden;
    margin: 0;
}

.rc-card-subtitle {
    font-size: 13px;
    color: #000;
    letter-spacing: 0.26px;
    line-height: 20px;
    margin: 0;
}

/* --- Podcast Card --- */
.rc-podcast-card {
    width: 1100px;
    max-width: 100%;
    background: #fff;
    padding: 36px;
    box-sizing: border-box;
}

.rc-podcast-card .rc-podcast-card-inner {
    width: 320px;
}

/* --- List Button --- */
.rc-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.rc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 290px;
    height: 55px;
    background: #b8dde0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    color: #1d8b9c;
    letter-spacing: 0.32px;
    text-decoration: none;
    position: relative;
    border: none;
    cursor: pointer;
}

.rc-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 6px;
    height: 10px;
    transform: translateY(-50%);
    background: url("/common/img/icon/chevron-right-teal.svg") no-repeat center / contain;
}

/* --- Recommend Cases --- */
.rc-case-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 30px;
}

.rc-case-row .home-cassette-case {
    width: 258px;
    flex-shrink: 0;
}

.rc-title-roboto {
    font-family: Roboto, YuGothic, "游ゴシック体", "游ゴシック", "Yu Gothic", 'Hiragino Kaku Gothic ProN', 'MS PGothic', sans-serif;
    font-weight: bold;
}

/* ============================================================
   Related Content Section - SP (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
    .section-related-content{
        margin-top: 40px;
    }

    .rc-inner {
        padding: 40px 23.5px 0;
    }

    .rc-subsection {
        padding-bottom: 40px;
    }

    .rc-section-title {
        font-size: 18px;
        letter-spacing: 0.72px;
        padding-bottom: 10px;
    }

    /* Story Cards SP */
    .rc-card-row {
        flex-direction: column;
        gap: 10px;
    }

    .rc-card {
        width: 100%;
        padding: 11px;
    }

    .rc-card-img {
        height: 212px;
    }

    .rc-card-column .rc-card-img {
        height: 167px;
    }

    .rc-card-text {
        gap: 11px;
    }

    .rc-card-date {
        font-size: 12px;
        color: #a1a1a1;
    }

    .rc-card-title {
        font-size: 15px;
        letter-spacing: 0.3px;
        line-height: 20px;
        max-height: 40px;
    }

    .rc-card-subtitle {
        font-size: 12px;
        letter-spacing: 0.24px;
        line-height: 13px;
    }

    /* Podcast SP */
    .rc-podcast-card {
        width: 100%;
        padding: 11px;
    }

    .rc-podcast-card .rc-podcast-card-inner {
        width: 100%;
    }


    /* Button SP */
    .rc-btn {
        width: 216px;
        height: 44px;
        background: #b0dde3;
        border-radius: 4px;
        font-size: 14px;
        letter-spacing: 0.28px;
    }

    /* Recommend Cases SP */
    .rc-case-row {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 40px;
    }

    .rc-case-row .home-cassette-case {
        width: calc(50% - 6px);
        flex-shrink: 0;
    }
}

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

@media (max-width: 767px) {

    .case_detail #inquiry {
        padding-bottom: 80px;
    }

    .case-detail-section,
    .section-activities,
    .section-comments {
        margin-top: 22px;
    }

    .floating-banner {
        display: none;
    }

    .sp-fixed-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 78px;
        padding: 17px 55px;
        box-sizing: border-box;
    }

    .sp-footer-item {
        width: 100%;
        max-width: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sp-fixed-footer .sp-fixed-footer-cta {
        position: relative;
        width: 100%;
        min-height: 44px;
        padding: 0 32px 0 16px;
        box-sizing: border-box;
        justify-content: center;
        border-radius: 2px;
        font-size: 15px;
        font-weight: 700;
        line-height: 15px;
        letter-spacing: 0.02em;
        text-align: center;
    }

    .sp-fixed-footer .sp-fixed-footer-cta::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 18px;
        width: 5px;
        height: 9px;
        transform: translateY(-50%);
        background: url("/common/img/icon/keyboard_arrow_right_white.svg") no-repeat center / contain;
    }
}

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