/**
 * Drip BPM Calculator スタイル
 */
.drip-bpm-calculator {
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.drip-bpm-calculator h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.drip-bpm-calculator h4 {
    margin: 25px 0 15px;
    color: #333;
    text-align: center;
    font-size: 18px;
}

.drip-bpm-calculator .instruction {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

/* BPM計算機のスタイル */
.bpm-calculator .bpm-result-container {
    margin: 20px 0;
}

.bpm-calculator .bpm-result {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.bpm-calculator .bpm-result-single,
.bpm-calculator .bpm-result-average {
    text-align: center;
}

.bpm-calculator .bpm-label {
    font-size: 16px;
    margin-bottom: 5px;
    color: #666;
}

.bpm-calculator .bpm-result-single p:last-child,
.bpm-calculator .bpm-result-average p:last-child {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.bpm-calculator .bpm-unit {
    font-size: 18px;
    color: #666;
}

.bpm-calculator .bpm-button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.bpm-calculator .bpm-tap-button {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: none;
    background-color: #4CAF50;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bpm-calculator .bpm-tap-button:hover {
    background-color: #45a049;
}

.bpm-calculator .bpm-tap-button:active {
    transform: scale(0.95);
    background-color: #3e8e41;
}

.bpm-calculator .bpm-reset {
    display: block;
    margin: 10px auto;
    padding: 8px 16px;
}

.bpm-calculator .bpm-drip-sync {
    text-align: center;
    margin-top: 15px;
}

.bpm-calculator .bpm-drip-sync button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.bpm-calculator .bpm-drip-sync button:hover {
    background-color: #0b7dda;
}

/* タップ間隔グラフのスタイル */
.bpm-intervals-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.bpm-intervals-graph {
    height: 120px;
    margin-top: 15px;
    position: relative;
}

.bpm-intervals-bars {
    display: flex;
    align-items: flex-end;
    height: 80px;
    gap: 5px;
}

.bpm-interval-bar {
    background-color: #2196F3;
    width: 30px;
    transition: height 0.3s ease;
    position: relative;
}

.bpm-intervals-labels {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.bpm-interval-label {
    width: 30px;
    text-align: center;
}

/* 滴下計算機のスタイル */
.drip-calculator-form {
    max-width: 400px;
    margin: 0 auto;
}

.drip-calculator .form-group {
    margin-bottom: 15px;
}

.drip-calculator label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.drip-calculator input,
.drip-calculator select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.drip-calculator .calculate-button {
    width: 100%;
    padding: 12px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.drip-calculator .calculate-button:hover {
    background-color: #0b7dda;
}

.drip-calculator .calculate-button:active {
    background-color: #0a69b9;
}

.drip-calculator .drip-result {
    text-align: center;
    font-size: 20px;
    margin-top: 20px;
    font-weight: bold;
}

.drip-calculator .drip-unit {
    font-size: 16px;
    color: #666;
}