:root {
    /* Tailwind configの色トークンに統一（2026-07-25） */
    --color-primary: #00375f;
    --color-primary-dark: #1d4e7b;
    --color-link: #00375f;
    --color-accent: #4A7C96;
    --color-text: #1a1c1f;
    --color-muted: #6C757D;
    --color-border: #E9ECEF;
    --color-bg: #F8F9FA;
    --color-surface: #ffffff;
    --max-width: 1040px;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
        "Yu Gothic", "Meiryo", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-bg);
}

a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.site-header__title {
    margin: 0;
    line-height: 0;
}

.site-header__logo {
    width: auto;
    height: 64px;
    max-width: 100%;
}

/* Navigation */
.site-nav {
    background: var(--color-primary);
}

.site-nav__menu {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.site-nav__menu > li {
    position: relative;
    margin: 0;
}

/* Member login/mypage pushed to the right */
.site-nav__member:first-of-type,
.site-nav__member--dropdown {
    margin-left: auto;
}

.site-nav__member > a {
    background: rgba(255, 255, 255, 0.14);
}

.mms-header-user-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.mms-header-dropdown-btn {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5270 100%);
    color: #ffffff;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(26, 58, 92, 0.2);
    transition: all 0.3s ease;
    margin: 0.5rem 1rem;
}

.mms-header-dropdown-btn:hover {
    background: linear-gradient(135deg, #2a5270 0%, #1a3a5c 100%);
}

.mms-dropdown-arrow {
    font-size: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.mms-header-user-dropdown:hover .mms-dropdown-arrow {
    transform: rotate(180deg);
}

.mms-header-dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 1rem;
    top: 100%;
    margin-top: 4px;
    background-color: #1a3a5c;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 9999;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.mms-header-user-dropdown:hover .mms-header-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mms-header-dropdown-item {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.mms-header-dropdown-item:last-child {
    border-bottom: none;
}

.mms-header-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
}

.site-nav a {
    display: block;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    white-space: nowrap;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}

/* Dropdown parent indicator */
.site-nav__item--has-submenu > a::after {
    content: "▾";
    margin-left: 0.4rem;
    font-size: 0.75em;
}

/* Submenu */
.site-nav__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-primary-dark);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 20;
}

.site-nav__item--has-submenu:hover > .site-nav__submenu,
.site-nav__item--has-submenu:focus-within > .site-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__submenu li {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav__submenu a {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
}

/* Main content */
main {
    max-width: var(--max-width);
    margin: 1.75rem auto;
    padding: 2rem 2.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

main h2 {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-accent);
    font-size: 1.6rem;
    color: var(--color-primary-dark);
}

main h3 {
    margin-top: 2rem;
    padding-left: 0.7rem;
    border-left: 4px solid var(--color-primary);
    font-size: 1.2rem;
    color: var(--color-primary-dark);
}

main h4 {
    margin-top: 1.5rem;
    font-size: 1.05rem;
}

/* Generic lists */
main ul,
main ol {
    padding-left: 1.5rem;
}

main li {
    margin: 0.35rem 0;
}

/* News / notice lists (li > a with date + title spans) */
main li > a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius);
}

main li > a:hover {
    background: var(--color-bg);
    text-decoration: none;
}

