/**
 * ブラサイズ計算機 - スタイル
 * Bra Size Calculator Japanese - Styles
 */

:root {
    --bsj-primary: #e91e63;
    --bsj-primary-dark: #c2185b;
    --bsj-secondary: #9c27b0;
    --bsj-success: #4caf50;
    --bsj-warning: #ff9800;
    --bsj-text: #212121;
    --bsj-text-light: #757575;
    --bsj-bg: #ffffff;
    --bsj-bg-soft: #fafafa;
    --bsj-bg-muted: #f5f5f5;
    --bsj-border: #e0e0e0;
    --bsj-radius: 12px;
    --bsj-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --bsj-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.bsj-calculator {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Yu Gothic', '游ゴシック', 'Meiryo', 'メイリオ', sans-serif;
    color: var(--bsj-text);
    line-height: 1.8;
}

/* Hero */
.bsj-hero {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
    border-radius: var(--bsj-radius);
    margin-bottom: 30px;
}

.bsj-hero__badge {
    margin-bottom: 16px;
}

.bsj-badge {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bsj-primary);
    box-shadow: var(--bsj-shadow);
}

.bsj-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(135deg, var(--bsj-primary), var(--bsj-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bsj-hero__subtitle {
    font-size: 1.1rem;
    color: var(--bsj-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Intro Section */
.bsj-intro-section {
    background: var(--bsj-bg);
    border: 1px solid var(--bsj-border);
    border-radius: var(--bsj-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.bsj-intro-section h2 {
    font-size: 1.5rem;
    margin: 0 0 16px;
    color: var(--bsj-primary-dark);
}

.bsj-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.bsj-feature-list li {
    padding: 8px 0 8px 28px;
    position: relative;
}

.bsj-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bsj-success);
    font-weight: bold;
}

/* Calculator Container */
.bsj-calc-container {
    margin-bottom: 40px;
}

.bsj-calc-card {
    background: var(--bsj-bg);
    border: 1px solid var(--bsj-border);
    border-radius: var(--bsj-radius);
    box-shadow: var(--bsj-shadow-lg);
    overflow: hidden;
}

.bsj-calc-header {
    padding: 24px;
    border-bottom: 1px solid var(--bsj-border);
    background: var(--bsj-bg-soft);
}

.bsj-calc-header h2 {
    font-size: 1.25rem;
    margin: 0 0 8px;
    color: var(--bsj-primary-dark);
}

.bsj-calc-header > p {
    color: var(--bsj-text-light);
    margin: 0 0 20px;
    font-size: 14px;
}

/* Unit Toggle */
.bsj-unit-toggle {
    display: inline-flex;
    background: var(--bsj-bg);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--bsj-border);
}

.bsj-unit-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.bsj-unit-btn.active {
    background: var(--bsj-primary);
    color: white;
}

/* Form */
.bsj-form {
    padding: 24px;
}

.bsj-measurement-group {
    margin-bottom: 30px;
}

.bsj-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--bsj-primary-dark);
}

.bsj-group-icon {
    font-size: 1.25rem;
}

.bsj-group-desc {
    color: var(--bsj-text-light);
    font-size: 14px;
    margin: 0 0 16px;
}

.bsj-inputs-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.bsj-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.bsj-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--bsj-bg-muted);
    border-radius: 50%;
    font-size: 11px;
    color: var(--bsj-text-light);
    cursor: help;
    margin-left: 4px;
}

.bsj-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bsj-input-wrapper input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid var(--bsj-border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.bsj-input-wrapper input:focus {
    outline: none;
    border-color: var(--bsj-primary);
}

.bsj-unit {
    position: absolute;
    right: 16px;
    color: var(--bsj-text-light);
    font-size: 14px;
}

/* Submit Button */
.bsj-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--bsj-primary), var(--bsj-secondary));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bsj-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

/* Results */
.bsj-results {
    padding: 24px;
    border-top: 1px solid var(--bsj-border);
    background: var(--bsj-bg-soft);
}

.bsj-results-header {
    text-align: center;
    margin-bottom: 24px;
}

