/* 団体購入ページ専用スタイル */

/* 基本レイアウト */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 36px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 18px;
}

/* 価格計算セクション */
.price-calculator {
    background: linear-gradient(135deg, #2c6fbb 0%, #4a90e2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    color: white;
}

.calculator-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 18px;
    min-width: 100px;
}

.input-group input {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    max-width: 200px;
}

.input-group .unit {
    font-size: 18px;
}

.calculate-btn {
    background: white;
    color: #2c6fbb;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
}

.calculate-btn:hover {
    transform: scale(1.05);
}

.price-result {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.price-result.show {
    display: block;
}

.result-price {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.detail-item {
    text-align: center;
}

.detail-label {
    font-size: 14px;
    opacity: 0.9;
}

.detail-value {
    font-size: 20px;
    font-weight: bold;
}

/* 推奨プラン */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;
}

.plan-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.plan-card.popular {
    border-color: #28a745;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.plan-count {
    font-size: 48px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}

.plan-label {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.plan-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.plan-price {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.plan-unit-price {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.plan-discount {
    background: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
}

.select-plan-btn {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: auto;
}

.select-plan-btn:hover {
    background: #218838;
}

/* 申込みフォーム */
.order-form {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
}

.form-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c6fbb;
    border-bottom: 2px solid #2c6fbb;
    padding-bottom: 10px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.required {
    color: #e74c3c;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-section {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(135deg, #2c6fbb 0%, #4a90e2 100%);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
}

.submit-btn:hover {
    transform: scale(1.05);
}

.notes {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
}

.notes h3 {
    color: #856404;
    margin-bottom: 15px;
}

.notes ul {
    list-style-position: inside;
    color: #856404;
}

.notes li {
    margin-bottom: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group input {
        max-width: 100%;
    }
}