/* ============================================
   Ecold Portal - メインスタイルシート v3
   ロゴカラー準拠: グリーン #7BBF24 / ブルー #1A9ED8
   フォント: Noto Sans JP
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ===== CSS変数 ===== */
:root {
  --green:        #7BBF24;
  --green-dark:   #62991B;
  --green-light:  #F0F8E2;
  --blue:         #1A9ED8;
  --blue-dark:    #1480B2;
  --blue-light:   #E3F4FC;
  --grad:         linear-gradient(135deg, #7BBF24 0%, #1A9ED8 100%);
  --grad-h:       linear-gradient(135deg, #62991B 0%, #1480B2 100%);
  --gray-900:     #1A2230;
  --gray-700:     #3D4F63;
  --gray-500:     #6B7A8D;
  --gray-300:     #B8C4D0;
  --gray-100:     #F5F7FA;
  --white:        #FFFFFF;
  --border:       #E2E8F0;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.14);
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
}

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }

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

/* ===== ナビゲーション ===== */
.navbar-ecold {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar-ecold .navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
}

/* テキストロゴ（フォールバック用・非推奨） */
.brand-text-logo {
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
  padding: 14px 0;
}

.brand-text-logo .brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.brand-text-logo .brand-sub {
  font-size: 0.68rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  line-height: 1.4;
  letter-spacing: 0.3px;
}

/* ロゴ画像（logo_ecold_portal.png: 1024×384px 白背景PNG）
   白余白をネガティブマージン＋overflow:hiddenでクリッピング */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 48px;          /* ナビバーの実効高さに合わせた表示領域 */
  padding: 0;
}

.brand-logo-img {
  height: 97px !important; /* 白余白込みで大きめに引き込み、実体部分を38px相当に */
  width: auto !important;
  max-width: none !important; /* img{max-width:100%}の上書きを防ぐ */
  margin-top: -28px;          /* 上余白をはみ出させてクリップ */
  margin-bottom: -31px;       /* 下余白をはみ出させてクリップ */
  display: block;
  object-fit: contain;
}

.navbar-ecold .nav-link {
  color: var(--gray-700) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 1rem 0.75rem !important;
  position: relative;
  transition: color .2s;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.navbar-ecold .nav-link:hover,
.navbar-ecold .nav-link.active {
  color: var(--green) !important;
}

.navbar-ecold .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.75rem; right: 0.75rem;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .2s;
}

.navbar-ecold .nav-link:hover::after,
.navbar-ecold .nav-link.active::after {
  transform: scaleX(1);
}

.btn-nav-login {
  background: var(--grad);
  color: #fff !important;
  border-radius: 20px;
  padding: 6px 18px !important;
  font-size: 13px !important;
  margin-left: 6px;
  transition: opacity .2s !important;
}
.btn-nav-login:hover { opacity: 0.88; }
.btn-nav-login::after { display: none !important; }

/* ===== ヒーロー（シングルカラム・グラデーション背景） ===== */
/* =============================================
   ヒーローセクション（白背景＋右側SVGビジュアル）
   ============================================= */
.hero-section {
  /* SVGを全体背景として使用 */
  background: url('../images/hero_visual.svg') center center / cover no-repeat;
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* ::before / ::after 不要 */
.hero-section::before,
.hero-section::after { display: none; }

/* ===== レイアウト（PC：テキストのみ・左寄せ） ===== */
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

/* テキスト＋検索エリア：左半分に収める */
.hero-text {
  flex: 0 0 56%;
  max-width: 600px;
  min-width: 0;
  text-align: left;
}

/* hero-visual は非表示（背景として使うため不要） */
.hero-visual { display: none; }

/* ===== eyebrow（小見出しタグ） ===== */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  border: 1px solid rgba(123,191,36,0.35);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 1.1rem;
  letter-spacing: 0.5px;
}

/* ===== h1 メインコピー ===== */
.hero-section h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  /* ロゴのFranchise Headquartersと同じ濃紺 → 上質感・高コントラスト */
  color: #1F2A35;
  line-height: 1.45;
  margin-bottom: 0.9rem;
  text-shadow: none;
}

