* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #1f2933;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}

.page {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.header {
    margin-bottom: 22px;
}

.club {
    margin: 0 0 6px;
    font-size: 14px;
    color: #6b7280;
}

h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 750;
}

h2 {
    margin: 0 0 20px;
    font-size: 22px;
}

.selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.selector-button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid #c9d2dc;
    border-radius: 8px;
    padding: 0 18px;
    background: #fff;
    color: #1f2933;
    text-decoration: none;
    font-weight: 700;
}

.selector-button.active,
button {
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
}

.notice,
.form {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    padding: 24px;
}

.notice p {
    margin: 0;
}

.form-note {
    margin: 4px 0 18px;
    padding: 12px 14px;
    border-left: 4px solid #0f766e;
    background: #eef7f5;
    color: #1f2933;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

.field.wide {
    grid-column: 1 / -1;
}

.field span {
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #c9d2dc;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.date-parts {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 8px;
}

textarea {
    resize: vertical;
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

button {
    cursor: pointer;
    font-size: 16px;
}

.complete-panel {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    padding: 18px;
}

.pdf-preview {
    width: min(100%, 860px);
    margin: 0 auto;
    border: 1px solid #c9d2dc;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f6;
    line-height: 0;
}

.pdf-preview canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
}

.pdf-preview-error {
    margin: 0;
    padding: 18px;
    line-height: 1.7;
    color: #b42318;
    background: #fff7f5;
}

.complete-message {
    margin: 22px 0 0;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #0f766e;
}

.complete-note {
    max-width: 720px;
    margin: 14px auto 0;
    text-align: center;
    font-size: 17px;
    line-height: 1.8;
    color: #27313d;
}

.complete-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
}

.top-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid #0f766e;
    border-radius: 8px;
    padding: 0 22px;
    background: #0f766e;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.top-button.secondary {
    background: #fff;
    color: #0f766e;
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 20px, 1080px);
        padding-top: 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .notice,
    .form {
        padding: 18px;
    }

    .selector-button {
        width: 100%;
    }

    .date-parts {
        grid-template-columns: 1fr;
    }

    .complete-panel {
        padding: 12px;
    }

    .top-button {
        width: 100%;
    }
}
