@charset "UTF-8";

/* =========================
   Base
========================= */
html {
    font-size: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #222222;
    background: #f7f7f7;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.6;
}

a {
    color: #0b57d0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

hr {
    border: 0;
    border-top: 1px solid #dddddd;
    margin: 24px 0;
}

/* =========================
   Layout
========================= */
.layout-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.layout-header {
    margin-bottom: 16px;
}

.layout-main {
    margin-bottom: 32px;
}

.layout-section {
    margin-bottom: 24px;
}

.layout-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.layout-grid {
    display: grid;
    gap: 20px;
}

.layout-divider {
    margin: 24px 0;
}

/* =========================
   Text / Titles
========================= */
.page-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
}

.page-subtitle {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.section-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

.section-subtitle {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.text {
    margin: 0 0 12px;
}

.text-note {
    color: #555555;
    font-size: 14px;
}

.text-meta {
    color: #444444;
    font-size: 14px;
}

.text-link-wrap {
    margin-top: 8px;
}

/* =========================
   Shared Panels
========================= */
.admin-header,
.public-header {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 16px;
}

.admin-main,
.public-main {
    background: transparent;
}

.admin-section,
.public-section {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 16px;
}

.admin-card,
.public-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 16px;
}

/* =========================
   Form
========================= */
.form {
    margin: 0;
}

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

.form-label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.4;
    color: #222222;
    background: #ffffff;
    border: 1px solid #bbbbbb;
    border-radius: 6px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0b57d0;
    box-shadow: 0 0 0 2px rgba(11, 87, 208, 0.15);
}

.input-short {
    max-width: 140px;
}

.input-medium {
    max-width: 320px;
}

.input-long {
    max-width: 640px;
}

.textarea-note,
.textarea-result-note {
    min-height: 88px;
}

.form-actions {
    margin-top: 12px;
}

/* =========================
   Buttons / Links
========================= */
.button {
    display: inline-block;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #999999;
    border-radius: 6px;
    background: #f0f0f0;
    color: #222222;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.button:hover {
    text-decoration: none;
    opacity: 0.9;
}

.button-primary {
    background: #0b57d0;
    border-color: #0b57d0;
    color: #ffffff;
}

.button-secondary {
    background: #ffffff;
    border-color: #999999;
    color: #222222;
}

.button-danger {
    background: #c62828;
    border-color: #c62828;
    color: #ffffff;
}

.link {
    word-break: break-word;
}

.link-back {
    font-weight: 700;
}

/* =========================
   Messages / Errors
========================= */
.message-box,
.error-box {
    margin: 0 0 16px;
}

.message-list,
.error-list {
    margin: 0;
    padding-left: 20px;
}

.message-item,
.error-item {
    margin-bottom: 4px;
}

.error-box,
.error-list,
.error-item,
.field-error {
    color: #c62828;
}

.field-error {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
}

/* =========================
   Status
========================= */
.status {
    display: inline-block;
    font-weight: 700;
}


/* =========================
   Tables
========================= */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.table-head {
    background: #f2f2f2;
}

.table-header-cell,
.table-cell {
    border: 1px solid #cccccc;
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.table-header-cell {
    font-weight: 700;
}

.table-list .table-cell,
.table-list .table-header-cell {
    text-align: center;
}

/* =========================
   Responsive
========================= */
@media (min-width: 768px) {
    .layout-page {
        padding: 24px;
    }

    .page-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 20px;
    }

    .button {
        width: 100%;
    }

    .layout-actions {
        flex-direction: column;
        align-items: stretch;
    }
}