/* ============================================
   城戸石材加工所 ブログ用スタイルシート
   最終版: 2026-04-12
   ============================================ */

/* ========== ヘッダー ========== */
.blog-header { background: #fff; border-bottom: 3px solid #a36e2f; position: sticky; top: 0; z-index: 100; padding-bottom: 0; }
.blog-header-inner { max-width: 1200px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; }
.blog-header-logo { display: flex; align-items: center; }
.blog-header-logo img { height: 45px; }
.blog-header-nav { display: flex; gap: 20px; align-items: center; }
.blog-header-nav a { text-decoration: none; color: #202020; font-size: 13px; font-weight: 500; white-space: nowrap; font-family: 'Noto Serif JP', serif; }
.blog-header-nav a:hover { color: #2d8d9a; }
.blog-header-nav a.active { color: #2d8d9a; font-weight: 700; }
.blog-header-right { display: flex; align-items: center; gap: 12px; }
.blog-header-tel { font-size: 16px; font-weight: 700; color: #202020; text-decoration: none; white-space: nowrap; font-family: 'Noto Serif JP', serif; }
.blog-header-tel .tel-label { font-size: 10px; font-weight: 400; display: block; }
.blog-header-contact { background: #2d8d9a; color: #fff; padding: 10px 18px; text-decoration: none; font-size: 14px; border-radius: 3px; white-space: nowrap; font-family: 'Noto Serif JP', serif; }
.blog-header-contact:hover { background: #247a85; }

/* PCドロップダウン */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; text-decoration: none; color: #202020; font-size: 13px; font-weight: 500; white-space: nowrap; font-family: 'Noto Serif JP', serif; }
.nav-dropdown-trigger:hover { color: #2d8d9a; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #ddd; border-top: 3px solid #2d8d9a; min-width: 220px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 200; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 12px 18px; color: #202020; text-decoration: none; font-size: 13px; border-bottom: 1px solid #eee; white-space: nowrap; font-family: 'Noto Serif JP', serif; }
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: #f5f5f0; color: #2d8d9a; }

/* ハンバーガー */
.blog-header-hamburger { display: none; cursor: pointer; width: 30px; height: 24px; position: relative; }
.blog-header-hamburger span { display: block; width: 100%; height: 2px; background: #202020; position: absolute; left: 0; transition: 0.3s ease; }
.blog-header-hamburger span:nth-child(1) { top: 0; }
.blog-header-hamburger span:nth-child(2) { top: 11px; }
.blog-header-hamburger span:nth-child(3) { top: 22px; }
.blog-header-hamburger.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.blog-header-hamburger.active span:nth-child(2) { opacity: 0; }
.blog-header-hamburger.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .blog-header-nav { display: none; }
  .blog-header-tel { display: none; }
  .blog-header-contact { display: block; font-size: 12px; padding: 8px 14px; text-align: center; line-height: 1.2; }
  .blog-header-hamburger { display: block; }
  .blog-header-logo img { height: 35px; }
}

/* ========== スマホメニュー ========== */
.sp-menu { position: fixed; top: 59px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #ddd; max-height: 0; overflow: hidden; overflow-y: auto; transition: max-height 0.35s ease; z-index: 99; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.sp-menu.open { max-height: calc(100vh - 59px); }
.sp-menu > a { display: block; padding: 7px 15px; color: #202020; text-decoration: none; font-size: 17px; border-bottom: 1px solid #eee; font-family: 'Noto Serif JP', serif; }
.sp-menu > a:hover { background: #f5f5f0; color: #2d8d9a; }
@media (min-width: 901px) { .sp-menu { display: none !important; } }

.sp-menu-group { border-bottom: 1px solid #eee; }
.sp-menu-group-title { display: flex; justify-content: space-between; align-items: center; padding: 7px 15px; font-size: 17px; font-weight: 700; color: #202020; cursor: pointer; font-family: 'Noto Serif JP', serif; }
.sp-menu-group-title:hover { background: #f5f5f0; color: #2d8d9a; }
.sp-menu-arrow { font-size: 24px; transition: transform 0.3s ease; }
.sp-menu-group.open .sp-menu-arrow { transform: rotate(180deg); }
.sp-menu-group-items { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #fafafa; }
.sp-menu-group.open .sp-menu-group-items { max-height: 300px; }
.sp-menu-group-items a { display: block; padding: 6px 15px 6px 30px; color: #555; text-decoration: none; font-size: 16px; border-bottom: 1px solid #eee; font-family: 'Noto Serif JP', serif; }
.sp-menu-group-items a:hover { background: #f0f0f0; color: #2d8d9a; }
.sp-menu-current { display: block; padding: 7px 15px; font-size: 17px; font-weight: 700; color: #2d8d9a; border-bottom: 1px solid #eee; border-left: 4px solid #2d8d9a; background: #f5f5f0; cursor: default; font-family: 'Noto Serif JP', serif; }

/* ========== ページタイトル ========== */
.page-title-area { background: #f5f5f0; padding: 35px 20px; text-align: center; border-bottom: 1px solid #ddd; }
.page-title-area h1 { font-size: 26px; font-weight: 700; color: #202020; letter-spacing: 2px; font-family: 'Noto Serif JP', serif; }
.page-title-area .breadcrumb { font-size: 14px; color: #666; font-weight: 500; margin-top: 8px; max-width: 1100px; margin-left: auto; margin-right: auto; text-align: left; line-height: 1.6; font-family: 'Noto Serif JP', serif; }
.page-title-area .breadcrumb a { color: #2d8d9a; text-decoration: none; }

/* ========== ブログ一覧 ========== */
.blog-container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; display: flex; gap: 40px; }
.blog-main { flex: 1; }
.blog-sidebar { width: 230px; flex-shrink: 0; }

.post-card { display: flex; gap: 20px; padding: 25px 0; border-bottom: 1px solid #e0e0e0; }
.post-card:first-child { padding-top: 0; }
.post-card-thumb { width: 220px; height: 150px; flex-shrink: 0; overflow: hidden; border-radius: 4px; }
.post-card-thumb a { display: block; width: 100%; height: 100%; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { flex: 1; }
.post-card-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.post-card-date { font-size: 14px; color: #888; font-family: 'Noto Serif JP', serif; }
.post-card-cat { font-size: 11px; background: #2d8d9a; color: #fff; padding: 2px 10px; border-radius: 3px; font-family: 'Noto Serif JP', serif; }
.post-card-title { font-size: 19px; font-weight: 700; margin-bottom: 6px; font-family: 'Noto Serif JP', serif; }
.post-card-title a { color: #202020; text-decoration: none; }
.post-card-title a:hover { color: #2d8d9a; }
.post-card-excerpt { font-size: 15px; color: #555; line-height: 1.7; font-family: 'Noto Serif JP', serif; }
.no-posts { padding: 60px 20px; text-align: center; font-size: 16px; color: #888; font-family: 'Noto Serif JP', serif; }

/* スマホ用カテゴリー */
.sp-categories { display: none; margin-top: 30px; padding-top: 20px; border-top: 1px solid #e0e0e0; }
.sp-categories h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; font-family: 'Noto Serif JP', serif; }
.sp-categories-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-categories-list a { display: inline-block; padding: 8px 16px; background: #f5f5f0; color: #202020; text-decoration: none; font-size: 15px; border-radius: 4px; border: 1px solid #ddd; font-family: 'Noto Serif JP', serif; }
.sp-categories-list a:hover { background: #2d8d9a; color: #fff; border-color: #2d8d9a; }
@media (max-width: 768px) {
  .sp-categories { display: block; }
}

@media (max-width: 768px) {
  .blog-container { flex-direction: column; padding: 20px 15px; gap: 0; }
  .blog-sidebar { display: none; }
  .post-card { flex-direction: column; }
  .post-card-thumb { width: 100%; height: 180px; }
  .post-card-title { font-size: 16px; }
}

/* ========== 記事ページ ========== */
.article-container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; display: flex; gap: 40px; }
.article-main { flex: 1; min-width: 0; }
.article-sidebar { width: 230px; flex-shrink: 0; }

.article-header { margin-bottom: 30px; }
.article-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.article-date { font-size: 14px; color: #888; font-family: 'Noto Serif JP', serif; }
.article-cat { font-size: 11px; background: #2d8d9a; color: #fff; padding: 3px 12px; border-radius: 3px; text-decoration: none; font-family: 'Noto Serif JP', serif; }
.article-title { font-size: 26px; font-weight: 700; line-height: 1.5; margin-bottom: 20px; font-family: 'Noto Serif JP', serif; }
.article-eyecatch { width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; margin-bottom: 30px; }

.article-content { font-size: 17px; line-height: 2; font-family: 'Noto Serif JP', serif; }
.article-content h2 { font-size: 22px; font-weight: 700; margin: 40px 0 15px; padding: 10px 15px; border-left: 4px solid #2d8d9a; background: #f5f5f0; }
.article-content h3 { font-size: 19px; font-weight: 700; margin: 30px 0 10px; padding-bottom: 8px; border-bottom: 2px solid #2d8d9a; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 15px 0 20px 25px; }
.article-content li { margin-bottom: 8px; }
.article-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 15px 0; }
.article-content a { color: #2d8d9a; }

.article-cta { background: #f5f5f0; border: 2px solid #2d8d9a; border-radius: 8px; padding: 30px; text-align: center; margin: 40px 0; }
.article-cta h3 { font-size: 20px; color: #2d8d9a; margin-bottom: 10px; border: none; padding: 0; background: none; font-family: 'Noto Serif JP', serif; }
.article-cta p { font-size: 15px; margin-bottom: 15px; }
.article-cta .cta-btn { display: inline-block; background: #2d8d9a; color: #fff; padding: 15px 40px; text-decoration: none; font-size: 16px; font-weight: 700; border-radius: 5px; font-family: 'Noto Serif JP', serif; }
.article-cta .cta-btn:hover { background: #247a85; }
.article-cta .cta-tel { font-size: 22px; font-weight: 700; color: #202020; margin-top: 10px; }

.related-posts { margin-top: 50px; padding-top: 30px; border-top: 2px solid #e0e0e0; }
.related-posts > h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; border: none; padding: 0; background: none; font-family: 'Noto Serif JP', serif; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { text-decoration: none; color: #202020; }
.related-card img { width: 100%; height: 130px; object-fit: cover; border-radius: 4px; }
.related-card .related-title { font-size: 13px; font-weight: 500; margin-top: 8px; line-height: 1.5; font-family: 'Noto Serif JP', serif; }
.related-card:hover .related-title { color: #2d8d9a; }

@media (max-width: 768px) {
  .article-container { flex-direction: column; padding: 20px 15px; gap: 0; }
  .article-sidebar { display: none; }
  .article-title { font-size: 20px; }
  .article-content { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; gap: 15px; }
  .related-card img { height: 180px; }
}

/* ========== サイドバー ========== */
.sidebar-widget { margin-bottom: 30px; }
.sidebar-widget h3 { font-size: 15px; font-weight: 700; padding: 10px 15px; background: #2d8d9a; color: #fff; margin-bottom: 0; font-family: 'Noto Serif JP', serif; }
.sidebar-widget ul { list-style: none; margin: 0; padding: 0; border: 1px solid #e0e0e0; border-top: none; }
.sidebar-widget li { border-bottom: 1px solid #e0e0e0; margin: 0; }
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget li a { display: block; padding: 12px 15px; color: #202020; text-decoration: none; font-size: 14px; font-family: 'Noto Serif JP', serif; }
.sidebar-widget li a:hover { background: #f5f5f0; color: #2d8d9a; }

.sidebar-cta { display: block; background: #2d8d9a; color: #fff; text-align: center; padding: 25px 15px; text-decoration: none; border-radius: 4px; margin-bottom: 20px; }
.sidebar-cta .cta-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; font-family: 'Noto Serif JP', serif; }
.sidebar-cta .cta-tel { font-size: 22px; font-weight: 700; font-family: 'Noto Serif JP', serif; }
.sidebar-cta .cta-sub { font-size: 12px; margin-top: 5px; font-family: 'Noto Serif JP', serif; }
.sidebar-cta:hover { background: #247a85; }

.sidebar-sns { margin-bottom: 30px; }
.sidebar-sns h3 { font-size: 15px; font-weight: 700; padding: 10px 15px; background: #2d8d9a; color: #fff; margin-bottom: 0; font-family: 'Noto Serif JP', serif; }
.sidebar-sns-list { border: 1px solid #e0e0e0; border-top: none; }
.sidebar-sns-list a { display: flex; align-items: center; gap: 10px; padding: 12px 15px; color: #202020; text-decoration: none; font-size: 14px; border-bottom: 1px solid #e0e0e0; font-family: 'Noto Serif JP', serif; }
.sidebar-sns-list a:last-child { border-bottom: none; }
.sidebar-sns-list a:hover { background: #f5f5f0; color: #2d8d9a; }
.sns-icon { width: 24px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.sns-icon.sns-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sns-icon.sns-line { background: #06c755; }

/* ========== ページネーション ========== */
.pagination { text-align: center; padding: 30px 0; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid #ddd; color: #202020; text-decoration: none; font-size: 14px; font-family: 'Noto Serif JP', serif; }
.pagination .current { background: #2d8d9a; color: #fff; border-color: #2d8d9a; }
.pagination a:hover { background: #f5f5f0; }

/* ========== フッター ========== */
.blog-footer { background: #fff; color: #202020; padding: 50px 20px 20px; border-top: 3px solid #a36e2f; }
.blog-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 40px; flex-wrap: wrap; }
.blog-footer-info { flex: 1; min-width: 280px; }
.blog-footer-logo { margin-bottom: 15px; }
.blog-footer-logo img { height: 40px; }
.blog-footer-company-name { font-size: 14px; font-weight: 700; color: #202020; margin-top: 5px; }
.blog-footer-address { font-size: 15px; line-height: 2; color: #555; margin-bottom: 15px; font-family: 'Noto Serif JP', serif; }
.blog-footer-address strong { color: #202020; font-size: 16px; }
.blog-footer-sns { display: flex; gap: 10px; margin-top: 15px; }
.blog-footer-sns a { display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 5px; font-family: 'Noto Serif JP', serif; }
.blog-footer-sns .sns-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.blog-footer-sns .sns-instagram:hover { opacity: 0.85; }
.blog-footer-sns .sns-line { background: #06c755; }
.blog-footer-sns .sns-line:hover { background: #05b34c; }
.blog-footer-nav { flex: 1; min-width: 200px; }
.blog-footer-nav ul { list-style: none; margin: 0; padding: 0; }
.blog-footer-nav li { margin-bottom: 8px; }
.blog-footer-nav a { color: #555; text-decoration: none; font-size: 15px; font-family: 'Noto Serif JP', serif; }
.blog-footer-nav a:hover { color: #2d8d9a; }
.blog-footer-copy { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid #ddd; font-size: 13px; color: #999; font-family: 'Noto Serif JP', serif; }
@media (max-width: 768px) {
  .blog-footer { padding-bottom: 70px; }
}

/* ========== スマホ固定CTA ========== */
.sp-fixed-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #2d8d9a; z-index: 98; }
.sp-fixed-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; text-decoration: none; font-size: 15px; font-weight: 700; padding: 14px; white-space: nowrap; font-family: 'Noto Serif JP', serif; }
@media (max-width: 768px) {
  .sp-fixed-cta { display: block; }
}

/* ========== トップへ戻る ========== */
.scroll-top { position: fixed; bottom: 20px; right: 20px; width: 48px; height: 48px; background: #2d8d9a; color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 20px; display: none; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.3); z-index: 99; }
.scroll-top:hover { background: #247a85; }
@media (max-width: 768px) {
  .scroll-top { bottom: 70px; }
}
