/* ===== CSS Variables ===== */
:root {
    /* 指定：高さ 最大 / 角度 最小 / 耳幅 最大 */
    --ribbon: #bbd65a;
    /* 帯色（緑色に変更） */
    --ink: #000000;
    /* 耳色（黒色に変更） */
    --h: 48px;
    /* 高さ：小さく */
    --skew: -8deg;
    /* 角度：調整 */
    --ear: 20px;
    /* 耳の幅：小さく */

    /* テキストサイズ分類 */
    --text-s: clamp(12px, 1.5vw, 16px);
    /* Small: 12-16px */
    --text-m: clamp(16px, 2.6vw, 20px);
    /* Medium: 16-20px */
    --text-l: clamp(20px, 3vw, 28px);
    /* Large: 20-28px */
    --text-xl: clamp(28px, 4.8vw, 56px);
    /* Extra Large: 28-56px */
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: #ffffff;
    font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    line-height: 1.6;
    color: #333;
    min-width: 375px;
    overflow-x: hidden;
}

h3 {
    border-bottom: none;
}

/* ===== Layout Components ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 80px 0;
}

/* ===== Header Styles ===== */
.header {
    background-color: #f8f9fa;
    padding: 30px 0 40px;
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 60px;
    overflow: visible;
}

.header-image {
    max-width: 100%;
    /* max-height: 200px; */
    width: auto;
    height: auto;
}

.header-message {
    max-width: 800px;
    margin: 60px auto 80px;
    text-align: center;
    padding: 20px 0;
}

.header-message p {
    font-size: var(--text-m);
    color: #333;
    line-height: 1.6;
}

.highlight {
    color: #bbd65a;
    font-weight: bold;
}

/* ===== Section Title Ribbon ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ribbon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--h);
    padding: 0 60px;
    color: white;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    transform: skewX(var(--skew));
    /* border-radius: var(--radius); */
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ribbon::before {
    content: "";
    position: absolute;
    inset: -1px;
    /* 塗り隙間対策 */
    background: var(--ribbon);
    /* border-radius: calc(var(--radius) + 1px); */
    z-index: -2;
}

.ribbon::after {
    content: "";
    position: absolute;
    top: -1px;
    bottom: -1px;
    right: 0;
    /* はみ出し無し */
    width: calc(var(--ear) + 1px);
    /* 右端は 0px 固定、上下面は overflow で裁断 */
    background: var(--ink);
    /* border-radius: 0 var(--radius) var(--radius) 0; */
    z-index: -1;
}

.ribbon>span {
    display: inline-block;
    transform: skewX(calc(var(--skew) * -1));
    font-size: var(--text-l);
    white-space: nowrap;
}

/* ===== Feature Badges Section ===== */
.fb {
    --accent: #97bf23;
    --ink: #283619;
    --skew: -8deg;
    --border: 5px;
    --border-r: calc(var(--border) * 6);
}

.fb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 60px);
    padding: 20px 60px;
    align-items: start;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.fb-item {
    --badge-w: min(240px, 22vw);
    text-align: center;
    max-width: 340px;
}

.fb-badge {
    position: relative;
    width: var(--badge-w);
    aspect-ratio: 484/319;
    background: var(--accent);
    transform: skewX(var(--skew));
    overflow: hidden;
}

.fb-badge::before {
    content: "";
    position: absolute;
    inset: var(--border) var(--border-r) var(--border) var(--border);
    background: #fff;
}

.fb-badge__inner {
    position: absolute;
    inset: calc(var(--border) + 8px) calc(var(--border-r) + 8px) calc(var(--border) + 8px) calc(var(--border) + 8px);
    display: grid;
    place-items: center;
    gap: 0;
    color: var(--ink);
    transform: skewX(calc(var(--skew) * -1));
}

.fb-badge__top {
    font-weight: 900;
    font-size: var(--text-l);
    letter-spacing: 0.08em;
}

.fb-badge__bottom {
    font-weight: 900;
    font-size: var(--text-l);
    letter-spacing: 0.14em;
}

.fb-copy {
    max-width: 320px;
    margin: 16px auto 0;
    color: var(--ink);
}

.fb-copy p {
    margin: 0 0 6px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: var(--text-s);
}

.fb-copy .fb-em {
    color: var(--accent);
}

/* ===== Use Case Grid Section ===== */
.ucg {
    --accent: #bbd65a;
    --ink: #283619;
    --skew: -8deg;
    --stripe: 40px;
}

.ucg-grid {
    max-width: min(1200px, 95vw);
    margin: 16px auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 8vw, 120px);
    row-gap: clamp(32px, 6vw, 48px);
    align-items: stretch;
    font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
}

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

.ucg-col--right {
    justify-content: center;
}

