/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* SOLLED Brand Colors */
    --primary-blue: #00AEEF;
    --dark-blue: #0088CC;
    --light-blue: #33C1F3;
    --accent-blue: #66D4F7;
    --secondary-gray: #2C3E50;
    --light-gray: #ECF0F1;
    --bg-white: #FFFFFF;
    --bg-gradient: linear-gradient(135deg, #00AEEF 0%, #33C1F3 100%);
    --text-dark: #2C3E50;
    --text-gray: #7F8C8D;
    --text-light: #BDC3C7;
    --border-color: #E8ECEF;
    --success-green: #27AE60;
    --shadow-sm: 0 2px 8px rgba(0, 174, 239, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 174, 239, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 174, 239, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 174, 239, 0.3);
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom, #F8FAFB 0%, #FFFFFF 100%);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
    font-weight: 400;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: var(--bg-gradient);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.header-brand {
    display: inline-block;
    margin: 0 auto 20px;
    padding: 12px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-blue);
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* ========================================
   Form Section
   ======================================== */
.form-section,
.estimate-section {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-section:hover,
.estimate-section:hover {
    box-shadow: var(--shadow-lg);
}

.form-section h2,
.estimate-section h2 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary-blue);
    font-weight: 700;
    position: relative;
}

.form-section h2::after,
.estimate-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--light-blue);
    border-radius: 2px;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--secondary-gray);
}

.label-text {
    font-size: 1.1rem;
}

.required {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 174, 239, 0.3);
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 8px;
}

/* ========================================
   Size Options
   ======================================== */
.size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.size-option {
    cursor: pointer;
}

.size-option input[type="radio"] {
    display: none;
}

.size-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
}

.size-option input[type="radio"]:checked + .size-card {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.05) 0%, rgba(51, 193, 243, 0.05) 100%);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.size-card:hover {
    border-color: var(--light-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.size-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.size-dimensions {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.size-price {
    font-size: 1rem;
    color: var(--dark-blue);
    font-weight: 600;
}

/* ========================================
   Input Fields
   ======================================== */
.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 1.05rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background-color: var(--bg-white);
}

.form-input {
    padding: 12px 50px 12px 15px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236c757d' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.form-select:hover {
    border-color: var(--light-blue);
}

.input-unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-weight: 600;
}

/* ========================================
   Checkbox Styling
   ======================================== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
}

.checkbox-label:hover {
    border-color: var(--light-blue);
    background-color: rgba(0, 174, 239, 0.02);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--bg-gradient);
    border-color: var(--primary-blue);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.checkbox-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-price {
    color: var(--primary-blue);
    font-weight: 700;
}

/* ========================================
   Shipping Options
   ======================================== */
.shipping-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.shipping-option {
    cursor: pointer;
}

.shipping-option input[type="radio"] {
    display: none;
}

.shipping-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.shipping-option input[type="radio"]:checked + .shipping-card {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.05) 0%, rgba(51, 193, 243, 0.05) 100%);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.shipping-option input[type="radio"]:checked + .shipping-card::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--bg-gradient);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.4);
}

.shipping-card:hover {
    border-color: var(--light-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.shipping-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.shipping-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-gray);
    margin-bottom: 5px;
}

.shipping-price {
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 8px;
}

.shipping-desc {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.shipping-free-note {
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.1) 0%, rgba(51, 193, 243, 0.1) 100%);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(0, 174, 239, 0.3);
}

.shipping-note {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 8px;
    font-style: italic;
}

/* ========================================
   Estimate Result
   ======================================== */
.estimate-result {
    background: linear-gradient(135deg, #F8FAFB 0%, #F0F7FA 100%);
    border-radius: 16px;
    padding: 28px;
    border: 2px solid var(--border-color);
    box-shadow: inset 0 2px 8px rgba(0, 174, 239, 0.05);
}

.estimate-breakdown {
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.breakdown-value {
    font-size: 1.15rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.breakdown-detail {
    font-size: 0.875rem;
    color: var(--text-gray);
    padding: 5px 0 10px 0;
}

.breakdown-detail.free-shipping-highlight {
    color: var(--success-green);
    font-weight: 700;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.15) 100%);
    border-radius: 8px;
    margin: 5px -5px 10px -5px;
    border: 2px solid var(--success-green);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    font-size: 0.95rem;
}

.breakdown-divider {
    border-top: 2px solid var(--border-color);
    margin: 15px 0;
}

.unit-price-row {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.1) 0%, rgba(51, 193, 243, 0.1) 100%);
    padding: 14px 12px !important;
    margin: 10px -12px 0 -12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 174, 239, 0.2);
}

