/* ユーザー画面 — Noto Sans JP / タイポグラフィ統一 */
:root {
    --color-primary: #2b4c7e;
    --color-primary-dark: #1e3a5f;
    --color-primary-light: #f0f4f9;
    --color-text: #2a2a2a;
    --color-muted: #767676;
    --color-border: #e8e8e8;
    --color-bg: #f7f8fa;
    --color-white: #fff;
    --color-success: #2d6a4f;
    --color-warning: #b45309;
    --color-danger: #b42318;
    --color-info: #1d5a8e;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --font: "Noto Sans JP", sans-serif;

    /* フォントウェイト */
    --fw-body: 500;
    --fw-heading: 700;
    --fw-btn: 700;

    /* フォントサイズ PC */
    --fs-page-title: 32px;
    --fs-section: 24px;
    --fs-card-title: 18px;
    --fs-body: 16px;
    --fs-hint: 14px;
    --fs-icon: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: var(--fw-body);
    font-size: var(--fs-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.75;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--color-primary-dark); }

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 920px;
    margin: 0 auto;
    padding: 18px 24px;
}

.logo {
    font-size: var(--fs-card-title);
    font-weight: var(--fw-heading);
    color: var(--color-text);
    letter-spacing: 0.03em;
}

.logo:hover { color: var(--color-text); }

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-size: var(--fs-hint);
    font-weight: var(--fw-body);
    color: var(--color-muted);
}

.nav-links a:hover { color: var(--color-text); }

.nav-links .btn-primary,
.nav-links .btn-primary:hover {
    color: #fff;
}

/* Main */
main {
    padding: 48px 0 96px;
    min-height: calc(100vh - 140px);
}

/* Page header */
.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    margin: 0 0 10px;
    font-size: var(--fs-page-title);
    font-weight: var(--fw-heading);
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.page-header p {
    margin: 0;
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
    color: var(--color-muted);
    line-height: 1.75;
}

/* Hero */
.hero {
    text-align: center;
    padding: 64px 32px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: var(--fs-page-title);
    font-weight: var(--fw-heading);
    margin: 0 0 16px;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.hero p {
    color: var(--color-muted);
    margin: 0 0 36px;
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 28px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: var(--fs-body);
    font-weight: var(--fw-btn);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg);
    color: var(--color-text);
    border-color: #d0d0d0;
}

.btn-block { width: 100%; }

.btn-sm {
    padding: 8px 16px;
    font-size: var(--fs-hint);
    font-weight: var(--fw-btn);
}

/* Cards */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.card h2 {
    margin: 0 0 28px;
    font-size: var(--fs-section);
    font-weight: var(--fw-heading);
    letter-spacing: 0.02em;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.card-section-title {
    font-size: var(--fs-section);
    font-weight: var(--fw-heading);
    color: var(--color-text);
    letter-spacing: 0.02em;
    margin: 0 0 18px;
}

/* Forms */
.form-group { margin-bottom: 24px; }

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-weight: var(--fw-body);
    font-size: var(--fs-body);
    color: var(--color-text);
}

.form-group .hint {
    font-size: var(--fs-hint);
    font-weight: var(--fw-body);
    color: var(--color-muted);
    margin-top: 6px;
    line-height: 1.65;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--fs-body);
    font-family: inherit;
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.1);
}

textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.7; }

.form-error { color: var(--color-danger); font-size: var(--fs-hint); font-weight: var(--fw-body); margin-top: 6px; }

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input { margin-top: 5px; accent-color: var(--color-primary); }

.checkbox-group label { font-weight: var(--fw-body); font-size: var(--fs-body); }

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
    line-height: 1.65;
    border: 1px solid transparent;
}

.alert .material-symbols-outlined {
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: #f0f7f4;
    color: var(--color-success);
    border-color: #c6e4d4;
}

.alert-error {
    background: #fdf4f3;
    color: var(--color-danger);
    border-color: #f5d0cc;
}

.alert-info {
    background: #f0f5fa;
    color: var(--color-info);
    border-color: #c8d9ea;
}

