:root {
    color-scheme: light;
    --navy: #102744;
    --navy-deep: #07172c;
    --gold: #b88632;
    --gold-soft: #e7c47e;
    --cream: #fbf8f2;
    --line: #e8ded0;
    --ink: #152942;
    --muted: #6f7d8d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
    background: var(--cream);
    color: var(--ink);
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visitor-page { min-height: 100vh; overflow-x: hidden; }

.visitor-transparent-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 20;
    min-height: 84px;
    padding: 14px clamp(20px, 5vw, 96px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.visitor-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--navy-deep);
    text-decoration: none;
}
.visitor-brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 7px 14px rgba(191,139,39,.24));
}
.visitor-brand strong {
    display: grid;
    font-size: clamp(15px, 1.35vw, 22px);
    line-height: 1.25;
    text-shadow: 0 1px 0 rgba(255,255,255,.78);
}
.visitor-brand small {
    margin-top: 3px;
    color: #52657a;
    font-size: 10px;
    letter-spacing: .08em;
}

.visitor-language-control select {
    min-width: 128px;
    height: 46px;
    padding: 0 40px 0 16px;
    border: 1px solid rgba(16,39,68,.22);
    border-radius: 14px;
    background: rgba(255,255,255,.28);
    color: var(--navy-deep);
    font-weight: 700;
    outline: none;
}
.visitor-language-control select:focus-visible {
    border-color: var(--gold);
    outline: 3px solid rgba(184,134,50,.2);
}

.elevator-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1672 / 487;
    background-image: url('/images/visitor/elevator-lobby-hero.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    overflow: hidden;
}

.elevator-door-layer {
    position: absolute;
    inset: 0;
}

.elevator-door {
    --door-left: 22.55%;
    position: absolute;
    z-index: 3;
    left: var(--door-left);
    top: 28.2%;
    width: 7.15%;
    height: 51.2%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: visible;
    isolation: isolate;
}

.elevator-door::before {
    content: "";
    position: absolute;
    inset: -11% -23% -7%;
    z-index: -3;
    border: 3px solid rgba(242, 195, 91, .62);
    border-radius: 24px 24px 8px 8px;
    background:
        linear-gradient(180deg, rgba(255,252,238,.26), rgba(184,128,44,.06)),
        radial-gradient(circle at 50% 0%, rgba(255,231,167,.34), transparent 44%);
    box-shadow:
        0 0 0 4px rgba(255,248,221,.13),
        0 0 18px rgba(235,178,62,.30),
        inset 0 0 18px rgba(255,237,190,.20);
    transition: border-color .24s ease, box-shadow .24s ease, filter .24s ease;
}

.elevator-door::after {
    content: "";
    position: absolute;
    inset: -4% -9% -1%;
    z-index: -2;
    border: 2px solid rgba(255, 229, 166, .72);
    border-radius: 13px 13px 4px 4px;
    box-shadow:
        0 0 10px rgba(244,188,72,.28),
        inset 0 0 10px rgba(255,245,213,.18);
    transition: border-color .24s ease, box-shadow .24s ease, filter .24s ease;
}

.elevator-door-tag {
    position: absolute;
    left: 50%;
    top: -46px;
    z-index: 6;
    transform: translateX(-50%);
    min-width: 112px;
    padding: 7px 14px 8px;
    border: 2px solid rgba(220, 164, 64, .78);
    border-radius: 15px 15px 6px 6px;
    background:
        linear-gradient(180deg, rgba(255,250,235,.96), rgba(229,204,154,.94));
    box-shadow:
        0 7px 18px rgba(72, 44, 15, .18),
        inset 0 0 0 1px rgba(255,255,255,.62),
        0 0 14px rgba(242,191,87,.18);
    color: #5a3513;
    text-align: center;
    line-height: 1.05;
    transition: box-shadow .24s ease, filter .24s ease, border-color .24s ease;
}
.elevator-door-tag small {
    display: block;
    margin-bottom: 4px;
    color: #9a6b1f;
    font-size: 8px;
    letter-spacing: .15em;
    font-weight: 900;
}
.elevator-door-tag strong {
    display: block;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.elevator-door-range {
    margin-top: 5px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
    color: #7d541c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    white-space: nowrap;
}
.elevator-door-range > span {
    font-size: .72em;
}

.elevator-door-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 5px 5px 2px 2px;
    background:
        linear-gradient(90deg, rgba(93,54,20,.52), rgba(255,234,177,.44) 15%, rgba(122,75,28,.38) 50%, rgba(255,232,171,.42) 84%, rgba(87,50,18,.54));
    box-shadow:
        inset 0 0 0 2px rgba(255,235,184,.58),
        inset 0 0 22px rgba(72,41,14,.34),
        0 0 10px rgba(231,171,58,.16);
    transition: filter .24s ease, box-shadow .24s ease;
}

