/* ==========================================
   リセット & 全体ベース
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Sans", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: #4a3b32; 
    background-color: #fbf9f5; 
    line-height: 1.7;
}

a {
    color: #4a3b32;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #007542; 
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.6rem;
    color: #007542; 
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #fcb83b; 
    border-radius: 2px;
}

/* ==========================================
   ヘッダー部分
   ========================================== */
.site-header {
    background-color: #fff;
    border-bottom: 3px solid #007542; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.site-logo a {
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-size: 0.75rem;
    color: #8c7662;
    letter-spacing: 2px;
    font-weight: 600;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 800;
    color: #007542;
    letter-spacing: 1px;
}

.shop-tag {
    font-size: 0.9rem;
    color: #4a3b32;
    font-weight: bold;
    margin-left: 5px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.header-utility {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tel-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 8px;
}

.utility-label {
    font-size: 0.7rem;
    color: #8c7662;
    font-weight: bold;
}

.tel-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007542;
    font-family: Georgia, serif;
}

.utility-btn {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid #e0d6cc;
    background-color: #faf8f5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.utility-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cart-go-btn {
    background-color: hsl(32, 92%, 59%);
    color: #fff;
    border-color: hsl(32, 92%, 59%);
    padding: 7px 16px;
}

.cart-go-btn:hover {
    background-color: hsl(32, 92%, 59%);
    color: #fff;
}

.header-search {
    display: flex;
}

.header-search input {
    padding: 6px 12px;
    border: 2px solid #e0d6cc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 240px;
    background-color: #faf8f5;
    font-size: 0.85rem;
}

.header-search button {
    padding: 6px 15px;
    border: 2px solid #007542;
    background-color: #007542;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
}



.logo-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 左揃え */
    gap: 3px;
}


.shop-tag {
    font-size: 0.8rem;
    margin-left: 32px;  /* ←これで右にずれる */
}



/* ==========================================
   ナビバー
   ========================================== */
.site-nav {
    background-color: #f0eae1; 
    border-bottom: 1px solid #e0d6cc;
}

.nav-links {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
}

.nav-links li {
    flex: 1;
    text-align: center;
}

.nav-links a {
    display: block;
    padding: 14px 0;
    color: #4a3b32;
    font-weight: bold;
    font-size: 0.95rem;
    border-right: 1px solid #e0d6cc;
}

.nav-links li:last-child a {
    border-right: none;
}

.nav-links a:hover {
    background-color: #fff;
    color: #007542;
}

/* ==========================================
   カテゴリボタン
   ========================================== */
