/* --- Reset & Base --- */
:root {
    --azua-black: #f4fbff;
    --azua-dark: #e9f6ff;
    --azua-dark-alt: #d8eeff;
    --azua-gray: #79a5c7;
    --azua-gray-light: #4f7ba0;
    --azua-white: #0e3f63;
    --azua-white-soft: #1d537a;
    --azua-accent: #00aeea;
    --azua-accent-hover: #0098cb;
    --azua-font-en: 'Barlow', sans-serif;
    --azua-font-jp: 'M PLUS Rounded 1c', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    --azua-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --azua-header-height: 140px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--azua-header-height) + env(safe-area-inset-top, 0px));
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 40, 80, 0.7) rgba(10, 25, 50, 0.15);
}

/* Webkit scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 25, 50, 0.15);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0c2d5a, #14406e);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #13396a, #1a5080);
}

body.azua-body {
    background-color: var(--azua-black);
    color: var(--azua-white-soft);
    font-family: var(--azua-font-jp);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 18.75px;
}

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

a {
    color: var(--azua-white);
    text-decoration: none;
    transition: color var(--azua-transition);
}

a:hover {
    color: var(--azua-accent);
}

/* --- Header --- */
.azua-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--azua-header-height) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    z-index: 1000;
    background: transparent;
    border: none;
    pointer-events: none;
    transition: none;
}

.azua-header.is-scrolled {
    background: transparent;
}

.azua-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 32px;
    pointer-events: auto;
}

.azua-header__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.azua-header__logo-img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
    transition: opacity var(--azua-transition), transform var(--azua-transition);
}

.azua-header__logo a:hover .azua-header__logo-img {
    opacity: 0.85;
    transform: scale(1.03);
}

/* Header Actions (citizen btn + hamburger) */
.azua-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
}

.azua-header__citizen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #b8860b, #a07608);
    border: 1px solid rgba(184, 134, 11, 0.6);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all var(--azua-transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.azua-header__citizen-btn:hover {
    background: linear-gradient(135deg, #d4a017, #b8860b);
    border-color: rgba(212, 160, 23, 0.8);
    color: #fff;
    box-shadow: 0 4px 24px rgba(184, 134, 11, 0.4);
}

/* Hamburger - Always Visible */
.azua-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: rgba(8, 20, 48, 0.85);
    border: 1px solid rgba(30, 80, 160, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    transition: all var(--azua-transition);
    flex-direction: column;
    gap: 6.5px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.azua-hamburger:hover {
    background: rgba(12, 30, 70, 0.95);
    border-color: rgba(30, 120, 220, 0.5);
    box-shadow: 0 4px 24px rgba(30, 80, 180, 0.3);
}

.azua-hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    border-radius: 1px;
}

.azua-hamburger.is-active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.azua-hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5.7px, 5.7px);
}

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

.azua-hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5.7px, -5.7px);
}

/* Full-screen Overlay Menu */
.azua-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

.azua-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.azua-overlay__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 60% at 15% 10%, rgba(15, 50, 120, 0.4), transparent 60%),
        radial-gradient(ellipse 100% 50% at 85% 90%, rgba(10, 40, 100, 0.28), transparent 55%),
        radial-gradient(ellipse 80% 80% at 50% 50%, rgba(6, 20, 60, 0.15), transparent 70%),
        linear-gradient(160deg, rgba(3, 6, 18, 0.88) 0%, rgba(8, 16, 40, 0.85) 50%, rgba(4, 10, 28, 0.88) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.azua-overlay__nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 40px;
}

.azua-overlay__list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.azua-overlay__list li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.azua-overlay.is-active .azua-overlay__list li {
    opacity: 1;
    transform: translateY(0);
}

.azua-overlay.is-active .azua-overlay__list li:nth-child(1) { transition-delay: 0.1s; }
.azua-overlay.is-active .azua-overlay__list li:nth-child(2) { transition-delay: 0.15s; }
.azua-overlay.is-active .azua-overlay__list li:nth-child(3) { transition-delay: 0.2s; }
.azua-overlay.is-active .azua-overlay__list li:nth-child(4) { transition-delay: 0.25s; }
.azua-overlay.is-active .azua-overlay__list li:nth-child(5) { transition-delay: 0.3s; }
.azua-overlay.is-active .azua-overlay__list li:nth-child(6) { transition-delay: 0.35s; }

.azua-overlay__list li a {
    display: inline-block;
    font-family: var(--azua-font-en);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    padding: 12px 24px;
    position: relative;
    transition: all 0.35s ease;
}

.azua-overlay__list li a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1e78dc, #00aeea, transparent);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.azua-overlay__list li a:hover {
    color: #fff;
    text-shadow: 0 0 30px rgba(30, 120, 220, 0.5);
}

.azua-overlay__list li a:hover::before {
    width: 80%;
}

.azua-overlay__social {
    display: flex;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.azua-overlay.is-active .azua-overlay__social {
    opacity: 1;
    transform: translateY(0);
}

.azua-overlay__social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.azua-overlay__social a:hover {
    background: rgba(30, 120, 220, 0.2);
    border-color: rgba(30, 120, 220, 0.5);
    transform: translateY(-3px);
}

.azua-overlay__social img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* --- Page Fixed Background --- */
.azua-page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

.azua-page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.15) 100%);
}

/* --- Hero Wrapper --- */
.azua-hero-wrapper {
    position: relative;
    z-index: 0;
}

.azua-mobile-server-status {
    display: none;
    position: relative;
    z-index: 2;
}

/* --- Hero --- */
.azua-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.azua-hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.azua-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@supports (-webkit-touch-callout: none) {
    /* iOS: fixed attachment doesn't work */
    .azua-hero__bg {
        background-attachment: scroll;
    }
}

@media (min-width: 769px) {
    .azua-hero__bg {
        background-attachment: fixed;
    }
}

.azua-hero__bg--default {
    background: linear-gradient(135deg, #0b4ea2 0%, #1a6fd4 50%, #0b4ea2 100%);
}

.azua-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.azua-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    animation: azuaHeroContentReveal 1.2s cubic-bezier(0.2, 0.65, 0.2, 1) 1.6s forwards;
    opacity: 0;
    will-change: opacity, transform;
}

@keyframes azuaHeroContentReveal {
    0% {
        opacity: 0;
        transform: translateY(32px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.azua-hero__logo {
    max-width: 300px;
    margin-bottom: 30px;
    opacity: 0;
    animation: azuaHeroLogoReveal 0.9s cubic-bezier(0.2, 0.65, 0.2, 1) 1.8s forwards;
}

.azua-hero__title {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    color: transparent;
    -webkit-text-stroke: 1.5px #ffffff;
    margin-bottom: 28px;
    line-height: 1.05;
    font-style: italic;
    clip-path: inset(0 100% 0 0);
    animation: heroTitleWrite 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) 1.8s forwards,
               heroTitleFill 1s ease 3.8s forwards;
}

@keyframes heroTitleWrite {
    0%   { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0% 0 0); }
}

@keyframes heroTitleFill {
    0% {
        color: transparent;
        text-shadow: none;
    }
    100% {
        color: #ffffff;
        text-shadow: 0 2px 40px rgba(10, 60, 180, 0.3);
        -webkit-text-stroke: 0px transparent;
    }
}

.azua-hero__divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    margin: 0 auto 24px;
}

.azua-hero__tagline {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(0.95rem, 2.2vw, 1.4rem);
    font-weight: 400;
    letter-spacing: 0.22em;
    color: var(--azua-white);
    margin-bottom: 14px;
    font-style: italic;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.azua-hero__subtitle {
    font-family: var(--azua-font-jp);
    font-size: clamp(0.75rem, 1.4vw, 0.92rem);
    font-weight: 300;
    color: var(--azua-gray-light);
    letter-spacing: 0.2em;
}

.azua-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.azua-hero__scroll span {
    font-family: var(--azua-font-en);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: #ffffff;
}

.azua-hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #ffffff, transparent);
    animation: azuaScrollLineReveal 0.8s ease-out 3s forwards, scrollLine 2s ease-in-out 3.8s infinite;
}