/* Steps */
.steps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: var(--fs-hint);
    font-weight: var(--fw-body);
    color: var(--color-muted);
    background: var(--color-white);
    border: 1px solid var(--color-border);
}

.step-item .material-symbols-outlined { font-size: 18px; }

.step-item.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.step-item.done {
    color: var(--color-success);
    border-color: #b8d4c4;
    background: #f5faf7;
}

/* Selection cards */
.select-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 14px;
}

.select-card { position: relative; }

.select-card input { position: absolute; opacity: 0; pointer-events: none; }

.select-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    font-size: var(--fs-hint);
    font-weight: var(--fw-body);
    background: var(--color-white);
    transition: border-color 0.15s, background 0.15s;
    height: 100%;
    line-height: 1.5;
}

.select-card label:hover { border-color: #d0d0d0; background: #fafbfc; }

.select-card input:checked + label {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.select-card .material-symbols-outlined {
    font-size: 22px;
    color: var(--color-primary);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 12px;
}

.feature-card label { padding: 16px 12px; }

.category-heading {
    font-size: var(--fs-section);
    font-weight: var(--fw-heading);
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.category-heading:first-of-type { margin-top: 0; }

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: var(--fs-hint);
    font-weight: var(--fw-body);
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.badge-success { background: #edf5f0; color: var(--color-success); border-color: #c6e4d4; }
.badge-warning { background: #fdf6ee; color: var(--color-warning); border-color: #f0d9b8; }
.badge-muted { background: #f5f5f5; color: #666; border-color: #e8e8e8; }
.badge-danger { background: #fdf4f3; color: var(--color-danger); border-color: #f5d0cc; }
.badge-info { background: #f0f5fa; color: var(--color-info); border-color: #c8d9ea; }

/* Status list */
.status-list { list-style: none; padding: 0; margin: 0; }

.status-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
}

.status-list li:last-child { border-bottom: none; }

.status-current {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.status-current dt {
    font-size: var(--fs-hint);
    font-weight: var(--fw-body);
    color: var(--color-muted);
    margin-bottom: 8px;
}

.status-current dd { margin: 0; }

/* Review */
.review-section { margin-bottom: 32px; }

.review-section h3 {
    font-size: var(--fs-card-title);
    font-weight: var(--fw-heading);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.review-dl { margin: 0; }

.review-dl dt {
    font-size: var(--fs-hint);
    font-weight: var(--fw-body);
    color: var(--color-muted);
    margin-top: 16px;
    letter-spacing: 0.03em;
}

.review-dl dt:first-child { margin-top: 0; }

.review-dl dd {
    margin: 4px 0 0;
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
    line-height: 1.65;
}

.review-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-list li {
    padding: 6px 0;
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
    border-bottom: 1px solid #f0f0f0;
}

.review-list li:last-child { border-bottom: none; }

/* Account type toggle */
.account-type-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.account-type-toggle label {
    flex: 1;
    text-align: center;
    padding: 18px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: var(--fw-body);
    font-size: var(--fs-body);
    transition: border-color 0.15s, background 0.15s;
}

.account-type-toggle input { display: none; }

.account-type-toggle label:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Mypage — コンパクトで導線が分かりやすい構成 */
.mypage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.mypage-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mypage-card:hover {
    border-color: #d0d0d0;
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
}

.mypage-card .icon-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: var(--radius);
    color: var(--color-primary);
}

.mypage-card .card-body h3 {
    margin: 0 0 6px;
    font-size: var(--fs-card-title);
    font-weight: var(--fw-heading);
}

.mypage-card .card-body p {
    margin: 0;
    font-size: var(--fs-hint);
    font-weight: var(--fw-body);
    color: var(--color-muted);
    line-height: 1.6;
}

.mypage-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 16px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 28px;
}

.mypage-summary .summary-label {
    font-size: var(--fs-hint);
    font-weight: var(--fw-body);
    color: var(--color-muted);
    margin-bottom: 4px;
}

.mypage-summary .summary-value {
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
}

.verify-url-box {
    margin-top: 28px;
    padding: 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.verify-url-link {
    word-break: break-all;
    font-size: var(--fs-hint);
    font-weight: var(--fw-body);
    margin: 8px 0 0;
}

/* Feature grid (home) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.feature-grid-item {
    background: var(--color-white);
    padding: 32px 24px;
    text-align: center;
}

.feature-grid-item .material-symbols-outlined {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.feature-grid-item p {
    margin: 0;
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
    color: var(--color-muted);
    line-height: 1.65;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.form-actions .btn-secondary { flex: 0 0 auto; }
.form-actions .btn-primary { flex: 1; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 28px 24px;
    color: var(--color-muted);
    font-size: var(--fs-hint);
    font-weight: var(--fw-body);
    border-top: 1px solid var(--color-border);
    background: var(--color-white);
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
    font-size: var(--fs-icon);
    vertical-align: middle;
    line-height: 1;
}

.icon-sm { font-size: 18px !important; }
.icon-md { font-size: 22px !important; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 24px;
    color: var(--color-muted);
}

.empty-state .material-symbols-outlined {
    font-size: 22px;
    color: #c0c0c0;
    margin-bottom: 12px;
}

.empty-state p { margin: 0; font-size: var(--fs-body); font-weight: var(--fw-body); }

.card .alert:last-child { margin-top: 28px; margin-bottom: 0; }

/* Auth / utility */
.auth-body {
    background: var(--color-bg);
    min-height: 100vh;
}

.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-page {
    width: 100%;
    max-width: 520px;
}

.auth-shell {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.auth-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.auth-header {
    margin-bottom: 5px;
}

.auth-card-header {
    text-align: left;
    margin-bottom: 32px;
}

.auth-title {
    margin: 24px 0 12px;
    font-size: 38px;
    font-weight: var(--fw-heading);
    line-height: 1.3;
    color: var(--color-text);
}

.auth-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-muted);
}

.auth-logo,
.site-logo--auth .site-logo-image,
.site-logo-image.auth-logo {
    display: block;
    width: clamp(130px, 18vw, 190px);
    height: auto;
    object-fit: contain;
}

.site-logo--auth {
    display: block;
    justify-content: flex-start;
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field__input {
    width: 100%;
    padding-right: 56px;
}

.password-field__toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.password-field__toggle:hover {
    color: var(--color-primary);
    background: rgba(43, 76, 126, 0.06);
}

.password-field__toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.auth-field-hint {
    margin-top: 8px;
    margin-bottom: 0;
}

.auth-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.12);
}

.auth-input.is-invalid {
    border-color: var(--color-danger);
}

.field-error {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--color-danger);
    line-height: 1.5;
}

.auth-agreement {
    margin: 8px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.auth-consent__checkbox {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.auth-consent__text {
    flex: 1;
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
    line-height: 1.6;
    color: var(--color-text);
}

.auth-consent__text a {
    color: var(--color-primary);
}

.auth-consent:focus-within .auth-consent__checkbox {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.auth-agreement .field-error {
    margin-top: -4px;
}

.auth-form .form-group {
    margin-bottom: 12px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: var(--fw-heading);
    color: var(--color-text);
}

.auth-input {
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 16px;
}

.auth-input::placeholder {
    color: #a0a0a0;
}

.auth-submit {
    min-height: 56px;
    margin-top: 8px;
    border-radius: 14px;
    font-size: 16px;
}

.auth-submit:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.auth-submit:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.site-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.site-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.site-logo--auth .site-logo-image {
    width: clamp(130px, 18vw, 190px);
    max-width: 100%;
}

.site-logo--sidebar .site-logo-image {
    width: clamp(110px, 14vw, 140px);
    max-width: calc(100% - 8px);
}

.site-logo--sidebar {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.member-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--color-border);
}

.member-sidebar .brand {
    padding: 0;
    border-bottom: none;
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: var(--fs-hint);
    font-weight: var(--fw-body);
    color: var(--color-muted);
    line-height: 1.7;
}

.auth-links p {
    margin: 0 0 8px;
}

.auth-links p:last-child {
    margin-bottom: 0;
}

.auth-links-secondary {
    margin-top: 12px;
}

.auth-links a { color: var(--color-primary); }

.auth-back-link-wrap {
    margin: 0 0 24px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: var(--fw-body);
    color: var(--color-primary);
    text-decoration: none;
}

.auth-back-link:hover {
    text-decoration: underline;
}

.auth-terms-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 28px 32px;
}

.auth-panel {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px 28px;
}

.auth-panel > p {
    margin: 0 0 1em;
    line-height: 1.75;
    color: var(--color-text);
}

.auth-panel > p:last-child {
    margin-bottom: 0;
}

.auth-panel .alert {
    margin-bottom: 20px;
}

.auth-panel .verify-url-box {
    margin-top: 20px;
}

.auth-form--inline {
    margin-top: 24px;
}

.auth-form .account-type-toggle {
    margin-bottom: 20px;
}

.auth-terms-body {
    line-height: 1.8;
    font-size: 15px;
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.auth-terms-body h2,
.auth-terms-body h3,
.terms-content h2,
.terms-content h3 {
    font-weight: var(--fw-heading);
    margin: 1.75em 0 0.75em;
    line-height: 1.45;
    color: var(--color-text);
}

.auth-terms-body h2:first-child,
.auth-terms-body h3:first-child,
.terms-content h2:first-child,
.terms-content h3:first-child {
    margin-top: 0;
}

.auth-terms-body p,
.terms-content p {
    margin: 0 0 1em;
}

.auth-terms-body ul,
.auth-terms-body ol,
.terms-content ul,
.terms-content ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.auth-terms-body li,
.terms-content li {
    margin-bottom: 0.5em;
}

.form-resend { margin-top: 28px; }

.select-cards-compact {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.mypage-section { margin-bottom: 32px; }

.mypage-section:last-child { margin-bottom: 0; }

.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    margin: 0 0 12px;
    font-size: var(--fs-page-title);
    font-weight: var(--fw-heading);
}

.error-page p {
    margin: 0 0 28px;
    font-size: var(--fs-body);
    color: var(--color-muted);
}

.form-inline { display: inline; }

/* 必須ラベル */
.label-required {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: var(--fw-heading);
    color: var(--color-danger);
    background: #fdf4f3;
    border: 1px solid #f5d0cc;
    border-radius: 4px;
    vertical-align: middle;
    line-height: 1.5;
}

/* 同意チェックボックス */
.agreement-checkboxes {
    margin: 8px 0 24px;
}

.agreement-checkboxes .agreement-item {
    margin-bottom: 6px;
}

.agreement-checkboxes .agreement-item:last-child {
    margin-bottom: 0;
}

/* 会員エリア — 左サイドメニュー + 右メイン */
.member-body {
    background: var(--color-bg);
}

.member-wrapper {
    display: flex;
    min-height: 100vh;
}

.member-sidebar {
    width: 240px;
    background: var(--color-white);
    border-right: 1px solid var(--color-border);
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 200;
    transition: transform 0.25s;
}

.member-sidebar .brand {
    padding: 22px 20px;
    border-bottom: 1px solid var(--color-border);
}

.member-sidebar .brand a {
    font-size: var(--fs-card-title);
    font-weight: var(--fw-heading);
    color: var(--color-text);
    text-decoration: none;
}

.member-sidebar nav { padding: 12px 0; }

.member-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    color: var(--color-muted);
    text-decoration: none;
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
    transition: background 0.15s, color 0.15s;
}

.member-sidebar nav a .material-symbols-outlined {
    font-size: var(--fs-icon);
    color: #aaa;
}

.member-sidebar nav a:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.member-sidebar nav a:hover .material-symbols-outlined { color: var(--color-primary); }

.member-sidebar nav a.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: var(--fw-heading);
}

.member-sidebar nav a.active .material-symbols-outlined { color: var(--color-primary); }

.member-main {
    flex: 1;
    margin-left: 240px;
    min-width: 0;
}

.member-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.member-header .page-title {
    font-size: 22px;
    font-weight: var(--fw-heading);
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.member-content {
    padding: 28px;
    max-width: 920px;
}

.member-content-narrow {
    max-width: 640px;
}

.member-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: 4px;
}

.features-undecided { margin-bottom: 24px; }

.terms-content {
    line-height: 1.85;
}

/* Hidden fields for JS toggle */
.field-corporate, .field-individual { display: none; }
body[data-account-type="corporate"] .field-corporate { display: block; }
body[data-account-type="individual"] .field-individual { display: block; }

/* Responsive — 会員エリア定義の後に配置（SPで margin-left が上書きされるよう） */
@media (max-width: 640px) {
    :root {
        --fs-page-title: 24px;
        --fs-section: 20px;
        --fs-card-title: 16px;
        --fs-body: 15px;
        --fs-hint: 13px;
        --fs-icon: 20px;
    }

    main { padding: 32px 0 64px; }
    .hero { padding: 40px 20px; }
    .card { padding: 28px 22px; }
    .select-cards { grid-template-columns: repeat(2, 1fr); }
    .steps { flex-direction: column; align-items: stretch; }
    .account-type-toggle { flex-direction: column; }
    .feature-grid { grid-template-columns: 1fr; }
    .mypage-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .form-actions .btn-primary { flex: none; }

    .member-sidebar { transform: translateX(-100%); }
    .member-sidebar.open { transform: translateX(0); box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08); }
    .member-main { margin-left: 0; }
    .member-toggle { display: flex; align-items: center; }
    .member-content { padding: 20px 16px; }
    .member-header { padding: 14px 16px; }
    .member-header .page-title { font-size: 19px; }
}

/* サービス作成6ステップ — 追加スタイル（既存デザイン準拠） */
.service-create-content {
    width: 100%;
    max-width: 100%;
}
.steps-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
    max-width: 100%;
}

.steps.steps-6 {
    min-width: min(100%, 720px);
    flex-wrap: nowrap;
}

.steps.steps-6 .step-item {
    flex: 1 0 auto;
    min-width: 96px;
    font-size: var(--fs-hint);
    padding: 10px 8px;
}

.model-cards .select-card label {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 120px;
}

.model-card-image,
.feature-card-image,
.master-icon-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.master-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.master-icon-md {
    width: 40px;
    height: 40px;
}

.model-card-icon .master-icon .material-symbols-outlined,
.feature-card-icon .master-icon .material-symbols-outlined {
    font-size: 32px;
    color: var(--color-primary);
}

.master-icon-default {
    color: var(--color-muted);
}

.feature-card-icon {
    flex-shrink: 0;
}

.model-card-body,
.feature-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.model-card-title,
.feature-card-title {
    font-weight: var(--fw-heading);
}

.model-card-desc,
.feature-card-desc {
    font-size: var(--fs-hint);
    color: var(--color-muted);
    line-height: 1.5;
}

.card-label {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    margin-left: 6px;
}

.card-label-recommended { background: #fff3e0; color: #e65100; }
.card-label-advanced { background: #f3e5f5; color: #6a1b9a; }

.feature-count-bar {
    margin-bottom: 16px;
    font-weight: var(--fw-heading);
}

.feature-card label {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.feature-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.feature-card-labels .card-label { margin-left: 0; }

.domain-choice-card label {
    justify-content: flex-start;
    min-height: 48px;
}

.reference-url-row { margin-bottom: 10px; }

.review-dl dt {
    font-weight: var(--fw-heading);
    margin-top: 12px;
}

.review-dl dd { margin: 4px 0 0; }

.section-title {
    font-size: var(--fs-section);
    font-weight: var(--fw-heading);
    margin: 28px 0 12px;
}

.staff-notice {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay[hidden] { display: none; }

.modal-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: min(100%, 520px);
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 640px) {
    .model-cards.select-cards,
    .feature-cards.select-cards {
        grid-template-columns: 1fr;
    }
}

/* --- 複数サービス・チャット・円形ステップ（追加） --- */

.nav-group-label {
    font-size: 11px;
    font-weight: var(--fw-heading);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 20px 6px;
    margin: 0;
}

.member-sidebar nav .nav-form,
.member-sidebar nav .member-nav-logout-form { margin: 0; }

.member-nav-flat .member-nav-logout-form .member-nav-button {
    appearance: none;
    -webkit-appearance: none;
}

.nav-link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--color-text);
    font: inherit;
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
    cursor: pointer;
    text-align: left;
}

.nav-link-btn:hover { background: var(--color-primary-light); color: var(--color-primary); }

.nav-with-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-badge,
.tab-badge,
.inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-danger);
    color: #fff;
    font-size: 11px;
    font-weight: var(--fw-heading);
    line-height: 1;
    margin-left: auto;
}

.tab-badge { margin-left: 6px; }

.inline-badge {
    margin-left: 8px;
    background: var(--color-primary);
}

/* 円形ステップ */
.steps-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 32px;
    max-width: 100%;
    padding-bottom: 4px;
}

.steps-circle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 640px;
    padding: 4px 8px;
}

