@charset "utf-8";
/*
 * 公式サイト（infmaxai.com）のヒーローをそのまま使ったログイン画面。
 * ナビゲーションバーの寸法は公式サイト index.css から必要分だけ持ってきている。
 */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #050a12;
    color: #dceaf7;
    font-family: "Avenir Next", -apple-system, BlinkMacSystemFont,
        "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 画面が低いときはログインカードが切れないようスクロールを許す */
.hero-stage { min-height: 640px !important; }

/* ---------- ナビゲーションバー（公式サイトと同じ） ---------- */
.zero { width: 100%; max-width: 100%; }

.no1 {
    height: 88px;
    width: 100%;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    overflow: visible;
}

.nav-bar {
    display: block;
    height: 88px;
    width: 100%;
    position: relative;
}

header .no1 .nav-bar .one-first {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none !important;
    color: #fff !important;
    line-height: 1.15;
    font-size: 1.05em;
    font-weight: bold;
    position: absolute !important;
    left: 16px;
    top: 14px;
    z-index: 2;
}

header .no1 .nav-bar .one-first .nav-logo-img {
    display: block;
    width: 135px;
    height: 32px;
    object-fit: contain;
}

header .no1 .nav-bar .one-first .nav-logo-text {
    display: block;
    margin-top: 4px;
    margin-left: 2em;
    line-height: 1.1;
    white-space: nowrap;
}

header .no1 .nav-bar .nav-menu {
    position: absolute !important;
    left: calc(50% - 0.5em);
    top: 40px;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    text-align: center;
}

header .no1 .nav-menu > li {
    display: inline-block;
    font-size: 1.15em;
    vertical-align: middle;
}

header .no1 .nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    width: 120px;
    height: 40px;
    text-decoration: none !important;
    border-left: 1px solid rgba(255, 255, 255, .45);
}

header .no1 .nav-menu > li > a:hover { color: #9096a8 !important; }
header .no1 .nav-menu > li > a.wide { width: 160px; }

/* ---------- ログインカード ---------- */
.hero-brand-glow { bottom: auto !important; top: 21%; }

.login-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%);
    z-index: 6;
    width: 380px;
    max-width: calc(100% - 32px);
    padding: 26px 28px 24px;
    border-radius: 16px;
    background: rgba(6, 16, 30, .62);
    border: 1px solid rgba(120, 200, 255, .3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(40, 140, 255, .18) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-panel h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #eaf6ff;
    text-align: center;
}

.login-panel .lead {
    margin: 0 0 18px;
    font-size: 12px;
    text-align: center;
    color: rgba(190, 220, 245, .7);
    letter-spacing: .04em;
}

.field { position: relative; margin-bottom: 12px; }

.field input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    color: #eaf6ff;
    font-size: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(140, 200, 255, .28);
    border-radius: 10px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input::placeholder { color: rgba(190, 220, 245, .45); }

.field input:focus {
    border-color: rgba(34, 211, 238, .85);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .16);
}

.field .ico {
    position: absolute;
    left: 13px;
    top: 13px;
    width: 18px;
    height: 18px;
    opacity: .7;
    fill: none;
    stroke: #9fd8f5;
    stroke-width: 1.6;
}

