/* =================== GLOBAL RESET =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Noto Sans JP', rodin-light, osaka, sans-serif;
    overflow-x: clip;
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.6;
    background: #05060a;
    color: #fff;
}

/* =================== FLEX HELPERS =================== */
.row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* =================== CHAT BUTTON =================== */
.chat-button {
    position: fixed;
    bottom: clamp(20px, 2vw, 40px);
    right: clamp(20px, 2vw, 40px);
    background: #6D4BFF;
    color: #ffffff;
    text-decoration: none;
    padding: clamp(8px, 0.9vw, 12px) clamp(16px, 1.6vw, 24px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 10px);
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(109, 75, 255, 0.4);
    transition: all 0.25s ease;
    z-index: 999;
    animation: chatButtonFloatPulse 3s ease-in-out infinite;
    transform-origin: center;
}

.chat-button::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7ed8ff 0%, #a28bff 50%, #ff9bd1 100%);
    opacity: 0;
    z-index: -1;
    animation: chatButtonAura 2.5s ease-in-out infinite;
    filter: blur(8px);
    pointer-events: none;
}

.chat-button::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: chatButtonRing 2s ease-in-out infinite;
    pointer-events: none;
}

/* Enhanced active state on mobile */
.chat-button:active {
    animation: chatButtonClick 0.3s ease, chatButtonFloatPulse 3s ease-in-out infinite 0.3s;
}

/* Animate the SVG icon inside */
.chat-button svg {
    animation: chatButtonIconPulse 2s ease-in-out infinite;
    transform-origin: center;
}

@media (max-width:768px) {
    .chat-button p {
        display: none;
    }

}

/* =================== HEADER =================== */
header {
    width: 100%;
    padding-inline: clamp(12px, 3vw, 32px);
    padding-block: clamp(8px, 1vw, 16px);
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 100;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* logo */
.logo {
    display: flex;
    gap: clamp(6px, 0.8vw, 12px);
    justify-content: center;
    align-items: center;
    padding-inline: clamp(8px, 1.5vw, 32px);
    text-decoration: none;
}

.logo-image {
    width: clamp(32px, 3.5vw, 50px);
    height: clamp(32px, 3.5vw, 50px);
    background: url("../assets/images/logo.avif") center/cover no-repeat;
}

.logo-text {
    color: #fff;
    display: flex;
    flex-direction: column;
    font-size: clamp(12px, 2vw, 16px);
}

.logo-text span {
    text-shadow: 0px 2px 3px #000000;
}

/* nav */
nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(6px, 0.9vw, 12px);
    padding-inline: clamp(8px, 1.8vw, 32px);
}

.nav-item {
    background: #0d0d16;
    color: #fff;
    text-decoration: none;
    padding: clamp(6px, 0.9vw, 10px) clamp(14px, 1.5vw, 24px);
    border-radius: 999px;
    font-size: clamp(11px, 0.9vw, 14px);
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: #1e1e2f;
    transform: translateY(-2px);
}

.nav-item.cta {
    background: #6D4BFF;
    font-weight: 600;
}

.nav-item.cta:hover {
    background: #8B68FF;
}

/* dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #0d0d16;
    border-radius: 30px;
    margin-top: 4px;
    min-width: clamp(110px, 9vw, 150px);
    text-align: center;
    padding-block: 4px;
}

.dropdown-content a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    font-size: clamp(11px, 0.9vw, 14px);
    border-radius: 20px;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: #1e1e2f;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/*===================== Mobile Mode Header ================== */
/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 200;
}

.hamburger span {
    box-shadow: 0px 1px 3px #2B2B3E;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 5px;
    transition: 0.3s ease;
}

/* Transform to X when opened */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile sidebar */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* initially hidden */
    width: 100%;
    height: 100vh;
    backdrop-filter: blur(10px);
    background: rgba(13, 13, 22, 0.6);
    padding: 80px 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: right 0.4s ease;
    z-index: 150;
    justify-content: center;
}

.mobile-menu a {
    text-align: center;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 10px 0;
}

.mobile-menu a:hover {
    color: #6D4BFF;
}

.mobile-menu a.cta {
    background: #6D4BFF;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
}

.mobile-menu a.cta:hover {
    color: white;
}

@media (max-width: 850px) {
    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

.mobile-menu.open {
    right: 0;
}



/* =================== HERO =================== */
.hero {
    width: 100%;
    height: 100vh;
    background: url("../assets/images/logo.avif") center/cover no-repeat fixed;
    position: relative;
    padding-top: clamp(90px, 10vw, 100px);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
        background-position: center;
    }
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(16px, 2.2vw, 25px);
    padding-bottom: clamp(16px, 2.2vw, 25px);
}