.ucg-item {
    display: flex;
    align-items: stretch;
    gap: 0;
    color: var(--ink);
    margin-bottom: clamp(32px, 6vw, 48px);
}

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

.ucg-stripe {
    width: var(--stripe);
    min-width: var(--stripe);
    background: var(--accent);
    transform: skewX(var(--skew));
    /* border-radius: 4px; */
    display: block;
    align-self: stretch;
}

.ucg-body {
    display: block;
    flex: 1;
    min-width: 0;
}

.ucg-title {
    margin: 0 0 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--ink);
    font-size: var(--text-m);
    line-height: 1.1;
    text-align: left;
}

.ucg-copy {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
}

.ucg-copy+.ucg-copy {
    margin-top: 6px;
}

/* ===== Other Sections ===== */
.section-content {
    text-align: center;
    color: #666;
    font-size: var(--text-m);
    padding: 0 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .ucg-grid {
        grid-template-columns: 1fr;
        gap: clamp(32px, 6vw, 48px);
    }

    .ucg {
        --stripe: 32px;
    }

    .ucg-col {
        gap: 0;
    }

    .ucg-col--right {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 20px 0 30px;
    }

    .header-content {
        gap: 15px;
        margin-bottom: 15px;
    }

    .header-logo {
        max-width: 90%;
        max-height: 80px;
    }

    .header-image {
        max-width: 90%;
        max-height: 100px;
    }

    .header-message {
        max-width: 100%;
        margin: 30px auto;
        padding: 16px 20px;
    }

    .header-message p {
        font-size: var(--text-s);
        line-height: 1.8;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 25px;
    }

    .header-message {
        margin: 40px auto 60px;
    }

    section:last-of-type {
        padding-bottom: 60px;
    }

    .ribbon {
        height: 40px;
        padding: 0 30px;
    }

    .ribbon>span {
        font-size: var(--text-m);
    }

    .fb-grid {
        gap: clamp(16px, 3vw, 24px);
        padding: 0 20px;
    }

    .fb-copy {
        margin: 12px auto 0;
    }

    .ucg-grid {
        margin: 10px auto;
    }

    .ucg-item {
        gap: 0;
    }

    .ucg-title {
        margin: 0 0 6px;
        font-size: var(--text-s);
    }

    .section-content {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .fb-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 15px;
    }

    .fb-item {
        --badge-w: min(200px, 50vw);
        max-width: 220px;
        padding-bottom: 0;
    }

    .fb-copy {
        margin: 8px auto 0;
    }
}

.ws {
    --accent: #bbd65a;
    /* 濃い黄緑：左のDay帯＆Week文字 */
    --panel: #bbd65a;
    /* 右の行の地色（薄い黄緑） */
    --ink: #283619;
    /* 文字色（濃い緑） */
    --divider: #1c2a18;
    /* 黒に近い仕切り */
    --skew: -8deg;
    /* 平行四辺形の傾き */
    --gap: 14px;
    /* 行間の白ライン */
    --dayw: 260px;
    /* Day帯の幅（デスクトップ） */
    --dividerw: 10px;
    /* 仕切りの太さ */
    padding: 0;
}


.ws-week {
    color: var(--accent);
    font-weight: 900;
    font-style: italic;
    font-size: var(--text-l);
    letter-spacing: .02em;
    margin-bottom: 16px;
    text-align: left;
}

.ws-grid {
    max-width: min(1280px, 96vw);
    margin: 12px auto;
}


.ws-rows {
    display: grid;
    row-gap: var(--gap);
}


/* ===== 1行（右側の帯） ===== */
.ws-row {
    position: relative;
    background: var(--panel);
    transform: skewX(var(--skew));
    overflow: hidden;
}

.ws-row__inner {
    transform: skewX(calc(var(--skew) * -1));
    padding: 16px 22px 16px calc(var(--dayw) + 28px);
}

.ws-task {
    font-weight: 900;
    font-size: var(--text-m);
    letter-spacing: .04em;
    color: var(--ink);
}


/* 左の Day 帯と仕切り（親要素の skew をそのまま受ける） */
.ws-day {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--dayw);
    background: #97bf23;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-day>span {
    transform: skewX(calc(var(--skew) * -1));
    color: #fff;
    font-weight: 900;
    font-style: italic;
    font-size: var(--text-s);
    letter-spacing: .04em;
}

.ws-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--dayw) - var(--dividerw)/2);
    width: var(--dividerw);
    background: var(--divider);
    display: block;
}


/* ===== Responsive ===== */
@media (max-width: 900px) {
    .ws {
        --dayw: 120px;
        --dividerw: 6px;
        --gap: 10px;
    }

    .ws-week {
        text-align: center;
        margin-bottom: 12px;
    }

    .ws-grid {
        margin: 8px auto;
    }

    .ws-row__inner {
        padding: 12px 16px 12px calc(var(--dayw) + 20px);
    }
}

