/* ====================================
   Top Page Styles - Clean Grid
   ==================================== */
   *, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* ====================================
   Main Visual
   ==================================== */
.main-visual {
    width: 80%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
}
.main-visual__content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 90%;
}
.main-visual__title {
    font-size: 3.5rem;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.3em;
    white-space: nowrap;
    position: relative;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    animation: revealText 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.main-visual__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
    letter-spacing: 0.15em;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    white-space: nowrap;
}
.main-visual__title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: left;
    animation: overlaySlide 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Scroll Indicator */
.scrolldown {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.scrolldown span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -25px;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
}
.scrolldown::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 60px;
    background: #fff;
    animation: pathmove 1.5s ease-in-out infinite;
    opacity: 0;
}


/* ====================================
   Glassmorphism Base
   ==================================== */
.service-packages__card,
.knowledge__item,
.flow__step,
.faq__item {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Section Titles Decoration */
.about__title, .service-packages__title, .work__title, 
.knowledge__title, .flow__title, .faq__title {
    position: relative;
    display: inline-block;
}
.about__title::before, .work__title::before, .flow__title::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: #4CAF50;
    border-radius: 2px;
}
.service-packages__title::after, .knowledge__title::after, .faq__title::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: #4CAF50;
    border-radius: 2px;
}

/* ====================================
   About
   ==================================== */
.about {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10rem;
    width: 100%;
}
.about__container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about__title {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 3rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(30px);
    align-self: flex-start;
}
.about__intro {
    width: 100%;
    max-width: 900px;
    margin-bottom: 8rem;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    margin-left: auto;
    margin-right: auto;
}
.about__intro-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 2.2;
    letter-spacing: 0.15em;
}
.about__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem 8rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.about__item {
    position: relative;
    padding: 0;
    opacity: 0;
    transform: translateY(30px);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.about__item-bg-number {
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 12rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    transition: all 0.6s ease;
}
.about__item:hover .about__item-bg-number {
    color: rgba(76, 175, 80, 0.08);
    transform: scale(1.05);
}
.about__item-content {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}
.about__item:hover .about__item-content {
    border-bottom-color: rgba(76, 175, 80, 0.4);
    padding-bottom: 2.5rem;
}
.about__item-number {
    font-size: 1rem;
    color: rgba(76, 175, 80, 0.8);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}
.about__item-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1.2rem;
    letter-spacing: 0.08em;
    font-weight: 400;
}
.about__item-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 2;
    letter-spacing: 0.08em;
}

/* ====================================
   Service Packages
   ==================================== */
