@charset "UTF-8";

/* =========================================
   1. 基本設定・変数
   ========================================= */
:root {
    --bg-color: #f7f9fa;
    --card-bg: #ffffff;
    --text-main: #333333;
    
    /* 各ボックスのカラー定義 */
    --c-blue: #0068b7;      /* 青：呼出番号 */
    --c-blue-bg: #eaf4ff;
    
    --c-red: #d8705a;       /* 赤：待ち人数 */
    --c-red-bg: #fff5f3;
    
    --c-yellow: #b59a00;    /* 黄：待ち時間 */
    --c-yellow-bg: #ffffda;

    --c-purple: #8e44ad;    /* 紫：あなたの番号 (NEW) */
    --c-purple-bg: #f5eeff;
    
    --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: var(--font-base);
    background-color: var(--bg-color);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 96%;
    max-width: 1000px; /* 4列用に少し最大幅を広げました */
    margin: 20px auto;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding-bottom: 20px;
}

/* =========================================
   2. ヘッダー
   ========================================= */
.main-header {
    background-color: var(--card-bg);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ddd;
}
.main-header h1 { font-size: 22px; margin: 0; font-weight: bold; }
.header-link { font-size: 14px; color: #0056b3; text-decoration: none; font-weight: bold; }

/* =========================================
   3. メインコンテンツ
   ========================================= */
main { padding: 20px 30px; }
section { margin-bottom: 40px; }

/* --- お知らせエリア --- */
.notice-area { margin-bottom: 30px; }
.close-btn-container { text-align: right; margin-bottom: -12px; position: relative; z-index: 5; }
.close-btn {
    display: inline-block; padding: 8px 24px; font-size: 14px; font-weight: bold;
    cursor: pointer; border-radius: 6px; border: 1px solid #ccc;
}
.close-state { background-color: #f0f0f0; color: #333; }
.open-state { background-color: #28a745; color: white; border-color: #1e7e34; }
.notice-box {
    border: 2px solid #28a745; background-color: #fafffb; padding: 30px 20px 20px;
    font-size: 15px; line-height: 1.8; border-radius: 8px; clear: both;
}

/* =========================================
   4. 受付状況パネル (4列デザイン)
   ========================================= */
.status-panel { text-align: center; }
.status-title { font-size: 20px; margin: 0 0 20px 0; font-weight: bold; display: inline-block; border-bottom: 3px solid #ddd; padding-bottom: 5px; }

.status-display {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* 列が増えたので隙間を少し狭く */
}

.status-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #eee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.status-label {
    width: 100%; padding: 10px 5px; font-size: 12px; font-weight: bold; /* 文字が入り切るよう少し小さめ */
    color: #fff !important; text-align: center; min-height: 48px; display: flex; align-items: center; justify-content: center;
}

.status-value {
    width: 100%; padding: 15px 5px; text-align: center; font-weight: bold;
}

.status-value .number {
    font-size: 42px; /* 4列用にサイズ調整 */
    line-height: 1; display: block; margin-bottom: 3px; font-family: "Arial", sans-serif;
}

/* --- 色付けの強制適用 (blue/red/yellow/purple) --- */

/* 青 (blue) */
.status-row.blue { border-color: var(--c-blue) !important; }
.status-row.blue .status-label { background-color: var(--c-blue) !important; }
.status-row.blue .status-value { background-color: var(--c-blue-bg) !important; color: var(--c-blue) !important; }

/* 赤 (red) */
.status-row.red { border-color: var(--c-red) !important; }
.status-row.red .status-label { background-color: var(--c-red) !important; }
.status-row.red .status-value { background-color: var(--c-red-bg) !important; color: var(--c-red) !important; }

/* 黄 (yellow) */
.status-row.yellow { border-color: var(--c-yellow) !important; }
.status-row.yellow .status-label { background-color: var(--c-yellow) !important; }
.status-row.yellow .status-value { background-color: var(--c-yellow-bg) !important; color: #857100 !important; }

/* 紫 (purple) */
.status-row.purple { border-color: var(--c-purple) !important; }
.status-row.purple .status-label { background-color: var(--c-purple) !important; }
.status-row.purple .status-value { background-color: var(--c-purple-bg) !important; color: var(--c-purple) !important; }

.refresh-note { font-size: 14px; margin-top: 15px; color: #d32f2f; font-weight: bold; }

/* =========================================
   5. フォーム・ボタン・フッター
   ========================================= */
.form-section { max-width: 650px; margin: 0 auto 50px; padding: 25px; background-color: #fdfdfd; border: 1px solid #eee; border-radius: 8px; }
.form-section h3 { font-size: 18px; border-left: 5px solid #0056b3; padding-left: 10px; margin-bottom: 25px; text-align: left; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label { font-size: 16px; font-weight: bold; margin-bottom: 8px; text-align: left; }
.form-group input { width: 100%; padding: 15px; font-size: 18px; border: 2px solid #ccc; border-radius: 6px; }

.btn { width: 100%; max-width: 350px; padding: 18px; font-size: 20px; font-weight: bold; border: none; border-radius: 8px; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,0.15); }
.btn-blue { background-color: #0068b7; color: #fff; }
.btn-orange { background-color: #f39800; color: #fff; }

.main-footer { padding: 30px 20px; text-align: center; border-top: 1px solid #ddd; background-color: #f9f9f9; }
.map-link { font-size: 16px; color: #d32f2f; font-weight: bold; text-decoration: underline; }

/* =========================================
   6. レスポンシブ (スマホ表示)
   ========================================= */
@media screen and (min-width: 601px) {
    .form-group { flex-direction: row; align-items: center; }
    .form-group label { width: 150px; text-align: right; margin-right: 20px; }
    .form-group input { width: calc(100% - 170px); }
}

@media screen and (max-width: 600px) {
    .container { width: 100%; border-radius: 0; margin: 0; }
    main { padding: 20px 15px; }
    .status-display { flex-direction: column; gap: 15px; } 
    .status-value .number { font-size: 64px; } /* 縦並びなら大きく戻す */
    .status-label { font-size: 18px; }
}