/* ソウルナンバー計算プラグイン スタイル */

#soul-number-calculator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.soul-number-container {
    background: #fafafa;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ヘッダー部分 */
.soul-number-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.decorative-line {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ddd 20%, #ddd 80%, transparent 100%);
    margin: 0 auto 30px;
    width: 80px;
}

.triangle {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ddd;
}

/* コンテンツ部分 */
.soul-number-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.soul-number-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

/* フォーム部分 */
.soul-number-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* 日付入力ラッパー - 1つの入力エリアのように見せる */
.date-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
}

.date-input-wrapper:focus-within {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.date-input {
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    text-align: center;
    font-weight: 500;
    padding: 0;
    margin: 0;
    outline: none;
    box-sizing: border-box;
}

.year-input {
    width: 60px;
    flex-shrink: 0;
}

.month-input {
    width: 30px;
    flex-shrink: 0;
}

.date-input-day {
    width: 30px;
    flex-shrink: 0;
}

.date-input::placeholder {
    color: #999;
    font-weight: normal;
}

.date-separator {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 8px;
    flex-shrink: 0;
}

/* リセットボタン */
.reset-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.reset-button:hover {
    background: #f0f0f0;
    color: #666;
}

.reset-button:active {
    background: #e0e0e0;
    color: #333;
}

.calculate-button {
    width: 100%;
    max-width: 280px;
    padding: 16px 30px;
    background: #333;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.calculate-button:hover {
    background: #555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calculate-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 結果表示部分 */
.result-container {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    display: none;
}

.result-container.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kekka_inner {
    text-align: center;
}

.kekka_title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.kekka {
    font-size: 24px;
    font-weight: 700;
    color: #007cba;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin: 10px 0;
}

.kekka_comment {
    font-size: 14px;
    color: #666;
    margin: 15px 0 10px 0;
}

.kekka_link {
    margin: 15px 0 0 0;
}

.kekka_link a {
    display: inline-block;
    background: #007cba;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.kekka_link a:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* レスポンシブ対応 - 横並びを維持 */
@media (max-width: 600px) {
    #soul-number-calculator {
        padding: 15px;
    }
    
    .soul-number-container {
        padding: 30px 20px;
    }
    
    .soul-number-title {
        font-size: 18px;
    }
    
    .date-input-wrapper {
        max-width: 100%;
        padding: 12px 15px;
    }
    
    .date-input {
        font-size: 14px;
    }
    
    .year-input {
        width: 50px;
    }
    
    .month-input,
    .date-input-day {
        width: 25px;
    }
    
    .date-separator {
        font-size: 14px;
        margin: 0 6px;
    }
    
    .reset-button {
        right: 8px;
        font-size: 16px;
        width: 20px;
        height: 20px;
    }
    
    .calculate-button {
        max-width: 100%;
    }
}

/* 超小さい画面でも横並びを維持 */
@media (max-width: 400px) {
    .date-input-wrapper {
        padding: 10px 12px;
    }
    
    .date-input {
        font-size: 13px;
    }
    
    .year-input {
        width: 45px;
    }
    
    .month-input,
    .date-input-day {
        width: 22px;
    }
    
    .date-separator {
        font-size: 13px;
        margin: 0 4px;
    }
    
    .reset-button {
        right: 6px;
        font-size: 14px;
        width: 18px;
        height: 18px;
    }
}