/* ===================== */
/* 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.6;
}

body {
    font-family: 'Noto Sans JP', 'Lato', sans-serif;
    background: white;
    color: var(--text-color);
    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);
}

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;
}



/* ===================== */
/* 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: 120px;
    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.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: relative;
    height: 100px;
    width: 100%;
    margin-top: 50px;
}

.scrollbar-text {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 15px;
    color: white;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-lr;
}

.scrollbar {
    position: absolute;
    bottom: 0;
    left: 0;
}

.scrollbar::after {
    content: "";
    position: absolute;
    bottom: -95px;
    left: 0;
    width: 1px;
    height: 100px;
    background: white;
}

.scrollbar::before {
    content: "";
    position: absolute;
    bottom: -95px;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: circlemove 3s ease-in-out infinite,
        cirlemovehide 3s ease-out infinite;
}

/* Button */
#page_top-btn {
    width: 90px;
    height: 90px;
    margin: 60px auto 40px;
    transition: transform 0.3s ease;
}

#page_top-btn:hover {
    transform: scale(1.1);
}

#page_top-btn a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    font-family: inherit;
    font-weight: 900;
}

#page_top-btn a::before {
    content: '\f102';
    font-family: 'Font Awesome 5 Free';
    font-size: 25px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

#page_top-btn a::after {
    content: 'PAGE TOP';
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}


#page_top-btn:hover {
    transform: scale(1.1);
}


/* ===================== */
/* 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%;
    }
}


@keyframes circlemove {
    0% {
        bottom: 0px;
    }

    100% {
        bottom: -95px;
    }
}

@keyframes cirlemovehide {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    80% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
    }
}






/* 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;
    }
}