.elevator-door-surface {
    position: absolute;
    inset: 2px;
    border-radius: 3px 3px 1px 1px;
    background:
        linear-gradient(90deg,
            #6d421f 0%,
            #b77c35 10%,
            #e6c079 23%,
            #8d5b28 48.6%,
            #5c3719 49.5%,
            #f1d18e 50.4%,
            #93602c 51.3%,
            #d6a85c 76%,
            #7a4a22 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255,240,202,.42),
        inset 0 18px 22px rgba(255,255,255,.08),
        inset 0 -16px 20px rgba(55,30,10,.20);
}
.elevator-door-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 5px),
        linear-gradient(180deg, rgba(255,255,255,.16), transparent 22%, transparent 78%, rgba(34,16,5,.16));
}
.elevator-door-surface::after {
    content: "";
    position: absolute;
    left: 49.3%;
    top: 0;
    bottom: 0;
    width: 1.4%;
    background: linear-gradient(180deg, rgba(255,244,211,.55), rgba(75,40,15,.72), rgba(255,228,172,.36));
    box-shadow: 0 0 6px rgba(255,225,163,.22);
}

.elevator-door:hover::before,
.elevator-door:focus-visible::before,
.elevator-door.is-active::before {
    border-color: rgba(255, 211, 115, 1);
    filter: brightness(1.16);
    box-shadow:
        0 0 0 5px rgba(255,249,224,.24),
        0 0 20px rgba(242,185,68,.88),
        0 0 44px rgba(255,213,121,.62),
        inset 0 0 24px rgba(255,239,197,.42);
}
.elevator-door:hover::after,
.elevator-door:focus-visible::after,
.elevator-door.is-active::after {
    border-color: rgba(255, 238, 190, 1);
    filter: brightness(1.14);
    box-shadow:
        0 0 16px rgba(255,205,99,.86),
        inset 0 0 14px rgba(255,250,229,.52);
}
.elevator-door:hover .elevator-door-frame,
.elevator-door:focus-visible .elevator-door-frame,
.elevator-door.is-active .elevator-door-frame {
    filter: brightness(1.18) saturate(1.08);
    box-shadow:
        inset 0 0 0 2px rgba(255,245,211,.92),
        inset 0 0 26px rgba(255,220,144,.20),
        0 0 18px rgba(246,188,72,.76);
}
.elevator-door:hover .elevator-door-tag,
.elevator-door:focus-visible .elevator-door-tag,
.elevator-door.is-active .elevator-door-tag {
    border-color: rgba(242,187,78,1);
    filter: brightness(1.06);
    box-shadow:
        0 10px 24px rgba(72,44,15,.22),
        inset 0 0 0 1px rgba(255,255,255,.72),
        0 0 22px rgba(246,191,84,.58);
}
.elevator-door:focus-visible { outline: none; }

.company-directory {
    scroll-margin-top: 20px;
    padding: clamp(48px, 6vw, 88px) clamp(18px, 4vw, 90px) clamp(64px, 7vw, 100px);
    background: linear-gradient(180deg, #fff 0%, #fbf8f2 100%);
}
.company-directory:focus { outline: none; }
.company-directory-heading {
    max-width: 860px;
    margin: 0 auto 34px;
    text-align: center;
}
.company-directory-heading > span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}
.company-directory-heading h2 {
    margin: 10px 0 12px;
    color: var(--navy-deep);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(30px, 3.4vw, 52px);
    font-weight: 650;
}
.company-directory-heading p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(14px, 1.12vw, 18px);
    line-height: 1.85;
}