@keyframes azuaHeroLogoReveal {
    0% {
        opacity: 0;
        transform: scale(0.88);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes azuaHeroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes azuaHeroTaglineReveal {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes azuaHeroSubtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes azuaScrollLineReveal {
    0% {
        opacity: 0;
        height: 0;
    }
    100% {
        opacity: 1;
        height: 60px;
    }
}

@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* --- Sections Base --- */
.azua-section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
    font-size: 23.4px;
    background: rgba(244, 251, 255, 0.88);
}

.azua-section + .azua-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 600px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 120, 220, 0.2), transparent);
}

.azua-section__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.azua-section__heading {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.azua-section__heading-en {
    display: block;
    font-family: var(--azua-font-en);
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    background: linear-gradient(
        90deg,
        rgba(30, 120, 220, 0.4) 0%,
        rgba(0, 174, 234, 0.55) 25%,
        rgba(30, 120, 220, 0.3) 50%,
        rgba(0, 174, 234, 0.55) 75%,
        rgba(30, 120, 220, 0.4) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: azuaHeadingGradient 12s ease infinite;
    user-select: none;
    pointer-events: none;
}

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

.azua-section__heading-line {
    display: none;
}

.azua-section__heading-ja {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--azua-white);
    letter-spacing: 0.18em;
    margin-top: -0.7em;
    position: relative;
}

.azua-section__heading-ja::after {
    display: none;
}

.azua-section__action {
    text-align: center;
    margin-top: 36px;
}

/* --- Button --- */
.azua-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--azua-font-en);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    padding: 16px 40px;
    border: 1px solid var(--azua-white);
    color: var(--azua-white);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.azua-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--azua-white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.azua-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.azua-btn:hover {
    color: var(--azua-black);
}

.azua-btn__arrow {
    transition: transform var(--azua-transition);
}

.azua-btn:hover .azua-btn__arrow {
    transform: translateX(4px);
}

/* --- NEWS --- */
.azua-section--news {
    background: linear-gradient(135deg, #0a2e52 0%, #0d3a6a 30%, #0e4478 55%, #0b3d70 75%, #092c50 100%);
    color: #ffffff;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #0a5dc2, #1e78dc 30%, #00aeea 50%, #1e78dc 70%, #0a5dc2) 1;
}

/* --- NEWS + TOPIC Layout --- */
.azua-news-topic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.azua-news-topic__heading {
    margin-bottom: 28px;
}

.azua-news-topic__heading-en {
    display: block;
    font-family: var(--azua-font-en);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffffff;
    line-height: 1;
}

.azua-news-topic__heading-ja {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.12em;
    margin-top: 6px;
}

.azua-news__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.azua-news__item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.azua-news__item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.azua-news__item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(6px);
    box-shadow: -4px 0 0 0 #00aeea;
}

.azua-news__date {
    font-family: var(--azua-font-en);
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
    white-space: nowrap;
    min-width: 80px;
}

.azua-news__title {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
    line-height: 1.6;
}

.azua-news__arrow {
    font-family: var(--azua-font-en);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.azua-news__item:hover .azua-news__arrow {
    opacity: 1;
    transform: translateX(0);
}

.azua-news__item:hover .azua-news__title {
    color: #00aeea;
}

.azua-news__empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.azua-news__action {
    margin-top: 20px;
}

.azua-btn--outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--azua-font-en);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: all 0.35s ease;
}

.azua-btn--outline-light:hover {
    border-color: #00aeea;
    color: #00aeea;
    background: rgba(0, 174, 234, 0.08);
}

/* --- TOPIC --- */
.azua-topic__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.azua-topic__item {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.35s ease;
    overflow: hidden;
}

.azua-topic__item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 174, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.azua-topic__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.azua-topic__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.azua-topic__item:hover .azua-topic__thumb img {
    transform: scale(1.08);
}

.azua-topic__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
}

.azua-topic__info {
    padding: 10px 12px;
    min-width: 0;
}

.azua-topic__date {
    display: block;
    font-family: var(--azua-font-en);
    font-size: 0.65rem;
    font-weight: 600;
    color: #00aeea;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.azua-topic__title {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.azua-topic__item:hover .azua-topic__title {
    color: #00aeea;
}

.azua-topic__empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    padding: 20px;
    grid-column: 1 / -1;
}

.azua-topic__action {
    margin-top: 20px;
    text-align: right;
}

/* --- Hero Server Status --- */
.azua-hero__server-status {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 3;
    width: 320px;
}

/* --- Server Status Card --- */
.azua-server-status {
    background: rgba(8, 20, 48, 0.92);
    border: 1px solid rgba(30, 120, 220, 0.2);
    border-radius: 20px;
    padding: 35px 30px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.azua-server-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e78dc, #0a5dc2, #00aeea);
}

.azua-server-status__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.azua-server-status__indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    flex-shrink: 0;
    transition: background 0.4s ease;
}

.azua-server-status__indicator.is-online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: azuaStatusPulse 2s ease-in-out infinite;
}

.azua-server-status__indicator.is-offline {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

@keyframes azuaStatusPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 14px rgba(34, 197, 94, 0.7); }
}

.azua-server-status__label {
    font-family: var(--azua-font-en);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.4s ease;
}

.azua-server-status__label.is-online {
    color: #22c55e;
}

.azua-server-status__label.is-offline {
    color: #ef4444;
}

.azua-server-status__name {
    font-family: var(--azua-font-en);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.azua-server-status__players {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.azua-server-status__count {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.azua-server-status__number {
    font-family: var(--azua-font-en);
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
    transition: color 0.4s ease;
}

.azua-server-status__separator {
    font-family: var(--azua-font-en);
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 3px;
}

.azua-server-status__max {
    font-family: var(--azua-font-en);
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
}

.azua-server-status__players-label {
    font-family: var(--azua-font-en);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

.azua-server-status__bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.azua-server-status__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e78dc, #22c55e);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.azua-server-status__schedule {
    text-align: center;
    margin-top: 4px;
}

.azua-server-status__schedule-text {
    font-family: var(--azua-font-jp);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.06em;
}

.azua-server-status__guide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    font-family: var(--azua-font-jp);
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, rgba(0, 174, 234, 0.25), rgba(30, 120, 220, 0.35));
    border: 1px solid rgba(0, 174, 234, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: azuaGuideBtnPulse 2.5s ease-in-out infinite;
}

.azua-server-status__guide-btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 174, 234, 0.4), rgba(30, 120, 220, 0.5));
    border-color: rgba(0, 174, 234, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 174, 234, 0.3);
    animation: none;
}

.azua-server-status__guide-btn svg {
    animation: azuaGuideBtnArrow 1.8s ease-in-out infinite;
}

@keyframes azuaGuideBtnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 174, 234, 0); }
    50%      { box-shadow: 0 0 12px 3px rgba(0, 174, 234, 0.2); }
}

@keyframes azuaGuideBtnArrow {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(3px); }
}

.azua-server-status__closed-msg {
    text-align: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 4px;
}

.azua-server-status__closed-title {
    display: block;
    font-family: var(--azua-font-jp);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
}

.azua-server-status__closed-sub {
    display: block;
    font-family: var(--azua-font-jp);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.04em;
}

/* --- Server Panel (Status + Graph) --- */
.azua-server-panel {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0, 174, 234, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(12, 45, 90, 0.06);
    overflow: hidden;
}

/* -- Status Section -- */
.azua-server-panel__status {
    padding: 28px 36px 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f4fd 100%);
    border-bottom: 1px solid rgba(0, 174, 234, 0.1);
}

.azua-server-panel__status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.azua-server-panel__indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #aab2bd;
    flex-shrink: 0;
    transition: background 0.3s;
}

.azua-server-panel__indicator.is-online {
    background: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
    animation: azua-pulse-dot 2s infinite;
}

.azua-server-panel__indicator.is-offline {
    background: #e74c3c;
}

@keyframes azua-pulse-dot {
    0%, 100% { box-shadow: 0 0 4px rgba(46, 204, 113, 0.4); }
    50%       { box-shadow: 0 0 12px rgba(46, 204, 113, 0.7); }
}

.azua-server-panel__status-label {
    font-family: var(--azua-font-en);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #aab2bd;
    transition: color 0.3s;
}

.azua-server-panel__status-label.is-online {
    color: #2ecc71;
}

.azua-server-panel__status-label.is-offline {
    color: #e74c3c;
}

.azua-server-panel__server-name {
    font-family: var(--azua-font-en);
    font-size: 1.4rem;
    font-weight: 800;
    color: #0c2d5a;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.azua-server-panel__players {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 10px;
}