/* ===== hero-sub 副題 ===== */
.hero-section .hero-sub {
  font-size: 0.95rem;
  /* 階層差を文字色で表現：h1より薄いミドルグレー */
  color: #4A5568;
  margin-bottom: 2rem;
  line-height: 1.85;
}

/* ===== 検索バー ===== */
.hero-search-wrap {
  max-width: 520px;
  margin: 0 0 1.4rem;
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 0 0 1.5px var(--border);
  overflow: hidden;
  padding: 6px 6px 6px 20px;
  gap: 8px;
}

.hero-search-box input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-900);
  background: transparent;
  min-width: 0;
}

.hero-search-box input::placeholder { color: var(--gray-300); }

.hero-search-btn {
  flex-shrink: 0;
  background: var(--grad);
  border: none;
  border-radius: 40px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  padding: 10px 22px;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}
.hero-search-btn:hover { opacity: 0.88; }

/* ===== クイックタグ ===== */
.hero-search-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-search-tags span {
  font-size: 0.75rem;
  color: #4A5568;
}

.hero-tag {
  font-size: 0.78rem;
  color: var(--green-dark);
  background: var(--green-light);
  border: 1px solid rgba(123,191,36,0.35);
  border-radius: 20px;
  padding: 3px 13px;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.hero-tag:hover {
  background: var(--green);
  color: #fff;
}

/* ===== 3択CTAセクション ===== */
.cta3-section {
  background: var(--gray-100);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.cta3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cta3-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--gray-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}

.cta3-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform .25s;
}

.cta3-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--green);
  text-decoration: none;
  color: var(--gray-900);
}

.cta3-card:hover::before { transform: scaleX(1); }

