
/* ============================================
   Products Page Styles
   ============================================ */

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 1, 0.5) 0%, rgba(12, 39, 101, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: clamp(12px, 2vw, 18px);
    font-weight: 300;
    letter-spacing: 2px;
}

/* ============================================
   Products Section
   ============================================ */
.products-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}
.products-section {
    padding: 80px 0;
    background-image: url(../images/product/uzumaki_bg.png);
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 40%;
    position: relative;
}

.products-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.products-section .section-title {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.products-section .section-title::before {
    /*content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 30px;
    height: 2px;
    background-color: #40419B;*/
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg); /* -45度に傾ける */
    width: 70px;
    height: 2px;
    background-color: #333;
}

.products-section .section-subtitle {
    font-size: 18px;
    color: #333;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Products List */
.products-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 2em auto;
}

.product-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

/* 奇数番目（1, 3, 5, 7, 9）: 画像を左に */
.product-item:nth-child(odd) {
    flex-direction: row;
    margin-top: 0;
}

/* 偶数番目（2, 4, 6, 8）: 画像を右に、上にオフセット */
.product-item:nth-child(even) {
    /*flex-direction: row-reverse;*/
    margin-top: 80px;
}

/* 偶数番目の画像を前に表示（order優先） */
.product-item:nth-child(even) .product-item-image {
    order: -1;
}

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

.product-item-image {
    width: auto;
    height: 180px;
    flex-shrink: 0;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
}

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

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

.product-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-item-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
    border-bottom: 1px solid #333;
    padding-bottom: 1em;
}

.product-item-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-link {
    display: inline-block;
    background-color: #001a4d;
    color: #fff;
    padding: 8px 18px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.product-link:hover {
    background-color: #40419B;
}

/* ============================================
   Greeting Section
   ============================================ */
.greeting-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(180, 200, 220, 0.3) 0%, rgba(200, 220, 240, 0.2) 100%);
}

.greeting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.greeting-left {
    position: relative;
}

.greeting-image {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 4px;
    height: 300px;
}

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

.greeting-left:hover .greeting-image img {
    transform: scale(1.1);
}

.greeting-text h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #001a4d;
}

.greeting-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.greeting-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.greeting-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #0099ff 0%, #40419B 100%);
    color: #fff;
    padding: 18px 25px;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.greeting-link:hover {
    padding-right: 35px;
}

.greeting-link .arrow {
    font-size: 18px;
    margin-left: 15px;
}

/* ============================================
   Responsive Design (Tablet)
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        height: 250px;
    }
    .product-item:nth-child(even) {
    /*flex-direction: row-reverse;*/
    margin-top: 0px;
    }


    .products-list {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .greeting-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================
   Responsive Design (Smartphone)
   ============================================ */
@media (max-width: 768px) {
    .hero {
        height: 200px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 12px;
    }

    .products-section {
        padding: 50px 0;
    }

    .products-section .section-title {
        font-size: 32px;
    }

    .products-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    

    .product-item-image {
        height: 150px;
    }

    .greeting-section {
        padding: 50px 0;
    }

    .greeting-text h2 {
        font-size: 24px;
    }

    .greeting-text p {
        font-size: 13px;
    }

    .greeting-link {
        padding: 15px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 150px;
    }

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

    .products-section .section-title {
        font-size: 26px;
    }

    .product-item-image {
        width: auto;
        height: 100px;
    }
    .product-item,
    .product-item:nth-child(odd) {
        flex-direction: column;
    }
    .product-item {
        gap: 15px;
    }

    .greeting-text h2 {
        font-size: 20px;
    }

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

    .greeting-link .arrow {
        font-size: 16px;
    }
}
