/* === layout_base style #0 === */
/* ============================================================== */
/* モック完全準拠：共通ベーススタイル (白 × 濃紺 × オレンジ)     */
/* ============================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box !important;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif !important;
  color: #1e293b !important;
  background-color: #FAF8F5 !important;
  line-height: 1.8 !important;
  font-size: 15px !important;
  letter-spacing: 0.04em !important;
  -webkit-font-smoothing: antialiased !important;
  padding: 0 !important;
  margin: 0 !important;
}
a {
  color: #1E3A5F;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #C83E35;
}

/* ============================================================== */
/* 言語別国旗アイコン（OS絵文字依存を解消・全環境完全統一SVG）     */
/* ============================================================== */
.flag-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 3px;
  vertical-align: -3px;
  flex-shrink: 0;
  box-shadow: 0 0 1px rgba(0,0,0,0.25);
}
.flag-gb { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2036%2036%22%3E%3Cpath%20fill%3D%22%2300247D%22%20d%3D%22M0%209.059V13h5.628zM4.664%2031H13v-5.837zM23%2025.164V31h8.335zM0%2023v3.941L5.63%2023zM31.337%205H23v5.837zM36%2026.942V23h-5.631zM36%2013V9.059L30.371%2013zM13%205H4.664L13%2010.837z%22/%3E%3Cpath%20fill%3D%22%23CF1B2B%22%20d%3D%22M25.14%2023l9.712%206.801c.471-.479.808-1.082.99-1.749L28.627%2023H25.14zM13%2023h-2.141l-9.711%206.8c.521.53%201.189.909%201.938%201.085L13%2023.943V23zm10-10h2.141l9.711-6.8c-.521-.53-1.188-.909-1.937-1.085L23%2012.057V13zm-12.141%200L1.148%206.2C.677%206.68.34%207.282.157%207.949L7.372%2013h3.487z%22/%3E%3Cpath%20fill%3D%22%23EEE%22%20d%3D%22M36%2021H21v10h2v-5.836L31.335%2031H32c1.117%200%202.126-.461%202.852-1.199L25.14%2023h3.487l7.215%205.052c.093-.337.158-.686.158-1.052v-.058L30.369%2023H36v-2zM0%2021v2h5.63L0%2026.941V27c0%201.091.439%202.078%201.148%202.8l9.711-6.8H13v.943l-9.914%206.941c.294.07.598.116.914.116h.664L13%2025.163V31h2V21H0zM36%209c0-1.091-.439-2.078-1.148-2.8L25.141%2013H23v-.943l9.915-6.942C32.62%205.046%2032.316%205%2032%205h-.663L23%2010.837V5h-2v10h15v-2h-5.629L36%209.059V9zM13%205v5.837L4.664%205H4c-1.118%200-2.126.461-2.852%201.2l9.711%206.8H7.372L.157%207.949C.065%208.286%200%208.634%200%209v.059L5.628%2013H0v2h15V5h-2z%22/%3E%3Cpath%20fill%3D%22%23CF1B2B%22%20d%3D%22M21%2015V5h-6v10H0v6h15v10h6V21h15v-6z%22/%3E%3C/svg%3E"); }
.flag-kr { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2036%2036%22%3E%3Cpath%20fill%3D%22%23EEE%22%20d%3D%22M36%2027c0%202.209-1.791%204-4%204H4c-2.209%200-4-1.791-4-4V9c0-2.209%201.791-4%204-4h28c2.209%200%204%201.791%204%204v18z%22/%3E%3Cpath%20fill%3D%22%23C60C30%22%20d%3D%22M21.441%2013.085c-2.714-1.9-6.455-1.24-8.356%201.474-.95%201.356-.621%203.227.737%204.179%201.357.949%203.228.618%204.178-.738s2.822-1.687%204.178-.736c1.358.95%201.688%202.821.737%204.178%201.901-2.714%201.241-6.455-1.474-8.357z%22/%3E%3Cpath%20fill%3D%22%23003478%22%20d%3D%22M22.178%2017.264c-1.356-.951-3.228-.62-4.178.736s-2.821%201.687-4.178.737c-1.358-.951-1.687-2.822-.737-4.179-1.901%202.716-1.241%206.456%201.473%208.356%202.715%201.901%206.455%201.242%208.356-1.474.951-1.355.621-3.226-.736-4.176z%22/%3E%3Cpath%20d%3D%22M24.334%2025.572l1.928-2.298.766.643-1.928%202.298zm2.57-3.063l1.928-2.297.766.643-1.928%202.297zm-1.038%204.351l1.928-2.297.766.643-1.928%202.297zm2.572-3.066l1.93-2.297.766.644-1.93%202.296zm-1.041%204.352l1.93-2.297.765.643-1.929%202.297zm2.571-3.065l1.927-2.3.767.643-1.927%202.3zm.004-14.162l.766-.643%201.93%202.299-.767.643zM27.4%207.853l.766-.643%201.928%202.299-.767.642zm-1.533%201.288l.766-.643%204.5%205.362-.766.643zm-1.532%201.284l.767-.643%201.927%202.298-.766.642zm2.57%203.065l.766-.643%201.93%202.297-.765.643zM6.4%2020.854l.766-.643%204.499%205.363-.767.643zM4.87%2022.14l.765-.642%201.929%202.298-.767.643zm2.567%203.066l.766-.643%201.93%202.297-.766.643zm-4.101-1.781l.766-.643%204.5%205.362-.767.643zm-.001-10.852l4.498-5.362.767.642-4.5%205.363zm1.532%201.287l4.5-5.363.766.643-4.5%205.362zM6.4%2015.145l4.5-5.363.766.643-4.5%205.363z%22%20fill%3D%22%23292F33%22/%3E%3C/svg%3E"); }
.flag-cn { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2036%2036%22%3E%3Cpath%20fill%3D%22%23DE2910%22%20d%3D%22M36%2027c0%202.209-1.791%204-4%204H4c-2.209%200-4-1.791-4-4V9c0-2.209%201.791-4%204-4h28c2.209%200%204%201.791%204%204v18z%22/%3E%3Cpath%20fill%3D%22%23FFDE02%22%20d%3D%22M11.136%208.977l.736.356.589-.566-.111.81.72.386-.804.144-.144.804-.386-.72-.81.111.566-.589zm4.665%202.941l-.356.735.566.59-.809-.112-.386.721-.144-.805-.805-.144.721-.386-.112-.809.59.566zm-.957%203.779l.268.772.817.017-.651.493.237.783-.671-.467-.671.467.236-.783-.651-.493.817-.017zm-3.708%203.28l.736.356.589-.566-.111.81.72.386-.804.144-.144.804-.386-.72-.81.111.566-.589zM7%2010.951l.929%202.671%202.826.058-2.253%201.708.819%202.706L7%2016.479l-2.321%201.615.819-2.706-2.253-1.708%202.826-.058z%22/%3E%3C/svg%3E"); }
.flag-fr { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2036%2036%22%3E%3Cpath%20fill%3D%22%23ED2939%22%20d%3D%22M36%2027c0%202.209-1.791%204-4%204h-8V5h8c2.209%200%204%201.791%204%204v18z%22/%3E%3Cpath%20fill%3D%22%23002495%22%20d%3D%22M4%205C1.791%205%200%206.791%200%209v18c0%202.209%201.791%204%204%204h8V5H4z%22/%3E%3Cpath%20fill%3D%22%23EEE%22%20d%3D%22M12%205h12v26H12z%22/%3E%3C/svg%3E"); }
.flag-es { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2036%2036%22%3E%3Cpath%20fill%3D%22%23C60A1D%22%20d%3D%22M36%2027c0%202.209-1.791%204-4%204H4c-2.209%200-4-1.791-4-4V9c0-2.209%201.791-4%204-4h28c2.209%200%204%201.791%204%204v18z%22/%3E%3Cpath%20fill%3D%22%23FFC400%22%20d%3D%22M0%2012h36v12H0z%22/%3E%3Cpath%20fill%3D%22%23EA596E%22%20d%3D%22M9%2017v3c0%201.657%201.343%203%203%203s3-1.343%203-3v-3H9z%22/%3E%3Cpath%20fill%3D%22%23F4A2B2%22%20d%3D%22M12%2016h3v3h-3z%22/%3E%3Cpath%20fill%3D%22%23DD2E44%22%20d%3D%22M9%2016h3v3H9z%22/%3E%3Cellipse%20fill%3D%22%23EA596E%22%20cx%3D%2212%22%20cy%3D%2214.5%22%20rx%3D%223%22%20ry%3D%221.5%22/%3E%3Cellipse%20fill%3D%22%23FFAC33%22%20cx%3D%2212%22%20cy%3D%2213.75%22%20rx%3D%223%22%20ry%3D%22.75%22/%3E%3Cpath%20fill%3D%22%2399AAB5%22%20d%3D%22M7%2016h1v7H7zm9%200h1v7h-1z%22/%3E%3Cpath%20fill%3D%22%2366757F%22%20d%3D%22M6%2022h3v1H6zm9%200h3v1h-3zm-8-7h1v1H7zm9%200h1v1h-1z%22/%3E%3C/svg%3E"); }

/* ============================================================== */
/* カーセンサー流 UIコンポーネント (一覧・詳細)                   */
/* ============================================================== */
/* 1. 一覧 ⇄ 地図 2連切替タブ */
.view-switch-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 14px;
}
.view-tab-btn {
  padding: 12px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  background: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  position: relative;
}
.view-tab-btn.active {
  color: #C83E35;
  background: #fff7ed;
}
.view-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ea580c;
}

/* 2. クイック件数・並べ替えバー */
.quick-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
}
.quick-control-bar .hit-count {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}
.quick-control-bar .hit-count strong {
  font-size: 16px;
  color: #C83E35;
  font-weight: 800;
}

/* 3. ピル型特徴タグ */
.feature-pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.pill-tag-feat {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  line-height: 1.4 !important;
}
.pill-tag-feat.accent {
  color: #C83E35;
  background: #fff7ed;
  border-color: #fed7aa;
}

/* 4. 一覧カード用ミニマムスペックグリッド */
.mini-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 8px;
}
.mini-spec-grid .spec-item {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  font-size: 11px;
}
.mini-spec-grid .spec-label {
  background: #e2e8f0;
  color: #475569;
  font-weight: 700;
  padding: 2px 6px;
  font-size: 10px;
  flex-shrink: 0;
}
.mini-spec-grid .spec-val {
  padding: 2px 6px;
  color: #1e293b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5. 詳細ページ用 3列×2段ピル型スペック表 */
.detail-spec-pill-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.pill-table-cell {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}
.pill-cell-header {
  background: #e2e8f0;
  color: #334155;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 5px 4px !important;
  white-space: nowrap !important;
}
.pill-cell-body {
  padding: 7px 3px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
}
.pill-cell-body.highlight {
  color: #C83E35;
  font-size: 14.5px;
}

/* 6. 安心マイクロコピー付き特大CTAボックス */
.trust-cta-box {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
}
.trust-micro-copy {
  font-size: 11.5px;
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.btn-super-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ea580c;
  color: #ffffff !important;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(234,88,12,0.25);
  transition: all 0.2s;
}
.btn-super-cta:hover {
  background: #c2410c;
  color: #ffffff !important;
  text-decoration: none;
}
.btn-super-cta .free-badge, .btn-card-trial .free-badge {
  background: #ffffff;
  color: #C83E35;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 900;
}

/* PC/SP 表示制御 */
.sp { display: none !important; }
.pc { display: block !important; }
@media screen and (max-width: 768px) {
  .sp { display: block !important; }
  .pc { display: none !important; }
}

/* 全体ラップ（モックの幅 980px を維持） */
#WRAP {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(0,0,0,0.06);
  min-height: 100vh;
  overflow-x: hidden !important;
  padding-bottom: 75px !important;
}

/* ヘッダー PC */
#header.pc {
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
#header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#link-teacher {
  font-size: 14px !important;
  color: #334155 !important;
  font-weight: 700 !important;
}
#link-teacher a {
  color: #1F5E5B !important;
  font-weight: 700 !important;
  padding: 6px 4px !important;
  display: inline-block !important;
}
#link-teacher a:hover {
  color: #0369a1 !important;
  text-decoration: underline !important;
}