.azua-server-panel__players-num {
    font-family: var(--azua-font-en);
    font-size: 2.2rem;
    font-weight: 800;
    color: #00aeea;
    line-height: 1;
    transition: color 0.3s;
}

.azua-server-panel__players-sep {
    font-family: var(--azua-font-en);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(12, 45, 90, 0.25);
    margin: 0 2px;
}

.azua-server-panel__players-max {
    font-family: var(--azua-font-en);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(12, 45, 90, 0.35);
}

.azua-server-panel__players-label {
    font-family: var(--azua-font-en);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(12, 45, 90, 0.3);
    margin-left: 8px;
}

.azua-server-panel__bar {
    width: 100%;
    height: 8px;
    background: rgba(12, 45, 90, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.azua-server-panel__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00aeea, #0090c4);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* -- Graph Section -- */
.azua-server-panel__graph {
    padding: 28px 36px 24px;
}

.azua-server-panel__graph-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.azua-server-panel__graph-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.azua-server-panel__graph-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.azua-server-panel__graph-title-en {
    font-family: var(--azua-font-en);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #0c2d5a;
}

.azua-server-panel__graph-title-ja {
    font-family: var(--azua-font-jp);
    font-size: 0.75rem;
    color: rgba(12, 45, 90, 0.4);
    letter-spacing: 0.06em;
}

.azua-server-panel__mode-toggle {
    display: flex;
    border: 1px solid rgba(12, 45, 90, 0.12);
    border-radius: 6px;
    overflow: hidden;
}

.azua-server-panel__mode-btn {
    padding: 4px 14px;
    font-family: var(--azua-font-jp);
    font-size: 0.78rem;
    font-weight: 600;
    background: #fff;
    color: rgba(12, 45, 90, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1.4;
}

.azua-server-panel__mode-btn + .azua-server-panel__mode-btn {
    border-left: 1px solid rgba(12, 45, 90, 0.12);
}

.azua-server-panel__mode-btn.is-active {
    background: #00aeea;
    color: #fff;
}

.azua-server-panel__mode-btn:hover:not(.is-active) {
    background: rgba(0, 174, 234, 0.06);
    color: #00aeea;
}

.azua-server-panel__date-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.azua-server-panel__date-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(12, 45, 90, 0.1);
    background: #fff;
    color: rgba(12, 45, 90, 0.4);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.azua-server-panel__date-btn:hover:not(:disabled) {
    background: rgba(0, 174, 234, 0.08);
    border-color: rgba(0, 174, 234, 0.3);
    color: #00aeea;
}

.azua-server-panel__date-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.azua-server-panel__date-label {
    font-family: var(--azua-font-jp);
    font-size: 0.82rem;
    font-weight: 600;
    color: #0c2d5a;
    min-width: 240px;
    text-align: center;
    white-space: nowrap;
}

.azua-server-panel__canvas-wrap {
    position: relative;
    height: 300px;
}

.azua-server-panel__canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.azua-server-panel__note {
    margin-top: 14px;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(12, 45, 90, 0.25);
    letter-spacing: 0.04em;
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .azua-server-panel {
        border-radius: 12px;
    }

    .azua-server-panel__status {
        padding: 20px 18px 18px;
    }

    .azua-server-panel__server-name {
        font-size: 1.15rem;
    }

    .azua-server-panel__players-num {
        font-size: 1.7rem;
    }

    .azua-server-panel__graph {
        padding: 20px 18px 18px;
    }

    .azua-server-panel__graph-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .azua-server-panel__graph-title-en {
        font-size: 1rem;
    }

    .azua-server-panel__date-label {
        min-width: auto;
        font-size: 0.75rem;
    }

    .azua-server-panel__canvas-wrap {
        height: 200px;
    }
}

/* --- About --- */
.azua-section--about {
    background: #e9f6ff;
}

.azua-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.azua-about__image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    max-width: 75%;
    margin: 0 auto;
}

.azua-about__image img {
    width: 100%;
    border-radius: 12px;
    transition: transform 0.6s ease;
}

.azua-about__image:hover img {
    transform: scale(1.03);
}

.azua-about__text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.azua-about__grid > .azua-about__text:only-child {
    grid-column: 1 / -1;
}

.azua-about__text p {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.98rem;
    line-height: 2.3;
    margin-bottom: 1.5em;
    font-weight: 400;
}

/* About text-reveal animation */
[data-animate="text-reveal"] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

[data-animate="text-reveal"] p {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: opacity 0.6s ease, clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate="text-reveal"].is-visible p {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
}

/* --- Showcase Slider --- */
.azua-section--showcase {
    background: #e9f6ff;
}

.azua-showcase {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
}

.azua-showcase__track {
    display: flex;
    transition: transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.azua-showcase__slide {
    min-width: 100%;
    position: relative;
    opacity: 0.4;
    transform: scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.azua-showcase__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.azua-showcase__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
}

.azua-showcase__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.azua-showcase__slide:hover .azua-showcase__image img {
    transform: scale(1.03);
}

.azua-showcase__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px 28px;
    background: linear-gradient(0deg, rgba(8, 16, 32, 0.85) 0%, transparent 100%);
    border-radius: 0 0 16px 16px;
}

.azua-showcase__title {
    font-family: var(--azua-font-en);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.azua-showcase__desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.azua-showcase__link {
    display: block;
    text-decoration: none;
}

.azua-showcase__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 120, 220, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #0a5dc2;
    z-index: 5;
}

.azua-showcase__btn:hover {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(30, 120, 220, 0.2);
    transform: translateY(-50%) scale(1.08);
}

.azua-showcase__btn--prev {
    left: 16px;
}

.azua-showcase__btn--next {
    right: 16px;
}

.azua-showcase__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0 8px;
}

.azua-showcase__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(30, 120, 220, 0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.azua-showcase__dot.is-active {
    background: #1e78dc;
    border-color: #1e78dc;
    transform: scale(1.15);
}

.azua-showcase__dot:hover {
    border-color: #1e78dc;
}

/* --- Features --- */
.azua-section--features {
    background: transparent;
}

.azua-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.azua-features__card {
    text-align: center;
    padding: 40px 24px 35px;
    background: var(--azua-dark-alt);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.azua-features__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1e78dc, #0a5dc2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.azua-features__card:hover::before {
    transform: scaleX(1);
}

.azua-features__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(30, 100, 200, 0.12);
}

.azua-features__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(30, 120, 220, 0.08);
    color: #1e78dc;
    transition: all 0.4s ease;
}

.azua-features__card:hover .azua-features__icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(30, 120, 220, 0.14);
    box-shadow: 0 0 24px rgba(30, 120, 220, 0.15);
}

.azua-features__title {
    font-family: var(--azua-font-en);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--azua-white);
    margin-bottom: 12px;
}

.azua-features__desc {
    font-size: 0.88rem;
    color: var(--azua-white-soft);
    line-height: 1.9;
}

/* --- CTA Section --- */
.azua-section--cta {
    background: linear-gradient(160deg, rgba(10, 30, 61, 0.82) 0%, rgba(13, 59, 110, 0.78) 40%, rgba(20, 96, 160, 0.75) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.azua-section--cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(30, 120, 220, 0.3), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 174, 234, 0.2), transparent 50%);
    z-index: -1;
}

.azua-cta__content {
    padding: 30px 0;
}

.azua-cta__title {
    font-family: var(--azua-font-en);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin-bottom: 16px;
}

.azua-cta__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    letter-spacing: 0.06em;
}

.azua-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.azua-btn--hero,
.azua-btn--cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--azua-font-en);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 16px 36px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-transform: uppercase;
}

.azua-btn--hero:hover,
.azua-btn--cta:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(30, 120, 220, 0.3);
}

.azua-btn--hero svg,
.azua-btn--cta svg {
    flex-shrink: 0;
}

.azua-hero__cta {
    margin-top: 36px;
}

/* --- Guide --- */
.azua-section--guide {
    background: transparent;
}

.azua-guide__badge {
    display: none;
}

.azua-guide__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.azua-guide__card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(30, 120, 220, 0.18);
    border-radius: 16px;
    padding: 36px 28px 28px;
    text-align: center;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 6px 0 rgba(30, 120, 220, 0.13);
}

.azua-guide__card.has-popup {
    cursor: pointer;
}

.azua-guide__card:hover {
    transform: translateY(-6px);
    box-shadow: 6px 10px 0 rgba(30, 120, 220, 0.18);
    border-color: rgba(30, 120, 220, 0.35);
}

