/* --- 基本設定 & リセットCSS --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Serif JP', serif;
    line-height: 1.8;
    color: #333;
    background-color: #fdfdfd;
    padding-bottom: 100px; /* フローティングCTAの高さ分 */
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.responsive{
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- 共通コンポーネント --- */
.container {
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 80px 0;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #ff6f61;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.8;
}

/* --- ヘッダー --- */
.header {
    padding: 10px 0;
    border-bottom: 10px solid #016837;
}

.logo {
    display: block;
    text-align: center; /* ロゴを中央に配置 */
}

.logo img {
    height: 50px;
    width: auto; /* 高さに合わせて幅を自動調整 */
}

/* --- ヒーローセクション --- */
.hero {
    position: relative;
    background-image: url('img/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* heightはコンテンツに合わせて自動調整されるように削除 */
}

.hero-inner {
    position: relative; /* 子要素を絶対配置するための基準点 */
    line-height: 0; /* img下の余白を消す */
}

.hero-main-img {
    width: 100%;
    height: auto;
}

.hero-title-img {
    position: absolute;
    top: 50%;
    left: 500px;
    transform: translateY(-50%); /* 上下中央揃え */
    max-width: 500px; /* 最大幅を500pxに設定 */
    height: auto; /* 縦横比を維持 */
}

/* --- 案内セクション --- */
.guidance-section {
    background-image: url('img/background_img.webp');
    background-size: cover;
    background-position: center;
}

.guidance-main-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 1080px;
    margin-top: 180px;
    margin-bottom: 100px;
}

.guidance-text-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 460px; /* 画像サイズを調整 */
    margin-bottom: 100px;
}

/* --- レスポンシブ対応 (案内セクション) --- */
@media (max-width: 1100px) {
    .guidance-main-img {
        margin-top: 120px;
        margin-bottom: 80px;
    }
    .guidance-text-img {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .guidance-main-img {
        margin-top: 80px;
        margin-bottom: 50px;
        max-width: 100%; /* スマホ用画像は画面幅に合わせる */
    }

    .guidance-text-img {
        max-width: 80%; /* スマホ用画像は画面幅に合わせる */
        margin-bottom: 20px;
    }
}

/* --- 説明コンテンツセクション --- */
.explanation-section {
    padding: 160px 0; /* 上下の余白 */
    background-image: url('img/background_img.webp');
    background-size: cover;
    background-position: center;
}

.explanation-section .container {
   max-width: 980px;
}

.content-block {
    display: flex;
    align-items: center; /* 垂直方向の中央揃え */
    margin-bottom: 80px; /* ブロック間の下余白 */
    gap: 60px; /* 画像とテキスト間のスペース */
}

.content-block:last-child {
    margin-bottom: 140px; /* 最後のブロックには下余白なし */
}

.content-block .content-image {
    flex: 1; /* 利用可能なスペースを均等に分配 */
    text-align: center; /* 画像を中央揃え */
}

.content-block .content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* 角丸 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* 影 */
}

.content-block .content-text {
    flex: 1; /* 利用可能なスペースを均等に分配 */
    text-align: left; /* テキストを左揃え */
}

.content-block .content-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #016837; /* メインカラー */
    font-weight: 700;
}

.content-block .content-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #000;
}

/* コンテンツブロック2: デスクトップで左にテキスト、右に画像 */
.content-block-reverse {
    flex-direction: row-reverse;
}

/* --- レスポンシブ対応 (説明コンテンツセクション) --- */
@media (max-width: 768px) {
    .content-block {
        flex-direction: column; /* 上に画像、下に見出しとテキスト */
        margin-bottom: 60px;
        gap: 30px;
    }

    .content-block-reverse {
        flex-direction: column; /* こちらも縦並びに変更 */
        margin-bottom: 40px;
    }

    .content-block .content-image,
    .content-block .content-text {
        flex: none; /* flexの指定を解除 */
        width: 100%; /* 幅を100%に */
        text-align: center; /* テキストを中央揃え */
    }

    .content-block .content-text h3 {
        font-size: 1.8rem;
        margin-top: 20px; /* 画像とテキストの間に余白 */
    }
}

/* --- ギフト紹介セクション --- */
.gift-intro-section {
    background-color: #fdfdfd;
    padding-top: 180px;
    padding-bottom: 100px;
}

.gift-intro-section h2 {
    margin-bottom: 60px;
    font-size: 2rem;;
}

.gift-features {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 60px;
}

.feature-item {
    text-align: center;
    width: 420px;
}

.feature-item img {
    border-radius: 4px; /* 角を少し丸くすると、影が自然に見えます */
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
}