/* グローバルナビゲーション PC */
#gnav.pc {
  background: #003399;
}
#gnav-inner {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
#gnav-inner li {
  flex: 1;
  text-align: center;
}
#gnav-inner li a {
  display: block;
  padding: 11px 0;
  color: #ffffff;
  font-weight: bold;
  font-size: 13.5px;
  border-right: 1px solid #1a4db3;
  text-decoration: none;
  transition: background 0.15s;
}
#gnav-inner li a:hover {
  background: #002266;
  color: #ffffff;
}
#gnav-inner li:last-child a {
  border-right: none;
}

/* スマホ用ヘッダー */
#sp-header, #header.sp {
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
#sp-header #sp-header-inner, #header.sp #header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* コンテンツエリア */
#CONTENTS {
  padding: 24px 28px;
}
@media screen and (max-width: 768px) {
  #CONTENTS {
    padding: 16px 14px 90px; /* 下部固定ボタンの重なり防止 */
  }
}

/* パンくずリスト */
.pan {
  font-size: 14px;
  color: #475569;
  margin-bottom: 10px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.pan a {
  color: #1F5E5B;
  font-weight: 600;
}
.pan a:hover {
  color: #0369a1;
  text-decoration: underline;
}
@media screen and (max-width: 640px) {
  .pan {
    display: flex !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin: 6px 0 10px 0 !important;
    padding: 0 !important;
    gap: 2px 4px !important;
    color: #334155 !important;
  }
  .pan a {
    color: #1F5E5B !important;
    font-weight: 700 !important;
  }
  .pan::-webkit-scrollbar {
    display: none;
  }
}

/* H1 見出し (40-50代に優しいメリハリ) */
h1.page-ttl {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 10px;
  margin-bottom: 12px;
  line-height: 1.42;
  letter-spacing: -0.01em;
}
@media screen and (max-width: 768px) {
  h1.page-ttl {
    font-size: 21px;
    line-height: 1.4;
  }
}
@media screen and (max-width: 640px) {
  h1.page-ttl {
    font-size: 19.5px !important;
    line-height: 1.42 !important;
    margin: 6px 0 10px 0 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
  }
}

/* リード文 */
p.lead-text {
  font-size: 15.5px;
  color: #1e293b;
  line-height: 1.8;
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}
@media screen and (max-width: 640px) {
  p.lead-text {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #1e293b;
  }
}

/* マイクロリード (講師詳細用・高密度要約) */
p.lead-micro {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.65;
  margin: 0 0 14px 0;
}
p.lead-micro a.lead-station-link {
  color: #1F5E5B;
  text-decoration: underline;
  font-weight: 700;
}
p.lead-micro a.lead-station-link:hover {
  color: #0369a1;
}
@media screen and (max-width: 640px) {
  p.lead-micro {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    margin: 0 0 12px 0 !important;
    color: #1e293b !important;
  }
}

/* 絞り込み検索パネル (#box-search: WDD Compact 1-Row Utility Toolbar) */
#box-search.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 51, 153, 0.05);
  box-sizing: border-box;
}
#box-search.search-panel form {
  flex: 1 1 280px;
  min-width: 0;
  margin: 0;
}
.search-nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.search-tab-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #f0f7ff;
  border: 1px solid #93c5fd;
  padding: 6px 11px;
  height: 36px;
  border-radius: 8px;
  color: #1E3A5F;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0, 51, 153, 0.04);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-tab-btn .tab-icon {
  font-size: 14px;
  line-height: 1;
}
.search-tab-btn:hover {
  background: #003399;
  color: #ffffff;
  border-color: #003399;
  text-decoration: none;
}
.search-tab-btn:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.search-divider {
  display: none !important;
}
.search-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-input-wrap {
  flex: 1 1 0%;
  min-width: 0;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #C83E35;
  font-size: 13.5px;
  pointer-events: none;
}
.keyword-input {
  width: 100%;
  height: 36px;
  padding: 4px 10px 4px 32px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  border: 2px solid #f87171;
  border-radius: 8px;
  outline: none;
  background: #fff1f2;
  box-shadow: inset 0 1px 3px rgba(225, 29, 72, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.keyword-input::placeholder {
  color: #475569;
  font-size: 12.5px;
}
.keyword-input:focus {
  border-color: #e11d48;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.16), inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.search-submit-btn {
  height: 36px;
  padding: 0 14px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: 1px solid #c2410c;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
  transition: all 0.15s ease-in-out;
  box-sizing: border-box;
}
.search-submit-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.32);
}
.search-submit-btn:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}
@media screen and (max-width: 768px) {
  #box-search.search-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  .search-nav-tabs {
    width: 100%;
    gap: 5px;
    margin-bottom: 0;
  }
  .search-tab-btn {
    flex: 1 1 0%;
    min-width: 0;
  }
  #box-search.search-panel form {
    flex: none;
    width: 100%;
  }
}
@media screen and (max-width: 640px) {
  .sp-hide {
    display: none !important;
  }
  #box-search.search-panel {
    padding: 7px 8px;
    margin-bottom: 10px;
    gap: 5px;
  }
  .search-nav-tabs {
    gap: 4px;
  }
  .search-tab-btn {
    padding: 4px 4px !important;
    font-size: 12.5px !important;
    gap: 3px !important;
    height: 34px !important;
    box-sizing: border-box !important;
    border-radius: 7px !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
  }
  .search-tab-btn .tab-icon {
    font-size: 13.5px !important;
  }
  .search-input-group {
    flex-direction: row;
    gap: 5px;
  }
  .search-icon {
    left: 10px;
    font-size: 13px;
  }
  .keyword-input {
    height: 36px !important;
    padding: 4px 8px 4px 28px !important;
    font-size: 13.5px !important;
    border-radius: 7px !important;
  }
  .keyword-input::placeholder {
    font-size: 12px !important;
    color: #475569 !important;
  }
  .search-submit-btn {
    height: 36px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 7px !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
}

/* 先生一覧カード (.list-teacher-card) */
.list-teacher-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 16px !important;
  margin-bottom: 20px !important;
  display: flex !important;
  gap: 18px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  content-visibility: auto !important;
  contain-intrinsic-size: auto 480px !important;
  box-sizing: border-box !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.list-teacher-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}



.teacher-photo-link {
  display: block !important;
  align-self: flex-start !important;
  height: auto !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  position: relative !important;
  cursor: pointer !important;
}
.list-teacher-photo {
  position: relative !important;
  width: 120px !important;
  height: 155px !important;
  flex-shrink: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid #cbd5e1 !important;
  background: #f1f5f9 !important;
  transition: all 0.2s ease !important;
}
@media screen and (max-width: 640px) {
  .list-teacher-photo {
    width: 90px !important;
    max-width: 90px !important;
    height: 115px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
}
.list-teacher-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  aspect-ratio: 4 / 5 !important;
  display: block !important;
}
.teacher-photo-link .list-teacher-photo::after {
  content: "詳細を見る" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.2)) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: bold !important;
  text-align: center !important;
  padding: 4px 0 !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
}
.teacher-photo-link:hover .list-teacher-photo::after {
  opacity: 1 !important;
}
.teacher-photo-link:hover .list-teacher-photo {
  border-color: #003399 !important;
  box-shadow: 0 4px 12px rgba(0, 51, 153, 0.25) !important;
  transform: scale(1.02) !important;
}

.list-teacher-info {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
.list-teacher-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 8px !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.teacher-name-link {
  text-decoration: none !important;
  display: inline-block !important;
}
.teacher-name-link:hover .list-teacher-name {
  color: #1F5E5B !important;
  text-decoration: underline !important;
}
.list-teacher-name {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #1E3A5F !important;
  letter-spacing: 0.03em !important;
  line-height: 1.4 !important;
}
.list-teacher-price {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #1F5E5B !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
}

/* ピル型タグ */
.pill-tag-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
  align-items: center !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}
.pill-tag {
  display: inline-block !important;
  padding: 4px 12px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 20px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #1e40af !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
  transition: all 0.15s !important;
}
.pill-tag:hover {
  background: #eef2ff !important;
  border-color: #003399 !important;
  color: #1E3A5F !important;
}
.pill-tag.current {
  background: #003399 !important;
  color: #ffffff !important;
  border-color: #003399 !important;
  font-weight: bold !important;
}

/* 講師一覧カード内：駅ボックス & メッセージボックス (混同防止の独立コンテナ) */
.teacher-station-box {
  background: #f0f7ff !important;
  border-top: 1px solid #bfdbfe !important;
  border-right: 1px solid #bfdbfe !important;
  border-bottom: 1px solid #bfdbfe !important;
  border-left: 4px solid #003399 !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 10px 14px !important;
  margin-bottom: 10px !important;
}
.station-box-label {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #1E3A5F !important;
  margin-bottom: 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.station-box-content {
  font-size: 12.5px !important;
  color: #334155 !important;
  line-height: 1.65 !important;
  word-break: break-all !important;
}
.station-box-content b {
  color: #1E3A5F !important;
}

.teacher-message-box {
  background: #fffaf0 !important;
  border-top: 1px solid #fed7aa !important;
  border-right: 1px solid #fed7aa !important;
  border-bottom: 1px solid #fed7aa !important;
  border-left: 4px solid #ea580c !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 10px 14px !important;
  margin-bottom: 12px !important;
}
.message-box-label {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #C83E35 !important;
  margin-bottom: 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.message-box-content {
  font-size: 13px !important;
  color: #334155 !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  letter-spacing: 0.02em !important;
}

/* カード内アクションボタン群 */
.card-action-buttons {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}
.btn-card-detail {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #003399 !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-weight: bold !important;
  font-size: 12.5px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}
.btn-card-detail:hover {
  background: #002266 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}
.btn-card-favorite {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  color: #C83E35 !important;
  border: 1px solid #ea580c !important;
  padding: 7px 14px !important;
  border-radius: 6px !important;
  font-weight: bold !important;
  font-size: 12px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}
.btn-card-favorite:hover {
  background: #fff5ed !important;
  color: #C83E35 !important;
  text-decoration: none !important;
}
.btn-card-trial {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #ea580c !important;
  padding: 7px 14px !important;
  border-radius: 6px !important;
  font-weight: bold !important;
  font-size: 12px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2) !important;
  transition: all 0.15s ease !important;
}
.btn-card-trial:hover {
  opacity: 0.92 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

@media screen and (max-width: 640px) {
  .list-teacher-card {
    display: grid !important;
    grid-template-columns: 88px 1fr !important;
    grid-template-rows: auto auto auto auto !important;
    grid-template-areas:
      "photo header"
      "station station"
      "message message"
      "buttons buttons" !important;
    gap: 8px 12px !important;
    padding: 12px !important;
  }
  .teacher-photo-link {
    grid-area: photo !important;
    align-self: start !important;
    height: 115px !important;
  }
  .list-teacher-photo {
    width: 88px !important;
    max-width: 88px !important;
    height: 115px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  .list-teacher-card .list-teacher-info {
    display: contents !important;
  }
  .list-teacher-header-wrap {
    grid-area: header !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 3px !important;
  }
  .teacher-meta-info {
    font-size: 11.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 4px !important;
  }
  .teacher-station-box {
    grid-area: station !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    padding: 8px 10px !important;
  }
  .teacher-message-box {
    grid-area: message !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    padding: 8px 10px !important;
  }
  .card-action-buttons {
    grid-area: buttons !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
  }
  .card-action-buttons .btn-card-detail {
    flex: 1 !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    text-align: center !important;
  }
  .card-action-buttons .btn-card-favorite {
    display: none !important;
  }
  .card-action-buttons .btn-card-trial {
    flex: 1 !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    text-align: center !important;
  }
}


/* 固定追従CTAバー（PC・スマホ両対応） */
.floating-cta-bar,
.sp-floating-cta {
  display: block !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid #cbd5e1 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12) !important;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 9999 !important;
  backdrop-filter: blur(8px) !important;
}

.floating-cta-bar .cta-inner,
.sp-floating-cta .cta-inner {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.floating-cta-bar .cta-text,
.sp-floating-cta .cta-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  text-align: left;
  min-width: 0;
  flex: 1;
}

.floating-cta-bar .cta-catch,
.sp-floating-cta .cta-catch {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  white-space: nowrap;
}

.floating-cta-bar .cta-sub,
.sp-floating-cta .cta-sub {
  font-size: 11px;
  font-weight: 800;
  color: #c2410c;
  line-height: 1.2;
  white-space: nowrap;
}

.floating-cta-bar .cta-main,
.sp-floating-cta .cta-main {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  white-space: nowrap;
}

.floating-cta-bar .cta-line1,
.sp-floating-cta .cta-line1 {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
  white-space: nowrap;
}

.floating-cta-bar .cta-line2,
.sp-floating-cta .cta-line2 {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-cta-bar .cta-btn,
.sp-floating-cta .cta-btn,
.floating-cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.35) !important;
  white-space: nowrap !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  flex-shrink: 0 !important;
  touch-action: manipulation !important;
}

.floating-cta-bar .cta-btn:hover,
.sp-floating-cta .cta-btn:hover,
.floating-cta-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 12px rgba(234, 88, 12, 0.45) !important;
  color: #ffffff !important;
}

/* スマホ表示時の微調整 (<= 768px) */
@media screen and (max-width: 768px) {
  .floating-cta-bar,
  .sp-floating-cta {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 64px !important;
  }
  .floating-cta-bar .cta-inner,
  .sp-floating-cta .cta-inner {
    gap: 10px !important;
  }
  .floating-cta-bar .cta-catch,
  .sp-floating-cta .cta-catch {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .floating-cta-bar .cta-sub,
  .sp-floating-cta .cta-sub {
    font-size: 12px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }
  .floating-cta-bar .cta-main,
  .sp-floating-cta .cta-main {
    font-size: 14.5px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
  }
  .floating-cta-bar .cta-line1,
  .sp-floating-cta .cta-line1 {
    font-size: 14.5px !important;
    white-space: nowrap !important;
  }
  .floating-cta-bar .cta-line1 .price,
  .sp-floating-cta .cta-line1 .price {
    font-size: 14.5px !important;
  }
  .floating-cta-bar .cta-line2,
  .sp-floating-cta .cta-line2 {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.35 !important;
  }
  .floating-cta-bar .cta-btn,
  .sp-floating-cta .cta-btn,
  .floating-cta-btn {
    width: auto !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    padding: 11px 20px !important;
    border-radius: 8px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }
}


/* フッターメニュー (#F-MENU モック完全準拠) */
#F-MENU {
  background: #1e293b !important;
  color: rgb(226, 232, 240) !important;
  padding: 30px 20px 20px !important;
  margin-top: 40px !important;
  font-size: 12px !important;
}
.f-block {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  max-width: 980px !important;
  margin: 0 auto !important;
}
@media screen and (max-width: 640px) {
  .f-block {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}
.f-menu-ttl {
  font-weight: bold !important;
  color: #ffffff !important;
  border-bottom: 1px solid #334155 !important;
  padding-bottom: 6px !important;
  margin-bottom: 8px !important;
  font-size: 13px !important;
}
#F-MENU ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#F-MENU ul li {
  margin-bottom: 6px !important;
}
#F-MENU ul li a {
  color: rgb(203, 213, 225) !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
  font-size: 12px !important;
}
#F-MENU ul li a:hover {
  color: rgb(251, 191, 36) !important;
  text-decoration: underline !important;
}

