/* ==========================================================================
   Site header: slim utility bar + minimal main bar.
   Navigation lives entirely in the fullscreen overlay.
   ========================================================================== */

.atena-custom-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 4px 18px rgba(6, 27, 56, .06);
    font-family: var(--font-sans);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- top utility bar ---------- */
.header-topbar {
    background: var(--c-navy-900);
    color: rgba(255, 255, 255, .85);
    font-size: 12.5px;
}

.header-topbar .header-inner {
    min-height: 38px;
}

.header-hours {
    margin: 0;
    letter-spacing: .04em;
}

.header-topbar-tel {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.header-topbar-tel svg {
    align-self: center;
    color: #59c9ef;
}

.topbar-tel-number {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
}

.topbar-tel-note {
    color: rgba(255, 255, 255, .6);
    font-size: 11.5px;
}

/* ---------- main bar ---------- */
.atena-main-header {
    position: relative;
    background: #fff;
}

.atena-main-header .header-inner {
    min-height: 78px;
}

/* Logo lockup: the wordmark sits at ~64% of the logo's height, so the
   tagline is aligned to the bottom edge instead of the optical centre. */
.atena-logo-area {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.atena-logo-divider {
    width: 2px;
    height: 20px;
    margin-bottom: 7px;
    background: var(--c-blue);
    flex-shrink: 0;
}

.atena-logo {
    display: inline-flex;
}

.atena-logo img {
    height: 40px;
    width: auto;
    transition: opacity .2s ease;
}

.atena-logo:hover img {
    opacity: .8;
}

.atena-tagline {
    margin: 0 0 8px;
    color: var(--c-text-muted);
    font-size: 12.5px;
    line-height: 1;
    letter-spacing: .08em;
    white-space: nowrap;
}

/* ---------- actions ---------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-cta {
    min-height: 46px;
    padding: 12px 28px;
    border-radius: 0;
    box-shadow: none;
    font-size: 14.5px;
    white-space: nowrap;
}

.header-tel-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
    background: var(--c-navy-700);
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

/* ---------- burger (morphs into a close icon) ---------- */
.atena-burger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 6px 0 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.burger-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 16px;
    flex-shrink: 0;
}

.burger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--c-navy-900);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .2s ease, background-color .3s ease;
}

.burger-line:nth-child(1) { top: 0; }
.burger-line:nth-child(2) { top: 7px; }
.burger-line:nth-child(3) { top: 14px; }

.burger-label {
    color: var(--c-navy-900);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    transition: opacity .25s ease, background-color .3s ease;
}

.atena-burger:hover .burger-line,
.atena-burger:hover .burger-label {
    color: var(--c-blue);
}

.atena-burger:hover .burger-line {
    background: var(--c-blue);
}

/* open state: X in place, white on the navy overlay */
.atena-burger.is-open .burger-line {
    background: #fff;
}

.atena-burger.is-open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.atena-burger.is-open .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.atena-burger.is-open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.atena-burger.is-open .burger-label {
    opacity: 0;
}

/* lift the burger above the overlay and mute the rest of the bar */
body.is-menu-overlay-open .atena-custom-header {
    z-index: 10001;
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    pointer-events: none;
}

body.is-menu-overlay-open .atena-main-header {
    background: transparent;
}

body.is-menu-overlay-open .header-topbar,
body.is-menu-overlay-open .atena-logo-area,
body.is-menu-overlay-open .header-cta,
body.is-menu-overlay-open .header-tel-mobile {
    visibility: hidden;
}

body.is-menu-overlay-open .atena-burger {
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .burger-line {
        transition: none;
    }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
    .topbar-tel-note,
    .atena-logo-divider,
    .atena-tagline {
        display: none;
    }

    .header-cta {
        padding: 11px 18px;
        font-size: 13.5px;
    }
}

@media (max-width: 700px) {
    .header-topbar {
        display: none;
    }

    .header-tel-mobile {
        display: inline-flex;
    }

    .burger-label {
        display: none;
    }

    .atena-burger {
        padding: 0 4px;
    }

    .atena-main-header .header-inner {
        min-height: 68px;
        padding: 0 16px;
    }

    .atena-logo img {
        height: 32px;
    }
}

