/* --- 色の定義（CSS変数） --- */
:root {
    --neutral-100: #FEFEFE;
    --neutral-200: #FAFAFA;
    --neutral-700: #909090;
    --neutral-900: #474747;
    --neutral-1000: #000000;
}

/* --- 基本設定 --- */

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: var(--neutral-900);
    background-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-inner {
    padding: 120px 0px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    font-size: 48px;
}

.page-title-sub {
    font-size: 28px;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}


/* --- ヘッダー --- */
.header {
    background-color: var(--neutral-100);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    height: 40px;
}


.header-logo a {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.header-logo-jp {
    font-size: 14px;
}

.header-logo-en {
    font-size: 12px;
}

.header-nav ul {
    margin: 0;
    font-size: 14px;
    display: flex;
    gap: 32px;
}

/* --- フッター --- */
.footer {
    background-color: var(--neutral-100);
    width: 100%;

}

.footer-inner {
    padding: 40px 0px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-left {
    width: 250px;
}

.footer-logo-jp {
    font-size: 32px;
    letter-spacing: 0.1em;
}

.footer-logo-en {
    font-size: 16px;
    display: block;
    letter-spacing: 0.03em;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--neutral-900);
}

.footer-right {
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    gap: 24px;
}

.footer-title {
    display: inline-block;
    width: 140px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 16px;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid var(--neutral-900);
}

.footer-nav ul {
    font-size: 14px;
    display: flex;
    gap: 24px;
    letter-spacing: 0.1em;
}

.footer-address {
    line-height: 1.3;
    font-size: 16px;
}

.footer-copyright {
    font-size: 10px;
    padding-top: 10px;
}

.br-sp {
    display: none;
}

/* --- VIEW MORE リンク --- */
.viewmore {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 24px;
    align-self: flex-end;
    padding: 10px 0px;
    transition: color 0.2s ease;
}

.viewmore:hover {
    color: var(--neutral-1000);
}

.recruit .viewmore {
    align-self: center;
}

.recruit .viewmore:hover {
    color: var(--neutral-200);
}

.section-title-container .viewmore {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

/* ---  VIEW MORE リンクのアイコン部分 --- */
.viewmore-icon {
    display: flex;
    align-items: center;
}

/* アイコンの線 */
.viewmore-icon-line {
    display: block;
    width: 38px;
    height: 1px;
    background-color: var(--neutral-900);
    animation: wipe-line 1.5s ease-in-out infinite;
}

/* アイコンの円 */
.viewmore-icon-circle {
    display: block;
    width: 24px;
    height: 24px;
    border: 1px solid var(--neutral-900);
    border-radius: 50%;
    margin-left: -12px;
}

.recruit .viewmore-icon-line {
    background-color: var(--neutral-100);
}

.recruit .viewmore-icon-circle {
    border: 1px solid var(--neutral-100);
}


/* 線のアニメーション定義 */
@keyframes wipe-line {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
    }

    51% {
        transform-origin: right;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}


/* --- SP版メニューボタン --- */

.header-menu-button {
    display: none;
    /* PCでは非表示 */

    background: none;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 100;
}

.header-menu-button span {
    display: block;
    width: 21px;
    height: 1px;
    background-color: var(--neutral-900);
}

/* --- SP版ナビゲーション --- */
.sp-nav {
    position: fixed;
    /* 画面に固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--neutral-100);

    /* 最初は非表示にしておく */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;

    z-index: 99;
}

.sp-nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 24px;
}

.sp-nav a {
    font-size: 24px;
}

/* メニューが開いた時のスタイル */
.is-menu-open .sp-nav {
    opacity: 1;
    visibility: visible;
}

/* メニューが開いた時に背景をスクロールさせない */
.is-menu-open {
    overflow: hidden;
}


/* --- メニューボタンの「×」印への変形 --- */
.header-menu-button.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-menu-button.is-active span:nth-child(2) {
    opacity: 0;
}

.header-menu-button.is-active span:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
}

/* アニメーションを滑らかに */
.header-menu-button span {
    transition: transform 0.3s, opacity 0.3s;
}