.step-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 72px;
}

.step-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-muted);
    font-size: var(--fs-hint);
    font-weight: var(--fw-heading);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.step-circle .step-check { font-size: 20px; }

.step-circle-item.pending .step-circle { background: var(--color-white); }

.step-circle-item.active .step-circle {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.step-circle-item.done .step-circle {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.step-circle-item.done a.step-circle:hover {
    background: var(--color-primary);
    color: #fff;
}

.step-circle-label {
    font-size: 12px;
    color: var(--color-muted);
    text-align: center;
    line-height: 1.35;
    white-space: nowrap;
}

.step-circle-item.active .step-circle-label {
    color: var(--color-primary);
    font-weight: var(--fw-heading);
}

.step-connector {
    flex: 1 1 auto;
    height: 2px;
    min-width: 12px;
    margin-top: 18px;
    background: var(--color-border);
}

.step-connector.done { background: var(--color-primary); }

/* 選択カード調整 */
.selection-card__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.selection-card__title,
.model-card-title.selection-card__title {
    font-size: calc(var(--fs-hint) + 2px);
    font-weight: var(--fw-heading);
    line-height: 1.4;
    word-break: break-word;
}

.selection-card__description,
.model-card-desc.selection-card__description {
    display: block;
    font-size: var(--fs-hint);
    color: var(--color-muted);
    line-height: 1.5;
}

.select-card input:checked + label {
    position: relative;
}

.select-card input:checked + label::after {
    content: 'check';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    color: var(--color-primary);
    line-height: 1;
}

.model-cards .select-card label .material-symbols-outlined,
.model-cards .select-card label .selection-card__icon,
.select-card .material-symbols-outlined {
    font-size: 30px;
}

.model-card-image,
.feature-card-image {
    width: 48px;
    height: 48px;
}

.reference-sites-hint { margin-bottom: 3px; }

/* ホーム・サービス一覧 */
.home-unread-notice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: var(--color-primary-light);
    border-radius: var(--radius);
    border: 1px solid #d4e0ed;
}

.home-actions { margin-bottom: 24px; }

.home-section { margin-bottom: 32px; }

.home-section-title {
    font-size: var(--fs-section);
    font-weight: var(--fw-heading);
    margin: 0 0 14px;
}

.service-cards {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.service-card-header h3 {
    font-size: var(--fs-card-title);
    font-weight: var(--fw-heading);
    margin: 0;
}

.service-card-actions { margin-top: 14px; }

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tabs a {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    font-size: var(--fs-hint);
}

.filter-tabs a.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.service-list { display: flex; flex-direction: column; gap: 14px; }

.service-list-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.service-list-card h3 {
    margin: 0 0 8px;
    font-size: var(--fs-card-title);
}

.service-list-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.service-list-dl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px 16px;
    margin: 0;
    font-size: var(--fs-hint);
}

.service-list-dl dt { color: var(--color-muted); font-weight: var(--fw-body); }
.service-list-dl dd { margin: 2px 0 0; }

.service-list-actions {
    display: flex;
    align-items: flex-end;
}

/* サービス詳細タブ */
.service-detail-header { margin-bottom: 20px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-muted);
    text-decoration: none;
    font-size: var(--fs-hint);
    margin-bottom: 8px;
}