.cta3-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--green);
  transition: background .2s;
}
.cta3-card:hover .cta3-icon { background: linear-gradient(135deg, #f0f8e2, #e3f4fc); }

.cta3-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.cta3-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.cta3-arrow {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* ===== セクション共通 ===== */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.4rem;
  background: var(--grad);
  border-radius: 4px;
  flex-shrink: 0;
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

/* ===== カード共通 ===== */
.ecold-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
  overflow: hidden;
}

.ecold-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ===== 施設カード ===== */
.facility-card { height: 100%; }

.facility-card .card-img-top {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.facility-card .card-img-placeholder {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--green);
}

.facility-card .card-body { padding: 1.1rem; }

.facility-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.3rem;
}

.facility-meta {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.facility-meta i { color: var(--green); width: 14px; }

/* ===== バッジ ===== */
.badge-facility-type {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.73rem;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.vacancy-badge {
  font-size: 0.73rem;
  padding: 2px 9px;
  border-radius: 10px;
  white-space: nowrap;
}

.vacancy-available { background: var(--green-light); color: var(--green-dark); }
.vacancy-few       { background: #FFF8E1; color: #E65100; }
.vacancy-full      { background: #FEE2E2; color: #C62828; }
.vacancy-unknown   { background: var(--gray-100); color: var(--gray-500); }

.badge-age-target {
  font-size: 0.73rem;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-age-preschool { background: #FFF3E0; color: #E65100; }
.badge-age-school    { background: #E8EAF6; color: #3949AB; }
.badge-age-both      { background: var(--green-light); color: var(--green-dark); }

.distance-badge {
  font-size: 0.73rem;
  padding: 2px 9px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 500;
}

/* ===== エコルド評価スコア ===== */
.ecold-score-block {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 10px;
}

.ecold-score-block .score-heading {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ecold-score-block .score-heading i { color: var(--green); }

.score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.score-row:last-child { margin-bottom: 0; }

.score-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  min-width: 64px;
  flex-shrink: 0;
}

.score-bar-wrap {
  flex: 1;
  background: #dde4ec;
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--grad);
  transition: width 0.5s ease;
}

.score-val {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-700);
  min-width: 20px;
  text-align: right;
}

/* ===== イベントカード ===== */
.event-card .event-date-box {
  min-width: 60px;
  text-align: center;
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 10px 6px;
}

.event-card .event-date-box .month { font-size: 0.7rem; font-weight: 700; }
.event-card .event-date-box .day   { font-size: 1.7rem; font-weight: 700; line-height: 1; }
.event-card .event-date-box .weekday { font-size: 0.7rem; }

/* ===== ブログカード ===== */
.blog-card .card-img-top  { height: 170px; object-fit: cover; }
.blog-card .card-img-placeholder {
  height: 170px;
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 2.2rem;
}

/* ===== ボタン ===== */
.btn-ecold-primary {
  background: var(--grad);
  border: none;
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: inherit;
  transition: background .2s, color .2s;
  cursor: pointer;
  display: inline-block;
}
.btn-ecold-primary:hover,
.btn-ecold-primary:focus,
.btn-ecold-primary:active {
  background: var(--grad-h);
  color: #fff !important;
  text-decoration: none;
  opacity: 1;
}

.btn-ecold-outline {
  border: 1.5px solid var(--green);
  color: var(--green) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  background: transparent;
  transition: background .2s, color .2s;
  display: inline-block;
}
.btn-ecold-outline:hover,
.btn-ecold-outline:focus,
.btn-ecold-outline:active {
  background: var(--green);
  color: #fff !important;
  text-decoration: none;
}

.btn-ecold-secondary {
  background: var(--blue);
  border: none;
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: inherit;
  transition: background .2s, color .2s;
  cursor: pointer;
  display: inline-block;
}
.btn-ecold-secondary:hover,
.btn-ecold-secondary:focus,
.btn-ecold-secondary:active {
  background: var(--blue-dark);
  color: #fff !important;
  text-decoration: none;
  opacity: 1;
}

/* ===== 位置情報セクション ===== */
.near-facilities-section { position: relative; }

#geo-loading {
  text-align: center;
  padding: 40px 0;
  color: var(--gray-500);
}

#geo-error {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #92400E;
}

#geo-results { display: none; }

.btn-geo {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-geo:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-geo:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== お知らせ ===== */
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.notice-item:last-child { border-bottom: none; }

.notice-date {
  font-size: 0.8rem;
  color: var(--gray-500);
  white-space: nowrap;
  min-width: 76px;
}

.notice-title a { color: var(--gray-900); font-size: 0.9rem; }
.notice-title a:hover { color: var(--green); }

/* ===== ページヘッダー ===== */
.page-header {
  background: var(--grad);
  color: #fff;
  padding: 44px 0 32px;
}

.page-header h1 { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.3rem; }

.breadcrumb-ecold .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.breadcrumb-ecold .breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.breadcrumb-ecold .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ===== 施設詳細 ===== */
.facility-detail-header {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.facility-main-img { width: 100%; max-height: 360px; object-fit: cover; }

.staff-photo {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--green-light); margin: 0 auto 8px; display: block;
}
.staff-photo-placeholder {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--green-light); display: flex; align-items: center;
  justify-content: center; color: var(--green); font-size: 2.2rem;
  margin: 0 auto 8px;
}

/* ===== 管理画面 ===== */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px; min-width: 240px;
  background: var(--gray-900);
  color: #fff;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0;
  height: 100vh; overflow-y: auto; z-index: 100;
}

.admin-sidebar .sidebar-brand {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.admin-sidebar .sidebar-brand .brand-label {
  font-size: 10px; opacity: 0.5; display: block;
}

.admin-sidebar .sidebar-brand .brand-title {
  font-size: 13px; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-sidebar .sidebar-nav { padding: 14px 0; flex: 1; }

.admin-sidebar .nav-section {
  padding: 8px 16px 4px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; opacity: 0.4;
  text-transform: uppercase;
}

.admin-sidebar .nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.72); font-size: 13.5px;
  transition: background .2s, color .2s;
  border-left: 3px solid transparent;
}

.admin-sidebar .nav-link i { width: 17px; text-align: center; }

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-left-color: var(--green);
  text-decoration: none;
}

.admin-main { margin-left: 240px; flex: 1; display: flex; flex-direction: column; }

.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}

.admin-topbar .page-title { font-size: 1.05rem; font-weight: 700; color: var(--gray-700); margin: 0; }

.admin-content { padding: 28px; flex: 1; }

/* ===== 統計カード ===== */
.stat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}

