/*
Theme Name: 株式会社ひまわり薬局 v3
Theme URI: https://himawari-pharmacy.jp/
Author: 株式会社ひまわり薬局
Description: ひまわり薬局グループ公式サイト用WordPressテーマ v3.18 - メニュー展開を3重フォールバック対応
Version: 3.18
License: GNU General Public License v2 or later
Text Domain: himawari
*/

/* ========== CSS変数 ========== */
:root {
  --primary:      #e8a000;   /* ひまわりイエロー */
  --primary-dark: #c47f00;
  --primary-light:#fff8e6;
  --green:        #2e8b57;
  --green-light:  #eaf6f0;
  --text:         #333;
  --text-light:   #666;
  --border:       #e8dfc8;
  --white:        #fff;
  --bg:           #fffdf5;
  --line-green:   #06C755;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

#page {
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.8;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
iframe, video, embed, object { max-width: 100%; }
pre, code { overflow-x: auto; max-width: 100%; }
table { max-width: 100%; }

/* ========== HEADER ========== */
#site-header {
  background: var(--white);
  border-bottom: 4px solid var(--primary);
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  box-sizing: border-box;
}
.site-branding { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }
.site-branding > * { min-width: 0; }
.site-logo { flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
/* 絵文字ロゴ（丸背景） */
.site-logo-emoji { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); font-size: 26px; }
.site-logo-emoji.no-bg { background: transparent !important; border-radius: 0; }
/* 画像ロゴ（画像自然サイズを尊重、四角・背景なし） */
.site-logo-image { width: auto; height: auto; background: transparent !important; border-radius: 0 !important; }
.site-logo-image img { display: block; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.site-logo .logo-emoji { line-height: 1; }
.site-title-wrap { min-width: 0; flex: 1 1 auto; }
/* 英字サブタイトル（サイト名の上、デフォルトで中央揃え） */
.site-title-wrap .site-subtitle-en {
  font-family: 'Noto Serif JP', 'Georgia', serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}
.site-title-wrap .site-title { font-family: 'Noto Serif JP', serif; font-size: 20px; font-weight: 700; color: var(--primary-dark); letter-spacing: 0.04em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.site-title-wrap .site-title a { color: inherit; }
.site-title-wrap .site-description { font-size: 11px; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ハンバーガーメニュー（CSS only / JS完全不要） */
.hmenu-cb {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 22px;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
  text-align: center;
}
#nav-wrap { position: relative; }

/* ========== GNAV ========== */
#site-navigation { background: var(--primary); }
#site-navigation .nav-menu { max-width: 1060px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0 20px; box-sizing: border-box; }
#site-navigation .nav-menu li a { display: block; padding: 11px 12px; color: var(--white); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; transition: background 0.2s; white-space: nowrap; }
#site-navigation .nav-menu li a:hover { background: var(--primary-dark); text-decoration: none; }
#site-navigation .nav-menu li.current-menu-item a { background: var(--primary-dark); }

/* ========== HERO SLIDER ========== */
.hero-slider { position: relative; width: 100%; height: 400px; overflow: hidden; background: var(--primary-light); }
.hero-slides { display: flex; height: 100%; transition: transform 0.9s cubic-bezier(0.4,0,0.2,1); }
.hero-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-slide:nth-child(1) { background: linear-gradient(135deg, #fff8e6 0%, #fde8a0 100%); }
.hero-slide:nth-child(2) { background: linear-gradient(135deg, #eaf6f0 0%, #b8e0cd 100%); }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, #f0f8ff 0%, #b8d8f0 100%); }
.hero-slide:nth-child(4) { background: linear-gradient(135deg, #fff0f8 0%, #f0b8d8 100%); }
.hero-slide-inner { text-align: center; padding: 20px; }
.hero-slide-inner .tag { display: inline-block; background: var(--primary); color: white; font-size: 12px; padding: 4px 14px; border-radius: 20px; margin-bottom: 14px; font-weight: 500; }
.hero-slide-inner h2 { font-family: 'Noto Serif JP', serif; font-size: 28px; font-weight: 700; color: var(--primary-dark); line-height: 1.5; margin-bottom: 10px; }
.hero-slide-inner p { font-size: 14px; color: var(--text-light); }
.hero-slide-inner .hero-sunflower { font-size: 70px; margin-bottom: 10px; line-height: 1; }
/* 写真スライド用スタイル */
.hero-slide.has-photo { position: relative; }
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.30) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}
.hero-slide-inner--photo {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px 40px;
}
.hero-slide-inner--photo .tag {
  background: rgba(232,160,0,0.92);
  color: white;
}
.hero-slide-inner--photo h2 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  font-size: 30px;
}
.hero-slide-inner--photo p {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  font-size: 15px;
}

.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-prev:hover, .slider-next:hover { background: var(--white); }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); border: 2px solid var(--primary); cursor: pointer; transition: background 0.3s; }
.slider-dot.active { background: var(--primary); }

/* ========== QUICK LINKS ========== */
.quick-links { background: var(--white); border-bottom: 1px solid var(--border); }
.quick-links-inner { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.quick-links-inner.ql-count-1 { grid-template-columns: 1fr; }
.quick-links-inner.ql-count-2 { grid-template-columns: repeat(2, 1fr); }
.quick-links-inner.ql-count-3 { grid-template-columns: repeat(3, 1fr); }
.quick-links-inner.ql-count-4 { grid-template-columns: repeat(4, 1fr); }
.quick-links-inner.ql-count-5 { grid-template-columns: repeat(5, 1fr); }
.quick-links-inner.ql-count-6 { grid-template-columns: repeat(6, 1fr); }
.quick-links-inner.ql-count-7,
.quick-links-inner.ql-count-8,
.quick-links-inner.ql-count-9,
.quick-links-inner.ql-count-10 { grid-template-columns: repeat(5, 1fr); }
.quick-link-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 8px; border-right: 1px solid var(--border); color: var(--primary-dark); font-size: 12px; font-weight: 700; gap: 6px; transition: background 0.2s; }
.quick-link-item:last-child { border-right: none; }
.quick-link-item:hover { background: var(--primary-light); text-decoration: none; color: var(--primary-dark); }
.quick-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.qi-news   .quick-icon { background: #fff3e0; }
.qi-hours  .quick-icon { background: #e3f2fd; }
.qi-line   .quick-icon { background: #e8f5e9; }
.qi-visit  .quick-icon { background: #f3e5f5; }
.qi-online .quick-icon { background: #fce4ec; }

/* ========== PAGE LAYOUT（v3 flexbox方式で再構築） ========== */
#primary-content {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  box-sizing: border-box;
}
#primary-content > main {
  flex: 1 1 0%;
  min-width: 0;
  width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
#primary-content > .sidebar {
  flex: 0 0 260px !important;
  max-width: 260px !important;
  min-width: 0 !important;
  width: 260px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
#primary-content.full-width { display: block; }
#primary-content.full-width > main { flex: none; width: 100%; }

/* ========== SECTION TITLES ========== */
[id^="section-"], [id^="store-"] {
  scroll-margin-top: var(--scroll-offset, 100px);
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  border-left: 5px solid var(--primary);
  padding-left: 14px;
  margin-bottom: 24px;
}
.section-title-center {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 6px;
}
.section-title-center::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 8px auto 24px;
}

/* ========== NEWS ========== */
.news-section { background: var(--white); padding: 28px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 32px; }
.news-item { padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.news-item:last-child { border-bottom: none; }
.news-item strong { color: var(--primary-dark); }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.news-date { font-size: 12px; color: var(--text-light); }
.news-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 2px; font-weight: 700; color: white; white-space: nowrap; }
.badge-info    { background: var(--primary); }
.badge-closed  { background: #e05050; }
.badge-important { background: var(--green); }
.badge-line    { background: var(--line-green); }
.badge-gray    { background: #888; }

/* ========== STORE OVERVIEW CARDS ========== */
.store-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.store-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; }
.store-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); text-decoration: none; }
.store-card-header { background: var(--primary); color: white; padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.store-card-header .store-icon { font-size: 22px; }
.store-card-header .store-name { font-family: 'Noto Serif JP', serif; font-size: 17px; font-weight: 700; }
.store-card-body { padding: 16px 18px; font-size: 13px; color: var(--text); line-height: 1.9; }
.store-card-body .store-address { color: var(--text-light); }
.store-card-body .store-tel { font-size: 16px; font-weight: 700; color: var(--primary-dark); }
.store-card-link { display: block; text-align: center; background: var(--primary-light); color: var(--primary-dark); font-size: 13px; font-weight: 700; padding: 10px; border-top: 1px solid var(--border); transition: background 0.2s; }
.store-card-link:hover { background: var(--primary); color: white; text-decoration: none; }

/* ========== LINE SECTION ========== */
.line-section { background: var(--white); border: 2px solid var(--line-green); border-radius: 8px; padding: 24px; margin-bottom: 32px; }
.line-section-title { color: var(--line-green); font-weight: 700; font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.line-stores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.line-store-item { border: 1px solid #c8e6c9; border-radius: 6px; padding: 14px; text-align: center; background: #f1f8e9; }
.line-store-item .line-store-name { font-weight: 700; color: var(--primary-dark); font-size: 14px; margin-bottom: 10px; }
.line-store-item .line-qr { width: 100px; height: 100px; background: #ddd; margin: 0 auto 10px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #666; overflow: hidden; }
.line-store-item .line-qr img { width: 100%; height: 100%; object-fit: cover; }
.line-btn { display: inline-block; background: var(--line-green); color: white; font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 22px; margin-top: 6px; transition: background 0.2s; }
.line-btn:hover { background: #05a647; color: white; text-decoration: none; }

/* ========== HOURS TABLE ========== */
.hours-section { background: var(--primary-light); padding: 28px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 32px; }
.hours-subtitle { color: var(--green); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 14px; }
.hours-table th, .hours-table td { border: 1px solid var(--border); padding: 9px 7px; text-align: center; }
.hours-table th { background: var(--primary); color: white; font-weight: 500; }
.hours-table .time-label { font-size: 11px; color: var(--text-light); background: #fdf5e0; font-weight: 700; text-align: left; padding-left: 8px; }
.hours-table td.open   { background: #d5f0e8; color: var(--green); font-weight: 700; font-size: 15px; }
.hours-table td.star   { background: #fff3e0; color: var(--primary-dark); font-weight: 700; font-size: 15px; }
.hours-table td.closed { background: #f5f5f5; color: #bbb; }
.hours-note { font-size: 12px; color: var(--text-light); background: var(--white); padding: 12px; border-radius: 4px; border: 1px solid var(--border); line-height: 1.8; }
.holiday-badge { display: inline-block; background: #e05050; color: white; font-size: 11px; padding: 2px 8px; border-radius: 2px; font-weight: 700; }

/* ========================================
   サイドバー v3 — 強制的に枠内に収める
   （WordPress標準ウィジェットも全て280px以内）
   ======================================== */

/* 基本コンテナ：必ず280px幅以内 */
.sidebar { 
  width: 100% !important; 
  max-width: 100% !important; 
  min-width: 0 !important; 
  overflow: hidden !important; 
  box-sizing: border-box !important; 
}

/* サイドバー内の全ての子要素を強制的に枠内に */
.sidebar *,
.sidebar *::before,
.sidebar *::after {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

/* カード共通スタイル（custom + widget 両方適用） */
.sidebar .sidebar-card,
.sidebar .widget,
.sidebar > section,
.sidebar > div {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 16px;
  margin-bottom: 22px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* カードタイトル */
.sidebar .sidebar-card-title,
.sidebar .widget-title,
.sidebar .widgettitle,
.sidebar .widget h2,
.sidebar .widget h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin: 0 0 14px;
  line-height: 1.4;
}

/* ボタン（電話・LINE） */
.sidebar .contact-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 14px 8px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: background 0.2s;
  box-sizing: border-box;
}
.sidebar .contact-btn:hover { background: var(--primary-dark); color: white; text-decoration: none; }

.sidebar .tel-display {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
  text-align: center;
  letter-spacing: 0;
  margin: 4px 0;
  white-space: nowrap;
}

.sidebar .sidebar-line-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  background: var(--line-green);
  color: white;
  text-align: center;
  padding: 11px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  transition: background 0.2s;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar .sidebar-line-btn:hover { background: #05a647; color: white; text-decoration: none; }

/* メニューリスト（カスタム） */
.sidebar .sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar .sidebar-nav-list li {
  padding: 0;
  margin: 0;
  list-style: none;
}
.sidebar .sidebar-nav-list li a {
  display: flex;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text);
  gap: 4px;
  line-height: 1.5;
}
.sidebar .sidebar-nav-list li a::before {
  content: '›';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar .sidebar-nav-list li a:hover { color: var(--primary-dark); text-decoration: none; }

/* ---- WordPress標準ウィジェット（最近の投稿/アーカイブ/カテゴリ/カレンダー/検索） ---- */
.sidebar .widget ul,
.sidebar .widget ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar .widget ul li,
.sidebar .widget ol li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  line-height: 1.6;
  list-style: none;
}
.sidebar .widget ul li:last-child,
.sidebar .widget ol li:last-child { border-bottom: none; }

.sidebar .widget ul li a,
.sidebar .widget ol li a {
  color: var(--text);
  display: inline;
  line-height: 1.5;
}
.sidebar .widget ul li a:hover,
.sidebar .widget ol li a:hover { color: var(--primary-dark); }

.sidebar .widget ul ul {
  margin-left: 12px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

/* セレクトボックス（アーカイブのドロップダウン表示） */
.sidebar .widget select {
  width: 100%;
  max-width: 100%;
  padding: 8px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  box-sizing: border-box;
}

/* 画像・メディア */
.sidebar .widget img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* カレンダーウィジェット */
.sidebar .widget table,
.sidebar .widget .wp-calendar-table,
.sidebar .widget #wp-calendar {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 11px;
  box-sizing: border-box;
}
.sidebar .widget table th,
.sidebar .widget table td {
  padding: 4px 1px;
  text-align: center;
  border: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.4;
}
.sidebar .widget table caption {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
  caption-side: top;
}
.sidebar .widget .wp-calendar-nav {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 6px;
}

/* 検索フォーム */
.sidebar .widget .search-form,
.sidebar .widget form {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  max-width: 100%;
}
.sidebar .widget .search-field,
.sidebar .widget input[type="search"],
.sidebar .widget input[type="text"] {
  flex: 1 1 60%;
  min-width: 0;
  max-width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-sizing: border-box;
}
.sidebar .widget .search-submit,
.sidebar .widget input[type="submit"],
.sidebar .widget button[type="submit"] {
  flex: 0 0 auto;
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

/* カウント表示（カテゴリー等の末尾の数字） */
.sidebar .widget .post-count,
.sidebar .widget .cat-count {
  color: var(--text-light);
  font-size: 11px;
}

/* ========== PAGE HERO ========== */
.page-hero { background: linear-gradient(135deg, #fff8e6 0%, #fde8a0 100%); padding: 40px 20px; text-align: center; border-bottom: 3px solid var(--primary); }
.page-hero-title { font-family: 'Noto Serif JP', serif; font-size: 28px; font-weight: 700; color: var(--primary-dark); }
.page-hero-sub { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ========== BREADCRUMB ========== */
.breadcrumb { background: #f8f3e8; border-bottom: 1px solid var(--border); padding: 8px 20px; font-size: 12px; color: var(--text-light); }
.breadcrumb-inner { max-width: 1060px; margin: 0 auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb .sep { color: #bbb; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary-dark); }

/* ========== PAGE CONTENT ========== */
.page-content { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 30px; margin-bottom: 30px; }
.page-content h2 { font-family: 'Noto Serif JP', serif; font-size: 20px; color: var(--primary-dark); border-left: 4px solid var(--primary); padding-left: 12px; margin: 28px 0 16px; }
.page-content h3 { font-size: 16px; color: var(--primary-dark); border-bottom: 1px dashed var(--border); padding-bottom: 6px; margin: 22px 0 12px; }
.page-content p { margin-bottom: 14px; }
.page-content ul, .page-content ol { padding-left: 1.4em; margin-bottom: 14px; }
.page-content table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.page-content table th { background: var(--primary-light); padding: 10px 12px; text-align: left; border: 1px solid var(--border); font-weight: 700; }
.page-content table td { padding: 10px 12px; border: 1px solid var(--border); }

/* ========== STORE PAGE ========== */
.store-detail-box { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 28px; }
.store-detail-header { background: var(--primary); color: white; padding: 18px 24px; display: flex; align-items: center; gap: 12px; }
.store-detail-header .icon { font-size: 28px; }
.store-detail-header h2 { font-family: 'Noto Serif JP', serif; font-size: 22px; font-weight: 700; }
.store-detail-header .sub { font-size: 12px; opacity: 0.9; }
.store-detail-body { padding: 24px; }
.store-info-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 20px; }
.store-info-table th { background: var(--primary-light); padding: 11px 14px; text-align: left; border: 1px solid var(--border); font-weight: 700; width: 110px; white-space: nowrap; }
.store-info-table td { padding: 11px 14px; border: 1px solid var(--border); }
.store-info-table td .big-tel { font-size: 20px; font-weight: 700; color: var(--primary-dark); }
.map-frame { width: 100%; height: 280px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.map-frame iframe { width: 100%; height: 100%; border: none; }
.line-box { background: #f1f8e9; border: 2px solid var(--line-green); border-radius: 8px; padding: 22px; text-align: center; margin-bottom: 20px; }
.line-box h3 { color: var(--line-green); font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.line-box .qr-area { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.line-box .qr-img { width: 120px; height: 120px; border-radius: 6px; border: 1px solid #ccc; background: #eee; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #999; overflow: hidden; }
.line-box .qr-img img { width: 100%; height: 100%; object-fit: cover; }
.line-box .qr-text { text-align: left; font-size: 13px; color: var(--text-light); line-height: 1.8; }

/* ========== FORM ========== */
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 30px; }
.form-row { margin-bottom: 20px; }
.form-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--primary-dark); }
.form-label .required { background: #e05050; color: white; font-size: 10px; padding: 2px 6px; border-radius: 2px; margin-left: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; font-family: inherit; transition: border-color 0.2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,160,0,0.15); }
.form-textarea { height: 150px; resize: vertical; }
.form-submit { display: block; width: 100%; background: var(--primary); color: white; border: none; padding: 16px; border-radius: 4px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.2s; margin-top: 10px; }
.form-submit:hover { background: var(--primary-dark); }

/* ========== FAQ ========== */
.faq-list { margin-bottom: 20px; }
.faq-item { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.faq-question { background: var(--primary-light); padding: 14px 18px; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; font-weight: 700; font-size: 14px; user-select: none; }
.faq-question .q-mark { background: var(--primary); color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.faq-question .faq-arrow { margin-left: auto; transition: transform 0.3s; font-size: 12px; color: var(--text-light); padding-top: 2px; }
.faq-question.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { display: none; background: var(--white); padding: 14px 18px 14px 54px; font-size: 14px; line-height: 1.8; border-top: 1px solid var(--border); }
.faq-answer.open { display: block; }
.faq-answer .a-mark { color: var(--green); font-weight: 700; }

/* ========== RECRUIT ========== */
.recruit-card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.recruit-card-header { background: var(--primary); color: white; padding: 14px 20px; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.recruit-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.recruit-table th { background: var(--primary-light); padding: 11px 14px; text-align: left; border: 1px solid var(--border); font-weight: 700; width: 130px; white-space: nowrap; }
.recruit-table td { padding: 11px 14px; border: 1px solid var(--border); }

/* ========== VISIT / ONLINE ========== */
.service-step { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.step-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 22px; text-align: center; position: relative; }
.step-num { background: var(--primary); color: white; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; margin: 0 auto 12px; }
.step-icon { font-size: 36px; margin-bottom: 10px; }
.step-title { font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.step-text { font-size: 13px; color: var(--text-light); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
.feature-item { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.feature-icon { font-size: 28px; flex-shrink: 0; }
.feature-text h4 { font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; font-size: 14px; }
.feature-text p { font-size: 13px; color: var(--text-light); }

/* ========== COMPANY TABLE ========== */
.company-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.company-table th { background: var(--primary-light); padding: 13px 16px; text-align: left; border: 1px solid var(--border); font-weight: 700; width: 140px; white-space: nowrap; vertical-align: top; }
.company-table td { padding: 13px 16px; border: 1px solid var(--border); vertical-align: top; }

/* ========== PRIVACY ========== */
.privacy-section { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 30px; }
.privacy-section h2 { font-size: 17px; color: var(--primary-dark); font-weight: 700; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.privacy-section h2:first-child { margin-top: 0; }
.privacy-section p { font-size: 14px; margin-bottom: 12px; }
.privacy-section ol, .privacy-section ul { padding-left: 1.5em; font-size: 14px; margin-bottom: 12px; }

/* ========== FOOTER NAV ========== */
#colophon-nav { background: var(--primary-dark); padding: 24px 20px; }
#colophon-nav .footer-nav-inner { max-width: 1060px; margin: 0 auto; }
#colophon-nav .footer-nav-title { color: rgba(255,255,255,0.5); font-size: 11px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
#colophon-nav .nav-menu { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 2px 0; }
#colophon-nav .nav-menu li a { color: rgba(255,255,255,0.85); font-size: 12px; padding: 4px 14px; border-right: 1px solid rgba(255,255,255,0.25); display: block; }
#colophon-nav .nav-menu li:last-child a { border-right: none; }
#colophon-nav .nav-menu li a:hover { color: white; text-decoration: none; }

/* ========== FOOTER ========== */
#colophon { background: #7a4f00; color: rgba(255,255,255,0.7); text-align: center; padding: 18px 20px; font-size: 12px; }
#colophon .footer-stores { font-size: 11px; margin-bottom: 6px; opacity: 0.7; }

/* ========== FLOATING BUTTONS ========== */
.floating-btns { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 300; }
.float-btn { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 50px; font-size: 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,0.18); transition: opacity 0.2s, transform 0.2s; }
.float-btn:hover { opacity: 0.88; transform: translateY(-2px); text-decoration: none; }
.float-tel  { background: var(--primary); color: white; }
.float-line { background: var(--line-green); color: white; }
.float-top  { background: #555; color: white; font-size: 12px; padding: 10px 14px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .store-cards { grid-template-columns: 1fr; }
  .service-step { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .line-stores  { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex !important; align-items: center; justify-content: center; }
  .menu-toggle-icon { pointer-events: none; }
  /* スマホではナビを非表示 */
  #site-navigation .nav-menu {
    flex-direction: column;
    display: none !important;
    padding: 0;
  }
  /*
    メニュー展開: 3重のフォールバックで全端末対応
    方式A: CSS :has() — iOS15.4+, Chrome105+, Firefox121+
    方式B: .nav-open クラス — JSフォールバック (全ブラウザ)
    方式C: #hmenu:checked — CSS隣接兄弟 (構造が保たれている場合)
  */
  /* 方式A: body:has() で checkbox の状態を検知 */
  body:has(#hmenu:checked) #site-navigation .nav-menu {
    display: flex !important;
  }
  /* 方式B: JSフォールバック用クラス */
  #site-navigation .nav-menu.nav-open {
    display: flex !important;
  }
  #site-navigation .nav-menu li { width: 100%; }
  #site-navigation .nav-menu li a { border-bottom: 1px solid rgba(255,255,255,0.15); padding: 14px 20px; text-align: left; font-size: 14px; }
  .hero-slider { height: 260px; }
  .hero-slide-inner h2 { font-size: 20px; }
  .hero-slide-inner .hero-sunflower { font-size: 46px; }
  .quick-links-inner,
  .quick-links-inner.ql-count-4,
  .quick-links-inner.ql-count-5,
  .quick-links-inner.ql-count-6,
  .quick-links-inner.ql-count-7,
  .quick-links-inner.ql-count-8,
  .quick-links-inner.ql-count-9,
  .quick-links-inner.ql-count-10 { grid-template-columns: repeat(3, 1fr); }
  .quick-link-item { border-bottom: 1px solid var(--border); }
  #primary-content { flex-direction: column; padding: 24px 16px; }
  #primary-content > main { width: 100%; flex: none; }
  #primary-content > .sidebar { width: 100% !important; max-width: 100% !important; flex: none !important; }
  .floating-btns { bottom: 12px; right: 12px; }
  .float-btn { font-size: 12px; padding: 9px 14px; }
  .store-detail-header h2 { font-size: 18px; }
  /* ヘッダー中央揃えでもスマホでは横並び強制 */
  .header-align-center .header-inner { flex-direction: row; text-align: left; }
  .header-align-center .site-branding { flex-direction: row; width: auto; }
}
@media (max-width: 480px) {
  .quick-links-inner,
  .quick-links-inner.ql-count-3,
  .quick-links-inner.ql-count-4,
  .quick-links-inner.ql-count-5,
  .quick-links-inner.ql-count-6,
  .quick-links-inner.ql-count-7,
  .quick-links-inner.ql-count-8,
  .quick-links-inner.ql-count-9,
  .quick-links-inner.ql-count-10 { grid-template-columns: repeat(2, 1fr); }
  /* スマホでもサイト名は1行、サイズだけ縮小 */
  .site-title-wrap .site-title { white-space: nowrap; }
}

/* ========== TOP NOTICE BAR ========== */
.top-notice-bar { padding: 14px 20px; }
.bottom-notice-bar { margin-top: 0; padding: 18px 20px; }
.top-notice-inner { max-width: 1060px; margin: 0 auto; }
.top-notice-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.top-notice-list { list-style: none; padding: 0; }
.top-notice-list li { font-size: 13px; padding: 3px 0 3px 1.2em; text-indent: -1.2em; color: var(--text); line-height: 1.7; }
.top-notice-list li::before { content: '・'; }

/* ========== HOURS GRID（店舗別） ========== */
.hours-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 10px; }
.hours-store-block { background: var(--primary-light); border: 1px solid var(--border); border-radius: 6px; padding: 16px; }
.hours-store-name { font-family: 'Noto Serif JP', serif; font-weight: 700; color: var(--primary-dark); font-size: 15px; margin-bottom: 10px; }
.hours-store-block .hours-table th { font-size: 12px; padding: 6px 4px; }
.hours-store-block .hours-table td { padding: 6px 3px; font-size: 10.5px; }

/* スライドリンク */
.slide-link-wrap { position: absolute; inset: 0; z-index: 3; }

/* クイックリンク番号クラス */
.qi-1 .quick-icon { background: #fff3e0; }
.qi-2 .quick-icon { background: #e3f2fd; }
.qi-3 .quick-icon { background: #e8f5e9; }
.qi-4 .quick-icon { background: #f3e5f5; }
.qi-5 .quick-icon { background: #fce4ec; }

@media (max-width: 768px) {
  .hours-grid { grid-template-columns: 1fr; }
}

/* ========== WP DEFAULT ALIGNMENT ========== */
.alignleft { float: left; margin-right: 1em; }
.alignright { float: right; margin-left: 1em; }
.aligncenter { display: block; margin: 0 auto; }

/* ========================================
   店舗ページ V2 拡張スタイル
   ======================================== */
.store-section { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px 28px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); scroll-margin-top: var(--scroll-offset, 100px); }
.store-section .section-title { color: var(--primary-dark); border-left: 4px solid var(--primary); padding-left: 12px; font-size: 20px; margin: 0 0 18px; font-weight: 700; }

/* 店舗メッセージ */
.store-message-section { background: linear-gradient(135deg, #fff8e6, #ffffff); }
.store-message-body { font-size: 15px; line-height: 1.9; color: var(--text); }
.store-message-body p { margin: 0 0 10px; }

/* お知らせ */
.store-news-list { list-style: none; padding: 0; margin: 0; }
.store-news-item { padding: 16px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 18px; flex-wrap: wrap; }
.store-news-item:last-child { border-bottom: none; }
.store-news-meta { display: flex; flex-direction: column; gap: 6px; min-width: 110px; }
.store-news-meta time { font-size: 13px; color: var(--text-light); font-weight: 500; }
.store-news-content { flex: 1; min-width: 220px; }
.store-news-title { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.store-news-text { font-size: 14px; color: var(--text); line-height: 1.7; }
.store-news-text p { margin: 0 0 6px; }
.store-news-empty { color: var(--text-light); font-size: 14px; margin: 0 0 8px; }
.store-news-help { font-size: 12px; color: var(--text-light); background: #fafafa; padding: 10px 14px; border-radius: 6px; margin: 8px 0 0; }

/* 営業時間（詳細版） */
.hours-table-detail { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.hours-table-detail th, .hours-table-detail td { border: 1px solid var(--border); padding: 10px 8px; text-align: center; font-size: 13px; }
.hours-table-detail thead th { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.hours-table-detail td.open { background: #fff; color: var(--text); font-weight: 500; }
.hours-table-detail td.closed { background: #f5f5f5; color: #999; font-weight: 700; }
.hours-note { font-size: 13px; color: var(--text); margin: 8px 0 4px; }
.hours-note-extra { font-size: 12px; color: var(--text-light); margin: 0; }
.holiday-badge { display: inline-block; background: #e05050; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-right: 6px; font-weight: 700; }

/* アクセス */
.access-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.access-detail { background: #fafafa; border-radius: 6px; padding: 14px 16px; }
.access-detail h3 { font-size: 14px; color: var(--primary-dark); margin: 0 0 6px; font-weight: 700; }
.access-detail p { margin: 0; font-size: 14px; color: var(--text); line-height: 1.7; }
.map-link { display: inline-block; margin-left: 10px; font-size: 12px; color: var(--primary-dark); text-decoration: underline; }

/* スタッフ */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.staff-card { background: #fafafa; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.staff-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.staff-photo { width: 100%; aspect-ratio: 1; background: var(--primary-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-photo-placeholder { font-size: 64px; color: var(--primary); }
.staff-info { padding: 14px 16px; }
.staff-role { font-size: 12px; color: var(--primary-dark); margin: 0 0 4px; font-weight: 600; }
.staff-name { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.staff-comment { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.staff-comment p { margin: 0 0 6px; }

/* Q&A アコーディオン */
.qa-list { display: flex; flex-direction: column; gap: 10px; }
.qa-item { background: #fafafa; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qa-item[open] { background: #fff; border-color: var(--primary); }
.qa-question { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; user-select: none; }
.qa-question::-webkit-details-marker { display: none; }
.qa-question:hover { background: var(--primary-light); }
.qa-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--primary); color: #fff; border-radius: 50%; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.qa-mark-a { background: var(--primary-dark); }
.qa-question .qa-text { flex: 1; font-size: 15px; }
.qa-arrow { color: var(--primary-dark); font-size: 12px; transition: transform 0.2s; }
.qa-item[open] .qa-arrow { transform: rotate(180deg); }
.qa-answer { display: flex; gap: 12px; padding: 14px 18px 18px; border-top: 1px solid var(--border); }
.qa-answer .qa-text { flex: 1; font-size: 14px; color: var(--text); line-height: 1.8; }
.qa-answer .qa-text p { margin: 0 0 8px; }

/* レスポンシブ */
@media (max-width: 720px) {
  .store-section { padding: 18px 16px; }
  .store-section .section-title { font-size: 17px; }
  .store-news-meta { flex-direction: row; align-items: center; min-width: 0; gap: 10px; }
  .access-info { grid-template-columns: 1fr; }
  .hours-table-detail th, .hours-table-detail td { padding: 8px 4px; font-size: 12px; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .staff-info { padding: 10px 12px; }
  .staff-name { font-size: 14px; }
}

/* ========================================
   営業時間 v2 （大沢クリニック風レイアウト）
   ======================================== */
.hours-grid-v2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 10px; }
.hours-store-block-v2 { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.hours-store-header {
  background: #1a3a6b;
  color: white;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hours-store-header .hours-dot {
  color: #f4d03f;
  font-size: 14px;
  font-weight: 400;
}
.hours-intro {
  padding: 14px 20px 6px;
  font-size: 13px;
  color: var(--text);
  margin: 0;
}
.hours-divider {
  margin: 0 20px;
  border-top: 2px dotted #f4d03f;
}
.hours-table-wrap {
  padding: 16px 12px;
  overflow: hidden;
}
.hours-table-v2 {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
.hours-table-v2 th,
.hours-table-v2 td {
  border: 1px solid #d6d6d6;
  text-align: center;
  padding: 10px 2px;
  line-height: 1.3;
  word-break: keep-all;
}
.hours-table-v2 thead .time-header { width: 22%; background: transparent; border: none; }
.hours-table-v2 thead .day-header {
  background: #1a3a6b;
  color: white;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 2px;
}
.hours-table-v2 tbody .time-label {
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  padding: 12px 2px;
  border-right: 1px solid #d6d6d6;
  border-left: none;
}
.hours-table-v2 td.cell-open {
  color: #1a3a6b;
  font-weight: 700;
  font-size: 16px;
}
.hours-table-v2 td.cell-closed {
  color: #999;
  font-size: 14px;
  font-weight: 400;
}
.hours-table-v2 td.cell-custom {
  color: #1a3a6b;
  font-weight: 700;
  font-size: 11px;
  padding: 8px 1px;
  line-height: 1.3;
  word-break: break-all;
}
.hours-footer { padding: 10px 20px 18px; }
.hours-note-v2 {
  font-size: 12px;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.6;
}
.hours-holiday-v2 {
  font-size: 13px;
  margin: 0;
  color: #c0392b;
  font-weight: 700;
  line-height: 1.6;
}
.hours-holiday-v2 .holiday-label { margin-right: 4px; }

/* タブレット・スマホ対応：横スクロールせず全曜日表示 */
@media (max-width: 900px) {
  .hours-grid-v2 { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 768px) {
  .hours-store-header { padding: 12px 16px; font-size: 16px; }
  .hours-table-wrap { padding: 12px 8px; }
  .hours-table-v2 { font-size: 11px; }
  .hours-table-v2 thead .day-header { font-size: 12px; padding: 6px 1px; }
  .hours-table-v2 tbody .time-label { font-size: 10px; padding: 8px 1px; }
  .hours-table-v2 td.cell-open { font-size: 14px; }
  .hours-table-v2 td.cell-closed { font-size: 12px; }
  .hours-table-v2 td.cell-custom { font-size: 10px; padding: 6px 1px; }
  .hours-table-v2 th, .hours-table-v2 td { padding: 8px 1px; }
  .hours-footer { padding: 8px 16px 14px; }
}
@media (max-width: 480px) {
  .hours-store-header { padding: 10px 12px; font-size: 15px; }
  .hours-table-wrap { padding: 10px 4px; }
  .hours-table-v2 { font-size: 10px; }
  .hours-table-v2 thead .time-header { width: 18%; }
  .hours-table-v2 thead .day-header { font-size: 11px; padding: 5px 0; }
  .hours-table-v2 tbody .time-label { font-size: 9px; padding: 6px 0; }
  .hours-table-v2 td.cell-open { font-size: 13px; }
  .hours-table-v2 td.cell-closed { font-size: 11px; }
  .hours-table-v2 td.cell-custom { font-size: 9px; padding: 5px 0; line-height: 1.2; }
  .hours-table-v2 th, .hours-table-v2 td { padding: 6px 0; border-width: 1px; }
}

/* ========================================
   店舗カード v2（LINE QR付き）
   ======================================== */
.store-card-v2 {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.store-card-v2:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.store-card-main {
  display: block;
  text-decoration: none;
  color: inherit;
}
.store-card-main:hover { text-decoration: none; }
.store-card-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px dashed var(--border);
  background: #f9fdf6;
}
.store-card-qr {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}
.store-card-qr img { width: 100%; height: 100%; object-fit: cover; }
.qr-placeholder-mini { font-size: 9px; color: #aaa; text-align: center; }
.store-card-line-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line-btn-mini {
  display: inline-block;
  background: var(--line-green);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.line-btn-mini:hover { background: #05a647; color: white; text-decoration: none; }
.line-id-mini { font-size: 10px; color: var(--text-light); }

@media (max-width: 480px) {
  .store-card-line { padding: 10px 12px; gap: 8px; }
  .store-card-qr { width: 48px; height: 48px; }
  .line-btn-mini { font-size: 11px; padding: 5px 10px; }
}

/* ========================================
   お知らせ管理者向けガイド
   ======================================== */
.news-empty { color: var(--text-light); font-size: 14px; margin: 0 0 12px; }
.news-admin-guide {
  background: #f0f8ff;
  border: 1px solid #b3d9ff;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}
.news-admin-guide a {
  color: #0073aa;
  font-weight: 700;
  text-decoration: underline;
}
.news-admin-guide p { margin: 0 0 6px; }
.news-admin-guide p:last-child { margin: 0; }

/* ========================================
   お知らせ詳細テキスト
   ======================================== */
.news-item { display: flex; gap: 14px; flex-wrap: wrap; }
.news-content { flex: 1; min-width: 220px; }
.news-detail {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-light);
  padding-left: 4px;
}
.news-detail p { margin: 0 0 4px; }
.news-detail a {
  color: #0073aa;
  text-decoration: underline;
  font-weight: 500;
}
.news-detail a:hover { color: var(--primary-dark); }
