
:root {
  --bg: #f6faff;
  --surface: #ffffff;
  --surface2: #f9fcff;
  --text: #243044;
  --muted: #768397;
  --line: #e7edf4;
  --line-strong: #d8e2ec;
  --brand: #18b6ad;
  --brand-dark: #0f9f98;
  --brand-soft: #e9fbf8;
  --blue: #18b6ad;
  --blue-dark: #0f9f98;
  --blue-soft: #e9fbf8;
  --red: #ef4444;
  --red-soft: #fff1f2;
  --yellow-soft: #fff7ed;
  --shadow: 0 18px 50px rgba(28, 79, 120, .08);
  --shadow-soft: 0 8px 28px rgba(28, 79, 120, .07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; min-height:100vh; font-family: Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; color:var(--text); background:linear-gradient(180deg,#f8fcff 0%,#f3f8fd 100%); }
a { color:inherit; text-decoration:none; }
button,input,select,textarea { font:inherit; }
.admin-layout { min-height:100vh; display:grid; grid-template-columns: 260px 1fr; }
.sidebar { position:sticky; top:0; height:100vh; padding:22px 18px; background:rgba(255,255,255,.88); border-right:1px solid var(--line); display:flex; flex-direction:column; gap:22px; }
.brand { display:flex; align-items:center; gap:10px; color:var(--brand-dark); }
.brand strong { display:block; font-size:22px; letter-spacing:-.05em; color:var(--brand-dark); }
.brand small { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.brand-icon { width:38px; height:38px; border-radius:14px; display:grid; place-items:center; background:linear-gradient(135deg,#4ad8d0,var(--brand)); box-shadow:0 12px 24px rgba(24,182,173,.18); position:relative; flex:0 0 auto; }
.brand-icon-check { width:14px; height:8px; border-left:3px solid #fff; border-bottom:3px solid #fff; transform:rotate(-45deg); }
.side-nav { display:grid; gap:6px; }
.side-nav a { min-height:42px; display:flex; align-items:center; gap:10px; padding:0 12px; border-radius:12px; color:#596579; font-weight:800; line-height:1.35; }
.side-nav a::before { content:""; width:18px; height:18px; border-radius:6px; background:#eef4f8; box-shadow:inset 0 0 0 1px #dce6ef; }
.side-nav a.active { color:var(--brand-dark); background:var(--brand-soft); }
.side-nav a.active::before { background:var(--brand); box-shadow:none; }
.logout-link { margin-top:auto; min-height:42px; display:flex; align-items:center; gap:10px; padding:0 12px; border-radius:12px; color:#64748b; font-weight:800; }
.logout-link:hover, .side-nav a:hover { background:#f3f8fc; }
.admin-main { padding:30px; max-width:1280px; width:100%; margin:0 auto; }
.admin-top { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:20px; }
.admin-top h1 { margin:0; font-size:32px; letter-spacing:-.055em; color:var(--text); }
.eyebrow { margin:0 0 6px; color:var(--brand-dark); font-size:12px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.panel { background:rgba(255,255,255,.96); border:1px solid var(--line); border-radius:22px; padding:22px; box-shadow:var(--shadow-soft); margin-bottom:20px; }
.panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:16px; }
.panel-head h2, .settings-section-title h2, .settings-card-title h2 { margin:0; font-size:20px; letter-spacing:-.04em; }
.panel-head p, .settings-section-title p, .settings-card-title p { margin:6px 0 0; color:var(--muted); line-height:1.65; font-size:13px; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; }
.stat-card { background:#fff; border:1px solid var(--line); border-radius:20px; padding:22px; box-shadow:var(--shadow-soft); }
.stat-card span { display:block; color:var(--muted); font-size:13px; font-weight:800; margin-bottom:12px; }
.stat-card strong { display:block; font-size:34px; letter-spacing:-.06em; }
.primary-btn,.secondary-btn,.danger-btn,.mini-btn { min-height:42px; padding:0 16px; border-radius:11px; display:inline-flex; align-items:center; justify-content:center; border:0; cursor:pointer; font-weight:900; transition:.16s ease; white-space:nowrap; }
.primary-btn { color:#fff; background:linear-gradient(180deg,#21c7bd,var(--brand)); box-shadow:0 12px 24px rgba(24,182,173,.18); }
.secondary-btn { color:#344052; background:#fff; border:1px solid var(--line-strong); }
.danger-btn { color:#fff; background:var(--red); }
.primary-btn.small,.secondary-btn.small,.danger-btn.small,.mini-btn { min-height:34px; padding:0 12px; font-size:13px; border-radius:9px; }
.mini-btn { color:var(--brand-dark); background:#fff; border:1px solid var(--line); }
.primary-btn:hover,.secondary-btn:hover,.danger-btn:hover,.mini-btn:hover { transform:translateY(-1px); }
.text-link { color:var(--brand-dark); font-weight:900; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:18px; background:#fff; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th,td { padding:13px 14px; border-bottom:1px solid var(--line); text-align:left; font-size:13px; vertical-align:middle; }
th { color:#718096; background:#f8fbfe; font-weight:900; }
tr:last-child td { border-bottom:0; }
.badge { display:inline-flex; align-items:center; min-height:24px; padding:0 9px; border-radius:999px; font-size:12px; font-weight:900; background:#eef4f8; color:#64748b; }
.badge.reserved { background:#fff7ed; color:#c77700; }
.badge.visited,.badge.active,.badge.trial { background:var(--brand-soft); color:var(--brand-dark); }
.badge.cancelled,.badge.no_show,.badge.suspended { background:var(--red-soft); color:#b91c1c; }
.empty { padding:20px; border:1px dashed var(--line-strong); border-radius:18px; color:var(--muted); background:#f9fcff; text-align:center; }
.alert { padding:14px 16px; border-radius:16px; margin-bottom:16px; border:1px solid var(--line); }
.alert.success { color:#047857; background:var(--brand-soft); border-color:#d9f1ef; }
.alert.error { color:#991b1b; background:var(--red-soft); border-color:rgba(239,68,68,.2); }
.admin-form { display:grid; gap:18px; }
.admin-form label span, .field label, .session-admin-card label span { display:block; font-size:13px; font-weight:900; color:#344052; margin-bottom:7px; }
input,select,textarea { width:100%; min-height:44px; border-radius:12px; border:1px solid var(--line); background:#fff; color:var(--text); padding:11px 13px; outline:none; font-size:15px; transition:.16s ease; }
textarea { resize:vertical; line-height:1.7; }
input:focus,select:focus,textarea:focus { border-color:var(--brand); box-shadow:0 0 0 4px rgba(24,182,173,.10); }
input[type="file"] { padding:12px; border-style:dashed; }
small { color:var(--muted); line-height:1.6; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.filter-bar { display:grid; grid-template-columns: 180px 190px 1fr auto; gap:10px; align-items:center; }
.check-label { display:flex!important; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.check-label input { width:18px; min-height:18px; accent-color:var(--brand); }
.check-label span { margin:0!important; }
.detail-grid { display:grid; grid-template-columns: 1fr 380px; gap:20px; }
.detail-list { display:grid; gap:0; margin:0; }
.detail-list div { display:grid; grid-template-columns:130px 1fr; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); align-items:start; }
.detail-list div:last-child { border-bottom:0; }
.detail-list dt { color:var(--muted); font-size:13px; }
.detail-list dd { margin:0; font-weight:800; }
.answer-list { display:grid; gap:10px; }
.answer-item { padding:14px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.answer-item strong { display:block; margin-bottom:8px; }
.answer-item p { margin:0; color:#48566a; line-height:1.7; }
.profile-preview { display:flex; align-items:center; gap:14px; padding:14px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.profile-preview img { width:64px; height:64px; border-radius:18px; object-fit:cover; }
.profile-preview strong { display:block; font-size:17px; }
.profile-preview p { margin:5px 0 0; color:var(--muted); }
.settings-help { padding:14px 16px; border-radius:16px; background:var(--brand-soft); border:1px solid #d9f1ef; color:#235c5a; line-height:1.7; margin-bottom:16px; font-size:13px; }
.service-cards,.session-list,.holiday-list,.reservation-card-list { display:grid; gap:12px; }
.service-card-admin,.session-admin-card,.holiday-row,.reservation-card { padding:16px; border-radius:18px; background:#fff; border:1px solid var(--line); box-shadow:0 8px 24px rgba(15,23,42,.04); }
.service-card-admin { display:grid; grid-template-columns:1fr auto; gap:14px; align-items:center; }
.service-card-admin strong { display:block; font-size:16px; }
.service-card-admin p { margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.6; }
.row-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.session-admin-grid { display:grid; grid-template-columns:92px 1.2fr repeat(4,minmax(94px,1fr)) 96px; gap:10px; align-items:end; }
.session-delete-row { margin-top:10px; display:flex; justify-content:flex-end; }
.quick-block-grid { display:grid; grid-template-columns:160px 150px 120px 120px 1fr auto; gap:10px; }
.holiday-row { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.holiday-row strong { display:block; }
.holiday-row p { margin:5px 0 0; color:var(--muted); }
.photo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.photo-card { display:block; border-radius:18px; overflow:hidden; border:1px solid var(--line); background:#fff; }
.photo-card img { width:100%; aspect-ratio:1/1; object-fit:cover; display:block; }
.reservation-card-list { display:none; }
.reservation-card-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.reservation-meta { display:grid; gap:6px; color:var(--muted); font-size:13px; line-height:1.6; }
.phone-link { color:var(--brand-dark); font-weight:900; text-decoration:underline; text-underline-offset:3px; }
.reason-cell { max-width:260px; white-space:normal; line-height:1.55; }
.login-page { display:grid; place-items:center; min-height:100vh; padding:20px; }
.login-shell { width:min(430px,100%); }
.login-card { background:#fff; border:1px solid var(--line); border-radius:24px; padding:24px; box-shadow:var(--shadow); }
.login-head { text-align:center; margin-bottom:20px; }
.login-form { display:grid; gap:16px; }

@media (max-width: 980px) {
  .admin-layout { grid-template-columns:1fr; }
  .sidebar { position:static; height:auto; border-right:0; border-bottom:1px solid var(--line); }
  .admin-main { padding:20px 14px 34px; }
  .stats-grid,.form-grid,.detail-grid,.session-admin-grid,.quick-block-grid,.filter-bar { grid-template-columns:1fr; }
  .service-card-admin { grid-template-columns:1fr; }
  .row-actions,.session-delete-row { justify-content:stretch; }
  .row-actions > *, .row-actions form, .session-delete-row > * { width:100%; }
  .admin-top { align-items:flex-start; flex-direction:column; }
  .table-wrap { display:none; }
  .reservation-card-list { display:grid; }
}
@media (max-width: 520px) {
  .panel { padding:17px; border-radius:20px; }
  .admin-top h1 { font-size:30px; }
  .detail-list div { grid-template-columns:1fr; gap:4px; }
  .photo-grid { grid-template-columns:1fr; }
}
/* assets/css/admin.css の一番下に追記 */

.panel {
    margin-bottom: 22px;
}

.admin-form {
    gap: 18px;
}

input,
select,
textarea {
    font-size: 15px;
}

.side-nav a {
    line-height: 1.35;
}

.detail-list div {
    align-items: start;
}

@media (max-width: 900px) {
    .admin-main {
        padding: 18px 12px 28px;
    }

    .panel {
        padding: 18px;
        border-radius: 22px;
    }

    .admin-top h1 {
        font-size: 36px;
    }
}