.azua-guide__card-num {
    position: absolute;
    top: 14px;
    left: 18px;
    font-family: var(--azua-font-en);
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e78dc;
    line-height: 1;
    opacity: 0.7;
}

.azua-guide__card-thumb {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(30, 120, 220, 0.06);
}

.azua-guide__card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.azua-guide__card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--azua-white);
    margin-bottom: 8px;
    line-height: 1.5;
}

.azua-guide__card-desc {
    font-size: 0.82rem;
    color: var(--azua-gray);
    line-height: 1.7;
    margin-bottom: 12px;
}

.azua-guide__card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--azua-font-en);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #1e78dc, #0a5dc2);
    padding: 9px 22px;
    border-radius: 8px;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.azua-guide__card:hover .azua-guide__card-action {
    background: linear-gradient(135deg, #2488e8, #1e78dc);
    box-shadow: 0 4px 16px rgba(30, 120, 220, 0.3);
}

.azua-guide__card-action svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Guide Popup */
.azua-guide-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.azua-guide-popup.is-active {
    display: flex;
}

html.azua-popup-open,
html.azua-popup-open body {
    overflow: hidden !important;
    height: 100%;
}

.azua-guide-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.azua-guide-popup__content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 44px;
    max-width: 640px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: guidePopupIn 0.35s cubic-bezier(0.2, 0.65, 0.2, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.azua-guide-popup__content::-webkit-scrollbar {
    display: none;
}

@keyframes guidePopupIn {
    0% { opacity: 0; transform: scale(0.92) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.azua-guide-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(14, 63, 99, 0.06);
    border: none;
    color: var(--azua-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.azua-guide-popup__close:hover {
    background: rgba(14, 63, 99, 0.12);
    transform: rotate(90deg);
}

.azua-guide-popup__step {
    font-family: var(--azua-font-en);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #1e78dc;
    margin-bottom: 8px;
}

.azua-guide-popup__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--azua-white);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(30, 120, 220, 0.12);
}

.azua-guide-popup__body {
    font-size: 0.92rem;
    color: var(--azua-white-soft);
    line-height: 2;
}

.azua-guide-popup__body p {
    margin-bottom: 16px;
}

.azua-guide-popup__body img {
    border-radius: 12px;
    margin: 16px 0;
}

.azua-guide__empty {
    text-align: center;
    color: var(--azua-gray-light);
    grid-column: 1 / -1;
}

/* --- Movies --- */
.azua-section--movies {
    background: rgba(233, 246, 255, 0.88);
}

.azua-movies__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.azua-movies__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: var(--azua-gray);
}

.azua-movies__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Comments --- */
.azua-section--comments {
    background: var(--azua-black);
}

.azua-comments__slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.azua-comments__card {
    background: var(--azua-dark-alt);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 45px;
    transition: all var(--azua-transition);
}

.azua-comments__card:hover {
    border-color: rgba(200, 169, 96, 0.3);
}

.azua-comments__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.azua-comments__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.azua-comments__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.azua-comments__role {
    font-size: 0.75rem;
    color: var(--azua-accent);
    font-weight: 500;
    display: block;
}

.azua-comments__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--azua-white);
}

.azua-comments__body {
    font-size: 0.88rem;
    line-height: 2;
    color: var(--azua-white-soft);
}

.azua-comments__body p {
    margin-bottom: 1em;
}

.azua-comments__empty {
    text-align: center;
    color: var(--azua-gray-light);
}

/* --- FAQ --- */
.azua-section--faq {
    background: var(--azua-dark);
}

.azua-faq__list {
    max-width: 1000px;
    margin: 0 auto;
}

.azua-faq__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.azua-faq__item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.azua-faq__question {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--azua-white);
    font-size: 0.95rem;
    font-family: var(--azua-font-jp);
    text-align: left;
    cursor: pointer;
    transition: color var(--azua-transition);
}

.azua-faq__question:hover {
    color: var(--azua-accent);
}

.azua-faq__q,
.azua-faq__a {
    font-family: var(--azua-font-en);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--azua-accent);
    flex-shrink: 0;
}

.azua-faq__icon {
    margin-left: auto;
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform var(--azua-transition);
    flex-shrink: 0;
}

.azua-faq__item.is-open .azua-faq__icon {
    transform: rotate(45deg);
}

.azua-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.azua-faq__answer-inner {
    display: flex;
    gap: 12px;
    padding: 0 0 24px 0;
    font-size: 0.9rem;
    line-height: 2;
    color: var(--azua-white-soft);
}

.azua-faq__answer-inner p {
    margin-bottom: 1em;
}

.azua-faq__empty {
    text-align: center;
    color: var(--azua-gray-light);
}

/* --- Footer --- */
.azua-footer {
    background: linear-gradient(170deg, #0b1a32 0%, #0d2240 40%, #091628 100%);
    border-top: 1px solid rgba(30, 80, 160, 0.2);
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.azua-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 120, 220, 0.4), transparent);
}

.azua-footer__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
}

.azua-footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
    text-align: center;
}

.azua-footer__logo a {
    font-family: var(--azua-font-en);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-decoration: none;
}

.azua-footer__logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 12px rgba(30, 80, 160, 0.3));
}

.azua-footer__menu {
    display: flex;
    gap: 28px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.azua-footer__menu li {
    list-style: none;
}

.azua-footer__menu a {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.04em;
    transition: color var(--azua-transition);
}

.azua-footer__menu a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.azua-footer__social {
    display: flex;
    gap: 16px;
}

.azua-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--azua-transition);
}

.azua-footer__social a:hover {
    color: #fff;
    background: rgba(30, 120, 220, 0.2);
    border-color: rgba(30, 120, 220, 0.5);
    transform: translateY(-2px);
}

.azua-footer__social svg {
    width: 18px;
    height: 18px;
}

.azua-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 28px;
    text-align: center;
}

.azua-footer__disclaimer {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.6;
    margin-bottom: 12px;
}

.azua-footer__copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.06em;
}

/* --- Background Animation --- */
.azua-bg-anim {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.azua-bg-anim__layer {
    position: absolute;
    will-change: transform;
}

.azua-bg-anim__layer--1 {
    width: 900px;
    height: 900px;
    top: -15%;
    right: -10%;
    animation: azuaBgDrift1 70s linear infinite;
}

.azua-bg-anim__layer--2 {
    width: 700px;
    height: 700px;
    bottom: -10%;
    left: -8%;
    animation: azuaBgDrift2 90s linear infinite;
}

.azua-bg-anim__layer--3 {
    width: 500px;
    height: 500px;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: azuaBgDrift3 60s linear infinite;
}

/* --- Section-local Background Animation --- */
.azua-section__bg-anim {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.azua-section__inner {
    position: relative;
    z-index: 1;
}

/* --- Continuous Pattern Background (FEATURES ~ GUIDE) --- */
.azua-pattern-bg {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.azua-pattern-bg__layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Layer 1: Diagonal moving grid lines */
.azua-pattern-bg__layer--1 {
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 80px,
            rgba(30, 120, 220, 0.09) 80px,
            rgba(30, 120, 220, 0.09) 81.5px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 80px,
            rgba(0, 174, 234, 0.07) 80px,
            rgba(0, 174, 234, 0.07) 81.5px
        );
    background-size: 113px 113px, 113px 113px;
    animation: azuaPatternDrift1 60s linear infinite;
}

/* Layer 2: hidden */
.azua-pattern-bg__layer--2 {
    display: none;
}

/* Layer 3: Large soft radial gradients drifting */
.azua-pattern-bg__layer--3 {
    background:
        radial-gradient(ellipse 600px 400px at 15% 20%, rgba(30, 120, 220, 0.11), transparent),
        radial-gradient(ellipse 500px 350px at 85% 60%, rgba(0, 174, 234, 0.09), transparent),
        radial-gradient(ellipse 400px 500px at 50% 90%, rgba(10, 93, 194, 0.07), transparent);
    background-size: 200% 200%;
    animation: azuaPatternGlow 20s ease-in-out infinite;
}

@keyframes azuaPatternDrift1 {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 113px 113px, -113px 113px; }
}

@keyframes azuaPatternGlow {
    0%, 100% { background-position: 20% 30%, 80% 60%, 50% 80%; }
    25%      { background-position: 40% 10%, 60% 80%, 30% 60%; }
    50%      { background-position: 60% 50%, 40% 30%, 70% 40%; }
    75%      { background-position: 30% 70%, 70% 50%, 50% 90%; }
}

.azua-pattern-bg .azua-section {
    background: transparent;
}

.azua-pattern-bg .azua-section + .azua-section::before {
    display: none;
}

/* Gradient Blobs */
.azua-section-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    will-change: transform;
}

