:root {
    --primary-blue: #005bab;
    --deep-blue: #1e3a8a;
    --pure-black: #000000;
    --text-regular: #1a1a1a;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    background-color: #f8fafc;
    color: var(--text-regular);
    margin: 0;
}

.reveal-active {
    overflow: visible !important;
}

/* header */
.loginBtn {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.loginBtn:hover {
    color: white;
    background-color: var(--deep-blue);
    border-color: var(--deep-blue);
}

/* ヒーローセクション */
.heroMainVisual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.heroMainVisual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.Guide {
    position: relative;
    margin-top: -50px;
    z-index: 10;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.sectionSubTitle {
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary-blue);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* ========================================================
   ★ 3つの理由：背景完全静止 ＆ カードスタッキング（統合・確定版）
======================================================== */
.reasonSection {
    position: relative;
    /* 背景画像をセクション背面に敷き、白オーバーレイで薄く(0.2相当に)する */
    background-image: linear-gradient(rgba(248, 250, 252, 0.82), rgba(248, 250, 252, 0.82)), url("../img/SUK.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    /* ★スクロール距離を確保（カード3枚分） */
    height: 350vh;
    padding: 0;
    overflow: visible !important;
}

/* HTML側にある背景ラッパー要素は不要なので非表示（背景画像と干渉させない） */
.reason-bg-wrap,
.reason-bg-sticky {
    display: none !important;
}

/* 100vh sticky ラッパー：ここが常に画面に表示される領域 */
.reason-sticky-wrap {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    /* ヘッダーの高さ */
    box-sizing: border-box;
    overflow: hidden;
}

/* タイトルエリア */
.reason-title-area {
    position: static !important;
    top: auto !important;
    flex-shrink: 0;
    text-align: center;
    padding: 20px 0 12px;
    z-index: 10;
    background: transparent;
}

/* カードエリアラッパー（ここに絶対位置でカードが重なる） */
.reason-cards-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

/* カードのスタッキング設定：全カードが同じ位置に重なる */
.stack-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
    padding: 0 20px;
    box-sizing: border-box;
    will-change: transform;
}

/* 2枚目・3枚目は初期状態で画面下に隠す */
.stack-item:nth-child(2) {
    transform: translateY(100%);
}

.stack-item:nth-child(3) {
    transform: translateY(100%);
}

.stack-card {
    background: #ffffff;
    width: 100%;
    max-width: 1000px;
    height: 100%;
    max-height: 460px;
    display: flex;
    align-items: center;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 91, 171, 0.12);
    border: 1px solid rgba(0, 91, 171, 0.05);
    position: relative;
    transform-origin: top center;
}

.stack-visual {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.stack-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.stack-card:hover .stack-visual img {
    transform: scale(1.08);
}

.stack-content {
    width: 50%;
    padding: 3rem;
}

.stack-tag {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stack-tag::after {
    content: "";
    height: 1px;
    background: linear-gradient(to right, rgba(0, 91, 171, 0.3), transparent);
    flex-grow: 1;
}

.stack-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.stack-title-main {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: #005bab;
}

.stack-number {
    display: flex;
    justify-content: flex-end;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    font-family: "Inter", sans-serif;
    background: linear-gradient(180deg, #005bab 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 91, 171, 0.2));
}

@media (max-width: 1023px) {
    .reasonSection {
        height: auto !important;
    }

    .reason-sticky-wrap {
        position: static !important;
        height: auto !important;
        overflow: visible !important;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .reason-title-area {
        position: static !important;
        padding: 0 0 20px;
    }

    .reason-cards-wrap {
        position: static !important;
        height: auto !important;
        overflow: visible !important;
    }

    .stack-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        margin-bottom: 24px !important;
        padding: 0 !important;
    }

    .stack-card {
        flex-direction: column;
        border-radius: 30px;
        height: auto !important;
        max-height: none !important;
    }

    .stack-visual,
    .stack-content {
        width: 100%;
    }

    .stack-visual {
        height: 240px;
    }

    .stack-content {
        padding: 2rem 1.5rem;
    }
}

/* ========================================================
   下層ページ・共通パーツ（100%保持）
======================================================== */
.suk-dropdown {
    position: relative;
    display: inline-block;
}

.suk-dropdown-toggle {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    color: var(--text-regular);
    font-weight: 500;
    transition: color 0.15s ease-in-out;
    display: flex;
    align-items: center;
}

.suk-dropdown-toggle:hover {
    color: var(--primary-blue);
}

.suk-dropdown:hover .suk-dropdown-toggle i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.suk-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 0.5rem;
    margin: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
}

.suk-dropdown:hover .suk-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suk-dropdown-menu li {
    margin-bottom: 2px;
}

.suk-dropdown-menu li:last-child {
    margin-bottom: 0;
}

.suk-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.suk-dropdown-menu a:hover {
    background-color: #005bab;
    color: white;
    padding-left: 1.25rem;
}

/* --- Bottom CTA Section --- */
.suk-cta-box {
    font-size: 0.85rem;
}

.suk-cta-title {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.suk-cta-icon-wrapper {
    width: 35px;
    height: 35px;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

@media (min-width: 768px) {
    .suk-cta-box {
        font-size: 1rem;
        padding: 2rem !important;
    }

    .suk-cta-title {
        font-size: 2.5rem;
    }

    .suk-cta-icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .suk-cta-icon-wrapper i {
        font-size: 1.5rem !important;
    }
}

/* Entry Flow Animation */
.entry-flow-section {
    position: relative;
    overflow: hidden;
}

.entry-flow-section .container {
    position: relative;
    z-index: 2;
}

.entry-flow-bg {
    clip-path: polygon(0 40%, 100% 5%, 100% 95%, 0 60%);
    position: absolute;
    top: 65%;
    left: 0;
    width: 0;
    height: 50%;
    background-color: var(--primary-blue);
    transform: translateY(-50%);
    transform-origin: left center;
    transition: width 3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
    pointer-events: none;
}

.entry-flow-section.is-visible .entry-flow-bg {
    width: 100%;
}

.entry-flow-section .col>.border {
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.entry-flow-section .col>.border:hover {
    transform: translateY(-5px);
}

/* For First-time Users Banner */
.suk-custom-banner {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 4px solid var(--primary-blue);
    border-radius: 12px;
    overflow: hidden;
    min-height: 120px;
    position: relative;
    z-index: 1;
}

.suk-custom-banner::before {
    display: none;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: linear-gradient(135deg, #2b5ec4 0%, #27b7c2 100%);
    border-radius: 0 80px 80px 0;
    z-index: -1;
}

@media (max-width: 767px) {
    .suk-custom-banner::before {
        display: none;
    }
}

.banner-accent {
    background: linear-gradient(135deg, #2b5ec4 0%, #27b7c2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    transition: all 0.3s ease;
}

.banner-info {
    flex: 1;
    padding: 25px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.banner-info p {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.6;
    transition: color 0.4s ease;
}

.banner-link {
    position: absolute;
    bottom: 20px;
    right: 30px;
    color: var(--text-regular);
    font-weight: 700;
    font-size: 0.9rem;
    padding-bottom: 2px;
    transition: all 0.4s ease;
}

.banner-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.4s ease;
}

.suk-custom-banner:hover .banner-link::after {
    width: 100%;
}

@media (max-width: 991px) {
    .banner-accent {
        min-width: 100%;
        padding: 20px;
        border-radius: 0;
        background-color: var(--primary-blue);
    }

    .suk-custom-banner::before {
        width: 200px;
    }
}

@media (max-width: 767px) {
    .suk-custom-banner {
        flex-direction: column;
    }

    .banner-accent {
        min-width: 100%;
        padding: 20px;
        border-radius: 0;
        background-color: var(--primary-blue);
    }

    .banner-info {
        padding: 20px;
        min-height: 160px;
    }

    .banner-info p {
        font-size: 1rem;
        margin-bottom: 40px !important;
    }
}

/* Service Banners Expanding Hover Effect */
.suk-hover-fill {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.suk-hover-fill::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #2b5ec4 0%, #27b7c2 100%);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.suk-hover-fill:hover::before {
    width: 100%;
}

.suk-hover-fill h3 {
    transition: color 0.3s ease;
    color: var(--text-regular);
}

.suk-hover-fill:hover h3 {
    color: #fff !important;
}

/* ★はじめての方へ */
.position-relative-first {
    display: flex;
    align-items: center;
}

.icon-bg-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: auto;
    flex-shrink: 0;
}

.icon-bg-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.icon-bg-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 8px;
    z-index: -1;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    opacity: 0;
    visibility: hidden;
}

.suk-hover-fill:hover .icon-bg-wrap::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.icon-bg-wrap .hover-img-buildingOnly {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translate(-50%, -50%);
    width: 30px !important;
}

.text-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
}

.original-text {
    transition: all 0.5s ease;
    opacity: 1;
    transform: translateX(0);
}

.hover-text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-20px);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    width: 100%;
    line-height: 1.4;
}

.suk-hover-fill:hover .original-text {
    opacity: 0;
    transform: translateX(20px);
}

.suk-hover-fill:hover .hover-text {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.original-img {
    transition: all 0.5s ease;
    opacity: 1;
}

.hover-img {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    width: 100%;
    z-index: 2;
}

.suk-hover-fill:hover .original-img {
    opacity: 0;
    transform: translateX(20px);
}

.suk-hover-fill:hover .hover-img {
    opacity: 1 !important;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* 3つの理由 タイトル下線アニメーション */
.reason-title {
    position: relative;
    display: inline-block;
    letter-spacing: 0.08em;
}

.reason-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 0%;
    height: 1px;
    background-color: var(--primary-blue);
    z-index: -1;
    transition: width 1s ease-out;
}

.reason-title.is-active::after {
    width: 100%;
}

.reason-title.delay-line::after {
    transition-delay: 1s;
}

.reason-title-img {
    position: relative;
    z-index: 1;
    vertical-align: middle;
    width: 40px;
    height: auto;
    margin-bottom: 20px;
}

/* Bottom CTA */
@media (max-width: 767.98px) {
    .responsive-font {
        font-size: 1.25rem !important;
    }
}

/* -----firstGuide.htmlの装飾----- */
@media (max-width: 767.98px) {
    .hero-header-img {
        object-position: right center !important;
    }
}

.hero-catch-box {
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    font-weight: 700;
    line-height: 1.8;
    color: #1a1a1a;
}

@media (min-width: 768px) {
    .hero-catch-box {
        position: absolute;
        top: 50%;
        right: 0%;
        transform: translateY(-50%);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        z-index: 2;
    }
}

@media (max-width: 767.98px) {
    .hero-catch-box {
        position: relative;
        text-align: center;
        width: 100%;
        border-top: 1px solid #eee;
    }
}

/* [data-anim] カスタムアニメーション */
[data-anim] {
    opacity: 0;
    transition-duration: 1.2s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transition-property: opacity, transform;
}

[data-anim].is-animated {
    opacity: 1;
    transform: none;
}

[data-anim="fade-up"] {
    transform: translateY(50px);
}

@media (max-width: 767.98px) {
    [data-anim="fade-up"] {
        transform: translateY(30px);
    }
}

[data-anim="fade-right"] {
    transform: translateX(-50px);
}

@media (max-width: 767.98px) {
    [data-anim="fade-right"] {
        transform: translateX(-30px);
    }
}

[data-anim="fade-left"] {
    transform: translateX(50px);
}

@media (max-width: 767.98px) {
    [data-anim="fade-left"] {
        transform: translateX(30px);
    }
}

[data-anim="zoom-in"] {
    transform: scale(0.9);
}

/* -----news.html----- */
.category-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    color: #2b5ec4;
    z-index: 1;
    transition: color 0.3s ease;
    background: transparent;
}

.category-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: var(--primary-blue);
    z-index: -2;
}

.category-btn::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50px;
    background-color: white;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    color: white;
}

.category-btn:hover::after,
.category-btn.active::after {
    opacity: 0;
}

@media (max-width: 575.98px) {
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

button.category-btn {
    border: none;
}

/* ユーティリティ */
.text-primary-highlight {
    color: #4da3ff;
}

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.hover-opacity:hover {
    opacity: 0.8;
}

.news-preview-list::-webkit-scrollbar {
    width: 4px;
}

.news-preview-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}


.page-item .page-link {
    aspect-ratio: 1/1;
    width: 40px;
}