:root {
    /* あたたかい黄〜オレンジ系に寄せたカラーパレット */
    --bg: #fff7e0;
    --bg-soft: #fff2d0;
    --sidebar: #ffe3b3;
    --accent: #ff9e80;
    --accent-soft: #ffe3c4;
    --text-main: #40302a;
    --text-muted: #7b5b4a;
    --card-bg: #ffffff;
    --border-subtle: #ffe0a0;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 40px rgba(255, 158, 128, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Noto Sans JP", sans-serif;
    background: var(--bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ====== ユーティリティクラス ====== */

.text-center {
    text-align: center;
}

.text-error {
    color: #d32f2f;
}

.text-muted {
    color: #666;
}

.padding-lg {
    padding: 40px;
}

.padding-md {
    padding: 24px;
}

.margin-bottom-md {
    margin-bottom: 24px;
}

.margin-bottom-sm {
    margin-bottom: 16px;
}

.margin-top-sm {
    margin-top: 16px;
}

.card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button {
    padding: 10px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.button:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.button-primary {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 16px;
}

.button-back {
    margin-bottom: 24px;
}

.button-back-search {
    margin-bottom: 24px;
    padding: 10px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.button-back-search:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.button-back-mypage {
    margin-bottom: 24px;
    padding: 10px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.button-back-mypage:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container-narrow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    margin-bottom: 16px;
}

.profile-name {
    margin: 0 0 16px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
}

.profile-label {
    font-weight: bold;
}

.table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    margin-top: 8px;
}

.table thead tr {
    background: #f5f5f5;
}

.table th,
.table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.table th {
    font-weight: bold;
}

.table th[width="20%"] {
    width: 20%;
}

.table th[width="25%"] {
    width: 25%;
}

.table th[width="40%"] {
    width: 40%;
}

.table th[width="50%"] {
    width: 50%;
}

.table th[width="60%"] {
    width: 60%;
}

.hidden {
    display: none;
}
