        body { 
            font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
            background: #f0f2f5; 
            color: #000000; 
            margin: 0; 
            padding: 20px; 
            display: flex;
            justify-content: center;
        }
        .container { 
            width: 100%;
            max-width: 400px; /* スマホ幅想定 */
            background: #fff; 
            padding: 20px; 
            border-radius: 16px; 
            box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
        }
        
        /* --- コントロール --- */
        .controls { margin-bottom: 20px; }
        select { 
            width: 100%; padding: 12px; font-size: 16px; 
            border: 1px solid #ddd; border-radius: 8px; 
            background-color: #f9f9f9; outline: none;
        }

        /* --- 上部：次発カード --- */
        .train-card {
            padding: 15px; border-radius: 12px; margin-bottom: 15px;
            display: flex; justify-content: space-between; align-items: center;
        }
        .badge {
            display: inline-block; padding: 4px 8px; border-radius: 4px;
            font-size: 0.8em; font-weight: bold; color: #fff; background: #999; margin-left: 10px;
        }
        .badge.type-r { background: #e53935; }
        .badge.type-g { background: #43a047; }
        .badge.type-b { background: #3535e5; }
	.badge.type-default { display: none; }

        /* 1本目 (Main) */
        .next-train {
            background: #e3f2fd; border: 2px solid #2196f3;
            flex-direction: column; align-items: flex-start;
        }
        .next-train .label { font-size: 0.9em; color: #1565c0; font-weight: bold; }
        .next-train .time { font-size: 2.1em; font-weight: bold; line-height: 1; letter-spacing: -2px; }
        .next-train .countdown {
            margin-top: 10px; width: 100%; text-align: right;
            font-size: 1.2em; font-weight: bold; color: #555;
            font-family: "Consolas", monospace; font-variant-numeric: tabular-nums;
            border-top: 1px solid rgba(0,0,0,0.05); padding-top: 10px;
        }

        /* 2本目以降 (Sub) */
        .second-train { background: #fff; border: 1px solid #eee; color: #666; }
        .second-train .time { font-size: 1.5em; font-weight: bold; }

        /* --- カレンダー画像エリア --- */
        .calendar-section {
            margin-top: 30px;
            border-top: 2px solid #f0f0f0;
            padding-top: 20px;
        }
        .section-title {
            font-size: 1.1em; font-weight: bold; margin-bottom: 10px; color: #555;
        }

        .calendar-container {
            display: flex;
            gap: 10px;
            justify-content: space-between;
        }
        .calendar-item {
            flex: 1;
            text-align: center;
        }
        .calendar-item img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            border: 1px solid #eee;
            display: block;
        }
        .calendar-label {
            font-size: 0.8em;
            color: #888;
            margin-bottom: 5px;
            display: block;
        }
	#photo {
            width: 100%;
            height: auto;
            border-radius: 8px;
            border: 1px solid #eee;
            display: block;
            min-height: 100px; /* 読み込み中に潰れないように */
            background: #f9f9f9;
        }

        .message { text-align: center; color: #888; margin-top: 20px; }
	
	.r {
	    background-color:#e53935;
	    color:#ffffff;
	    display:inline-block;
	    text-align:center;
	    line-height:22px;
	    width:35px;
	    border-radius:3px;}

	.g {
	    background-color:#43a047;
	    color:#ffffff;
	    display:inline-block;
	    text-align:center;
	    line-height:22px;
	    width:70px;
	    border-radius:3px;}
        .sa{
	    font-size: 0.9em;
	    background-color:#ffbbff;
	    color:#000000;
	    display:inline;
	    text-align:center;
	    padding-left:5px; padding-right:5px;
	    }
        .sb{
	    font-size: 0.9em;
	    background-color:#ffff00;
	    color:#000000;
	    display:inline;
	    text-align:center;
	    padding-left:5px; padding-right:5px;
	    }
        .ya{
	    font-size: 0.9em;
	    background-color:#ffff00;
	    color:#000000;
	    display:inline;
	    text-align:center;
	    padding-left:5px; padding-right:5px;
	    }
        .yb{
	    font-size: 0.9em;
	    background-color:#5ecd32;
	    color:#000000;
	    display:inline;
	    text-align:center;
	    padding-left:5px; padding-right:5px;
	    }
