/* ==========================================
   CSS Variables (カラー設定)
========================================== */
:root {
    --main-color: #3e8c98;
    --sub-color: #f2c9a1;
    --text-color: #454545;
    --bg-color: #f5f5f0;
    --accent-color: #ff730c;
    --font-main: 'Zen Kaku Gothic New', sans-serif;
    --font-sub: 'Afacad', sans-serif;
}


/* ==========================================
   Modern CSS Reset (Andy Bell版)
========================================== */
/* Box sizingの統一 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* デフォルトのmarginを削除 */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* リストのスタイルをリセット */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* コアとなるbodyのデフォルト設定 */
html:focus-within {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A要素でclassがないものにデフォルトスタイルを設定 */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* 画像・動画を扱いやすく */
img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    display: block;
}

/* フォーム要素のフォントを継承 */
input,
button,
textarea,
select {
    font: inherit;
}

/* テキストオーバーフローの処理 */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    letter-spacing: 0.1rem;
}

/* ルート要素の高さを設定 */
#root,
#__next {
    isolation: isolate;
}

/* ユーザーがアニメーションを望まない場合は無効化 */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================
   Base Styles (カスタム設定)
========================================== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    /* background-color: var(--bg-color); */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}


/* ==========================================
   ユーティリティクラス
========================================== */
.container {
    width: 100%;
    padding: 0 20px;
}

div[class$="_bg"] {
    position: relative;
}

.fv__btn {
    position: absolute;
    width: 26.2%;
    bottom: 18.7%;
    left: 9.3%;
}

@media (min-width: 761px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px;
    }
}

/* PC only */
.pc-only {
    display: none;
}

@media (min-width: 761px) {
    .pc-only {
        display: block;
    }
}

/* SP only */
.sp-only {
    display: block;
    overflow: hidden;
}

@media (min-width: 761px) {
    .sp-only {
        display: none;
    }
}


/* ==========================================
   PC用スタイル（761px以上）
========================================== */
@media (min-width: 761px) {
    body {
        max-width: 1500px;
        margin: 0 auto;
    }
    .fixed-button {
        top: 0;
        right: 20px;
    }
    .fixed-button__link {
        padding: 0;
        min-width: 200px;
        background-color: transparent;
        box-shadow: none;
    }
    .fixed-button__link:hover {
        background-color: transparent;
        transform: none;
    }
}


/* ==========================================
   SP用スタイル（最大760px）
========================================== */
@media (max-width: 760px) {
    html {
        font-size: 14px;
    }
    .fixed-button {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.7);
        padding: 2% 2% 0;
    }

    .fixed-button__link {
        padding-top: 4%;
        background: #fff;
            padding: 0;
        border-radius: 0;
        background-color: transparent;
        box-shadow: none;
    }
    .fixed-button__link:hover {
        background-color: transparent;
        transform: none;
    }
    .fv__btn {
        width: 95%;
        bottom: 4.4%;
        left: 0;
        right: 0;
        margin: 0 auto;
    }
}


