/* weedmat_styles.css */

.weedmat-container {
    max-width: 900px;
    margin: 120px auto 0; /* ヘッダーの高さ分余白を追加 */
    padding: 40px 20px;
}

.catch-copy {
    font-size: 2.4rem;
    font-weight: bold;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.note,
.description {
    font-size: 1rem;
    background-color: #fff;
    padding: 20px;
    border-left: 5px solid #ccc;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.merits {
    background-color: #e8f5e9;
    border-left: 5px solid #426c15;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.merits h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #426c15;
}

.merits ul {
    padding-left: 20px;
    margin: 0;
}

.merits li {
    margin-bottom: 10px;
    list-style: none;
}

.photo-placeholder {
    height: 300px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 1.2rem;
    border: 2px dashed #bbb;
}

/* 写真スライダー */
.image-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap; /* 横並び固定に修正 */
    margin-bottom: 30px;
}

.image-box {
    width: 300px;
    height: 200px;
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.arrow {
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid #333;
}

/* 写真のとこ終わり */

.important-text {
    font-size: 1.4rem;
    text-align: center;  /* 中央揃え */
    margin: 30px 0;      /* 上下にスペースを追加 */
    color: #333;         /* 通常の文字色 */
    padding: 10px 0;     /* 上下の余白 */
    border-top: 3px solid #426c15;   /* 緑のライン（上） */
    border-bottom: 3px solid #426c15; /* 緑のライン（下） */
    background-color: #f4f7f4;  /* 背景色（緑っぽい淡い色） */
}

.important-text .bold {
    font-weight: bold;   /* 太字にする */
    color: #426c15;      /* 緑色 */
}

/* 商品紹介のレイアウト */
.product-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 30px; /* アイテム間の隙間を増やす */
}

/* 商品情報の画像部分 */
.product-photo {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* 商品紹介の規格値ボックス */
.product-info .specifications {
    width: 50%;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* メリット部分 */
.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.benefit-card {
    background-color: #e8f5e9;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #426c15;
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #426c15;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 1rem;
    color: #333;
}

/* フォトギャラリー */

.gallery-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    margin-top: 50px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 👇 縦長画像は contain にして切れずに表示 */
.gallery-item.tall img {
    object-fit: contain;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .image-slider {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px; /* 画像間のスペースを小さく */
        margin-bottom: 60px; /* 各スライダーの間隔を小さく */
    }

    /* 各画像のサイズをレスポンシブに調整 */
    .image-box {
        width: 180px; /* 幅を縮小 */
        height: 120px; /* 高さも縮小 */
        overflow: hidden;
        position: relative;
    }

    /* 画像が箱のサイズにぴったり収まるように調整 */
    .image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* 矢印のスタイル調整 */
    .arrow {
        width: 15px;  /* 矢印の幅を小さく */
        height: 15px;  /* 矢印の高さを小さく */
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 10px solid #333;  /* 下向き矢印 */
    }

    .weedmat-container {
        /* padding: 20px; */
        margin-top: 100px;
    }

    .catch-copy {
        font-size: 1.8rem;
    }

    .image-slider {
        flex-direction: column;
        gap: 10px;
    }

    .image-box {
        width: 100%;
    }

    /* スライダー風スタイルに切り替え（モバイル時） */
    .gallery-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 10px;
    }

    .gallery-item {
        flex: 0 0 80%;
        scroll-snap-align: center;
    }

    /* 商品紹介のレイアウト */
    .product-info {
        flex-direction: column; /* 縦並びに変更 */
        gap: 20px; /* 隙間調整 */
    }

    /* 商品紹介の画像部分 */
    .product-photo {
        max-width: 100%; /* 幅を100%に */
        margin: 0 auto;
    }

    /* 商品紹介の規格値ボックス */
    .product-info .specifications {
        width: 100%; /* 規格値ボックスも100%の幅 */
    }

    /* メリット部分 */
    .benefits {
        display: grid;
        grid-template-columns: 1fr; /* 1列に変更 */
        gap: 20px;
    }

    .benefit-card {
        padding: 15px; /* パディングを減らしてコンパクトに */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .benefit-card h3 {
        font-size: 1rem;
    }

    .benefit-card p {
        font-size: 0.9rem;
    }
}
