:root {
    --blue: #668da1;
    --blue-dark: #3f6477;
    --blue-pale: #edf4f7;
    --ink: #263238;
    --muted: #65747c;
    --line: #dbe5e9;
    --danger: #a44f4f;
    --success: #4f7861;
    --white: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: #f6f8f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    line-height: 1.8;
}

a { color: var(--blue-dark); }

.shell {
    width: min(760px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 60px;
}

.card {
    margin-bottom: 18px;
    padding: clamp(22px, 5vw, 38px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(57, 81, 93, .06);
}

.hero { border-top: 6px solid var(--blue); }
.narrow { max-width: 520px; margin-inline: auto; }

h1, h2, h3 { line-height: 1.4; }
h1 { margin: 0 0 20px; font-size: clamp(1.65rem, 6vw, 2.5rem); }
h2 { margin-top: 0; font-size: 1.3rem; }

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; }
.steps span {
    display: grid;
    flex: 0 0 34px;
    height: 34px;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    border-radius: 50%;
    font-weight: 700;
}

.form { display: grid; gap: 14px; }
.form label { font-weight: 700; }
input[type="url"], input[type="password"] {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #b9c8cf;
    border-radius: 10px;
    font: inherit;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 8px; }

button, .button {
    display: inline-block;
    padding: 14px 20px;
    color: var(--white);
    background: var(--blue-dark);
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.secondary { color: var(--blue-dark); background: var(--blue-pale); }
.danger { background: var(--danger); }
.small { padding: 9px 14px; }

.alert { padding: 12px 14px; background: #fff3e7; border-radius: 10px; }
.alert.success { background: #edf7f0; }
.note { color: var(--muted); font-size: .9rem; }
.admin-link { text-align: center; font-size: .85rem; }

.status-card { text-align: center; }
.status-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
}
.waiting { background: var(--blue-pale); color: var(--blue-dark); }
.approved { background: #e8f4ec; color: var(--success); }
.rejected { background: #f9eaea; color: var(--danger); }

.review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }

.admin-head, .request-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.request { padding-block: 22px; }
.pill { padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill.pending { background: #fff1d9; }
.pill.approved { background: #e8f4ec; color: var(--success); }
.pill.rejected { background: #f9eaea; color: var(--danger); }

.article { padding: clamp(20px, 5vw, 46px); }
.article h1 { font-size: clamp(1.6rem, 5.5vw, 2.25rem); }
.article h2 { margin-top: 2.5em; padding-bottom: .35em; border-bottom: 2px solid var(--blue-pale); }
.article h3 { margin-top: 2em; color: var(--blue-dark); }
.article li { margin: .35em 0; }
.article hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }

@media (max-width: 520px) {
    .shell { width: min(100% - 20px, 760px); padding-top: 10px; }
    .card { border-radius: 14px; }
    .review-actions button { width: 100%; }
    .admin-head { align-items: flex-start; }
}
