@charset "UTF-8";

/*================================
  トップページ（ideally-college.com/）
  ローディングのタグラインとロゴを残し、入口は「マイワークスタイル診断」とログインの2つだけにする
================================*/

.p-entrance {
    --entrance-mincho: "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "Noto Serif Display", "ヒラギノ明朝 Pro W3",
        "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "Noto Serif JP", serif;
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    color: #2b2b2b;
    font-family: "Noto Sans JP", sans-serif;
    -webkit-font-feature-settings: "palt";
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
}

.p-entrance__bg {
    position: absolute;
    inset: -3%;
    z-index: -2;
    background: url(../../img/top/fv-bg.jpg) center / cover no-repeat;
    animation: entrance-bg 2.8s cubic-bezier(0.22, 1, 0.36, 1) both,
        entrance-drift 26s ease-in-out 2.8s infinite alternate;
}

.p-entrance__frame {
    position: absolute;
    inset: 22px;
    z-index: -1;
    border: 1px solid rgba(169, 95, 95, 0.3);
    pointer-events: none;
    animation: entrance-fade 1.4s ease 2.1s both;
}

.p-entrance__frame::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(169, 95, 95, 0.14);
}

.p-entrance__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 54px 68px 0;
    animation: entrance-fade 1.4s ease 2.2s both;
}

.p-entrance__eyebrow {
    font-family: "vanity", "Noto Serif Display", serif;
    font-size: 13px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #75613c;
}

.p-entrance__eyebrow-jp {
    font-family: var(--entrance-mincho);
    font-size: 12px;
    letter-spacing: 0.34em;
    color: #75613c;
}

.p-entrance__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 24px 32px;
    text-align: center;
}

.p-entrance__title {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    font-weight: 400;
}

.p-entrance__tagline {
    display: block;
    width: min(360px, 72vw);
    height: auto;
    animation: entrance-rise 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* ロゴは SVG をマスクにして、金色の光が時々ゆっくり横切るようにする */
.p-entrance__mark {
    display: block;
    width: min(540px, 80vw);
    aspect-ratio: 320.3 / 100.8;
    -webkit-mask: url(../../img/top/entrance-wordmark.svg) center / contain no-repeat;
    mask: url(../../img/top/entrance-wordmark.svg) center / contain no-repeat;
    background-image: linear-gradient(100deg, #9e8e6d 0%, #9e8e6d 43%, #efe6d2 50%, #9e8e6d 57%, #9e8e6d 100%);
    background-size: 320% 100%;
    background-position: 100% 0;
    animation: entrance-write 1.7s cubic-bezier(0.65, 0, 0.35, 1) 0.75s both,
        entrance-sheen 8s ease-in-out 3.2s infinite;
}

.p-entrance__actions {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 18px;
    margin-top: 64px;
    animation: entrance-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.9s both;
}

.p-entrance__cta-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.p-entrance__note {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--entrance-mincho);
    font-size: 13px;
    letter-spacing: 0.14em;
    color: #75613c;
}

.p-entrance__note::before,
.p-entrance__note::after {
    content: "";
    width: 22px;
    height: 1px;
    background: #9e8e6d;
}

.p-entrance__cta {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 22px;
    min-height: 64px;
    padding: 0 12px 0 36px;
    box-sizing: border-box;
    border-radius: 999px;
    background-color: #a95f5f;
    color: #fff;
    text-decoration: none;
    font-family: var(--entrance-mincho);
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    box-shadow: 0 16px 36px -20px rgba(110, 48, 48, 0.75);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.p-entrance__cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: #000;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.p-entrance__cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 22px 40px -20px rgba(110, 48, 48, 0.8);
}

.p-entrance__cta:hover::after {
    opacity: 0.14;
}

.p-entrance__phrase > span {
    display: inline-block;
}

.p-entrance__cta-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #a95f5f;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-entrance__cta:hover .p-entrance__cta-icon {
    transform: translateX(4px);
}

.p-entrance__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 64px;
    padding: 0 34px;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid #9e8e6d;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #2b2b2b;
    text-decoration: none;
    font-family: var(--entrance-mincho);
    font-size: 17px;
    letter-spacing: 0.14em;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.p-entrance__login svg {
    color: #9e8e6d;
    transition: color 0.35s ease, transform 0.35s ease;
}

.p-entrance__login:hover {
    background: #9e8e6d;
    color: #fff;
}

.p-entrance__login:hover svg {
    color: #fff;
    transform: rotate(-14deg);
}

.p-entrance__cta:focus-visible,
.p-entrance__login:focus-visible,
.p-entrance__foot a:focus-visible {
    outline: 2px solid #9e8e6d;
    outline-offset: 4px;
}

.p-entrance__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    padding: 0 68px 52px;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #5e5e5e;
    animation: entrance-fade 1.4s ease 2.3s both;
}

.p-entrance__foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
}

.p-entrance__foot a {
    padding: 4px 0;
    color: #5e5e5e;
    text-decoration: none;
}

.p-entrance__foot a:hover {
    color: #2b2b2b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.p-entrance__copy {
    font-family: "Noto Serif Display", serif;
    font-size: 12px;
    letter-spacing: 0.12em;
}

@keyframes entrance-bg {
    from {
        opacity: 0;
        transform: scale(1.08);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes entrance-drift {
    from {
        transform: scale(1) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.05) translate3d(-1.2%, 1%, 0);
    }
}

@keyframes entrance-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes entrance-write {
    from {
        opacity: 0.15;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes entrance-sheen {
    0% {
        background-position: 100% 0;
    }
    38%,
    100% {
        background-position: 0% 0;
    }
}

@keyframes entrance-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media screen and (max-width: 640px) {
    .p-entrance__frame {
        inset: 12px;
    }

    .p-entrance__frame::after {
        inset: 4px;
    }

    .p-entrance__top {
        justify-content: center;
        padding: 38px 24px 0;
    }

    .p-entrance__eyebrow {
        font-size: 11px;
        letter-spacing: 0.3em;
    }

    .p-entrance__eyebrow-jp {
        display: none;
    }

    .p-entrance__hero {
        padding: 24px 16px 32px;
    }

    .p-entrance__title {
        gap: 22px;
    }

    .p-entrance__tagline {
        width: 72vw;
    }

    .p-entrance__mark {
        width: 80vw;
    }

    .p-entrance__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        width: 100%;
        max-width: 358px;
        margin-top: 52px;
    }

    .p-entrance__cta-col {
        align-items: stretch;
    }

    .p-entrance__note {
        justify-content: center;
        font-size: 12px;
    }

    .p-entrance__cta {
        justify-content: space-between;
        gap: 8px;
        min-height: 60px;
        padding: 0 8px 0 20px;
        font-size: 14px;
        letter-spacing: 0.02em;
    }

    .p-entrance__cta-icon {
        width: 36px;
        height: 36px;
    }

    .p-entrance__login {
        min-height: 56px;
        font-size: 15px;
    }

    .p-entrance__foot {
        flex-direction: column;
        justify-content: center;
        padding: 0 28px 36px;
        text-align: center;
    }

    .p-entrance__foot nav {
        justify-content: center;
        gap: 2px 16px;
    }
}

@media screen and (max-width: 359px) {
    .p-entrance__note::before,
    .p-entrance__note::after {
        display: none;
    }

    .p-entrance__cta {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .p-entrance * {
        animation: none !important;
        transition: none !important;
    }
}