.category-section {
    margin-bottom: 60px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.category-card {
    background-color: #fff;
    border: 1px solid #eae1d4;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(140, 118, 98, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%; 
    overflow: hidden;
    background-color: #fbf9f5;
    margin-bottom: 12px;
    border: 2px solid #f0eae1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-img-wrapper img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.category-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: #4a3b32;
}

.category-card:hover {
    border-color: #007542;
    transform: translateY(-3px);
}

/* ==========================================
   商品一覧部分（JSの吐き出しに合わせたスタイル）
   ========================================== */
.products-section {
    margin-bottom: 60px;
}

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

/* JSから出力される .item の枠組み */
.item {
    background-color: #fff;
    border: 1px solid #eae1d4;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(140, 118, 98, 0.03);
}

.item img.itemimg {
    max-height: 180px;
    margin: 0 auto 15px auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.item:hover img.itemimg {
    transform: scale(1.05);
}

.item h4 {
    font-size: 1rem;
    color: #4a3b32;
    margin-bottom: 10px;
    min-height: 2.6em; /* 2行分高さを確保して揃える */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item .price {
    font-weight: bold;
    color: #c0392b;
    font-size: 1.1rem;
    margin-bottom: 15px;
}




/* 詳細を見るボタン */
.item .more a {
    display: block;
    background-color: #007542;
    color: #fff;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.item .more a:hover {
    background-color: #005a32;
}

/* ==========================================
   お知らせ部分（JSの吐き出しに合わせたスタイル）
   ========================================== */
.news-section {
    margin-bottom: 60px;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eae1d4;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0eae1;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.news-header .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-header .section-title::after {
    display: none; 
}

.more-link {
    font-size: 0.85rem;
    color: #8c7662;
    font-weight: bold;
}

/* JSから出力される .news の枠組み */
.news {
    padding: 15px 0;
    border-bottom: 1px dashed #eae1d4;
}

#news-list .news:last-child {
    border-bottom: none;
}

.news h4 {
    font-size: 1rem;
    color: #007542;
    margin-bottom: 5px;
}

.news p {
    font-size: 0.9rem;
    color: #666;
}


/* ==========================================
   商品詳細ページ
   ========================================== */

.detail-section {
    margin-top: 20px;
}

/* 全体レイアウト */
.detail-inner {
    display: flex;
    gap: 40px;
    background-color: #fff;
    border: 1px solid #eae1d4;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(140, 118, 98, 0.08);
}

/* 左：画像 */
.detail-left {
    flex: 1;
    text-align: center;
}

.detail-left img {
    max-height: 400px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 8px;
}

/* 右：情報 */
.detail-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 商品名 */
.detail-right h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #4a3b32;
}

/* 価格（強調） */
.detail-right .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #c0392b;
    margin-bottom: 10px;
    padding: 10px 15px;

    border-radius: 6px;
}

/* 説明 */
.description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* スペックテーブル */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.spec-table th {
    width: 30%;
    background-color: #f5f1ea;
    padding: 10px;
    text-align: left;
    font-size: 0.85rem;
    border: 1px solid #e0d6cc;
}

.spec-table td {
    padding: 10px;
    font-size: 0.9rem;
    border: 1px solid #e0d6cc;
}

/* ===== カートエリア ===== */
.detail-right form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* 数量 */
.detail-right input[type="text"] {
    width: 60px;
    padding: 6px;
    border: 1px solid #dcd3c8;
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: center;
}

/* ボタン */
.btn-cart {
    background-color: #fdb329;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cart:hover {
    background-color: #fdb329;
    transform: translateY(-1px);
}

/* パンくず */
.breadcrumb {
    font-size: 0.8rem;
    color: #8c7662;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #8c7662;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ==========================================
   レスポンシブ
   ========================================== */
@media (max-width: 768px) {
    .detail-inner {
        flex-direction: column;
    }

    .detail-left img {
        max-height: 250px;
    }

    .detail-right form {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cart {
        width: 100%;
        text-align: center;
    }
}
/* ==========================================
   共通 レスポンシブ
========================================== */
@media (max-width: 768px) {

    /* ヘッダー */
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-right {
        width: 100%;
    }

    .header-utility {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .utility-btn {
        width: 100%;
        text-align: center;
    }

    /* 検索 */
    .header-search form {
        display: flex;
        width: 100%;
        gap: 5px;
    }

    .header-search input {
        flex: 1;
    }

    /* ナビ */
    .nav-links {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .nav-links li a {
        display: block;
        width: 100%;
    }

    /* メイン */
    .main-container {
        padding: 10px;
    }

    /* 特商法テーブル */
    .legal-row {
        display: block;
        margin-bottom: 15px;
    }

    .legal-title {
        font-weight: bold;
        margin-bottom: 5px;
    }

    .legal-text {
        padding-left: 0;
    }

    /* フッター */
    .footer-container {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        padding: 0;
    }

}










/* ==========================================
   フッター
   ========================================== */
.site-footer {
    background-color: #3b3028; 
    color: #f5f0ea;
    padding: 50px 0 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.footer-info p {
    font-size: 0.85rem;
    color: #cdc1b5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #cdc1b5;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #52443a;
    color: #a8998d;
    font-size: 0.75rem;
}



/* ==========================================
   法務ページ（プライバシーポリシー）
   ========================================== */
.legal-table {
    background-color: #fff;
    border: 1px solid #eae1d4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(140, 118, 98, 0.05);
}

/* 1ブロック */
.legal-row {
    border-bottom: 1px solid #eae1d4;
    padding: 20px 25px;
}

.legal-row:last-child {
    border-bottom: none;
}

/* 見出し */
.legal-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007542;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid #fdb329;
}

/* 本文 */
.legal-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
}

/* 箇条書き風 */
.legal-text br + br {
    display: none;
}

.legal-text {
    display: block;
}

/* ・の整形 */
.legal-text::before {
    content: '';
}

/* 箇条書きっぽく */
.legal-text {
    padding-left: 10px;
}

/* 強調ボックス（導入文） */
.legal-row:first-child {
    background-color: #f9f7f3;
    border-left: 5px solid #007542;
}

/* ==========================================
   レスポンシブ
   ========================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    .header-right {
        align-items: center;
        width: 100%;
    }
    .header-utility {
        justify-content: center;
    }
    .tel-item {
        align-items: center;
        width: 100%;
        margin-right: 0;
    }
    .nav-links {
        flex-wrap: wrap;
    }
    .nav-links li {
        flex: none;
        width: 50%;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホ時商品は2列並び */
        gap: 15px;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}