﻿/* 基本設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #fdfaf6;
    color: #5a676d;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    flex-direction: column;
}

.app-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 360px;
    padding: 30px 24px;
    border-radius: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    text-align: center;
    border: 1px solid #f0f0f0;
}

header h1 {
    font-size: 1.4rem;
    color: #8da399;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

/* 状態表示エリア */
.status-card {
    padding: 30px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.status-card.good {
    background-color: #e8f5e9; 
    border: 2px solid #c8e6c9;
}

.status-card.bad {
    background-color: #ffebee;
    border: 2px solid #ffcdd2;
}

.status-label {
    display: block;
    font-size: 0.8rem;
    color: #78909c;
    margin-bottom: 8px;
}

.status-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #455a64;
}

/* 角度表示エリア */
.angle-display {
    background-color: #fafafa;
    padding: 25px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
}

.angle-label {
    display: block;
    font-size: 0.75rem;
    color: #b0bec5;
    margin-bottom: 5px;
}

.angle-value {
    font-size: 3rem;
    font-weight: 700;
    color: #546e7a;
    font-variant-numeric: tabular-nums;
}

.unit {
    font-size: 1.1rem;
    margin-left: 2px;
    font-weight: normal;
}

/* 設定エリア */
.settings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f9fbfb;
    border-radius: 15px;
}

.settings label {
    font-size: 0.8rem;
    color: #90a4ae;
}

.settings input {
    width: 60px;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #cfd8dc;
    text-align: center;
    font-size: 1rem;
    color: #546e7a;
}

.instruction {
    font-size: 0.8rem;
    color: #90a4ae;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* ボタン */
.btn-start {
    background-color: #81c784;
    color: #ffffff;
    border: none;
    padding: 18px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(129, 199, 132, 0.3);
    transition: all 0.2s ease;
}

.btn-start.stop {
    background-color: #ef5350;
    box-shadow: 0 8px 20px rgba(239, 83, 80, 0.3);
}

.btn-start:active {
    transform: translateY(2px);
}