/* コピーライト (#FOOTER モック完全準拠) */
#FOOTER {
  background: #0f172a !important;
  color: rgb(203, 213, 225) !important;
  text-align: center !important;
  padding: 16px 10px 75px !important;
  font-size: 11px !important;
}
#FOOTER p {
  margin: 0 !important;
  line-height: 1.5 !important;
}


/* ============================================================== */
/* 詳細画面・地図画面・各画面共通モックコンポーネントスタイル       */
/* ============================================================== */

/* 基本テーブル (.main-table) */
.main-table {
  width: 100% !important;
  margin-bottom: 24px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}
.main-table table {
  width: 100% !important;
  border-collapse: collapse !important;
}
.main-table th {
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  text-align: left !important;
  width: 28% !important;
  white-space: nowrap !important;
}
.main-table td {
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.main-table tr:last-child th,
.main-table tr:last-child td {
  border-bottom: none !important;
}
@media screen and (max-width: 640px) {
  .main-table th, .main-table td {
    padding: 10px 12px !important;
    font-size: 13.5px !important;
  }
  .main-table th {
    width: 32% !important;
  }
}

/* スケジュールマトリクス表 (.schedule-matrix) */
.schedule-matrix {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.schedule-matrix table {
  text-align: center !important;
  min-width: 500px !important;
}
.schedule-matrix th {
  text-align: center !important;
  width: auto !important;
  background: #e2e8f0 !important;
  font-weight: bold !important;
  padding: 8px 6px !important;
}
.schedule-matrix td {
  text-align: center !important;
  padding: 8px 6px !important;
  font-size: 15px !important;
}
.schedule-matrix .mark-ok {
  color: #C83E35 !important;
  font-weight: bold !important;
}
.schedule-matrix .mark-triangle {
  color: #1F5E5B !important;
  font-weight: bold !important;
}
.schedule-matrix .mark-ng {
  color: #475569 !important;
}

/* セクション見出し (H2 / H3) */
h2.section-ttl {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #1E3A5F !important;
  border-left: 5px solid #ea580c !important;
  padding-left: 12px !important;
  margin-top: 28px !important;
  margin-bottom: 16px !important;
  line-height: 1.4 !important;
}
h2.box-ttl,
h3.box-ttl {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  border-left: 4px solid #003399 !important;
  padding-left: 10px !important;
  margin-top: 24px !important;
  margin-bottom: 12px !important;
  line-height: 1.4 !important;
}
@media screen and (max-width: 640px) {
  h2.section-ttl {
    font-size: 16px !important;
    margin-top: 20px !important;
    margin-bottom: 12px !important;
  }
  h2.box-ttl,
  h3.box-ttl {
    font-size: 14.5px !important;
    margin-top: 18px !important;
    margin-bottom: 10px !important;
  }
}

/* 地域・エリアカード (.area-card) - map, pref, station, detail */
.area-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}
.area-card-ttl {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1E3A5F !important;
  border-bottom: 2px solid #e2e8f0 !important;
  padding-bottom: 8px !important;
  margin-bottom: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* 中間CTA (.cta-box) */
.cta-box {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
  border: 1.5px solid #fed7aa !important;
  border-radius: 12px !important;
  padding: 20px 24px !important;
  margin: 28px 0 !important;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08) !important;
}
.cta-box-ttl {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #C83E35 !important;
  margin-bottom: 6px !important;
}
.cta-box-desc {
  font-size: 13.5px !important;
  color: #475569 !important;
  margin-bottom: 14px !important;
  line-height: 1.6 !important;
}
.cta-box .cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 12px 28px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25) !important;
  transition: all 0.2s ease !important;
}
.cta-box .cta-btn:hover {
  opacity: 0.92 !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}
@media screen and (max-width: 640px) {
  .cta-box {
    padding: 16px 14px !important;
    margin: 20px 0 !important;
  }
  .cta-box-ttl {
    font-size: 15px !important;
  }
  .cta-box .cta-btn {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
}

/* 講師詳細カード (.detail-teacher-card) & 先生情報 (.detail-teacher-info) */
.detail-teacher-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 24px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}
.detail-teacher-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 写真ギャラリー (.teacher-gallery-container) */
.teacher-gallery-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  flex: 0 0 320px !important;
  width: 320px !important;
  margin-bottom: 0 !important;
}
.gallery-main-view {
  width: 100% !important;
  height: 380px !important;
  background: #f8fafc !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e2e8f0 !important;
}
.gallery-main-view img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* 写真の縦横比を100%保全し、つぶれや切り取られを完全防止 */
  object-position: center center !important;
  transition: opacity 0.2s ease !important;
}
.gallery-thumbs-grid {
  display: grid !important;
  grid-template-columns: repeat(8, 1fr) !important;
  gap: 8px !important;
}
.thumb-item {
  aspect-ratio: 1 / 1 !important;
  background: #f8fafc !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  border: 2px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.thumb-item:hover, .thumb-item.active {
  border-color: #ea580c !important;
  transform: translateY(-1px) !important;
}
.thumb-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media screen and (max-width: 768px) {
  .detail-teacher-card {
    flex-direction: column !important;
    padding: 14px 12px !important;
    gap: 14px !important;
    border-radius: 10px !important;
  }
  .teacher-gallery-container {
    flex: none !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }
  .gallery-main-view {
    height: 250px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
  }
  .gallery-main-view img {
    object-fit: contain !important;
  }
  .gallery-thumbs-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }
  .detail-teacher-info {
    width: 100% !important;
  }
}

/* 生徒の声カード (.box-voice) */
.box-voice {
  background: #f8fafc !important;
  border-left: 4px solid #003399 !important;
  border-radius: 6px !important;
  padding: 14px 18px !important;
  margin-bottom: 12px !important;
  font-size: 14px !important;
}
.voice-initial {
  font-weight: bold !important;
  color: #1E3A5F !important;
  margin-bottom: 4px !important;
  font-size: 13.5px !important;
}
.voice-comment {
  color: #334155 !important;
  line-height: 1.7 !important;
}

/* ============================================================ */
.lang-switch-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.18);
  padding: 3px 8px;
  border-radius: 8px;
  margin-left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.lang-label {
  font-size: 11px;
  color: #fff;
  font-weight: bold;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .lang-switch-bar {
    margin-left: 0;
    margin-top: 6px;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 4px 6px;
  }
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lang-btn.active {
  background: #ffcc00;
  color: #111;
  font-weight: bold;
  border-color: #ffcc00;
}

/* 日本地図コンテナ */
.japan-map-container {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0 25px;
  box-shadow: 0 4px 12px rgba(0, 51, 153, 0.05);
}
.japan-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}
.japan-map-header h3 {
  font-size: 16px;
  font-weight: bold;
  color: #1E3A5F;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.japan-map-flex {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .japan-map-flex {
    flex-direction: column;
  }
}

/* 日本列島グラフィカル・ビジュアルマップ */
.map-visual-board {
  flex: 0 0 340px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}
@media (max-width: 768px) {
  .map-visual-board {
    width: 100%;
    flex: none;
    box-sizing: border-box;
  }
}
.map-board-title {
  font-size: 12px;
  font-weight: bold;
  color: #1E3A5F;
  text-align: center;
  margin-bottom: 10px;
}

/* 日本地図グリッド配置 (7行×8列で日本列島を直感配置) */
.japan-grid-map {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(7, 36px);
  gap: 4px;
}
.map-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  user-select: none;
  text-align: center;
  line-height: 1.15;
}
.map-cell:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 8px rgba(0,0,0,0.18);
  filter: brightness(0.95);
  z-index: 2;
}
.map-cell.active {
  outline: 3px solid #ff9900;
  box-shadow: 0 0 10px rgba(255, 153, 0, 0.6);
  z-index: 3;
}