/* ==========================================
   追従ボタン
========================================== */
.fixed-button {
    position: fixed;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fixed-button.is-visible {
    opacity: 1;
    visibility: visible;
}

.fixed-button__link {
    display: block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.fixed-button__link:hover {
    opacity: 1;
    transform: translateY(-2px);
}


/* ==========================================
   Consultation セクション
========================================== */

/* プロフィール画像のホバーエフェクト（PCのみ） */
@media (min-width: 761px) {
    .consultation__profile {
        position: absolute;
        width: 24.2%;
        top: 30.2%;
        left: 9.1%;
        cursor: pointer;
        transition: 0.3s linear all;
    }

    .consultation__profile.__02 {
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .consultation__profile.__03 {
        left: auto;
        right: 9.1%;
    }

    .pc-only .consultation__slide {
        position: absolute;
        width: 67%;
        bottom: 20%;
        right: 12.4%;
    }

    .consultation__profile:hover {
        transform: translateY(-8px);
    }
    /* PC版: splide-consultation-pc カスタムレイアウト */
    /* 矢印ボタンを左側に縦配置 */
    .pc-only .consultation__slide .splide__arrows {
        position: absolute;
        top: 0;
        left: -14%;
        z-index: 10;
        display: flex;
        flex-direction: unset;
        gap: 20px;
    }
    .pc-only .consultation__slide .splide__arrow {
        position: static;
        transform: none;
        background-color: var(--sub-color);
        opacity: 1;
        width: 35px;
        height: 35px;
        border-radius: 50%;
    }
    .pc-only .consultation__slide .splide__arrow:hover {
        background-color: #e6b88a;
    }
    .pc-only .consultation__slide .splide__arrow svg {
        fill: var(--text-color);
    }
    /* カスタムページネーション（1/3形式） */
    .custom-pagination {
        position: absolute;
        bottom: -52%;
        left: -11.5%;
        color: #ff730c;
        font-size: 24px;
        font-weight: bold;
        font-family: var(--font-main);
        letter-spacing: 0.2rem;
        z-index: 10;
    }
    /* ページネーションを矢印の下に縦配置 */
    .pc-only .consultation__slide .splide__pagination {
        position: absolute;
        bottom: -45%;
        left: -14%;
        display: flex;
        flex-direction: unset;
        gap: 10px;
        right: auto;
    }
    .pc-only .consultation__slide .splide__pagination__page {
        background-color: var(--sub-color);
        opacity: 0.5;
        width: 12px;
        height: 12px;
        margin: 0;
    }
    .pc-only .consultation__slide .splide__pagination__page.is-active {
        background-color: var(--sub-color);
        opacity: 1;
        transform: scale(1.4);
    }
    .consultation__btn {
        position: absolute;
        width: 23.8%;
        bottom: 10%;
        right: 35%;
    }
}

@media (max-width: 760px) {
    .consultation_profile__slide {
        position: absolute;
        width: 96%;
        top: 23%;
        left: 0;
        right: 0;
        margin: 0 auto;
    }
    .sp-only .consultation__slide {
        position: absolute;
        width: 82%;
        bottom: 16.8%;
        left: 0;
        right: 0;
        margin: 0 auto;
    }
    .sp-only .consultation__btn {
        position: absolute;
        width: 75%;
        bottom: 5.7%;
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    /* プロフィールスライダーの矢印カスタマイズ */
    .sp-only .consultation_profile__slide .splide__arrows {
        position: absolute;
        bottom: -11%;
        transform: translateX(-50%);
        left: 50%;
        z-index: 10;
        display: flex;
        flex-direction: unset;
        gap: 25px;
    }
    .sp-only .consultation_profile__slide .splide__arrow {
        position: static;
        transform: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background-color: var(--sub-color);
        opacity: 1;
    }
    .sp-only .consultation_profile__slide .splide__arrow:hover {
        background-color: #e6b88a;
    }
    .sp-only .consultation_profile__slide .splide__arrow svg {
        fill: var(--text-color);
    }
    /* コンサルテーションスライダーの矢印カスタマイズ */
    .sp-only .consultation__slide .splide__arrows {
        position: absolute;
        bottom: -18.5%;
        transform: translateX(-50%);
        left: 50%;
        z-index: 10;
        display: flex;
        flex-direction: unset;
        gap: 25px;
    }

    .sp-only .consultation__slide .splide__arrow {
        position: static;
        transform: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background-color: var(--sub-color);
        opacity: 1;
    }
    .sp-only .consultation__slide .splide__arrow:hover {
        background-color: #e6b88a;
    }
    .sp-only .consultation__slide .splide__arrow svg {
        fill: var(--text-color);
    }
    /* カスタムページネーション（1/3形式） */
    .custom-pagination {
        position: absolute;
        top: -2%;
        right: -2%;
        color: #ff730c;
        font-size: 14px;
        font-weight: bold;
        font-family: var(--font-main);
        letter-spacing: 0.2rem;
        z-index: 10;
    }
}


/* ==========================================
   Advisor セクション
========================================== */
@media (min-width: 761px) {
	/* .pc-only .advisor__slide {
	    position: absolute;
	    width: 36%;
	    height: 80%;
	    top: 50%;
	    right: 5%;
	    transform: translateY(-50%);
	    overflow: hidden;
	}
	
	.pc-only .advisor__slide .splide {
	    height: 100%;
	}
	
	.pc-only .advisor__slide .splide__track {
	    height: 100%;
	    overflow: visible;
	    top: 50%;
	    transform: translateY(-50%);
	}
	
	.pc-only .advisor__slide .splide__list {
	    height: 100%;
	}
	
	.pc-only .advisor__slide .splide__slide {
	    height: auto !important;
	}
	
	.pc-only .advisor__slide .splide__slide img {
	    width: 100%;
	    height: auto;
	}
    .pc-only .advisor__slide .splide__slide {
        opacity: .3;
        transform: scale(.8);
        transition: 0.3s linear all;
    }
    .pc-only .advisor__slide .splide__slide.is-active {
        opacity: 1;
        transform: scale(1);
        z-index: 1;
        transition: 0.3s linear all;
    }
    .pc-only .advisor__slide .splide__slide.splide__slide--clone {
        padding-left: 10px;
    } */

    .advisor_slider_container {
        width: 635px;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }
    .advisor_slider_container img {
        max-width: unset;
    }
    .right-section {
        width: 100%;
        height: 850px;
        position: relative;
        overflow: hidden;
    }

    .slider-container {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .advisor-card {
        position: absolute;
        width: auto;
        height: 250px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        display: flex;
        gap: 20px;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        overflow: hidden;
    }

    .advisor-card.top {
        top: 30px;
        left: 50%;
        opacity: 0.5;
        transform: scale(0.9);
        z-index: 1;
    }

    .advisor-card.center {
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        opacity: 1;
        z-index: 3;
    }

    .advisor-card.bottom {
        bottom: 30px;
        left: 50%;
        opacity: 0.5;
        transform: scale(0.9);
        z-index: 1;
    }

    /* Animation: top card moves to center (left-down diagonal) */
    .advisor-card.animating-top-to-center {
        animation: topToCenter 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Animation: center card moves to bottom (right-down diagonal) */
    .advisor-card.animating-center-to-bottom {
        animation: centerToBottom 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Animation: bottom card exits to right */
    .advisor-card.animating-bottom-exit {
        animation: bottomExit 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Animation: new card enters from right to top position */
    .advisor-card.animating-enter-top {
        animation: enterTop 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes topToCenter {
        0% {
        top: 30px;
        left: 50%;
        opacity: 0.5;
        transform: scale(0.9);
        }
        100% {
        top: 50%;
        left: 0;
        opacity: 1;
        transform: translateY(-50%) scale(1);
        }
    }

    @keyframes centerToBottom {
        0% {
        top: 50%;
        left: 0;
        opacity: 1;
        transform: translateY(-50%) scale(1);
        }
        100% {
        top: auto;
        bottom: 30px;
        left: 50%;
        opacity: 0.5;
        transform: scale(0.9);
        }
    }

    @keyframes bottomExit {
        0% {
        bottom: 30px;
        left: 50%;
        opacity: 0.5;
        transform: scale(0.9);
        }
        100% {
        bottom: 30px;
        left: 150%;
        opacity: 0;
        transform: scale(0.9);
        }
    }

    .advisor-card.animating-bottom-exit {
        position: absolute;
        bottom: 30px;
        left: 50%;
        opacity: 0.5;
        transform: scale(0.9);
        animation: bottomExit 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes enterTop {
        0% {
        top: 30px;
        left: 120%;
        opacity: 0;
        transform: scale(0.9);
        }
        100% {
        top: 30px;
        left: 50%;
        opacity: 0.5;
        transform: scale(0.9);
        }
    }
}

@media (max-width: 760px) {
    .sp-only .advisor__slide {
        position: absolute;
        width: 100%;
        bottom: 3%;
        left: 50%;
        transform: translateX(-50%);
    }

    /* スライダーコンテナ */
    .advisor__slide .slider-container {
        width: 100%;
        max-width: 760px;
        overflow: hidden;
        position: relative;
        padding: 40px 0 80px;
    }

    /* Splide カスタマイズ */
    .advisor__slide .splide {
        padding: 0;
    }

    .advisor__slide .splide__track {
        overflow: visible;
    }

    .advisor__slide .splide__list {
        align-items: flex-start;
    }

    /* 各スライド - 幅を80%に固定 */
    .advisor__slide .splide__slide {
        width: 80% !important;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0.5;
        transform: translateY(50%);
    }

    /* 中央（アクティブ）のスライド */
    .advisor__slide .splide__slide.is-active {
        opacity: 1;
        transform: translateY(0);
        z-index: 3;
    }

    /* スライド画像 */
    .advisor__slide .slide-image {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        background-color: #fff;
    }
}


/* ==========================================
   Flow セクション
========================================== */
.flow__btn {
    position: absolute;
    width: 37.7%;
    bottom: 11.2%;
    left: 0;
    right: 0;
    margin: 0 auto;
}

@media (max-width: 760px) {
    .sp-only .flow__slide {
        position: absolute;
        width: 100%;
        display: flex;
        list-style: none;
        animation: infinity-scroll-left 15s infinite linear 0.5s both;
        bottom: 30%;
    }
    @keyframes infinity-scroll-left {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-100%);
        }
    }
    .sp-only .flow__slide li {
        width: 215.2vw;
        margin-right: 30px;
    }
    .sp-only .flow__slide li img {
        max-width: 215.2vw;
        width: 215.2vw;
    }
    .sp-only .flow__step {
        position: absolute;
        top: 36.3%;
        left: 0;
        width: 100%;
        overflow: hidden;
    }
    .sp-only .flow__step_scroll {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .sp-only .flow__step_scroll::-webkit-scrollbar{
       display: none;
    }
    .sp-only .flow__step_scroll img {
        display: block;
        width: auto;
        height: auto;
        min-width: 239.2vw;
        max-width: 239.2vw;
        padding: 0 2vw;
    }

    .sp-only .flow__btn {
        position: absolute;
        width: 75%;
        bottom: 6.2%;
        left: 0;
        right: 0;
        margin: 0 auto;
    }
}


/* ==========================================
   Footer（フッター）
========================================== */
.footer {
    background-color: var(--bg-color);
    padding: 60px 20px 40px;
    text-align: center;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ロゴセクション */
.footer__logo {
    margin-bottom: 40px;
}

.footer__logo-text {
    font-family: var(--font-sub);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.1em;
}

/* コンテンツセクション */
.footer__content {
    margin-bottom: 40px;
}

.footer__label {
    color: #7cb8c5;
    font-size: 14px;
    margin-bottom: 14px;
}

.footer__company-name {
    margin-bottom: 10px;
}

.footer__tagline {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 25px;
}

.footer__button {
    display: inline-block;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer__button:hover {
    opacity: 0.7;
}

/* ライセンスセクション */
.footer__license {
    margin-bottom: 40px;
}

.footer__license p {
    font-size: 14px;
    color: #999;
    line-height: 1.8;
}

/* ボトムセクション */
.footer__bottom {
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.footer__nav {
    margin-bottom: 20px;
}

.footer__nav a {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer__nav a:hover {
    opacity: 0.7;
}

.footer__copyright {
    font-size: 12px;
    color: #999;
}


/* ==========================================
   Footer PC版レイアウト
========================================== */
@media (min-width: 761px) {
    .footer {
        padding: 80px 40px 20px;
    }
    .footer__inner {
        display: flex;
        flex-direction: column;
        /* gap: 40px; */
    }
    /* 上部：ロゴ＋コンテンツの横並び */
    .footer__top {
        display: flex;
        align-items: center;
        gap: 60px;
        justify-content: center;
        padding-bottom: 30px;
    }
    /* ロゴセクション：左側に配置 */
    .footer__logo {
        flex: 0 0 auto;
        margin-bottom: 0;
        text-align: center;
    }
    .footer__logo-text {
        font-size: 32px;
    }
    /* コンテンツセクション：右側に配置、左寄せ */
    .footer__content {
        text-align: left;
        margin-bottom: 0;
    }
    .footer__tagline {
        font-size: 18px;
        font-family: var(--font-sub);
        letter-spacing: 0.25rem;
    }
    .footer__button {
        font-size: 16px;
    }
    .footer__button span {
        letter-spacing: 0.1rem;
        text-decoration: underline;
    }
    .footer__button img {
        display: unset;
        vertical-align: text-bottom;
        margin: 0 0 0.2rem 0.2rem;
        height: 16px;
    }
    /* ライセンス：中央揃え、全幅 */
    .footer__license {
        text-align: center;
        margin-bottom: 0;
        padding-bottom: 20px;
    }
    /* 最下部：左右配置 */
    .footer__bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
    }
    .footer__nav {
        margin-bottom: 0;
    }
    .footer__copyright {
        text-align: left;
    }
    .footer__nav a {
        text-align: right;
        margin-right: 50px;
    }
    .footer__nav a:last-of-type {
        margin: unset;
    }
}


/* ==========================================
   Footer SP版レイアウト
========================================== */
@media (max-width: 760px) {
    .footer {
        padding: 50px 20px 24%;
    }
    .footer__logo {
        margin-bottom: 30px;
    }
    .footer__logo-icon {
        width: 50%;
        display: inline-block;
    }

    .footer__logo-text {
        font-size: 20px;
    }
    .footer__content {
        margin-bottom: 30px;
    }
    .footer__label {
        font-size: 14px;
    }
    .footer__company-name {
        width: 65%;
        margin: 0 auto 10px;
    }
    .footer__tagline {
        margin-bottom: 20px;
    }
    .footer__button {
        font-size: 14px;
    }
    .footer__button span {
        letter-spacing: 0.2rem;
        text-decoration: underline;
    }
    .footer__button img {
        display: unset;
        vertical-align: text-bottom;
        margin: 0 0 0.1rem 0.2rem;
        height: 14px;
    }
    .footer__license {
        margin-bottom: 10px;
    }
    .footer__license p {
        font-size: 11px;
        letter-spacing: 0;
    }
    .footer__bottom {
        padding-top: 10px;
    }
    .footer__nav {
        margin-bottom: 15px;
        display: flex;
        justify-content: space-evenly;
    }
    .footer__nav a {
        font-size: 13px;
    }
    .footer__copyright {
        font-size: 11px;
    }
}