.stat-card .stat-icon.green  { background: var(--green-light); color: var(--green); }
.stat-card .stat-icon.blue   { background: var(--blue-light);  color: var(--blue); }
.stat-card .stat-icon.gray   { background: var(--gray-100);    color: var(--gray-700); }
.stat-card .stat-icon.orange { background: #FFF3E0; color: #F57C00; }

.stat-card .stat-value { font-size: 1.7rem; font-weight: 700; color: var(--gray-900); line-height: 1; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--gray-500); margin-top: 2px; }

/* ===== テーブル ===== */
.ecold-table { width: 100%; border-collapse: collapse; }

.ecold-table th {
  background: var(--gray-100); color: var(--gray-700);
  font-size: 0.78rem; font-weight: 700;
  padding: 9px 12px; text-align: left;
  border-bottom: 2px solid var(--border); white-space: nowrap;
}

.ecold-table td {
  padding: 11px 12px; border-bottom: 1px solid var(--border);
  font-size: 0.88rem; vertical-align: middle;
}

.ecold-table tbody tr:hover { background: var(--gray-100); }

/* ===== フォーム ===== */
.form-label { font-weight: 500; font-size: 0.88rem; color: var(--gray-700); margin-bottom: 4px; }

.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.93rem; color: var(--gray-900);
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(123,191,36,0.14);
  outline: none;
}