.bsj-results-header h2 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.bsj-results-header p {
    color: var(--bsj-text-light);
    margin: 0;
}

/* Main Result */
.bsj-main-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.bsj-primary-size {
    background: linear-gradient(135deg, var(--bsj-primary), var(--bsj-secondary));
    border-radius: var(--bsj-radius);
    padding: 24px;
    text-align: center;
    color: white;
}

.bsj-size-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.bsj-primary-size .bsj-size-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.bsj-confidence {
    background: var(--bsj-bg);
    border-radius: var(--bsj-radius);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--bsj-border);
}

.bsj-confidence-label {
    display: block;
    font-size: 14px;
    color: var(--bsj-text-light);
    margin-bottom: 12px;
}

.bsj-confidence-bar {
    height: 8px;
    background: var(--bsj-bg-muted);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bsj-confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bsj-success), #81c784);
    border-radius: 4px;
    transition: width 0.5s;
}

.bsj-confidence-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bsj-success);
}

/* International Sizes */
.bsj-international-sizes {
    margin-bottom: 30px;
}

.bsj-international-sizes h3 {
    font-size: 1.1rem;
    margin: 0 0 16px;
    color: var(--bsj-primary-dark);
}

.bsj-sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.bsj-size-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    background: var(--bsj-bg);
    border: 1px solid var(--bsj-border);
    border-radius: 8px;
}

.bsj-size-flag {
    font-size: 1.5rem;
}

.bsj-size-country {
    font-size: 12px;
    color: var(--bsj-text-light);
}

.bsj-size-item .bsj-size-value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Sister Sizes */
.bsj-sister-sizes {
    margin-bottom: 30px;
}

.bsj-sister-sizes h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--bsj-primary-dark);
}

.bsj-sister-sizes > p {
    font-size: 14px;
    color: var(--bsj-text-light);
    margin: 0 0 16px;
}

.bsj-sister-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bsj-sister-item {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    background: var(--bsj-bg);
    border: 1px solid var(--bsj-border);
}

.bsj-sister-item.bsj-sister-current {
    background: linear-gradient(135deg, var(--bsj-primary), var(--bsj-secondary));
    color: white;
    border: none;
}

.bsj-sister-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.bsj-sister-size {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.bsj-sister-note {
    font-size: 11px;
    opacity: 0.7;
}

/* Shape Analysis */
.bsj-shape-analysis h3 {
    font-size: 1.1rem;
    margin: 0 0 12px;
    color: var(--bsj-primary-dark);
}

.bsj-shape-indicators {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.bsj-shape-badge {
    padding: 6px 14px;
    background: var(--bsj-bg);
    border: 1px solid var(--bsj-border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
}

/* Fit Tips */
.bsj-fit-tips {
    margin-bottom: 24px;
}

.bsj-fit-tips h3 {
    font-size: 1.1rem;
    margin: 0 0 12px;
    color: var(--bsj-primary-dark);
}

.bsj-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bsj-tips-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 14px;
    border-bottom: 1px solid var(--bsj-border);
}

.bsj-tips-list li:last-child {
    border-bottom: none;
}

.bsj-tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bsj-success);
    font-weight: bold;
}

/* Results Actions */
.bsj-results-actions {
    display: flex;
    gap: 12px;
}

.bsj-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.bsj-btn--primary {
    background: linear-gradient(135deg, var(--bsj-primary), var(--bsj-secondary));
    color: white;
}

.bsj-btn--secondary {
    background: var(--bsj-bg);
    border: 1px solid var(--bsj-border);
    color: var(--bsj-text);
}

.bsj-btn:hover {
    transform: translateY(-1px);
}

/* How It Works */
.bsj-how-it-works {
    margin-bottom: 40px;
}

.bsj-how-it-works h2 {
    font-size: 1.5rem;
    margin: 0 0 24px;
    color: var(--bsj-primary-dark);
}

.bsj-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.bsj-step {
    background: var(--bsj-bg);
    border: 1px solid var(--bsj-border);
    border-radius: var(--bsj-radius);
    padding: 24px;
    text-align: center;
}