/* --- レスポンシブ対応  --- */
@media (max-width: 1069px) {

    .page-inner,
    .header-inner {
        padding-right: 5vw;
        padding-left: 5vw;
    }

    /* PC用のナビゲーションを非表示に */
    .header-nav {
        display: none;
    }

    /* SP用のメニューボタンを表示 */
    .header-menu-button {
        display: flex;
    }

    .footer-content {
        padding-top: 40px;
        flex-direction: column;
    }

    .footer-left {
        margin: auto;
    }

    .footer-right {
        display: flex;
        flex-direction: column;
        align-items: center;

        padding-top: 60px;
        gap: 60px;
    }

    .footer-sitemap,
    .footer-access {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-title {
        text-align: center;
    }

    .footer-nav ul {
        font-size: 18px;
    }

    .footer-copyright {
        padding-top: 80px;
        text-align: center;
    }

}

@media (max-width: 700px) {
    .footer-nav ul {
        flex-direction: column;
        font-size: 24px;
    }

    .footer-address {
        line-height: 2;
    }

    .br-sp {
        display: block;
    }
}

@media (max-width: 390px) {
    .header-logo-en {
        display: none;
    }

    .footer-nav ul {
        font-size: 20px;
    }

    .footer-address {
        font-size: 14px;
    }
}


/* --- 動くグラデーション背景 --- */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--neutral-200);
    /* ← ベースの背景色はこちらに指定 */
    z-index: -1;
    /* ← z-indexは-1のままでOK */
}

.content-wrapper {
    position: relative;
    z-index: 1;
}


/* 各円の共通スタイル */
.gradient-circle {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    overflow: hidden;
}

/* グラデーション本体（円の中を回転する擬似要素） */
.gradient-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    animation: rotate-gradient 20s linear infinite;
    /* 回転速度を調整 */
}


/* --- 円ごとの詳細設定 --- */

.circle1 {
    width: 500px;
    height: 500px;
    offset-path: path('M 400,-200 C 0,-200 0,1500 400,1500 C 800,1500 800,-200 400,-200');
    animation: move-along-path 16s linear infinite;
}

.circle1::before {
    background:
        radial-gradient(63% 82% at 55% -15%, #5ADDE6 0%, rgba(90, 221, 230, 0) 100%),
        linear-gradient(26deg, rgba(249, 124, 89, 0.8) 20%, rgba(249, 124, 89, 0) 50%),
        linear-gradient(56deg, #B95BE6 33%, rgba(185, 91, 230, 0) 72%);
    background-blend-mode: normal, normal, darken;
}

.circle2 {
    width: 300px;
    height: 300px;
    offset-path: path('M 880,400 C 1280,400 1280,1500 880,1500 C 480,1500 480,400 880,400');
    animation: move-along-path 12s linear infinite;
}

.circle2::before {
    background:
        radial-gradient(circle at 20% 100%, #F97C59 0%, rgba(249, 124, 89, 0) 80%),
        linear-gradient(301deg, rgba(252, 178, 91, 0.9) 20%, rgba(252, 178, 91, 0) 60%),
        linear-gradient(141deg, rgba(78, 173, 235, 0.8) 19%, rgba(78, 173, 235, 0) 98%);
    background-blend-mode: normal, darken, normal;
}

.circle3 {
    width: 350px;
    height: 350px;
    offset-path: path('M -200,400 C -200,0 1500,0 1500,400 C 1500,800 -200,800 -200,400');
    animation: move-along-path 20s linear infinite;
}

.circle3::before {
    background:
        radial-gradient(circle at 80% 30%, #4EADEB 0%, rgba(78, 173, 235, 0) 70%),
        linear-gradient(180deg, rgba(185, 91, 230, 0.7) 40%, rgba(185, 91, 230, 0) 80%);
    background-blend-mode: normal, normal;
}

/* --- アニメーションの定義 --- */

/* 軌道上を動くアニメーション (共通) */
@keyframes move-along-path {
    from {
        offset-distance: 0%;
    }

    to {
        offset-distance: 100%;
    }
}

/* グラデーションを回転させるアニメーション (共通) */
@keyframes rotate-gradient {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 要素をふんわり表示させるアニメーション */
/* 初期状態：透明で下にずらす */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease, transform 2s ease;
}

/* 表示状態 */
.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}