:root {
    /* メインの緑：信頼感のあるエメラルドグリーン */
    --primary-color: #2d6a4f;
    /* 成功：明るいリーフグリーン */
    --success-color: #52b788;
    /* 警告：緑の補色に近い、視認性の高いコーラルレッド */
    --danger-color: #bc4749;
    /* 注意：落ち着いたアンバーイエロー */
    --warning-color: #ee9b00;
    /* 背景：目に優しい、ごくわずかに緑を含んだ白 */
    --bg-color: #f7f9f7;
    /* テキスト：深緑を含んだチャコールグレー */
    --text-color: #1b4332;
    /* 境界線：植物を連想させるセージグレー */
    --border-color: #adc178;
}

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.15);
    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,64,32,0.08); /* 影に少し緑を混ぜています */
}

h1, h2, h3 { color: #081c15; 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;
    transition: border-color 0.2s;
}

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, transform 0.1s;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); } /* 押した時に少し沈む演出 */

/* 緑系ホバー効果の調整 */
.btn-primary { background: var(--primary-color); color: white; width: 100%; }
.btn-primary:hover { background: #1b4332; }

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

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

.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.85; 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: var(--text-color); font-size: 1rem; }
th { background: #f0f4f0; font-weight: bold; color: var(--primary-color); }
.date-col { text-align: left; background: #fafdfa; font-weight: bold; min-width: 200px; }
.highlight { background: #f0fff4 !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: #8ea69a; 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; color: var(--primary-color); }
.time-slot:hover { background: #f0f4f0; border-color: var(--primary-color); }

/* コピーエリア（青系から緑系に調整） */
.copy-area {
    background: #f0f7f4;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #d8e8e0;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.url-text {
    font-size: 0.9rem;
    color: #4b6358;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
}