.bsj-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--bsj-primary), var(--bsj-secondary));
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.bsj-step h3 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.bsj-step p {
    font-size: 14px;
    color: var(--bsj-text-light);
    margin: 0;
}

/* Size Guide */
.bsj-size-guide {
    margin-bottom: 40px;
}

.bsj-size-guide h2 {
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: var(--bsj-primary-dark);
}

.bsj-size-guide h3 {
    font-size: 1.1rem;
    margin: 30px 0 16px;
    color: var(--bsj-primary-dark);
}

.bsj-size-guide > p {
    color: var(--bsj-text-light);
    margin: 0 0 20px;
}

.bsj-table-scroll {
    overflow-x: auto;
}

.bsj-size-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.bsj-size-table th,
.bsj-size-table td {
    padding: 12px 16px;
    text-align: center;
    border: 1px solid var(--bsj-border);
}

.bsj-size-table th {
    background: var(--bsj-primary);
    color: white;
    font-weight: 600;
}

.bsj-size-table tr:nth-child(even) {
    background: var(--bsj-bg-soft);
}

.bsj-table-note {
    text-align: center;
    font-size: 13px;
    color: var(--bsj-text-light);
    margin-top: 12px;
}

/* Why Wrong Size */
.bsj-why-wrong {
    margin-bottom: 40px;
}

.bsj-why-wrong h2 {
    font-size: 1.5rem;
    margin: 0 0 24px;
    color: var(--bsj-primary-dark);
}

.bsj-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.bsj-reason {
    background: var(--bsj-bg);
    border: 1px solid var(--bsj-border);
    border-radius: var(--bsj-radius);
    padding: 24px;
    text-align: center;
}

.bsj-reason-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.bsj-reason h3 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.bsj-reason p {
    font-size: 14px;
    color: var(--bsj-text-light);
    margin: 0;
}

/* Trust Stats */
.bsj-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
    border-radius: var(--bsj-radius);
    padding: 40px 20px;
    margin-bottom: 40px;
}

.bsj-trust-item {
    text-align: center;
}

.bsj-trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bsj-primary), var(--bsj-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bsj-trust-label {
    font-size: 14px;
    color: var(--bsj-text-light);
}

/* FAQ */
.bsj-faq {
    margin-bottom: 40px;
}

.bsj-faq h2 {
    font-size: 1.5rem;
    margin: 0 0 24px;
    color: var(--bsj-primary-dark);
}

.bsj-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bsj-faq-item {
    border: 1px solid var(--bsj-border);
    border-radius: var(--bsj-radius);
    overflow: hidden;
}

.bsj-faq-q {
    width: 100%;
    padding: 18px 24px;
    background: var(--bsj-bg);
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bsj-faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--bsj-primary);
}

.bsj-faq-item.active .bsj-faq-q::after {
    content: '−';
}

.bsj-faq-q:hover {
    background: var(--bsj-bg-soft);
}

.bsj-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.bsj-faq-item.active .bsj-faq-a {
    max-height: 500px;
}

.bsj-faq-a p {
    padding: 0 24px 20px;
    margin: 0;
    font-size: 15px;
    color: var(--bsj-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .bsj-hero {
        padding: 40px 16px;
    }
    
    .bsj-hero__title {
        font-size: 1.75rem;
    }
    
    .bsj-main-result {
        grid-template-columns: 1fr;
    }
    
    .bsj-sister-grid {
        grid-template-columns: 1fr;
    }
    
    .bsj-trust {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .bsj-results-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .bsj-calculator {
        padding: 12px;
    }
    
    .bsj-calc-header,
    .bsj-form,
    .bsj-results {
        padding: 16px;
    }
    
    .bsj-inputs-row {
        grid-template-columns: 1fr;
    }
}

/* Print */
@media print {
    .bsj-hero,
    .bsj-intro-section,
    .bsj-how-it-works,
    .bsj-why-wrong,
    .bsj-faq,
    .bsj-results-actions,
    .bsj-submit-btn {
        display: none;
    }
    
    .bsj-results {
        display: block !important;
    }
}
