/* Products Page Styles */

/* Products Introduction */
.products-intro {
    padding: var(--section-spacing) 0;
    background-color: var(--mh--color--secondary-100);
}

.intro-content {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

.intro-heading {
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.intro-text {
    font-size: 1.6rem;
    line-height: 1.8;
}

/* Material Categories */
.material-categories {
    padding: var(--section-spacing) 0;
    background-color: var(--mh--color--secondary-200);
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.category-item {
    display: flex;
    background-color: var(--mh--color--secondary-300);
    border-radius: 0.4rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-image {
    flex: 0 0 40%;
    height: 35rem;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f3f0e9; /* より洗練された背景色 */
    transition: transform 0.5s;
}

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

.category-info {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-title {
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.category-desc {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.category-features {
    padding-left: 2rem;
}

.category-features li {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    list-style-type: disc;
    line-height: 1.6;
}

/* Product Applications */
.product-applications {
    padding: var(--section-spacing) 0;
    background-color: var(--mh--color--secondary-100);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
}

.application-item {
    background-color: var(--mh--color--secondary-100);
    border-radius: 0.4rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.application-item:hover {
    transform: translateY(-5px);
}

.application-image {
    height: 20rem;
    overflow: hidden;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f3f0e9; /* より洗練された背景色 */
    transition: transform 0.5s;
}

.application-item:hover .application-image img {
    transform: scale(1.05);
}

.application-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-primary);
    padding: 2rem 2rem 1rem;
}

.application-desc {
    font-size: 1.4rem;
    line-height: 1.6;
    padding: 0 2rem 2rem;
    color: var(--color-text-secondary);
}

/* Other Products */
.other-products {
    padding: var(--section-spacing) 0;
    background-color: var(--mh--color--secondary-300);
}

.other-container {
    max-width: 100%;
    padding: 0 2rem;
}

.other-grid {
    display: flex;
    flex-wrap: nowrap; /* 横一列に並べる */
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    padding: 1rem 0 2rem;
    overflow-x: auto; /* スマホ表示時に横スクロール可能に */
    scrollbar-width: thin; /* Firefox用 */
    -ms-overflow-style: none; /* IE/Edge用 */
    padding-bottom: 1.5rem; /* スクロールバー用の余白 */
}

/* Chrome、Safariのスクロールバーをカスタマイズ */
.other-grid::-webkit-scrollbar {
    height: 6px;
}

.other-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.other-grid::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.other-item {
    flex: 0 0 auto;
    width: 200px;
    background-color: var(--color-text-light);
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1/1;
}

.other-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.other-image {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.other-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f3f0e9; /* より洗練された背景色 */
    transition: transform 0.4s ease;
}

.other-item:hover .other-image img {
    transform: scale(1.05);
}

.other-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(38, 49, 66, 0.75);
    color: var(--color-text-light);
    font-size: 1.6rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    text-align: center;
}

.other-item:hover .other-title {
    opacity: 1;
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
    .other-grid {
        padding-bottom: 2rem; /* スクロールバー用の余白を増やす */
    }
}

@media (max-width: 768px) {
    .other-grid {
        gap: 1.5rem;
    }
    
    .other-item {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .other-grid {
        gap: 1rem;
    }
    
    .other-item {
        width: 150px;
    }
}

/* Contact Section */
.contact-section {
    padding: var(--section-spacing) 0;
    background-color: var(--mh--color--secondary-100);
    text-align: center;
}

.contact-lead {
    font-size: 1.8rem;
    line-height: 1.8;
    max-width: 70rem;
    margin: 0 auto 3rem;
}

.contact-button {
    margin-top: 2rem;
}

.contact-button .btn {
    padding: 1.5rem 4rem;
    font-size: 1.8rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .category-item {
        flex-direction: column;
    }
    
    .category-image {
        flex: 0 0 25rem;
        height: 25rem;
        width: 100%;
    }
    
    .category-info {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .intro-heading {
        font-size: 2.4rem;
    }
    
    .category-title {
        font-size: 2.2rem;
    }
    
    .applications-grid {
        grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    }
    
    .application-image {
        height: 18rem;
    }
    
    .other-grid {
        grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    }
    
    .other-image {
        height: 15rem;
    }
}

@media (max-width: 480px) {
    .intro-heading {
        font-size: 2.2rem;
    }
    
    .category-info {
        padding: 2rem;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .other-grid {
        grid-template-columns: 1fr;
    }
}

/* 画像スライダー */
.image-slider {
    position: relative;
    overflow: hidden;
    height: 20rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f3f0e9; /* より洗練された背景色 */
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.slider-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 111, 30, 0.3);
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    z-index: 5;
}

.dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--color-secondary);
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .slider-arrow {
        width: 3rem;
        height: 3rem;
    }
    
    .slider-prev {
        left: 0.5rem;
    }
    
    .slider-next {
        right: 0.5rem;
    }
} 