.unit-price-row .breakdown-label {
    font-weight: 700;
    color: var(--dark-blue);
}

.unit-price-row .breakdown-value {
    font-size: 1.3rem;
    color: var(--primary-blue);
    font-weight: 800;
}

.highlight-amount {
    color: var(--primary-blue);
    font-size: 1.05em;
    font-weight: 700;
}

/* ========================================
   Print Position Selection
   ======================================== */
.print-positions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.position-item {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.position-item:has(.position-check:checked) {
    border-color: var(--accent-orange);
    background-color: rgba(255, 107, 53, 0.03);
}

.position-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 10px;
}

.position-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.position-label strong {
    color: var(--primary-navy);
    font-size: 1rem;
}

.position-desc {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.position-size-select {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: var(--bg-light);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.position-size-select:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.position-item:not(:has(.position-check:checked)) .position-size-select {
    opacity: 0.5;
    pointer-events: none;
}

.print-detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.print-detail-item {
    font-size: 0.875rem;
    color: var(--text-gray);
    padding: 5px 0;
    border-bottom: 1px dashed var(--border-color);
}

.print-detail-item:last-child {
    border-bottom: none;
}

/* ========================================
   T-shirt Visual Selection
   ======================================== */
.tshirt-visual-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.tshirt-view {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.view-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 15px;
    text-align: center;
}

.tshirt-display {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
}

.tshirt-svg {
    width: 100%;
    height: auto;
    display: block;
}

.print-area-overlay {
    transition: all 0.3s ease;
}

.print-area-overlay.active {
    fill: rgba(255, 107, 53, 0.5);
    stroke: var(--accent-orange);
    stroke-width: 3;
    stroke-dasharray: none;
}

.print-area-overlay.disabled {
    fill: rgba(180, 180, 180, 0.3);
    stroke: #999;
}

/* Position selection buttons */
.position-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.position-btn {
    padding: 13px 10px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-gray);
    text-align: center;
    line-height: 1.4;
    font-family: inherit;
}

.position-btn small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-top: 4px;
}

.position-btn:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.05) 0%, rgba(51, 193, 243, 0.05) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.position-btn.active {
    background: var(--bg-gradient);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4);
}

.position-btn.active small {
    color: rgba(255, 255, 255, 0.9);
}

.position-btn.disabled {
    background-color: #e0e0e0;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.position-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.position-btn.disabled small {
    color: #aaa;
}

/* Lot selection */
.lot-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.lot-option {
    cursor: pointer;
}

.lot-option input[type="radio"] {
    display: none;
}

