@charset "utf-8";


/* --------------------------------------------------
    リセット
-------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --------------------------------------------------
    レイアウト
-------------------------------------------------- */
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
}

header img {
    height: 38px;
    width: auto;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

@media (min-width: 600px) {
    header {
        padding: 10px 24px;
        align-items: center;
        justify-content: center;
    }
}


main {
    max-width: 880px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    min-height: calc(100vh - 60px - 20px);
}

@media (min-width: 600px) {
    main {
        padding: 24px 24px 60px;
        min-height: calc(100vh - 60px - 24px);
    }
}

.message-help {
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.8;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

footer {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 26px;
    border-radius: 999px;
    border: 1.5px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.3px;
}

.filter-status {
    margin-bottom: 0.625rem;
}

.form-group {
    margin-bottom: 10px;
}

.input-head {
    padding: 0.5rem 0;
}

.label-required {
    display: inline-block;
    border-radius: 4px;
    font-size: 0.8em;
    padding: 0.125rem 0.625rem;
    margin-left: 0.625rem;
}

.flex-group {
    display: block;
}

@media (min-width: 600px) {
    .flex-group {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .flex-group>* {
        flex: 1;
        min-width: 110px;
    }
}

/* --------------------------------------------------
    スクロールバー
-------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.16);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.28);
}

.mt10 {
    margin-top: 0.625rem;
}
.ml20 {
    margin-left: 1.25rem;
}
.mb10 {
    margin-bottom: 0.625rem;
}


a.btn-clear {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.32);
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.62);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.circle-list-ul li {
    margin-top: 0.3125rem;
}

.error-text {
    color: #d32f2f;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: bold;
}
.post-form input:invalid, 
.post-form select:invalid {
    border-color: #ffcdd2; /* エラー時は少し背景を赤くしても良い */
}

/* モーダル背景 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

/* モーダル本体 */
.modal-content {
    background: white;
    color: #333;
    max-width: 500px;
    width: 100%;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 { margin: 0; font-size: 1.2rem; }

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
}

.help-section h4 {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-section ol {
    padding-left: 20px;
    font-size: 0.95rem;
}

.v-middle { vertical-align: middle; }