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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'メイリオ', Meiryo, 'Hiragino Kaku Gothic ProN', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   Product Specification Section
   ============================================ */
.product-spec-section {
    padding: 60px 0;
    background-color: #fff;
}

/* Product Header */
.product-spec-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    /*border-bottom: 1px solid #e0e0e0;*/
}

.product-spec-header h1 {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.product-spec-header p {
    font-size: clamp(13px, 2vw, 16px);
    color: #666;
    line-height: 1.6;
}

/* Product Content (Image + Feature) */
.product-spec-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.product-spec-image {
    width: 100%;
    height: 400px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.product-spec-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-spec-feature h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.feature-list,
.product-spec-section ul,
.editor-styles-wrapper ul {
    list-style: none;
}

.feature-list li,
.product-spec-section ul li,
.editor-styles-wrapper ul li {
    padding: 12px 0 12px 30px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.feature-list li::before,
.product-spec-section ul li::before,
.editor-styles-wrapper ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 21px;
    width: 6px;
    height: 6px;
    background-color: #40419B;
    border-radius: 50%;
}

/* Specification Table */
.product-spec-table-wrapper {
    margin-bottom: 80px;
}

.product-spec-table-wrapper h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.product-spec-table,
.product-spec-section table,
.editor-styles-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.product-spec-table thead,
.product-spec-section table thead,
.editor-styles-wrapper table thead {
    background-color: #666;
    color: #fff;
    border-color: #666;
}

.product-spec-table th,
.product-spec-section table th,
.editor-styles-wrapper table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #ddd;
    color: #fff;
}

.product-spec-table td,
.product-spec-section table td,
.editor-styles-wrapper table td {
    padding: 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    color: #333;
}

.product-spec-table tbody tr:nth-child(even),
.product-spec-section table tbody tr:nth-child(even),
.editor-styles-wrapper table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.product-spec-table tbody tr:hover,
.product-spec-section table tbody tr:hover,
.editor-styles-wrapper table tbody tr:hover {
    background-color: #f0f0f0;
}

.spec-note {
    font-size: 13px;
    color: #d32f2f;
    font-weight: 500;
}

/* ============================================
   Product Categories Menu Section
   ============================================ */
.product-categories-menu {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.categories-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.category-menu-item {
    background-color: #fff;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
}

.category-menu-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.category-menu-image {
    width: 120px;
    height: 100%;
    min-height: 100px;
    flex-shrink: 0;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-menu-item:hover .category-menu-image img {
    transform: scale(1.1);
}

.category-menu-link {
    flex: 1;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.category-menu-item:hover .category-menu-link {
    background-color: #40419B;
    color: #fff;
}

/* ============================================
   Responsive Design (Tablet)
   ============================================ */
@media (max-width: 1024px) {
    .product-spec-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-spec-image {
        height: 300px;
    }

    .categories-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ============================================
   Responsive Design (Smartphone)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .product-spec-section {
        padding: 40px 0;
    }

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

    .product-spec-header h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .product-spec-header p {
        font-size: 13px;
    }

    .product-spec-content {
        gap: 30px;
        margin-bottom: 50px;
    }

    .product-spec-image {
        height: 250px;
    }

    .product-spec-feature h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .feature-list li,
    .product-spec-section ul li,
    .editor-styles-wrapper ul li {
        padding: 10px 0 10px 25px;
        font-size: 13px;
    }

    .product-spec-table-wrapper {
        margin-bottom: 50px;
    }

    .product-spec-table-wrapper h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .product-spec-table th,
    .product-spec-table td,
    .product-spec-section table th,
    .product-spec-section table td,
    .editor-styles-wrapper table th,
    .editor-styles-wrapper table td {
        padding: 12px;
        font-size: 12px;
    }

    .product-categories-menu {
        padding: 40px 0;
    }

    .categories-menu-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .category-menu-image {
        width: 100px;
        min-height: 80px;
    }

    .category-menu-link {
        padding: 15px 12px;
        font-size: 12px;
    }
}

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

    .product-spec-header p {
        font-size: 12px;
    }

    .product-spec-image {
        height: 200px;
    }

    .product-spec-feature h2 {
        font-size: 16px;
    }

    .feature-list li,
    .product-spec-section ul li,
    .editor-styles-wrapper ul li {
        padding: 8px 0 8px 22px;
        font-size: 12px;
    }

    .product-spec-table-wrapper h2 {
        font-size: 16px;
    }

    .product-spec-table th,
    .product-spec-table td,
    .product-spec-section table th,
    .product-spec-section table td,
    .editor-styles-wrapper table th,
    .editor-styles-wrapper table td {
        padding: 10px;
        font-size: 11px;
    }

    .category-menu-image {
        width: 80px;
    }

    .category-menu-link {
        padding: 12px 10px;
        font-size: 11px;
    }
}
