:root {
  --bg: #f1f5f9;
  --bg2: #ffffff;
  --bg3: #e2e8f0;
  --border: #cbd5e1;
  --text: #1e293b;
  --text2: #64748b;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --danger: #dc2626;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
}

/* 2026-07-19 common design final layer */
body{padding-left:285px;background:linear-gradient(180deg,rgba(243,246,250,.15),rgba(243,246,250,.84) 56%,#f3f6fa 86%),url('/security-portal-background.png') center top/cover fixed no-repeat}
.header{height:78px;min-height:78px;margin-left:-285px;padding-left:24px;background:linear-gradient(90deg,#061522,#03101d);border-bottom:1px solid rgba(255,255,255,.12)}
.company-logo{width:118px;height:auto;margin-right:-74px;object-fit:contain}.company-copy strong{font-size:18px}.company-copy span{font-size:10px}.header-title{margin-left:14px;padding-left:20px;border-left:1px solid rgba(255,255,255,.22)}
.suite-sidebar{position:fixed;inset:78px auto 0 0;width:285px;padding:12px;background:linear-gradient(180deg,#061827,#08263b);z-index:90}.suite-menu{display:flex;flex-direction:column;gap:3px}.suite-menu button{height:43px;padding:0 13px;display:flex;align-items:center;gap:12px;border:0;border-radius:9px;background:transparent;color:#e8f1f8;text-align:left;font:600 13px/1 inherit;cursor:default}.suite-menu button[aria-current="page"]{background:linear-gradient(90deg,#096ad0,#0b79e8)}.suite-menu-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:none}.suite-menu-icon svg{display:block;width:18px;height:18px}.suite-menu button[data-portal-link]{cursor:pointer}.suite-menu button[data-portal-link]:hover{background:rgba(255,255,255,.10)}.suite-menu-heading{margin:15px 8px 6px;padding-top:13px;border-top:1px solid rgba(255,255,255,.14);color:#20a9ee;font-size:11px;font-weight:700}
.main{padding:24px 28px 54px;max-width:none}.schedule-page-intro{margin-bottom:18px}.schedule-page-intro>p{margin:0 0 6px;color:#486381;font-size:11px;font-weight:800;letter-spacing:.17em}.schedule-page-intro .page-title-row{margin:0}.schedule-page-description{margin:7px 0 0 17px;color:#64748b;font-size:14px}.cal-toolbar,.calendar-wrap,.planned-section,.pending-section{border-color:#cbd5e1;border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 7px 22px rgba(6,21,34,.09)}.cal-toolbar{padding:15px 18px;margin-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.project-list-bar{margin:0;padding:8px 18px;border-left:1px solid #cbd5e1;border-right:1px solid #cbd5e1;background:rgba(255,255,255,.96)}.calendar-wrap{border-top-left-radius:0;border-top-right-radius:0}.cal-day{min-width:0}.cal-event,.project-bar{border-radius:9px}.suite-menu button[aria-disabled="true"]{opacity:.82}
@media(min-width:901px){.header{margin-left:-285px;padding-left:24px}}
@media(max-width:900px){body{padding-left:0}.header{height:62px;min-height:62px;margin-left:0;padding:0 12px}.suite-sidebar{display:none}.company-logo{width:88px;margin-right:-58px}.company-copy strong{font-size:13px}.company-copy span,.header-title{display:none}.main{padding:18px 10px 40px}.schedule-page-intro .page-title-row h1{font-size:24px}.calendar-wrap{overflow-x:auto}.cal-grid,.cal-week-header{min-width:760px}}
@media(max-width:520px){.header-right .header-user{display:none}.cal-toolbar{gap:7px}.cal-month-title{font-size:18px}.schedule-page-description{font-size:12px}}

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

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
}

.hidden { display: none !important; }
.spacer { flex: 1; }
.required { color: #f87171; }

/* ── ボタン ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: var(--radius);
  border: none; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: background 0.15s, opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg3); }
.btn-ghost { background: transparent; color: var(--text2); border: none; }
.btn-ghost:hover { color: var(--text); background: var(--bg3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.85; }
.btn-confirm { background: #059669; color: #fff; }
.btn-confirm:hover { background: #047857; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ── ログイン ── */
#login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}
.login-box {
  background: var(--bg2); border-radius: 16px;
  padding: 48px 40px; width: 360px; text-align: center;
  box-shadow: var(--shadow);
}
.login-logo { font-size: 48px; margin-bottom: 16px; }
.login-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.login-sub { color: var(--text2); margin-bottom: 32px; }
.dev-login { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.dev-login-label { font-size: 11px; color: var(--text2); margin-bottom: 8px; }
.dev-select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius); padding: 8px 10px;
  font-size: 13px; margin-bottom: 8px; font-family: inherit;
}

/* ── ヘッダー ── */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 0 20px; height: 52px;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-logo { font-size: 22px; }
.header-title { font-size: 16px; font-weight: 700; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-user { color: var(--text2); font-size: 13px; }

/* ── メイン ── */
.main { padding: 20px; max-width: 1200px; margin: 0 auto; }

/* ── カレンダーツールバー ── */
.cal-toolbar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.cal-month-title { font-size: 20px; font-weight: 700; min-width: 160px; text-align: center; }

/* ── 案件リストバー ── */
.project-list-bar {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px; min-height: 0;
}
.proj-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 99px; font-size: 12px;
  font-weight: 600; color: #fff; cursor: pointer;
  transition: opacity 0.15s;
}
.proj-badge:hover { opacity: 0.8; }
.proj-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); }

/* ── カレンダー ── */
.calendar-wrap {
  background: var(--bg2); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.cal-week-header {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--bg3);
}
.cal-week-header > div {
  text-align: center; padding: 8px 0;
  font-size: 12px; font-weight: 700; color: var(--text2);
}
.cal-week-header > div:first-child { color: #f87171; }
.cal-week-header > div:last-child  { color: #60a5fa; }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
}

.cal-day {
  min-height: 110px; border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 6px 4px 4px;
  position: relative; vertical-align: top;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day.other-month .cal-day-num { color: var(--bg3); }
.cal-day.today .cal-day-num {
  background: var(--primary); color: #fff;
  border-radius: 50%; width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cal-day-num {
  font-size: 12px; font-weight: 700; color: var(--text2);
  margin-bottom: 4px; display: inline-block;
}
.cal-day:nth-child(7n+1) .cal-day-num { color: #f87171; }
.cal-day:nth-child(7n)   .cal-day-num { color: #60a5fa; }
.cal-day.other-month { background: rgba(0,0,0,0.15); }
.cal-day.today { background: rgba(99,102,241,0.05); }

/* 祝日 */
.cal-day.holiday { background: rgba(248,113,113,0.06); }
.cal-holiday {
  font-size: 9px; color: #ef4444; font-weight: 600;
  line-height: 1.2; margin-bottom: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 有給者 */
.cal-leave {
  font-size: 9px; color: #0891b2; font-weight: 600;
  background: rgba(8,145,178,0.1); border-radius: 3px;
  padding: 1px 4px; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 案件バー */
.proj-bar {
  display: block; color: #fff; border-radius: 4px;
  padding: 3px 6px; margin-bottom: 3px;
  cursor: pointer; overflow: hidden;
  transition: opacity 0.1s; line-height: 1.3;
}
.proj-bar:hover { opacity: 0.8; }
.proj-bar.cont-left  { border-radius: 0 4px 4px 0; }
.proj-bar.cont-right { border-radius: 4px 0 0 4px; }
.proj-bar.cont-both  { border-radius: 0; }
.proj-bar-name {
  font-size: 11px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj-bar-sub {
  font-size: 10px; opacity: 0.85;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── エラー ── */
.error-msg {
  background: rgba(220,38,38,0.15); color: #f87171;
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: var(--radius); padding: 8px 12px; margin-top: 8px;
  font-size: 13px;
}

/* ── モーダル ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal {
  background: var(--bg2); border-radius: 12px;
  width: 480px; max-width: 95vw; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text2);
  font-size: 18px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-footer {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-top: 1px solid var(--border);
}

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 12px; font-weight: 600; color: var(--text2); }
.form-row input[type=text],
.form-row input[type=date],
.form-row textarea {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius);
  padding: 8px 10px; font-size: 14px; outline: none;
  font-family: inherit;
}
.input-readonly {
  opacity: 0.7; cursor: default;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}
.form-row textarea { resize: vertical; }
.form-row-2col { flex-direction: row; gap: 12px; }
.form-row-2col > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-row-2col label { font-size: 12px; font-weight: 600; color: var(--text2); }

/* カラーピッカー */
.color-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.color-opt {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 3px solid transparent;
  transition: border-color 0.1s, transform 0.1s;
}
.color-opt:hover { transform: scale(1.1); }
.color-opt.selected { border-color: #fff; }

/* ── 承認ワークフロー ── */
.pending-section {
  margin-top: 20px;
  background: var(--bg2); border-radius: var(--radius);
  border: 1px solid #f59e0b; overflow: hidden;
}
.pending-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #f59e0b; color: #fff; border-radius: 99px;
  font-size: 11px; font-weight: 700; min-width: 20px; height: 20px;
  padding: 0 6px; margin-left: 6px;
}
.pending-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.pending-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
}
.pending-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pending-card-name { font-size: 14px; font-weight: 700; flex: 1; }
.pending-card-meta { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.pending-card-actions { display: flex; gap: 8px; }
.status-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
}
.status-pending  { background: #fef3c7; color: #92400e; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.reject-reason-box {
  margin-top: 6px; padding: 6px 10px;
  background: #fee2e2; border-radius: 4px;
  font-size: 12px; color: #991b1b;
}

/* ── 予定案件 ── */
.planned-section {
  margin-top: 28px;
  background: var(--bg2); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.planned-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.planned-title { font-size: 15px; font-weight: 700; }
.planned-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; padding: 16px;
}
.planned-empty { color: var(--text2); font-size: 13px; grid-column: 1/-1; text-align: center; padding: 20px 0; }
.planned-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s;
}
.planned-card:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(99,102,241,0.15); }
.planned-card-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.planned-card-meta { font-size: 12px; color: var(--text2); line-height: 1.7; }
.planned-card-meta span { display: block; }

/* ── 2026-07-19 unified portal design layer ── */
:root {
  --bg:#f3f6fa;
  --bg2:#ffffff;
  --bg3:#eef3f8;
  --border:#cbd5e1;
  --text:#111827;
  --text2:#64748b;
  --primary:#0867c9;
  --primary-hover:#0757aa;
  --radius:13px;
  --shadow:0 7px 22px rgba(6,21,34,.10);
}
body {
  font-family:'Segoe UI','Noto Sans JP','Hiragino Kaku Gothic ProN','Meiryo',sans-serif;
  background:
    linear-gradient(180deg,rgba(243,246,250,.14),rgba(243,246,250,.78) 48%,#f3f6fa 82%),
    url('/security-portal-background.png') center top/cover fixed no-repeat;
}
#main-screen { min-height:100vh; padding-left:244px; }
.header {
  height:68px; padding:0 24px; position:sticky; top:0;
  background:linear-gradient(90deg,#061522,#03101d); border:0;
  color:#fff; box-shadow:0 1px 0 rgba(255,255,255,.1);
}
.header-left { gap:14px; min-width:0; }
.company-logo { width:110px; height:auto; margin-right:-68px; flex:none; }
.company-copy { display:flex; flex-direction:column; min-width:0; }
.company-copy strong { font-size:17px; white-space:nowrap; }
.company-copy span { font-size:10px; color:rgba(255,255,255,.72); letter-spacing:.02em; }
.header-title { margin-left:18px; padding-left:22px; border-left:1px solid rgba(255,255,255,.2); font-size:16px; }
.header-user { color:rgba(255,255,255,.88); }
.header .btn-ghost { color:#fff; }
.header .btn-ghost:hover { color:#fff; background:rgba(255,255,255,.1); }
.suite-sidebar {
  position:fixed; left:0; top:68px; bottom:0; width:244px; z-index:90;
  background:linear-gradient(180deg,#061827,#08263b); color:#fff;
  padding:12px; overflow:auto;
}
.suite-menu { display:flex; flex-direction:column; gap:3px; }
.suite-menu button {
  height:42px; border:0; border-radius:8px; background:transparent; color:#e8f1f8;
  padding:0 13px; display:flex; align-items:center; gap:12px; text-align:left;
  font:600 13px/1 inherit; cursor:default;
}
.suite-menu button[aria-current="page"] { background:linear-gradient(90deg,#096ad0,#0b79e8); box-shadow:0 5px 14px rgba(0,96,201,.25); }
.suite-menu button span { width:20px; text-align:center; font-size:19px; font-weight:400; }
.suite-menu-heading { margin:15px 8px 6px; padding-top:13px; border-top:1px solid rgba(255,255,255,.14); color:#20a9ee; font-size:11px; font-weight:700; }
.main { max-width:1240px; padding:18px 24px 28px; }
.page-title-row { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.page-title-row>span { width:5px; height:28px; background:var(--primary); border-radius:99px; }
.page-title-row h1 { font-size:25px; line-height:1.2; }
.cal-toolbar { margin-bottom:10px; padding:12px 14px; background:rgba(255,255,255,.94); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); }
.cal-month-title { font-size:20px; color:#14233b; }
.project-list-bar { margin:-1px 14px 10px; position:relative; z-index:2; }
.proj-badge { box-shadow:0 2px 6px rgba(15,23,42,.13); }
.calendar-wrap { border-radius:var(--radius); box-shadow:var(--shadow); background:rgba(255,255,255,.97); }
.cal-week-header { background:#eef3f8; }
.cal-week-header>div { padding:10px 0; color:#4d627c; }
.cal-day { min-height:132px; padding:7px 6px 4px; overflow:visible; }
.cal-day.other-month { background:rgba(15,23,42,.06); }
.cal-day.today { background:rgba(8,103,201,.045); }
.cal-day.today .cal-day-num { background:var(--primary); }
.planned-section,.pending-section { border-radius:var(--radius); box-shadow:var(--shadow); background:rgba(255,255,255,.95); }
.planned-header { background:#eef3f8; }

/* Continuous multi-day project lanes. Rendering only; source data is unchanged. */
.proj-bar {
  position:absolute; z-index:3;
  top:calc(42px + (var(--event-lane) * 40px));
  left:6px; right:6px; height:36px; margin:0;
  padding:3px 8px; border-radius:8px;
  box-shadow:0 2px 5px rgba(15,23,42,.14);
  background-image:linear-gradient(135deg,rgba(255,255,255,.05) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.05) 50%,rgba(255,255,255,.05) 75%,transparent 75%);
  background-size:10px 10px;
}
.proj-bar.cont-left { left:-1px; border-radius:0 8px 8px 0; }
.proj-bar.cont-right { right:-1px; border-radius:8px 0 0 8px; }
.proj-bar.cont-both { left:-1px; right:-1px; border-radius:0; }
.proj-bar-name { display:flex; align-items:center; gap:5px; font-size:10px; }
.proj-bar-sub { font-size:9px; }
.proj-marker { width:8px; height:8px; flex:none; background:rgba(255,255,255,.95); border:1px solid rgba(0,0,0,.16); }
.proj-variant-0 .proj-marker { border-radius:50%; }
.proj-variant-1 { background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.14) 0 2px,transparent 2px 7px); }
.proj-variant-1 .proj-marker { transform:rotate(45deg); border-radius:1px; }
.proj-variant-2 { background-image:radial-gradient(rgba(255,255,255,.22) 1px,transparent 1.5px); background-size:7px 7px; }
.proj-variant-2 .proj-marker { clip-path:polygon(50% 0,100% 100%,0 100%); }
.modal { border-radius:14px; }
.form-row input[type=text],.form-row input[type=date],.form-row textarea { background:#f8fafc; }

@media (max-width:900px) {
  #main-screen { padding-left:0; }
  .suite-sidebar { display:none; }
  .header { height:62px; padding:0 12px; }
  .company-logo { width:88px; margin-right:-58px; }
  .company-copy strong { font-size:13px; max-width:150px; overflow:hidden; text-overflow:ellipsis; }
  .company-copy span,.header-title { display:none; }
  .main { padding:12px 10px 20px; }
  .page-title-row h1 { font-size:21px; }
  .cal-toolbar { flex-wrap:wrap; padding:9px; }
  .cal-month-title { min-width:120px; font-size:17px; }
  .calendar-wrap { overflow-x:auto; }
  .cal-week-header,.cal-grid { min-width:760px; }
  .cal-day { min-height:126px; }
}

/* ── ポップオーバー ── */
.popover {
  position: fixed; z-index: 500;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  box-shadow: var(--shadow); min-width: 200px; max-width: 280px;
}
.popover-name { font-weight: 700; margin-bottom: 6px; }
.popover-detail { font-size: 12px; color: var(--text2); margin-bottom: 10px; line-height: 1.6; }

/* 2026-07-19 common design cascade guard */
body { padding-left:285px; background:linear-gradient(180deg,rgba(243,246,250,.15),rgba(243,246,250,.84) 56%,#f3f6fa 86%),url('/security-portal-background.png') center top/cover fixed no-repeat; }
.header { height:78px; min-height:78px; margin-left:-285px; padding-left:24px; background:linear-gradient(90deg,#061522,#03101d); border-bottom:1px solid rgba(255,255,255,.12); }
.company-logo { width:118px; height:auto; margin-right:-74px; object-fit:contain; }
.company-copy strong { font-size:18px; }
.company-copy span { font-size:10px; }
.header-title { margin-left:14px; padding-left:20px; border-left:1px solid rgba(255,255,255,.22); }
.suite-sidebar { position:fixed; inset:78px auto 0 0; width:285px; padding:12px; background:linear-gradient(180deg,#061827,#08263b); z-index:90; }
.suite-menu { display:flex; flex-direction:column; gap:3px; }
.suite-menu button { height:43px; padding:0 13px; display:flex; align-items:center; gap:12px; border:0; border-radius:9px; background:transparent; color:#e8f1f8; text-align:left; font:600 13px/1 inherit; cursor:default; }
.suite-menu button[aria-current="page"] { background:linear-gradient(90deg,#096ad0,#0b79e8); }
.suite-menu-icon { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; flex:none; }
.suite-menu-icon svg { display:block; width:18px; height:18px; }
.suite-menu button[data-portal-link] { cursor:pointer; }
.suite-menu button[data-portal-link]:hover { background:rgba(255,255,255,.10); }
.suite-menu button[aria-disabled="true"] { opacity:.82; }
.suite-menu-heading { margin:15px 8px 6px; padding-top:13px; border-top:1px solid rgba(255,255,255,.14); color:#20a9ee; font-size:11px; font-weight:700; }
.main { padding:24px 28px 54px; max-width:none; margin:0; }
.schedule-page-intro { margin-bottom:18px; }
.schedule-page-intro>p { margin:0 0 6px; color:#486381; font-size:11px; font-weight:800; letter-spacing:.17em; }
.schedule-page-description { margin:7px 0 0 17px; color:#64748b; font-size:14px; }
.cal-toolbar,.calendar-wrap,.planned-section,.pending-section { border-color:#cbd5e1; border-radius:14px; background:rgba(255,255,255,.96); box-shadow:0 7px 22px rgba(6,21,34,.09); }
.cal-toolbar { padding:15px 18px; margin-bottom:0; border-bottom-left-radius:0; border-bottom-right-radius:0; }
.project-list-bar { margin:0; padding:8px 18px; border-left:1px solid #cbd5e1; border-right:1px solid #cbd5e1; background:rgba(255,255,255,.96); }
.calendar-wrap { border-top-left-radius:0; border-top-right-radius:0; }
.cal-day { min-width:0; }
.cal-event,.project-bar { border-radius:9px; }
@media (min-width:901px) { .header { margin-left:-285px; padding-left:24px; } }
@media (max-width:900px) {
  body { padding-left:0; }
  .header { height:62px; min-height:62px; margin-left:0; padding:0 12px; }
  .suite-sidebar { display:none; }
  .company-logo { width:88px; margin-right:-58px; }
  .company-copy strong { font-size:13px; }
  .company-copy span,.header-title { display:none; }
  .main { padding:18px 10px 40px; }
  .schedule-page-intro .page-title-row h1 { font-size:24px; }
  .schedule-page-description { font-size:12px; }
  .calendar-wrap { overflow-x:auto; }
  .cal-grid,.cal-week-header { min-width:760px; }
}

/* 2026-07-20 中間幅対策: サイドバー分の余白でカレンダーツールバーが画面外にはみ出すのを防ぐ(901px前後で発生確認) */
.cal-toolbar{flex-wrap:wrap}

/* 2026-07-20 左上のズレ修正: 旧レイアウトの#main-screen{padding-left:244px}が新デザインのbody padding-leftと二重に効いていたため無効化 */
#main-screen{padding-left:0}