.azua-section-blob--1 {
    background: radial-gradient(circle, rgba(30, 120, 220, 0.6), rgba(0, 174, 234, 0.2) 70%, transparent);
    top: -10%;
    right: -5%;
    animation: azuaBlob1 20s ease-in-out infinite;
}

.azua-section-blob--2 {
    background: radial-gradient(circle, rgba(0, 174, 234, 0.5), rgba(30, 120, 220, 0.15) 70%, transparent);
    bottom: -8%;
    left: -3%;
    animation: azuaBlob2 25s ease-in-out infinite;
}

.azua-section-blob--3 {
    background: radial-gradient(circle, rgba(10, 93, 194, 0.4), rgba(0, 174, 234, 0.1) 70%, transparent);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: azuaBlob3 30s ease-in-out infinite;
}

@keyframes azuaBlob1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-40px, 30px) scale(1.1); }
    66%      { transform: translate(30px, -20px) scale(0.95); }
}

@keyframes azuaBlob2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(50px, -25px) scale(1.08); }
    66%      { transform: translate(-30px, 35px) scale(0.92); }
}

@keyframes azuaBlob3 {
    0%, 100% { transform: translateX(-50%) translate(0, 0) scale(1); }
    33%      { transform: translateX(-50%) translate(-35px, -30px) scale(1.12); }
    66%      { transform: translateX(-50%) translate(25px, 20px) scale(0.9); }
}

@keyframes azuaBgDrift1 {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.5; }
    12%  { transform: translate(40px, -60px) rotate(20deg) scale(1.04); opacity: 0.6; }
    25%  { transform: translate(100px, -20px) rotate(50deg) scale(1.08); opacity: 0.7; }
    37%  { transform: translate(60px, 50px) rotate(90deg) scale(1.02); opacity: 0.55; }
    50%  { transform: translate(-30px, 80px) rotate(140deg) scale(0.95); opacity: 0.75; }
    62%  { transform: translate(-80px, 30px) rotate(200deg) scale(0.92); opacity: 0.6; }
    75%  { transform: translate(-50px, -40px) rotate(260deg) scale(0.98); opacity: 0.5; }
    87%  { transform: translate(20px, -70px) rotate(320deg) scale(1.05); opacity: 0.65; }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: 0.5; }
}

@keyframes azuaBgDrift2 {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.45; }
    15%  { transform: translate(-50px, 40px) rotate(-30deg) scale(1.06); opacity: 0.6; }
    30%  { transform: translate(-90px, -10px) rotate(-70deg) scale(0.94); opacity: 0.5; }
    45%  { transform: translate(-20px, -60px) rotate(-120deg) scale(1.03); opacity: 0.7; }
    60%  { transform: translate(60px, -30px) rotate(-190deg) scale(1.08); opacity: 0.55; }
    75%  { transform: translate(40px, 50px) rotate(-260deg) scale(0.96); opacity: 0.65; }
    90%  { transform: translate(-10px, 30px) rotate(-330deg) scale(1.01); opacity: 0.5; }
    100% { transform: translate(0, 0) rotate(-360deg) scale(1); opacity: 0.45; }
}

@keyframes azuaBgDrift3 {
    0%   { transform: translateX(-50%) translate(0, 0) rotate(0deg) scale(1); opacity: 0.4; }
    10%  { transform: translateX(-50%) translate(30px, 40px) rotate(15deg) scale(1.05); opacity: 0.55; }
    20%  { transform: translateX(-50%) translate(-20px, 80px) rotate(35deg) scale(1.1); opacity: 0.65; }
    35%  { transform: translateX(-50%) translate(-60px, 40px) rotate(70deg) scale(1.03); opacity: 0.5; }
    50%  { transform: translateX(-50%) translate(-30px, -30px) rotate(120deg) scale(0.95); opacity: 0.7; }
    65%  { transform: translateX(-50%) translate(40px, -60px) rotate(180deg) scale(0.9); opacity: 0.55; }
    80%  { transform: translateX(-50%) translate(60px, -10px) rotate(260deg) scale(1.07); opacity: 0.45; }
    90%  { transform: translateX(-50%) translate(20px, 20px) rotate(320deg) scale(1.02); opacity: 0.6; }
    100% { transform: translateX(-50%) translate(0, 0) rotate(360deg) scale(1); opacity: 0.4; }
}

/* --- Scroll Animations --- */
[data-animate] {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.95);
    filter: blur(6px);
    will-change: opacity, transform, filter;
    transition:
        opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.5s ease-out;
}

[data-animate="fade-right"] {
    transform: translate3d(-50px, 0, 0) scale(0.92) rotateY(10deg);
}

[data-animate="fade-left"] {
    transform: translate3d(50px, 0, 0) scale(0.92) rotateY(-10deg);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateX(0deg) rotateY(0deg);
    filter: blur(0);
    text-shadow: 0 0 20px rgba(30, 120, 220, 0.15);
}

/* --- Summer Theme Override --- */
body.azua-body {
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(20, 80, 180, 0.18), transparent 60%),
        radial-gradient(1000px 500px at 100% 0%, rgba(0, 100, 220, 0.14), transparent 55%),
        linear-gradient(180deg, #f0f7ff 0%, #e4f1ff 100%);
}

.azua-header {
    background: transparent;
    border: none;
}

.azua-header.is-scrolled {
    background: transparent;
}

.azua-hamburger {
    background: rgba(8, 20, 48, 0.88);
    border-color: rgba(30, 80, 160, 0.35);
}

.azua-hamburger:hover {
    background: rgba(12, 30, 70, 0.95);
    border-color: rgba(30, 120, 220, 0.6);
    box-shadow: 0 4px 24px rgba(30, 80, 180, 0.3);
}

.azua-hamburger span {
    background: #fff;
}



.azua-overlay__list li a {
    color: rgba(255, 255, 255, 0.9);
}

.azua-overlay__list li a:hover {
    color: #fff;
    text-shadow: 0 0 30px rgba(30, 120, 220, 0.6);
}

.azua-hero__bg--default {
    background:
        radial-gradient(circle at 20% 15%, rgba(30, 120, 230, 0.5), transparent 35%),
        radial-gradient(circle at 80% 25%, rgba(20, 100, 220, 0.45), transparent 40%),
        linear-gradient(160deg, #0b4ea2 0%, #1a6fd4 40%, #2488e8 100%);
}

.azua-hero__overlay {
    background: linear-gradient(180deg, rgba(6, 16, 40, 0.3), rgba(8, 24, 56, 0.6));
}

.azua-hero__tagline {
    color: #ffffff;
    text-shadow: 0 2px 40px rgba(10, 60, 180, 0.3);
}

.azua-hero__subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.azua-btn {
    border-color: rgba(30, 120, 220, 0.3);
    color: #0b5a90;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(30, 120, 220, 0.08);
}

.azua-btn::before {
    background: linear-gradient(135deg, #1e78dc, #0a5dc2);
}

.azua-btn:hover {
    background: transparent;
    border-color: #1e78dc;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(30, 120, 220, 0.2);
}

.azua-section--about,
.azua-section--showcase,
.azua-section--movies,
.azua-section--faq {
    background: #e1f0ff;
}

.azua-section--guide,
.azua-section--features,
.azua-section--contents {
    background: transparent;
    overflow: hidden;
}

.azua-pattern-bg {
    background: #eef8ff;
}

.azua-news__item {
    border-color: rgba(255, 255, 255, 0.08);
}

.azua-faq__item {
    border-color: rgba(18, 113, 167, 0.16);
}

.azua-contents__card,
.azua-features__card {
    background: rgba(255, 255, 255, 0.82);
    border: 2px solid rgba(30, 120, 220, 0.15);
    box-shadow: 0 8px 28px rgba(30, 100, 200, 0.08);
    border-radius: 16px;
}

.azua-contents__card:hover,
.azua-features__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(30, 100, 200, 0.16);
    border-color: rgba(30, 120, 220, 0.3);
}

.azua-contents__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.azua-contents__card {
    padding: 36px 28px 32px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.azua-contents__card-number {
    font-family: var(--azua-font-en);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, rgba(30, 120, 220, 0.25), rgba(30, 120, 220, 0.10));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    pointer-events: none;
}

.azua-contents__card h3 {
    font-family: var(--azua-font-en);
    font-size: 1rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #0a5dc2;
    margin-bottom: 16px;
}

.azua-contents__card p {
    color: #1e5580;
    font-size: 0.92rem;
    line-height: 2;
}

.azua-guide__card-title,
.azua-about__text p,
.azua-faq__question {
    color: #0e4a7a;
}

.azua-faq__q,
.azua-faq__a,
.azua-guide__more {
    color: #1e78dc;
}

.azua-features__icon {
    background: rgba(30, 120, 220, 0.08);
    color: #1e78dc;
}

.azua-features__title {
    color: #0a5dc2;
}

.azua-features__desc {
    color: #1e5580;
}

.azua-showcase__btn {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(30, 120, 220, 0.15);
}

.azua-top-social {
    position: fixed;
    right: 18px;
    top: 52%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.azua-top-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 120, 220, 0.2);
    box-shadow: 0 8px 20px rgba(30, 100, 200, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--azua-transition);
}

