* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #ededed;
    color: #191919;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
    font: inherit;
}

a {
    -webkit-tap-highlight-color: transparent;
}

.app {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.headline {
    margin: 0;
    padding: 15px 20px 13px;
    background: #f7f7f7;
    border-bottom: 1px solid #ededed;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.headline.sub {
    font-size: 15px;
    font-weight: 400;
    color: #222;
}

.rows {
    background: #fff;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 16px;
    border-bottom: 1px solid #ededed;
    color: #191919;
    text-decoration: none;
    line-height: 1.45;
}

.row:active {
    background: #f3f3f3;
}

.chevron {
    width: 8px;
    height: 14px;
    flex: 0 0 auto;
    color: #c8c8c8;
}

.notice-link {
    margin-top: auto;
    padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
    text-align: center;
    color: #576b95;
    text-decoration: none;
    font-size: 15px;
}

.list-page,
.form-page {
    min-height: 100vh;
}

.form-body {
    padding-bottom: 12px;
}

.field-label,
.upload-line {
    display: block;
    margin: 18px 16px 8px;
    font-size: 16px;
    color: #191919;
}

.req {
    color: #fa5151;
    margin-right: 4px;
}

.form-body input[type="tel"],
.form-body textarea {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #f7f7f7;
    color: #191919;
    padding: 14px 16px;
    outline: none;
}

.form-body textarea {
    min-height: 104px;
    resize: none;
    line-height: 1.5;
}

.form-body input::placeholder,
.form-body textarea::placeholder {
    color: #b2b2b2;
}

.upload-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.count {
    color: #576b95;
}

.optional {
    color: #b2b2b2;
    font-size: 14px;
}

.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 16px;
}

.tile,
.preview {
    position: relative;
    width: 148px;
    height: 148px;
    border-radius: 4px;
    overflow: hidden;
}

.tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px dashed #d9d9d9;
    cursor: pointer;
}

.tile input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.plus {
    color: #333;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.preview {
    background: #f3f4f6;
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    line-height: 22px;
    padding: 0;
    cursor: pointer;
}

.submit {
    display: block;
    width: calc(100% - 32px);
    height: 48px;
    margin: 28px 16px 20px;
    border: 0;
    border-radius: 8px;
    background: #07c160;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.submit:active {
    background: #06ae56;
}

.submit:disabled {
    opacity: 0.7;
}

.form-errors {
    margin: 12px 16px 0;
    color: #fa5151;
    font-size: 13px;
    line-height: 1.5;
}

.form-errors p {
    margin: 0 0 4px;
}

.back-bar {
    margin-top: auto;
    position: sticky;
    bottom: 0;
    background: #f7f7f7;
    border-top: 1px solid #ededed;
    text-align: center;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}

.back-bar a {
    color: #576b95;
    text-decoration: none;
    font-size: 16px;
}

.notice-body {
    padding: 8px 20px 24px;
    color: #333;
    line-height: 1.7;
    font-size: 15px;
}

.notice-body p {
    margin: 14px 0;
}

.done-page {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 28px;
}

.done-mark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #07c160;
    color: #fff;
    font-size: 34px;
    line-height: 64px;
    margin-bottom: 18px;
}

.done-page h1 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
}

.done-id,
.done-text {
    margin: 8px 0;
    color: #666;
    line-height: 1.6;
}

.done-home {
    display: inline-block;
    margin-top: 22px;
    color: #576b95;
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (hover: hover) {
    .row:hover {
        background: #fafafa;
    }
}

@media (max-width: 360px) {
    .headline {
        font-size: 15px;
    }

    .tile,
    .preview {
        width: 120px;
        height: 120px;
    }
}
