/* =========================
   Reset / Base
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul, ol {
    list-style: none;
}

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

section {
    scroll-margin-top: 80px;
}

.section-inner {
    width: 80%;
    max-width: 1200px;
    margin: 24px auto;
}

/* =========================
   root
========================= */

:root {
    --color-main: #1f4e79;
    --color-sub: #3b82c4;
    --color-light: #eaf1f7;
    --color-border: #95bcdf;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-pill: 999px;
    --shadow-card: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
    --space-8-16: clamp(0.5rem, 0.059rem + 1.96vw, 1rem);
    --space-16-32: clamp(1rem, 0.118rem + 3.92vw, 2rem);
    --space-16-24: clamp(1rem, 0.559rem + 1.96vw, 1.5rem);
    --space-32-64: clamp(2rem, 0.235rem + 7.84vw, 4rem);
}

/* =========================
   Header
========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 56px;
    background-color: transparent;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(10, 25, 45, 0.1);
    backdrop-filter: blur(10px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}

.site-header.is-header-hide::before {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

.header-inner {
    position: relative;
    z-index: 1;
    width: 96%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.is-preload .site-header::before,
body.is-preload .header-logo, body.is-preload .cta-header,
body.is-preload .header-nav, body.is-preload .menu-toggle span {
    transition: none !important;
}

.header-logo {
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease;
}

.header-logo img {
    display: block;
    width: 90px;
    height: auto;
}

/* =========================
   Header CTA
========================= */