@media (max-width: 600px) {
    .ws {
        --dayw: 80px;
        --dividerw: 4px;
        --gap: 8px;
    }

    .ws-week {
        font-size: var(--text-m);
        margin-bottom: 10px;
    }

    .ws-row__inner {
        padding: 10px 12px 10px calc(var(--dayw) + 16px);
    }

    .ws-task {
        font-size: var(--text-s);
    }

    .ws-day>span {
        font-size: 12px;
    }
}

.ws+.ws {
    margin-top: 12px;
}

/* ===== Contact Section ===== */
.contact-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    margin: 60px auto;
    max-width: 700px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #bbd65a, #bbd65a, #bbd65a);
}

/* お問い合わせセクション専用のスタイル調整 */
section:last-of-type {
    padding-bottom: 100px;
}

section:last-of-type .section-title {
    margin-bottom: 60px;
}

.contact-message {
    font-size: var(--text-xl);
    font-weight: 900;
    color: #283619;
    margin: 40px 0 40px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-button-wrapper {
    margin-top: 8px;
}

.contact-button {
    display: inline-block;
    background: linear-gradient(135deg, #bbd65a, #bbd65a);
    color: white;
    text-decoration: none;
    font-weight: 900;
    padding: 18px 40px;
    box-shadow: 0 4px 15px rgba(187, 214, 90, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    font-size: var(--text-m);
    border: none;
    cursor: pointer;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(187, 214, 90, 0.4);
    background: linear-gradient(135deg, #bbd65a, #bbd65a);
    text-decoration: none;
}

/* メールアドレス表示セクション */
.contact-email-section {
    margin-top: 40px;
    padding: 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: visible;
}

.contact-email-label {
    font-size: var(--text-m);
    font-weight: 700;
    color: #283619;
    margin: 0 0 16px 0;
    text-align: center;
}

.contact-email-display {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 3px solid #bbd65a;
    padding: 20px 24px;
    margin: 0 0 16px 0;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(187, 214, 90, 0.2);
    overflow: hidden;
}

.contact-email-display::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #bbd65a, #97bf23);
    transition: right 0.4s ease;
    z-index: 1;
}

.contact-email-display:hover::before {
    right: 0;
}

.contact-email-display > * {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.contact-email-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(187, 214, 90, 0.3);
    border-color: #97bf23;
}

.contact-email-display:hover .email-address {
    color: #ffffff;
}

.email-address {
    font-size: var(--text-l);
    font-weight: 900;
    color: #283619;
    letter-spacing: 0.02em;
    font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-loading {
    font-size: var(--text-s);
    color: #666;
    font-style: italic;
}

.contact-email-note {
    font-size: var(--text-s);
    color: #666;
    margin: 0;
    text-align: center;
    font-weight: 600;
}

.email-copy-instruction {
    font-size: 12px;
    color: #97bf23;
    font-weight: 700;
    margin: 8px 0 0 0;
    text-align: center;
}



.email-copy-instruction {
    font-size: 12px;
    color: #97bf23;
    font-weight: 700;
    margin: 8px 0 0 0;
    text-align: center;
    transition: all 0.3s ease;
}

.email-copy-instruction.copied {
    color: #283619;
    transform: scale(1.1);
}

.email-copy-instruction.animate {
    animation: copySuccess 0.6s ease;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
        color: #97bf23;
    }
    50% {
        transform: scale(1.2);
        color: #283619;
    }
    100% {
        transform: scale(1.1);
        color: #283619;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 20px;
        margin: 40px auto;
    }

    .contact-message {
        font-size: var(--text-l);
        margin: 30px 0 30px;
    }

    section:last-of-type .section-title {
        margin-bottom: 40px;
    }

    .contact-button {
        padding: 16px 32px;
        font-size: var(--text-s);
    }

    .contact-email-section {
        margin-top: 30px;
        padding: 15px 0;
        max-width: 95vw;
        width: 100%;
    }

    .contact-email-label {
        font-size: var(--text-s);
    }

    .email-address {
        font-size: var(--text-s);
        letter-spacing: 0.01em;
    }

    .contact-email-display {
        padding: 16px 12px;
        min-width: 0;
    }

    .email-copy-instruction {
        font-size: 11px;
    }

    @keyframes copySuccess {
        0% {
            transform: scale(1);
            color: #97bf23;
        }
        50% {
            transform: scale(1.15);
            color: #283619;
        }
        100% {
            transform: scale(1.05);
            color: #283619;
        }
    }
}

/*=====Slide-in Animation Effects=====*/
.slide-in-section {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-section.animate {
    opacity: 1;
    transform: translateX(0);
}

/* セクション内の要素を順次アニメーション */
.slide-in-section .fb-item,
.slide-in-section .ucg-item,
.slide-in-section .ws,
.slide-in-section .contact-message,
.slide-in-section .contact-button-wrapper {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-section.animate .fb-item {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-section.animate .fb-item:nth-child(1) {
    transition-delay: 0.1s;
}

.slide-in-section.animate .fb-item:nth-child(2) {
    transition-delay: 0.2s;
}

.slide-in-section.animate .fb-item:nth-child(3) {
    transition-delay: 0.3s;
}

.slide-in-section.animate .ucg-item {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-section.animate .ucg-item:nth-child(1) {
    transition-delay: 0.1s;
}

.slide-in-section.animate .ucg-item:nth-child(2) {
    transition-delay: 0.2s;
}

.slide-in-section.animate .ucg-item:nth-child(3) {
    transition-delay: 0.3s;
}

.slide-in-section.animate .ucg-item:nth-child(4) {
    transition-delay: 0.4s;
}

.slide-in-section.animate .ucg-item:nth-child(5) {
    transition-delay: 0.5s;
}

.slide-in-section.animate .ws {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.slide-in-section.animate .contact-message {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.slide-in-section.animate .contact-button-wrapper {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

/* セクションタイトルのアニメーション */
.slide-in-section .section-title {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-section.animate .section-title {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.05s;
}

/* ribbonクラスの傾きを保持 */
.slide-in-section .section-title.ribbon {
    transform: translateX(60px) skewX(var(--skew));
}

.slide-in-section.animate .section-title.ribbon {
    transform: translateX(0) skewX(var(--skew));
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .slide-in-section {
        transform: translateX(50px);
    }

    .slide-in-section .fb-item,
    .slide-in-section .ucg-item,
    .slide-in-section .ws,
    .slide-in-section .contact-message,
    .slide-in-section .contact-button-wrapper {
        transform: translateX(40px);
    }

    .slide-in-section .section-title {
        transform: translateX(30px);
    }
}

/* ==
=== Case Studies Section ===== */
.case-studies {
    --accent: #bbd65a;
    --ink: #283619;
    --border: #e9ecef;
    --shadow: rgba(0, 0, 0, 0.1);
}

.case-study-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vw, 60px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.case-study-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
    background: transparent;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: none;
    border: nonesolid var(--border);
    transition: all 0.3s ease;
}



.case-study-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}



/* 画像がない場合のプレースホルダー */
.case-study-image::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: var(--text-s);
    font-weight: 600;
    z-index: 1;
}

.case-study-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-study-title {
    font-size: var(--text-l);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin: 0;
    text-align: left;
}

.case-study-description {
    font-size: var(--text-s);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin: 0;
    text-align: left;
}

.case-study-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.case-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* 奇数番目の要素は画像を右側に配置 */
.case-study-item:nth-child(odd) {
    grid-template-columns: 2fr 1fr;
}

.case-study-item:nth-child(odd) .case-study-image {
    order: 2;
}

.case-study-item:nth-child(odd) .case-study-content {
    order: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .case-study-grid {
        gap: clamp(24px, 4vw, 32px);
        padding: 10px 0;
    }

    .case-study-item {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 0 20px 0;
        background: transparent;
        box-shadow: none;
        border: none;
        border-bottom: 3px solid #bbd65a;
        margin-bottom: 30px;
    }

    .case-study-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }



    /* モバイル表示時の順番制御 */
    .case-study-title {
        order: 1;
    }

    .case-study-image {
        order: 2;
    }

    .case-study-content {
        order: 3;
        display: flex;
        flex-direction: column;
    }

    .case-study-description {
        order: 1;
    }

    .case-study-tags {
        order: 2;
    }

    .case-study-item:nth-child(odd) {
        grid-template-columns: 1fr;
    }

    .case-study-item:nth-child(odd) .case-study-image,
    .case-study-item:nth-child(odd) .case-study-content {
        order: initial;
    }

    .case-study-image {
        aspect-ratio: 16/9;
    }

    .case-study-title {
        font-size: var(--text-m);
    }

    .case-study-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .case-tag {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .case-study-item {
        padding: 0 0 16px 0;
        gap: 16px;
    }

    .case-study-content {
        gap: 12px;
    }

    .case-study-tags {
        gap: 6px;
    }
}

/* アニメーション対応 */
.slide-in-section .case-study-item {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-section.animate .case-study-item {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-section.animate .case-study-item:nth-child(1) {
    transition-delay: 0.1s;
}

.slide-in-section.animate .case-study-item:nth-child(2) {
    transition-delay: 0.2s;
}

.slide-in-section.animate .case-study-item:nth-child(3) {
    transition-delay: 0.3s;
}/* ===== Mo
bile-only Line Break ===== */
.mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .mobile-br {
        display: block;
    }
}