.azua-top-social a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 100, 200, 0.25);
    border-color: rgba(30, 120, 220, 0.4);
}

.azua-top-social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* =========================================
   LOADER
   ========================================= */
.azua-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    overflow: hidden;
}

.azua-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 1層目（表）: clip-pathラッパー + 内部fillにblur --- */
.azua-loader__panel--tl {
    position: absolute;
    inset: -4px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 3;
    animation: azuaSlide-TL 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.azua-loader__panel--tl .azua-loader__fill {
    width: 100%;
    height: 100%;
    background: #0a5dc2;
    animation: azuaBlurFade 2.3s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

.azua-loader__panel--br {
    position: absolute;
    inset: -4px;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    z-index: 3;
    animation: azuaSlide-BR 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.azua-loader__panel--br .azua-loader__fill {
    width: 100%;
    height: 100%;
    background: #0850ab;
    animation: azuaBlurFade 2.3s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

/* パネル境界の光ライン */
.azua-loader__panel--tl::after {
    content: '';
    position: absolute;
    width: 142%;
    height: 2px;
    bottom: 0;
    right: 0;
    transform-origin: bottom right;
    transform: rotate(-45deg);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(120, 190, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(120, 190, 255, 0.4) 80%,
        transparent 100%
    );
    opacity: 0;
    animation: azuaEdgeGlow 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

/* --- 2層目（裏）: 色入れ替え + 遅延blur --- */
.azua-loader__panel2--tl {
    position: absolute;
    inset: -4px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 2;
    animation: azuaSlide-TL 2.5s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
}

.azua-loader__panel2--tl .azua-loader__fill {
    width: 100%;
    height: 100%;
    background: #0850ab;
    animation: azuaBlurFade 2.3s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
}

.azua-loader__panel2--br {
    position: absolute;
    inset: -4px;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    z-index: 2;
    animation: azuaSlide-BR 2.5s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
}

.azua-loader__panel2--br .azua-loader__fill {
    width: 100%;
    height: 100%;
    background: #0a5dc2;
    animation: azuaBlurFade 2.3s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
}

/* 2層目境界の光 */
.azua-loader__panel2--tl::after {
    content: '';
    position: absolute;
    width: 142%;
    height: 1px;
    bottom: 0;
    right: 0;
    transform-origin: bottom right;
    transform: rotate(-45deg);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(100, 170, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(100, 170, 255, 0.3) 80%,
        transparent 100%
    );
    opacity: 0;
    animation: azuaEdgeGlow 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.85s forwards;
}

/* --- Loading テキスト --- */
.azua-loader__content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: flex;
    align-items: baseline;
    gap: 0;
    opacity: 0;
    animation: azuaLoadingFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards,
               azuaLoadingFadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.azua-loader__text {
    font-family: var(--azua-font-en);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
}

.azua-loader__dots {
    display: inline-flex;
    margin-left: 2px;
}

.azua-loader__dots span {
    font-family: var(--azua-font-en);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
}

.azua-loader__dots span:nth-child(1) {
    animation: azuaDotBlink 0.9s ease-in-out 0.1s infinite;
}

.azua-loader__dots span:nth-child(2) {
    animation: azuaDotBlink 0.9s ease-in-out 0.25s infinite;
}

.azua-loader__dots span:nth-child(3) {
    animation: azuaDotBlink 0.9s ease-in-out 0.4s infinite;
}

/* --- キーフレーム --- */

@keyframes azuaDotBlink {
    0%, 20% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes azuaLoadingFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(8px);
        filter: blur(2px);
    }
    60% {
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
        filter: blur(0);
    }
}

@keyframes azuaLoadingFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-4px);
        filter: blur(2px);
    }
}

@keyframes azuaSweepDiag {
    0% {
        transform: translate(-42%, 42%);
        opacity: 0;
    }
    8% {
        opacity: 0.6;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    92% {
        opacity: 0.6;
    }
    100% {
        transform: translate(42%, -42%);
        opacity: 0;
    }
}

@keyframes azuaEdgeGlow {
    0% {
        opacity: 0;
        filter: blur(4px);
    }
    35% {
        opacity: 1;
        filter: blur(0);
    }
    65% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        filter: blur(2px);
    }
}

@keyframes azuaSlide-TL {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-52%, -52%);
    }
}

@keyframes azuaSlide-BR {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(52%, 52%);
    }
}

@keyframes azuaBlurFade {
    0% {
        opacity: 1;
        filter: blur(0);
    }
    40% {
        opacity: 0.8;
        filter: blur(8px);
    }
    70% {
        opacity: 0.35;
        filter: blur(20px);
    }
    100% {
        opacity: 0;
        filter: blur(32px);
    }
}

/* 子ページの統一デザイン */
.azua-subpage {
    max-width: 1200px;
    margin: 140px auto 100px;
    padding: 60px 50px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(18, 125, 183, 0.2);
    box-shadow: 0 16px 36px rgba(50, 141, 196, 0.14);
    position: relative;
    z-index: 1;
}

.azua-subpage__title {
    font-family: var(--azua-font-jp);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0a527f;
    margin-bottom: 16px;
    line-height: 1.6;
}

.azua-subpage__meta {
    color: #4f7ea1;
    margin-bottom: 28px;
    font-size: 0.78rem;
}

.azua-subpage__content {
    color: #2a5e82;
    font-size: 0.92rem;
    line-height: 2;
}

.azua-subpage__content p {
    margin-bottom: 1.4em;
}

.azua-subpage__content a {
    color: #008fc3;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.azua-subpage__content a:hover {
    color: #0a5dc2;
}

/* Subpage headings */
.azua-subpage__content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0a527f;
    margin: 2.4em 0 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid rgba(30, 120, 220, 0.15);
    line-height: 1.5;
}

.azua-subpage__content h2:first-child {
    margin-top: 0;
}

.azua-subpage__content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0e5f8f;
    margin: 2em 0 0.6em;
    padding-left: 14px;
    border-left: 3px solid #1e78dc;
    line-height: 1.5;
}

.azua-subpage__content h4 {
    font-size: 1.02rem;
    font-weight: 600;
    color: #1a6a9a;
    margin: 1.6em 0 0.5em;
    line-height: 1.5;
}

/* Subpage lists */
.azua-subpage__content ul,
.azua-subpage__content ol {
    margin: 1em 0 1.4em;
    padding-left: 2em;
}

.azua-subpage__content ul {
    list-style: none;
    padding-left: 1.6em;
}

.azua-subpage__content ul li {
    position: relative;
    padding-left: 0.4em;
    margin-bottom: 0.5em;
}

.azua-subpage__content ul li::before {
    content: '';
    position: absolute;
    left: -1.2em;
    top: 0.75em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e78dc, #0a5dc2);
}

.azua-subpage__content ol li {
    margin-bottom: 0.5em;
    padding-left: 0.2em;
}

/* Nested lists */
.azua-subpage__content ul ul,
.azua-subpage__content ol ul {
    margin: 0.4em 0 0.4em;
    padding-left: 1.4em;
}

.azua-subpage__content ul ul li::before {
    width: 5px;
    height: 5px;
    background: transparent;
    border: 1.5px solid #1e78dc;
}