.required-mark { color: #DC2626; font-size: 0.78rem; margin-left: 3px; }

/* ===== ページネーション ===== */
.pagination-nav .page-link { color: var(--green); border-color: var(--border); font-size: 0.88rem; }
.pagination-nav .page-item.active .page-link { background: var(--green); border-color: var(--green); color: #fff; }

/* ===== フッター ===== */
.footer-ecold {
  background: var(--gray-900);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 0;
  margin-top: auto;
}

.footer-ecold .footer-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.footer-ecold .footer-desc { font-size: 0.82rem; opacity: 0.6; line-height: 1.7; }

.footer-ecold h6 {
  color: #fff; font-weight: 700; font-size: 0.82rem;
  margin-bottom: 10px; padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-ecold .footer-links { list-style: none; padding: 0; margin: 0; }
.footer-ecold .footer-links li { margin-bottom: 5px; }
.footer-ecold .footer-links a { color: rgba(255,255,255,0.6); font-size: 0.82rem; transition: color .2s; }
.footer-ecold .footer-links a:hover { color: var(--green); text-decoration: none; }

.footer-ecold .footer-bottom {
  background: rgba(0,0,0,0.25); margin-top: 32px;
  padding: 14px 0; font-size: 0.78rem; opacity: 0.55; text-align: center;
}

/* ===== ログイン ===== */
.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  display: flex; align-items: center; justify-content: center; padding: 24px;
}

.login-box {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 40px;
  width: 100%; max-width: 400px;
}

.login-box .login-logo { text-align: center; margin-bottom: 24px; }

.login-box .login-title {
  text-align: center; font-size: 1.05rem; font-weight: 700;
  color: var(--gray-700); margin-bottom: 4px;
}

.login-box .login-subtitle {
  text-align: center; font-size: 0.82rem; color: var(--gray-500); margin-bottom: 24px;
}

/* ===== リッチテキスト（TinyMCE出力HTML対応） ===== */
.rich-content h2,  .blog-content h2  { font-size: 1.2rem; font-weight: 700; color: var(--gray-700); margin: 1.4em 0 0.5em; padding-bottom: 4px; border-bottom: 2px solid var(--green); }
.rich-content h3,  .blog-content h3  { font-size: 1.05rem; font-weight: 700; color: var(--gray-700); margin: 1.1em 0 0.4em; }
.rich-content h4,  .blog-content h4  { font-size: 1rem; font-weight: 700; color: var(--gray-700); margin: 1em 0 0.3em; }
.rich-content p,   .blog-content p   { margin-bottom: 0.9em; }
.rich-content ul,  .blog-content ul,
.rich-content ol,  .blog-content ol  { padding-left: 1.4em; margin-bottom: 0.9em; }
.rich-content li,  .blog-content li  { margin-bottom: 0.3em; }
.rich-content img, .blog-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 6px 0; height: auto; }
.rich-content a,   .blog-content a   { color: var(--green); text-decoration: underline; }
.rich-content a:hover, .blog-content a:hover { color: var(--green-dark, #3d8b32); }
.rich-content strong, .blog-content strong { font-weight: 700; }
.rich-content table, .blog-content table {
  width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem;
}
.rich-content table th, .blog-content table th,
.rich-content table td, .blog-content table td {
  border: 1px solid var(--border, #e0e0e0); padding: 8px 12px; text-align: left;
}
.rich-content table th, .blog-content table th {
  background: var(--green-light, #eaf5e9); font-weight: 700;
}
.rich-content blockquote, .blog-content blockquote {
  border-left: 4px solid var(--green);
  padding: 8px 14px; background: var(--green-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1em 0;
  font-style: italic; color: var(--gray-600, #555);
}

/* ===== ユーティリティ ===== */
.text-green { color: var(--green) !important; }
.text-blue  { color: var(--blue) !important; }
.bg-green   { background: var(--green) !important; }
.bg-grad    { background: var(--grad) !important; }

.divider-grad {
  border: none; height: 2px;
  background: var(--grad); border-radius: 2px; margin: 24px 0;
}

.rounded-ecold { border-radius: var(--radius) !important; }
.shadow-ecold  { box-shadow: var(--shadow-md) !important; }

/* ===== レスポンシブ ===== */
@media (max-width: 991px) {
  .admin-sidebar { width: 200px; min-width: 200px; }
  .admin-main    { margin-left: 200px; }

  .cta3-grid { gap: 14px; }
  .cta3-card { padding: 24px 16px; }

}

@media (max-width: 767px) {
  .admin-sidebar { display: none; }
  .admin-main    { margin-left: 0; }
  .admin-content { padding: 16px; }

  .cta3-grid { grid-template-columns: 1fr; gap: 12px; }
  .cta3-card { flex-direction: row; text-align: left; padding: 18px 20px; gap: 16px; }
  .cta3-icon { width: 44px; height: 44px; font-size: 1.1rem; flex-shrink: 0; }
  .cta3-arrow { margin-top: 0; margin-left: auto; }
}

@media (max-width: 575px) {
  .login-box { padding: 28px 18px; }
  .hero-search-box { padding: 5px 5px 5px 16px; }
  .hero-search-btn { padding: 9px 16px; font-size: 0.82rem; }
}

/* ============================================
   ステップ1 追加スタイル v4
   ============================================ */

/* ===== ヒーロー：レスポンシブ（タブレット） ===== */
@media (max-width: 991px) {
  .hero-inner {
    gap: 24px;
  }
  .hero-visual {
    flex: 0 0 42%;
  }
}

/* ===== ヒーロー：スマホ縦積みレイアウト ===== */
@media (max-width: 767px) {
  .hero-section {
    padding: 36px 0 32px !important;
  }
  .hero-inner {
    flex-direction: column;
    gap: 0;
    /* スマホでは相対配置を維持してSVGを重ねる */
    position: relative;
  }
  /* テキストは前面・全幅 */
  .hero-text {
    flex: none;
    width: 100%;
    text-align: center;
    padding-bottom: 4px;
  }
  .hero-section h1 {
    font-size: 1.65rem !important;
  }
  .hero-section .hero-sub {
    font-size: .88rem !important;
    line-height: 1.75 !important;
  }
  .hero-search-wrap {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-search-tags {
    justify-content: center;
  }
}

/* ===== セクション副題：スマホ2段防止 ===== */
@media (max-width: 575px) {
  .hero-section .hero-sub {
    font-size: .82rem !important;
    line-height: 1.7 !important;
  }
  .section-subtitle {
    font-size: .82rem !important;
    line-height: 1.65 !important;
  }
  .hero-search-box { padding: 5px 5px 5px 14px; }
  .hero-search-btn { padding: 9px 15px; font-size: 0.82rem; }
}

/* ===== フィーチャーブログセクション ===== */
.featured-blog-section {
  background: var(--white);
  padding: 56px 0 48px;
}

/* メイン記事（大） */
.featured-blog-main {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--gray-900);
  transition: box-shadow .25s, transform .25s;
  height: 100%;
}
.featured-blog-main:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: var(--gray-900);
  text-decoration: none;
}
.featured-blog-main .fb-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.featured-blog-main .fb-img-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--green);
}
.featured-blog-main .fb-body {
  padding: 20px 22px 22px;
  background: var(--white);
}
.featured-blog-main .fb-cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.featured-blog-main .fb-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--gray-900);
}
.featured-blog-main .fb-date {
  font-size: .8rem;
  color: var(--gray-500);
}

/* サブ記事（小・縦並び） */
.featured-blog-sub {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.blog-sub-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  flex: 1;
}
.blog-sub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--gray-900);
  text-decoration: none;
}
.blog-sub-card .bsc-img {
  width: 80px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.blog-sub-card .bsc-placeholder {
  width: 80px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--green);
  flex-shrink: 0;
}
.blog-sub-card .bsc-body { flex: 1; min-width: 0; }
.blog-sub-card .bsc-cat {
  font-size: .68rem; font-weight: 700;
  color: var(--green); letter-spacing: .4px;
  margin-bottom: 4px;
}
.blog-sub-card .bsc-title {
  font-size: .88rem; font-weight: 700;
  line-height: 1.5; color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-sub-card .bsc-date {
  font-size: .74rem; color: var(--gray-500); margin-top: 4px;
}

/* ===== 保護者向けガイドバナー ===== */
.guide-section {
  background: var(--green-light);
  padding: 40px 0;
  border-top: 1px solid rgba(123,191,36,.2);
  border-bottom: 1px solid rgba(123,191,36,.2);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.guide-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: var(--gray-900);
  border: 1px solid rgba(123,191,36,.25);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.guide-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--gray-900);
  text-decoration: none;
}
.guide-card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  border: 2px solid rgba(123,191,36,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--green);
  flex-shrink: 0;
}
.guide-card-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
  line-height: 1.4;
}
.guide-card-desc {
  font-size: .78rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== スマート施設検索（都道府県+現在地） ===== */
.smart-search-section {
  background: var(--gray-100);
  padding: 52px 0;
}
.smart-search-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 32px 36px;
  max-width: 720px;
  margin: 0 auto;
}
.smart-search-box .ss-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.smart-search-box select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7A8D' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color .2s;
}
.smart-search-box select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(123,191,36,.15);
}
.ss-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--gray-300); font-size: .8rem;
  margin: 14px 0;
}
.ss-divider::before, .ss-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}
.btn-geo-smart {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  color: var(--green);
  font-size: .95rem; font-weight: 700; font-family: inherit;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-geo-smart:hover {
  background: var(--green);
  color: #fff;
}
.btn-search-pref {
  width: 100%;
  background: var(--grad);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: .95rem; font-weight: 700; font-family: inherit;
  padding: 13px 16px;
  cursor: pointer;
  transition: opacity .2s;
  margin-top: 14px;
}
.btn-search-pref:hover { opacity: .88; }

/* ===== レスポンシブ追加 ===== */
@media (max-width: 991px) {
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .featured-blog-main .fb-img,
  .featured-blog-main .fb-img-placeholder { height: 220px; }
}
@media (max-width: 767px) {
  .guide-grid { grid-template-columns: 1fr; gap: 12px; }
  .smart-search-box { padding: 24px 18px; }
  .featured-blog-main .fb-img,
  .featured-blog-main .fb-img-placeholder { height: 200px; }
  .featured-blog-main .fb-title { font-size: 1rem; }
}

/* ===== ブログカテゴリタブフィルター ===== */
.blog-cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.cat-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  cursor: pointer;
}

.cat-filter-btn:hover {
  color: var(--gray-900);
  background: var(--white);
  border-color: var(--gray-300);
  transform: translateY(-1px);
}

.cat-filter-btn.active {
  background: var(--cat-color, var(--green));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

.cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(0,0,0,.12);
  color: inherit;
  line-height: 1;
}

.cat-filter-btn.active .cat-count {
  background: rgba(255,255,255,.25);
}

/* ブログカードリンク（ホバーエフェクト） */
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.blog-card-link .blog-card {
  transition: transform .2s, box-shadow .2s;
}

.blog-card-link:hover .blog-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== カテゴリタブ レスポンシブ ===== */
@media (max-width: 767px) {
  .blog-cat-filter {
    gap: 6px;
  }
  .cat-filter-btn {
    font-size: .8rem;
    padding: 6px 12px;
  }
}
