:root {
    --primary-color: #0056b3;
    --success-color: #28a745;
    --danger-color: #d63031;
    --warning-color: #f39c12;
    --bg-color: #f0f2f5;
    --text-color: #111111;
    --border-color: #bbbbbb;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ヘッダー */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}
.site-header a {
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
}

.container {
    max-width: 900px;
    margin: 0 auto 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

h1, h2, h3 { color: #000; font-weight: bold; }
h2 { border-left: 6px solid var(--primary-color); padding-left: 15px; }

label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 1.1rem; }

input[type="text"], input[type="password"], input[type="email"], input[type="date"], textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 15px;
    background-color: #fff;
}

input[type="text"]:focus, 
input[type="password"]:focus, 
input[type="email"]:focus, 
input[type="date"]:focus, 
textarea:focus, 
select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* ボタン基本設定 */
.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    text-decoration: none; /* aタグの場合に下線を消す */
}

/* 各種ボタンカラーとホバー効果 */
.btn-primary { background: var(--primary-color); color: white; width: 100%; }
.btn-primary:hover { background: #004494; }

.btn-success { background: var(--success-color); color: white; width: 100%; }
.btn-success:hover { background: #218838; }

.btn-danger { background: var(--danger-color); color: white; }
.btn-danger:hover { background: #b02728; }

.btn-gray { background: #6c757d; color: white; }
.btn-gray:hover { background: #5a6268; }

/* コピーボタンと小サイズボタン */
.btn-copy, .btn-small {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: 0.2s;
    text-decoration: none;
}
.btn-copy { background: var(--primary-color); color: white; }
.btn-copy:hover, .btn-small:hover { opacity: 0.8; filter: brightness(90%); }

/* テーブル関連 */
.scroll-box {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { border: 1px solid var(--border-color); padding: 14px; text-align: center; color: #000; font-size: 1rem; }
th { background: #eeeeee; font-weight: bold; }
.date-col { text-align: left; background: #f9f9f9; font-weight: bold; min-width: 200px; }
.highlight { background: #fff9c4 !important; }

/* 記号 */
.res-1 { color: var(--danger-color); font-weight: bold; font-size: 1.4rem; }
.res-2 { color: var(--warning-color); font-weight: bold; font-size: 1.4rem; }
.res-0 { color: #888; font-size: 1.2rem; }

/* 日程選択グリッド */
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 8px; margin: 15px 0; }
.time-slot { padding: 10px; border: 2px solid var(--border-color); border-radius: 6px; cursor: pointer; text-align: center; background: #fff; font-weight: bold; transition: 0.2s; }
.time-slot:hover { background: #f0f0f0; border-color: #888; }

/* コピーエリア */
.copy-area {
    background: #e9f5ff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #b3d7ff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.url-text {
    font-size: 0.9rem;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
}