/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif; /* 高級感のあるセリフフォント */
    color: #e0e0e0;
    background-color: #1b1b1b; /* シックな背景色 */
    line-height: 1.6;
}

/* Main Image Section */
.main-image img {
    width: 100%;
    height: auto;
    max-width: 1200px; /* メイン画像の最大幅を制限 */
    display: block;
    margin: 0 auto 50px auto; /* 画像のセンタリングと下に余白を追加 */
}

/* Products Section Styles */
.products {
    padding: 50px 10%;
    background-color: #252525; /* ダークグレーで背景を落ち着かせる */
}

.product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    border-bottom: 1px solid #444; /* セクションを区切る薄いライン */
    padding-bottom: 40px;
}

.product-item.reverse {
    flex-direction: row-reverse;
}

.product-text {
    width: 45%;
    color: #ccc; /* テキストを少し明るめにしてコントラストを付ける */
}

.product-text h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #e0e0e0;
    font-family: 'Playfair Display', serif; /* 高級感のあるフォント */
}

.product-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #b0b0b0;
}

.product-image {
    width: 50%;
}

.product-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 画像に少し深みを与えるシャドウ */
}
/* 株式会社FORTHEESのリンク専用スタイル */
.forthees-link {
    color: #7da730; /* 緑に設定 */
    font-weight: bold; /* 強調するための太字 */
    text-decoration: none; /* 下線を削除 */
}

.forthees-link:hover {
    color: #fff; /* ホバー時に白く変化 */
}
/* Collaboration text styling */
.collab {
    font-size: 1.3rem; /* 少し小さく */
    color: #b0b0b0; /* テキストカラーを調整 */
    margin-bottom: 15px; /* 下に余白を追加 */
    font-style: italic; /* 少し傾けて目立たせる */
}

/* Buy Button Styles */
.buy-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3c3c3c; /* ダークカラーの背景 */
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid #fff; /* シンプルなボーダー */
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.buy-button:hover {
    background-color: #ff6347; /* ホバー時はアクセントの赤 */
    color: #fff;
    border: 1px solid #ff6347;
    transform: translateY(-2px); /* ホバー時に軽く浮き上がる */
}
/* Box Image Section */
.box-images {
    display: flex;
    justify-content: center; /* ボックスを中央に配置 */
    gap: 20px; /* ボックス間にスペースを追加 */
    padding: 50px 0;
}

.box-image-item {
    width: 40%; /* 各ボックス画像の幅を調整（少し小さめに） */
}

.box-image-item img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 画像にシャドウを付けて立体感を演出 */
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .box-images {
        flex-direction: column; /* モバイルでは縦並びに変更 */
        gap: 40px; /* 縦の間隔を広げる */
    }

    .box-image-item {
        width: 60%; /* モバイル時は幅を小さく調整 */
        margin: 0 auto; /* 画像を中央揃え */
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-item {
        flex-direction: column; /* 商品画像とテキストを縦に並べる */
    }

    .product-item.reverse {
        flex-direction: column; /* 逆パターンのアイテムも縦に並べる */
    }

    .product-text, .product-image {
        width: 100%; /* 幅を100%にして1カラムレイアウトにする */
        text-align: center; /* テキストを中央揃え */
    }

    .product-image {
        order: -1; /* 画像をテキストの上に移動させる */
    }

    .buy-button {
        margin-top: 20px; /* 余白を追加してボタンが画像やテキストに近づかないように */
    }

    .product-image img {
        width: 80%; /* モバイル時は画像を少し小さく表示 */
        margin: 0 auto; /* 画像を中央揃え */
    }
}
