/* 全体のベース設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f0f0f0; /* 明るい背景色 */
    margin: 0;
    padding: 0;
    color: #333;
}

/* ヘッダー */
header {
    background-color: #a1c349; /* 明るい草色 */
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

header h1 {
    color: #fff;
    font-size: 2.5em;
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* アガベ チタノタ紹介ページ */
.plant-description {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #ffffff; /* 背景色を白に */
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* 画像部分 */
.image-container {
    flex: 1 1 45%;
    max-width: 45%;
    margin-right: 20px;
    text-align: center;
}

.plant-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 説明部分 */
.description-container {
    flex: 1 1 45%;
    max-width: 45%;
    font-size: 1.1em;
    color: #2b3e2f; /* 深い緑 */
}

.description-container h1 {
    font-size: 2.5em;
    color: #4c5c44; /* 明るい緑 */
    margin-bottom: 20px;
}

/* アガベ チタノタ基本情報 */
.plant-info {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.plant-info h2 {
    font-size: 1.8em;
    color: #4c5c44; /* 深い緑 */
    margin-bottom: 20px;
}

/* 基本情報のテーブル */
.plant-table {
    width: 100%;
    border-collapse: collapse;
}

.plant-table th,
.plant-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.plant-table th {
    background-color: #a1c349; /* 草色 */
    color: white;
}

.plant-table td {
    background-color: #f9f9f9;
}

.plant-table tr:nth-child(even) td {
    background-color: #f1f1f1;
}

/* フッター */
footer {
    background-color: #2b3e2f; /* 濃い緑 */
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
/* モバイル対応 */
@media (max-width: 768px) {
    /* ヘッダーのフォントサイズ調整 */
    header h1 {
        font-size: 1.8em;
    }

    /* アガベ チタノタ紹介ページ */
    .plant-description {
        flex-direction: column; /* 画像と説明を縦に並べる */
        padding: 20px;
    }

    /* 画像部分 */
    .image-container {
        flex: 1 1 100%;
        margin-right: 0;
        text-align: center;
        margin-bottom: 20px; /* 画像下に余白 */
    }

    .plant-image {
        width: 80%; /* 画像の幅を少し小さく */
        height: auto;
    }

    /* 説明部分 */
    .description-container {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .description-container h1 {
        font-size: 2em; /* タイトルのサイズ調整 */
        margin-bottom: 15px;
    }

    /* アガベ チタノタ基本情報 */
    .plant-info {
        padding: 20px;
    }

    .plant-info h2 {
        font-size: 1.6em;
    }

    /* 基本情報テーブル */
    .plant-table th,
    .plant-table td {
        padding: 8px; /* テーブルの余白調整 */
    }

    /* テーブルの列の調整 */
    .plant-table td {
        font-size: 0.9em; /* テーブルの文字サイズ調整 */
    }

    .plant-table th {
        font-size: 1.2em;
    }
}
/* アガベチタノタギャラリー */
.additional-images {
    padding: 40px 0;
    background-color: #f4f4f4;
    text-align: center;
}

.additional-images .section-title {
    font-size: 2em;
    color: #2b3e2f;
    margin-bottom: 20px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 画像を3列に配置 */
    gap: 20px;
    justify-items: center;
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* 画像のホバーエフェクト */
.gallery-image:hover {
    transform: scale(1.05);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr); /* モバイルでは2列 */
    }
}
/* モバイル対応 */
@media (max-width: 768px) {
    /* アガベ チタノタ紹介ページ */
    .plant-description {
        flex-direction: column; /* 画像と説明を縦に並べる */
        align-items: center; /* 画像と説明を中央揃え */
        padding: 20px; /* パディング調整 */
    }

    /* 画像部分 */
    .image-container {
        flex: 1 1 100%; /* 画像が横幅100%を占めるように */
        margin-bottom: 20px; /* 画像と説明の間に余白を追加 */
        display: flex;
        justify-content: center; /* 中央に配置 */
    }

    .plant-image {
        width: 80vw; /* 画面幅の90%に設定（少し小さく） */
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* 説明部分 */
    .description-container {
        flex: 1 1 100%; /* 説明が横幅100%を占めるように */
        font-size: 1.2em; /* フォントサイズを少し大きく */
        color: #2b3e2f; /* 深い緑 */
    }

    .description-container h1 {
        font-size: 2em; /* タイトルのサイズ調整 */
        margin-bottom: 15px;
    }
}
.ads-in-article {
    margin: 20px auto; /* 上下の余白と中央揃え */
    text-align: center; /* 中央揃え */
    max-width: 728px; /* 最大幅を設定 */
    width: 100%; /* レスポンシブ対応 */
    padding: 10px; /* モバイルでの余白確保 */
    box-sizing: border-box; /* パディングを幅に含める */
}

.ads-in-article ins.adsbygoogle {
    display: inline-block; /* インラインブロックで表示 */
    width: 100%; /* レスポンシブ幅 */
    max-width: 728px; /* バナー広告の最大幅 */
    height: auto; /* 高さを自動調整 */
}

/* モバイル向け（768px以下の画面） */
@media screen and (max-width: 768px) {
    .ads-in-article {
        margin: 15px auto; /* 余白を調整 */
        max-width: 320px; /* スマホ画面に最適化 */
    }
}