.service-detail-title {
    font-size: var(--fs-section);
    font-weight: var(--fw-heading);
    margin: 0;
}

.service-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 0;
    border-bottom: 1px solid var(--color-border);
}

.service-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--color-muted);
    font-size: var(--fs-hint);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.service-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: var(--fw-heading);
}

.service-tab-panel { border-radius: 0 0 var(--radius) var(--radius); margin-top: 0; }

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.change-request-list { display: flex; flex-direction: column; gap: 14px; }

.change-request-item {
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.change-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* チャット */
.messages-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    min-height: 520px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-white);
}

.messages-sidebar {
    border-right: 1px solid var(--color-border);
    padding: 16px;
    overflow-y: auto;
    max-height: 70vh;
}

.messages-sidebar-title {
    font-size: var(--fs-card-title);
    font-weight: var(--fw-heading);
    margin: 0 0 12px;
}

.conversation-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.conversation-item {
    display: block;
    padding: 12px;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    margin-bottom: 4px;
}

.conversation-item:hover { background: var(--color-bg); }

.conversation-item.active {
    background: var(--color-primary-light);
}

.conversation-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.conversation-preview {
    font-size: var(--fs-hint);
    color: var(--color-muted);
    margin: 4px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-meta {
    font-size: 11px;
    color: var(--color-muted);
    margin-top: 4px;
}

.messages-main {
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.messages-main-empty .messages-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px;
}

.chat-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}