main li > a > span:first-child {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* Turn news lists into unbulleted rows */
main ul li:has(> a > span) {
    list-style: none;
    margin: 0;
    border-bottom: 1px dashed var(--color-border);
}

main ul:has(> li > a > span) {
    padding-left: 0;
}

/* Tables */
main table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

main th,
main td {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

main thead th {
    background: var(--color-bg);
    color: var(--color-primary-dark);
    font-weight: 600;
}

main tbody tr:nth-child(even) {
    background: #fafbfc;
}

/* Forms */
form {
    margin: 1.25rem 0;
}

label {
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    max-width: 420px;
    padding: 0.55rem 0.7rem;
    margin-top: 0.35rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

input[type="radio"] {
    margin-right: 0.3rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29, 91, 143, 0.15);
}

button,
input[type="submit"] {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

button:hover,
input[type="submit"]:hover {
    background: var(--color-primary-dark);
}

/* Delete buttons in admin tables use a muted danger tone */
td form button {
    padding: 0.35rem 0.9rem;
    background: #b3261e;
    font-size: 0.85rem;
}

td form button:hover {
    background: #8f1d17;
}

/* Footer */
.site-footer {
    margin-top: 2.5rem;
}

.site-footer__upper {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-footer__logo-image {
    width: auto;
    height: 72px;
    max-width: 100%;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2.5rem;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #a42738;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__icon {
    font-size: 1.1rem;
    line-height: 1;
}

.site-footer__lower {
    background: #111;
    color: #fff;
}

.site-footer__copyright {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer__copyright a {
    color: #fff;
    text-decoration: none;
}

.site-footer__copyright a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    main {
        margin: 1rem;
        padding: 1.25rem;
    }

    .site-header__title {
        font-size: 1.2rem;
    }

    .site-nav__menu {
        flex-direction: column;
        gap: 0;
    }

    .site-nav__submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 0;
        background: rgba(0, 0, 0, 0.18);
    }

    .site-nav__submenu a {
        padding-left: 2rem;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Member area: forms feedback & payment status */
.form-success {
    padding: 0.75rem 1rem;
    background: #e6f4ea;
    border: 1px solid #34a853;
    border-radius: 4px;
    color: #1e7e34;
}

.form-errors {
    padding: 0.75rem 1rem;
    background: #fdecea;
    border: 1px solid #d93025;
    border-radius: 4px;
    color: #b3261e;
}

.payment-status {
    font-weight: 700;
}

.payment-status--paid {
    color: #1e7e34;
}

.payment-status--overdue {
    color: #d93025;
}

.payment-status--unpaid {
    color: #b06000;
}

.mypage-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

/* Admin: member management */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.stat-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: #f5f7fa;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary, #295d83);
}

.stat-card__label {
    margin-top: 0.25rem;
    color: #555;
}

.filter-form,
.stacked-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stacked-form {
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
}

/* ========================================
   会員システム(MMS) デザイン - dev newscrunch テーマ準拠
======================================== */
.mms-wrapper {
    max-width: 640px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.mms-wrapper--wide {
    max-width: 1200px;
}

.mms-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.5px;
}

.mms-message {
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.mms-message p {
    margin: 0;
    font-weight: 600;
}

.mms-message-success {
    background: #e6f4ea;
    border: 1px solid #b7dfc1;
    color: #1e7e34;
}

.mms-message-error {
    background: #fdecea;
    border: 1px solid #f5c2c7;
    color: #b3261e;
}

.mms-message-info {
    background: #e8f0fe;
    border: 1px solid #adc1e6;
    color: #1a73e8;
}

.mms-form-group {
    margin-bottom: 20px;
}

.mms-row {
    display: flex;
    gap: 20px;
}

.mms-row .mms-form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .mms-row {
        flex-direction: column;
        gap: 0;
    }
}

.mms-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.mms-required {
    color: #d63638;
    font-size: 12px;
    margin-left: 4px;
}

.mms-input,
.mms-select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background-color: #f8fafc;
    color: #1e293b;
    transition: all 0.3s ease;
}

.mms-input:focus,
.mms-select:focus {
    border-color: #1a3a5c;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.15);
    outline: none;
}

.mms-checkbox-group {
    margin-bottom: 20px;
}

.mms-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.mms-actions {
    margin-top: 30px;
    text-align: center;
}

.mms-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2c537d 100%);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mms-btn:hover {
    background: linear-gradient(135deg, #2c537d 0%, #1a3a5c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.35);
}

.mms-btn-secondary {
    background: #64748b;
}

.mms-hint {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.mms-login-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.mms-login-links a {
    color: #2c3e50;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.mms-login-links a:hover {
    color: #1a242f;
}

.mms-welcome {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.mms-nav {
    margin-bottom: 30px;
}

.mms-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    border-bottom: 2px solid #e2e8f0;
}

.mms-nav-item {
    flex: 1;
    min-width: 120px;
}

.mms-nav-link {
    display: block;
    padding: 14px 10px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-align: center;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
}

.mms-nav-link:hover {
    color: #1a3a5c;
    border-bottom-color: #cbd5e1;
    text-decoration: none;
}

.mms-nav-link-active {
    color: #1a3a5c;
    border-bottom-color: #1a3a5c;
    background-color: #f8fafc;
}

.mms-nav-link-active:hover {
    color: #1a3a5c;
    border-bottom-color: #1a3a5c;
    text-decoration: none;
}

.mms-section {
    margin-bottom: 30px;
}

.mms-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 30px 0 12px;
}

.mms-status-box {
    border-radius: 8px;
    padding: 18px 24px;
    font-size: 15px;
    border-left: 4px solid transparent;
}

.mms-status-box p {
    margin: 0;
    font-weight: 600;
}

.mms-status-unpaid {
    background-color: #fff5f5;
    border-left-color: #ef4444;
    color: #991b1b;
}

.mms-status-overdue {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.mms-status-paid {
    background-color: #f0fdf4;
    border-left-color: #22c55e;
    color: #166534;
}

.mms-status-none {
    background: #f8fafc;
    border-left-color: #cbd5e1;
    color: #64748b;
}

.mms-info-table,
.mms-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.mms-info-table th,
.mms-info-table td,
.mms-data-table th,
.mms-data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    text-align: left;
}

.mms-info-table th {
    width: 160px;
    background-color: #f8fafc;
    font-weight: 600;
    color: #334155;
    border-right: 1px solid #e2e8f0;
}

.mms-data-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #334155;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}

.mms-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.mms-badge-unpaid {
    background-color: #fee2e2;
    color: #991b1b;
}

.mms-badge-overdue {
    background-color: #fef3c7;
    color: #92400e;
}

.mms-badge-paid {
    background-color: #dcfce7;
    color: #166534;
}

@media (max-width: 600px) {
    .mms-wrapper {
        padding: 24px 16px;
    }

    .mms-nav-list {
        flex-direction: column;
    }

    .mms-info-table th {
        width: auto;
    }
}

/* ========================================
   会員管理(Admin)ダッシュボード - dev newscrunch テーマ準拠
======================================== */
.mms-admin-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.mms-admin-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.5px;
}

.mms-admin-summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.mms-admin-card {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 20px;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    border-top: 4px solid #1a3a5c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mms-admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.mms-admin-summary-cards .mms-admin-card:nth-child(1) { border-top-color: #3b82f6; }
.mms-admin-summary-cards .mms-admin-card:nth-child(2) { border-top-color: #10b981; }
.mms-admin-summary-cards .mms-admin-card:nth-child(3) { border-top-color: #ef4444; }
.mms-admin-summary-cards .mms-admin-card:nth-child(4) { border-top-color: #f59e0b; }

.mms-admin-card-icon {
    width: 32px;
    height: 32px;
    color: #64748b;
    margin-bottom: 4px;
}

.mms-admin-card-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.mms-admin-card-value {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.mms-admin-card-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.mms-admin-nav {
    margin-bottom: 30px;
}

.mms-admin-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    border-bottom: 2px solid #e2e8f0;
}

.mms-admin-nav-item {
    flex: 1;
    min-width: 140px;
}

.mms-admin-nav-link {
    display: block;
    padding: 14px 10px;
    background: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-align: center;
    color: #64748b;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mms-admin-nav-link:hover {
    color: #1a3a5c;
    border-bottom-color: #cbd5e1;
    background: transparent;
}

.mms-admin-nav-link-active {
    color: #1a3a5c;
    border-bottom-color: #1a3a5c;
}

.mms-admin-nav-link-active:hover {
    border-bottom-color: #1a3a5c;
}

.mms-admin-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.mms-admin-logout {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.mms-admin-logout:hover {
    color: #1a3a5c;
    text-decoration: underline;
}

.mms-admin-section {
    margin-bottom: 30px;
    width: 100%;
    overflow-x: auto;
}

.mms-admin-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 30px;
    margin-bottom: 16px;
    border-bottom: 2px solid #1a3a5c;
    padding-bottom: 8px;
}

/* Admin wrapper card (dev newscrunch admin.css 準拠) */
.mms-admin-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.mms-admin-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.5px;
}

.mms-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.mms-info-table th,
.mms-info-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: normal;
}

.mms-info-table tr:last-child th,
.mms-info-table tr:last-child td {
    border-bottom: none;
}

.mms-admin-table,
.mms-info-table.mms-admin-table {
    width: 100%;
    min-width: 960px;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.mms-admin-table th,
.mms-admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    text-align: left;
    transition: background-color 0.2s ease;
}

.mms-admin-table tr:last-child th,
.mms-admin-table tr:last-child td {
    border-bottom: none;
}

.mms-admin-table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #475569;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}

.mms-admin-table tbody tr:hover td {
    background-color: #f1f5f9;
}

.mms-admin-subtext {
    color: #94a3b8;
    font-size: 12px;
}

.mms-admin-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    background-color: #f8fafc;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    align-items: center;
}

.mms-admin-filter-input,
.mms-admin-filter-select {
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    color: #1e293b;
    transition: all 0.3s ease;
}

.mms-admin-filter-input:focus,
.mms-admin-filter-select:focus {
    border-color: #1a3a5c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.mms-admin-filter-input {
    flex: 1 1 240px;
}

.mms-admin-form-card {
    background-color: #f8fafc;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.mms-admin-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
}

.mms-admin-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    flex: 1 1 200px;
}

.mms-admin-form-grid input,
.mms-admin-form-grid select,
.mms-admin-form-card textarea {
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    color: #1e293b;
    font-family: inherit;
}

.mms-admin-form-grid input:focus,
.mms-admin-form-grid select:focus,
.mms-admin-form-card textarea:focus {
    border-color: #1a3a5c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.mms-admin-form-card fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 8px 0;
}

.mms-admin-form-card legend {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    padding: 0 6px;
}

.mms-admin-btn {
    padding: 10px 24px;
    background: #1a3a5c;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.mms-admin-btn:hover {
    background: #0f253d;
    transform: translateY(-1px);
    color: #fff;
}

.mms-admin-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.mms-admin-btn-danger {
    background: #c0392b;
}

.mms-admin-btn-danger:hover {
    background: #962d22;
}

.mms-admin-actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.mms-admin-notice {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #eafaf1;
    border: 1px solid #2ecc71;
    border-radius: 8px;
    color: #1e8449;
    font-weight: 600;
}

.mms-badge-active {
    background-color: #dcfce7;
    color: #166534;
}
.mms-badge-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}
.mms-badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}
.mms-badge-withdrawn {
    background-color: #e2e8f0;
    color: #475569;
}

