/* ===================== */
/* Variables: Colors & Typography */
/* ===================== */
:root {
    --main-color: #80deea;
    --sub-color: #4aa9d9;
    --text-color: #5b7089;
    --accent-color: #4A6FA5;
    --gradient-text: linear-gradient(270deg,
            #1d6fa3,
            /* 濃い青 */
            #2196f3,
            /* 明るいブルー（Google Blue） */
            #4dd0e1,
            /* やや緑がかった水色 */
            #80deea,
            /* メインカラー */
            #b2ebf2,
            /* 薄い水色 */
            #4fc3f7,
            /* フラットなスカイブルー */
            #1d6fa3
            /* ループ感を出すために戻す */
        );

    --gradient: linear-gradient(45deg, #1d6fa3, #2196f3, #4dd0e1, #80deea);
    --gradient-bg: linear-gradient(225deg, #1d6fa3 0%, #2196f3 20%, #4dd0e1 60%, #80deea 100%);
    --h1: clamp(1.9rem, 6vw, 3.8rem);
    --h2: clamp(1.7rem, 5vw, 2.8rem);
    --h3: clamp(1.3rem, 2vw, 2.5rem);
    --h4: clamp(1rem, 1.8vw, 2rem);
    --p: clamp(0.8rem, 1.5vw, 1rem);
}


/* Basic Styles */
html {
    scroll-behavior: smooth;
    line-height: 1.65;
}

body {
    font-family: 'Noto Sans JP', 'Lato', sans-serif;
    background: white;
    color: var(--text-color);
    overflow-x: hidden;
    overflow-wrap: break-word;
    transition: background 0.5s ease;
    min-height: 100vh;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
blockquote,
dl,
dd {
    margin: 0;
    padding: 0;
}

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

h1 {
    font-size: var(--h1);
    letter-spacing: clamp(0.05rem, 0.4vw, 0.15rem);
}

h2 {
    font-size: var(--h2);
    letter-spacing: clamp(0.04rem, 0.3vw, 0.12rem);
}

h3 {
    font-size: var(--h3);
    letter-spacing: clamp(0.03rem, 0.2vw, 0.08rem);
}

h4 {
    font-size: var(--h4);
    letter-spacing: clamp(0.02rem, 0.15vw, 0.06rem);
}

h1,
h2,
h3 {
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

p,
li {
    font-size: var(--p);
    letter-spacing: clamp(0.01rem, 0.1vw, 0.04rem);
    line-height: 1.75;
}

ul,
ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    font-size: var(--p);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

/* symbol */
#floating-symbol {
    position: fixed;
    bottom: -35%;
    left: -15%;
    width: 90%;
    height: 90%;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
    transform: rotate(-15deg);
}


#floating-symbol img {
    width: 100%;
    height: auto;
    filter: none;
}


/* Layout Wrapper */
.inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

.only-sp {
    display: inline;
}

/* ===================== */
/* Gradient text&underline */
/* ===================== */
.section-title {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.gradient-underline {
    position: relative;
    display: inline-block;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 100%;
    height: 1px;
    background: var(--gradient);
}

.gradient-bg {
    background: var(--gradient);
    color: white;
}

/* Gradient outline utility */
/* ===================== */
/* Header & Navigation */
/* ===================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

#logo {
    width: 156px;
    height: auto;
    fill: white;
    transition: color 0.3s ease;
}


/* ===================== */
/* Hamburger menu */
/* ===================== */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 5px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: white;
    border-radius: 9999px;
    display: block;
    transition: all 0.5s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--text-color);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--text-color);
}

.nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background-color: rgba(226, 251, 255, 0.95);
    padding: 5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    z-index: 999;
    transition: top 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.nav-menu.active {
    top: 0;
    opacity: 1;
    pointer-events: auto;
}

.nav-menu ul {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-menu ul a {
    color: var(--text-color);
}

.nav-menu.active li {
    text-align: center;
    width: 100%;
}

.nav-menu.active li a {
    font-size: 1.3rem;
}

.nav-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--text-color);
    text-align: center;
}

/* ===================== */
/* Menu underline effect */
/* ===================== */
.nav-menu li a.active {
    font-weight: 900;
    position: relative;
}

.nav-menu li a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: white;
    transition: background 0.3s ease;
}

#header.white-bg .nav-menu li a.active::after {
    background: var(--main-color);
}



/* ===================== */
/* Header White background */
/* ===================== */
#header.white-bg .nav-menu ul a {
    color: var(--text-color);
}

#header.white-bg #logo {
    fill: var(--main-color);
}

#header.white-bg .hamburger span {
    background-color: var(--main-color);
}

/* ===================== */
/* Footer */
/* ===================== */
#footer {
    background-color: var(--accent-color);
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: flex;
    flex-direction: column;
}

.company-name {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.company-name h4 {
    font-weight: 400;
}

.address {
    line-height: 0.9rem;
}

.br-pc::before {
    content: "\A";
    white-space: pre;
}

.company-name hr {
    width: 100%;
    max-width: 100%;
    margin: 0.8rem auto 0.5rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-bottom hr {
    width: 100%;
    margin: 0.8rem auto 0.5rem;
    border: 0;
    border-top: 1px solid white;
}

.copyright {
    font-size: 0.8rem;
    text-align: center;
}

/* ===================== */
/* Scroll Indicator      */
/* ===================== */
.indicator {
    position: absolute;
    left: max(8px, env(safe-area-inset-left));
    bottom: max(30px, calc(env(safe-area-inset-bottom) + 20px));
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 24px;
    color: white;
    z-index: 4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.indicator:hover {
    transform: translateY(1px);
    opacity: 0.9;
}

.indicator:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.92);
    outline-offset: 6px;
}

.scrollbar-text {
    display: inline-block;
    opacity: 0.8;
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    text-shadow: 0 0 10px rgba(77, 208, 225, 0.18);
}

.scrollbar {
    position: relative;
    display: block;
    width: 10px;
    height: 88px;
    overflow: visible;
}

.scrollbar::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
            rgba(255, 255, 255, 1) 0%,
            #80deea 38%,
            #4dd0e1 64%,
            #2196f3 82%,
            #1d6fa3 100%);
    transform: translateX(-50%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.14),
        0 0 14px rgba(77, 208, 225, 0.34);
    animation: scrollDotFlow 2.4s ease-in-out infinite;
}

