:root { --amend-cyan: #31535c; --amend-amber: #7b5b2d; --amend-panel: #f8f8f4; --amend-line: #aeb6b6; }
html { min-width: 320px; background: #e5e7e5; }
body { margin: 0; min-width: 320px; background: linear-gradient(rgba(255,255,255,.2), transparent 260px), #e5e7e5; color: #202728; font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", sans-serif; font-size: 16px; }
.amend-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 112px 0 100px; }
.amend-hero { display: grid; gap: 10px; padding: 28px 0 26px; border-bottom: 4px solid #eef7f8; }
.amend-hero p, .amend-policy header p, .access-panel header p, .record-head p, .withdraw-entry header p, .change-stages header p { margin: 0; color: var(--amend-cyan); font-size: .72rem; font-weight: 900; letter-spacing: .16em; }
.amend-hero h1 { margin: 0; font-family: "Yu Mincho", serif; font-size: clamp(2.7rem, 7vw, 5.8rem); line-height: 1; }
.amend-hero span { color: #586366; }
.reset-boundary { display: grid; grid-template-columns: 230px 1fr; gap: 24px; margin: 20px 0; padding: 18px 20px; border: 1px solid #c4b28d; border-left: 5px solid var(--amend-amber); background: #f2eee2; }
.reset-boundary b { color: var(--amend-amber); }
.reset-boundary p { margin: 0; color: #586366; line-height: 1.75; }
.amend-policy, .access-panel, .amend-record, .change-stages { margin-top: 20px; padding: 24px; border: 1px solid var(--amend-line); background: var(--amend-panel); }
.amend-policy header h2, .access-panel header h2, .record-head h2, .change-stages header h2 { margin: 4px 0 0; font-size: 1.55rem; }
.amend-policy > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; background: var(--amend-line); }
.amend-policy article { padding: 18px; background: #eff1ee; }
.amend-policy article span { color: var(--amend-amber); font-size: .66rem; font-weight: 900; }
.amend-policy article b { display: block; margin-top: 4px; }
.amend-policy article p { margin: 8px 0 0; color: #586366; font-size: .84rem; line-height: 1.7; }
.access-panel form { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 12px; margin-top: 18px; align-items: end; }
.access-panel label, .partner-fields label, .calls-field label, .change-note { display: grid; gap: 7px; }
.access-panel label span, .partner-fields label span, .calls-field label span, .change-note > span { font-size: .75rem; font-weight: 900; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #778386; border-radius: 0; background: #fff; color: #202728; }
textarea { resize: vertical; }
button { min-height: 48px; padding: 10px 18px; border: 0; background: var(--amend-cyan); color: #fff; font-weight: 900; cursor: pointer; }
body.official-site .amend-shell button:not(:disabled) { color: #fff; }
body.official-site .amend-shell button:disabled { color: #586366; }
button:disabled { border: 1px solid #778386; background: #e2e5e2; color: #586366; opacity: 1; cursor: not-allowed; }
.access-panel > p, [data-amend-status] { margin: 13px 0 0; color: #586366; font-size: .8rem; }
.record-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--amend-line); }
.record-head dl { display: flex; gap: 20px; margin: 0; }
.record-head dl div { display: grid; gap: 2px; }
.record-head dt { color: #586366; font-size: .68rem; }
.record-head dd { margin: 0; color: var(--amend-amber); font-weight: 900; }
.amend-form { display: grid; gap: 20px; margin-top: 22px; }
.amend-form fieldset { margin: 0; padding: 18px; border: 1px solid var(--amend-line); }
.amend-form legend { padding: 0 8px; font-weight: 900; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode-card { position: relative; display: block; min-height: 160px; padding: 16px; border: 1px solid var(--amend-line); background: #eff1ee; }
.mode-card input { position: absolute; top: 12px; right: 12px; width: auto; min-height: 0; }
.mode-card span { display: grid; gap: 8px; }
.mode-card small { color: var(--amend-cyan); font-size: .64rem; font-weight: 900; }
.mode-card b { max-width: 85%; line-height: 1.45; }
.mode-card em { color: #586366; font-size: .78rem; font-style: normal; line-height: 1.7; }
.mode-card:has(input:checked) { border-color: var(--amend-cyan); box-shadow: inset 0 -4px 0 var(--amend-cyan); }
.partner-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.partner-fields .wide { grid-column: 1 / -1; }
.partner-fields small, .change-note small { color: #697477; font-weight: 400; }
.calls-field > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.joint-check { display: flex; gap: 12px; align-items: start; padding: 16px; border: 1px solid rgba(255,189,114,.35); }
.joint-check input { width: auto; min-height: 0; margin-top: 5px; }
.amend-actions { display: flex; align-items: stretch; gap: 10px; }
.amend-actions a { display: grid; place-items: center; padding: 10px 18px; border: 1px solid var(--amend-line); color: #202728; text-decoration: none; font-weight: 900; }
[data-amend-status].is-success { color: #35654f; }
.withdraw-entry { margin-top: 26px; padding: 20px; border: 1px solid #b6756d; border-left: 5px solid #9b5047; background: #f7eeea; }
.withdraw-entry header h3 { margin: 4px 0 0; font-size: 1.15rem; }
.withdraw-entry > p { margin: 12px 0 0; color: #586366; font-size: .84rem; line-height: 1.75; }
.withdraw-entry form { display: grid; gap: 14px; margin-top: 18px; }
.withdraw-note { display: grid; gap: 7px; }
.withdraw-note > span { font-size: .75rem; font-weight: 900; }
.withdraw-note small { color: #697477; font-weight: 400; }
.withdraw-check { display: flex; gap: 12px; align-items: start; padding: 14px; border: 1px solid rgba(155,80,71,.4); background: #fff; font-size: .84rem; line-height: 1.65; }
.withdraw-check input { flex: none; width: auto; min-height: 0; margin-top: 5px; }
.withdraw-actions { display: flex; gap: 10px; }
.withdraw-actions button { background: #803e38; }
.withdraw-actions a { display: grid; place-items: center; padding: 10px 18px; border: 1px solid #b6756d; color: #6f3530; text-decoration: none; font-weight: 900; }
[data-withdraw-status] { margin: 13px 0 0; color: #6f3530; font-size: .8rem; }
[data-withdraw-status].is-success { color: #35654f; }
.withdraw-entry.is-withdrawn { border-color: #779387; border-left-color: #47705d; background: #edf4ef; }
.change-stages ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 18px 0 0; padding: 0; background: var(--amend-line); list-style: none; }
.change-stages li { display: grid; gap: 6px; padding: 18px; background: #eff1ee; }
.change-stages li b { color: var(--amend-amber); }
.change-stages li span { color: #586366; font-size: .84rem; }
[hidden] { display: none !important; }
@media (max-width: 780px) { .amend-shell { width: min(100% - 24px, 1180px); padding-top: 88px; } .reset-boundary, .access-panel form, .amend-policy > div, .mode-grid, .partner-fields, .calls-field > div, .change-stages ol { grid-template-columns: 1fr; } .record-head { align-items: start; flex-direction: column; } .record-head dl { flex-wrap: wrap; } .amend-actions, .withdraw-actions { flex-direction: column; } }