.btn-login {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: none;
    border-radius: 10px;
    color: #04212c;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    cursor: pointer;
    background: linear-gradient(90deg, #29e0f5 0%, #1f9ad6 100%);
    box-shadow: 0 8px 24px rgba(34, 190, 240, .3);
    transition: filter .15s ease, transform .1s ease;
}

.btn-login:hover { filter: brightness(1.08); }
.btn-login:active { transform: translateY(1px); }
.btn-login[disabled] { opacity: .6; cursor: default; }

.login-msg {
    display: none;
    margin: 10px 0 0;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    background: rgba(220, 60, 60, .16);
    border: 1px solid rgba(255, 120, 120, .35);
    color: #ffd9d9;
}

.login-foot {
    margin: 14px 0 0;
    font-size: 11px;
    text-align: center;
    color: rgba(170, 205, 235, .5);
    letter-spacing: .04em;
}

/* 副ボタン（建設会社新規登録）。App のログイン画面の枠線ボタンに合わせる */
.btn-ghost {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 42px;
    margin-top: 10px;
    box-sizing: border-box;
    border: 1px solid rgba(190, 220, 245, .5);
    border-radius: 10px;
    background: transparent;
    color: #dbeeff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.btn-ghost:hover {
    border-color: rgba(34, 211, 238, .8);
    background: rgba(34, 211, 238, .08);
}

/* ---------- 建設会社新規登録（申込フォーム） ---------- */
/* 項目が多く縦に伸びるため、ログインカードの絶対配置ではなく通常フローで中央寄せする */
.apply-stage {
    position: relative;
    z-index: 6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 16px 40px;
    box-sizing: border-box;
}

.apply-stage .login-panel {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 420px;
}

.apply-note {
    margin: 4px 0 10px;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(200, 226, 248, .78);
}

.apply-legal {
    margin: 0 0 14px;
    font-size: 12px;
}

.apply-legal a {
    color: #7fd8f7;
    text-decoration: underline;
}

.apply-legal span {
    color: rgba(170, 205, 235, .55);
    margin: 0 6px;
}

.apply-msg {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.6;
    background: rgba(220, 60, 60, .16);
    border: 1px solid rgba(255, 120, 120, .35);
    color: #ffd9d9;
}

.apply-msg.ok {
    background: rgba(40, 200, 160, .14);
    border-color: rgba(80, 230, 190, .38);
    color: #d3fff4;
}

@media screen and (max-width: 640px) {
    .apply-stage { padding: 76px 14px 32px; }
    .apply-stage .login-panel { width: 100%; }
}

/* ---------- スライダー認証 ---------- */
.slider-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 8, 16, .72);
    backdrop-filter: blur(4px);
}

.slider-mask.show { display: flex; }

.slider-box {
    width: 340px;
    padding: 18px;
    border-radius: 14px;
    background: #0a1524;
    border: 1px solid rgba(120, 200, 255, .28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}

.slider-box .sb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: #cfe6f8;
}

.slider-box .sb-head a { color: #6fd7f0; text-decoration: none; font-size: 12px; }

.slider-stage {
    position: relative;
    width: 300px;
    height: 160px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #04101f;
}

.slider-stage img.bg { display: block; width: 300px; height: 160px; }

.slider-stage img.piece {
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
}

.slider-track {
    position: relative;
    width: 300px;
    height: 40px;
    margin: 14px auto 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(140, 200, 255, .22);
    user-select: none;
}

.slider-track .tip {
    line-height: 38px;
    text-align: center;
    font-size: 12px;
    color: rgba(190, 220, 245, .55);
}

.slider-handle {
    position: absolute;
    left: 0;
    top: -1px;
    width: 44px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(180deg, #2ad4ef, #1c93cf);
    box-shadow: 0 4px 14px rgba(34, 190, 240, .35);
    cursor: grab;
    touch-action: none;
}

.slider-handle::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 13px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #04212c;
    border-right: 2px solid #04212c;
    transform: rotate(45deg);
}

.slider-track.ok .slider-handle { background: linear-gradient(180deg, #59d98a, #2f9c5c); }
.slider-track.ng .slider-handle { background: linear-gradient(180deg, #ef6b6b, #c33b3b); }

.slider-note {
    margin: 10px 0 0;
    font-size: 11.5px;
    text-align: center;
    color: rgba(190, 220, 245, .55);
    min-height: 16px;
}

@media screen and (max-width: 900px) {
    header .no1 .nav-menu > li > a { width: 92px; font-size: 12px; }
    header .no1 .nav-menu > li > a.wide { width: 108px; font-size: 12px; }
    .hero-brand-glow { top: 17%; }
    .login-panel { padding: 20px 18px; }
}

/* スマホではメニューが収まらないのでロゴだけ残す */
@media screen and (max-width: 640px) {
    header .no1 .nav-bar .nav-menu { display: none; }
    .hero-brand-glow { top: 15%; }
    .login-panel { top: 44%; }
}
