/* エコルド・ポータル：ページごとの追加の見た目（今のサイトの各ページの <style> を集めたもの＋新しい部分） */
/* ---- guide ---- */
/* ガイドページ専用スタイル */
.guide-step-card {
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  overflow: hidden;
}
.guide-step-header {
  background: var(--ecold-gray, #2d3748);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.guide-step-header h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.guide-step-body { padding: 24px 20px; }
.guide-lead {
  font-size: .93rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 18px;
}

/* ステップバッジ */
.step-badge {
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .05em;
  flex-shrink: 0;
}

/* ミニステップ番号 */
.mini-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--ecold-green);
  color: #fff;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.guide-steps-list { display: flex; flex-direction: column; gap: 10px; }
.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* スクショ */
.guide-screenshot-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.guide-screenshot {
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: opacity .15s;
}
.guide-screenshot:hover { opacity: .92; }
.guide-screenshot-caption {
  background: #f8f9fa;
  padding: 8px 14px;
  font-size: .8rem;
  color: var(--text-light);
  border-top: 1px solid #e0e0e0;
}

/* ポイントボックス */
.guide-point-box {
  padding: 12px;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.guide-point-box.green { background: var(--ecold-green-light); }
.guide-point-box.blue  { background: var(--ecold-blue-light); }
.guide-point-title { font-weight: 700; margin-bottom: 5px; }
.guide-point-box.green .guide-point-title { color: var(--ecold-green); }
.guide-point-box.blue  .guide-point-title { color: var(--ecold-blue); }

/* アラートボックス */
.alert-box {
  display: flex;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: .87rem;
  line-height: 1.7;
}
.alert-box.info    { background: #eff6ff; color: #1d4ed8; border-left: 3px solid #3b82f6; }
.alert-box.warning { background: #fffbeb; color: #92400e; border-left: 3px solid #f59e0b; }

/* FAQ */
.faq-question {
  background: #f8f9fa;
  border: none;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.faq-question:hover { background: #f0f0f0; }
.faq-q-badge, .faq-a-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; min-width: 24px;
  border-radius: 50%; font-size: .78rem; font-weight: 700;
}
.faq-q-badge { background: var(--ecold-green); color: #fff; }
.faq-a-badge { background: #fff; color: var(--ecold-green); border: 2px solid var(--ecold-green); }

/* 目次リンク */
.guide-toc-link { color: var(--ecold-green); text-decoration: none; }
.guide-toc-link:hover { text-decoration: underline; }
.quick-nav-link:hover, .quick-nav-link:hover span { color: var(--ecold-green) !important; }

/* 拡大モーダル */
#imgModal { display:none; position:fixed; inset:0; background:rgba(0,0,0,.82); z-index:9999; align-items:center; justify-content:center; cursor:zoom-out; }
#imgModal.show { display:flex; }
#imgModal img { max-width:92vw; max-height:92vh; border-radius:8px; box-shadow:0 8px 40px rgba(0,0,0,.5); }
/* ---- 利用規約 ---- */
body { background: #f8f9fa; }
    .terms-header {
      background: linear-gradient(135deg, #1a2a3a 0%, #1e3a4a 100%);
      color: #fff;
      padding: 3rem 0 2rem;
    }
    .terms-header .brand-text {
      font-size: 1.3rem;
      font-weight: 700;
      letter-spacing: .04em;
      margin-bottom: .5rem;
    }
    .terms-wrap {
      max-width: 820px;
      margin: 0 auto;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 16px rgba(0,0,0,.07);
      padding: 2.5rem 3rem;
    }
    @media (max-width: 600px) {
      .terms-wrap { padding: 1.5rem 1.2rem; }
    }
    .terms-wrap h2 {
      font-size: 1.5rem;
      font-weight: 700;
      border-left: 4px solid #7BBF24;
      padding-left: .75rem;
      margin: 2.2rem 0 1rem;
      color: #1a2a3a;
    }
    .terms-wrap h3 {
      font-size: 1.1rem;
      font-weight: 700;
      color: #1A9ED8;
      margin: 1.5rem 0 .5rem;
    }
    .terms-wrap p, .terms-wrap li {
      font-size: .97rem;
      line-height: 1.85;
      color: #333;
    }
    .terms-wrap ul { padding-left: 1.5rem; }
    .terms-meta {
      font-size: .85rem;
      color: #888;
      border-top: 1px solid #eee;
      padding-top: 1rem;
      margin-top: 2.5rem;
    }
    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      color: rgba(255,255,255,.8);
      text-decoration: none;
      font-size: .9rem;
      margin-bottom: 1.2rem;
      transition: color .2s;
    }
    .back-btn:hover { color: #fff; }
/* ---- お問い合わせ：種別カード ---- */
.inquiry-type-card { cursor: pointer; display: block; }
.inquiry-card-inner { border: 2px solid #e0e0e0; border-radius: var(--radius-sm, 8px); transition: border-color .2s, background .2s, box-shadow .2s; color: var(--ecold-gray); background: #fff; }
.inquiry-type-card:hover .inquiry-card-inner, .inquiry-card-inner.selected { border-color: var(--ecold-green); background: var(--ecold-green-light); box-shadow: 0 2px 8px rgba(72,187,120,.18); color: var(--ecold-green); }
/* フォームのわな（人には見えない） */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-terms { color: rgba(255,255,255,.6); font-size: .85rem; text-decoration: none; }
.footer-terms:hover { color: #fff; }
.hover-card { transition: transform .15s, box-shadow .15s; }
.hover-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.facility-thumb { height: 120px; width: 100%; object-fit: cover; cursor: zoom-in; }
#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 9999; align-items: center; justify-content: center; cursor: zoom-out; }
#lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
.doc-link { border: 1px solid var(--border); background: var(--white); transition: all .15s; color: var(--ecold-gray); }
.doc-link:hover { border-color: var(--ecold-green); background: var(--ecold-green-light); }
.training-card .tc-thumb { height: 160px; object-fit: cover; width: 100%; background: var(--gray-100); }
.tc-lock { position: absolute; top: 10px; right: 10px; background: rgba(26,34,48,.75); color: #fff; font-size: .72rem; padding: 3px 10px; border-radius: 20px; }
/* ---- 研修 ---- */
/* ===== カード ===== */
    .training-card {
      border: 1px solid #e9ecef;
      border-radius: 12px;
      overflow: hidden;
      transition: box-shadow .2s, transform .2s;
      background: #fff;
    }
    .training-card:hover {
      box-shadow: 0 4px 20px rgba(0,0,0,.12);
      transform: translateY(-2px);
    }
    .training-thumbnail {
      width: 100%;
      height: 160px;
      object-fit: cover;
    }
    .training-thumb-placeholder {
      width: 100%;
      height: 160px;
      background: linear-gradient(135deg, #e9ecef, #dee2e6);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .completed-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(25,135,84,.9);
      color: #fff;
      font-size: .72rem;
      padding: 3px 8px;
      border-radius: 20px;
    }

    /* ===== 検索バー ===== */
    .search-bar-wrap .form-control {
      border-left: none;
      border-radius: 0 8px 8px 0;
      font-size: .95rem;
    }
    .search-bar-wrap .input-group-text {
      border-radius: 8px 0 0 8px;
    }

    /* ===== 絞り込みトグルボタン ===== */
    .filter-toggle-btn {
      background: #fff;
      border: 1.5px solid #dee2e6;
      border-radius: 8px;
      padding: 7px 16px;
      font-size: .88rem;
      font-weight: 600;
      color: #495057;
      cursor: pointer;
      transition: all .15s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }
    .filter-toggle-btn:hover {
      border-color: #5BAD4E;
      color: #5BAD4E;
    }
    .filter-toggle-btn.active {
      background: #5BAD4E;
      border-color: #5BAD4E;
      color: #fff;
    }
    .filter-toggle-btn .arrow-icon {
      transition: transform .25s;
      font-size: .75rem;
    }
    .filter-toggle-btn.open .arrow-icon {
      transform: rotate(180deg);
    }
    /* フィルター件数バッジ */
    .filter-count-badge {
      background: #dc3545;
      color: #fff;
      border-radius: 50%;
      width: 18px;
      height: 18px;
      font-size: .68rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }

    /* ===== アコーディオンパネル ===== */
    .filter-panel {
      overflow: hidden;
      transition: max-height .35s cubic-bezier(0.4,0,0.2,1),
                  opacity .25s ease,
                  padding .25s ease;
      max-height: 0;
      opacity: 0;
    }
    .filter-panel.open {
      opacity: 1;
    }
    .filter-section-title {
      font-size: .78rem;
      font-weight: 700;
      color: #6b7280;
      letter-spacing: .04em;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .filter-divider {
      border: none;
      border-top: 1px solid #f0f0f0;
      margin: 14px 0;
    }

    /* ===== チップ（カテゴリ・タグ共通） ===== */
    .chip-input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }
    .chip-label {
      display: inline-flex;
      align-items: center;
      padding: 4px 12px;
      border: 1.5px solid #dee2e6;
      border-radius: 20px;
      font-size: .8rem;
      cursor: pointer;
      transition: all .15s;
      user-select: none;
      background: #fff;
      color: #495057;
      line-height: 1.4;
    }
    .chip-label:hover {
      border-color: #adb5bd;
      background: #f8f9fa;
    }
    /* カテゴリ：選択時はグリーン */
    .cat-chip-input:checked + .chip-label {
      background: #5BAD4E;
      border-color: #5BAD4E;
      color: #fff;
      font-weight: 600;
    }
    /* タグ：選択時はブルー */
    .tag-chip-input:checked + .chip-label {
      background: #1A9ED8;
      border-color: #1A9ED8;
      color: #fff;
      font-weight: 600;
    }

    /* ===== スマホ対応 ===== */
    @media (max-width: 576px) {
      .search-filter-row {
        flex-direction: column;
        gap: 8px !important;
      }
      .search-bar-wrap {
        width: 100%;
      }
      .filter-toggle-btn {
        width: 100%;
        justify-content: center;
      }
    }/* ---- 新しいサイトで足したもの ---- */
.eyebrow-label { font-size: .75rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.bsc-cat .dot { width: 6px; height: 6px; margin-right: 4px; }
.sns-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--ecold-gray-light, #edf2f7); display: flex; align-items: center; justify-content: center; font-size: .9rem; text-decoration: none; }
.form-sec { font-weight: 700; color: var(--ecold-gray); border-bottom: 2px solid var(--ecold-green); padding-bottom: 8px; margin-bottom: 16px; font-size: 1.05rem; }
/* ---- ログイン後の画面 ---- */
.panel-body { background: var(--gray-100, #f5f7f9); }
@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .2s; }
  .admin-sidebar.open { transform: none; box-shadow: 0 0 30px rgba(0,0,0,.3); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 16px; }
}
.admin-sidebar .form-select { background-color: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.admin-sidebar .form-select option { color: #222; }
.ecold-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: .88rem; vertical-align: middle; }
.rec-print-head { display: none; }
@media print {
  .admin-sidebar, .admin-topbar, .no-print, .alert { display: none !important; }
  .admin-main { margin: 0 !important; } .admin-content { padding: 0 !important; }
  .ecold-card { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
  .rec-print-head { display: block; }
  body { background: #fff !important; }
}
.rec-sheet th { width: 160px; background: var(--gray-100); font-weight: 700; font-size: .85rem; }
.rec-sheet td, .rec-sheet th { border: 1px solid var(--border); padding: 8px 12px; vertical-align: top; }

/* ---------- サイト名「エコルド・ポータル AI」 ---------- */
.brand-ai-name { font-weight: 700; color: #3c4a5c; font-size: 1.05rem; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.brand-ai { color: #fff; background: linear-gradient(135deg, #7BBF24, #1A9ED8); border-radius: 6px; padding: 2px 7px; font-size: .85rem; margin-left: 2px; }
/* 表の中のボタンは折り返さない */
.ecold-table .btn, .ecold-table .badge { white-space: nowrap; }
.ecold-table td:last-child { white-space: nowrap; }
.pager-ecold { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pager-ecold .pg-now { font-size: .88rem; color: var(--text-mid, #555); }

/* ---------- ヘルプAI・AIと考える ---------- */
.help-ai-top { background: linear-gradient(135deg,#5b6ee1,#7c5bd6); color: #fff !important; border: 0; border-radius: 999px; font-weight: 700; padding: 4px 12px; }
.help-ai-top:hover { filter: brightness(1.08); }
.aiw { border: 1px solid #dfe3f3; border-radius: 14px; background: #f7f8fd; display: flex; flex-direction: column; overflow: hidden; }
.aiw-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(135deg,#5b6ee1,#7c5bd6); color: #fff; }
.aiw-h b { font-size: .95rem; } .aiw-h small { opacity: .85; font-size: .75rem; flex: 1; }
.aiw-reset { border: 0; background: rgba(255,255,255,.2); color: #fff; border-radius: 999px; font-size: .72rem; padding: 2px 10px; }
.aiw-log { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; max-height: 460px; }
.aiw-m { max-width: 92%; padding: 8px 11px; border-radius: 12px; font-size: .88rem; line-height: 1.7; word-break: break-word; }
.aiw-m.u { align-self: flex-end; background: #5b6ee1; color: #fff; }
.aiw-m.a { align-self: flex-start; background: #fff; border: 1px solid #e6e8f0; }
.aiw-m.e { align-self: center; background: #fdecec; color: #a12a2a; }
.aiw-m small { display: block; color: #8a93a6; font-size: .7rem; }
.aiw-ex { display: flex; flex-wrap: wrap; gap: 6px; } .aiw-ex button { border: 1px solid #d9def5; background: #fff; color: #3d4bb8; border-radius: 999px; padding: 3px 10px; font-size: .78rem; }
.aiw-f { display: flex; gap: 6px; padding: 8px; border-top: 1px solid #e6e8f0; background: #fff; }
.aiw-f textarea { flex: 1; resize: vertical; border: 1px solid #d6dbe6; border-radius: 10px; padding: 6px 10px; font-size: .9rem; }
.aiw-send { border: 0; background: #5b6ee1; color: #fff; border-radius: 10px; padding: 0 12px; font-weight: 700; white-space: nowrap; } .aiw-send:disabled { opacity: .5; }
.aiw-note { font-size: .72rem; color: #6f7790; padding: 0 10px 8px; background: #fff; }
.aiw-draft { margin-top: 8px; border: 1px dashed #b9c1ee; border-radius: 10px; background: #fbfbff; }
.aiw-dh { font-size: .72rem; font-weight: 700; color: #5b6ee1; padding: 6px 10px 0; }
.aiw-db { padding: 6px 10px; max-height: 260px; overflow-y: auto; font-size: .85rem; }
.aiw-da { display: flex; gap: 6px; padding: 0 10px 8px; flex-wrap: wrap; }
/* ブログの見本 */
.bp-tabs .btn.active { background: #1A9ED8; color: #fff; border-color: #1A9ED8; }
.bp-frame { border: 1px solid var(--border, #e3e8ec); border-radius: 12px; background: #fff; max-height: 720px; overflow-y: auto; margin: 0 auto; transition: max-width .2s; max-width: 100%; }
.bp-frame.sp { max-width: 390px; border-width: 10px; border-color: #222; border-radius: 28px; }
.bp-in { padding: 20px; } .bp-frame.sp .bp-in { padding: 14px; }
.bp-img img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.bp-title { font-size: 1.35rem; font-weight: 700; color: var(--ecold-gray, #333); margin-bottom: 4px; }
.bp-meta { font-size: .8rem; color: #888; margin-bottom: 14px; }
.blog-content blockquote, .bp-body blockquote { border-left: 4px solid #7BBF24; background: #f4f9ec; padding: 10px 14px; border-radius: 8px; margin: 12px 0; }
.blog-content h2, .bp-body h2 { font-size: 1.2rem; font-weight: 700; border-left: 5px solid #1A9ED8; padding-left: 10px; margin: 22px 0 10px; }
.blog-content h3, .bp-body h3 { font-size: 1.05rem; font-weight: 700; margin: 18px 0 8px; }
.blog-content table, .bp-body table { width: 100%; border-collapse: collapse; margin: 12px 0; } .blog-content td, .blog-content th, .bp-body td, .bp-body th { border: 1px solid #ddd; padding: 6px 10px; }
.bp-body { line-height: 2; font-size: 1rem; } .bp-body img { max-width: 100%; height: auto; }
/* 1つずつ進む（施設情報） */
.steps-ecold { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; padding: 0; list-style: none; counter-reset: st; }
.steps-ecold a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border, #e3e8ec); color: var(--text-mid, #555); text-decoration: none; font-size: .88rem; }
.steps-ecold a .n { width: 24px; height: 24px; border-radius: 50%; background: #e9edf2; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; }
.steps-ecold a.done .n { background: #7BBF24; color: #fff; } .steps-ecold a.on { border-color: #1A9ED8; color: #1A9ED8; font-weight: 700; box-shadow: 0 0 0 3px rgba(26,158,216,.12); } .steps-ecold a.on .n { background: #1A9ED8; color: #fff; }
.step-help { background: #f1f8fd; border-radius: 10px; padding: 10px 14px; font-size: .88rem; color: #2a5a78; margin-bottom: 14px; }
/* おすすめのポップアップ（マイページ：明るい画面） */
.tr-pop{position:fixed;right:18px;bottom:18px;width:340px;max-width:calc(100vw - 24px);background:#1f1f1f;color:#f1f1f1;border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.35);z-index:9990;overflow:hidden;animation:trPop .35s ease-out}
@keyframes trPop{from{transform:translateY(30px);opacity:0}}
.tr-pop-x{position:absolute;right:8px;top:8px;z-index:2;width:30px;height:30px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:18px;cursor:pointer}
.tr-pop-a{display:block;color:inherit;text-decoration:none}.tr-pop-img{position:relative;aspect-ratio:16/9;background:#2a2a2a;display:flex;align-items:center;justify-content:center;font-size:2rem;color:#777}.tr-pop-img img{width:100%;height:100%;object-fit:cover}
.tr-pop-img span{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,.8);font-size:.75rem;padding:2px 6px;border-radius:4px;color:#fff}
.tr-pop-t{padding:12px 14px}.tr-pop-t small{color:#3ea6ff;font-size:.78rem;display:block}.tr-pop-t b{display:block;margin:4px 0 6px;line-height:1.4;color:#fff}.tr-pop-go{font-size:.85rem;color:#ccc}
.tr-pop-set{display:block;border-top:1px solid #333;padding:10px 14px;font-size:.82rem;color:#3ea6ff;text-decoration:none}