.service-packages {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10rem;
    width: 100%;
}
.service-packages__container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.service-packages__title {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-align: right;
    opacity: 0;
    transform: translateY(30px);
}
.service-packages__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4rem;
    letter-spacing: 0.15em;
    text-align: right;
    opacity: 0;
    transform: translateY(30px);
}
.service-packages__content { width: 100%; opacity: 0; transform: translateY(30px); }
.service-packages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.service-packages__card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    border-radius: 8px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
}
.service-packages__card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.service-packages__card--featured {
    border-color: rgba(76, 175, 80, 0.5) !important;
    background: rgba(76, 175, 80, 0.05) !important;
}
.service-packages__badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #4CAF50;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    font-weight: bold;
}
.service-packages__label {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    font-weight: bold;
}
.service-packages__price {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: bold;
}
.service-packages__card-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    letter-spacing: 0.1em;
    font-weight: normal;
}
.service-packages__features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.service-packages__features li {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 2.5;
    letter-spacing: 0.1em;
    padding-left: 1.5rem;
    position: relative;
}
.service-packages__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
}
.service-packages__button {
    position: relative;
    display: inline-block;
    padding: 1rem 3rem;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.2em;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
}
.service-packages__card:hover .service-packages__button {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ====================================
   Works - Grid Layout (Clean)
   ==================================== */
.works-grid-section {
    position: relative;
    width: 100%;
    margin-bottom: 10rem;
    background: #FFF; /* Pure White */
    padding: 80px 0;
}

.works-grid-container {
    width: 90%; /* Wide Container */
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.work__title {
    font-size: 4rem;
    color: #333; /* Dark for white bg */
    margin-bottom: 1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(30px);
}
.work__subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    letter-spacing: 0.15em;
    text-align: left;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns for Luxury look */
    gap: 60px 40px;
    width: 100%;
    margin-bottom: 60px;
}

/* Panel Card */
.work-panel {
    display: block;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}
.work-panel:hover {
    transform: translateY(-10px);
}

/* Visual Area */
.work-panel__visual {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
    /* Soft shadow for depth */
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    transition: box-shadow 0.3s ease;
}
.work-panel:hover .work-panel__visual {
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* Mockup Reuse (PC+SP) inside Panel */
.work-mockup {
    position: relative;
    width: 100%;
    padding-bottom: 10%; /* Space for SP overflow */
    background: #FAFAFA; /* Light gray within visual area */
    padding: 30px;
}
.work-mockup__pc img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.work-mockup__sp {
    position: absolute;
    bottom: -5px;
    right: 5%;
    width: 25%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}
.work-mockup__sp img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #333;
}
/* Hover effect for inner mockup */
.work-panel:hover .work-mockup__sp {
    transform: translateY(-5px);
}

/* Info Area */
.work-panel__info {
    padding-left: 10px;
}
.work-panel__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.work-panel__cat {
    font-size: 0.4rem;
    color: #999;
    border: 1px solid #ddd;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.work-panel__client {
    font-size: 0.95rem;
    color: #666;
    letter-spacing: 0.05em;
}
.work-panel__catch {
    font-size: 1.4rem;
    font-weight: bold;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: 0.05em;
    font-feature-settings: "palt";
}
.work-panel__more {
    font-size: 0.9rem;
    color: #333;
    letter-spacing: 0.1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}
.work-panel__more .arrow {
    transition: transform 0.3s ease;
}
.work-panel:hover .work-panel__more .arrow {
    transform: translateX(5px);
}
.work-panel:hover .work-panel__more {
    color: #4CAF50;
}

/* View All Button Area */
.works-grid-footer {
    width: 100%;
    text-align: center;
    margin-top: 40px;
}
.view-all-btn {
    display: inline-block;
    padding: 1rem 4rem;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
}
.view-all-btn:hover {
    background: #333;
    color: #fff;
}

/* ====================================
   Knowledge
   ==================================== */
.knowledge {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10rem;
    width: 100%;
}
.knowledge__container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.knowledge__title {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-align: right;
    opacity: 0;
    transform: translateY(30px);
}
.knowledge__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4rem;
    letter-spacing: 0.15em;
    text-align: right;
    opacity: 0;
    transform: translateY(30px);
}
.knowledge__content { width: 100%; opacity: 0; transform: translateY(30px); }
.knowledge__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}
.knowledge__item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 20px;
}
.knowledge__item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.knowledge__item:hover { transform: translateY(-5px); }
.knowledge__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.knowledge__date { color: #ccc; font-size: 0.9rem; letter-spacing: 0.1em; }
.knowledge__category {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.knowledge__item-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: normal;
    color: #fff;
    letter-spacing: 0.1em;
    line-height: 1.4;
}
.knowledge__excerpt { color: #ccc; font-size: 0.95rem; line-height: 1.6; letter-spacing: 0.1em; }
.knowledge__more { text-align: center; margin-top: 3rem; }

/* ====================================
   Flow
   ==================================== */
.flow {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10rem;
    width: 100%;
}
.flow__container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.flow__title {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(30px);
}
.flow__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4rem;
    letter-spacing: 0.15em;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
}
.flow__content { width: 100%; opacity: 0; transform: translateY(30px); }
.flow__steps {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .flow__steps::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 20px;
        width: 1px;
        background: rgba(255, 255, 255, 0.1);
        z-index: 0;
    }
    .flow__step {
        width: 100%;
        margin-bottom: 0;
        z-index: 1;
        position: relative;
        padding-left: 60px; 
    }
    .flow__step:nth-child(odd),
    .flow__step:nth-child(even) { 
        margin: 0;
        text-align: left;
    }
    .flow__step::after {
        content: '';
        position: absolute;
        top: 30px;
        left: 14.5px;
        width: 12px;
        height: 12px;
        background: #4CAF50;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }
}

.flow__step {
    padding: 2rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 100%;
}
.flow__step:hover { background: rgba(255,255,255,0.08) !important; }
.flow__step-number { font-size: 1rem; color: #4CAF50; margin-bottom: 1rem; font-weight: bold; }
.flow__step-title { font-size: 1.5rem; color: #fff; margin-bottom: 1rem; font-weight: normal; }
.flow__step-text { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); line-height: 1.8; }

/* ====================================
   FAQ
   ==================================== */
   .faq {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10rem;
    width: 100%;
}
.faq__container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.faq__title {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-align: right;
    opacity: 0;
    transform: translateY(30px);
}
.faq__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4rem;
    letter-spacing: 0.15em;
    text-align: right;
    opacity: 0;
    transform: translateY(30px);
}
.faq__content { 
    width: 100%; 
    opacity: 0; 
    transform: translateY(30px); 
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.faq__more {
    text-align: center;
    margin-top: 3rem;
}


/* ====================================
   Responsive
   ==================================== */
@media (max-width: 1200px) {
    .about__grid { gap: 5rem 6rem; }
    .service-packages__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 1000px) {
    .main-visual { width: 90%; }
    .main-visual__title { font-size: 2.5rem; letter-spacing: 0.2em; }
    .main-visual__subtitle { font-size: 1rem; white-space: normal; }

    .about, .service-packages, .works-grid-section, .knowledge, .flow, .faq, .cta { margin-bottom: 5rem; }
    
    .about__container, .service-packages__container, .works-grid-container, .knowledge__container, .flow__container, .faq__container, .cta__container {
        width: 90%; align-items: center;
    }

    .about__title, .service-packages__title, .work__title,
    .knowledge__title, .flow__title, .faq__title {
        font-size: 2.5rem; margin-bottom: 2rem; text-align: center;
    }

    /* Reset Title Deco */
    .about__title::before, .work__title::before, .flow__title::before,
    .service-packages__title::after, .knowledge__title::after, .faq__title::after { display: none; }

    .about__intro { margin-bottom: 6rem; text-align: center; }
    .about__grid { grid-template-columns: 1fr; gap: 5rem; }
    
    .knowledge__grid { grid-template-columns: 1fr; gap: 30px; }

    /* Works Mobile */
    .works-grid { grid-template-columns: 1fr; gap: 40px; }
    .work-panel__visual { margin-bottom: 15px; }
    .work-panel__catch { font-size: 1.2rem; }

    /* Flow Mobile */
    .flow__steps::before { display: none; }
    .flow__step { padding: 1.5rem; padding-left: 1.5rem; }
    .flow__step::after { display: none; }

    .cta__title { font-size: 2rem; }
    .cta__content { padding: 3rem 2rem; }
}

@media (max-width: 768px) {
    .main-visual__title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .main-visual__title { font-size: 1.8rem; }
    .service-packages__card { padding: 2rem 1.5rem; }
    .work-mockup__sp { width: 30%; right: 0; bottom: -5px; }
}

/* ====================================
   Shared Button Style (Dark Background)
   for Knowledge & FAQ
   ==================================== */
   .view-more-btn {
    display: inline-block;
    padding: 1rem 4rem; /* Worksのボタンと同じサイズ感 */
    border: 1px solid #fff; /* 背景が暗いので白線に調整 */
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    background: transparent;
}

.view-more-btn:hover {
    background: #fff; /* ホバー時に白背景 */
    color: #333; /* 文字色はダークグレーに反転 */
}

/* ====================================
   Button Wrappers for About & Service
   ==================================== */
   .about__more,
   .service-packages__footer {
       text-align: center;
       margin-top: 4rem; /* セクション内の要素との間隔 */
       width: 100%;
   }
   
   /* スマホ版の調整（既存のメディアクエリ内に追加する場合） */
   @media (max-width: 1000px) {
       .about__more,
       .service-packages__footer {
           margin-top: 3rem;
       }
   }





   /* ====================================
   Mobile Horizontal Scroll (Service)
   ==================================== */
@media (max-width: 768px) {
    /* コンテナの幅制限を解除し、画面端までスクロール可能にする */
    .service-packages__container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden; /* コンテナからはみ出した分を隠す */
    }

    /* タイトルやボタンは元の余白(幅)を維持して中央揃え */
    .service-packages__title,
    .service-packages__subtitle,
    .service-packages__footer {
        width: 90%; /* 既存のSP幅に合わせる */
        margin-left: auto;
        margin-right: auto;
        padding-right: 0; /* 装飾の調整 */
        padding-left: 0;
    }

    /* グリッドをFlexbox（横並び）に変更 */
    .service-packages__grid {
        display: flex;
        flex-wrap: nowrap; /* 折り返し禁止 */
        overflow-x: auto; /* 横スクロール許可 */
        gap: 1.5rem; /* カード間の余白 */
        padding: 10px 5% 40px 5%; /* 上・右・下・左の余白。下は影が見切れないように確保 */
        width: 100%;
        /* スクロールバーを非表示にする（見た目をスッキリさせる場合） */
        -ms-overflow-style: none;
        scrollbar-width: none;
        /* スクロールを滑らかに */
        -webkit-overflow-scrolling: touch;
    }
    
    .service-packages__grid::-webkit-scrollbar {
        display: none;
    }

    /* カード個別のスタイル調整 */
    .service-packages__card {
        flex: 0 0 auto; /* コンテンツに合わせて縮小させない */
        width: 85%; /* 画面幅の85%を使用（これで右側に15%分の次カードが見える） */
        max-width: 320px; /* 必要以上に大きくならないように制限 */
        margin: 0;
        transform: none !important; /* ホバー時の動きなどをリセット */
    }
    
    /* 最後のカードの右側に余白を作る */
    .service-packages__card:last-child {
        margin-right: 5%;
    }
}



/* ====================================
   Mobile Adjustments & Horizontal Scrolls
   (Add to the bottom of top.css)
   ==================================== */

   @media (max-width: 768px) {

    /* --- 1. Global Scaling (全体的な縮小) --- */
    /* セクション間のマージンを詰める */
    .about, .service-packages, .works-grid-section, .knowledge, .flow, .faq, .cta {
        margin-bottom: 4rem !important; /* 5remから縮小 */
    }
    /* セクションタイトルのサイズダウン */
    .about__title, .service-packages__title, .work__title,
    .knowledge__title, .flow__title, .faq__title {
        font-size: 2rem !important; /* 2.5remから縮小 */
        margin-bottom: 1.5rem !important;
    }
    .main-visual__title {
        font-size: 1.8rem; /* メインビジュアルも少し調整 */
    }


    /* --- 2. About Section Adjustments --- */
    /* 文章を左寄せに戻す */
    .about__intro {
        text-align: left !important;
        margin-bottom: 3rem !important;
    }
    .about__intro-text {
        font-size: 0.9rem; /* フォントサイズを少し控えめに */
        line-height: 1.8;
    }
    /* 背景の数字(01, 02...)を縮小 */
    .about__item-bg-number {
        font-size: 5rem !important; /* 12remから大幅縮小 */
        top: -10px !important;
        left: 0 !important;
        opacity: 0.05; /* 少し薄くして邪魔にならないように */
    }
    /* アイテム自体の余白調整 */
    .about__item-content {
        padding: 1.5rem 0 !important;
    }
    .about__item-title {
        font-size: 1.4rem !important;
    }


    /* --- 3. Works Section (Horizontal Scroll) --- */
    /* コンテナ幅解放 */
    .works-grid-container {
        width: 100%;
        overflow: hidden;
    }
    /* タイトル等は中央揃え維持 */
    .work__title, .work__subtitle, .works-grid-footer {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .work__subtitle { text-align: center; } /* サブタイトルも中央へ */
    
    /* 横スクロール化 */
    .works-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding: 10px 5% 40px; /* 下余白は影用 */
        width: 100%;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0;
    }
    .works-grid::-webkit-scrollbar { display: none; }
    
    /* カード縮小 & チラ見せ */
    .work-panel {
        flex: 0 0 auto;
        width: 80%; /* 画面の80%幅で表示 */
        max-width: 280px; /* PC用画像が大きくなりすぎないよう制限 */
    }
    .work-panel:last-child { margin-right: 5%; }
    
    /* カード内の要素も少し詰める */
    .work-panel__visual { margin-bottom: 15px; }
    .work-mockup { padding: 15px; }
    .work-panel__catch { font-size: 1.1rem; margin-bottom: 10px; }


    /* --- 4. Knowledge Section (Horizontal Scroll) --- */
    /* コンテナ幅解放 */
    .knowledge__container {
        width: 100%;
        overflow: hidden;
    }
    .knowledge__title, .knowledge__subtitle, .knowledge__more {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* 横スクロール化 */
    .knowledge__grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding: 10px 5% 40px;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    .knowledge__grid::-webkit-scrollbar { display: none; }
    
    /* カード縮小 */
    .knowledge__item {
        flex: 0 0 auto;
        width: 75%; /* 記事は見出しが縦長になりがちなので少し幅を狭めて次を見せやすく */
        max-width: 260px;
        padding: 1.2rem;
    }
    .knowledge__item:last-child { margin-right: 5%; }
    
    .knowledge__item-title { font-size: 1rem; line-height: 1.5; }
    .knowledge__date { font-size: 0.8rem; }


    /* --- 5. Flow Section (Scaling Down) --- */
    /* 全体的にコンパクトに */
    .flow__step {
        padding: 1.5rem 1rem !important; /* 余白削減 */
        margin-bottom: 1rem;
    }
    .flow__step-number {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    .flow__step-title {
        font-size: 1.2rem; /* 1.5remから縮小 */
        margin-bottom: 0.8rem;
    }
    .flow__step-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}