.chat-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-hint);
    color: var(--color-muted);
    text-decoration: none;
    margin-bottom: 6px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 280px;
    max-height: 55vh;
}

.chat-bubble-wrap {
    display: flex;
    max-width: 85%;
}

.chat-bubble-wrap.mine {
    align-self: flex-end;
}

.chat-bubble-wrap.theirs {
    align-self: flex-start;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    background: var(--color-bg);
    word-break: break-word;
}

.chat-bubble-wrap.mine .chat-bubble {
    background: var(--color-primary-light);
    border-bottom-right-radius: 4px;
}

.chat-bubble-wrap.theirs .chat-bubble {
    border-bottom-left-radius: 4px;
}

.chat-bubble-text {
    font-size: var(--fs-body);
    line-height: 1.55;
    white-space: pre-wrap;
}

.chat-bubble-text a { color: var(--color-primary); word-break: break-all; }

.chat-bubble-time {
    font-size: 11px;
    color: var(--color-muted);
    margin-top: 4px;
    text-align: right;
}

.chat-compose {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: vertical;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 12px;
    font: inherit;
}

.chat-send-btn { flex-shrink: 0; }

.chat-panel-embedded { min-height: 400px; }

@media (max-width: 768px) {
    .auth-main {
        padding: 24px 16px;
        align-items: flex-start;
    }

    .auth-title {
        font-size: 30px;
    }

    .auth-logo,
    .site-logo--auth .site-logo-image {
        width: clamp(120px, 34vw, 160px);
    }

    .auth-terms-card,
    .auth-panel {
        padding: 18px 16px;
        border-radius: 10px;
    }

    .site-logo--sidebar .site-logo-image {
        width: clamp(100px, 28vw, 130px);
    }

    .messages-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .messages-sidebar {
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .messages-sidebar-hidden-mobile { display: none; }

    .messages-main-visible-mobile { display: flex; }

    .messages-main:not(.messages-main-visible-mobile):not(.messages-main-empty) {
        display: none;
    }

    .chat-messages { max-height: calc(100vh - 220px); }

    .service-list-dl { grid-template-columns: 1fr 1fr; }

    .steps-circle { min-width: min(100%, 560px); }
}

/* フラットサイドメニュー・問い合わせ */
.member-nav-flat,
.admin-nav-flat {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.member-nav-item,
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    min-height: 48px;
    color: var(--color-text);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    font: inherit;
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
    cursor: pointer;
    text-align: left;
    border-left: 3px solid transparent;
    box-sizing: border-box;
}

.member-nav-item {
    padding: 22px;
    font-weight: 900;
}

.member-nav-btn,
.admin-nav-item.member-nav-btn {
    font-family: inherit;
}

.member-nav-label,
.admin-nav-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-nav-item:hover,
.admin-nav-item:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.member-nav-item.active,
.admin-nav-item.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: var(--fw-heading);
}

