* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[data-scroll] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Ambient Background Bubbles ===== */
.ambient-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.ambient-bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    background: radial-gradient(circle at 35% 28%,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0.15) 25%,
        rgba(126, 200, 227, 0.16) 55%,
        rgba(215, 195, 245, 0.15) 75%,
        rgba(181, 235, 220, 0.2) 100%
    );
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    box-shadow: 
        inset 1.5px 1.5px 5px rgba(255, 255, 255, 0.85),
        inset -2px -2px 6px rgba(126, 200, 227, 0.25),
        0 8px 30px rgba(126, 200, 227, 0.22);
    animation: ambient-float var(--duration, 16s) ease-in-out infinite;
    bottom: -110px;
}

.ambient-bubble::after {
    content: '';
    position: absolute;
    top: 18%;
    left: 20%;
    width: 26%;
    height: 18%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(-35deg);
}

@keyframes ambient-float {
    0% {
        transform: translateY(0) translateX(0) scale(0.9);
        opacity: 0;
    }
    12% {
        opacity: 0.85;
    }
    50% {
        transform: translateY(-55vh) translateX(var(--drift, 30px)) scale(1.02, 0.98);
        opacity: 0.85;
    }
    88% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-115vh) translateX(calc(var(--drift, 30px) * -0.5)) scale(0.95);
        opacity: 0;
    }
}

/* ===== Click: Water Ripple ===== */
.water-ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    border: 2px solid rgba(50, 160, 220, 0.85);
    box-shadow: 0 0 0 4px rgba(126, 200, 227, 0.35), inset 0 0 20px rgba(78, 178, 224, 0.3);
    background: radial-gradient(circle, rgba(180, 230, 250, 0.35) 0%, rgba(126, 200, 227, 0.1) 60%, transparent 80%);
    transform: translate(-50%, -50%) scale(0.05);
    animation: ripple-spread 0.85s cubic-bezier(0.12, 0.7, 0.25, 1) forwards;
}

@keyframes ripple-spread {
    0% {
        transform: translate(-50%, -50%) scale(0.05);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* ===== Click: Floating Soap Bubble ===== */
.soap-bubble {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    background: radial-gradient(circle at 35% 28%,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(168, 225, 245, 0.28) 55%,
        rgba(225, 205, 245, 0.28) 75%,
        rgba(181, 235, 220, 0.32) 100%
    );
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        inset 2px 2px 7px rgba(255, 255, 255, 0.95),
        inset -2px -2px 7px rgba(126, 200, 227, 0.35),
        0 8px 24px rgba(126, 200, 227, 0.35);
    animation: soap-float 2.3s cubic-bezier(0.2, 0.85, 0.4, 1) forwards;
}

.soap-bubble::after {
    content: '';
    position: absolute;
    top: 16%;
    left: 20%;
    width: 28%;
    height: 20%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    transform: rotate(-35deg);
}

@keyframes soap-float {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    14% {
        transform: translate(-50%, calc(-50% - 15px)) scale(1);
        opacity: 0.95;
    }
    75% {
        opacity: 0.9;
    }
    90% {
        transform: translate(calc(-50% + var(--drift-x, 20px)), calc(-50% - var(--rise-y, 115px))) scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: translate(calc(-50% + var(--drift-x, 20px)), calc(-50% - var(--rise-y, 120px))) scale(1.3);
        opacity: 0;
    }
}

.hero-tagline .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #4a6e80;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    [data-scroll] { opacity: 1; transform: none; transition: none; }
    .hero-tagline .cursor { animation: none; }
    .ambient-container { display: none; }
}


body {
    font-family: "Inter", "Noto Sans JP", sans-serif;
    background-color: #EAF5FB;
    color: #2C2C2C;
    line-height: 1.7;
}

.header {
    display: flex;
    align-items: center;
    background-color: #000000;
    color: #fcfcfc;
    position: relative;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    flex: 0 0 auto;
}

.logo svg {
    width: 40px;
    height: 40px;
    display: block;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 4px;
    padding-right: 8px;
}

/* Language toggle */
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-family: inherit;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    height: 28px;
}

.lang-btn:hover {
    border-color: #7EC8E3;
    background: rgba(126, 200, 227, 0.18);
}

/* Hamburger */
.menu {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 0;
}

.menu-btn span {
    display: block;
    width: 22px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: transform 0.28s cubic-bezier(.2,.9,.3,1), opacity 0.15s linear;
    transform-origin: center;
}

.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #ffffff;
    color: #2C2C2C;
    min-width: 140px;
    padding: 8px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border-radius: 8px;
    display: none;
    z-index: 30;
}

.menu-panel.open {
    display: block;
}

.menu-panel a {
    display: block;
    padding: 9px 0;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.menu-panel a:last-child {
    border-bottom: none;
}

.menu-panel a:hover {
    color: #7EC8E3;
}

.hero {
    background: linear-gradient(150deg, #C8E8F7 0%, #DFF3F0 50%, #EAF5FB 100%);
    padding: 80px 24px 72px;
    text-align: center;
}

.hero-inner {
    max-width: 640px;
    margin: 0 auto;
}

.hero-name {
    font-size: clamp(88px, 20vw, 148px);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #2C2C2C;
    line-height: 1;
}

.hero-ruby {
    font-size: 18px;
    color: #5a8fa3;
    margin-top: 6px;
    letter-spacing: 0.25em;
}

.hero-tagline {
    margin-top: 28px;
    font-size: 15px;
    color: #4a6e80;
    letter-spacing: 0.04em;
}

.section-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 36px;
    padding-bottom: 10px;
    border-bottom: 3px solid #7EC8E3;
    display: inline-block;
}

.about {
    background: #ffffff;
}

.about-body {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #7EC8E3;
    box-shadow: 0 4px 16px rgba(126, 200, 227, 0.3);
}

.about-text {
    font-size: 16px;
    line-height: 1.95;
    color: #2C2C2C;
}

.links {
    background: #EAF5FB;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.links-grid .link-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    justify-self: center;
}

.link-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 24px 30px;
    text-align: center;
    text-decoration: none;
    color: #2C2C2C;
    border: 2px solid transparent;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.link-card:hover {
    border-color: #7EC8E3;
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(126, 200, 227, 0.28);
}

.link-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7EC8E3;
    margin-bottom: 4px;
}

.link-icon svg {
    width: 38px;
    height: 38px;
}

.link-name {
    font-size: 20px;
    font-weight: 700;
    color: #2C2C2C;
}

.link-sub {
    font-size: 13px;
    color: #888;
}

.footer {
    background: #000000;
    padding: 20px 24px;
}

.footer-inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    align-items: center;
}

.footer-copy,
.footer-credits {
    font-size: 11px;
    color: #888888;
    letter-spacing: 0.03em;
}

.footer-credits a {
    color: #aaaaaa;
    text-decoration: none;
}

.footer-credits a:hover {
    color: #7EC8E3;
}

@media (max-width: 600px) {
    .hero {
        padding: 56px 16px 52px;
    }

    .about-body {
        flex-direction: column;
        text-align: center;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