/* ==========================================================================
   Fullscreen menu overlay
   ========================================================================== */
.atena-burger {
    display: inline-flex;
}

.atena-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .45s ease, visibility 0s linear .45s;
    color: #fff;
    background:
        linear-gradient(150deg, rgba(0, 165, 223, .12), transparent 50%),
        var(--c-navy-900);
}

.atena-menu-overlay.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity .45s ease;
}

.menu-overlay-grid {
    transform: translateY(14px);
    opacity: 0;
    transition: transform .5s ease .1s, opacity .5s ease .1s;
}

.atena-menu-overlay.is-open .menu-overlay-grid {
    transform: translateY(0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .atena-menu-overlay,
    .menu-overlay-grid {
        transition: none;
    }
}

.menu-overlay-inner {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 136px 24px 56px;
}

.menu-overlay-inner::before {
    content: 'ATENA';
    position: fixed;
    left: 12px;
    bottom: -30px;
    z-index: -1;
    color: rgba(255, 255, 255, .04);
    font-family: Arial, sans-serif;
    font-size: clamp(120px, 18vw, 260px);
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.menu-overlay-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
}

.menu-col {
    display: flex;
    flex-direction: column;
}

.menu-col-title {
    margin: 0 0 14px;
    color: #59c9ef;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.menu-col-main a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 16.5px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}

.menu-col-main a:hover {
    padding-left: 8px;
    color: #59c9ef;
}

.menu-col-search a {
    padding: 9px 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease;
}

.menu-col-search a::before {
    content: '－ ';
    color: rgba(255, 255, 255, .4);
}

.menu-col-search a:hover {
    color: #59c9ef;
}

.menu-col-contact {
    gap: 14px;
}

.menu-cta {
    justify-content: center;
    padding: 16px 22px;
    border-radius: 0;
}

.menu-tel {
    display: block;
    margin-top: 6px;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.menu-tel-number {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
}

.menu-tel-note {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .6);
    font-size: 11.5px;
}

.menu-sns {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    text-decoration: none;
    transition: color .2s ease;
}

.menu-sns svg {
    width: 20px;
    height: 20px;
}

.menu-sns:hover {
    color: #59c9ef;
}

.menu-group {
    margin-top: 10px;
    text-align: center;
}

.menu-group .menu-col-title {
    margin-bottom: 10px;
}

.menu-group-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    line-height: 1.5;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}

.menu-group-link:hover {
    border-color: #59c9ef;
    color: #59c9ef;
}

.menu-overlay-tagline {
    margin: 56px 0 0;
    color: rgba(255, 255, 255, .35);
    font-size: 13px;
    letter-spacing: .2em;
}

@media (max-width: 900px) {
    .menu-overlay-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .menu-overlay-inner {
        padding: 96px 24px 48px;
    }
}

body.is-menu-overlay-open .atena-property-floating-banner {
    display: none;
}

.menu-group-link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #59c9ef;
}

.menu-group-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
}

.menu-group-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-sns-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 4px;
}

.menu-sns-icon {
    display: inline-flex;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-sns-icon {
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
}

.menu-sns-icon img {
    width: 22px;
    height: 22px;
    display: block;
}

.menu-sns--instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.menu-sns--line {
    background: #06C755;
}

.menu-sns--x {
    background: #0f1419;
}

.menu-sns-icon:hover {
    transform: translateY(-2px);
    opacity: .88;
}

.menu-cta {
    box-shadow: none;
}

.menu-cta:hover {
    box-shadow: none;
}

.menu-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;
    color: rgba(255, 255, 255, .88);
    font-size: 13.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.menu-mail svg {
    width: 17px;
    height: 17px;
    color: #59c9ef;
}

.menu-mail:hover {
    color: #59c9ef;
}

.menu-group-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.menu-group-name {
    white-space: nowrap;
}

.menu-group-sub {
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
}


.menu-col-main a.is-sub {
    padding-left: 18px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .74);
}

.menu-col-main a.is-sub::before {
    content: '└ ';
    color: rgba(255, 255, 255, .38);
}

.menu-col-main a.is-sub:hover {
    padding-left: 26px;
}

@media (max-width: 480px) {
    .header-cta {
        display: none;
    }
}