.hero-text {
    color: #fff;
    margin-left: clamp(16px, 4vw, 50px);
    font-size: clamp(12px, 2vw, 30px);
}

.hero-subtext {
    font-size: clamp(16px, 2.2vw, 25px);
    margin-left: clamp(20px, 4vw, 50px);
    color: #fff;
    padding-right: clamp(10px, 2vw, 15px);
}

.hero-buttons {
    margin-left: clamp(20px, 4vw, 50px);
    display: flex;
    gap: clamp(10px, 2vw, 20px);
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: clamp(10px, 1vw, 16px) clamp(20px, 2vw, 32px);
    border-radius: 999px;
    font-size: clamp(12px, 1.1vw, 16px);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.primary {
    background: #6D4BFF;
    color: #fff;
}

.btn.primary:hover {
    color: #8B68FF;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 75, 255, 0.3);
}

.btn.secondary {
    background: #1E1E2F;
    color: #fff;
}

.btn.secondary:hover {
    color: #2B2B3E;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 26, 26, 0.4);
}

/* =================== HERO FEATURES =================== */
.features-view {
    width: 100%;
    padding-inline: clamp(16px, 5vw, 100px);
    font-family: 'Noto Sans JP', sans-serif;
}

.features {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    justify-content: space-between;
    align-items: stretch;
    background-color: #232333;

    padding: clamp(12px, 1.6vw, 24px) clamp(0px, 2vw, 32px);
    border-radius: 4px;
    gap: clamp(0px, 1.8vw, 16px);
}

.feature {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #232333;
    color: #fff;
    font-weight: 600;
    font-size: clamp(12px, 1.4vw, 20px);
    padding: clamp(0px, 1.2vw, 18px);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.feature:hover {
    cursor: pointer;
    background-color: #2e2e3e;
    transform: translateY(-3px);
}

.feature .line {
    display: block;
    width: 4px;
    height: clamp(28px, 4vw, 40px);
    background: #6D4BFF;
    border-radius: 2px;
    margin-right: 1rem;
}

.feature p {
    margin: 0;
    line-height: 1.6;
}

/* 数字カウンタ用 */
.count {
    display: inline-block;
    font-weight: 700;
}

@media (max-width:768px) {
    .features {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }
}

/* =================== SECTION NOTE LABEL =================== */
.text-note {
    position: absolute;
    margin-left: clamp(20px, 5vw, 100px);
    display: flex;
    align-items: center;
    width: clamp(200px, 18vw, 340px);
    height: clamp(36px, 4vw, 55px);
    background-color: #fff;
    font-size: clamp(14px, 1.3vw, 20px);
    padding-inline-start: clamp(12px, 1.4vw, 20px);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #111;
    z-index: 10;
}

/* =================== COMPANY INFO =================== */
.company-info {
    display: flex;
    width: 100%;
    height: min(90vh, 900px);
    background: url("../assets/images/ai_bg.jpg") center/cover no-repeat fixed;
    position: relative;
    z-index: 2;
}

/* Dark overlay between background and text */
.company-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

@supports (-webkit-touch-callout: none) {
    .company-info {
        background-attachment: scroll;
    }
}

.company-info-text {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
    font-size: clamp(22px, 2vw, 48px);
    color: #fff;
    margin-left: clamp(20px, 4vw, 50px);
    gap: clamp(5px, 2vw, 15px);
    position: relative;
    z-index: 10;
}

.company-info-text p {
    line-height: 1.75;
}

.btn-more {
    position: absolute;
    bottom: clamp(10px, 4vw, 50px);
    left: clamp(20px, 4vw, 50px);
    z-index: 10;
}


/* =================== COMPANY REASON SECTION =================== */
.company-reason {
    width: 100%;
    min-height: min(100vh, 900px);
    background: url("../assets/images/reason-back.avif") center/cover no-repeat;
}

.company-reason-text {
    width: 100%;
    min-height: inherit;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 32px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    /* ★ 常に 2列 */
    gap: clamp(20px, 3vw, 40px);
    width: fit-content;
    margin-left: clamp(20px, 4vw, 70px);
    margin-top: clamp(40px, 6vw, 70px);
}

.why-item {
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(14px, 1.4vw, 20px);
}

.why-item h3 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    margin-bottom: clamp(12px, 1.5vw, 20px);
}

.why-item p {
    font-size: clamp(14px, 1.6vw, 20px);
    line-height: 1.7;
}

.why-item>* {
    margin-bottom: clamp(16px, 2.5vw, 28px);
}

.rect {
    width: clamp(42px, 3.5vw, 55px);
    height: clamp(42px, 3.5vw, 55px);
    border-radius: 10px;
    margin-bottom: clamp(20px, 2.8vw, 30px);
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rect svg path {
    fill: #fff !important;
}

@media (max-width:600px) {
    .company-reason-text {
        justify-content: center;
        align-items: center;
    }

    .why-grid {
        grid-template-columns: repeat(1, minmax(260px, 1fr));
    }

    .business-item {
        width: 100%;
        flex-direction: column;
    }
}

.viewbox {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* =================== NEWS =================== */
.news {
    width: 100%;
    height: fit-content;
    padding: clamp(20px, 4vw, 40px) clamp(16px, 2vw, 40px);
    background: #f4f4f4;
    color: #111;
}

.news-heading {
    font-size: clamp(30px, 4vw, 60px);
    font-weight: 700;
    margin-bottom: clamp(10px, 3vw, 40px);
}

.news-container {
    position: relative;
    width: 100%;
    padding-inline: clamp(10px, 2vw, 50px);
    display: flex;
}

/* left */
.news-left {
    width: clamp(180px, 20vw, 300px);
}

.news-video {
    width: 100%;
    height: 40%;
    border: 6px solid #0094ff;
    border-top-left-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #242834;
}

.news-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 250px;
}

.play-btn {
    border: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(40px, 4vw, 60px);
    height: clamp(28px, 3vw, 40px);
    background: rgba(255, 0, 0, 0.9);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.play-btn:hover {
    background: rgba(255, 40, 40, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
}

.news-sns {
    background-color: #242834;
    height: 60%;
    padding-bottom: clamp(16px, 2vw, 30px);
    gap: clamp(16px, 2vw, 30px);
    font-weight: 700;
    border-bottom-left-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sns-text {
    font-size: clamp(28px, 4vw, 50px);
    color: #fff;
}

.sns-btn {
    display: flex;
    gap: clamp(0px, 2vw, 20px);
    padding-inline: 5px;
}

.sns-btn a {
    text-decoration: none;
    padding: clamp(0px, 0.5vw, 8px) clamp(0px, 1vw, 16px);
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 25px;
    font-size: clamp(12px, 1vw, 14px);
    color: #fff;
}

/* right */
.news-right {
    background-color: #ececec;
    flex: 1;
    display: flex;
    justify-content: space-evenly;
    padding: clamp(24px, 3vw, 50px) clamp(12px, 2vw, 20px);
    gap: clamp(0px, 2vw, 40px);
    border-right: clamp(16px, 3vw, 30px) solid #242834;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.news-item {
    width: 33%;
    min-width: clamp(150px, 20vw, 200px);
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 12px;
    object-fit: cover;
    clip-path: polygon(0 0, 16% 0, 0 16%);
    transform-origin: top left;
    transform: translate(-16px, -16px) rotate(-6deg) scale(0.9);
    opacity: 0;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.14);
    transition:
        clip-path 1.2s cubic-bezier(0.25, 0.9, 0.3, 1.2),
        transform 1s cubic-bezier(0.25, 0.9, 0.3, 1.2),
        opacity 0.4s ease;
    will-change: clip-path, transform, opacity;
    transition-delay: 0.3s;
}

.news-item img._show {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.news-item h4 {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.news-item p {
    font-size: clamp(14px, 2vw, 14px);
    color: #555;
    line-height: 1.6;
    text-align: left;
}

/* view more */
.news-more {
    position: absolute;
    text-align: right;
    bottom: clamp(16px, 3vw, 40px);
    right: clamp(20px, 5vw, 100px);
}

.news-more a {
    font-size: clamp(13px, 1.2vw, 16px);
    text-decoration: none;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 2px;
}

@media (max-width: 768px) {

    .news-container {
        flex-direction: column;
        /* 縦並び */
        padding: 0;
        gap: 0px;
        box-shadow: rgba(36, 40, 52, 0.4) 0px 2px 10px;
        border-radius: 10px;
    }

    .news-video {
        border-top-left-radius: 0px;
        border: none;
    }

    .news-sns {
        border-bottom-left-radius: 0px;
    }

    .news-left,
    .news-right {
        width: 100%;
    }

    /* SNS 部分の高さ調整 */
    .news-sns {
        height: auto;
        padding: 30px;
    }

    /* NEWS カードを 2列 → 自動で 1列に落ちるグリッドへ変更 */
    .news-right {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 30px;
        padding: 20px;
        border-right: none;
        /* 不要な縦線を消す */
        border-bottom-left-radius: 10px;
    }

    /* VIEW MORE ボタン位置調整 */
    .news-more {
        position: static;
        text-align: right;
        /* margin-top: 10px; */
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
    }

    .news-item {
        width: 100%;
        max-width: fit-content;
    }

}

/* =================== BUSINESS =================== */
.business {
    width: 100%;
    padding: clamp(0px, 5vw, 60px) clamp(20px, 4vw, 40px);
    font-family: 'Noto Sans JP', sans-serif;
    background: #f5f5f5;
    color: #111;
}

.business-title {
    font-size: clamp(30px, 4vw, 60px);
    font-weight: 700;
    margin-bottom: clamp(10px, 3vw, 40px);
}

.business-list {
    padding-inline: clamp(0px, 4vw, 64px);
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 10vw, 120px);
}

.business-item {
    display: flex;
    align-items: stretch;
    position: relative;
    min-height: clamp(220px, 30vw, 380px);
    border-radius: 20px;
    background: #ececec;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-item._show {
    opacity: 1;
    transform: translateY(0);
}

.biz-text {
    width: 50%;
    padding: clamp(20px, 4vw, 100px) clamp(20px, 4vw, 100px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: clamp(10px, 2vw, 40px);
}

.biz-text h3 {
    font-size: clamp(16px, 2.5vw, 32px);
    font-weight: 700;
}

.biz-text p {
    font-size: clamp(14px, 1.5vw, 20px);
    line-height: 1.7;
    color: #444;
}

.biz-image {
    position: absolute;
    right: clamp(10px, 3vw, 50px);
    top: 50%;
    transform: translateY(-50%);
    max-width: 50%;
    overflow: visible;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(126,216,255,0.35));
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.biz-image img {
    height: clamp(200px, 30vw, 420px);
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    opacity: 0;
    transform-origin: top right;
    transform: translateY(60px) rotate(-10deg) scale(0.92);
    box-shadow:
        0 18px 32px rgba(0, 0, 0, 0.18),
        0 8px 16px rgba(0, 0, 0, 0.12);
    transition:
        opacity 0.55s ease-out,
        transform 0.9s cubic-bezier(0.22, 1.05, 0.36, 1),
        clip-path 1s cubic-bezier(0.25, 0.9, 0.3, 1.2);
    clip-path: polygon(70% 0%, 100% 0%, 100% 20%, 82% 6%);
    will-change: transform, opacity, clip-path;
    transition-delay: 0.5s;
}

.biz-image img._show {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.14),
        0 6px 16px rgba(0, 0, 0, 0.12);
}

@media (max-width: 600px) {
    .business-item {
        flex-direction: column;
        box-shadow: rgba(36, 40, 52, 0.4) 0px 2px 10px;
        border-radius: 10px;
    }

    .business-list {
        padding: 0px;
    }

    .biz-text {
        width: 100%;
    }

    .biz-image {
        position: relative;
        transform: translateY(0);
        display: flex;
        justify-content: center;
        align-items: center;
        right: 0px;
        padding: 0;
        max-width: 100%;
    }

    .biz-image img {
        border-radius: 10px;
        width: 100%;
        height: 100%;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }
}

/* =================== BLOG / SCROLL =================== */
.blog {
    padding-block: clamp(40px, 6vw, 100px);
    background: #fff;
    color: #111;
}

.blog-heading {
    padding-left: clamp(20px, 4vw, 40px);
    font-size: clamp(30px, 4vw, 60px);
    font-weight: 700;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.blog-text {
    font-size: clamp(12px, 1.5vw, 18px);
    display: flex;
    justify-content: center;
    margin-bottom: clamp(12px, 2vw, 20px);
    text-align: center;
    padding: 5px 10px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.blog-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
}

.blog-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin: 0 clamp(40px, 5vw, 80px);
}

.blog-slider-track {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    align-items: flex-start;
}

.blog-container {
    flex: 0 0 auto;
    width: 370px;
    max-width: 100%;
    transition: opacity 0.5s ease;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    padding: 20px 0;
}

@media (max-width: 768px) {
    .blog-container {
        width: min(370px, 90vw);
    }
}

.blog-container.active {
    opacity: 1;
    z-index: 2;
}

.blog-container:not(.active) {
    filter: brightness(0.85);
}

.blog-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: clamp(12px, 2.5vw, 20px);
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    max-height: none;
}

.blog-container.active img {
    transform: scale(1.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}


.blog-slider-btn {
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.blog-slider-btn-left {
    left: 0;
}

.blog-slider-btn-right {
    right: 0;
}

.blog-slider-btn:hover {
    background: #333;
    transform: translateY(-50%) scale(1.05);
}

.blog-slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.blog-slider-btn svg {
    width: 24px;
    height: 24px;
}


/* =================== SERVICE BANNER (FOOTER HERO) =================== */
.service {
    position: relative;
    width: 100%;
    height: min(50vh, 420px);
    background-image: url('../assets/images/biz9.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.service::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.service-banner {
    height: clamp(150px, 26vw, 200px);
    background-color: #fff;
    border-radius: 5px;
    padding: 0 clamp(16px, 2vw, 20px);
    position: absolute;
    right: clamp(16px, 5vw, 30px);
    bottom: clamp(16px, 5vw, 30px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sb-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 20px);
}

.sb-left img {
    width: clamp(150px, 18vw, 250px);
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.sb-center {
    flex: 1;
    text-align: center;
    font-size: clamp(14px, 1.6vw, 20px);
    font-weight: 700;
    color: #222;
}

.sb-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sb-right .sb-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.4vw, 16px);
    background: #111;
    color: #fff;
    padding: clamp(10px, 1vw, 12px) clamp(16px, 1.6vw, 20px);
    border-radius: 6px;
    font-size: clamp(12px, 1.1vw, 16px);
    text-decoration: none;
    transition: 0.25s ease;
}

.sb-right .sb-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.sb-icon {
    min-width: 32px;
    min-height: 32px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(12px, 1.2vw, 16px);
    font-weight: 700;
}

@media (max-width: 500px) {

    .service-banner {
        margin-left: 10px;
    }
}

/* =================== FOOTER =================== */
footer {
    width: 100%;
    background: #242834;
    color: #e5e5e5;
    height: fit-content;
}

.footer-container {
    width: 100%;
    padding: clamp(32px, 5vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 20vw, 260px), 1fr));
    gap: clamp(20px, 4vw, 60px);
    margin-bottom: clamp(24px, 3vw, 50px);
}

.footer-col h3 {
    font-size: clamp(14px, 1.3vw, 18px);
    margin-bottom: clamp(10px, 1.4vw, 20px);
    font-weight: 700;
}

.footer-col p {
    font-size: clamp(12px, 1vw, 15px);
    margin-bottom: clamp(8px, 1.3vw, 15px);
    line-height: 1.6;
}

.footer-email {
    font-weight: 600;
}

/* お問い合わせボタン */
.footer-btn {
    display: inline-block;
    margin-top: clamp(10px, 1.6vw, 20px);
    padding: clamp(8px, 1vw, 12px) clamp(18px, 1.8vw, 28px);
    background: #6D4BFF;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(12px, 1.1vw, 16px);
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background: #8B68FF;
    transform: translateY(-2px);
}

/* メールフォーム */
.footer-form {
    display: flex;
    gap: clamp(8px, 1vw, 10px);
    margin-top: clamp(10px, 1.6vw, 20px);
}

.footer-form input {
    flex: 1;
    padding: clamp(8px, 1vw, 12px) clamp(12px, 1.4vw, 18px);
    border-radius: 25px;
    border: 2px solid #555;
    background: #242834;
    color: #fff;
    outline: none;
    font-size: clamp(12px, 1vw, 14px);
}

.footer-form button {
    padding: clamp(8px, 1vw, 12px) clamp(16px, 1.6vw, 24px);
    border-radius: 25px;
    background: #fff;
    color: #242834;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: clamp(12px, 1vw, 14px);
}

/* メニュー & SNS */
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: clamp(6px, 1vw, 12px);
}

.footer-col ul li a {
    color: #e5e5e5;
    text-decoration: none;
    transition: opacity 0.2s;
    font-size: clamp(12px, 1vw, 14px);
}

.footer-col ul li a:hover {
    opacity: 0.7;
}

/* コピーライト */
.footer-bottom {
    border-top: 1px solid #3a3e48;
    padding-top: clamp(10px, 1.4vw, 20px);
    text-align: center;
    font-size: clamp(10px, 0.9vw, 14px);
    display: flex;
    justify-content: center;
    gap: clamp(10px, 1.6vw, 20px);
}

.footer-bottom a {
    color: #e5e5e5;
    text-decoration: none;
}

/* Mobile Footer Layout - 3rd and 4th columns in one row */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
    }
    
    /* Column 1 takes full width (spans 2 columns) */
    .footer-col:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    /* Column 2 takes full width (spans 2 columns) */
    .footer-col:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    
    /* Columns 3 and 4 share row 3, each taking 1 column */
    .footer-col:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }
    
    .footer-col:nth-child(4) {
        grid-column: 2;
        grid-row: 3;
    }
}

/* ==================== Responsive ==================== */