/* Button */
#page_top-btn {
    width: 104px;
    height: 104px;
    margin: 56px auto 36px;
}

.page-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    gap: 12px;
    color: white;
    border-radius: 24px;
    border: none;
    background: transparent;
    overflow: visible;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.page-top:hover {
    transform: translateY(-2px);
    opacity: 0.96;
}

.page-top:focus-visible {
    outline: 2px solid rgba(178, 235, 242, 0.55);
    outline-offset: 6px;
}

.page-top__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)) padding-box,
        var(--gradient) border-box;
    box-shadow: 0 0 14px rgba(77, 208, 225, 0.16);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.page-top__svg {
    width: 22px;
    height: 22px;
    overflow: visible;
}

.page-top__svg path {
    fill: none;
    stroke: white;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.page-top:hover .page-top__icon {
    background:
        linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)) padding-box,
        var(--gradient) border-box;
    box-shadow: 0 0 18px rgba(77, 208, 225, 0.2);
}

.page-top:hover .page-top__svg path {
    stroke: url(#page-top-icon-gradient);
}

.page-top__text {
    font-size: 0.62rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    background: linear-gradient(100deg,
            color-mix(in srgb, var(--main-color) 42%, white) 0%,
            color-mix(in srgb, var(--main-color) 52%, white) 22%,
            color-mix(in srgb, var(--sub-color) 58%, white) 46%,
            color-mix(in srgb, var(--sub-color) 34%, white) 72%,
            color-mix(in srgb, var(--accent-color) 38%, white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(77, 208, 225, 0.12);
}


/* ===================== */
/* Shared Slider Toggle  */
/* ===================== */

.slide-toggle,
.merits-map-toggle {
    border: 0;
    background: transparent;
    color: var(--sub-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    outline: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.slide-toggle .fa-solid,
.merits-map-toggle .fa-solid {
    display: block;
    font-size: 0.94rem;
}

.slide-toggle:hover,
.merits-map-toggle:hover {
    opacity: 0.78;
}

.slide-indicators .dot.active {
    background: var(--sub-color);
}


/* ===================== */
/* Common Animations */
/* ===================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

@keyframes typeChar {
    to {
        opacity: 1;
    }
}

@keyframes blink-cursor {
    to {
        visibility: hidden;
    }
}

@keyframes blink {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(8px);
    }

    80% {
        opacity: 0;
        transform: translateY(16px);
    }

    100% {
        opacity: 0;
        transform: translateY(16px);
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media screen and (max-width: 767px) {
    .indicator {
        left: 6px;
        bottom: 20px;
        gap: 6px;
        width: 22px;
    }

    .scrollbar-text {
        font-size: 0.58rem;
        letter-spacing: 0.16em;
    }

    .scrollbar {
        height: 72px;
    }

    .scrollbar::before {
        width: 5px;
        height: 5px;
    }

    #page_top-btn {
        width: 92px;
        height: 92px;
        margin: 48px auto 32px;
    }

    .page-top__icon {
        width: 42px;
        height: 42px;
    }

    .page-top__svg {
        width: 20px;
        height: 20px;
    }

    .page-top__text {
        font-size: 0.56rem;
        letter-spacing: 0.15em;
    }
}

@keyframes scrollDotFlow {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.82);
    }

    18% {
        opacity: 1;
    }

    74% {
        opacity: 0.96;
        transform: translateX(-50%) translateY(74px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(88px) scale(0.82);
    }
}






/* Responsive (Tablet and Up) */
@media screen and (min-width: 600px) {
    .inner {
        padding: 0 40px;
    }

    .bg-symbol {
        bottom: -15%;
        left: 50%;
        width: 800px;
    }

    /* header */
    .header-logo {
        width: 120px;
    }

}


@media screen and (min-width: 768px) {
    #header {
        height: 90px;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 30px;
        position: static;
        top: auto;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: transparent;
        height: auto;
        padding: 0;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: row;
        gap: 30px;
        margin: 0;
        padding: 0;
    }

    .nav-menu li {
        list-style: none;
    }

    .nav-menu li a {
        font-size: 1rem;
        color: white;
        position: relative;
    }


    .hamburger {
        display: none;
    }

    .nav-footer {
        display: none;
    }

    #header.white-bg .nav-menu li a {
        color: var(--main-color);
    }
}


@media (min-width: 1024px) {

    /* symbol */
    #floating-symbol {
        bottom: -15%;
        left: -15%;
        width: 70%;
        height: 70%;
    }

    /* Footer */
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        padding-bottom: 60px;
    }

    .br-pc::before {
        content: ", ";
        white-space: normal;
    }

    .company-name hr {
        display: none;
    }

    .footer-nav ul {
        flex-direction: row;
        gap: 0.6rem;
    }

    .footer-nav ul {
        display: flex;
        flex-direction: row;
        gap: 0;
        flex-wrap: nowrap;
        align-items: center;
    }

    .footer-nav li+li::before {
        content: "|";
        margin: 0 0.6rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .copyright {
        text-align: right;
    }
}