/* Blockquote */
.azua-subpage__content blockquote {
    margin: 1.6em 0;
    padding: 20px 24px;
    background: rgba(30, 120, 220, 0.04);
    border-left: 3px solid #1e78dc;
    border-radius: 0 8px 8px 0;
    color: #1a5a80;
    font-style: italic;
}

.azua-subpage__content blockquote p:last-child {
    margin-bottom: 0;
}

/* Table */
.azua-subpage__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border-radius: 8px;
    overflow: hidden;
}

.azua-subpage__content th,
.azua-subpage__content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(30, 120, 220, 0.1);
}

.azua-subpage__content th {
    background: rgba(30, 120, 220, 0.06);
    font-weight: 600;
    color: #0a527f;
    font-size: 0.88rem;
}

.azua-subpage__content td {
    font-size: 0.88rem;
}

/* Strong / em */
.azua-subpage__content strong {
    font-weight: 700;
    color: #0a527f;
}

.azua-subpage__content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 120, 220, 0.2), transparent);
    margin: 2em 0;
}

/* ── Post Navigation ── */
.azua-post-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid rgba(30, 120, 220, 0.1);
}

.azua-post-nav__item a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(30, 120, 220, 0.04);
    border: 1px solid rgba(30, 120, 220, 0.08);
    text-decoration: none;
    color: inherit;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.azua-post-nav__item a:hover {
    background: rgba(30, 120, 220, 0.08);
    border-color: rgba(30, 120, 220, 0.2);
    transform: translateY(-2px);
}

.azua-post-nav__prev {
    text-align: left;
}

.azua-post-nav__next {
    text-align: right;
}

.azua-post-nav__next a {
    align-items: flex-end;
}

.azua-post-nav__home {
    display: flex;
    align-items: center;
}

.azua-post-nav__home a {
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
}

.azua-post-nav__home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00aeea;
}

.azua-post-nav__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #00aeea;
}

.azua-post-nav__title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #0c2d5a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .azua-post-nav {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
    }

    .azua-post-nav__home {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-content: center;
    }

    .azua-post-nav__home a {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        padding: 12px;
    }

    .azua-post-nav__prev,
    .azua-post-nav__next {
        min-width: 0;
    }

    .azua-post-nav__item a {
        padding: 12px 14px;
    }

    .azua-post-nav__title {
        font-size: 0.82rem;
    }
}

/* Lenis */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .azua-bg-anim__layer {
        animation: none !important;
        opacity: 0.3;
    }

    .azua-loader__panel--tl,
    .azua-loader__panel--tl::after,
    .azua-loader__panel--br,
    .azua-loader__panel2--tl,
    .azua-loader__panel2--tl::after,
    .azua-loader__panel2--br,
    .azua-loader__fill,
    .azua-loader__content,
    .azua-loader__dots span {
        animation: none !important;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .azua-about__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .azua-about__text {
        max-width: 100%;
    }

    .azua-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --azua-header-height: 100px;
    }

    .azua-header__citizen-btn {
        width: 55px;
        height: 55px;
    }

    .azua-header__citizen-btn svg {
        width: 22px;
        height: 22px;
    }

    .azua-hamburger {
        width: 55px;
        height: 55px;
    }

    .azua-hamburger span {
        width: 23px;
    }

    .azua-header__inner {
        padding: 14px 16px;
    }

    .azua-header__logo-img {
        height: 70px;
    }

    .azua-overlay__list li a {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .azua-overlay__logo img {
        height: 44px;
    }

    .azua-section {
        padding: 60px 0;
    }

    .azua-section__inner {
        padding: 0 20px;
    }

    .azua-section__heading {
        margin-bottom: 32px;
    }

    .azua-guide__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .azua-guide-popup__content {
        padding: 36px 24px;
    }

    .azua-movies__grid {
        grid-template-columns: 1fr;
    }

    .azua-news-topic {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .azua-topic__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .azua-topic__title {
        font-size: 0.7rem;
    }

    .azua-topic__info {
        padding: 8px 8px;
    }

    .azua-news__item {
        flex-wrap: wrap;
        gap: 4px 12px;
        padding: 12px 16px;
    }

    .azua-news__date {
        width: 100%;
    }

    .azua-news__title {
        flex: 1;
    }

    .azua-hero {
        position: relative;
        height: 100svh;
        min-height: 500px;
        padding: 0;
        overflow: hidden;
        flex-direction: column;
    }

    .azua-hero__content {
        max-width: 100%;
        padding: 0 20px;
    }

    .azua-hero__title {
        font-size: clamp(3.5rem, 14vw, 6rem);
        -webkit-text-stroke: 1px #ffffff;
    }

    .azua-hero__server-status {
        display: none;
    }

    .azua-mobile-server-status {
        display: block;
        padding: 24px 20px;
        background: rgba(244, 251, 255, 0.95);
    }

    .azua-mobile-server-status .azua-server-status {
        max-width: 360px;
        margin: 0 auto;
    }

    .azua-hero__scroll {
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }

    .azua-comments__slider {
        grid-template-columns: 1fr;
    }

    .azua-top-social {
        right: 10px;
        top: auto;
        bottom: 90px;
        transform: none;
        flex-direction: row;
    }

    .azua-top-social a {
        width: 36px;
        height: 36px;
    }

    .azua-contents__grid {
        grid-template-columns: 1fr;
    }

    .azua-features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .azua-showcase__btn {
        width: 36px;
        height: 36px;
    }

    .azua-showcase__btn--prev {
        left: 8px;
    }

    .azua-showcase__btn--next {
        right: 8px;
    }

    .azua-showcase__caption {
        padding: 28px 20px 20px;
    }

    .azua-showcase__title {
        font-size: 1.05rem;
    }

    .azua-cta__title {
        font-size: 1.6rem;
    }

    .azua-subpage {
        margin-top: 70px;
        padding: 24px 18px;
        border-radius: 12px;
    }

    .azua-footer__top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .azua-footer__menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .azua-hero__logo {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .azua-hero__title {
        font-size: 2.5rem;
    }

    .azua-guide__card {
        padding: 30px 20px;
    }

    .azua-guide__card-num {
        font-size: 1.2rem;
    }

    .azua-guide-popup__content {
        padding: 30px 20px;
    }

    .azua-comments__card {
        padding: 24px;
    }

    .azua-features__grid {
        grid-template-columns: 1fr;
    }

    .azua-features__card {
        padding: 32px 20px 28px;
    }
}

/* ============================================
   404 Page
   ============================================ */
.azua-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.azua-404__inner {
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

/* グリッチエフェクトの404数字 */
.azua-404__code {
    font-family: var(--azua-font-en);
    font-size: clamp(7rem, 20vw, 14rem);
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 174, 234, 0.5);
    position: relative;
    margin-bottom: 16px;
    user-select: none;
}

.azua-404__code span {
    position: relative;
    display: inline-block;
    animation: azua404float 4s ease-in-out infinite;
}

.azua-404__code::before,
.azua-404__code::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-text-stroke: 2px rgba(0, 174, 234, 0.3);
}

.azua-404__code::before {
    animation: azua404glitch1 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    -webkit-text-stroke-color: rgba(0, 174, 234, 0.7);
}

.azua-404__code::after {
    animation: azua404glitch2 3s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    -webkit-text-stroke-color: rgba(0, 120, 200, 0.5);
}

.azua-404__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--azua-white);
    margin-bottom: 20px;
}

.azua-404__message {
    font-size: 0.9rem;
    color: var(--azua-gray-light);
    line-height: 2;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.azua-404__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.azua-404__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: var(--azua-font-jp);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
    text-decoration: none;
    border: none;
}

.azua-404__btn--primary {
    background: linear-gradient(135deg, #00aeea, #0088cc);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 174, 234, 0.3);
}

.azua-404__btn--primary:hover {
    background: linear-gradient(135deg, #00c4ff, #009ae0);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 174, 234, 0.4);
}

.azua-404__btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--azua-gray-light);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.azua-404__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 174, 234, 0.3);
    color: var(--azua-white);
    transform: translateY(-2px);
}

/* 装飾パーティクル */
.azua-404__particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}

.azua-404__particle--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #00aeea, transparent 70%);
    top: -80px;
    right: -100px;
    animation: azua404drift 8s ease-in-out infinite;
}

.azua-404__particle--2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #0088cc, transparent 70%);
    bottom: -60px;
    left: -60px;
    animation: azua404drift 10s ease-in-out infinite reverse;
}