.directory-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.directory-column {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(10, 26, 56, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.directory-column.is-highlighted {
    transform: translateY(-4px);
    border-color: rgba(184,134,50,.55);
    box-shadow: 0 24px 46px rgba(184,134,50,.16), 0 12px 28px rgba(10,26,56,.1);
}
.directory-column:focus { outline: none; }

.directory-column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.directory-floor-chip {
    flex: 0 0 auto;
    min-width: 92px;
    min-height: 52px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(184,134,50,.18), rgba(233,198,127,.5));
    color: var(--gold);
    font-weight: 900;
    white-space: nowrap;
}
.directory-floor-chip .floor-number {
    font-size: 20px;
    line-height: 1;
}
.directory-floor-chip .floor-unit {
    font-size: 10px;
    line-height: 1;
}
.directory-floor-chip .floor-separator {
    margin: 0 2px;
    font-size: 13px;
    line-height: 1;
}
.directory-column-header small {
    display: block;
    color: #8d6b2b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}
.directory-column-header h3 {
    margin: 5px 0 0;
    font-size: 18px;
    line-height: 1.25;
    color: var(--navy-deep);
}
.directory-column-meta {
    margin-bottom: 14px;
    color: #7a8795;
    font-size: 12px;
    font-weight: 700;
}
.directory-column-meta span {
    font-size: .78em;
}
.directory-company-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}
.directory-company-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #faf8f3;
    color: var(--navy);
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.directory-company-card:hover {
    transform: translateY(-2px);
    background: #fff9ec;
    box-shadow: 0 10px 22px rgba(10,26,56,.08);
}
.directory-company-main {
    min-width: 0;
    display: grid;
    gap: 5px;
}
.directory-company-name {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-deep);
}
.directory-company-main small {
    color: #74808f;
    font-size: 12px;
    line-height: 1.55;
}
.directory-company-floor {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
    min-width: 52px;
    min-height: 46px;
    padding: 6px 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ecd9b5;
    color: var(--gold);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}
.directory-company-floor .floor-number {
    font-size: 18px;
}
.directory-company-floor .floor-unit {
    font-size: 10px;
}

.visitor-footer {
    min-height: 84px;
    padding: 22px clamp(20px, 8vw, 150px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--navy-deep);
    color: rgba(255,255,255,.68);
    font-size: 13px;
}
.visitor-footer a { color: #fff; text-decoration: none; }
.visitor-footer a:hover { text-decoration: underline; }

@media (max-width: 1360px) {
    .directory-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .visitor-transparent-header { min-height: 74px; padding: 11px 22px; }
    .visitor-brand-logo { width: 48px; height: 48px; }
    .visitor-brand strong { font-size: 15px; }
    .elevator-hero { min-height: 460px; background-size: cover; }
    .elevator-door-layer { display: none; }
    .directory-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .visitor-transparent-header { align-items: flex-start; }
    .visitor-brand strong { max-width: 210px; }
    .visitor-brand small { display: none; }
    .visitor-language-control select { min-width: 102px; height: 42px; padding-left: 12px; }
    .elevator-hero {
        min-height: 520px;
        aspect-ratio: auto;
        background-size: auto 100%;
        background-position: center bottom;
    }
    .company-directory { padding: 44px 14px 60px; }
    .directory-columns { grid-template-columns: 1fr; }
    .visitor-footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .elevator-door::before, .elevator-door::after, .elevator-door-frame, .elevator-door-tag, .directory-column, .directory-company-card { transition: none; }
}

/* V1.0.1: use the same global header and account controls as the public site. */
.visitor-global-header {
    position: sticky;
    top: 0;
    z-index: 100;
}
.visitor-register-link { text-decoration: none; }

.elevator-hero-title {
    position: absolute;
    z-index: 8;
    top: 4.3%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    padding: 5px 28px 9px;
    text-align: center;
    color: var(--navy-deep);
    text-shadow: 0 1px 0 rgba(255,255,255,.9);
    pointer-events: none;
}
.elevator-hero-title span {
    display: block;
    margin-bottom: 2px;
    color: #9b6d24;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .24em;
}
.elevator-hero-title h1 {
    margin: 0;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(24px, 2.4vw, 40px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: .08em;
}

.directory-floor-label {
    min-width: 76px;
    font-size: 15px;
    letter-spacing: .08em;
}

@media (max-width: 1260px) {
    .visitor-global-header .luxury-header-actions { gap: 8px; }
}

@media (max-width: 1100px) {
    .elevator-hero-title { top: 8%; }
}

@media (max-width: 760px) {
    .elevator-hero-title {
        top: 7%;
        min-width: 210px;
        padding-inline: 16px;
    }
    .elevator-hero-title h1 { font-size: 26px; }
}

/* V1.0.2: industry pictograms replace the repeated floor label. */
.directory-industry-icon {
    width: 72px;
    min-width: 72px;
    min-height: 58px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 134, 50, .16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.directory-industry-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
