:root {
    --ink: #1a1a1a;
    --line: #B2B2B2;
    --field: #D7DEE2;
    --muted: #5c5c5c;
    --bg: #fff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

.brandbar {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 18px 16px 16px;
}

.brand {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0.46em;
    text-indent: 0.46em;
}

.hero {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: center 40%;
}

main {
    width: min(820px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 64px;
}

h1 {
    margin: 0 0 48px;
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0.04em;
}

.must {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.field {
    display: grid;
    grid-template-columns: 18rem 1fr;
    gap: 12px 20px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

#form > .field:first-child,
#form > .errors + .field {
    border-top: 1px solid var(--line);
}

.field-note { align-items: start; }

.field-stack {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
}
.field-stack .label{
    text-align: left;
}
.field-stack .choices{
    justify-content: center;
}

.label {
    font-size: 17px;
}

.req {
    color: #222;
    margin-right: 2px;
}

.containers{
    width: min(1200px, 100%);
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

.control input,
.control select,
.control textarea {
    width: 100%;
    border: 0;
    background: var(--field);
    color: var(--ink);
    font: inherit;
    padding: 10px 12px;
    border-radius: 2px;
}

.control textarea {
    min-height: 88px;
    resize: vertical;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.choice input,
.agree input {
    width: 18px;
    height: 18px;
    accent-color: #111;
}

.manner {
    margin: 48px 0 28px;
    color: #333;
}

.manner h2 {
    margin: 0 0 12px;
    text-align: center;
    font-size:40px;
    letter-spacing: 0.06em;
}

.manner-lead {
    text-align: center;
    margin: 0 0 16px;
    font-size: 26px;
}

.manner-note {
    display: block;
    margin-top: 2px;
    font-size: 0.92em;
}

.manner ul,.manner-end {
    padding-left: 1.2em;
    max-width: 40em;
    font-size: 23px;
    text-align: left;
}

.manner li + li { margin-top: 6px; }

.agree {
    margin-top: 68px;
    padding-top: 38px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.agree a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fine {
    margin: 36px 0 28px;
    text-align: center;
    color: var(--ink);
    font-size: 16px;
}

.publish {
    margin: 28px 0 0;
    font-size: 14px;
    line-height: 1.8;
}

.submit {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid #222;
    background: #fff;
    color: var(--ink);
    font: inherit;
    letter-spacing: 0.28em;
    cursor: pointer;
}

.submit:hover { background: #f6f6f6; }

.submit-back {
    letter-spacing: 0.12em;
    color: #444;
}

.store {
    margin: 48px 0 0;
    text-align: center;
    letter-spacing: 0.04em;
    font-size: 16px;
}

.errors {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fff4f4;
    border: 1px solid #e3b4b4;
    color: #8d1f1f;
    font-size: 16px;
}

.errors-title {
    margin: 0 0 6px;
    font-weight: 700;
}

.confirm-title,
.thanks h2 {
    margin: 8px 0 20px;
    text-align: center;
    font-size: 26px;
}

.confirm { margin: 0 0 28px; }

.confirm > div {
    display: grid;
    grid-template-columns: 18rem 1fr;
    gap: 8px 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.confirm dt { font-weight: 700; }
.confirm dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.thanks {
    text-align: center;
    padding: 12px 0 8px;
}

.thanks a { color: var(--ink); }

@media (max-width: 767px) {
    body { font-size: 16px; }
    main {
        width: calc(100% - 32px);
        padding: 28px 0 48px;
    }
    h1 {
        font-size: 22px;
        letter-spacing: 0;
    }
    .label { font-size: 16px; }
    .manner { margin: 36px 0 20px; }
    .manner h2 {
        font-size: 22px;
        letter-spacing: 0;
    }
    .manner-lead { font-size: 16px; }
    .manner ul,
    .manner-end {
        font-size: 15px;
        padding-left: 1.1em;
    }
    .field,
    .confirm > div {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .choices { gap: 10px 16px; }
    .agree { margin-top: 32px; }
    .fine { font-size: 14px; }
    .submit {
        letter-spacing: 0.12em;
        padding: 12px 8px;
    }
    .store { font-size: 13px; }

    .field-stack .choices{
        text-align: left;
        justify-content: flex-start;
    }
}
