/* ========================================
   ヘルシーライフ - ダイエットアフィリエイトサイト
   スタイルシート
   ======================================== */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    color: #3c3c3c;
    line-height: 1.6;
    background-color: #fafaf8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* ========================================
   ヘッダー
   ======================================== */

header {
    background-color: #fafaf8;
    border-bottom: 1px solid #e8e8e6;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3c3c3c;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
}

nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: #3c3c3c;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #8b9f7f;
}

/* ========================================
   コンテナ
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   ボタン
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: #8b9f7f;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #7a8d6f;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #8b9f7f;
    border: 2px solid #8b9f7f;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: #f5f3f0;
}

/* ========================================
   ヒーローセクション
   ======================================== */

.hero {
    background: linear-gradient(135deg, #fafaf8 0%, #f5f3f0 100%);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #3c3c3c;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   セクション
   ======================================== */

section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #3c3c3c;
}

section > p {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   グリッドレイアウト
   ======================================== */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* ========================================
   カード
   ======================================== */

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e8e8e6;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #3c3c3c;
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

.card ul {
    list-style: none;
    margin-top: 1rem;
}

.card li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.card li:before {
    content: "✓ ";
    color: #8b9f7f;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ========================================
   商品セクション
   ======================================== */

.products {
    background-color: #f5f3f0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e8e8e6 0%, #d9d7d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    line-height: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-tag {
    display: inline-block;
    background-color: #e8d5c4;
    color: #8b6f47;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #3c3c3c;
}

.product-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-card a {
    display: inline-block;
    color: #8b9f7f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.product-card a:hover {
    color: #7a8d6f;
}

/* ========================================
   フッター
   ======================================== */

footer {
    background-color: #3c3c3c;
    color: #f5f3f0;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #f5f3f0;
}

.footer-section p, .footer-section a {
    color: #b8b8b8;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f5f3f0;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    text-align: center;
    color: #b8b8b8;
    font-size: 0.9rem;
}

/* ========================================
   商品紹介ページ用スタイル
   ======================================== */

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e8e8e6 0%, #d9d7d4 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* これで枠に合わせて綺麗に収まります */
    display: block;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card {
    text-align: center;
}

/* 特徴セクション */
.features {
    background-color: #f5f3f0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.feature-row:nth-child(even) {
    direction: rtl;
}

.feature-row > * {
    direction: ltr;
}

.feature-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e8e8e6 0%, #d9d7d4 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    overflow: hidden; 
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* これで枠に合わせて綺麗に収まります */
    display: block;
}

.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.feature-text p {
    color: #666;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.6rem 0;
    color: #666;
    display: flex;
    align-items: center;
}

.feature-list li:before {
    content: "✓";
    color: #8b9f7f;
    font-weight: bold;
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* 推奨セクション */
.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.recommendation-card {
    background: white;
    padding: 1.8rem;
    border-radius: 12px;
    border: 2px solid #e8e8e6;
    transition: border-color 0.3s;
}

.recommendation-card:hover {
    border-color: #8b9f7f;
}

.recommendation-card p {
    color: #666;
    font-size: 0.95rem;
}

/* CTA セクション */
.cta-section {
    background: linear-gradient(135deg, #f5f3f0 0%, #ede9e6 100%);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.external-link-note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 1rem;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        display: block;
        margin-bottom: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-image {
        height: 300px;
        font-size: 5rem;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }

    .feature-row:nth-child(even) {
        direction: ltr;
    }

    .feature-image {
        height: 250px;
        font-size: 4rem;
    }
}
