:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --text: #1f2937;
  --muted: #74809a;
  --line: #e8ebf2;
  --primary: #3b5ccc;
  --primary-soft: #e9edff;
  --sun: #e05b68;
  --sat: #4c7edb;
  --shadow: 0 18px 50px rgba(35, 49, 93, .09);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top right, #e9edff 0, transparent 34%), var(--bg); color: var(--text); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100% - 28px, 780px); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 0 48px; }
.app-header, .section-heading, .calendar-toolbar, .dialog-heading, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-header { padding: 10px 4px 22px; }
.eyebrow { margin: 0 0 5px; color: var(--primary); font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 0; font-size: clamp(1.55rem, 5vw, 2rem); letter-spacing: -.04em; } h2 { margin-bottom: 0; font-size: clamp(1.1rem, 4vw, 1.35rem); }
.calendar-card, .details-section { background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.8); border-radius: 24px; box-shadow: var(--shadow); }
.calendar-card { padding: 18px 14px 14px; }
.calendar-toolbar { padding: 0 2px 16px; }
.month-heading { display: flex; align-items: baseline; gap: 9px; font-size: 1.15rem; font-weight: 800; }
.event-count { color: var(--muted); font-size: .72rem; font-weight: 600; }
.icon-button, .ghost-button, .close-button { border: 0; background: transparent; color: var(--primary); }
.icon-button { width: 40px; height: 40px; border-radius: 50%; font-size: 2rem; line-height: 1; } .icon-button:hover, .ghost-button:hover { background: var(--primary-soft); }
.ghost-button { padding: 9px 14px; border-radius: 12px; font-size: .82rem; font-weight: 700; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.weekdays { margin-bottom: 5px; color: var(--muted); font-size: .72rem; font-weight: 800; text-align: center; }
.weekdays .sun { color: var(--sun); } .weekdays .sat { color: var(--sat); }
.calendar-grid { gap: 4px; }
.day { position: relative; min-height: clamp(58px, 12vw, 82px); padding: 7px 5px; border: 1px solid transparent; border-radius: 14px; background: var(--surface-2); color: var(--text); text-align: left; transition: transform .15s, border-color .15s, background .15s; }
.day:hover { transform: translateY(-1px); border-color: #ccd5ff; } .day.outside { opacity: .35; background: transparent; } .day.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); } .day.today .day-number { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--primary); color: white; }
.day-number { font-size: .82rem; font-weight: 800; } .day.sun .day-number { color: var(--sun); } .day.sat .day-number { color: var(--sat); } .day.today .day-number { color: #fff; }
.day-events { display: grid; gap: 3px; margin-top: 7px; overflow: hidden; } .event-chip { overflow: hidden; padding: 3px 5px; border-radius: 6px; background: #dce4ff; color: #304aa5; font-size: .63rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; } .event-chip.more { background: transparent; color: var(--muted); }
.details-section { margin-top: 18px; padding: 20px 18px 18px; } .section-heading { align-items: flex-end; margin-bottom: 16px; }
.primary-button, .secondary-button { min-height: 42px; padding: 10px 15px; border-radius: 12px; border: 0; font-weight: 800; } .primary-button { background: var(--primary); color: white; box-shadow: 0 7px 18px rgba(59,92,204,.22); } .primary-button:hover { filter: brightness(1.06); } .secondary-button { background: #eef0f6; color: var(--text); }
.event-list { display: grid; gap: 10px; } .event-item { display: grid; grid-template-columns: 66px 1fr; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); } .event-time { color: var(--primary); font-size: .78rem; font-weight: 800; } .event-title { margin: 0 0 4px; font-weight: 800; } .event-note { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; white-space: pre-wrap; } .empty-state { padding: 22px 8px; color: var(--muted); text-align: center; font-size: .9rem; }
dialog { width: min(100% - 28px, 470px); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 24px 80px rgba(20,30,70,.25); } dialog::backdrop { background: rgba(24,31,55,.32); backdrop-filter: blur(4px); } .event-form { display: grid; gap: 14px; padding: 22px; } .dialog-heading h2 { margin-bottom: 0; } .close-button { width: 34px; height: 34px; border-radius: 50%; color: var(--muted); font-size: 1.6rem; } .event-form label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 700; } input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; color: var(--text); background: #fbfcff; outline: none; } input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); } .dialog-actions { justify-content: flex-end; margin-top: 4px; }
@media (max-width: 480px) { .app-shell { width: min(100% - 16px, 780px); padding-top: max(14px, env(safe-area-inset-top)); } .calendar-card { padding: 13px 8px 9px; border-radius: 19px; } .details-section { padding: 17px 12px 14px; border-radius: 19px; } .day { min-height: 61px; padding: 5px 3px; border-radius: 10px; } .day-number { font-size: .74rem; } .event-chip { font-size: .55rem; padding: 2px 3px; } .section-heading { align-items: flex-start; flex-direction: column; } .section-heading .primary-button { width: 100%; } .event-item { grid-template-columns: 56px 1fr; gap: 9px; padding: 12px 10px; } }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; --bg:#111522; --surface:#1a2030; --surface-2:#20283b; --text:#eff3ff; --muted:#aab4cc; --line:#303a52; --primary-soft:#283564; } body { background: radial-gradient(circle at top right,#24315c 0,transparent 38%),var(--bg); } .calendar-card,.details-section,.integration-card { background: rgba(26,32,48,.94); border-color: rgba(70,82,116,.32); } .event-chip { background:#35447f; color:#e5ebff; } input,textarea { background:#151b2a; color:var(--text); } .secondary-button { background:#30384d; color:var(--text); } }
.integration-card { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; padding:16px 18px; border:1px solid rgba(255,255,255,.8); border-radius:18px; background:rgba(255,255,255,.88); box-shadow:var(--shadow); }
.integration-copy { display:grid; gap:3px; min-width:0; } .integration-copy strong { font-size:.95rem; } .integration-copy span { color:var(--muted); font-size:.75rem; } .integration-copy span[data-tone="ok"] { color:#26845a; } .integration-copy span[data-tone="error"] { color:#c44957; } .integration-actions { display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end; } .integration-actions .primary-button,.integration-actions .secondary-button,.integration-actions .ghost-button { min-height:36px; padding:8px 11px; font-size:.75rem; } .google-chip { background:#dff4e9; color:#23744d; } .event-item { grid-template-columns:66px 1fr auto; align-items:start; } .event-source { display:inline-block; margin-top:8px; color:#287b54; font-size:.68rem; font-weight:700; } .event-actions { display:flex; gap:5px; } .text-button { border:0; background:transparent; color:var(--primary); font-size:.72rem; font-weight:700; padding:4px; } .text-button.danger { color:#c44957; } .check-row { display:flex !important; grid-template-columns:none !important; align-items:center; gap:8px !important; color:var(--text) !important; } .check-row input { width:17px; height:17px; margin:0; } @media (max-width:560px) { .integration-card { align-items:flex-start; flex-direction:column; } .integration-actions { width:100%; justify-content:flex-start; } .event-item { grid-template-columns:56px 1fr; } .event-actions { grid-column:2; } }