@media (max-width: 600px) {
    .mms-admin-wrapper {
        padding: 24px 16px;
    }

    .mms-admin-summary-cards,
    .mms-admin-nav-list,
    .mms-admin-filter-form {
        flex-direction: column;
    }
}

/* Admin: 通知・エラー・インライン編集（dev newscrunch member.css 準拠） */
.mms-success {
    background: #e6f4ea;
    border: 1px solid #b7dfc1;
    color: #1e7e34;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.mms-success p {
    margin: 0;
    font-weight: 600;
}

.mms-errors {
    background: #fdecea;
    border: 1px solid #f5c2c7;
    color: #b3261e;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.mms-errors ul {
    margin: 0;
    padding-left: 20px;
}

.mms-warning {
    display: inline-block;
    margin-top: 4px;
    color: #b3261e;
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
}

.mms-admin-actions-top {
    margin-bottom: 20px;
}

.mms-admin-new-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 30px;
}

.mms-admin-filter-submit {
    padding: 10px 24px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    height: auto !important;
    line-height: 1.2 !important;
}

.mms-admin-filter-submit-wrap {
    display: flex;
    align-items: flex-end;
}

.mms-admin-btn-small {
    display: inline-block;
    padding: 6px 14px;
    background: #1a3a5c;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.mms-admin-btn-small:hover {
    background: #0f253d;
    color: #fff;
}

.mms-admin-btn-danger {
    background: #c0392b;
}

.mms-admin-btn-danger:hover {
    background: #962d22;
}

.mms-admin-delete-form {
    margin-top: 12px;
}

.mms-admin-edit-row td {
    background: #f8fafc;
    white-space: normal;
}

.mms-admin-inline-form {
    margin-bottom: 8px;
}

.mms-admin-cancel {
    margin-left: 12px;
    color: #2c3e50;
    text-decoration: underline;
}

.mms-admin-back {
    margin-top: 24px;
}

.mms-admin-back a {
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
}

.mms-admin-back a:hover {
    color: #1a3a5c;
    text-decoration: underline;
}

.mms-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.mms-pagination-link {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
}

.mms-pagination-link:hover {
    text-decoration: underline;
}

.mms-pagination-status {
    color: #64748b;
    font-size: 14px;
}