.lot-card {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.lot-option input[type="radio"]:checked + .lot-card {
    border-color: var(--accent-orange);
    background-color: rgba(255, 107, 53, 0.08);
    box-shadow: var(--shadow-sm);
}

.lot-card:hover {
    border-color: var(--light-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lot-range {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 5px;
}

.lot-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Selected positions list */
.selected-positions-list {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.selected-positions-list h4 {
    color: var(--primary-navy);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.positions-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.position-badge {
    background: linear-gradient(135deg, var(--accent-orange), var(--light-orange));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.position-badge .size-tag {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.no-selection {
    color: var(--text-gray);
    font-style: italic;
    margin: 0;
}

/* LINE button styling */
.btn-line {
    background: linear-gradient(135deg, #06C755 0%, #00B448 100%) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-line:hover {
    background: linear-gradient(135deg, #05b34d 0%, #009c3f 100%) !important;
}

.line-icon {
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .lot-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 25px 15px;
    }

    .header h1 {
        font-size: 1.4rem;
        line-height: 1.3;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .form-section,
    .estimate-section,
    .price-table-section {
        padding: 20px 15px;
    }

    .form-section h2,
    .estimate-section h2 {
        font-size: 1.2rem;
        word-break: keep-all;
    }

    .tshirt-visual-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .position-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .position-btn {
        padding: 10px 6px;
        font-size: 0.8rem;
    }

    .position-btn small {
        font-size: 0.7rem;
    }

    .view-title {
        font-size: 1.1rem;
    }

    .form-label .label-text {
        font-size: 1rem;
    }

    .form-help {
        font-size: 0.8rem;
    }

    .shipping-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .selected-positions-list {
        padding: 15px;
    }

    .selected-positions-list h4 {
        font-size: 1rem;
    }

    .position-badge {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .estimate-total .total-label {
        font-size: 0.9rem;
    }

    .estimate-total .total-amount {
        font-size: 2rem;
    }

    .breakdown-label,
    .breakdown-value {
        font-size: 0.9rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .form-section h2,
    .estimate-section h2 {
        font-size: 1.1rem;
    }

    .position-buttons {
        grid-template-columns: 1fr;
    }

    .estimate-total .total-amount {
        font-size: 1.6rem;
    }

    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .price-table th,
    .price-table td {
        padding: 8px 5px;
        font-size: 0.75rem;
    }
}

.estimate-total {
    background: var(--bg-gradient);
    color: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.3);
    position: relative;
    overflow: hidden;
}

.estimate-total::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.total-label {
    font-size: 1.05rem;
    margin-bottom: 10px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.total-amount {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-quote-message {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid var(--accent-orange);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.message-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.message-text {
    color: var(--text-dark);
    line-height: 1.6;
}

.message-text strong {
    color: var(--accent-orange);
}

/* ========================================
   Action Buttons
   ======================================== */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.copy-hint {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border-radius: 8px;
    border-left: 4px solid var(--accent-orange);
}

.btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    /* iPhone タッチ対応 */
    -webkit-tap-highlight-color: rgba(0, 174, 239, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.btn-primary {
    background: var(--bg-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
    filter: brightness(1.05);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--bg-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.3);
}

/* ========================================
   Price Table Section
   ======================================== */
.price-table-section {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin: 40px 0;
}

.price-table-section h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-orange);
}

.price-section-title {
    color: var(--primary-navy);
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 5px solid var(--accent-orange);
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 30px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.price-table thead {
    background: var(--bg-gradient);
    color: white;
}

.price-table th,
.price-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.price-table th {
    font-weight: 600;
    font-size: 0.95rem;
}

.price-table td {
    font-size: 0.95rem;
}

.price-table tbody tr:nth-child(even) {
    background-color: rgba(0, 174, 239, 0.03);
}

.price-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.05) 0%, rgba(51, 193, 243, 0.05) 100%);
}

.price-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.price-table small {
    display: block;
    color: var(--text-gray);
    font-weight: 400;
}

.price-notes {
    margin-top: 30px;
}

.price-notes h3 {
    color: var(--primary-navy);
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-top: 20px;
}

.price-notes ul {
    list-style: none;
    padding: 0;
}

.price-notes li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.price-notes li:last-child {
    border-bottom: none;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    text-align: center;
    padding: 30px;
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-top: 40px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .size-options,
    .shipping-options {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 30px 20px;
    }

    .header-brand {
        font-size: 1.5rem;
        padding: 10px 24px;
        margin-bottom: 16px;
    }

    .form-section,
    .estimate-section,
    .price-table-section {
        padding: 20px;
    }

    .total-amount {
        font-size: 2rem;
    }

    .price-table th,
    .price-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .header-brand {
        font-size: 1.3rem;
        padding: 8px 20px;
        margin-bottom: 14px;
        letter-spacing: 1.5px;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .size-name {
        font-size: 1rem;
    }

    .shipping-icon {
        font-size: 2rem;
    }

    .total-amount {
        font-size: 1.8rem;
    }

    /* スマホ用ボタン調整 */
    .btn {
        padding: 16px 20px;
        font-size: 0.95rem;
        min-height: 50px;
        -webkit-tap-highlight-color: rgba(0, 174, 239, 0.3);
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ========================================
   Company Info Section
   ======================================== */
.company-info-section {
    margin: 40px 0;
}

.company-info {
    background: linear-gradient(135deg, #F8FAFB 0%, #F0F7FA 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-md);
}

.company-info h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-blue);
    font-weight: 700;
}

.company-details {
    margin-bottom: 20px;
}

.company-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 100px;
    flex-shrink: 0;
}

.contact-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    word-break: break-all;
}

.contact-link:hover {
    color: var(--light-orange);
    text-decoration: underline;
}

.company-note {
    font-size: 0.9rem;
    color: var(--text-gray);
    background: white;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-orange);
    margin-top: 15px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .company-info {
        padding: 20px 15px;
    }

    .company-info h3 {
        font-size: 1.1rem;
    }

    .company-name {
        font-size: 1.1rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .contact-label {
        min-width: auto;
    }

    .company-note {
        font-size: 0.85rem;
        padding: 10px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        background: white;
    }

    .action-buttons,
    .company-info,
    .price-table-section,
    .footer {
        display: none;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .form-section,
    .estimate-section {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
