@charset "UTF-8";

:root {
    --bg: #faf9f6;
    --panel: #ffffff;
    --text: #1a1a1a;
    --muted: #8c8c8c;
    --accent: #1a1a1a;
    --border: #e0ddd5;
    --highlight: #f2f0eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 20px;
    font-family: 'Times New Roman', "游明朝", serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 32px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 24px;
}

.hidden {
    display: none !important;
}

input[type="number"] {
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 8px;
    font-size: 16px;
    width: 60px;
    margin-right: 16px;
    outline: none;
    text-align: center;
}

button {
    border-radius: 6px;
    cursor: pointer;
    transition:
        transform 0.08s ease,
        box-shadow 0.08s ease,
        background-color 0.2s,
        opacity 0.2s;
}

button:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

#logoutBtn {
    display: inline-flex;
    margin: 10px 0 0;
    background: transparent;
    color: var(--muted);
    padding: 5px;
}


.room-header {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 16px;
    width: 100%;
}

.card {
    aspect-ratio: 1 / 1;
    background: var(--panel);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.card.has-user {
    background: var(--highlight);
    border-color: var(--accent);
}

.card .num {
    font-size: 20px;
    margin-bottom: 4px;
}

.card .name {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#qrCanvas {
    background: transparent;
    padding: 0;
    border: none;
    display: block;
}

.action-area {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-main {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.action-sub {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

.action-sub button {
    font-size: 11px;
    opacity: 0.85;
}

.lb-header {
    width: 100%;
    max-width: 800px;
    margin-bottom: 24px;
    text-align: center;
}

.lb-header h1 {
    font-size: 24px;
    margin: 0 0 8px;
}

.section h1 {
    font-size: 20px;
    margin-bottom: 40px;
}

.lb-header .description {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 14px;
}

.lb-header .role {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text);
    opacity: 0.85;
}

#titleInput {
    height: 32px;
    line-height: 16px;
    padding: 8px 6px;
}

#startBtn {
    font-weight: bold;
    letter-spacing: 0.15em;
}

.url-box {
    font-size: 12px;
    color: var(--muted);
    word-break: break-all;
    margin: 12px 0;
    padding: 12px 60px 12px 12px;
    min-height: 38px;
    display: flex;
    align-items: center;
    background: #eee;
    border-radius: 4px;
}

#noticeWrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 12px;
    padding-left: 2px;
    border-left: 2px solid var(--border);

}

/* スクロールは“気配”だけ */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;

    max-height: 100px;
    overflow-y: auto;

    padding-right: 12px;
}

.notice-list::-webkit-scrollbar {
    width: 6px;
}

.notice-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.notice-list::-webkit-scrollbar-track {
    background: transparent;
}

.notice-item {
    display: flex;
    flex-direction: column;
    gap: 2px;

    padding: 2px 0 2px 12px;
}

.notice-date {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.notice-message {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
}

.notice-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 4px;
    line-height: 1.2;
}

.service-box {
    margin: 12px auto 0;
    padding: 12px 16px;

    max-width: 800px;
    border: 1px solid var(--border);
    background: var(--highlight);
    border-radius: 6px;
    text-align: left;
}

.service-title {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 6px;
}

.service-description {
    font-size: 12px;
    line-height: 1.55;
    color: var(--text);
}

.disclaimer {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.disclaimer-title {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 8px;
}

.disclaimer-text {
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-nav {
    margin-bottom: 12px;
    text-align: center;
}

.footer-nav a {
    display: inline-block;
    margin: 0 auto;
    font-size: 11px;
    margin-right: 12px;
    color: var(--muted);
    text-decoration: none;
    display: inline-block;
}

.footer-nav a:hover {
    text-decoration: underline;
    text-align: center;
}

.footer-credit {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}

.footer-credit a {
    color: inherit;
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    padding: 24px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.modal-title {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 12px;
}

.modal-body {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text);
    overflow-y: auto;
    padding-right: 8px;
}

.modal-footer {
    margin-top: 20px;
    text-align: right;
    flex-shrink: 0;
}

#authToggleBtn {
    margin-top: 12px;
}

.card-label-title {
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing: 0.25em;
    color: var(--muted);
    text-align: center;
    text-transform: uppercase;
}

.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 10px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
    border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #303030;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #303030;
    opacity: 8%;
}

.service-section {
    border: 1px solid var(--border);
    background: #fff;
    padding: 14px 16px;
    border-radius: 4px;
    margin-top: 12px;
    transition: background-color 0.2s ease;

}

.service-section ul li {
    margin-bottom: 6px;
}

.service-section.is-summary {
    background: #fbfaf7;
}

.service-section-title {
    font-size: 12px;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--highlight);
}

#createRoomBtn {
    margin-top: 6px;
    display: block;
    margin: 14px auto 0;
}

.guide-entry {
    margin-top: 28px;
    margin-bottom: 22px;
    padding: 20px 18px;
    text-align: center;

    background: linear-gradient(180deg,
            #ffffff 0%,
            #fbfaf7 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
}


.guide-entry::before {
    content: "";
    display: block;
    height: 3px;
    width: 64px;
    margin: 0 auto 16px;

    background: linear-gradient(90deg,
            transparent,
            #c9c5b8,
            transparent);
}

.guide-entry .service-section-title {
    background: transparent;
    padding: 0;
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.18em;
}

.guide-text {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.02em;
    color: var(--text);
}

.guide-text span {
    font-size: 14px;
    color: #444;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--muted);
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 8px;
}

.step-badge .num {
    font-weight: bold;
}

.step-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.button-primary {
    background: linear-gradient(#2a2a2a, #1a1a1a);
    color: #fff;
    border: 1px solid #111;

    padding: 14px 36px;
    min-height: 44px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.button-primary:hover {
    background: linear-gradient(#333, #1f1f1f);
}

.button-primary:active {
    transform: translateY(2px);
    box-shadow:
        0 1px 0 #000,
        0 3px 6px rgba(0, 0, 0, 0.2);
}

.button-secondary {
    background: #f8f8f8;
    color: #333;
    border: 1px solid var(--border);

    padding: 12px 28px;
    min-height: 40px;
    font-size: 12px;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.button-secondary:hover {
    background: #eee;
}

.button-tertiary {
    background: #f7f7f7;
    color: #444;
    border: 1px solid var(--border);
    padding: 6px 14px;
    min-height: 30px;
    font-size: 11px;

    border-radius: 4px;
}

.button-tertiary:hover {
    background: #eee;
}

.button-tertiary:active {
    transform: translateY(1px);
}

.button-next {
    background: linear-gradient(#5cb85c, #4cae4c) !important;
    color: #fff !important;
    border-color: #4cae4c !important;
    opacity: 1 !important;
}