/* 通知設定の行を横並びに */
.notification-setting-row {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 1em;
}
.notification-label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0;
    min-width: 220px;
}
.notification-select, .notification-input {
    min-width: 80px;
    padding: 0.2em 0.5em;
    font-size: 1em;
}
/* カレンダー日付セルを上揃え */
.calendar-table td, .calendar-table th {
    vertical-align: top !important;
}
/* --- サイト全体 --- */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', 'Meiryo', sans-serif;
    background: #fff8f0;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    max-width: 900px;
    min-width: 340px;
    width: 90vw;
    margin: 0 auto;
    background: #fff;
    padding: 2em 2.5em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

footer {
    flex-shrink: 0;
}

header {
    background: #ff9800;
    color: #fff;
    padding: 1.2em 0.8em 1.2em 1.2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.7em;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.logo img {
    height: 2em;
    vertical-align: middle;
    margin-right: 0.5em;
}

h1, h2, h3 {
    color: #ff9800;
    margin-top: 0.5em;
}

main {
    flex: 1 0 auto;
    max-width: 1100px;
    width: 96vw;
    margin: 2vw auto;
    background: #fff;
    padding: 2em 2.5em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
button, input[type="submit"], input[type="button"] {
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5em 1.2em;
    font-size: 1em;
    cursor: pointer;
    margin: 0.2em 0;
    transition: background 0.2s;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background: #e65100;
}

input, select, textarea {
    border: 1px solid #ffcc80;
    border-radius: 4px;
    padding: 0.4em 0.7em;
    font-size: 1em;
    margin: 0.2em 0;
    background: #fffdfa;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    background: #fff;
}
th, td {
    border: 1px solid #ffcc80;
    padding: 0.6em 0.5em;
    text-align: left;
}
th {
    background: #ffe0b2;
    color: #e65100;
}
tr:nth-child(even) {
    background: #fff3e0;
}

ul, ol {
    padding-left: 1.2em;
}
li {
    margin-bottom: 0.5em;
}

form {
    margin-bottom: 1.5em;
}

/* --- レスポンシブ --- */
@media (max-width: 900px) {
    body {
        font-size: 1.08em !important;
    }
    main {
        max-width: 98vw;
        min-width: 0;
        width: 98vw;
        padding: 0.7em 0.5em;
        margin: 0.7em 0.5em;
        font-size: 1.10em !important;
    }
    table, th, td {
        font-size: 1.05em !important;
    }
    input, select, textarea, button {
        font-size: 1.05em !important;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7em 0.5em;
    }
    .logo {
        font-size: 1.12em !important;
    }
    h1, h2, h3 {
        font-size: 1.12em !important;
    }
}

/* --- ロゴ用スペース --- */
.logo-placeholder {
    display: inline-block;
    width: 2.2em;
    height: 2.2em;
    background: #fff3e0;
    border-radius: 50%;
    margin-right: 0.5em;
    vertical-align: middle;
}
body {
    font-family: Arial, sans-serif;
    margin: 10px;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

th, td {
    padding: 8px;
    border: 1px solid #ccc;
    text-align: left;
}

form input, form select, form button {
    margin: 5px 0;
    padding: 6px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

button {
    cursor: pointer;
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
    body {
        font-size: 1.10em !important;
    }
    main {
        max-width: 100vw;
        min-width: 0;
        width: 100vw;
        padding: 0.5em 0.2em;
        margin: 0.5em 0.1em;
        font-size: 1.12em !important;
    }
    h1, h2, h3 {
        font-size: 1.08em !important;
    }
    table, th, td {
        font-size: 1.08em !important;
    }
    input, select, textarea, button {
        font-size: 1.08em !important;
    }
    table, tr, td, th {
        display: block;
        width: 100%;
    }
    tr { margin-bottom: 12px; border-bottom: 2px solid #ccc; }
    td:not(.calendar-table td) { text-align: right; padding-left: 50%; position: relative; }
    td:not(.calendar-table td)::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 5px;
        font-weight: bold;
        text-align: left;
    }
}

/* --- 授業カレンダー用 --- */
.calendar-lesson {
    margin: 8px 0;
    padding: 10px 12px 8px 12px;
    border-radius: 8px;
    border: 2px solid #ff9800;
    background: #fffbe7;
    box-shadow: 0 2px 8px #ff980033;
    font-size: 0.98em;
    position: relative;
    transition: box-shadow 0.2s;
}
.calendar-lesson:hover {
    box-shadow: 0 4px 16px #ff980066;
    z-index: 2;
}
.calendar-scheduled { border-left: 6px solid #ff9800; }
.calendar-done { border-left: 6px solid #4caf50; background: #f3fff3; }
.calendar-cancelled { border-left: 6px solid #e57373; background: #fff0f0; }
.calendar-lesson .lesson-time {
    font-weight: bold;
    color: #ff9800;
    margin-right: 0.5em;
}
.calendar-lesson .lesson-title {
    font-weight: bold;
    color: #333;
}
.calendar-lesson .lesson-person {
    color: #666;
    font-size: 0.97em;
    margin-left: 0.5em;
}
.calendar-lesson .lesson-note {
    color: #888;
    font-size: 0.93em;
    margin-top: 0.2em;
    display: block;
}
