@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap');

html {scroll-behavior: smooth;}
/* アンカーリンクの着地位置を調整（ヘッダーの高さ分などを考慮） */
article.card {scroll-margin-top: 100px;}

/* --- 1. 基本・レイアウト設定 --- */
body { 
    font-family: 'Noto Serif JP', serif; color: #544a40; background-color: #fcfaf5; 
    margin: 0; line-height: 1.8; -webkit-text-size-adjust: 100%; font-size: 16px; 
    position: relative; min-height: 100vh; padding-bottom: 120px; box-sizing: border-box; 
}

/* --- ヘッダー全体の装飾 --- */
header { background: #fff; padding: 3rem 1rem 2rem; text-align: center; border-bottom: 3px double #dcd6d1; }
.logo-link { text-decoration: none; color: inherit; display: inline-block; transition: 0.3s; }
.sonar-wrapper { position: relative; padding: 10px 20px; z-index: 1; }
.sonar-wave { position: absolute; top: 50%; left: 50%; width: 90%; height: 90%; border: 2px solid #8d7765; border-radius: 8px; transform: translate(-50%, -50%) scale(1); opacity: 0; z-index: -1; pointer-events: none; }
.logo-link:hover .sonar-wave { animation: sonarEffect 1s ease-out; }
@keyframes sonarEffect { 0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); } }
.logo-area h1 { font-size: 2rem; letter-spacing: 0.1em; color: #5d4037; margin: 0; line-height: 1.2; text-align: left;}
.logo-area h1 img {width: 60px; margin: auto 8px; display: block; float: right;}
.logo-area h1 p { font-size: 0.9rem; letter-spacing: 0; color: #8d7765; margin: 6px 0 0; font-weight: bold; }
.logo-area p { font-size: 0.9rem; letter-spacing: 0; color: #8d7765; margin: 0; font-weight: bold; }
.logo-area p img {display: none;}
.tagline { font-size: 0.85rem; color: #a69384; margin-top: 10px; }
.nav-links { list-style: none; padding: 15px 0; margin: 25px auto 0; max-width: 600px; display: flex; justify-content: center; border-top: 1px solid #8d7765; border-bottom: 1px solid #8d7765; }
.nav-links li { margin: 0 20px; }
.nav-links a { text-decoration: none; color: #8d7765; font-weight: bold; font-size: 1.1rem; position: relative; transition: 0.3s; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: #8d7765; transition: 0.3s; }
.nav-links a:hover { color: #5d4037; }
.nav-links a:hover::after { width: 100%; }

header nav p a {text-decoration: none; color: #8d7765; font-weight: bold; font-size: 0.95rem; position: relative; transition: 0.3s;}
header nav p a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: #8d7765; transition: 0.3s; }
header nav p a:hover { color: #5d4037; }
header nav p a:hover::after { width: 100%; }

.sister-site { border-left: 1px solid #dcd6d1; padding-left: 15px; }
.sister-site a { font-size: 0.9rem !important; opacity: 0.8; font-weight: bold;}

/* ヘッダー：スマホ表示の微調整 */
@media screen and (
	max-width: 768px) {header { padding: 2rem 1rem 1.5rem; } .logo-area h1 { font-size: 1.5rem; letter-spacing: 0.15em; } 
	.logo-area h1 {text-align: center;}
	.logo-area h1 img {display: none;}
	.logo-area p img {width: 68px; margin: 0 auto; padding: 0; display: block; line-height: 0;}
	.nav-links li { margin: 0 14px; }
	.nav-links { list-style: none; padding: 10px 0; margin: 25px auto 0; max-width: 480px; display: flex; justify-content: center; border-top: 1px solid #8d7765; border-bottom: 1px solid #8d7765; }
	.nav-links a { display: flex; text-decoration: none; color: #8d7765; font-weight: bold; font-size: 0.85rem; position: relative; transition: 0.3s;}
	header nav p a {text-decoration: none; color: #8d7765; font-weight: bold; font-size: 0.8rem; position: relative; transition: 0.3s;}
}

main { max-width: 1000px; margin: 40px auto; padding: 0 20px 120px; }
.card { background: #fff; padding: 20px; margin-bottom: 20px; border: 1px solid #f0ede9; }
.card p img {width: 100%; max-width: 450px; height: auto;margin: 0 auto; padding: 0;}
.section1, .sectionh3 { text-align: center; }
.news-content {font-size: 1rem; color: #544a40; line-height: 1.6;}
.news-content p {margin-bottom: 1em;}

.shop-info h3 {text-align: center;}
.info-list {width: 90%; margin: 0 5%;}
.shop-info dt {font-weight: 600;}
.shop-info dd {padding: 0; margin: 0 0 0 10px;}

/* --- トップページ：メインビジュアル --- */
.hero {width: 100%; height: 60vh; background-image: url('../../img/bakery/main/main.jpg'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; position: relative;}
/* 写真の上に文字を載せる場合 */
.hero-text {background: rgba(255, 255, 255, 0.7); padding: 20px 90px; text-align: center; border-radius: 5px;}
.hero-text h2 {margin:0;}
.hero-text p {margin:0; font-size: 0.9rem;}

/* --- 2. 商品一覧グリッド --- */
.product-container { width: 100%; text-align: left; font-size: 0; padding: 20px 0; }
.product-item { display: inline-block; vertical-align: top; width: 30%; margin: 1.5%; font-size: 1rem; box-sizing: border-box; }
.product-card { background: #fff; border: 1px solid #f0ede9; border-radius: 4px; overflow: hidden; transition: 0.3s; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 20px rgba(0,0,0,0.08); }
.product-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.product-text { padding: 15px; }
.product-text h4 { margin: 0; font-size: 1.1rem; color: #5d4037; }
.eng-name { font-size: 0.75rem; color: #bcaaa4; }
.price { margin-top: 10px; font-weight: bold; color: #8d7765; }

/* --- モーダル (PC:最適化 / スマホ:全幅) --- */
.modal { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); }
.modal-content-wrapper { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: inline-block; max-width: 90%; text-align: center; animation: modalFade 0.4s ease-out; }
@keyframes modalFade { from { opacity: 0; transform: translate(-50%, -45%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.modal-content { 
    width: auto; height: auto; max-width: 100%; max-height: 70vh; 
    object-fit: contain; display: block; margin: 0 auto; 
    border: 5px solid #fff; border-bottom: none; box-sizing: border-box; 
}
.modal-caption { 
    background: #fff; padding: 15px 20px; color: #5d4037; text-align: left; 
    width: 100%; box-sizing: border-box; margin: 0 auto; box-shadow: 0 10px 20px rgba(0,0,0,0.5); 
}
.close-btn { 
    position: fixed; top: 85px; right: 20px; width: 50px; height: 50px; 
    background: #8d7765; color: #fff; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; z-index: 10000; 
}
@media screen and (max-width: 768px) {
    .modal-content-wrapper { width: 100%; max-width: 100%; }
    .modal-content { border-left: none; border-right: none; border-top: none; }
}

/* --- 4. フッター (下部絶対配置) --- */
.footer-fixed { position: absolute; bottom: 0; left: 0; width: 100%; background: #f0ede9; border-top: 1px solid #e0ddd9; padding: 30px 0 60px; text-align: center; }
.footer-fixed p { margin: 0; padding: 2px 0; font-size: 1.1rem; color: #544a40; font-weight: bold; }
.footer-fixed p a {color: #544a40; text-decoration: none; transition: letter-spacing 0.3s; font-size: 1.1rem;}
.footer-fixed p a:hover {letter-spacing: 0.05em;}
@media screen and (max-width: 768px) {
   .footer-fixed {bottom: 60px;}
}


/* --- 5. ハンバーガーメニュー & スクロール出現 --- */
.hamburger { 
    position: fixed; top: 20px; right: 20px; width: 50px; height: 50px; 
    background: #8d7765; border-radius: 50%; cursor: pointer; z-index: 10000; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); opacity: 0; visibility: hidden; 
    transform: translateY(-20px); transition: 0.4s ease; 
}
.hamburger.show { opacity: 1; visibility: visible; transform: translateY(0); }
.hamburger span { display: block; width: 25px; height: 2px; background: #fff; margin: 3px 0; }

.side-menu { 
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%; 
    background: #fcfaf5; z-index: 10001; transition: 0.4s ease-in-out; 
    padding: 60px 30px; box-sizing: border-box; box-shadow: -5px 0 15px rgba(0,0,0,0.1); 
}
.side-menu.active { right: 0; }
.side-nav-links { list-style: none; padding: 0; }
.side-nav-links li { margin-bottom: 25px; border-bottom: 1px solid #f0ede9; }
.side-nav-links a { text-decoration: none; color: #8d7765; font-weight: bold; font-size: 1.1rem; display: block; padding-bottom: 10px; }
.menu-close { position: absolute; top: 15px; right: 20px; font-size: 32px; color: #8d7765; cursor: pointer; }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 9999; display: none; }
.menu-overlay.active { display: block; }

/* --- 6. レスポンシブ調整 --- */
@media screen and (max-width: 768px) {
    .product-item { width: 46%; margin: 2%; }
    body, main { padding-bottom: 150px; }
    .footer-fixed { padding: 20px 0; }
    .footer-fixed p { font-size: 0.9rem; }
}
@media screen and (max-width: 480px) {
    .product-item { width: 96%; margin: 2% 2% 20px; }
}

/* --- 7,TOPに戻るボタンのスタイル --- */
.pagetop {
    position: fixed; right: 20px; bottom: 30px; width: 50px; height: 50px;
    background: #8d7765; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 998; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: 0.4s;
}
.pagetop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.pagetop:hover { background: #766354; transform: scale(1.1); }

/* 矢印アイコン */
.arrow { 
    width: 12px; height: 12px; border-top: 3px solid #fff; border-right: 3px solid #fff; 
    transform: rotate(-45deg); margin-top: 5px; 
}

/* スマホ時：フッターに被らないよう位置調整 */
@media screen and (max-width: 768px) {
    .pagetop { bottom: 160px; }
}

/* 電話ボタン：基本は隠す */
.mobile-footer-tel { display: none; }

@media screen and (max-width: 768px) {
    .mobile-footer-tel {
        display: flex; position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
        background: #8d7765; color: #fff; text-decoration: none; z-index: 10002;
        align-items: center; justify-content: center; font-weight: bold; font-size: 1.1rem;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    /* ボタンが出る分、本体の余白を増やす */
    body { padding-bottom: 180px !important; } 
    .pagetop { bottom: 80px; } /* TOPボタンを少し上に逃がす */
}
/* Pager */
.pagination {clear: both; display: block; width: 100%; text-align: center; margin-top: 40px; padding-bottom: 20px;}
.pagination a {display: inline-block; padding: 5px 12px 7px; margin: 0 2px; border: 1px solid #ccc; text-decoration: none; color: #333; border-radius: 4px;}
.pagination a:hover {background: #f0f0f0;}

