:root {
    --brand: #10b3b8;
    --primary: #1765ad;
    --text: #303030;
    --muted: #c9c9c9;
    --line: #e8e8e8;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: var(--text);
    background: #fff;
}

.page {
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
}

.login-content,
.guide-view {
    position: relative;
    width: min(100%, 430px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
}

.login-content {
    padding: 78px 36px 34px;
}

.brand {
    color: var(--brand);
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    letter-spacing: 0;
}

.hint {
    height: 18px;
    margin: 92px 0 0;
    color: #eeeeee;
    font-size: 10px;
    text-align: center;
}

.login-form {
    margin-top: 28px;
}

.field-row {
    height: 68px;
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.field-row span {
    font-size: 19px;
    font-weight: 600;
}

.field-row input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #333;
    text-align: right;
    font: inherit;
    font-size: 18px;
    background: transparent;
}

.field-row input::placeholder {
    color: var(--muted);
}

.primary-button {
    height: 64px;
    border: 0;
    border-radius: 32px;
    color: #fff;
    background: var(--primary);
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.primary-button:disabled {
    background: #b4b4b4;
    cursor: default;
}

.primary-button:not(:disabled):active {
    transform: scale(.98);
}

.next-button {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: max(34px, env(safe-area-inset-bottom));
}

.guide-view {
    padding: 46px 28px 112px;
}

.guide-content {
    padding-bottom: 26px;
}

.guide-text {
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    font: inherit;
    font-size: 16px;
    line-height: 1.58;
    font-weight: 450;
    letter-spacing: 0;
}

.guide-text h1,
.guide-text h2,
.guide-text h3,
.guide-text p {
    margin: 0 0 12px;
}

.guide-text h1 {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.guide-text h2 {
    margin-top: 26px;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 780;
}

.guide-text h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 760;
}

.guide-text strong {
    font-weight: 760;
}

.guide-text .note {
    font-size: 13px;
    line-height: 1.48;
    font-weight: 450;
}

.guide-text .step {
    font-weight: 450;
}

.guide-text figure {
    margin: 18px 0;
}

.guide-text img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #ededed;
}

.guide-shot-list {
    margin: 22px 0 30px;
}

.guide-shot {
    margin: 0 0 28px;
}

.guide-shot img {
    margin: 0;
}

.guide-shot figcaption {
    margin: 8px 0 0;
    color: #303030;
    text-align: center;
    font-size: 14px;
    line-height: 1.38;
    font-weight: 620;
}

.guide-shot figcaption p {
    margin: 0;
}

.guide-button {
    position: fixed;
    left: max(34px, calc((100vw - 430px) / 2 + 34px));
    right: max(34px, calc((100vw - 430px) / 2 + 34px));
    bottom: max(34px, env(safe-area-inset-bottom));
    z-index: 2;
}

@media (min-width: 768px) {
    .login-content,
    .guide-view {
        width: 390px;
    }

    .guide-button {
        left: calc((100vw - 390px) / 2 + 34px);
        right: calc((100vw - 390px) / 2 + 34px);
    }
}
