/* Codex案「ふたつの入口」。装飾はSVG、文言とリンクはHTMLで拡大・縮小に対応する。 */
.registration-guide {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    box-sizing: border-box;
    width: 360px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 18px 18px 18px 20px;
    border: 1px solid #438970;
    border-left: 3px solid #154b3e;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff 60%, #fbfcfb);
    color: #154b3e;
    box-shadow: 0 2px 5px rgb(21 75 62 / 12%), 0 12px 32px rgb(21 75 62 / 13%);
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* メニューのオーバーレイ中と閉じた後は、リンクを操作対象からも外す。 */
.registration-guide[hidden],
.is-open .registration-guide {
    display: none;
}

.registration-guide__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.registration-guide__title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.registration-guide__close {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #154b3e;
    cursor: pointer;
}

.registration-guide svg {
    fill: none;
    stroke: currentcolor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.registration-guide__close svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.6;
}

.registration-guide__entry {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 12px 16px;
    border: 1.5px solid #19835d;
    border-radius: 9px;
    color: #154b3e;
    text-decoration: none;
    /* サイト共通のリンクの透過・全属性アニメーションで文字やフォーカス枠を薄めない。 */
    opacity: 1;
    transition: none;
}

.registration-guide__entry + .registration-guide__entry {
    margin-top: 12px;
}

.registration-guide__entry:hover {
    opacity: 1;
}

.registration-guide__entry--user {
    background: linear-gradient(115deg, #0b805e, #128563);
    color: #fff;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}

.registration-guide__entry--user:hover {
    background: #096e50;
    color: #fff;
}

.registration-guide__entry--agent:hover,
.registration-guide__close:hover {
    background: #f1f7f3;
    color: #154b3e;
}

.registration-guide__entry:focus-visible,
.registration-guide__close:focus-visible {
    outline: 3px solid #154b3e;
    outline-offset: 3px;
}

.registration-guide__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 44px;
}

.registration-guide .registration-guide__windows {
    fill: currentcolor;
    stroke: none;
}

.registration-guide__text {
    flex: 1;
    min-width: 0;
}

.registration-guide__audience,
.registration-guide__action {
    display: block;
    line-height: 1.4;
}

.registration-guide__audience {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.registration-guide__action {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.registration-guide__arrow {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #94c51c;
    color: #fff;
}

.registration-guide__arrow svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.8;
}

@media (max-width: 767px) {
    .registration-guide {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: 320px;
        padding: 14px;
    }

    .registration-guide__title {
        font-size: 16px;
    }

    .registration-guide__header {
        margin-bottom: 12px;
    }

    .registration-guide__entry {
        min-height: 76px;
        gap: 10px;
        padding: 10px;
    }

    .registration-guide__icon {
        flex-basis: 32px;
        width: 32px;
        height: 36px;
    }

    .registration-guide__audience {
        font-size: 12px;
    }

    .registration-guide__action {
        font-size: 18px;
        letter-spacing: 0;
    }

    .registration-guide__arrow {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }
}

@media print {
    .registration-guide {
        display: none;
    }
}