.feature-item h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 20px;
    line-height: 1.6;
}

.note-box {
    display: inline-block;
    width: 920px; /* 上の要素の合計幅 (420px + 80px + 420px) */
    border: 1px solid #c00;
    color: #c00;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1.4rem;
    border-radius: 5px;
    margin-top: 40px; /* 上の要素との余白を調整 */
    text-align: center;
}

/* --- レスポンシブ対応 (ギフト紹介セクション) --- */
@media (max-width: 960px) {
    .note-box {
        width: 100%; /* 画面幅に合わせて調整 */
    }
}

@media (max-width: 768px) {
    .gift-intro-section {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .gift-features {
        flex-direction: column; /* 縦並びに変更 */
        align-items: center; /* 中央揃え */
        gap: 40px;
    }

    .feature-item {
        width: 90%; /* 幅を調整 */
        max-width: 420px;
    }
}

/* --- お客様の声セクション --- */
#voice {
    background-image: url('img/background_img.webp');
    background-size: cover;
    background-position: center;
    padding: 200px 0;
}

#voice h2 {
    margin-bottom: 60px;
}

.voice-container {
    max-width: 1100px; /* 画像2つが綺麗に収まるように幅を調整 */
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列のグリッドを作成 */
    gap: 40px; /* 画像間の余白 */
}

.voice-grid img {
    width: 100%; /* 親要素の幅に合わせて調整 */
}

/* --- レスポンシブ対応 (お客様の声セクション) --- */
@media (max-width: 768px) {
    #voice {
        padding: 80px 0;
    }

    .voice-grid {
        grid-template-columns: 1fr; /* 1列に変更して縦に並べる */
        gap: 30px;
    }
}

/* --- 商品一覧セクション --- */
.products-section {
    padding: 160px 0;
}

.product-category {
    margin-bottom: 180px;
}

.product-category:last-child {
    margin-bottom: 0;
}

.product-category-title {
    font-size: 2.2rem;
    margin-bottom: 60px;
    border-bottom: 3px solid #016837;
    display: inline-block;
    padding-bottom: 10px;
}

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

.product-item {
    text-align: center;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.product-item:hover {
    box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

.product-item a {
    display: block;
    height: 100%; /* 高さを親要素に合わせる */
}

.product-item img {
    display: block; /* 画像下の余白を削除 */
    transition: opacity 0.3s ease;
}

.product-item:hover img {
    opacity: 0.5; /* ホバー時に少し透明にする */
}

.price-nav {
    margin-bottom: 80px;
}

.btn-price {
    display: inline-block;
    padding: 12px 40px;
    margin: 0 10px;
    background-color: #fff;
    border: 2px solid #BE6900;
    color: #BE6900;
    font-weight: 700;
    border-radius: 2px;
    transition: all 0.3s;
}

.btn-price:hover {
    background-color: #BE6900;
    color: #fff;
}

.price-range-group {
    padding-top: 80px; /* アンカーリンクで飛んだ際の見出し位置調整 */
    padding-bottom: 60px;
    margin-top: -80px;
    text-align: left; /* 中の要素を左寄せにする */
}

.price-range-title {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-align: left; /* 左寄せを維持 */
    display: inline-block; /* ボタンのように扱うため */
    padding: 10px 30px;
    background-color: #BE6900;
    border: 2px solid #BE6900;
    color: #fff;
    font-weight: 700;
    border-radius: 2px;
}

/* --- レスポンシブ対応 (商品一覧セクション) --- */
@media (max-width: 768px) {
    .btn-price {
        width: 100%;
        max-width:800px;
    }

    .products-section {
        padding: 80px 0;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2列に変更 */
        gap: 10px;
    }
    .price-nav {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-bottom: 80px;
    }
}

/* --- フッター --- */
.footer {
    padding: 16px 0;
    text-align: center;
    background-color: #016837;
    color: #fff;
}

/* --- フローティングCTA --- */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* 背景を少し透過 */
    padding: 15px 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    height: 80px; /* ヘッダーの高さに合わせる */
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cta .cta-button {
    display: inline-block;
    background-color: #016837;
    color: #ffffff;
    padding: 15px 120px;
    font-weight: bold;
    border-radius: 5px;
    transition: opacity 0.3s;
    font-size: 1.2rem;
}

.floating-cta .cta-button:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    body { padding-bottom: 80px; } /* スマホでのCTA高さを調整 */

    .floating-cta { 
        height: 60px;
    }

    .floating-cta .cta-button {
        width: 100%;;
        padding: 15px 60px;
        font-weight: bold;
        border-radius: 0px;
        font-size: 1.1rem;
    }    
}
