@charset "utf-8";

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background:
        linear-gradient(rgba(242, 242, 242, 0.18), rgba(242, 242, 242, 0.18)),
        url(../images/room.png) no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
    color: #3a312a;
    transition: background 0.7s ease, color 0.35s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.25), transparent 16%),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.06), transparent 34%);
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.9s ease;
    transform: scale(0.96);
}

button,
input {
    font: inherit;
}

.shadow {
    box-shadow: 1px 2px 2px #eee;
}

#container {
    min-height: 100vh;
    font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", Meiryo, sans-serif;
}

body.auth-open {
    color: #2c241d;
}

body.auth-open::before {
    opacity: 1;
    transform: scale(1.03);
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 100;
    background: rgb(255, 255, 255);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 248, 248, 1) 100%);
    border-bottom: 1px solid #cdcdcd;
    padding-left: 5px;
    text-align: left;
    transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

#nav_area {
    max-width: none;
    margin: 0;
    padding: 0;
    height: 40px;
    display: flex;
    align-items: center;
}

#logo {
    height: 30px;
    margin-top: 3px;
    margin-left: 15px;
}

#logo a {
    display: block;
    width: 120px;
    height: 30px;
    border: 0;
    background: transparent url(../images/Tadpole.png) no-repeat 5px center;
    background-size: 25px 25px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    padding: 0 0 0 34px;
    font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333333;
    text-decoration: none;
    font-size: 12px;
    line-height: 30px;
    box-sizing: border-box;
}

#logo a:hover {
    opacity: 1;
    transform: translateY(-1px);
    color: #676767;
}

.content {
    min-height: 100vh;
}

.power-home {
    display: grid;
    place-items: center;
    padding: 72px 20px 32px;
}

.entry-stage {
    display: grid;
    justify-items: center;
    position: relative;
}

.entry-stage::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 220px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.14) 38%, transparent 74%);
    filter: blur(16px);
    opacity: 0.52;
    transform: scale(0.84);
    transition: opacity 0.6s ease, transform 0.7s ease;
}

.entry-line {
    position: relative;
    width: 132px;
    height: 34px;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: transform 0.45s ease;
}

.entry-line__core,
.entry-line__pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.entry-line__core {
    width: 88px;
    height: 2px;
    border-radius: 999px;
    background: rgba(70, 60, 52, 0.88);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.28),
        0 0 18px rgba(255, 255, 255, 0.32);
    transition: width 0.38s ease, height 0.38s ease, box-shadow 0.38s ease, background 0.38s ease;
}

.entry-line__pulse {
    width: 132px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(76, 66, 57, 0.14);
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.45s ease, border-color 0.35s ease;
}

.entry-line:hover,
.entry-line.is-active {
    transform: translateY(-1px);
}

.entry-line:hover .entry-line__core,
.entry-line.is-active .entry-line__core {
    width: 108px;
    background: rgba(53, 44, 37, 0.94);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 28px rgba(255, 255, 255, 0.44);
}

.entry-line:hover .entry-line__pulse,
.entry-line.is-active .entry-line__pulse {
    opacity: 1;
    border-color: rgba(76, 66, 57, 0.22);
    transform: translate(-50%, -50%) scaleX(1.04);
}

#container.is-auth-open #header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 248, 248, 1) 100%);
    border-bottom-color: #cdcdcd;
    box-shadow: 1px 2px 2px #eee;
}

#container.is-auth-open .entry-stage::before {
    opacity: 0.82;
    transform: scale(1.08);
}

#container.is-auth-open .entry-line__core {
    width: 360px;
    height: 1px;
    background: rgba(88, 76, 66, 0.22);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 28px rgba(255, 255, 255, 0.26);
}

#container.is-auth-open .entry-line__pulse {
    opacity: 0;
}

.auth-hub {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% + 28px));
    width: min(100% - 32px, 420px);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        transform 0.45s ease,
        filter 0.45s ease;
    z-index: 50;
    filter: blur(10px);
}

.auth-hub.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    filter: blur(0);
}

.auth-switch {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    margin-bottom: 16px;
}

.auth-switch__button {
    border: 0;
    background: transparent;
    color: rgba(255, 244, 233, 0.7);
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
}

.auth-switch__button.is-active {
    background: rgba(255, 250, 245, 0.92);
    color: #2d2118;
}

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

@media (max-width: 640px) {
    #nav_area {
        padding: 0;
    }

    #logo a {
        width: 120px;
    }

    .entry-line {
        width: 112px;
    }

    .entry-line__core {
        width: 72px;
    }

    .entry-stage::before {
        width: 300px;
        height: 180px;
    }
}