.cta-header {
    position: fixed;
    top: 11px;
    right: 80px;
    z-index: 1100;
    min-width: 78px;
    min-height: 32px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: linear-gradient(180deg, #2f7ebd 0%, #165a92 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease,
        background-color 0.35s ease,
        box-shadow 0.35s ease;
}

.cta-header span {
    line-height: 1;
    transform: translateY(-1px);
}

.cta-header.is-show, .site-header.is-after-about + .cta-header {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.site-header.is-after-about .header-logo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* =========================
   page mv
========================= */

.page-mv {
    min-height: 10svh;
    background-image: url("../images/page_mv_image.jpg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 100%;
    overflow: hidden;
}

.page-mv-inner {
    margin-top: 72px;
}

.page-mv-inner h1 {
    font-family: "Zen Old Mincho", serif;
    font-weight: 500;
    font-style: normal;
    color: #fff;
    font-size: clamp(2.25rem, 0.265rem + 8.82vw, 4.5rem);
    text-shadow: 0 4px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* =========================
   パンくずリスト
========================= */

.breadcrumb {
    width: calc(100% - 2rem);
    max-width: 1200px;
    margin: 16px auto;
    font-size: clamp(0.625rem, 0.46rem + 0.74vw, 0.813rem);
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: #555;
}

.breadcrumb li + li::before {
    content: ">";
    flex-shrink: 0;
    margin-right: 6px;
    color: #999;
}

.breadcrumb a {
    color: var(--color-main);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: #333;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* =========================
   CTA button
========================= */

.cta-top {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 380px;
    min-height: 58px;
    margin: 48px auto 0;
    padding: 0 14px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow: visible;
    border-radius: 100px;
    border: none;
    background: linear-gradient(155deg, #ffffff99, #ffffff33 30% 70%, #ffffff99);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-top::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(180deg, #00000040, #ffffff 65%, #ffffff99);
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.cta-top > * {
    position: relative;
    z-index: 2;
}

.cta-top span {
    margin-right: 20px;
    font-size: 19px;
    line-height: 1;
    transform: translateY(-1px);
}

.cta-top i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-main);
    font-size: 28px;
    line-height: 1;
    transform: translateY(1px);
}

/* =========================
   Menu toggle
========================= */

.menu-toggle {
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        opacity 0.3s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.site-header.is-after-about .menu-toggle span {
    background-color: var(--color-main);
}

.site-header.is-menu-open .menu-toggle span {
    background-color: #fff;
}

/* =========================
   Navigation - SP
========================= */

.header-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    width: 100%;
    height: 100svh;
    padding: 100px 48px 40px;
    background-color: rgba(44, 130, 194, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    pointer-events: none;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        visibility 0s 0.35s;
}

.header-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        visibility 0s;
}

.menu li {
    margin-top: 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 1);
}

.menu a {
    display: block;
    width: 100%;
    padding: 0 10px;
    color: #fff;
    font-size: 30px;
    font-weight: 600;
}

.header-nav .cta-top {
    width: 100%;
    max-width: 440px;
    min-height: 60px;
    padding: var(--space-16-24) 24px;
    margin-top: 20px;
    display: inline-flex;
    justify-content: center;
    gap: var(--space-16-24);
    border-radius: 999px;
    background: linear-gradient(
        155deg,
        #ffffff55,
        #ffffff15 30% 70%,
        #ffffff55
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: clamp(1.125rem, 0.629rem + 2.21vw, 1.688rem);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-nav .cta-top::before {
    content: "";
}

.header-nav .cta-top span {
    margin-right: 0;
    font-size: clamp(0.938rem, 0.331rem + 2.7vw, 1.625rem);
}

.header-nav .cta-top i {
    color: #fff;
    font-size: inherit;
}

/* =========================
   Flow-marker
========================= */

.flow-marker {
    position: relative;
    display: inline-block;
    isolation: isolate;
}

.flow-marker::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: 8%;
    width: 100%;
    height: 25%;
    background-color: #ffcc00;
    transform: scaleX(0);
    transform-origin: left center;
}

.js-inview.is-animated .flow-marker::after {
    animation: marker-slide 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes marker-slide {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

/* =========================
   Fade up
========================= */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
}

.js-inview.is-animated .fade-up, .fade-up.js-inview.is-animated {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   line-animation
========================= */

.section-heading h2 {
    display: inline-block;
    padding: 0 12px 4px;
    position: relative;
}

.section-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-main);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-inview.is-animated .section-heading h2::after, .section-heading.js-inview.is-animated h2::after {
    transform: scaleX(1);
}

/* ===========================
   section-heading p animation
=========================== */

.section-heading p {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease-out,
        transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-heading.js-inview.is-animated p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* =========================
   blue-text animation
========================= */
.anim-hyoko {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition:
        opacity 0.5s ease-out,
        transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.anim-hyoko.js-inview.is-animated {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* =========================
   Footer
========================= */

footer {
    padding: 35px 40px 15px;
    background-color: var(--color-main);
    color: #fff;
    font-size: 9px;
    letter-spacing: 0.05em;
}

.footer-wrap {
    margin-bottom: 20px;
    padding-right: clamp(0rem, -2.647rem + 11.76vw, 3rem);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-text {
    padding-top: 4px;
}

.footer-left > :nth-child(2) {
    transform: translateX(-0.05em);
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

footer img {
    width: 100px;
    margin-bottom: 5px;
}

.footer-text i {
    padding-right: 0.7em;
}

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

/* =========================
   Page top
========================= */

.page-top {
    position: fixed;
    right: -10px;
    bottom: 30px;
    z-index: 9999;
    width: 50px;
    height: 64px;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    background-color: var(--color-main);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease,
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease;
}

.page-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.page-top i {
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.page-top span {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
}

.page-top.is-footer {
    background-color: #fff;
    color: var(--color-main);
    border: 1px solid #fff;
}

.page-top.is-footer span, .page-top.is-footer i {
    color: var(--color-main);
    font-weight: 900;
    letter-spacing: 0.01em;
}

.page-top.is-footer i {
    font-size: 20px;
}

/* =========================
   PC - 769px以上
========================= */

@media screen and (min-width: 769px) {
    /* =========================
   root
========================= */

    :root {
        --space-8-16: clamp(0.5rem, 0.166rem + 0.7vw, 1rem);
        --space-16-32: clamp(1rem, 0.332rem + 1.39vw, 2rem);
        --space-16-24: clamp(1rem, 0.667rem + 0.69vw, 1.5rem);
        --space-32-64: clamp(2rem, 0.667rem + 2.78vw, 4rem);
        --font-30-40: clamp(1.875rem, 1.458rem + 0.87vw, 2.5rem);
    }

    .site-header {
        height: 64px;
    }

    .site-header::before {
        background: rgba(10, 25, 45, 0.72);
    }

    .header-inner {
        position: relative;
        margin: 0 auto;
        width: 96%;
        max-width: 1200px;
        gap: clamp(0.5rem, 1.5vw, 2rem);
    }

    .header-nav {
        order: 1;
        position: absolute;
        top: 0;
        left: 50%;
        z-index: 1;
        flex: none;
        width: min(60vw, 720px);
        height: 64px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%);
        pointer-events: auto;
        transition:
            opacity 0.35s ease,
            visibility 0.35s ease,
            transform 0.35s ease;
    }

    .header-logo img {
        width: clamp(5rem, 8vw, 7.5rem);
    }

    /* =========================
    page mv
========================= */

    .page-mv {
        min-height: clamp(10rem, 28svh, 16rem);
        background-image: url(../images/page_mv_image.jpg);
        background-size: cover;
        padding-top: 24px;
    }

    .page-mv-inner {
        margin-top: 72px;
    }

    .page-mv-inner h1 {
        font-size: clamp(4.813rem, 4.354rem + 0.95vw, 5.5rem);
    }

    .menu {
        width: 92%;
        max-width: none;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: clamp(0.75rem, 2.4vw, 4rem);
    }

    .menu li {
        height: 64px;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        border-bottom: none;
    }

    .menu a {
        height: 64px;
        padding: 0;
        display: flex;
        align-items: center;
        color: #fff;
        font-size: clamp(0.75rem, 1.2vw, 1rem);
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        letter-spacing: 0.04em;
    }

    .menu a:hover {
        opacity: 0.75;
    }

    .cta-header {
        min-height: 36px;
        padding: var(--space-8-16) clamp(1rem, 0.666rem + 0.7vw, 1.5rem);
        font-size: clamp(0.625rem, 0.207rem + 0.87vw, 1.25rem);
        top: clamp(0.5rem, calc(0.81rem - 0.384vw), 0.625rem);
        right: clamp(1rem, -1.672rem + 5.56vw, 5rem);
    }

    .cta-header.is-show, .site-header.is-after-about + .cta-header {
        transform: translateY(0);
    }

    .cta-header:hover {
        color: #fff;
        transform: translateY(-5px) scale(1.04);
        filter: brightness(1.18) saturate(1.1);
        box-shadow: 0 10px 22px rgba(18, 72, 115, 0.42);
    }

    .cta-header:active {
        transform: translateY(-1px) scale(0.98);
        box-shadow: 0 4px 10px rgba(18, 72, 115, 0.3);
    }

    .menu-toggle {
        display: none;
    }

    .header-nav .cta-top {
        display: none;
    }

    .site-header.is-header-hide .header-nav {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50%, -12px);
        pointer-events: none;
    }

    .site-header.is-header-hide .header-logo, .site-header.is-header-hide .cta-header {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .footer {
        max-width: 1200px;
        min-height: 160px;
        margin: 24px auto 8px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        align-items: start;
        column-gap: 40px;
    }

    .footer-logo {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        width: 160px;
    }

    .footer-logo img {
        display: block;
        width: 100%;
    }

    .footer-wrap {
        display: contents;
    }

    .footer-left {
        grid-column: 2;
        grid-row: 1;
    }

    .footer-right {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .footer-text {
        font-size: clamp(0.75rem, 0.666rem + 0.17vw, 0.875rem);
    }

    .copyright {
        grid-column: 3;
        grid-row: 2;
        align-self: end;
        font-size: 12px;
    }

    .page-top {
        width: clamp(3.5rem, 3.166rem + 0.7vw, 4rem);
        height: clamp(5rem, 4.666rem + 0.7vw, 5.5rem);
    }

    .page-top i {
        font-size: 30px;
    }

    .page-top span {
        font-size: clamp(1rem, 0.958rem + 0.09vw, 1.063rem);
    }

    .page-top i, .page-top span {
        transform: none;
    }

    .page-top.is-footer i {
        font-size: 28px;
    }

    .page-top.is-footer p {
        font-size: 24px;
    }
}
