/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #fffef7 0%, #ffffff 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    color: #2c3e50;
}

.header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header nav a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.header nav a:hover {
    color: #333;
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

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

/* 商品ヘッダー */
.product-header {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6cc 100%);
    border: 3px solid #d4af37;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
}

.product-header::before {
    content: "🎊";
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 48px;
    opacity: 0.3;
}

.product-header::after {
    content: "🎊";
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 48px;
    opacity: 0.3;
}

.price-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.original-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.arrow {
    font-size: 24px;
    color: #c41e3a;
    font-weight: bold;
}

.special-price {
    font-size: 42px;
    color: #c41e3a;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(196, 30, 58, 0.2);
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    padding: 10px 30px;
    border-radius: 8px;
    border: 3px solid #d4af37;
}

.product-title {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #c41e3a;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-subtitle {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.product-description {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
    text-align: center;
}

/* セット情報ボックス */
.set-info-box {
    background: white;
    padding: 25px;
    border: 2px solid #d4af37;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}

.set-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    width: 100%;
    justify-content: center;
}

.set-info i {
    color: #c41e3a;
    font-size: 24px;
}



/* PDF保存ボタン */
.btn-save-pdf {
    width: 100%;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-save-pdf:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* 商品セクション */
.product-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.section-header:hover {
    color: #555;
}

.section-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.section-header h3::before {
    content: "🎊 ";
    font-size: 16px;
}

.section-header i {
    color: #999;
    transition: transform 0.2s;
}

.product-section.collapsed .section-header i {
    transform: rotate(-90deg);
}

/* 商品グリッド */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.product-image {
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 4px;
}

.product-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

.badge-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #d4af37;
}

.product-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* カスタマイズバナー */
.customize-banner {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 4px solid #d4af37;
    padding: 60px 40px 40px 40px;
    border-radius: 12px;
    margin: 60px 0 50px 0;
    position: relative;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.customize-banner::before {
    content: "🎆";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 60px;
    background: white;
    padding: 10px 20px;
    border-radius: 50%;
    border: 4px solid #d4af37;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    z-index: 10;
}

.banner-content {
    text-align: center;
    margin-top: 10px;
}

.banner-content h4 {
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #c41e3a;
    line-height: 1.5;
}

.banner-content p {
    font-size: 17px;
    line-height: 1.9;
    color: #333;
    font-weight: 400;
    max-width: 900px;
}

.banner-content p strong {
    color: #c41e3a;
    font-weight: 700;
    font-size: 19px;
}

.banner-cta {
    text-align: center;
    margin-top: 30px;
}

.btn-banner-contact {
    padding: 20px 50px;
    font-size: 19px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: white;
    border: 4px solid #d4af37;
    animation: pulse 2s infinite;
}

.btn-banner-contact:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.35);
}

/* CTAボタン */
.cta-buttons {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    min-width: 280px;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: white;
    border: 3px solid #d4af37;
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: white;
    color: #c41e3a;
    border: 3px solid #c41e3a;
}

.btn-secondary:hover {
    background: #c41e3a;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 10px rgba(212, 175, 55, 0);
    }
}

/* メリットセクション */
.benefits-section {
    margin: 50px 0 40px 0;
}

.benefits-title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

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

.benefit-card {
    background: white;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s;
}

.benefit-card:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6cc 100%);
    border: 2px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.benefit-icon i {
    font-size: 30px;
    color: #c41e3a;
}

.benefit-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
    font-weight: 600;
}

.benefit-card ul {
    list-style: none;
    text-align: left;
}

.benefit-card ul li {
    padding: 6px 0;
    color: #666;
    font-size: 13px;
    position: relative;
    padding-left: 20px;
}

.benefit-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
    font-weight: bold;
}

/* レビューセクション */
.review-section {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    padding: 30px;
    border: 2px solid #d4af37;
    border-radius: 8px;
    margin: 40px 0;
}

.review-title {
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.review-title i {
    color: #ffa500;
}

/* フッター */
.footer {
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    color: #666;
    padding: 30px 0;
    margin-top: 50px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #333;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 35px;
    border-radius: 4px;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.2s;
    border: 1px solid #ddd;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: normal;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

.modal-icon {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon i {
    font-size: 48px;
    color: #5cb85c;
}

.modal-content h2 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.modal-content p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* フォーム */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: #d9534f;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
}

.form-group textarea {
    resize: vertical;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .product-title {
        font-size: 24px;
    }

    .special-price {
        font-size: 32px;
        padding: 8px 20px;
    }

    .original-price {
        font-size: 16px;
    }

    .set-info-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        min-width: 100%;
    }

    .btn-banner-contact {
        padding: 16px 30px;
        font-size: 16px;
        width: 100%;
    }

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

    .banner-content h4 {
        font-size: 22px;
    }

    .banner-content p {
        font-size: 15px;
    }

    .customize-banner {
        padding: 50px 25px 30px 25px;
        margin: 50px 0 40px 0;
    }

    .customize-banner::before {
        top: -35px;
        font-size: 50px;
        padding: 8px 16px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        margin: 10% 20px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-header {
        padding: 30px 20px;
    }

    .product-title {
        font-size: 22px;
    }

    .special-price {
        font-size: 28px;
        padding: 6px 16px;
    }

    .price-tag {
        gap: 10px;
    }
}
