/* ========================================
   リセット & ベース設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    color: #333333;
}

/* ========================================
   コンテナ
   ======================================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.main-content {
    padding: 30px;
}

/* ========================================
   フォームセクション
   ======================================== */
.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 20px;
    color: #333333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
    color: white;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 111, 0, 0.3);
}

/* ========================================
   フォームグループ
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #424242;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    color: #333333;
}

.form-control:focus {
    outline: none;
    border-color: #ff6f00;
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.1);
}

.form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #718096;
}

/* ========================================
   ラジオボタン & チェックボックス
   ======================================== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: #fafafa;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: #ff6f00;
    background: #fff3e0;
    box-shadow: 0 2px 6px rgba(255, 111, 0, 0.1);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6f00;
}

.radio-label input[type="radio"]:checked ~ .radio-text,
.checkbox-label input[type="checkbox"]:checked ~ .checkbox-text {
    color: #333333;
}

.radio-label input[type="radio"]:checked,
.checkbox-label input[type="checkbox"]:checked {
    border-color: #ff6f00;
}

.radio-text,
.checkbox-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.radio-text strong,
.checkbox-text strong {
    display: block;
    margin-bottom: 4px;
    color: #333333;
    font-size: 15px;
}

.radio-text small,
.checkbox-text small {
    color: #718096;
    font-size: 13px;
    line-height: 1.4;
}

/* ========================================
   情報表示
   ======================================== */
.alert-info {
    padding: 12px 16px;
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 6px;
    color: #424242;
    font-size: 14px;
}

.processing-info {
    margin-bottom: 15px;
}

.processing-location {
    padding: 12px 16px;
    background: #fff3e0;
    border: 2px solid #ff8f00;
    border-radius: 8px;
    color: #333333;
    font-size: 15px;
    font-weight: 600;
}

/* ========================================
   見積もり結果
   ======================================== */
.estimate-section {
    display: block !important;
    background: #ffffff;
    border: 3px solid #ff6f00;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.2);
}

.estimate-result {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.estimate-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.estimate-row:last-child {
    border-bottom: none;
}

.estimate-label {
    font-weight: 600;
    color: #616161;
    font-size: 14px;
}

.estimate-value {
    font-weight: 600;
    color: #333333;
    font-size: 15px;
    text-align: right;
}

.total-row {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 2px solid #bdbdbd;
    font-size: 16px;
}

.total-row .estimate-label,
.total-row .estimate-value {
    font-size: 17px;
    color: #333333;
}

.highlight {
    background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
}

.highlight .estimate-label,
.highlight .estimate-value {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

/* ========================================
   ボタン
   ======================================== */
.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: #ff6f00;
    border: 2px solid #ff6f00;
}

.btn-secondary:hover {
    background: #ff6f00;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3);
}

.btn:disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================================
   プリント位置イメージ
   ======================================== */
.print-position-container {
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.position-image {
    max-width: 300px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.position-description {
    margin-top: 15px;
    padding: 12px;
    background: #fff3e0;
    border-radius: 6px;
    color: #424242;
    font-size: 14px;
    font-weight: 600;
}

.position-visual {
    display: inline-block;
    position: relative;
    margin: 20px auto;
}

.product-outline {
    width: 200px;
    height: 250px;
    border: 3px solid #9e9e9e;
    border-radius: 10px;
    position: relative;
    background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-outline-tumbler {
    width: 120px;
    height: 280px;
    border: 3px solid #9e9e9e;
    border-radius: 60px 60px 30px 30px;
    background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.print-area {
    position: absolute;
    border: 3px dashed #ff6f00;
    background: rgba(255, 111, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ff6f00;
    font-size: 12px;
}

.print-area-front {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 30%;
}

.print-area-side {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 25%;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: linear-gradient(135deg, #616161 0%, #424242 100%);
    color: white;
    padding: 60px 30px 20px;
    margin-top: 60px;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: white;
    border-bottom: 3px solid #ff6f00;
    padding-bottom: 15px;
}

.price-table-section {
    max-width: 1200px;
    margin: 0 auto 60px;
}

.price-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.price-table-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.price-table-card h3 {
    color: #333333;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6f00;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.price-table thead {
    background: #ffc107;
    color: #000000 !important;
}

.price-table th,
.price-table td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    color: #000000 !important;
}

.price-table th {
    font-weight: 600;
    font-size: 12px;
    color: #000000 !important;
    background: #ffc107;
}

.price-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.price-table tbody tr:hover {
    background: #fff3e0;
}

.price-table tbody td {
    color: #000000 !important;
    font-weight: 500;
}

.price-notes {
    background: #fff3e0;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ff6f00;
}

.price-notes p {
    margin: 5px 0;
    font-size: 12px;
    color: #424242;
    line-height: 1.6;
}

.options-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 60px;
}

.options-section h3 {
    color: #333333;
    font-size: 20px;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff6f00;
}

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

.option-card {
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #ff6f00;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.2);
    transform: translateY(-2px);
}

.option-card h4 {
    color: #333333;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.option-price {
    font-size: 28px;
    font-weight: 700;
    color: #ff6f00;
    margin: 15px 0;
}

.option-description {
    font-size: 13px;
    color: #616161;
    margin: 10px 0;
    line-height: 1.6;
}

.option-note {
    font-size: 12px;
    color: #757575;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    line-height: 1.5;
}

.company-info-section {
    max-width: 1200px;
    margin: 0 auto 40px;
}

.company-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.company-detail h4 {
    color: #ff6f00;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ff6f00;
}

.company-detail p {
    color: #333333;
    font-size: 13px;
    margin: 5px 0;
    line-height: 1.6;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 40px;
}

.footer-copyright p {
    font-size: 13px;
    opacity: 0.8;
}

/* ========================================
   印刷スタイル
   ======================================== */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
    }

    .form-section:not(.estimate-section) {
        display: none;
    }

    .button-group {
        display: none;
    }

    .header {
        background: #424242;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .estimate-section {
        border: 2px solid #ff6f00;
    }

    .highlight {
        background: #ff6f00 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .footer {
        display: none;
    }
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 22px;
    }

    .subtitle {
        font-size: 12px;
    }

    .main-content {
        padding: 20px;
    }

    .form-section {
        padding: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .estimate-row {
        flex-direction: column;
        gap: 4px;
    }

    .estimate-value {
        text-align: left;
    }

    .price-tables {
        grid-template-columns: 1fr;
    }

    .price-table-card {
        padding: 15px;
    }

    .price-table th,
    .price-table td {
        padding: 8px 4px;
        font-size: 11px;
    }

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

    .company-info {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .footer {
        padding: 40px 15px 20px;
    }

    .footer-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }

    .section-title {
        font-size: 16px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}