.member-nav-item .nav-badge,
.admin-nav-item .nav-badge {
    flex-shrink: 0;
    margin-left: auto;
}

.member-table-wrap,
.data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.inquiry-profile-box {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin: 20px 0;
}

.inquiry-profile-box h3 {
    font-size: var(--fs-card-title);
    font-weight: var(--fw-heading);
    margin: 0 0 12px;
}

.inquiry-profile-dl dt {
    font-size: var(--fs-hint);
    color: var(--color-muted);
    margin-top: 8px;
}

.inquiry-profile-dl dd { margin: 2px 0 0; }

.inquiry-list-section { margin-top: 36px; }

.inquiry-list { display: flex; flex-direction: column; gap: 12px; }

.inquiry-list-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.inquiry-list-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.inquiry-list-header h3 {
    margin: 0;
    font-size: var(--fs-card-title);
}

.inquiry-list-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 6px 0;
}

.inquiry-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    max-height: 420px;
    overflow-y: auto;
}

.inquiry-reply-form { margin-top: 16px; }

.inquiry-success-banner { margin-bottom: 20px; }

.inquiry-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.hint-info {
    background: var(--color-primary-light);
    padding: 10px 12px;
    border-radius: var(--radius);
}

@media (max-width: 640px) {
    .member-nav-label { white-space: normal; }
    .inquiry-list-card { flex-direction: column; }
    .admin-table-inquiries { display: block; overflow-x: auto; }

    .member-table-wrap,
    .data-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .member-wrapper {
        overflow-x: clip;
    }

    .member-content {
        max-width: 100%;
        padding: 16px;
    }

    .member-content-narrow {
        max-width: 100%;
    }

    .page-header h1 {
        font-size: var(--fs-section);
        word-break: break-word;
    }

    .service-detail-title {
        font-size: var(--fs-section);
        word-break: break-word;
    }

    .service-list-card {
        flex-direction: column;
        align-items: stretch;
    }

    .service-list-actions {
        width: 100%;
    }

    .service-list-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .service-list-dl {
        grid-template-columns: 1fr;
    }

    .service-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .review-dl dd,
    .review-dl dt,
    .inquiry-profile-dl dd {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .service-cards,
    .home-actions .btn,
    .home-unread-notice {
        max-width: 100%;
    }

    .service-card-actions .btn,
    .home-actions .btn {
        width: 100%;
        min-height: 44px;
    }

    .home-unread-notice {
        flex-wrap: wrap;
        gap: 10px;
    }

    .chat-bubble-wrap {
        max-width: 92%;
    }

    .chat-bubble-text {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .chat-compose {
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .chat-send-btn {
        width: 100%;
        min-height: 44px;
    }

    .chat-input {
        width: 100%;
        min-width: 0;
    }

    .chat-messages {
        max-height: calc(100dvh - 260px);
        min-height: 200px;
    }

    .messages-layout {
        border-radius: var(--radius);
    }

    .conversation-preview {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .service-detail-header .back-link,
    .page-header .back-link {
        margin-bottom: 8px;
    }

    .inquiry-list-card .btn,
    .inquiry-success-actions .btn {
        width: 100%;
        min-height: 44px;
        text-align: center;
    }

    .inquiry-success-actions {
        flex-direction: column;
    }

    .form-control,
    .chat-input,
    select.form-control {
        max-width: 100%;
        min-width: 0;
    }

    .btn {
        min-height: 44px;
    }

    .steps-circle {
        min-width: min(100%, 480px);
    }

    .step-circle-label {
        white-space: normal;
        max-width: 72px;
    }

    .select-cards.model-cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px 16px;
    }
}

.payment-option-body { display: flex; flex-direction: column; gap: 4px; }
.payment-option-title { font-weight: var(--fw-heading); }
.payment-option-desc { font-size: var(--fs-hint); color: var(--color-muted); }
.payment-usage-card label, .payment-option-card label { display: flex; align-items: flex-start; gap: 12px; }

