        :root {
            --main: #0059A7;
            --accent: #359DD4;
            --bg: #f3f7fb;
            --text: #1f2d3d;
            --muted: #6b7c8f;
            --line: #d9e5ef;
            --white: #ffffff;
            --danger: #d9534f;
            --warning: #f0ad4e;
            --success: #2e9d5b;
            --shadow: 0 12px 32px rgba(0, 89, 167, 0.12);
            --radius: 18px;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            background: linear-gradient(180deg, #eaf4fb 0%, var(--bg) 320px, var(--bg) 100%);
            color: var(--text);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
            line-height: 1.6;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .page {
            width: min(1180px, calc(100% - 32px));
            margin: 0 auto;
            padding: 28px 0 56px;
        }

        .hero {
            background: linear-gradient(135deg, var(--main), #0075bf 58%, var(--accent));
            color: var(--white);
            border-radius: 24px;
            padding: 28px;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
        }

        .hero:after {
            content: "";
            position: absolute;
            width: 240px;
            height: 240px;
            border-radius: 50%;
            right: -80px;
            top: -100px;
            background: rgba(255, 255, 255, 0.15);
        }

        .hero h1 {
            margin: 0;
            font-size: clamp(24px, 3.2vw, 36px);
            letter-spacing: 0.02em;
            position: relative;
            z-index: 1;
        }

        .hero p {
            margin: 8px 0 0;
            opacity: 0.92;
            position: relative;
            z-index: 1;
        }

        .notice-row {
            margin-top: 18px;
            display: grid;
            gap: 10px;
        }

        .notice {
            padding: 12px 16px;
            border-radius: 14px;
            background: var(--white);
            border: 1px solid var(--line);
            box-shadow: 0 6px 18px rgba(0, 89, 167, 0.06);
            font-weight: 700;
        }

        .notice.success {
            color: #126438;
            background: #eefaf3;
            border-color: #bfe8cf;
        }

        .notice.error {
            color: #9f2d2a;
            background: #fff1f0;
            border-color: #f2c5c3;
        }

        .section {
            margin-top: 22px;
            background: var(--white);
            border: 1px solid var(--line);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .section-head {
            padding: 18px 22px;
            border-bottom: 1px solid var(--line);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            flex-wrap: wrap;
            background: linear-gradient(180deg, #ffffff, #f8fbfe);
        }

        .section-title {
            margin: 0;
            color: var(--main);
            font-size: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title:before {
            content: "";
            width: 8px;
            height: 28px;
            border-radius: 10px;
            background: var(--accent);
            display: inline-block;
        }

        .stats {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
            padding: 18px 22px 0;
        }

        .stat {
            border: 1px solid var(--line);
            border-radius: 16px;
            padding: 14px;
            background: #fbfdff;
        }

        .stat .label {
            color: var(--muted);
            font-size: 13px;
            font-weight: 700;
        }

        .stat .value {
            color: var(--main);
            font-size: 28px;
            font-weight: 800;
            line-height: 1.2;
            margin-top: 4px;
        }

        .calendar-nav {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .month-label {
            font-weight: 800;
            color: var(--main);
            font-size: 22px;
            padding: 0 8px;
        }

        .btn,
        button.btn {
            border: 0;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 40px;
            padding: 9px 15px;
            border-radius: 999px;
            background: var(--main);
            color: var(--white);
            font-weight: 800;
            box-shadow: 0 8px 18px rgba(0, 89, 167, 0.18);
            transition: transform 0.12s ease, opacity 0.12s ease;
            font-family: inherit;
            font-size: 14px;
        }

        .btn:hover {
            transform: translateY(-1px);
            opacity: 0.94;
        }

        .btn.secondary {
            background: var(--accent);
        }

        .btn.light {
            color: var(--main);
            background: #eaf4fb;
            box-shadow: none;
            border: 1px solid #c9e2f3;
        }

        .btn.danger {
            background: var(--danger);
            box-shadow: 0 8px 18px rgba(217, 83, 79, 0.16);
        }

        .calendar-wrap {
            padding: 18px 22px 24px;
            overflow-x: auto;
        }

        .calendar {
            width: 100%;
            border-collapse: separate;
            border-spacing: 8px;
            min-width: 780px;
        }

        .calendar th {
            color: var(--main);
            font-size: 14px;
            padding: 8px;
            text-align: center;
        }

        .calendar th.sun {
            color: #d04545;
        }

        .calendar th.sat {
            color: #2c73bd;
        }

        .calendar td {
            vertical-align: top;
            height: 126px;
            width: 14.285%;
            border: 1px solid var(--line);
            border-radius: 16px;
            background: #ffffff;
            overflow: hidden;
            position: relative;
        }

        .calendar td.blank {
            background: #f5f8fb;
            border-style: dashed;
        }

        .day-link {
            display: block;
            height: 100%;
            padding: 10px;
            border-radius: 16px;
            transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
        }

        .day-link:hover {
            background: #eef8fd;
            transform: translateY(-1px);
            box-shadow: 0 8px 18px rgba(0, 89, 167, 0.10);
        }

        .day-link.selected {
            outline: 3px solid var(--accent);
            background: #edf8ff;
        }

        .day-link.today .day-number {
            background: var(--main);
            color: var(--white);
        }

        .day-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }

        .day-number {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            color: var(--main);
            background: #edf4fa;
        }

        .count {
            font-size: 12px;
            color: var(--muted);
            font-weight: 800;
        }

        .badges {
            margin-top: 8px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            max-width: 100%;
            border-radius: 999px;
            padding: 3px 8px;
            font-size: 12px;
            font-weight: 800;
            color: var(--white);
            white-space: nowrap;
        }

        .badge.planned {
            background: #7b8ea3;
        }

        .badge.applied {
            background: var(--accent);
        }

        .badge.secured {
            background: var(--success);
        }

        .badge.lost {
            background: var(--warning);
        }

        .badge.canceled {
            background: var(--danger);
        }

        .badge.checking {
            background: #8a63c7;
        }

        .detail-body {
            padding: 22px;
            display: grid;
            gap: 18px;
        }

        .selected-date {
            display: flex;
            align-items: baseline;
            gap: 12px;
            flex-wrap: wrap;
        }

        .selected-date strong {
            color: var(--main);
            font-size: 24px;
        }

        .selected-date span {
            color: var(--muted);
            font-weight: 700;
        }

        .form-card,
        .record-card {
            border: 1px solid var(--line);
            border-radius: 18px;
            padding: 18px;
            background: #fbfdff;
        }

        .form-card h3,
        .record-card h3 {
            margin: 0 0 14px;
            color: var(--main);
            font-size: 18px;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .field {
            display: grid;
            gap: 6px;
        }

        .field.full {
            grid-column: 1 / -1;
        }

        label {
            color: #33475b;
            font-size: 13px;
            font-weight: 800;
        }

        input,
        select,
        textarea {
            width: 100%;
            min-height: 42px;
            border: 1px solid #cddce8;
            border-radius: 12px;
            padding: 9px 12px;
            font: inherit;
            background: #ffffff;
            color: var(--text);
            outline: none;
        }

        textarea {
            min-height: 82px;
            resize: vertical;
        }

        input:focus,
        select:focus,
        textarea:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(53, 157, 212, 0.16);
        }

        .actions {
            margin-top: 14px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .record-list {
            display: grid;
            gap: 14px;
        }

        .record-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }

        .record-title {
            margin: 0;
            color: var(--main);
            font-size: 17px;
        }

        .empty {
            border: 1px dashed #b9ccdc;
            border-radius: 18px;
            padding: 22px;
            background: #f8fbfe;
            color: var(--muted);
            font-weight: 700;
            text-align: center;
        }

        .footer-note {
            margin-top: 16px;
            color: var(--muted);
            font-size: 12px;
            text-align: center;
        }

        @media (max-width: 760px) {
            .page {
                width: min(100% - 20px, 1180px);
                padding-top: 14px;
            }

            .hero {
                padding: 22px;
                border-radius: 20px;
            }

            .stats,
            .form-grid {
                grid-template-columns: 1fr;
            }

            .section-head,
            .calendar-wrap,
            .detail-body,
            .stats {
                padding-left: 14px;
                padding-right: 14px;
            }

            .calendar {
                border-spacing: 6px;
                min-width: 720px;
            }
        }