/* 各地方のセル配置と色分け */
.cell-hokkaido { grid-column: 7 / span 2; grid-row: 1; background: #38bdf8; color: #0c4a6e; }
.cell-tohoku   { grid-column: 7 / span 2; grid-row: 2 / span 2; background: #bae6fd; color: #0c4a6e; }
.cell-kanto    { grid-column: 6 / span 2; grid-row: 4 / span 2; background: #0369a1; color: #ffffff; }
.cell-hokuriku { grid-column: 4 / span 2; grid-row: 3; background: #6ee7b7; color: #064e3b; }
.cell-koshin   { grid-column: 5 / span 1; grid-row: 4; background: #a7f3d0; color: #064e3b; }
.cell-tokai    { grid-column: 5 / span 1; grid-row: 5; background: #047857; color: #ffffff; }
.cell-kinki    { grid-column: 3 / span 2; grid-row: 4 / span 2; background: #b45309; color: #ffffff; }
.cell-chugoku  { grid-column: 2 / span 1; grid-row: 4; background: #dc2626; color: #ffffff; }
.cell-shikoku  { grid-column: 2 / span 1; grid-row: 5; background: #ef4444; color: #ffffff; }
.cell-kyushu   { grid-column: 1 / span 1; grid-row: 5 / span 2; background: #a855f7; color: #ffffff; }
.cell-okinawa  { grid-column: 1 / span 1; grid-row: 7; background: #7e22ce; color: #ffffff; }

/* 地図横の47都道府県パネル */
.map-detail-panel {
  flex: 1;
}
.region-block {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #003399;
  transition: all 0.2s ease;
}
.region-block.highlight {
  background: #eff6ff;
  border-left-color: #ff9900;
  box-shadow: 0 2px 8px rgba(0, 51, 153, 0.1);
}
.region-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.region-badge-pill {
  font-size: 13px;
  font-weight: bold;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pref-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pref-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}
.pref-chip:hover {
  background: #003399;
  color: #ffffff;
  border-color: #003399;
  text-decoration: none;
  transform: translateY(-1px);
}
.pref-chip .cnt {
  font-size: 10px;
  color: #475569;
  margin-left: 3px;
}
.pref-chip:hover .cnt {
  color: rgb(224, 231, 255);
}

/* 47都道府県 Station Button Grid (本番 station.html 準拠) */
.station-grid-47 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.station-btn-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.station-btn-item:hover {
  background: #f0f7ff;
  border-color: #003399;
  color: #1E3A5F;
  text-decoration: none;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .station-grid-47 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .station-btn-item {
    justify-content: center;
    padding: 11px 8px;
    font-size: 13px;
  }
}


/* 40-50代向け 自己紹介・推薦文のゆったりタイポグラフィ */
.profile-comment, .teacher-intro-text {
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #1e293b !important;
  letter-spacing: 0.045em !important;
}
.spec-table th, .spec-table td {
  font-size: 15px !important;
  line-height: 1.75 !important;
}
.spec-table th {
  font-weight: 700 !important;
  color: #1E3A5F !important;
}



@media (max-width: 768px) {
  .japan-map-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
}


/* ============================================================== */
/* 50代・シニア配慮：高視認性タイポグラフィ（文字拡大・高コントラスト） */
/* ============================================================== */
.main-table table th {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  background: #f8fafc !important;
  padding: 12px 14px !important;
}
.main-table table td {
  font-size: 15.5px !important;
  color: #0f172a !important;
  line-height: 1.7 !important;
  padding: 12px 14px !important;
}
.box-ttl {
  font-size: 18.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.teacher-intro-text,
.box-voice .voice-comment {
  font-size: 15.5px !important;
  line-height: 1.85 !important;
  color: #1e293b !important;
}
.box-voice .voice-initial {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
.safety-reassurance-box h3 {
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.25rem) !important;
  font-weight: 800 !important;
}
.safety-reassurance-box p {
  font-size: 15.5px !important;
  line-height: 1.75 !important;
}
.safety-reassurance-cards strong:not(.accent-free-text) {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.safety-reassurance-cards div > span {
  font-size: 15px !important;
  color: #1e293b !important;
  line-height: 1.65 !important;
}
@media screen and (max-width: 640px) {
  .closing-teacher-cta {
    padding: 18px 12px !important;
  }
}








/* === SENIOR_READABILITY_V1_START === */
/* ============================================================== */
/* 50代・老眼対応：先生一覧（PC・スマホ全画面）高視認性タイポグラフィ */
/* ============================================================== */
body {
  font-size: 16.5px !important;
  line-height: 1.8 !important;
  color: #0f172a !important;
}
@media screen and (max-width: 640px) {
  body {
    font-size: 16px !important;
  }
}

/* パンくず・H1・リード文 */
.pan {
  font-size: 15px !important;
  color: #334155 !important;
  font-weight: 600 !important;
}
.pan a {
  font-weight: 700 !important;
}
h1.page-ttl {
  font-size: clamp(1.2rem, 1.0rem + 0.8vw, 1.38rem) !important;
  line-height: 1.45 !important;
  color: #0f172a !important;
  text-wrap: wrap;
}
p.lead-text,
p.lead-micro {
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: #0f172a !important;
  font-weight: 500 !important;
  text-wrap: pretty;
}
@media screen and (max-width: 640px) {
  .pan {
    font-size: 14.5px !important;
  }
  p.lead-text,
  p.lead-micro {
    font-size: 15.5px !important;
    line-height: 1.75 !important;
  }
}

/* グローバルナビ・SPヘッダー・検索パネル */
#gnav-inner li a {
  font-size: 15.5px !important;
  padding: 13px 0 !important;
  letter-spacing: 0.03em !important;
}
#link-teacher {
  font-size: 15px !important;
}
#sp-header a, #header.sp a {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1E3A5F !important;
}
.search-tab-btn {
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 5px 11px !important;
  height: 36px !important;
  border-width: 1px !important;
}
.search-divider {
  display: none !important;
}
.keyword-input {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  height: 36px !important;
}
.keyword-input::placeholder {
  font-size: 12.5px !important;
  color: #475569 !important;
}
.search-submit-btn {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  height: 36px !important;
}
@media screen and (max-width: 640px) {
  .search-tab-btn {
    font-size: 12.5px !important;
    height: 34px !important;
    padding: 4px 4px !important;
  }
  .search-tab-btn .tab-icon {
    font-size: 13.5px !important;
  }
  .keyword-input {
    font-size: 13.5px !important;
    height: 36px !important;
  }
  .keyword-input::placeholder {
    font-size: 12px !important;
    color: #475569 !important;
  }
  .search-submit-btn {
    height: 36px !important;
    font-size: 13px !important;
    padding: 0 12px !important;
  }
}

/* ファーストビュー青バー (.step1-fv-benefit-bar) */
.step1-fv-benefit-bar {
  padding: 16px 20px !important;
  border-radius: 12px !important;
}
@media screen and (max-width: 640px) {
  .step1-fv-benefit-bar {
    padding: 16px 14px !important;
  }
  .step1-fv-benefit-bar a[data-cta-source="list_fv_bar"] {
    width: 100% !important;
    min-height: 50px !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
  }
}

/* クイック件数バー (.quick-control-bar) */
.quick-control-bar {
  padding: 12px 16px !important;
}
.quick-control-bar .hit-count {
  font-size: 16px !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}
.quick-control-bar .hit-count strong {
  font-size: 21px !important;
  color: #C83E35 !important;
  font-weight: 900 !important;
}

/* 講師一覧カード (.list-teacher-card) 老眼対応・大文字化 */
.list-teacher-card {
  padding: 20px !important;
  margin-bottom: 22px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  gap: 20px !important;
}
.list-teacher-photo {
  width: 130px !important;
  height: 168px !important;
}
.teacher-photo-link .list-teacher-photo::after {
  font-size: 13px !important;
  padding: 6px 0 !important;
}
.list-teacher-name {
  font-size: 21.5px !important;
  font-weight: 800 !important;
  color: #1E3A5F !important;
  line-height: 1.4 !important;
}
.pill-tag,
.pill-tag.current {
  font-size: 14px !important;
  padding: 4px 12px !important;
  font-weight: 700 !important;
}

/* 特徴ピルタグ (.feature-pill-tags) */
.feature-pill-tags {
  gap: 8px !important;
  margin: 10px 0 12px !important;
}
.pill-tag-feat {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 6px 13px !important;
  border-radius: 8px !important;
  line-height: 1.4 !important;
}
.pill-tag-feat.accent {
  color: #C83E35 !important;
  background: #fff7ed !important;
  border-color: #fdba74 !important;
}

/* 基本スペック4項目 (.mini-spec-grid：駅・語・発・住) - 10px/11pxを14px/15.5pxへ大幅拡大 */
.mini-spec-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}
.mini-spec-grid .spec-item {
  background: #f8fafc !important;
  border-radius: 6px !important;
  border: 1.5px solid #cbd5e1 !important;
  font-size: 15.5px !important;
  min-height: 38px !important;
}
.mini-spec-grid .spec-label {
  background: #dbeafe !important;
  color: #1E3A5F !important;
  font-weight: 800 !important;
  padding: 6px 10px !important;
  font-size: 13.5px !important;
  min-width: 34px !important;
  text-align: center !important;
  align-self: stretch !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.mini-spec-grid .spec-val {
  padding: 6px 10px !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 15.5px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* レッスン希望駅・対応路線ボックス (.teacher-station-box) */
.teacher-station-box {
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  border-left-width: 5px !important;
  background: #f0f7ff !important;
}
.station-box-label {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #1E3A5F !important;
  margin-bottom: 8px !important;
}
.station-box-content {
  font-size: 15.5px !important;
  color: #0f172a !important;
  line-height: 1.8 !important;
  font-weight: 500 !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}
.station-box-content b {
  color: #1E3A5F !important;
  font-weight: 800 !important;
}

/* 講師からのメッセージボックス (.teacher-message-box) */
.teacher-message-box {
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
  border-left-width: 5px !important;
  background: #fffaf0 !important;
}
.message-box-label {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #b45309 !important;
  margin-bottom: 8px !important;
}
.message-box-content {
  font-size: 16px !important;
  color: #0f172a !important;
  line-height: 1.85 !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  text-wrap: pretty;
}

/* カード内アクションボタン (.card-action-buttons) */
.card-action-buttons {
  gap: 12px !important;
}
.btn-card-detail {
  padding: 12px 22px !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  min-height: 48px !important;
}
.btn-card-trial {
  padding: 12px 22px !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  min-height: 48px !important;
  gap: 6px !important;
}
.btn-card-trial .free-badge,
.btn-super-cta .free-badge {
  font-size: 13px !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
}

/* スマホ版 (.list-teacher-card) レイアウト＆文字サイズ最適化 */
@media screen and (max-width: 640px) {
  .list-teacher-card {
    display: grid !important;
    grid-template-columns: 96px 1fr !important;
    grid-template-rows: auto !important;
    grid-template-areas: none !important;
    gap: 10px 12px !important;
    padding: 16px 14px !important;
  }
  .teacher-photo-link {
    grid-area: auto !important;
    grid-column: 1 / 2 !important;
    grid-row: 1 / 2 !important;
    align-self: start !important;
    height: 124px !important;
  }
  .list-teacher-photo {
    width: 96px !important;
    max-width: 96px !important;
    height: 124px !important;
  }
  .list-teacher-card .list-teacher-info,
  .list-teacher-card .list-teacher-header-wrap {
    display: contents !important;
  }
  .list-teacher-header {
    grid-area: auto !important;
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    align-self: center !important;
    margin-bottom: 0 !important;
    gap: 6px !important;
  }
  .list-teacher-name {
    font-size: 19px !important;
    line-height: 1.4 !important;
  }
  /* 写真の下（横幅100%）にタグ・スペック・駅・メッセージ・ボタンを順番通り全幅展開 */
  .list-teacher-header-wrap > div:not(.list-teacher-header),
  .feature-pill-tags,
  .mini-spec-grid,
  .teacher-station-box,
  .teacher-message-box,
  .card-action-buttons {
    grid-area: auto !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }
  .feature-pill-tags {
    margin: 2px 0 !important;
    gap: 6px !important;
  }
  .pill-tag-feat {
    font-size: 14px !important;
    padding: 5px 10px !important;
  }
  .mini-spec-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .mini-spec-grid .spec-label {
    font-size: 13px !important;
    padding: 6px 8px !important;
  }
  .mini-spec-grid .spec-val {
    font-size: 14.5px !important;
    padding: 6px 8px !important;
  }
  .teacher-station-box,
  .teacher-message-box {
    padding: 12px 14px !important;
  }
  .station-box-label,
  .message-box-label {
    font-size: 14.5px !important;
  }
  .station-box-content {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }
  .message-box-content {
    font-size: 15.5px !important;
    line-height: 1.8 !important;
  }
  .card-action-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 2px !important;
  }
  .card-action-buttons .btn-card-detail,
  .card-action-buttons .btn-card-trial {
    width: 100% !important;
    flex: none !important;
    font-size: 15.5px !important;
    padding: 12px 16px !important;
    min-height: 48px !important;
  }
}

/* フッター・追従バーの老眼対応 */
#F-MENU {
  font-size: 14.5px !important;
}
.f-menu-ttl {
  font-size: 16px !important;
}
#F-MENU ul li {
  margin-bottom: 8px !important;
}
#F-MENU ul li a {
  font-size: 14.5px !important;
  color: rgb(241, 245, 249) !important;
}
#FOOTER {
  font-size: 13px !important;
  color: rgb(203, 213, 225) !important;
}
.floating-cta-bar .cta-sub,
.sp-floating-cta .cta-sub {
  font-size: 14px !important;
}
.floating-cta-bar .cta-main,
.sp-floating-cta .cta-main {
  font-size: 15.5px !important;
}
.floating-cta-bar .cta-btn,
.sp-floating-cta .cta-btn,
.floating-cta-btn {
  font-size: 16px !important;
  padding: 12px 20px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}
/* === SENIOR_READABILITY_V1_END === */
.pc-inline { display: inline; }
.sp-inline { display: none !important; }
@media screen and (max-width: 768px) {
  .pc-inline { display: none !important; }
  .sp-inline { display: inline !important; }
  .floating-cta-bar .cta-sub { font-size: 13.5px !important; }
  .floating-cta-bar .cta-main { font-size: 14.5px !important; }
  .floating-cta-bar .cta-btn { padding: 11px 14px !important; font-size: 14.5px !important; min-height: 48px !important; }
}
@media screen and (max-width: 360px) {
  .floating-cta-bar,
  .sp-floating-cta {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .floating-cta-bar .cta-inner,
  .sp-floating-cta .cta-inner {
    gap: 6px !important;
  }
  .floating-cta-bar .cta-sub,
  .sp-floating-cta .cta-sub {
    font-size: 13px !important;
  }
  .floating-cta-bar .cta-main,
  .sp-floating-cta .cta-main {
    font-size: 14px !important;
  }
  .floating-cta-bar .cta-btn,
  .sp-floating-cta .cta-btn,
  .floating-cta-btn {
    font-size: 14px !important;
    padding: 10px 12px !important;
    min-height: 46px !important;
  }
}

/* === layout_base style #1 === */
/* ===== TEACHER ID PROMINENT BADGE & 1-CLICK COPY (5-SITE + STG UNIFIED) ===== */
.tid-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  width: 100%;
  min-width: 0;
}
.tid-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
.tid-bar--center {
  justify-content: center;
}
span.tid-badge {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid #1e3a8a;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  line-height: 1.2;
  vertical-align: middle;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
span.tid-badge__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1e3a8a;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 4px 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
span.tid-badge__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fef9c3;
  color: #0f172a !important;
  font-size: 1.0625rem;
  font-weight: 900;
  padding: 3px 10px;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
span.tid-badge.tid-badge--lg {
  border-width: 2px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.16);
}
span.tid-badge.tid-badge--lg > span.tid-badge__label {
  font-size: 0.875rem;
  padding: 6px 10px;
}
span.tid-badge.tid-badge--lg > span.tid-badge__num {
  font-size: 1.3125rem;
  padding: 4px 13px;
}
span.tid-badge.tid-badge--sm {
  border-width: 1.5px;
  border-radius: 7px;
}
span.tid-badge.tid-badge--sm > span.tid-badge__label {
  font-size: 0.75rem;
  padding: 3px 6px;
}
span.tid-badge.tid-badge--sm > span.tid-badge__num {
  font-size: 0.9375rem;
  padding: 2px 8px;
}
@supports (text-box: trim-both cap alphabetic) {
  span.tid-badge__num {
    text-box: trim-both cap alphabetic;
  }
}
button.tid-copy-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background-color: #ffffff !important;
  color: #1E3A5F !important;
  border: 1.5px solid #1e40af !important;
  border-radius: 8px !important;
  padding: 5px 10px !important;
  font-size: 0.8125rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}
button.tid-copy-btn:hover {
  background-color: #eff6ff !important;
  border-color: #1e3a8a !important;
}
button.tid-copy-btn:active {
  transform: translateY(1px);
}
button.tid-copy-btn:focus-visible {
  outline: 3px solid #1d4ed8 !important;
  outline-offset: 2px !important;
}
button.tid-copy-btn.tid-copy-btn--sm {
  padding: 3px 8px !important;
  font-size: 0.75rem !important;
  border-radius: 7px !important;
}
button.tid-copy-btn.is-copied {
  background-color: #15803d !important;
  border-color: #15803d !important;
  color: #ffffff !important;
}
@media (pointer: coarse) {
  button.tid-copy-btn {
    min-height: 36px;
    padding: 6px 11px !important;
  }
  button.tid-copy-btn.tid-copy-btn--sm {
    min-height: 32px;
    padding: 4px 9px !important;
  }
}
.tid-detail-hero-box {
  margin-top: 8px;
  padding: 10px 10px 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.tid-detail-note {
  margin: 6px 0 0 0 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #1E3A5F !important;
  line-height: 1.45 !important;
}
.tid-fv-cta-idbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  background-color: #ffffff;
  border: 1.5px solid #93c5fd;
  border-radius: 10px;
  padding: 8px 12px;
  box-sizing: border-box;
}
.tid-fv-cta-idbar__lead {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1E3A5F;
}
.senior-profile-table tr.tid-profile-row th {
  background-color: #eff6ff !important;
  color: #1E3A5F !important;
  font-weight: 800 !important;
}
.senior-profile-table tr.tid-profile-row td {
  background-color: #fffef5 !important;
}
.tid-inline-hint {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
}
.tid-selected-cta-bar {
  max-width: 560px;
  margin: 0 auto 14px auto;
  padding: 12px 14px;
  background-color: #ffffff;
  border: 2px solid #1e3a8a;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.10);
  box-sizing: border-box;
}
.tid-selected-cta-bar__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
}
.tid-selected-cta-bar__title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
}
.tid-selected-cta-bar__title strong {
  color: #1E3A5F;
  font-weight: 900;
}
.tid-selected-cta-bar__sub {
  margin: 7px 0 0 0 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  line-height: 1.5 !important;
}
.tid-live-toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%) translateY(8px);
  max-width: calc(100vw - 24px);
  width: max-content;
  background-color: #0f172a;
  color: #ffffff;
  border: 1.5px solid #fde047;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  z-index: 10050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  box-sizing: border-box;
}
.tid-live-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media screen and (max-width: 640px) {
  .tid-name-row {
    gap: 6px 8px;
  }
  span.tid-badge.tid-badge--lg > span.tid-badge__label {
    font-size: 0.8125rem;
    padding: 5px 8px;
  }
  span.tid-badge.tid-badge--lg > span.tid-badge__num {
    font-size: 1.1875rem;
    padding: 3px 10px;
  }
  .tid-fv-cta-idbar {
    padding: 7px 10px;
  }
  .tid-selected-cta-bar {
    padding: 10px 11px;
  }
  .tid-live-toast {
    font-size: 0.8125rem;
    padding: 8px 14px;
    bottom: 78px;
  }
}
@media (forced-colors: active) {
  span.tid-badge,
  button.tid-copy-btn,
  .tid-selected-cta-bar {
    border: 2px solid ButtonText !important;
  }
}

/* === layout_base style #2 === */
:root {
    --color-base-70: #FAF8F5;
    --color-surface-card: #FFFFFF;
    --color-sub-tint: #EEF5F3;
    --color-main-25: #1E3A5F;
    --color-main-hover: #152945;
    --color-secondary-25: #1F5E5B;
    --color-accent-5-cta: #C83E35;
    --color-accent-hover: #A82E26;
    --color-text-primary: #1A202C;
    --color-text-body: #1E293B;
    --color-text-secondary: #475569;
    --color-border-sep: #CBD5E1;
    --color-name-ink: #1E3A5F;
    --color-name-hover: #1F5E5B;
    --wdd-tc-bg: #FAF8F5;
    --wdd-tc-sub: #EEF5F3;
    --wdd-tc-main: #1E3A5F;
    --wdd-tc-accent: #C83E35;
    --wdd-tc-border: #CBD5E1;
    --background: #FAF8F5;
    --foreground: #1A202C;
    --card: #FFFFFF;
    --border: #CBD5E1;
    --secondary: #EEF5F3;
    --muted-foreground: #475569;
  }

/* === layout_base style #3 === */
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#475569}input::placeholder,textarea::placeholder{opacity:1;color:#475569}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.col-span-2{grid-column:span 2/span 2}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-\[9\/10\]{aspect-ratio:9/10}.aspect-square{aspect-ratio:1/1}.h-16{height:4rem}.h-4{height:1rem}.h-full{height:100%}.w-16{width:4rem}.w-36{width:9rem}.w-\[236px\]{width:236px}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.max-w-3xl{max-width:48rem}.max-w-\[144px\]{max-width:144px}.max-w-\[168px\]{max-width:168px}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-3\.5{gap:.875rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem*var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.625rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem*var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem*var(--tw-space-y-reverse))}.space-y-3\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.875rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.875rem*var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem*var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-r-xl{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-amber-200{--tw-border-opacity:1;border-color:rgb(253 230 138/var(--tw-border-opacity,1))}.border-amber-300\/60{border-color:rgba(252,211,77,.6)}.border-amber-400{--tw-border-opacity:1;border-color:rgb(251 191 36/var(--tw-border-opacity,1))}.border-amber-400\/50{border-color:rgba(251,191,36,.5)}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-blue-200\/80{border-color:rgba(191,219,254,.8)}.border-blue-200\/90{border-color:rgba(191,219,254,.9)}.border-blue-900{--tw-border-opacity:1;border-color:rgb(30 58 138/var(--tw-border-opacity,1))}.border-emerald-200{--tw-border-opacity:1;border-color:rgb(167 243 208/var(--tw-border-opacity,1))}.border-emerald-300{--tw-border-opacity:1;border-color:rgb(110 231 183/var(--tw-border-opacity,1))}.border-orange-300{--tw-border-opacity:1;border-color:rgb(253 186 116/var(--tw-border-opacity,1))}.border-sky-300{--tw-border-opacity:1;border-color:rgb(125 211 252/var(--tw-border-opacity,1))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(241 245 249/var(--tw-border-opacity,1))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}.border-slate-200\/70{border-color:rgba(226,232,240,.7)}.border-slate-200\/80{border-color:rgba(226,232,240,.8)}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.bg-amber-400\/20{background-color:rgba(251,191,36,.2)}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}.bg-amber-50\/50{background-color:rgba(255,251,235,.5)}.bg-amber-50\/90{background-color:rgba(255,251,235,.9)}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.bg-blue-50\/50{background-color:rgba(239,246,255,.5)}.bg-blue-50\/60{background-color:rgba(239,246,255,.6)}.bg-blue-50\/70{background-color:rgba(239,246,255,.7)}.bg-blue-900{--tw-bg-opacity:1;background-color:rgb(30 58 138/var(--tw-bg-opacity,1))}.bg-emerald-50{--tw-bg-opacity:1;background-color:rgb(236 253 245/var(--tw-bg-opacity,1))}.bg-emerald-600{--tw-bg-opacity:1;background-color:rgb(5 150 105/var(--tw-bg-opacity,1))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity,1))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity,1))}.bg-rose-600{--tw-bg-opacity:1;background-color:rgb(225 29 72/var(--tw-bg-opacity,1))}.bg-sky-100{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity,1))}.bg-sky-50{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity,1))}.bg-sky-600{--tw-bg-opacity:1;background-color:rgb(2 132 199/var(--tw-bg-opacity,1))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/20{background-color:hsla(0,0%,100%,.2)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-amber-50\/40{--tw-gradient-from:rgba(255,251,235,.4) var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,251,235,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-amber-500{--tw-gradient-from:#f59e0b var(--tw-gradient-from-position);--tw-gradient-to:rgba(245,158,11,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-orange-50\/30{--tw-gradient-from:rgba(255,247,237,.3) var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,247,237,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-white{--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#fff var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-orange-500{--tw-gradient-to:#f97316 var(--tw-gradient-to-position)}.to-white{--tw-gradient-to:#fff var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2\.5{padding-bottom:.625rem}.pb-3{padding-bottom:.75rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-right{text-align:right}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.text-amber-200{--tw-text-opacity:1;color:rgb(253 230 138/var(--tw-text-opacity,1))}.text-amber-300{--tw-text-opacity:1;color:rgb(252 211 77/var(--tw-text-opacity,1))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity,1))}.text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity,1))}.text-amber-950{--tw-text-opacity:1;color:rgb(69 26 3/var(--tw-text-opacity,1))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}.text-blue-950{--tw-text-opacity:1;color:rgb(23 37 84/var(--tw-text-opacity,1))}.text-emerald-800{--tw-text-opacity:1;color:rgb(6 95 70/var(--tw-text-opacity,1))}.text-emerald-900{--tw-text-opacity:1;color:rgb(6 78 59/var(--tw-text-opacity,1))}.text-orange-900{--tw-text-opacity:1;color:rgb(124 45 18/var(--tw-text-opacity,1))}.text-rose-700{--tw-text-opacity:1;color:rgb(190 18 60/var(--tw-text-opacity,1))}.text-sky-900{--tw-text-opacity:1;color:rgb(12 74 110/var(--tw-text-opacity,1))}.text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity,1))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}.text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color)}.shadow-inner,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.hover\:border-blue-400:hover{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.hover\:bg-blue-50\/60:hover{background-color:rgba(239,246,255,.6)}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity,1))}.hover\:bg-blue-900:hover{--tw-bg-opacity:1;background-color:rgb(30 58 138/var(--tw-bg-opacity,1))}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.hover\:bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.group:hover .group-hover\:scale-105{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:underline{text-decoration-line:underline}@media (min-width:640px){.sm\:col-span-1{grid-column:span 1/span 1}.sm\:inline-block{display:inline-block}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:hidden{display:none}.sm\:w-\[252px\]{width:252px}.sm\:w-full{width:100%}.sm\:max-w-\[160px\]{max-width:160px}.sm\:max-w-\[168px\]{max-width:168px}.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:items-center{align-items:center}.sm\:items-stretch{align-items:stretch}.sm\:justify-end{justify-content:flex-end}.sm\:gap-1{gap:.25rem}.sm\:gap-2{gap:.5rem}.sm\:gap-4{gap:1rem}.sm\:space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem*var(--tw-space-y-reverse))}.sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.sm\:space-y-7>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.75rem*var(--tw-space-y-reverse))}.sm\:whitespace-nowrap{white-space:nowrap}.sm\:rounded-md{border-radius:.375rem}.sm\:p-3\.5{padding:.875rem}.sm\:p-4{padding:1rem}.sm\:p-5{padding:1.25rem}.sm\:p-6{padding:1.5rem}.sm\:px-2\.5{padding-left:.625rem;padding-right:.625rem}.sm\:px-5{padding-left:1.25rem;padding-right:1.25rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width:768px){.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-5{grid-column:span 5/span 5}.md\:col-span-7{grid-column:span 7/span 7}.md\:col-span-8{grid-column:span 8/span 8}.md\:w-full{width:100%}.md\:max-w-\[236px\]{max-width:236px}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:p-5{padding:1.25rem}.md\:p-6{padding:1.5rem}.md\:p-7{padding:1.75rem}.md\:p-8{padding:2rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}

/* === layout_base style #4 === */
/* ===== KISAKA ALCHEMY × MODERN WEB DESIGN BASE (original_kisaka_mock.html 準拠) ===== */
  :root {
    --background: var(--color-base-70);
    --foreground: var(--color-text-primary);
    --card: var(--color-surface-card);
    --border: var(--color-border-sep);
    --secondary: var(--color-sub-tint);
    --muted-foreground: var(--color-text-secondary);
  }
  body {
    background-color: #FAF8F5 !important;
    color: #0f172a !important;
    font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-font-smoothing: antialiased;
  }
  .fluid-h1 {
    font-size: clamp(21px, 18px + 1.1vw, 28px) !important;
    line-height: 1.42 !important;
    letter-spacing: -0.01em;
  }
  .fluid-h2 {
    font-size: clamp(19px, 16.5px + 0.75vw, 24px) !important;
    line-height: 1.45 !important;
  }

  /* ===================================================================== */
  /* 視認性バランス調整スケール（前回から約10%縮小：13.5px〜16.5px基準） */
  /* ===================================================================== */
  #CONTENTS .text-xs,
  #CONTENTS .sm\:text-xs,
  #CONTENTS .md\:text-xs {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
  }
  #CONTENTS .text-sm,
  #CONTENTS .sm\:text-sm,
  #CONTENTS .md\:text-sm {
    font-size: 15px !important;
    line-height: 1.78 !important;
  }
  #CONTENTS .text-base,
  #CONTENTS .sm\:text-base,
  #CONTENTS .md\:text-base {
    font-size: 16.5px !important;
    line-height: 1.8 !important;
  }
  #CONTENTS .text-lg,
  #CONTENTS .sm\:text-lg,
  #CONTENTS .md\:text-lg {
    font-size: 19px !important;
    line-height: 1.5 !important;
  }
  #CONTENTS .text-xl,
  #CONTENTS .sm\:text-xl,
  #CONTENTS .md\:text-xl {
    font-size: 21.5px !important;
    line-height: 1.4 !important;
  }
  /* 薄いグレー文字を濃いスレートへ引き上げ、老眼でもかすれずくっきり読めるコントラストに */
  #CONTENTS .text-slate-400,
  #CONTENTS .text-slate-500 {
    color: #334155 !important;
  }
  #CONTENTS .text-slate-600 {
    color: #1e293b !important;
  }
  #CONTENTS .text-slate-700 {
    color: #0f172a !important;
  }

  /* プロフィール輪郭テーブル（10%縮小・14pxラベル×15.5px太字値） */
  .senior-profile-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
  }
  .senior-profile-table tr:not(:last-child) th,
  .senior-profile-table tr:not(:last-child) td {
    border-bottom: 1px solid #e2e8f0;
  }
  .senior-profile-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 14px;
    text-align: left;
    width: 180px;
    vertical-align: middle;
    line-height: 1.5;
  }
  .senior-profile-table td {
    background: #ffffff;
    color: #1e293b;
    font-size: 15px !important;
    font-weight: 400 !important;
    padding: 10px 16px;
    line-height: 1.7;
    vertical-align: middle;
  }
  @media (max-width: 640px) {
    .senior-profile-table th,
    .senior-profile-table td {
      display: block;
      width: 100% !important;
    }
    .senior-profile-table th {
      padding: 8px 12px 4px 12px;
      border-bottom: none !important;
    }
    .senior-profile-table td {
      padding: 4px 12px 10px 12px;
    }
  }
  .teacher-card-container {
    container-type: inline-size;
  }
  article.mwg-card {
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }
  article.mwg-card a.card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 1rem;
  }
  article.mwg-card a.card-link:focus-visible {
    outline: none;
  }
  article.mwg-card:has(a.card-link:focus-visible) {
    outline: 3px solid #1e3a8a;
    outline-offset: 2px;
  }
  article.mwg-card:has(a.card-link:hover) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.12);
    border-color: #94a3b8;
  }
  article.mwg-card a:not(.card-link),
  article.mwg-card button,
  article.mwg-card details,
  article.mwg-card summary {
    position: relative;
    z-index: 1;
  }
  .card-grid-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  @container (min-width: 560px) {
    .card-grid-inner {
      grid-template-columns: 168px 1fr;
      align-items: start;
    }
  }
  @media (min-width: 640px) {
    .card-grid-inner {
      grid-template-columns: 168px 1fr;
      align-items: start;
    }
  }
  .avatar-media {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    max-width: 168px;
    border-radius: 0.875rem;
  }

  /* 新デザイン (.mwg-card / .new-seo-guide: /search/new/) 専用キャンバス調整 — 0件時も新デザインを維持 */
  body:has(.mwg-card, .new-seo-guide) #WRAP {
    max-width: 1120px !important;
    margin: 0 auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 16px 96px 16px !important;
  }
  body:has(.mwg-card, .new-seo-guide) #HEADER {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    margin-top: 12px !important;
    margin-bottom: 16px !important;
    padding: 12px 20px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  }
  body:has(.mwg-card, .new-seo-guide) #G-MENU {
    background: #0f172a !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
  }
  body:has(.mwg-card, .new-seo-guide) #G-MENU ul li a {
    background: transparent !important;
    color: rgb(248, 250, 252) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
  }
  body:has(.mwg-card, .new-seo-guide) #G-MENU ul li a:hover {
    background: #1e3a8a !important;
  }
  body:has(.mwg-card, .new-seo-guide) #CONTENTS {
    padding: 0 !important;
    background: transparent !important;
  }
  body:has(.mwg-card, .new-seo-guide) .pan {
    font-size: 12.5px !important;
    color: #475569 !important;
    margin: 0 0 10px 4px !important;
  }
  body:has(.mwg-card, .new-seo-guide) .pan a {
    color: #475569 !important;
    text-decoration: none !important;
  }
  body:has(.mwg-card, .new-seo-guide) .pan a:hover {
    color: #1E3A5F !important;
    text-decoration: underline !important;
  }
  body:has(.mwg-card, .new-seo-guide) h1.page-ttl {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 4px !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.5 !important;
  }
  body:has(.mwg-card, .new-seo-guide) p.lead-text {
    font-size: 12.5px !important;
    color: #475569 !important;
    margin: 0 4px 14px 4px !important;
    line-height: 1.6 !important;
  }

  /* 固定追従バー（.floating-cta-bar）は本番環境と同一表示を維持 */

  /* スマホ表示（〜640px）：左右の余白をギリギリまで減らし、文字をできる限り大きく表示 */
  @media screen and (max-width: 640px) {
    body:has(.mwg-card, .new-seo-guide) #WRAP {
      padding: 0 4px 88px 4px !important;
    }
    #sp-header, #header.sp {
      padding: 8px 6px !important;
    }
    #CONTENTS > .bg-slate-50 {
      padding: 8px 4px !important;
      border-radius: 12px !important;
    }
    #CONTENTS .text-xs,
    #CONTENTS .sm\:text-xs,
    #CONTENTS .md\:text-xs {
      font-size: 14.5px !important;
      line-height: 1.65 !important;
    }
    #CONTENTS .text-sm,
    #CONTENTS .sm\:text-sm,
    #CONTENTS .md\:text-sm {
      font-size: 16px !important;
      line-height: 1.75 !important;
    }
    #CONTENTS .text-base,
    #CONTENTS .sm\:text-base,
    #CONTENTS .md\:text-base {
      font-size: 17.5px !important;
      line-height: 1.78 !important;
    }
    #CONTENTS .text-lg,
    #CONTENTS .sm\:text-lg,
    #CONTENTS .md\:text-lg {
      font-size: 19.5px !important;
      line-height: 1.5 !important;
    }
    #CONTENTS .text-xl,
    #CONTENTS .sm\:text-xl,
    #CONTENTS .md\:text-xl {
      font-size: 21.5px !important;
      line-height: 1.4 !important;
    }
    #box-search.search-panel {
      padding: 7px 8px !important;
      margin-bottom: 10px !important;
      gap: 5px !important;
      box-sizing: border-box !important;
    }
    #box-search .search-nav-tabs {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 4px !important;
      margin-bottom: 0 !important;
    }
    #box-search .search-tab-btn {
      min-width: 0 !important;
      width: 100% !important;
      height: 34px !important;
      padding: 4px 3px !important;
      font-size: 12.5px !important;
      white-space: nowrap !important;
      box-sizing: border-box !important;
    }
    #box-search .search-input-group {
      display: flex !important;
      gap: 5px !important;
    }
    #box-search .search-submit-btn {
      height: 36px !important;
      padding: 0 12px !important;
      font-size: 13px !important;
      flex-shrink: 0 !important;
    }
    /* スマホ表示での写真下ラベル群（文字切れ・枠接触ゼロの最適化） */
    .photo-spec-tabs > *,
    .photo-spec-tabs .photo-spec-sub > * {
      font-size: 13px !important;
      padding: 6px 6px !important;
      line-height: 1.25 !important;
    }
  }

  /* ===== PRESBYOPIA-FRIENDLY TYPOGRAPHY & FONT-SIZE SWITCHER (form.html 完全準拠) ===== */
  .s1-fontsize-pill-group {
    display: inline-flex;
    align-items: center;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 9999px;
    padding: 3px 6px;
    gap: 4px;
    flex-shrink: 0;
  }
  .s1-fontsize-label {
    font-size: 15px !important;
    font-weight: 800;
    color: #78350f;
    padding: 0 6px;
    white-space: nowrap;
  }
  .s1-fontsize-btn {
    border: none;
    background: transparent;
    color: #78350f;
    font-size: 15px !important;
    font-weight: 800;
    padding: 6px 12px;
    min-height: 36px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    line-height: 1.2;
  }
  .s1-fontsize-btn:hover {
    background: #fde68a;
  }
  .s1-fontsize-btn.active {
    background: #b45309;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  @media (max-width: 640px) {
    .s1-fontsize-label {
      font-size: 13px !important;
      padding: 0 4px;
    }
    .s1-fontsize-btn {
      padding: 4px 9px;
      font-size: 13.5px !important;
      min-height: 32px;
    }
  }

  /* Mode 1: Normal (標準) */
  html[data-s1-fontsize="normal"] {
    font-size: 16px !important;
  }

  /* Mode 2: Large (大 — 老眼快適モード：ページ内の全要素を一括拡大) */
  html[data-s1-fontsize="large"] {
    font-size: 19px !important;
  }
  html[data-s1-fontsize="large"] body {
    font-size: 18.5px !important;
    line-height: 1.85 !important;
  }
  html[data-s1-fontsize="large"] #gnav-inner li a {
    font-size: 17px !important;
  }
  html[data-s1-fontsize="large"] #link-teacher,
  html[data-s1-fontsize="large"] #sp-header a,
  html[data-s1-fontsize="large"] #header.sp a {
    font-size: 16px !important;
  }
  html[data-s1-fontsize="large"] .pan,
  html[data-s1-fontsize="large"] .pan a {
    font-size: 16px !important;
  }
  html[data-s1-fontsize="large"] h1.page-ttl {
    font-size: 17px !important;
  }
  html[data-s1-fontsize="large"] p.lead-text,
  html[data-s1-fontsize="large"] p.lead-micro {
    font-size: 17.5px !important;
    line-height: 1.8 !important;
  }
  html[data-s1-fontsize="large"] #CONTENTS .text-xs,
  html[data-s1-fontsize="large"] #CONTENTS .sm\:text-xs,
  html[data-s1-fontsize="large"] #CONTENTS .md\:text-xs,
  html[data-s1-fontsize="large"] #CONTENTS .text-\[11px\] {
    font-size: 17px !important;
    line-height: 1.72 !important;
  }
  html[data-s1-fontsize="large"] #CONTENTS .text-sm,
  html[data-s1-fontsize="large"] #CONTENTS .sm\:text-sm,
  html[data-s1-fontsize="large"] #CONTENTS .md\:text-sm {
    font-size: 19px !important;
    line-height: 1.8 !important;
  }
  html[data-s1-fontsize="large"] #CONTENTS .text-base,
  html[data-s1-fontsize="large"] #CONTENTS .sm\:text-base,
  html[data-s1-fontsize="large"] #CONTENTS .md\:text-base {
    font-size: 21px !important;
    line-height: 1.82 !important;
  }
  html[data-s1-fontsize="large"] #CONTENTS .text-lg,
  html[data-s1-fontsize="large"] #CONTENTS .sm\:text-lg,
  html[data-s1-fontsize="large"] #CONTENTS .md\:text-lg {
    font-size: 23.5px !important;
    line-height: 1.55 !important;
  }
  html[data-s1-fontsize="large"] #CONTENTS .text-xl,
  html[data-s1-fontsize="large"] #CONTENTS .sm\:text-xl,
  html[data-s1-fontsize="large"] #CONTENTS .md\:text-xl {
    font-size: 26px !important;
    line-height: 1.45 !important;
  }
  html[data-s1-fontsize="large"] .senior-profile-table th {
    font-size: 17.5px !important;
  }
  html[data-s1-fontsize="large"] .senior-profile-table td {
    font-size: 19px !important;
  }
  html[data-s1-fontsize="large"] .fluid-h1 {
    font-size: clamp(24px, 21px + 1.2vw, 32px) !important;
  }
  html[data-s1-fontsize="large"] .fluid-h2,
  html[data-s1-fontsize="large"] .section-ttl,
  html[data-s1-fontsize="large"] .box-ttl {
    font-size: clamp(21.5px, 19px + 0.9vw, 27px) !important;
  }
  html[data-s1-fontsize="large"] .photo-spec-tabs > *,
  html[data-s1-fontsize="large"] .photo-spec-tabs .photo-spec-sub > * {
    font-size: 16px !important;
    padding: 7px 8px !important;
  }
  html[data-s1-fontsize="large"] #box-search .search-tab-btn {
    font-size: 17.5px !important;
  }
  @media screen and (max-width: 640px) {
    html[data-s1-fontsize="large"] #box-search .search-tab-btn {
      font-size: 15.5px !important;
    }
  }
  html[data-s1-fontsize="large"] #box-search .search-divider,
  html[data-s1-fontsize="large"] #box-search .search-divider span {
    font-size: 16.5px !important;
  }
  html[data-s1-fontsize="large"] #box-search .keyword-input,
  html[data-s1-fontsize="large"] #box-search .keyword-input::placeholder,
  html[data-s1-fontsize="large"] #box-search .search-submit-btn {
    font-size: 18.5px !important;
  }
  html[data-s1-fontsize="large"] .pill-tag,
  html[data-s1-fontsize="large"] .station-btn-item,
  html[data-s1-fontsize="large"] .pref-chip {
    font-size: 17px !important;
  }
  html[data-s1-fontsize="large"] .area-card-ttl,
  html[data-s1-fontsize="large"] .region-badge-pill {
    font-size: 18.5px !important;
  }
  html[data-s1-fontsize="large"] #CONTENTS h2[style*="font-size"] {
    font-size: 23px !important;
    line-height: 1.5 !important;
  }
  html[data-s1-fontsize="large"] #CONTENTS h3[style*="font-size"],
  html[data-s1-fontsize="large"] #CONTENTS h4[style*="font-size"] {
    font-size: 20.5px !important;
    line-height: 1.5 !important;
  }
  html[data-s1-fontsize="large"] #CONTENTS p[style*="font-size"],
  html[data-s1-fontsize="large"] #CONTENTS div[style*="font-size"]:not([style*="36px"]):not(#toast-notify),
  html[data-s1-fontsize="large"] #CONTENTS span[style*="font-size"]:not(.reassurance-card-icon):not([style*="24px"]):not([style*="11px"]):not([style*="11.5px"]):not([style*="0.875rem"]),
  html[data-s1-fontsize="large"] #CONTENTS a[style*="font-size"],
  html[data-s1-fontsize="large"] #CONTENTS strong[style*="font-size"],
  html[data-s1-fontsize="large"] #CONTENTS dt[style*="font-size"],
  html[data-s1-fontsize="large"] #CONTENTS dd[style*="font-size"],
  html[data-s1-fontsize="large"] #CONTENTS ul[style*="font-size"],
  html[data-s1-fontsize="large"] #CONTENTS ul[style*="font-size"] li,
  html[data-s1-fontsize="large"] .safety-reassurance-box p,
  html[data-s1-fontsize="large"] .safety-reassurance-cards div > span {
    font-size: 18.5px !important;
    line-height: 1.8 !important;
  }
  html[data-s1-fontsize="large"] #CONTENTS span[style*="11px"],
  html[data-s1-fontsize="large"] #CONTENTS span[style*="11.5px"],
  html[data-s1-fontsize="large"] #CONTENTS span[style*="0.875rem"] {
    font-size: 15px !important;
  }
  html[data-s1-fontsize="large"] .safety-reassurance-cards strong:not(.accent-free-text) {
    font-size: 19.5px !important;
  }
  html[data-s1-fontsize="large"] .closing-teacher-cta .trial-email-input,
  html[data-s1-fontsize="large"] .closing-teacher-cta .trial-submit-btn {
    font-size: 20px !important;
    min-height: 62px !important;
  }
  html[data-s1-fontsize="large"] #F-MENU,
  html[data-s1-fontsize="large"] #F-MENU ul li a {
    font-size: 17px !important;
  }
  html[data-s1-fontsize="large"] .f-menu-ttl {
    font-size: 18.5px !important;
  }

  /* Mode 3: Extra Large (特大 — シニア最大視認モード：ページ内の全要素を最大拡大) */
  html[data-s1-fontsize="xlarge"] {
    font-size: 22px !important;
  }
  html[data-s1-fontsize="xlarge"] body {
    font-size: 21px !important;
    line-height: 1.9 !important;
  }
  html[data-s1-fontsize="xlarge"] #gnav-inner li a {
    font-size: 19px !important;
  }
  html[data-s1-fontsize="xlarge"] #link-teacher,
  html[data-s1-fontsize="xlarge"] #sp-header a,
  html[data-s1-fontsize="xlarge"] #header.sp a {
    font-size: 18px !important;
  }
  html[data-s1-fontsize="xlarge"] .pan,
  html[data-s1-fontsize="xlarge"] .pan a {
    font-size: 18px !important;
  }
  html[data-s1-fontsize="xlarge"] h1.page-ttl {
    font-size: 19px !important;
  }
  html[data-s1-fontsize="xlarge"] p.lead-text,
  html[data-s1-fontsize="xlarge"] p.lead-micro {
    font-size: 19.5px !important;
    line-height: 1.85 !important;
  }
  html[data-s1-fontsize="xlarge"] #CONTENTS .text-xs,
  html[data-s1-fontsize="xlarge"] #CONTENTS .sm\:text-xs,
  html[data-s1-fontsize="xlarge"] #CONTENTS .md\:text-xs,
  html[data-s1-fontsize="xlarge"] #CONTENTS .text-\[11px\] {
    font-size: 19.5px !important;
    line-height: 1.78 !important;
  }
  html[data-s1-fontsize="xlarge"] #CONTENTS .text-sm,
  html[data-s1-fontsize="xlarge"] #CONTENTS .sm\:text-sm,
  html[data-s1-fontsize="xlarge"] #CONTENTS .md\:text-sm {
    font-size: 21.5px !important;
    line-height: 1.84 !important;
  }
  html[data-s1-fontsize="xlarge"] #CONTENTS .text-base,
  html[data-s1-fontsize="xlarge"] #CONTENTS .sm\:text-base,
  html[data-s1-fontsize="xlarge"] #CONTENTS .md\:text-base {
    font-size: 24px !important;
    line-height: 1.86 !important;
  }
  html[data-s1-fontsize="xlarge"] #CONTENTS .text-lg,
  html[data-s1-fontsize="xlarge"] #CONTENTS .sm\:text-lg,
  html[data-s1-fontsize="xlarge"] #CONTENTS .md\:text-lg {
    font-size: 26.5px !important;
    line-height: 1.58 !important;
  }
  html[data-s1-fontsize="xlarge"] #CONTENTS .text-xl,
  html[data-s1-fontsize="xlarge"] #CONTENTS .sm\:text-xl,
  html[data-s1-fontsize="xlarge"] #CONTENTS .md\:text-xl {
    font-size: 29.5px !important;
    line-height: 1.48 !important;
  }
  html[data-s1-fontsize="xlarge"] .senior-profile-table th {
    font-size: 20px !important;
  }
  html[data-s1-fontsize="xlarge"] .senior-profile-table td {
    font-size: 21.5px !important;
  }
  html[data-s1-fontsize="xlarge"] .fluid-h1 {
    font-size: clamp(27px, 24px + 1.3vw, 36px) !important;
  }
  html[data-s1-fontsize="xlarge"] .fluid-h2,
  html[data-s1-fontsize="xlarge"] .section-ttl,
  html[data-s1-fontsize="xlarge"] .box-ttl {
    font-size: clamp(24px, 21.5px + 1vw, 30px) !important;
  }
  html[data-s1-fontsize="xlarge"] .photo-spec-tabs > *,
  html[data-s1-fontsize="xlarge"] .photo-spec-tabs .photo-spec-sub > * {
    font-size: 18px !important;
    padding: 8px 8px !important;
  }
  html[data-s1-fontsize="xlarge"] #box-search .search-tab-btn {
    font-size: 19.5px !important;
  }
  @media screen and (max-width: 640px) {
    html[data-s1-fontsize="xlarge"] #box-search .search-tab-btn {
      font-size: 15.5px !important;
      padding: 6px 2px !important;
    }
  }
  html[data-s1-fontsize="xlarge"] #box-search .search-divider,
  html[data-s1-fontsize="xlarge"] #box-search .search-divider span {
    font-size: 18.5px !important;
  }
  html[data-s1-fontsize="xlarge"] #box-search .keyword-input,
  html[data-s1-fontsize="xlarge"] #box-search .keyword-input::placeholder,
  html[data-s1-fontsize="xlarge"] #box-search .search-submit-btn {
    font-size: 21px !important;
  }
  html[data-s1-fontsize="xlarge"] .pill-tag,
  html[data-s1-fontsize="xlarge"] .station-btn-item,
  html[data-s1-fontsize="xlarge"] .pref-chip {
    font-size: 19.5px !important;
  }
  html[data-s1-fontsize="xlarge"] .area-card-ttl,
  html[data-s1-fontsize="xlarge"] .region-badge-pill {
    font-size: 21px !important;
  }
  html[data-s1-fontsize="xlarge"] #CONTENTS h2[style*="font-size"] {
    font-size: 26px !important;
    line-height: 1.5 !important;
  }
  html[data-s1-fontsize="xlarge"] #CONTENTS h3[style*="font-size"],
  html[data-s1-fontsize="xlarge"] #CONTENTS h4[style*="font-size"] {
    font-size: 23px !important;
    line-height: 1.5 !important;
  }
  html[data-s1-fontsize="xlarge"] #CONTENTS p[style*="font-size"],
  html[data-s1-fontsize="xlarge"] #CONTENTS div[style*="font-size"]:not([style*="36px"]):not(#toast-notify),
  html[data-s1-fontsize="xlarge"] #CONTENTS span[style*="font-size"]:not(.reassurance-card-icon):not([style*="24px"]):not([style*="11px"]):not([style*="11.5px"]):not([style*="0.875rem"]),
  html[data-s1-fontsize="xlarge"] #CONTENTS a[style*="font-size"],
  html[data-s1-fontsize="xlarge"] #CONTENTS strong[style*="font-size"],
  html[data-s1-fontsize="xlarge"] #CONTENTS dt[style*="font-size"],
  html[data-s1-fontsize="xlarge"] #CONTENTS dd[style*="font-size"],
  html[data-s1-fontsize="xlarge"] #CONTENTS ul[style*="font-size"],
  html[data-s1-fontsize="xlarge"] #CONTENTS ul[style*="font-size"] li,
  html[data-s1-fontsize="xlarge"] .safety-reassurance-box p,
  html[data-s1-fontsize="xlarge"] .safety-reassurance-cards div > span {
    font-size: 21px !important;
    line-height: 1.85 !important;
  }
  html[data-s1-fontsize="xlarge"] #CONTENTS span[style*="11px"],
  html[data-s1-fontsize="xlarge"] #CONTENTS span[style*="11.5px"],
  html[data-s1-fontsize="xlarge"] #CONTENTS span[style*="0.875rem"] {
    font-size: 17px !important;
  }
  html[data-s1-fontsize="xlarge"] .safety-reassurance-cards strong:not(.accent-free-text) {
    font-size: 22px !important;
  }
  html[data-s1-fontsize="xlarge"] .closing-teacher-cta .trial-email-input,
  html[data-s1-fontsize="xlarge"] .closing-teacher-cta .trial-submit-btn {
    font-size: 22px !important;
    min-height: 68px !important;
  }
  html[data-s1-fontsize="xlarge"] #F-MENU,
  html[data-s1-fontsize="xlarge"] #F-MENU ul li a {
    font-size: 19px !important;
  }
  html[data-s1-fontsize="xlarge"] .f-menu-ttl {
    font-size: 21px !important;
  }

  /* 固定バーによるキーボードフォーカス遮蔽防止 (WCAG 2.4.11) */
  html {
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  /* 旧デザインカード (.list-teacher-card / .detail-teacher-card) 向け 大・特大 文字拡大対応 (A-6) */
  body:not(:has(.mwg-card, .new-seo-guide)) h1.page-ttl {
    font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem) !important;
    line-height: 1.42 !important;
  }
  html[data-s1-fontsize="large"] body:not(:has(.mwg-card, .new-seo-guide)) h1.page-ttl {
    font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem) !important;
    line-height: 1.42 !important;
  }
  html[data-s1-fontsize="xlarge"] body:not(:has(.mwg-card, .new-seo-guide)) h1.page-ttl {
    font-size: clamp(1.55rem, 1.3rem + 1.1vw, 1.95rem) !important;
    line-height: 1.42 !important;
  }
  html[data-s1-fontsize="large"] .list-teacher-card .list-teacher-name { font-size: 22px !important; }
  html[data-s1-fontsize="large"] .detail-spec-pill-table .pill-cell-header { font-size: 14.5px !important; }
  html[data-s1-fontsize="large"] .detail-spec-pill-table .pill-cell-body,
  html[data-s1-fontsize="large"] .list-teacher-card .pill-tag-feat,
  html[data-s1-fontsize="large"] .list-teacher-card .spec-label,
  html[data-s1-fontsize="large"] .list-teacher-card .spec-val,
  html[data-s1-fontsize="large"] .list-teacher-card .list-highlights-item,
  html[data-s1-fontsize="large"] .list-teacher-card .list-highlights-text,
  html[data-s1-fontsize="large"] .ai-teacher-highlights-card .highlights-point-text,
  html[data-s1-fontsize="large"] .list-teacher-card .station-box-content,
  html[data-s1-fontsize="large"] .list-teacher-card .message-box-content,
  html[data-s1-fontsize="large"] .detail-profile-grid .profile-grid-th,
  html[data-s1-fontsize="large"] .detail-profile-grid .profile-grid-td,
  html[data-s1-fontsize="large"] .main-table th,
  html[data-s1-fontsize="large"] .main-table td,
  html[data-s1-fontsize="large"] .box-voice .voice-comment { font-size: 17.5px !important; line-height: 1.7 !important; }
  html[data-s1-fontsize="large"] .list-teacher-card .list-highlights-title,
  html[data-s1-fontsize="large"] .ai-teacher-highlights-card .highlights-header-title,
  html[data-s1-fontsize="large"] .list-teacher-card .btn-card-detail,
  html[data-s1-fontsize="large"] .list-teacher-card .btn-card-trial { font-size: 19px !important; height: auto !important; min-height: 52px !important; }
  html[data-s1-fontsize="xlarge"] .list-teacher-card .list-teacher-name { font-size: 24.5px !important; }
  html[data-s1-fontsize="xlarge"] .detail-spec-pill-table .pill-cell-header { font-size: 16px !important; }
  html[data-s1-fontsize="xlarge"] .detail-spec-pill-table .pill-cell-body,
  html[data-s1-fontsize="xlarge"] .list-teacher-card .pill-tag-feat,
  html[data-s1-fontsize="xlarge"] .list-teacher-card .spec-label,
  html[data-s1-fontsize="xlarge"] .list-teacher-card .spec-val,
  html[data-s1-fontsize="xlarge"] .list-teacher-card .list-highlights-item,
  html[data-s1-fontsize="xlarge"] .list-teacher-card .list-highlights-text,
  html[data-s1-fontsize="xlarge"] .ai-teacher-highlights-card .highlights-point-text,
  html[data-s1-fontsize="xlarge"] .list-teacher-card .station-box-content,
  html[data-s1-fontsize="xlarge"] .list-teacher-card .message-box-content,
  html[data-s1-fontsize="xlarge"] .detail-profile-grid .profile-grid-th,
  html[data-s1-fontsize="xlarge"] .detail-profile-grid .profile-grid-td,
  html[data-s1-fontsize="xlarge"] .main-table th,
  html[data-s1-fontsize="xlarge"] .main-table td,
  html[data-s1-fontsize="xlarge"] .box-voice .voice-comment { font-size: 19.5px !important; line-height: 1.75 !important; }
  html[data-s1-fontsize="xlarge"] .list-teacher-card .list-highlights-title,
  html[data-s1-fontsize="xlarge"] .ai-teacher-highlights-card .highlights-header-title,
  html[data-s1-fontsize="xlarge"] .list-teacher-card .btn-card-detail,
  html[data-s1-fontsize="xlarge"] .list-teacher-card .btn-card-trial { font-size: 21px !important; height: auto !important; min-height: 56px !important; }
  @media screen and (max-width: 640px) {
    html[data-s1-fontsize="large"] .detail-profile-grid,
    html[data-s1-fontsize="xlarge"] .list-teacher-card .mini-spec-grid,
    html[data-s1-fontsize="xlarge"] .detail-profile-grid { grid-template-columns: 1fr !important; }
    html[data-s1-fontsize="large"] .detail-profile-grid .profile-grid-item,
    html[data-s1-fontsize="xlarge"] .detail-profile-grid .profile-grid-item { flex-direction: column !important; }
    html[data-s1-fontsize="large"] .detail-profile-grid .profile-grid-th,
    html[data-s1-fontsize="xlarge"] .detail-profile-grid .profile-grid-th {
      width: 100% !important;
      border-right: none !important;
      border-bottom: 1px solid #e2e8f0 !important;
      padding: 7px 10px !important;
    }
  }
  /* 旧デザイン画面における Tailwind Preflight リセットからの復元（箇条書き・リンク下線・非リンクピル区別・強調色） */
  body:not(:has(.mwg-card, .new-seo-guide)) #CONTENTS ul:not([class]) {
    list-style: disc;
  }
  body:not(:has(.mwg-card, .new-seo-guide)) .detail-spec-pill-table .pill-cell-body.highlight {
    color: #C83E35 !important;
  }
  body:not(:has(.mwg-card, .new-seo-guide)) span.pill-tag:not(.current) {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
    cursor: default !important;
  }
  body:not(:has(.mwg-card, .new-seo-guide)) .station-box-content a,
  body:not(:has(.mwg-card, .new-seo-guide)) .main-table td a,
  body:not(:has(.mwg-card, .new-seo-guide)) .detail-profile-grid .profile-grid-td a:not(.pill-tag) {
    color: #1E3A5F;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  body:not(:has(.mwg-card, .new-seo-guide)) .station-box-content a:hover,
  body:not(:has(.mwg-card, .new-seo-guide)) .main-table td a:hover,
  body:not(:has(.mwg-card, .new-seo-guide)) .detail-profile-grid .profile-grid-td a:not(.pill-tag):hover {
    color: #C83E35;
    text-decoration: underline;
  }
  button.map-cell {
    border: none;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
  }
  html[data-s1-fontsize="large"] .wdd-tc-title { font-size: 20px !important; }
  html[data-s1-fontsize="large"] .wdd-tc-card-ttl,
  html[data-s1-fontsize="large"] .wdd-detail-cluster-title { font-size: 18px !important; }
  html[data-s1-fontsize="large"] .wdd-tc-card-desc,
  html[data-s1-fontsize="large"] .wdd-tc-btn,
  html[data-s1-fontsize="large"] .wdd-cluster-pill,
  html[data-s1-fontsize="large"] .wdd-detail-cluster-card-ttl { font-size: 15.5px !important; }
  html[data-s1-fontsize="large"] .wdd-tc-chip,
  html[data-s1-fontsize="large"] .wdd-detail-cluster-link { font-size: 14.5px !important; }
  html[data-s1-fontsize="large"] .wdd-tc-badge,
  html[data-s1-fontsize="large"] .wdd-tc-eyebrow { font-size: 13px !important; }
  html[data-s1-fontsize="large"] #box-search .search-tab-btn,
  html[data-s1-fontsize="large"] #box-search .keyword-input,
  html[data-s1-fontsize="large"] #box-search .search-submit-btn {
    font-size: 15.5px !important;
    height: auto !important;
    min-height: 40px !important;
  }
  html[data-s1-fontsize="xlarge"] .wdd-tc-title { font-size: 21.5px !important; }
  html[data-s1-fontsize="xlarge"] .wdd-tc-card-ttl,
  html[data-s1-fontsize="xlarge"] .wdd-detail-cluster-title { font-size: 19.5px !important; }
  html[data-s1-fontsize="xlarge"] .wdd-tc-card-desc,
  html[data-s1-fontsize="xlarge"] .wdd-tc-btn,
  html[data-s1-fontsize="xlarge"] .wdd-cluster-pill,
  html[data-s1-fontsize="xlarge"] .wdd-detail-cluster-card-ttl { font-size: 17px !important; }
  html[data-s1-fontsize="xlarge"] .wdd-tc-chip,
  html[data-s1-fontsize="xlarge"] .wdd-detail-cluster-link { font-size: 16px !important; }
  html[data-s1-fontsize="xlarge"] .wdd-tc-badge,
  html[data-s1-fontsize="xlarge"] .wdd-tc-eyebrow { font-size: 14px !important; }
  html[data-s1-fontsize="xlarge"] #box-search.search-panel {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html[data-s1-fontsize="xlarge"] #box-search .search-nav-tabs {
    width: 100% !important;
  }
  html[data-s1-fontsize="xlarge"] #box-search .search-tab-btn {
    flex: 1 1 0% !important;
    font-size: 17px !important;
    height: auto !important;
    min-height: 44px !important;
  }
  html[data-s1-fontsize="xlarge"] #box-search form {
    flex: none !important;
    width: 100% !important;
  }
  html[data-s1-fontsize="xlarge"] #box-search .keyword-input,
  html[data-s1-fontsize="xlarge"] #box-search .search-submit-btn {
    font-size: 17.5px !important;
    height: auto !important;
    min-height: 44px !important;
  }