.azua-404__particle--3 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #00aeea, transparent 70%);
    top: 40%;
    left: 10%;
    animation: azua404drift 6s ease-in-out infinite 2s;
}

@keyframes azua404float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes azua404glitch1 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(4px, -2px); }
    94% { transform: translate(-3px, 1px); }
    96% { transform: translate(2px, 2px); }
    98% { transform: translate(-2px, -1px); }
}

@keyframes azua404glitch2 {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-3px, 2px); }
    93% { transform: translate(4px, -1px); }
    95% { transform: translate(-2px, -2px); }
    97% { transform: translate(3px, 1px); }
}

@keyframes azua404drift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -20px); }
    66% { transform: translate(-10px, 10px); }
}

@media (max-width: 600px) {
    .azua-404__actions {
        flex-direction: column;
    }
    .azua-404__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Citizen Page (市民ページ)
   ============================================ */
.azua-citizen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.azua-citizen__inner {
    width: 100%;
    max-width: 800px;
    margin-top: calc(var(--azua-header-height) + 20px);
}

/* === Gate (未ログイン) === */
.azua-citizen__gate {
    text-align: center;
    padding: 60px 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.azua-citizen__gate-icon {
    color: rgba(0, 174, 234, 0.5);
    margin-bottom: 20px;
}

.azua-citizen__gate-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--azua-white);
    margin-bottom: 8px;
}

.azua-citizen__gate-sub {
    font-size: 0.85rem;
    color: var(--azua-gray);
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.azua-citizen__gate-desc {
    font-size: 0.9rem;
    color: var(--azua-gray-light);
    line-height: 2;
    margin-bottom: 36px;
}

.azua-citizen__login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: #5865F2;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.azua-citizen__login-btn:hover {
    background: #4752c4;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(88, 101, 242, 0.4);
}

/* === Logged-in Header === */
.azua-citizen__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 24px;
}

.azua-citizen__user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.azua-citizen__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 174, 234, 0.3);
}

.azua-citizen__avatar--admin {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.azua-citizen__avatar--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--azua-gray);
}

.azua-citizen__user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.azua-citizen__user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--azua-white);
}

.azua-citizen__user-badge {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(0, 174, 234, 0.15);
    color: #00aeea;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.06em;
    width: fit-content;
}

.azua-citizen__user-badge--admin {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 134, 11, 0.2));
    color: #d4af37;
}

.azua-citizen__header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.azua-citizen__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--azua-gray-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0;
}

.azua-citizen__settings-toggle:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: var(--azua-white);
}

.azua-citizen__icon-btn:hover {
    color: var(--azua-white);
}

.azua-citizen__icon-btn--logout:hover {
    border-color: rgba(255, 80, 80, 0.4);
    color: #ff5050;
    background: rgba(255, 80, 80, 0.08);
}

/* === Settings Popup === */
.azua-citizen__popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.azua-citizen__popup {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    animation: azuaPopupIn 0.25s ease;
    color: #333;
}

.azua-citizen__popup .azua-citizen__popup-title {
    color: #1a2a44;
}

.azua-citizen__popup .azua-citizen__popup-close {
    color: #888;
}

.azua-citizen__popup .azua-citizen__popup-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}

.azua-citizen__popup .azua-citizen__settings-toggle-label {
    color: #333;
}

.azua-citizen__popup .azua-citizen__toggle-track {
    background: #ddd;
}

.azua-citizen__popup .azua-citizen__toggle input:checked + .azua-citizen__toggle-track {
    background: #00aeea;
}

.azua-citizen__popup .azua-citizen__settings-hint {
    color: #999;
}

@keyframes azuaPopupIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.azua-citizen__popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.azua-citizen__popup-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--azua-white);
    margin: 0;
}

.azua-citizen__popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--azua-gray-light);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.azua-citizen__popup-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--azua-white);
}

.azua-citizen__popup-body {
    padding: 20px 24px 24px;
}

/* === Content Area === */
.azua-citizen__content {
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 24px;
    color: var(--azua-white-soft);
    line-height: 2;
}

.azua-citizen__content h1,
.azua-citizen__content h2,
.azua-citizen__content h3 {
    color: var(--azua-white);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.azua-citizen__content h1:first-child,
.azua-citizen__content h2:first-child,
.azua-citizen__content h3:first-child {
    margin-top: 0;
}

.azua-citizen__content a {
    color: #00aeea;
}

.azua-citizen__content a:hover {
    text-decoration: underline;
}

.azua-citizen__content img {
    border-radius: 10px;
}

/* === Settings Panel === */
.azua-citizen__settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.azua-citizen__settings-toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--azua-gray-light);
}

/* Toggle Switch */
.azua-citizen__toggle {
    position: relative;
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
}

.azua-citizen__toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.azua-citizen__toggle-track {
    display: block;
    width: 48px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    transition: background 0.3s ease;
    position: relative;
}

.azua-citizen__toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.azua-citizen__toggle input:checked + .azua-citizen__toggle-track {
    background: #00aeea;
}

.azua-citizen__toggle input:checked + .azua-citizen__toggle-track .azua-citizen__toggle-thumb {
    transform: translateX(22px);
}

.azua-citizen__settings-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--azua-gray);
    font-weight: 400;
}

.azua-citizen__settings-msg {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.azua-citizen__settings-msg--ok {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.azua-citizen__settings-msg--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

@media (max-width: 600px) {
    .azua-citizen__inner {
        margin-top: calc(var(--azua-header-height) + 10px);
    }
    .azua-citizen__gate {
        padding: 40px 20px;
    }
    .azua-citizen__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .azua-citizen__header-actions {
        align-self: flex-end;
    }
    .azua-citizen__content {
        padding: 28px 20px;
    }
}

/* ============================================
   Contact Form 7 - ご意見箱スタイル
   ============================================ */
.wpcf7 {
    max-width: 680px;
    margin: 0 auto;
}

.wpcf7-form {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 120, 220, 0.1);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 4px 24px rgba(30, 100, 200, 0.06);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpcf7-form .must {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-right: 6px;
}

.wpcf7-form b {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0a527f;
    vertical-align: middle;
}

.wpcf7-form br {
    display: block;
    content: '';
    margin-top: 6px;
}

/* --- Input / Select / Textarea 共通 --- */
.wpcf7-form input[type="text"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 12px 16px;
    background: #f8fbff;
    border: 1.5px solid rgba(30, 120, 220, 0.15);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: var(--azua-font-jp);
    color: #1a3a5c;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    margin-top: 8px;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: #00aeea;
    box-shadow: 0 0 0 3px rgba(0, 174, 234, 0.1);
    background: #fff;
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form textarea::placeholder {
    color: #a0b8cc;
}

/* --- Select カスタム矢印 --- */
.wpcf7-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234f7ba0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

/* --- Textarea --- */
.wpcf7-form textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.8;
}

/* --- Submit --- */
.wpcf7-form .sub-btn,
.wpcf7-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1e78dc, #0a5dc2);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: var(--azua-font-jp);
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(30, 120, 220, 0.2);
    margin-top: 4px;
}

.wpcf7-form .sub-btn:hover,
.wpcf7-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #2584e8, #0e6ad8);
    box-shadow: 0 6px 24px rgba(30, 120, 220, 0.3);
    transform: translateY(-2px);
}

.wpcf7-form .sub-btn:active,
.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 120, 220, 0.2);
}

/* --- Spinner & Messages --- */
.wpcf7-spinner {
    margin-top: 12px;
}

.wpcf7 .wpcf7-response-output {
    margin: 12px 0 0;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
}

.wpcf7 .wpcf7-mail-sent-ok,
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    border-left: 4px solid #22c55e;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-response-output.wpcf7-validation-errors {
    background: rgba(239, 68, 68, 0.06);
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}

.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.wpcf7-not-valid {
    border-color: #ef4444 !important;
}

/* --- hidden field wrapper消去 --- */
.wpcf7-form .wpcf7-form-control-wrap[data-name="nickname"] {
    display: none;
}

/* --- レスポンシブ --- */
@media (max-width: 600px) {
    .wpcf7-form {
        padding: 24px 18px;
        gap: 16px;
    }

    .wpcf7-form input[type="text"],
    .wpcf7-form textarea,
    .wpcf7-form select {
        font-size: 16px; /* iOS zoom防止 */
    }
}
