@charset "UTF-8";

/* ==========================================================================
   Variables (Unified & Updated)
   ========================================================================== */
:root {
  /* Brand & UI Colors */
  --navy:      #0B2D52;
  --navy-mid:  #0F3D70;
  --blue-900:  #0B2D52;
  --blue-800:  #0F3D70;
  --blue-700:  #1A6FC4;
  --blue-600:  #1A6FC4;
  --blue-500:  #2E86DE;
  --blue-400:  #5a90d4;
  --blue-300:  #96c0e8;
  --blue-200:  #C5DCF5;
  --blue-100:  #daeaf8;
  --blue-50:   #E8F2FC;
  --blue:      #1A6FC4;
  --blue-lt:   #2E86DE;
  
  --ice:       #E8F2FC;
  --ice-dark:  #C5DCF5;
  --gold:      #C89A2E;
  --gold-lt:   #F0C040;
  
  --gray-900:  #0D1F35;
  --gray-800:  #1a2e45;
  --gray-700:  #3A4F6A;
  --gray-600:  #4a5f7a;
  --gray-500:  #6B82A0;
  --gray-400:  #9ca0ae;
  --gray-300:  #c4c7d0;
  --gray-200:  #D4E3F5;
  --gray-100:  #eef4fc;
  --gray-50:   #F4F8FD;
  
  --white:     #ffffff;
  --success:   #1a8a5a;
  --success-bg:#e8f7f1;
  --action:    #057AFF;
  --action-dark:#0062d4;
  --warning:   #c07a00;
  --warning-bg:#fef8e6;
  --highlight: #fff3cd;
  --highlight-border:#f59e0b;
  --red:   #ff0000;    
  
  --text-dk:   #0D1F35;
  --text-md:   #3A4F6A;
  --text-lt:   #6B82A0;
  --border:    #D4E3F5;
  --bg-off:    #F4F8FD;
  
   --navy-dark:#153e77;
   --blue-accent:#1f5fae;
   --blue-light:#eaf2fb;
   --text:#2b3542;
   --text-sub:#6b7684;
   --link:#1a6fc4;
  
  /* Typography & Layout */
  --font: 'Noto Sans JP', sans-serif;
  --mono: 'DM Sans', 'Noto Sans JP', sans-serif;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(10,40,90,.08);
  --shadow-md: 0 8px 32px rgba(10,40,90,.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);

  /* ── 固定列幅（ここだけ変えれば全体に反映） ── */
  --w1: 40px;   /* 比較表チェック */
  --w2: 48px;   /* 模式図 */
  --w3: 160px;  /* 保険会社 */
  --w4: 240px;  /* 保険商品 */
  --w60: 60px;
  --w64: 64px;

  /* leftオフセット（累積） */
  --l1: 0px;
  --l2: calc(var(--l1) + var(--w1));              /* 44 */
  --l3: calc(var(--l2) + var(--w60));              /* 96 */
  --l4: calc(var(--l3) + var(--w3));              /* 246 */
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 13px; overflow-x: hidden !important; }

body {
  font-family: var(--font);
  color: var(--text-dk);
  background: var(--bg-off);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
}

input, select, button, textarea { font-family: var(--font); font-size: 13px; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.main-content { background: var(--bg-off); }

.page-inner { max-width: 1100px; margin: 0 auto; padding: 20px 24px 48px; display: grid; grid-template-columns: 1fr 260px; gap: 20px; align-items: start; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {  background: linear-gradient(90deg, #0F3D70 0%, #1A6FC4 100%); 
    border-bottom: 1px solid rgba(255,255,255,.1); 
    box-shadow: 0 2px 12px rgba(10,40,90,.2); 
    position: fixed; /* 画面に対して固定する */
    top: 0;          /* 画面の一番上に配置 */
    left: 0;         /* 画面の左端に配置 */
    width: 100%;     /* 横幅を画面いっぱいに広げる */
    z-index: 1000;   /* 他のコンテンツの下に隠れないように最前面に表示 */
}
.site-header_stg {  
    background: linear-gradient(90deg, #c71585 0%, #dc143c 100%); 
    border-bottom: 1px solid rgba(255,255,255,.1); 
    box-shadow: 0 2px 12px rgba(10,40,90,.2); 
    position: fixed; /* 画面に対して固定する */
    top: 0;          /* 画面の一番上に配置 */
    left: 0;         /* 画面の左端に配置 */
    width: 100%;     /* 横幅を画面いっぱいに広げる */
    z-index: 1000;   /* 他のコンテンツの下に隠れないように最前面に表示 */
}
.header-inner { display: flex; align-items: center; height: 56px; gap: 0; padding: 0 20px; }

.logo { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    flex-shrink: 0; 
    padding-right: 20px; 
    /*border-right: 1px solid rgba(255,255,255,.2);*/
    margin-right: 4px; 
    text-decoration: none; }

.logo-mark { width: 30px; height: 30px; }

.logo-name { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700; color: var(--white); line-height: 1; letter-spacing: -.01em; }

.main-nav { 
    display: flex; 
    align-items: center; 
    flex: 1;
    }
div.row.actions{
    text-align:center;
    width:100%
}
.nav-link { color: rgba(255,255,255,.75); padding: 0 14px; height: 56px; display: flex; align-items: center; font-size: 13px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: all var(--transition); text-decoration: none; }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-link.active { color: var(--white); font-weight: 700; border-bottom-color: rgba(255,255,255,.9); }
.nav-link.admin { color: #fbbf24; }

.nav-spacer { flex: 1; }

.nav-user { color: rgba(255,255,255,.75); font-size: 12px; padding: 0 12px; display: flex; align-items: center; gap: 7px; cursor: pointer; }

.nav-avatar { width: 26px; height: 26px; background: var(--blue-600); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--white); font-weight: 600; }

.nav-logout { color: #0F3D70; font-size: 13px; font-weight: 700; padding: 5px 14px; border: none; border-radius: 14px; cursor: pointer; margin-left: 10px; background: #E8F2FC; box-shadow: 0 1px 4px rgba(0,0,0,.18); letter-spacing: .04em; transition: background .15s, box-shadow .15s, transform .1s; text-decoration: none;white-space:nowrap }
.nav-logout:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.22); transform: translateY(-1px); color: #0a2d56; }

.hamburger-btn { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; margin-left: auto; z-index: 1001; margin-left:15px;}

.hamburger-line { display: block; width: 24px; height: 2px; margin: 5px 0; background-color: #ffffff; transition: all 0.3s ease-in-out; }

/* Legacy topnav for compatibility */
.app { background: var(--gray-50); }

.topnav { background: linear-gradient(90deg, #0F3D70 0%, #1A6FC4 100%); border-bottom: none; display: flex; align-items: center; height: 48px; padding: 0 16px; gap: 0; }

.topnav-logo { 
    display: flex; 
    align-items: center; 
    gap: 7px; 
    color: #fff; 
    font-size: 15px; 
    font-weight: 700; 
    padding-right: 22px; 
    border-right: 1px solid rgba(255,255,255,.2); 
    margin-right: 2px; 
    white-space: nowrap; }

.nav-item { color: rgba(255,255,255,.78); padding: 0 14px; height: 48px; display: flex; align-items: center; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: background .15s, color .15s; }
.nav-item.admin { color: #fbbf24; }
.nav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-item.active { color: #fff; font-weight: 600; border-bottom-color: rgba(255,255,255,.9); }

/* ==========================================================================
   Footer
   ========================================================================== */
.common-footer { background: var(--white); border-top: 1px solid var(--gray-200); padding: 40px 0 20px; margin-top: auto !important; color: var(--gray-600); margin-left: -24px; margin-right: -24px; margin-bottom: 0; }

.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.footer-content { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }

.footer-brand { flex-shrink: 0; }

.footer-logo { font-size: 18px; font-weight: 700; color: var(--blue-700); margin-bottom: 4px; }

.footer-sub { font-size: 10px; font-family: var(--mono); letter-spacing: 0.05em; color: var(--gray-400); }

.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { text-decoration: none; color: var(--gray-600); font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue-600); text-decoration: underline; }

.footer-bottom { border-top: 1px solid var(--gray-100); padding-top: 20px; text-align: center; }

.copyright { font-size: 10px; font-family: var(--mono); color: var(--gray-400); }

/* ==========================================================================
   Cards & Common Elements
   ========================================================================== */
.search-layout { display: grid; grid-template-columns: 1fr 240px; gap: 0; padding: 16px; }

.search-main { padding-right: 16px; }

.form-card { 
    background: var(--white); 
    border: 1px solid var(--border); 
    border-top: none; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-sm); 
    margin-bottom: 14px;
    margin-right:auto;
    margin-left:auto;
    overflow: hidden; 
    position: relative; }

.form-card::before, .grad-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #0F3D70 0%, #1A6FC4 100%); border-radius: var(--radius) var(--radius) 0 0; z-index: 1; }

.form-card-header { background: transparent; border-bottom: 1px solid var(--gray-200); padding: 14px 16px 10px; display: flex; align-items: center; gap: 10px; }

.step-badge { display: inline-block; width: 4px; height: 20px; background: linear-gradient(180deg, #0F3D70 0%, #1A6FC4 100%); border-radius: 2px; flex-shrink: 0; }

.form-card-title { font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: .02em; }

.form-card-body { padding: 12px 14px; }

.card-footer { padding: 10px 16px; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; background: var(--gray-50); }

/* Document Shell Elements */
.doc-header { max-width: 1160px; margin: 0 auto 44px; text-align: center; }

.doc-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 8px; }

.doc-title { font-size: 26px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; letter-spacing: -.02em; }

.doc-sub { font-size: 13px; color: var(--gray-600); }

.doc-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

.pill { background: var(--white); border: 1px solid var(--gray-200); border-radius: 99px; padding: 3px 12px; font-size: 10px; color: var(--gray-600); font-family: var(--mono); letter-spacing: .06em; }

.screen-section { max-width: 1160px; margin: 0 auto 72px; }

.screen-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.screen-num { background: var(--blue-600); color: var(--white); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 3px 9px; border-radius: 3px; }

.screen-name { font-size: 17px; font-weight: 600; color: var(--gray-900); }

.screen-desc { font-size: 11px; color: var(--gray-500); margin-left: auto; }

.browser { border-radius: 8px 8px 6px 6px; overflow: clip; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-300); }

.browser-chrome { background: #e8eaed; padding: 9px 14px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--gray-300); }

.b-dots { display: flex; gap: 5px; }

.b-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }

.b-url { flex: 1; background: var(--white); border: 1px solid var(--gray-300); border-radius: 3px; padding: 3px 10px; font-family: var(--mono); font-size: 10px; color: var(--gray-500); }

.notes { background: #fffbeb; border-left: 3px solid #f59e0b; padding: 10px 14px; margin-top: 10px; display: flex; gap: 20px; flex-wrap: wrap; }

.note { font-size: 10px; color: #92400e; font-family: var(--mono); }
.note::before { content: '▸ '; }

/* ==========================================================================
   Form Fields & Controls
   ========================================================================== */
.field-row { 
    display: grid; 
    grid-template-columns: 140px 1fr; 
    align-items: start; 
    padding: 9px 0; 
    border-bottom: 1px solid var(--gray-100); 
    gap: 12px; }
.field-row:last-child { border-bottom: none; }
.field-row_flex{
    display: flex;
    padding: 9px 0; 
}
.field-label { font-size: 13px; color: var(--text-md); font-weight: 600; padding-top: 6px; display: flex; align-items: flex-start; gap: 4px; }
.field-label.req::after { content: ' *'; color: #dc2626; font-size: 9px; }

.field-input { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; }

.inp-unit { font-size: 13px; color: var(--text-lt); }

.field-note { font-size: 11px; color: var(--text-lt); margin-top: 4px; }

.inp-note { font-size: 10px; color: var(--gray-400); }

.inp { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 13px; color: var(--text-dk); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); height: 36px; }
.inp:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,111,196,.1); }
.inp.w50 { width: 56px; } 
.inp.w62 { width: 62px; } 
.inp.w70 { width: 72px; } 
.inp.w90 { width: 96px; } 
.inp.w110 { width: 110px; } 
.inp.w120 { width: 120px; } 
.inp.w130 { width: 130px; } 
.inp.w160 { width: 160px; } 
.inp.w200 { width: 200px; } 
.inp.w220 { width: 220px; }

.toggle-mode { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; margin-bottom: 8px; }

.toggle-mode-btn { padding: 6px 16px; font-size: 13px; font-weight: 500; background: none; border: none; cursor: pointer; color: var(--text-md); transition: all var(--transition); }
.toggle-mode-btn.on { background: var(--blue); color: var(--white); }
.toggle-mode-btn:hover:not(.on) { background: var(--ice); }

.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }

.radio-item { display: flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; color: var(--text-dk); }
.radio-item input[type=radio] { accent-color: var(--blue); width: 14px; height: 14px; }

.check-group { display: flex; gap: 10px; flex-wrap: wrap; }

.check-item { display: flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; color: var(--text-dk); }
.check-item input[type=checkbox] { accent-color: var(--blue); width: 13px; height: 13px; }

.link-sm { font-size: 13px; color: var(--blue); cursor: pointer; text-decoration: underline; }
.link-sm:hover { color: var(--navy); }

.toggle-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }

.toggle-switch-track { width: 44px; height: 24px; border-radius: 12px; background: var(--blue); position: relative; transition: background var(--transition); flex-shrink: 0; cursor: pointer; }
.toggle-switch-track.on { background: var(--blue); }

.toggle-switch-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform var(--transition); }
.toggle-switch-track.on .toggle-switch-thumb { transform: translateX(20px); }

.toggle-switch-label { font-size: 13px; font-weight: 600; color: var(--text-md); }
.toggle-switch-label .state { color: var(--blue); }

.toggle-sm { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }

.toggle-sm-track { width: 28px; height: 15px; border-radius: 8px; background: var(--border); position: relative; transition: background var(--transition); flex-shrink: 0; }
.toggle-sm-track.on { background: var(--blue-400); }

.toggle-sm-thumb { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform var(--transition); }
.toggle-sm-track.on .toggle-sm-thumb { transform: translateX(13px); }

.toggle-sm-label { font-size: 10px; color: var(--text-lt); }

.btn-next { 
    background: var(--action); 
    color: var(--white); 
    border: none; 
    padding: 8px 22px; 
    border-radius: var(--radius-sm); 
    font-size: 13px; font-weight: 600; 
    cursor: pointer; transition: 
    all var(--transition); 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    }
.btn-next:hover {
    background: var(--action-dark);
     transform: translateY(-1px); }
.btn-next.outline { 
    background: var(--white); 
    color: var(--blue); 
    border: 1.5px solid var(--blue-400); }
.btn-next.outline:hover { 
    background: var(--ice); 
    transform: translateY(-1px); }
    
.btn-next_mg { 
    background: var(--action); 
    color: var(--white); 
    border: none; 
    padding: 6px 20px; 
    border-radius: var(--radius-sm); 
    font-size: 13px; font-weight: 600; 
    cursor: pointer; transition: 
    all var(--transition); 
    /*display: flex; */
    align-items: center; 
    gap: 4px; 
    margin: 3px 0 3px 0;
    }
.btn-next_mg:hover {
    background: var(--action-dark);
     transform: translateY(-1px); }
.btn-next_mg.outline { 
    background: var(--white); 
    color: var(--blue); 
    border: 1.5px solid var(--blue-400); }
.btn-next_mg.outline:hover { 
    background: var(--ice); 
    transform: translateY(-1px); }
.btn-next_min { 
    background: var(--action); 
    color: var(--white); 
    border: none; 
    padding: 1px 4px; 
    border-radius: var(--radius-sm); 
    font-size: 13px; font-weight: 600; 
    cursor: pointer; transition: 
    all var(--transition); 
    /*display: flex; */
    align-items: center; 
    gap: 4px; 
    margin: 3px 0 3px 0;
    }
.btn-next_min:hover {
    background: var(--action-dark);
     transform: translateY(-1px); }
.btn-next_min.outline { 
    background: var(--white); 
    color: var(--blue); 
    border: 1.5px solid var(--blue-400); }
.btn-next_min.outline:hover { 
    background: var(--ice); 
    transform: translateY(-1px); } 
.file-button {
  display: inline-block;
  padding: 6px 20px;
  border: 1.5px solid var(--blue-400);
  border-radius: var(--radius-sm);
  color: var(--blue);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 3px 0 3px 0;
}
.file-button:hover { 
    background: var(--ice); 
    transform: translateY(-1px); }


.file-button input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
span#file-name{
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}
.search-action { padding: 16px 0 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

.search-action-area { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 12px 14px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.btn-search { 
    background: linear-gradient(90deg, #0F3D70 0%, #1A6FC4 100%); 
    color: var(--white); border: none; padding: 10px 32px; border-radius: var(--radius-sm); 
    font-size: 18px; 
    font-weight: 900; 
    cursor: pointer; 
    letter-spacing: .04em; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    transition: all var(--transition); 
    box-shadow: 0 4px 12px rgba(26,111,196,.3); }
.btn-search_font12 { 
    background: linear-gradient(90deg, #0F3D70 0%, #1A6FC4 100%); 
    color: var(--white); border: none; padding: 10px 32px; border-radius: var(--radius-sm); 
    font-size: 12px; 
    font-weight: 900; 
    cursor: pointer; 
    letter-spacing: .04em; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    transition: all var(--transition); 
    box-shadow: 0 4px 12px rgba(26,111,196,.3); }
.btn-search:hover {
    transform: translateY(-1px); 
    box-shadow: 0 6px 20px rgba(26,111,196,.4); }
.btn-search svg { width: 15px; height: 15px; }

.ins-all-ctrl { padding: 8px 16px; border-bottom: 1px solid var(--gray-100); display: flex; gap: 12px; align-items: center; }

.insurer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 16px; }

.ins-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dk); cursor: pointer; padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); transition: all var(--transition); }
.ins-check input { accent-color: var(--blue); width: 13px; height: 13px; flex-shrink: 0; }
.ins-check:hover, .ins-check.checked { background: var(--ice); border-color: var(--blue-400); }

.section-ctrl { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }

.section-ctrl-label { font-size: 10px; color: var(--gray-500); font-weight: 500; }

.dynamic-hint { font-size: 10px; color: var(--blue-600); background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: 3px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 4px; }

.pulse { display: inline-block; width: 6px; height: 6px; background: var(--blue-500); border-radius: 50%; animation: pulse 1.4s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

.age-display { font-weight: 700; color: var(--blue); font-size: 13px; }

/* ==========================================================================
   Aside & Cart (SCREEN 1, 2)
   ========================================================================== */
.aside-card { background: var(--white); border: 1px solid var(--border); border-top: none; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; position: sticky; top: 72px; position: relative; }
.aside-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #0F3D70 0%, #1A6FC4 100%); z-index: 1; }

.aside-header { padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--gray-50); display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-dk); }

.aside-body { padding: 16px 14px; }

.cart-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; position: sticky; top: 16px; }

.cart-header { background: var(--gray-800); color: var(--white); padding: 9px 12px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 5px; }

.cart-body { padding: 14px 12px; }

.cart-empty { text-align: center; color: var(--text-lt); font-size: 11px; padding: 20px 0; line-height: 2; }

.cart-empty-icon { font-size: 28px; margin-bottom: 8px; display: block; opacity: .4; }

.cart-section-label { font-size: 9px; color: var(--gray-500); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; margin-top: 10px; }

.cart-field { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--gray-100); font-size: 10px; }

.cart-key { color: var(--gray-500); }

.cart-val { color: var(--gray-800); font-weight: 500; font-family: var(--mono); }

.cart-view-btn { width: 100%; background: var(--action); color: var(--white); border: none; padding: 7px; border-radius: var(--radius-sm); font-size: 11px; cursor: pointer; margin-top: 10px; }

/* ==========================================================================
   Search Results List (SCREEN 2)
   ========================================================================== */
.cond-bar { background: var(--blue-50); border-bottom: 1px solid var(--blue-100); padding: 8px 16px; display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.cond-bar { gap: 0; }

.cond-item { display: flex; flex-direction: column; padding: 0 12px; border-right: 1px solid var(--blue-200); }
.cond-item:first-child { padding-left: 0; }
.cond-item:last-child { border-right: none; }
.cond-item:last-of-type { border-right: none; }

.cond-key { font-size: 9px; color: var(--blue-700); font-family: var(--mono); letter-spacing: .06em; margin-bottom: 1px; }
.cond-key { font-size: 11px; color: #0F3D70; font-weight: 600; letter-spacing: .04em; margin-bottom: 2px; text-transform: none; }
.cond-key { font-size: 12px; color: #0F3D70; font-weight: 600; letter-spacing: .04em; margin-bottom: 2px; }

.cond-val { font-size: 13px; font-weight: 600; color: var(--gray-900); }
.cond-val { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.cond-val { font-size: 13px; font-weight: 700; color: var(--gray-900); }

.cond-change-btn { background: var(--white); border: 1px solid var(--blue-400); color: var(--blue-600); padding: 6px 14px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; font-weight: 700; white-space: nowrap; margin-left: 24px; }

.compare-float { background: var(--gray-100); border-bottom: 1px solid var(--gray-300); color: var(--white); padding: 7px 16px; display: flex; align-items: center; gap: 10px; font-size: 11px; }

.cf-label { font-size: 13px; font-weight: 600; color: var(--gray-700); margin-right: 6px;}

.cf-chip { background: var(--white); border: 1px solid var(--blue-300); color: var(--blue-700); padding: 3px 10px; border-radius: 99px; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; }
.cf-chip { display: inline-flex; align-items: center; gap: 6px; background: #e8f2fc; border: 1px solid #96c0e8; color: #0F3D70; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }

.cf-empty { color: var(--gray-400); font-size: 11px; }

.cf-spacer { flex: 1; }

.cf-btn { background: var(--action); color: var(--white); border: none; padding: 6px 16px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; cursor: pointer; transition: transform .15s; }

.cf-chip-del { background: none; border: none; color: var(--blue-400); cursor: pointer; font-size: 13px; line-height: 1; padding: 0 2px; transition: color .1s; }
.cf-chip-del:hover { color: #dc2626; }
.cf-chip-del { background: none; border: none; color: #5a9fd4; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

#mozukiBar { animation: slideDown .2s ease; }

.result-toolbar { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 8px 16px; display: flex; align-items: center; gap: 10px; }
.result-toolbar { background: var(--white); border-bottom: 2px solid var(--blue-200); padding: 8px 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.result-count { font-size: 13px; color: var(--gray-700); }
.result-count strong { color: var(--blue-700); font-size: 13px; }

.rtb-spacer { flex: 1; }

.sort-label { font-size: 13px; color: var(--gray-900); white-space: nowrap; font-weight: 600; }

.sort-select { border: 1px solid var(--gray-300); border-radius: 4px; padding: 3px 6px; font-size: 13px; font-weight: 600; color: var(--gray-900); background: var(--white); height: 26px; cursor: pointer; margin-right: 4px; }

.yr-label { font-size: 13px; color: var(--gray-900); white-space: nowrap; font-weight: 600; }

.yr-input { border: 1px solid var(--gray-300); border-radius: 4px; padding: 3px 6px; width: 44px; font-size: 13px; font-weight: 600; text-align: center; height: 26px; background: var(--white); }
.ex-input { border: 1px solid var(--gray-300); border-radius: 4px; padding: 3px 6px; width: 60px; font-size: 13px; font-weight: 600; text-align: center; height: 26px; background: var(--white); }

.yr-btn { background: var(--white); color: var(--blue-600); border: 1px solid var(--blue-400); padding: 4px 12px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; height: 30px; font-weight: 700; }
.yr-btn:hover { background: var(--blue-50); }

.tb-btn.green { background: #057AFF; color: var(--white); border-color: #057AFF; }
.tb-btn { border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-700); padding: 4px 12px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; white-space: nowrap; height: 30px; font-weight: 700; font-family: var(--font); }
.tb-btn:hover { background: var(--gray-50); }
.tb-btn.primary { background: #1d6f42; color: #fff; border-color: #1d6f42; font-weight: 700; }
.tb-btn.primary:hover { background: #155e38; }

.btn-pulse { animation: pulseBtn 1s ease infinite; }

.btn-pulse-mozuki { animation: pulseBtn .9s ease infinite; }

@keyframes pulseBtn { 0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,.5); transform: scale(1); } 50% { box-shadow: 0 0 0 6px rgba(59,130,246,0); transform: scale(1.03); } }
@keyframes pulseBtn {
  0%,100% { box-shadow: 0 0 0 0 rgba(11,45,82,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(11,45,82,0); }
}

.result-table-wrap { width: 100%; overflow-x: auto; overflow-y: auto; }

.result-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; background: var(--white); /*margin-top: 10px;*/ }
.result-table { /*border-collapse: collapse;*/ table-layout: fixed; width: 100%; min-width: max-content; font-size: 13px; background: var(--white); }

.result-table thead th { position: sticky; top: 0; z-index: 10; background: var(--blue-50); color: #001f42; border-bottom: 2px solid var(--blue-200); border-right: 1px solid var(--blue-200); }
.result-table thead th {
  position: sticky; top: 0; z-index: 10; background: #f5f6f7; color: #001f42; border-bottom: 3px solid #1A6FC4; border-top: none; box-shadow: inset -1px 0 0 #d0d7e3; padding: 9px 10px; text-align: center; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; letter-spacing: .02em;
}

.result-table th { padding: 7px 8px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; color: #001f42; }

.result-table th.num, .result-table th.center { text-align: center; }

.result-table td.center { text-align: center; }

.th-allcheck { display: flex; align-items: center; justify-content: center; gap: 3px; flex-direction: column; cursor: pointer; }
.th-allcheck { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }

.th-allcheck-icon { font-size: 13px; line-height: 1; }

.th-allcheck-label { font-size: 10px; font-weight: 700; }

.result-table tbody tr { border-bottom: 1px solid var(--gray-100); }

.result-table tbody input[type="checkbox"] { accent-color: var(--blue-600); width: 14px; height: 14px; cursor: pointer; }

.result-table td.col-highlight, .result-table th.col-highlight { background: #fff8e6; }

.result-table tbody tr:hover { background: var(--blue-50); }

.result-table tbody tr:hover td.col-highlight { background: #ffe0a0; }

.result-table thead th.col-highlight { background: #fff3cc; }

.rt-fix { position: sticky; z-index: 3; background: var(--white); }

.rt-fix-1 { left: 0px; width: 44px; min-width: 44px; max-width: 44px; }

.rt-fix-2 { left: 44px; width: 48px; min-width: 48px; max-width: 48px; }

.rt-fix-3 { left: 92px; min-width: 120px; width: 120px; box-shadow: inset -1px 0 0 var(--gray-100); }

.rt-fix-4 { left: 212px; min-width: 180px; width: 180px; box-shadow: inset -1px 0 0 var(--gray-100); }

.result-table thead th.rt-fix { z-index: 20; background: var(--blue-50); }

.result-table tbody tr:hover td.rt-fix { background: var(--blue-50); }

.result-table td { padding: 4px 8px; border-right: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
/*.result-table td { padding: 5px 10px; border-bottom: 1px solid #d0d7e3; box-shadow: inset -1px 0 0 #d0d7e3; vertical-align: middle; white-space: nowrap; overflow: hidden; font-size: 12px; color: var(--gray-900);}*/

.result-table td.num { text-align: right; /*font-family: var(--mono);*/ font-size: 12px; font-variant-numeric: tabular-nums; }

.result-table td:last-child { border-right: none; }
.result-table td:last-child { box-shadow: none; }

.result-table tbody tr.row-selected { background: #eff6ff; }

.result-table tbody tr.row-selected:hover { background: #dbeafe; }

.rtag { display: inline-block; font-size: 9px; padding: 1px 5px; border-radius: 2px; font-family: var(--mono); letter-spacing: .04em; }

.rtag-a { background: #dbeafe; color: #1e40af; }

.rtag-ap { background: #dcfce7; color: #166534; }

.rtag-aa { background: #fef9c3; color: #854d0e; }

.rtag-bbb { background: #fce7f3; color: #9d174d; }

.ins-name { color: var(--gray-900); }
.ins-name { font-size: 13px; font-weight: 500; white-space: nowrap; }

.prod-name { color: var(--gray-900); font-size: 10px; white-space: normal; word-break: break-all; width: 200px; max-width: 200px; overflow-wrap: break-word; }
.prod-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cart-add-btn { background: none; border: 1px solid var(--gray-300); color: var(--gray-400); padding: 1px 5px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 400; cursor: pointer; white-space: nowrap; line-height: 1; transition: all .15s; min-width: 20px; }
.cart-add-btn:hover { border-color: var(--gray-400); color: var(--gray-600); }
.cart-add-btn.added { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); font-size: 11px; font-weight: 600; }

/* ==========================================================================
   Compare Table Detailed (SCREEN 3)
   ========================================================================== */
.compare-topbar { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 10px 16px; display: flex; align-items: center; gap: 14px; }

.compare-topbar-title { font-size: 14px; font-weight: 700; color: var(--gray-900); }

.compare-topbar-sub { font-size: 10px; color: var(--gray-500); }

.meta-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.meta-pill { background: var(--gray-100); border: 1px solid var(--gray-200); padding: 2px 8px; border-radius: 2px; font-size: 10px; color: var(--gray-600); font-family: var(--mono); letter-spacing: .04em; }

.compare-spacer { flex: 1; }

.exp-btns { display: flex; gap: 6px; }
.exp-btns { display: flex; gap: 6px; align-items: center; }

.exp-btn { border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-700); padding: 5px 12px; border-radius: var(--radius-sm); font-size: 10px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.exp-btn {
  border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-700); padding: 5px 12px; border-radius: var(--radius-sm); font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 4px; font-family: var(--font);
}

.exp-btn.primary-exp { background: #1d6f42; color: var(--white); border-color: #1d6f42; font-weight: 600; }
.exp-btn.primary-exp { background: #1d6f42; color: var(--white); border-color: #1d6f42; font-weight: 600; }

.pager-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 7px 16px; display: flex; align-items: center; gap: 8px; font-size: 11px; justify-content: flex-start; }
.pager-bar {
  background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 7px 16px; display: flex; align-items: center; gap: 8px; font-size: 11px; flex-shrink: 0;
}

.pager-info { color: var(--gray-500); font-family: var(--mono); font-size: 10px; }

.pager-spacer { flex: 1; }

.pager-btn { border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-700); padding: 4px 10px; border-radius: var(--radius-sm); font-size: 12px; cursor: pointer; font-family: var(--font); }

.pager-btn.active { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }

.pager-btn:disabled { opacity: .4; cursor: not-allowed; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 10px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }

.compare-table thead { position: sticky; top: 0; z-index: 10; }

.compare-table thead tr.col-header { background: var(--gray-700); color: var(--white); }

.compare-table thead tr.col-header th { padding: 10px 12px; font-size: 10px; font-weight: 600; letter-spacing: .04em; border-right: 1px solid rgba(255,255,255,.1); text-align: center; white-space: nowrap; }

.compare-table thead tr.col-header th:first-child { text-align: left; width: 110px; }

.compare-table thead tr.company-row { background: var(--blue-50); border-bottom: 2px solid var(--blue-200); }

.compare-table thead tr.company-row th { padding: 8px 12px; text-align: center; border-right: 1px solid var(--gray-200); }

.compare-table thead tr.company-row th:first-child { text-align: left; background: var(--gray-100); width: 90px; min-width: 90px; white-space: nowrap; position: sticky; left: 0; z-index: 5; border-right: 2px solid #9ca0ae; }

.compare-table thead tr.company-row th[colspan] { font-size: 13px; font-weight: 700; color: #001f42; }

.company-cell-name { font-size: 13px; font-weight: 700; color: var(--gray-900); margin-bottom: 1px; }

.company-cell-prod { font-size: 9px; color: var(--gray-500); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.company-cell-price { font-size: 14px; font-weight: 700; color: var(--blue-700); font-family: var(--mono); margin-top: 3px; }

.company-cell-price span { font-size: 9px; color: var(--gray-500); font-weight: 400; }

.compare-table thead tr.meta-row { background: var(--blue-50); border-bottom: 1px solid var(--blue-200); }

.compare-table thead tr.meta-row th { padding: 2px 7px; font-size: 9px; font-weight: 600; color: var(--gray-700); text-align: center; border-right: 1px solid var(--gray-200); line-height: 1.3; white-space: nowrap; }

.compare-table thead tr.meta-row th:first-child { text-align: left; font-weight: 700; color: var(--gray-900); width: 90px; min-width: 90px; white-space: nowrap; position: sticky; left: 0; z-index: 5; background: var(--gray-100); border-right: 2px solid #9ca0ae; }

.compare-table thead tr.meta-compact { background: var(--gray-50); }

.compare-table thead tr.meta-compact th { padding: 1px 7px; font-size: 9px; font-weight: 500; color: var(--gray-600); line-height: 1.2; }

.compare-table tbody tr { border-bottom: 1px solid var(--gray-200); }

.compare-table tbody tr:hover { background: #f0f6fd; }

.compare-table tbody tr:hover td:first-child { background: #dbeafe; }

.compare-table tbody tr.section-head { background: var(--gray-800); color: var(--white); }

.compare-table tbody tr.section-head td { padding: 5px 12px; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-family: var(--mono); color: rgba(255,255,255,.7); }

.compare-table td { padding: 2px 5px; border-right: 1px solid var(--gray-200); vertical-align: middle; font-size: 9px; color: var(--gray-900); }

.compare-table td:first-child { background: var(--gray-100); font-size: 9px; font-weight: 600; color: var(--gray-900); border-right: 2px solid #9ca0ae; white-space: nowrap; position: sticky; left: 0; z-index: 2; padding: 2px 5px; }

.compare-table td.num { font-family: var(--mono); text-align: right; font-size: 9px; color: var(--gray-900); }

.yr-badge { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--gray-900); background: none; padding: 2px 0; border-radius: 0; }

.compare-table tbody tr.remarks-row td { background: #fafafa; color: var(--gray-700); font-size: 11px; border-top: 2px solid var(--gray-300); }

.compare-table tbody tr.remarks-row td:first-child { background: var(--gray-200); font-weight: 600; color: var(--gray-800); border-right: 2px solid #9ca0ae; }

.best { background: #ffe4e6 !important; font-weight: 700; color: #9f1239 !important; }

.compare-remarks { padding: 0 16px 16px; display: grid; grid-template-columns: 110px 1fr 1fr 1fr; gap: 0; border: 1px solid var(--gray-200); border-top: none; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); }

.remark-header { background: var(--gray-800); color: var(--white); padding: 5px 12px; font-size: 9px; font-weight: 600; letter-spacing: .1em; font-family: var(--mono); text-align: center; }
.remark-header:first-child { text-align: left; }

.remark-cell { padding: 8px 12px; border-right: 1px solid var(--gray-200); border-top: 1px solid var(--gray-200); font-size: 10px; color: var(--gray-600); line-height: 1.6; vertical-align: top; }
.remark-cell:first-child { font-weight: 500; color: var(--gray-700); background: var(--gray-50); }

.compare-footnote { margin: 0 16px 16px; padding: 10px 12px; font-size: 10px; color: var(--gray-500); line-height: 1.8; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); }
.compare-footnote p::before { content: '※ '; }
.compare-footnote p { margin-bottom: 1px; }

/* 縦区切り罫線 */
.compare-table tbody tr > td:nth-child(7), .compare-table tbody tr > td:nth-child(13), .compare-table tbody tr > td:nth-child(19), .compare-table tbody tr > td:nth-child(25),
.compare-table thead tr.meta-row th:nth-child(7), .compare-table thead tr.meta-row th:nth-child(13), .compare-table thead tr.meta-row th:nth-child(19), .compare-table thead tr.meta-row th:nth-child(25) { border-right: 2px solid #9ca0ae !important; }

/* Info tooltip */
.info-tooltip-wrap { position: relative; display: inline-flex; align-items: center; }

.info-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #fef3c7; color: #92400e; border: 1px solid #fde68a; font-size: 11px; cursor: pointer; user-select: none; transition: background .15s, color .15s; font-style: normal; }
.info-icon:hover { background: #fde68a; color: #78350f; }

.info-tooltip { display: none; position: absolute; top: 50%; right: calc(100% + 8px); transform: translateY(-50%); width: 340px; background: var(--gray-800); color: var(--white); border-radius: var(--radius); padding: 10px 12px; font-size: 12px; line-height: 1.8; box-shadow: var(--shadow-lg); z-index: 1000; pointer-events: none; white-space: normal; }
.info-tooltip p { margin-bottom: 2px; }
.info-tooltip p:last-child { margin-bottom: 0; }
.info-tooltip-wrap:hover .info-tooltip, .info-tooltip-wrap:focus-within .info-tooltip { display: block; }
.info-tooltip p::before { content: "* "; opacity: .6; }

/* CT Single Wrap */
.ct-single-wrap { margin: 0 16px 8px; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow-x: auto; overflow-y: auto; max-height: 70vh; }
#views_window{
    height:calc(100dvh - 160px);
    overflow-x: auto;
    overflow-y: auto;
}
.ct-tbl-merged { 
    border-collapse: separate;
     font-size: 12px;
      background: var(--white);
      table-layout: fixed;
      width: 100%; 
      border-spacing: 0;
}
.ct-tbl-merged th, .ct-tbl-merged td { 
    padding: 2px 6px;
     /*white-space: nowrap;*/ 
     border-right: 1px solid var(--gray-200); 
     border-bottom: 1px solid var(--gray-200); 
     text-align: center; 
     font-size: 13px; 
}

.ct-tbl-merged thead th { 
    border-bottom: none; 
    box-shadow: inset 0 -1px 0 var(--gray-200); 
    position: sticky; /*z-index: 5;*/ }
.ct-tbl-merged tr.company-row th { 
    background: var(--blue-50); 
    font-size: 13px; font-weight: 700; 
    color: #001f42; 
    padding: 8px 12px; 
    border-bottom: none; 
    box-shadow: inset 0 -2px 0 var(--blue-200); 
    /*width:100px;*/
}

.ct-tbl-merged tr.meta-row th, .ct-tbl-merged tr.meta-compact th { background: var(--gray-100); font-size: 10px; font-weight: 700; color: var(--gray-900); border-bottom: none; box-shadow: inset 0 -1px 0 var(--gray-200); }
.ct-tbl-merged tr.meta-row th { background: var(--gray-100); font-size: 13px; font-weight: 700; color: var(--gray-900); border-bottom: none; box-shadow: inset 0 -1px 0 var(--gray-200); }

.ct-tbl-merged tr.meta-compact th { padding: 2px 7px; }
.ct-tbl-merged tr.meta-compact th { background: var(--gray-100); font-size: 13px; font-weight: 700; color: var(--gray-900); padding: 2px 7px; border-bottom: none; /*box-shadow: inset 0 -1px 0 var(--gray-200);*/ }

.ct-tbl-merged tr.meta-row td, .ct-tbl-merged tr.meta-compact td { background: var(--white); }
.ct-tbl-merged tr.meta-row th[colspan], .ct-tbl-merged tr.meta-compact th[colspan] { background: var(--white) !important; font-size: 12px; font-weight: 400; color: var(--gray-900); }
.ct-tbl-merged td.num {/* font-family: var(--mono);*/ text-align: right; }
.ct-tbl-merged td.center {text-align: center; }

.ct-tbl-merged tr.remarks-row td { background: #fafafa; font-size: 9px; /*border-top: 2px solid var(--gray-300);*/ }
.ct-tbl-merged tr.remarks-row td { background: var(--gray-100); font-size: 12px; /*border-top: 2px solid var(--gray-300); */text-align: center; }

.ct-tbl-merged tbody tr:hover td { background: #f0f6fd; }
.ct-tbl-merged tbody tr:hover td[style*="sticky"] { background: #dbeafe !important; }
.ct-tbl-merged .best { background: #ffe4e6 !important; font-weight: 700; color: #9f1239 !important; }
/*
.ct-tbl-merged thead tr th:nth-child(2), .ct-tbl-merged tbody tr td:nth-child(2) { border-left: 2px solid #9ca0ae !important; }

.ct-tbl-merged thead tr th:nth-child(2) { border-left: 2px solid #9ca0ae !important; }

#ctMerged4 tbody tr td:nth-child(4), #ctMerged4 tbody tr td:nth-child(7), #ctMerged4 tbody tr td:nth-child(10), #ctMerged4 tbody tr td:nth-child(13), #ctMerged4 thead tr th:nth-child(4), #ctMerged4 thead tr th:nth-child(7), #ctMerged4 thead tr th:nth-child(10), #ctMerged4 thead tr th:nth-child(13) { border-right: 2px solid #9ca0ae !important; }
*/
/* ==========================================================================
   Login Screen
   ========================================================================== */
.login-bg { background: #f0f4fa; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; gap: 24px; }

.login-logo { color: var(--blue-700); font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; text-align: center; }

.login-logo-sub { color: var(--gray-400); font-size: 10px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; text-align: center; }

.login-box { background: var(--white); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,.28); overflow: hidden; text-align: left; }

.login-box-header { background: #0F3D70; padding: 12px 20px; border-bottom: 3px solid var(--blue-500); }

.login-box-title { color: var(--white); font-size: 13px; font-weight: 600; }

.terms-panel { margin: 0 0 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; }

.terms-panel-hd { background: var(--gray-100); border-bottom: 1px solid var(--gray-200); padding: 6px 12px; display: flex; align-items: center; gap: 6px; }

.terms-panel-title { font-size: 11px; font-weight: 600; color: var(--gray-800); flex: 1; }

.terms-required { font-size: 9px; font-family: var(--mono); background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 2px; padding: 1px 5px; }

.terms-body { height: 120px; overflow-y: scroll; padding: 10px 12px; font-size: 10px; color: var(--gray-700); line-height: 1.8; background: var(--white); }
.terms-body h4 { font-size: 10px; font-weight: 700; color: var(--gray-900); margin: 8px 0 2px; }
.terms-body h4:first-child { margin-top: 0; }
.terms-body p { margin-bottom: 4px; }

.terms-hint { text-align: center; font-size: 9px; color: var(--gray-400); padding: 3px; background: var(--gray-50); border-top: 1px solid var(--gray-100); font-family: var(--mono); }

.terms-agree { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 9px 12px; background: #eff6ff; border: 1px solid var(--blue-200); border-radius: var(--radius-sm); }
.terms-agree.agreed { background: #ecfdf5; border-color: #6ee7b7; }
.terms-agree input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--blue-600); cursor: pointer; flex-shrink: 0; }
.terms-agree label { font-size: 11px; color: var(--gray-800); font-weight: 500; cursor: pointer; line-height: 1.4; }
.terms-agree.agreed label { color: #065f46; }
.terms-agree label em { font-style: normal; font-weight: 700; color: var(--blue-600); }
.terms-agree.agreed label em { color: #059669; }

.login-form { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 10px; }

.login-field { display: flex; flex-direction: column; gap: 4px; }

.login-label { font-size: 11px; font-weight: 600; color: var(--gray-700); }

.login-inp { border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 13px; color: var(--gray-900); width: 100%; height: 34px; transition: border-color .15s, box-shadow .15s; }
.login-inp:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(82,148,224,.18); }
.login-inp:disabled { background: var(--gray-100); color: var(--gray-400); cursor: not-allowed; border-color: var(--gray-200); }

.login-btn { width: 100%; height: 38px; border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: background .15s; }
.login-btn.disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; }
.login-btn.enabled { background: var(--action); color: var(--white); }
.login-btn.enabled:hover { background: var(--action-dark); }

.login-footnote { font-size: 10px; text-align: center; margin-top: -3px; }
.login-footnote.ng { color: var(--gray-400); }
.login-footnote.ok { color: var(--success); }

.login-notice { margin-top: 14px; padding: 10px 12px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 10px; color: var(--gray-600); line-height: 1.7; }
.login-notice p { margin-bottom: 6px; }
.login-notice p:last-child { margin-bottom: 0; }

.login-notice-warning { color: var(--gray-700); font-weight: 500; border-top: 1px solid var(--gray-200); padding-top: 6px; margin-top: 2px; }

.login-news-panel { background: var(--white); border: 1px solid var(--gray-200); border-top: none; border-radius: var(--radius); padding: 0; width: 340px; flex-shrink: 0; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.login-news-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #0F3D70 0%, #1A6FC4 100%); border-radius: var(--radius) var(--radius) 0 0; z-index: 1; }

.login-news-title { color: var(--gray-900); font-size: 13px; font-weight: 700; margin: 12px 14px; display: flex; align-items: center; gap: 7px; }
.login-news-title::before { content: '討'; font-size: 14px; }

.news-item { border-bottom: 1px solid var(--gray-100); padding: 9px 14px; display: flex; flex-direction: column; gap: 3px; }
.news-item:last-child { border-bottom: none; }

.news-meta { display: flex; align-items: center; gap: 6px; }

.news-date { font-size: 10px; color: var(--gray-400); font-family: var(--mono); }

.news-tag { font-size: 9px; padding: 1px 6px; border-radius: 2px; font-weight: 600; }
.news-tag.tag-new { background: #3b82f6; color: #fff; }
.news-tag.tag-maint { background: #f59e0b; color: #fff; }
.news-tag.tag-info { background: var(--gray-100); color: var(--gray-600); }

.news-text { font-size: 11px; color: var(--gray-700); line-height: 1.5; }

.login-layout { display: flex; gap: 24px; align-items: flex-start; width: 100%; max-width: 820px; }

.login-right-col { flex: 1; min-width: 0; }

/* ==========================================================================
   SCREEN 02.1 / 02.5 / 07 / 08 / 09 / 11 / 12 追加各種モジュール
   ========================================================================== */
#popup_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* 半透明の黒 */
  z-index: 999;
}

.error-dialog-overlay {

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /*min-height: calc(100vh - 250px);*/
  /*background: rgba(0,0,0,.08);*/
  /*display: flex;*/
  align-items: center;
  justify-content: center;
  /*padding: 40px 24px;*/
  z-index: 1000;
}

.error-dialog-bg {
  position: absolute;
  inset: 0;
  /*background: rgba(0, 0, 0, 0.5);*/
}

.error-dialog {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  padding: 28px 32px;
  width: 380px;
  text-align: center;
  z-index: 1;
}
.contradiction{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/*
.error-dialog-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff0f0;
  border: 2px solid #fca5a5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
}
*/
span#error_ico{
    font-size: 55px;
    color: #F87171;
}
span#info_ico{
  color: #60A5FA;
  font-size: 40px;
}
.error-dialog-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.error-dialog-msg {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.error-dialog-btn {
  padding: 8px 32px;
  background: var(--action);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.warn-dialog-btn {
  padding: 8px 32px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sort-group { display: flex; align-items: center; border: 1.5px solid var(--gray-300); border-radius: 8px; background: var(--gray-50); overflow: hidden; }

.sort-group-row { display: flex; align-items: center; height: 34px; }

.sort-group-label { font-size: 13px; font-weight: 600; color: var(--gray-900); white-space: nowrap; padding: 0 8px; }

.sort-group-divider { width: 1px; height: 20px; background: var(--gray-300); margin: 0 2px; }

.sort-apply-btn { height: 34px; padding: 0 16px; background: var(--blue-600); color: #fff; border: none; border-left: 1.5px solid var(--gray-300); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s; font-family: var(--font); }
.sort-apply-btn:hover { background: #1560a8; }

.btn-gradient {
  background: linear-gradient(90deg, #0B2D52 0%, #1A6FC4 100%);
  color: #fff; border: none; font-weight: 600; cursor: pointer;
  border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 6px;
  transition: filter .15s;
}
.btn-gradient:hover { filter: brightness(1.12); }

.btn-compare-inactive {
  background: var(--gray-300); color: var(--gray-500); border: none; font-weight: 600;
  cursor: not-allowed; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 6px;
}

.col-period   { width: 82px;  min-width: 82px; }

.col-num-sm   { width: 80px;  min-width: 80px; }
.col-num-sl   { width: 88px;  min-width: 88px; }
.col-num-md   { width: 92px;  min-width: 92px; }
.col-num-lg   { width: 100px; min-width: 100px; }
.col-num-ml   { width: 115px; min-width: 115px; }
.col-tag      { width: 52px;  min-width: 52px; }
.col-tag-md   { width: 62px;  min-width: 62px; }
.col-tag-mw   { width: 70px;  min-width: 70px; }
.col-tag-wd   { width: 75px;  min-width: 75px; }
.col-num-xs   { width: 56px;  min-width: 56px; }
.col-num-xl   { width: 123px;  min-width: 123px; max-width:123px;}
.col-num-ll   { width: 130px;  min-width: 130px; max-width:130px;}
.col-num-3l   { width: 140px;  min-width: 140px; max-width:140px;}
.col-num-sw   { width: 200px;  min-width: 200px; max-width:200px;}
.col-view-95 {width: 95px;  min-width: 95px; max-width:95px;}
.col-view-100 {width: 100px;  min-width: 100px; max-width:100px;}
.col-view-140 {width: 140px;  min-width: 140px; max-width:140px;}

.result-table .fix {
  position: sticky;
  z-index: 3;
  background: var(--white);
  will-change: transform;
  box-shadow: inset -1px 0 0 #d0d7e3;
}
.result-table thead th.fix {
  z-index: 30;
  background: #f5f6f7 !important;
  border-bottom: 3px solid #1A6FC4 !important;
  box-shadow: inset -1px 0 0 #d0d7e3;
}

.col-fix1 { width: var(--w1); min-width: var(--w1); max-width: var(--w1); left: var(--l1); }
.col-fix2 { width: var(--w60); min-width: var(--w60); max-width: var(--w60); left: var(--l2); }
.col-fix3 { width: var(--w3); min-width: var(--w3); max-width: var(--w3); left: var(--l3); }
.col-fix4 { width: var(--w4); min-width: var(--w4); max-width: var(--w4); left: var(--l4); }
.col-fix4 { box-shadow: inset -2px 0 0 var(--blue-200) !important; }
.col-fix64 { width: var(--w64); min-width: var(--w64); max-width: var(--w64); left: var(--l4); }

.result-table thead th.col-fix4 { box-shadow: inset -2px 0 0 var(--blue-200) !important; border-bottom: 3px solid #1A6FC4 !important; }
.result-table-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
}
.result-table-wrap::-webkit-scrollbar { width: 12px; height: 12px; }
.result-table-wrap::-webkit-scrollbar-track { background: var(--gray-100); }
.result-table-wrap::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 6px; border: 3px solid var(--gray-100); }
.result-table-wrap::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }
.result-table-wrap::-webkit-scrollbar-corner { background: var(--gray-100); }

.views-wrapper { display: flex; flex-direction: column; overflow: hidden; }

.sticky-header { flex-shrink: 0; }

.scroll-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

.keika-cb-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--gray-100);
}

.keika-cb-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  font-size: 13px;
  cursor: pointer;
  border-right: 1px solid var(--gray-100);
  white-space: nowrap;
}
.keika-cb-item:last-child { border-right: none; }
.keika-cb-item:hover { background: var(--blue-50); }
.keika-cb-item input { width: 13px; height: 13px; flex-shrink: 0; }

.keika-ctrl-row {
  display: flex;
  gap: 8px;
  padding: 8px 13px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.keika-ctrl-link {
  display:inline-block; 
  padding:6px 12px; 
  font-size:12px; 
  font-weight:500; 
  color:var(--gray-700); 
  background:var(--gray-100); 
  border:1px solid var(--gray-300); 
  border-radius:4px; 
  cursor:pointer; 
  transition:all 0.2s; 
  white-space:nowrap;
  /*text-decoration: underline;*/
}

.keika-action {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--gray-100);
}

.keika-btn {
  padding: 7px 20px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.keika-btn-primary { background: var(--action); color: var(--white); border: none; }

.keika-btn-secondary { background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-300); }

.mozuki-form-wrap{padding:16px}

.mozuki-form-card{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden;max-width:640px;margin:0 auto}

.mozuki-form-hd{background:var(--gray-50);border-bottom:1px solid var(--gray-200);padding:8px 14px;font-size:11px;font-weight:600;color:var(--gray-700)}

.mozuki-form-body{padding:0}

.mozuki-field{display:grid;grid-template-columns:120px 1fr;border-bottom:1px solid var(--gray-100);min-height:36px}
.mozuki-field:last-child{border-bottom:none}

.mozuki-field-label{background:var(--gray-50);padding:8px 12px;font-size:13px;font-weight:500;color:var(--gray-700);border-right:1px solid var(--gray-100);display:flex;align-items:center}

.mozuki-field-val{padding:6px 12px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}

.mozuki-form-footer{padding:10px 14px;display:flex;justify-content:flex-end;border-top:1px solid var(--gray-100)}

.mozuki-create-btn{background:var(--action);color:var(--white);border:none;padding:7px 24px;border-radius:var(--radius-sm);font-size:18px;font-weight:600;cursor:pointer}

.mozuki-cart-wrap{padding:16px;display:flex;flex-direction:column;gap:12px}

.mozuki-section-hd{font-size:12px;font-weight:600;color:var(--blue-700);padding:4px 0 6px;border-bottom:2px solid var(--blue-200);margin-bottom:8px}

.mozuki-basic-grid{display:inline-flex;flex-wrap:wrap;gap:0;border:1px solid var(--gray-200);border-radius:var(--radius-sm);overflow:hidden;font-size:11px;background:var(--white)}

.mozuki-basic-left{padding:10px 14px;flex:0 0 auto;border-right:1px solid var(--gray-200);background:var(--white)}

.mozuki-basic-right{padding:10px 14px;flex:0 0 auto;background:var(--white)}

.mozuki-basic-row{display:grid;grid-template-columns:100px auto;padding:3px 0;border-bottom:1px solid var(--gray-100);gap:8px;min-width:220px}
.mozuki-basic-row:last-child{border-bottom:none}

.mozuki-basic-key{font-size:13px;color:var(--gray-500)}

.mozuki-basic-val{font-size:13px;color:var(--gray-900);font-weight:500}

.mozuki-premium-hd{font-size:13px;font-weight:600;color:var(--gray-700);margin-bottom:6px;padding-bottom:4px;border-bottom:1px solid var(--gray-100)}

.mozuki-premium-row{display:grid;grid-template-columns:52px 90px;padding:3px 0;gap:4px;border-bottom:1px solid var(--gray-100)}
.mozuki-premium-row:last-child{border-bottom:none}

.mozuki-premium-key{font-size:13px;color:var(--gray-500);white-space:nowrap}

.mozuki-premium-val{font-size:13px;color:var(--gray-900);font-weight:500;white-space:nowrap;text-align:right}

.mozuki-tbl{width:100%;border-collapse:collapse;font-size:13px;background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius-sm)}

.mozuki-tbl thead tr{background:var(--gray-100)}

.mozuki-tbl th{padding:5px 8px;font-size:13px;font-weight:700;color:var(--gray-700);border-right:1px solid var(--gray-300);border-bottom:2px solid var(--gray-300);text-align:center;white-space:nowrap}
.mozuki-tbl th:last-child{border-right:none}

.mozuki-tbl td{padding:5px 8px;border-right:1px solid var(--gray-100);border-bottom:1px solid var(--gray-100);vertical-align:middle;text-align:center;white-space:nowrap}
.mozuki-tbl td:last-child{border-right:none}

.mozuki-tbl td.left{text-align:left}

.mozuki-tbl-edit{
    font-size:13px;color:var(--blue-600);
    cursor:pointer;padding:2px 6px;
    border:1px solid var(--blue-300);
    border-radius:2px;
    margin: 0 0 3px 0
    }

.mozuki-tbl-del{
    font-size:13px;
    color:#dc2626;
    cursor:pointer;
    padding:2px 6px;
    border:1px solid #fca5a5;
    border-radius:2px
    }
.mozuki-tbl-cmt{
    background: linear-gradient(90deg, #0F3D70 0%, #1A6FC4 100%);
    border: none;
    font-size:13px;
    color:var(--white);
    cursor:pointer;
    padding:2px 6px;
    border-radius:2px
    }	

.mozuki-tbl-add{background:none;border:none;color:var(--gray-400);font-size:16px;cursor:pointer;padding:0 4px;line-height:1}

.mozuki-preview-card{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden}

.mozuki-preview-hd{background:var(--gray-50);border-bottom:1px solid var(--gray-200);padding:7px 14px;display:flex;align-items:center;justify-content:space-between}

.mozuki-preview-title{font-size:14px;font-weight:700;color:var(--gray-700)}

.mozuki-preview-reload{font-size:12px;color:var(--blue-600);cursor:pointer;border:1px solid var(--blue-300);padding:2px 8px;border-radius:2px}

.mozuki-diagram-area{padding:16px;background:var(--white)}

.mozuki-bar-row{display:flex;align-items:stretch;gap:8px;margin-bottom:10px}

.mozuki-bar-label{font-size:12px;color:var(--gray-700);width:200px;flex-shrink:0;display:flex;flex-direction:column;justify-content:center;line-height:1.4}
.mozuki-bar-label strong{font-size:13px;font-weight:600;color:var(--gray-900)}
.mozuki-bar-label span{font-size:12px;color:var(--gray-500)}

.mozuki-bar-track{flex:1;position:relative;height:48px;display:flex;align-items:center}

.mozuki-bar{height:40px;border-radius:2px;display:flex;align-items:center;padding:0 8px;font-size:9px;color:var(--white);font-weight:500;white-space:nowrap;overflow:hidden}
.mozuki-bar { 
    background: #f0f6fc;
    border-bottom: 1px solid #C5DCF5; 
    padding: 4px 16px; 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    font-size: 13px; 
    flex-wrap: wrap; }

.mozuki-output-bar{display:flex;justify-content:flex-end;gap:8px;padding:10px 0 0}

.mozuki-out-btn{padding:6px 16px;border-radius:var(--radius-sm);font-size:11px;font-weight:600;cursor:pointer;background:var(--white);color:var(--blue-600);border:1px solid var(--blue-400)}

.moz-btn-pdf{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border:none;border-radius:var(--radius-sm);font-size:12px;font-weight:600;cursor:pointer;background:#7f1d1d;color:var(--white);}
.moz-btn-pdf:hover{background:#b91c1c;}

.moz-btn-excel{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border:none;border-radius:var(--radius-sm);font-size:12px;font-weight:600;cursor:pointer;background:#1d6f42;color:var(--white);}
.moz-btn-excel:hover{background:#155c35;}

.moz-btn-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;background:var(--white);border-radius:2px;flex-shrink:0;font-size:9px;font-weight:800;line-height:1;}

.moz-btn-icon-pdf{color:#7f1d1d;}

.moz-btn-icon-excel{color:#1d6f42;}

.mozuki-new-btn{background:var(--action);color:var(--white);border:none;padding:5px 12px;border-radius:var(--radius-sm);font-size:18px;font-weight:600;cursor:pointer}

.listed-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 16px; padding: 16px; align-items: start; }

.listed-main { background: var(--white); border: 1px solid var(--gray-200); border-top: none; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; position: relative; }
.listed-main::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#0F3D70 0%,#1A6FC4 100%); z-index: 1; }

.listed-title { display: none; }

.listed-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--gray-100); }
.listed-row:last-child { border-bottom: none; }
.listed-row:hover { background: var(--blue-50); }

.listed-icon { width: 32px; height: 32px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; letter-spacing: .02em; flex-shrink: 0; }

.listed-icon-pdf { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }

.listed-icon-xlsx { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; }

.listed-filename { font-size: 13px; color: var(--blue-600); cursor: pointer; text-decoration: underline; flex: 1; }

.listed-del { font-size: 12px; color: var(--gray-400); cursor: pointer; padding: 2px 7px; border: 1px solid var(--gray-200); border-radius: 2px; white-space: nowrap; }
.listed-del:hover { color: #dc2626; border-color: #fca5a5; background: #fff5f5; }

.listed-side { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }

.listed-side-hd { font-size: 14px; font-weight: 600; color: var(--gray-700); padding: 9px 14px; border-bottom: 1px solid var(--gray-200); background: var(--gray-50); }

.listed-side-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }

.listed-file-input { display: flex; align-items: center; gap: 6px; }

.listed-file-label { padding: 5px 10px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 13px; color: var(--gray-700); cursor: pointer; background: var(--white); }

.listed-file-none { font-size: 12px; color: var(--gray-400); }

.listed-save-btn { background: var(--action); color: var(--white); border: none; padding: 6px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; }

.usage-wrap { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.usage-card { background: var(--white); border: 1px solid var(--gray-200); border-top: none; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; position: relative; }
.usage-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#0F3D70 0%,#1A6FC4 100%); z-index: 1; }

.usage-card-hd { display: none; }

.usage-card-body { padding: 18px 14px 14px; }

.usage-search-grid { display: grid; grid-template-columns: 80px 1fr; gap: 8px; align-items: center; max-width: 520px; margin-bottom: 10px;}

.usage-search-label { font-size: 13px; color: var(--blue-700); font-weight: 500; text-align: right; }

.usage-search-btn { display: flex; justify-content: flex-end; margin-top: 10px; }

.usage-btn { padding: 5px 20px; border: none; background: var(--action); border-radius: var(--radius-sm); font-size: 18px; cursor: pointer; color: var(--white); font-weight: 600; }

.usage-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }

.usage-tbl thead tr { border-bottom: 2px solid var(--gray-200); }

.usage-tbl th { padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--blue-700); text-align: center; }

.usage-tbl tbody tr { border-bottom: 1px solid var(--gray-100); }

.usage-tbl tbody tr:last-child { border-bottom: none; }
.usage-tbl tbody tr:hover { background: var(--blue-50); }

.usage-tbl td { padding: 7px 12px; text-align: left; }
.usage-tbl td.center { text-align: center; }
.usage-tbl td.right { text-align: right; }

.ins-mgmt-wrap { padding: 16px; }

.ins-mgmt-card { background: var(--white); border: 1px solid var(--gray-200); border-top: none; border-radius: var(--radius-sm); overflow: hidden; display: block; width: fit-content; max-width: 900px; position: relative; }
.ins-mgmt-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#0F3D70 0%,#1A6FC4 100%); z-index: 1; }

.ins-mgmt-hd { display: none; }

.ins-mgmt-tbl { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 11px; 
    border-top: 1px solid var(--blue-200); 
    border-bottom: 1px solid var(--blue-200); 
    border-left: 1px solid var(--blue-200); 
    border-right: 1px solid var(--blue-200);}

.ins-mgmt-tbl thead tr { background: var(--gray-100); }

.ins-mgmt-tbl th { 
    padding: 6px 12px; 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--blue-700); 
    text-align: center;
    border-top: 1px solid var(--blue-200); 
    border-bottom: 1px solid var(--blue-200); 
    border-left: 1px solid var(--blue-200); 
    border-right: 1px solid var(--blue-200);}
.ins-mgmt-tbl th:last-child { border-right: none; }

.ins-mgmt-tbl tbody tr { border-bottom: 1px solid var(--gray-100); }

.ins-mgmt-tbl tbody tr:last-child { border-bottom: none; }
.ins-mgmt-tbl tbody tr:hover { background: var(--blue-50); }

.ins-mgmt-name { 
    padding: 6px 12px; 
    text-align: left; 
    font-size: 13px; 
    color: var(--gray-900); 
    border-right: 1px solid var(--blue-200);
    border-bottom: 1px solid var(--blue-200);
    }

.ins-mgmt-chk { 
    padding: 6px 12px; 
    text-align: center; 
    border-right: 1px solid var(--blue-200);
    border-bottom: 1px solid var(--blue-200);
    }

.ins-mgmt-link { 
    padding: 6px 12px; 
    text-align: center;
    border-right: 1px solid var(--blue-200);
    border-bottom: 1px solid var(--blue-200);
    text-decoration: underline;
    font-size: 13px;
    color: var(--action);
     }

.ins-mgmt-a { font-size: 13px; color: var(--blue-600); cursor: pointer; text-decoration: underline; }

.ins-mgmt-footer { display: flex; justify-content: flex-end; padding: 8px 12px; border-top: 1px solid var(--gray-100); gap: 8px; }

.ins-mgmt-btn { 
    padding: 10px 21px; 
    border: 1px solid var(--gray-300); 
    border-radius: var(--radius-sm); 
    font-size: 18px; cursor: pointer; 
    background: var(--white); 
    color: 	var(--gray-700);
    margin-right: 20px; 
    }
.ins-mgmt-btn.primary { background: var(--action); color: var(--white); border-color: var(--action); }

.logo-wrap { padding: 16px; }

.logo-card { background: var(--white); border: 1px solid var(--gray-200); border-top: none; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; position: relative; }
.logo-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#0F3D70 0%,#1A6FC4 100%); z-index: 1; }

.logo-card-hd { display: none; }

.logo-row { display: grid; grid-template-columns: 100px 1fr 60px; align-items: center; padding: 16px 14px 8px; border-bottom: 1px solid var(--gray-100); }

.logo-upload-row { display: grid; grid-template-columns: 180px 1fr 60px; align-items: center; padding: 8px 14px 14px; border-bottom: 2px solid var(--gray-200); }
.logo-upload-row:last-child { border-bottom: none; }

.logo-user { font-size: 13px; color: var(--gray-700); text-align: center; }

.logo-img-cell { display: flex; align-items: center; justify-content: center; padding: 4px 0; }

.logo-dummy { display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 14px; font-weight: 700; letter-spacing: .02em; padding: 0 16px; white-space: nowrap; overflow: hidden; }

.logo-del { font-size: 13px; color: var(--blue-600); cursor: pointer; text-decoration: underline; text-align: center; }

.logo-upload-cell { display: flex; align-items: center; gap: 8px; justify-content: center; }

.logo-file-label { padding: 4px 10px; border: 1px solid var(--gray-300); border-radius: 3px; font-size: 13px; color: var(--gray-700); cursor: pointer; background: var(--white); }

.logo-file-none { font-size: 12px; color: var(--gray-400); }

.logo-upload-btn { padding: 4px 12px; border: 1px solid var(--gray-300); border-radius: 3px; font-size: 13px; color: var(--gray-700); cursor: pointer; background: var(--white); }
.logo-upload-btn:hover { background: var(--blue-50); border-color: var(--blue-400); color: var(--blue-700); }

.contact-wrap { padding: 24px; display: flex; justify-content: center; background: var(--gray-50); }

.contact-page-title { font-size: 20px; font-weight: 700; color: #0B2D52; margin-bottom: 6px; }

.contact-page-desc { font-size: 13px; color: var(--gray-500); margin-bottom: 24px; line-height: 1.7; }

.contact-type-group { display: flex; gap: 12px; margin-bottom: 24px; }

.contact-type-card { flex: 1; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px 12px; text-align: center; cursor: pointer; background: var(--white); transition: border-color .15s, background .15s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact-type-card:hover { border-color: var(--blue-400); background: var(--blue-50); }
.contact-type-card.selected { border-color: var(--blue-600); background: var(--blue-50); }

.contact-type-icon { font-size: 22px; line-height: 1; }

.contact-type-label { font-size: 11px; font-weight: 600; color: var(--gray-700); line-height: 1.4; }

.contact-group-title { font-size: 13px; font-weight: 700; color: #0B2D52; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; gap: 8px; }
.contact-group-title::before { content: ''; display: inline-block; width: 3px; height: 14px; background: #1A6FC4; border-radius: 2px; flex-shrink: 0; }

.contact-group { margin-bottom: 24px; }

.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-row.full { grid-template-columns: 1fr; }

.contact-field-v { display: flex; flex-direction: column; gap: 5px; }

.contact-label-row { display: flex; align-items: center; gap: 6px; }

.contact-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }

.contact-req { display: inline-block; background: var(--blue-600); color: var(--white); font-size: 12px; padding: 1px 6px; border-radius: 2px; font-weight: 600; }

.contact-opt { display: inline-block; background: var(--gray-200); color: var(--gray-600); font-size: 12px; padding: 1px 6px; border-radius: 2px; }

.contact-inp { border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; height: 36px; font-family: var(--font); width: 100%; color: var(--gray-900); transition: border-color .15s, box-shadow .15s; }
.contact-inp:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(0,74,157,.1); }

.contact-select { border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; height: 36px; font-family: var(--font); width: 100%; color: var(--gray-900); background: var(--white); cursor: pointer; }

.contact-hint-sm { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

.contact-textarea { border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; height: 120px; font-family: var(--font); width: 100%; resize: vertical; }
.contact-textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(0,74,157,.1); }

.contact-file-row { display: flex; align-items: center; gap: 8px; }

.contact-file-btn { padding: 7px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 13px; background: var(--white); cursor: pointer; color: var(--gray-700); }
.contact-file-btn:hover { background: var(--gray-50); }

.contact-file-none { font-size: 11px; color: var(--gray-400); }

.contact-submit-btn { padding: 12px 48px; border: none; border-radius: var(--radius-sm); font-size: 18px; font-weight: 600; background: var(--action); color: var(--white); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.contact-submit-btn:hover { background: var(--action-dark); }

.hist-wrap { padding: 16px; }

.hist-filter { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 820px; }

.hist-tbl { width: 100%; max-width: 820px; border-collapse: collapse; font-size: 11px; background: var(--white); border: 1px solid var(--gray-200); border-top: none; position: relative; }

.hist-tbl thead tr { border-bottom: 2px solid var(--gray-200); }

.hist-tbl th { padding: 8px 16px; font-size: 11px; font-weight: 600; color: var(--blue-700); text-align: center; }

.hist-tbl tbody tr { border-bottom: 1px solid var(--gray-100); }

.hist-tbl tbody tr:last-child { border-bottom: none; }
.hist-tbl tbody tr:hover { background: var(--blue-50); }

.hist-name { padding: 7px 20px; text-align: left; font-size: 13px; color: var(--gray-900); }

.hist-count { padding: 7px 20px 7px 8px; text-align: right; font-size: 13px; color: var(--gray-900); font-family: var(--mono); }

.hist-dl { 
    padding: 6px 16px;
    border-bottom: 1px solid var(--blue-200);
    text-align: center; }

.hist-dl-btn { padding: 4px 16px; border: 1px solid var(--gray-400); border-radius: 2px; font-size: 12px; background: var(--white); color: var(--gray-700); cursor: pointer; }
.hist-dl-btn:hover { background: var(--blue-50); border-color: var(--blue-400); color: var(--blue-600); }

.hist-sep { color: var(--gray-500); font-size: 13px; }

.hist-update-btn { 
    padding: 4px 14px; 
    border: none; 
    border-radius: 2px; 
    font-size: 13px; 
    font-weight: 900;  
    background: linear-gradient(90deg, #0F3D70 0%, #1A6FC4 100%);  
    color: 	var(--white); 
    cursor: pointer; 
    transition: all var(--transition); 
    align-items: center; 
    letter-spacing: .04em;
    margin-left: 4px; 
    box-shadow: 0 4px 12px rgba(26,111,196,.3); }
.hist-update-btn:hover { 
    box-shadow: 0 6px 20px rgba(26,111,196,.4); 
    transform: translateY(-1px);}

.pt16{ padding-top: 16px; }

.confidential-label {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: #fca5a5; white-space: nowrap; margin-left: 16px; flex-shrink: 0; opacity: .85;
}
.confidential-label_2 {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: #fca5a5; white-space: nowrap; margin-left: 16px; flex-shrink: 0; opacity: .85;
}
.hidden-top { margin-top: 57px; }

.ct-table-area {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  background: var(--white);
}

.ct-tbl-merged tr.meta-row[data-label="true"] th {
  background: var(--gray-100) !important;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-900);
}

.ct-tbl-merged tr.remarks-row td:not(:first-child) {
  text-align: left;
}
#confidential{
       display:none;
}
@media screen and (max-width: 1134px) {
  /* Header */
  .header-inner { position: relative; justify-content: space-between; height: auto; padding: 8px 16px; }
  .logo { margin-right: 0; margin-bottom: 0; border-right: none;}
  .logo img { width: 140px !important; }
  .hamburger-btn { display: block; }
  .main-nav { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; width: 100%; background: var(--blue-700); padding: 0 0 16px 0; box-shadow: 0 4px 8px rgba(0,0,0,0.2); z-index: 1000; }
  .main-nav.is-open { display: flex; }
  .nav-link { height: 44px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,0.1) !important; }
  /*.nav-spacer { display: none; }
  .nav-user { padding: 12px 20px 0; margin-left: 0; border-top: 1px solid rgba(255,255,255,0.2); margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
  .nav-logout { margin-left: 0; }*/
  .hamburger-btn.is-active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger-btn.is-active .hamburger-line:nth-child(2) { opacity: 0; }
  .hamburger-btn.is-active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
    .confidential-label{
       display:none;
    }
    .nav-user{
       display:none;
    }
    #confidential{
       display:block;
    }
}
/* ==========================================================================
   Responsive (Smartphones)
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Layout */
  .page-inner { grid-template-columns: 1fr; padding: 16px 8px 40px; }
  .search-layout { grid-template-columns: 1fr; padding: 8px; gap: 16px; }
  .search-main { padding-right: 0; }
  
  /* Forms */
  .field-row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
  .field-label { padding-top: 0; font-size: 13px; margin-bottom: 4px; }
  .inp { height: 36px; font-size: 13px; }
  .inp.w200, .inp.w160, .inp.w120, .inp.w90, .inp.w70 { width: auto; flex: 1; min-width: 0; }
  .insurer-grid { grid-template-columns: repeat(2, 1fr); }
  .ins-check { padding: 8px 6px; }
  .radio-item, .check-item { padding: 6px 0; font-size: 13px; }
  .radio-item input, .check-item input { width: 16px; height: 16px; }
  .search-action-area { justify-content: center; }
  .btn-search { width: 50%; height: 44px; font-size: 15px; }
  .cart-card, .aside-card { position: relative; top: 0; }
  .toggle-mode-btn { padding: 8px 16px; font-size: 13px; }
  .form-card-header { flex-wrap: wrap; }
  .dynamic-hint { margin-top: 4px; width: 100%; }

  /* Login */
  .login-bg { padding: 24px 16px; min-height: auto; gap: 16px; }
  .login-layout { flex-direction: column; align-items: stretch; gap: 24px; }
  .login-right-col { order: -1; width: 100%; }
  .login-right-col > div { max-width: 100% !important; }
  .login-news-panel { width: 100%; }
  .terms-body { height: 150px; }
  .login-btn { height: 44px; font-size: 14px; }
  .login-inp { height: 40px; font-size: 14px; }
  
  /* Compare Tables & Search Results */
  .cond-bar { padding: 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cond-item { border-right: none; border-bottom: 1px solid var(--blue-100); padding: 4px 0; }
  .cond-change-btn { grid-column: span 2; width: 100%; text-align: center; }
  .compare-float { flex-wrap: wrap; padding: 10px; position: sticky; top: 0; z-index: 100; }
  .cf-spacer { display: none; }
  .cf-btn { width: 100%; margin-top: 8px; }
  .result-table { min-width: 600px; }
  .compare-topbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .exp-btns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .exp-btn { justify-content: center; font-size: 11px; padding: 8px 4px; }
  .ct-outer, .ct-single-wrap { margin: 0 8px 8px; max-height: none; }
  .ct-tbl-merged th[style*="sticky"], .ct-tbl-merged td[style*="sticky"] { position: sticky; left: 0; z-index: 2; background: var(--gray-100) !important; box-shadow: 2px 0 5px rgba(0,0,0,0.1); }
  .ct-tbl-merged td.num, .company-cell-price { font-size: 13px !important; }
  .compare-remarks { grid-template-columns: 1fr; margin: 0 8px 16px; }
  .remark-header { text-align: left; background: var(--gray-700); }
  .remark-cell { border-right: none; border-bottom: 1px solid var(--gray-200); }
  
  /* Header */
  /*
  .header-inner { position: relative; justify-content: space-between; height: auto; padding: 8px 16px; }
  .logo { margin-right: 0; margin-bottom: 0; border-right: none;}
  .logo img { width: 140px !important; }
  .hamburger-btn { display: block; }
  .main-nav { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; width: 100%; background: var(--blue-700); padding: 0 0 16px 0; box-shadow: 0 4px 8px rgba(0,0,0,0.2); z-index: 1000; }
  .main-nav.is-open { display: flex; }
  .nav-link { height: 44px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,0.1) !important; }
  .nav-spacer { display: none; }
  .nav-user { padding: 12px 20px 0; margin-left: 0; border-top: 1px solid rgba(255,255,255,0.2); margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
  .nav-logout { margin-left: 0; }
  .hamburger-btn.is-active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger-btn.is-active .hamburger-line:nth-child(2) { opacity: 0; }
  .hamburger-btn.is-active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  */
}

@media screen and (max-width: 768px) {
  .result-table .fix,
  .result-table thead th.fix {
    /*position: static !important;*/
    box-shadow: inset -1px 0 0 #d0d7e3 !important; /* 縦の区切り線を維持 */
  }
  
  .result-table thead th.fix {
    border-bottom: 3px solid #1A6FC4 !important; /* ヘッダーの下線を維持 */
  }
}
/*******************************************/
@media screen and (max-width: 1024px) {
  .result-table .fix,
  .result-table thead th.fix {
    /*position: static !important;*/
    left: auto !important;
    will-change: auto;
  }
}
.result-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.result-table {
  table-layout: fixed;
  width: max-content;
  min-width: 100%;
}
/********************************************/
@media screen and (max-width: 768px) {
  /* ── 経過表出力設定画面（スマホ用） ── */
  
  /* 10列から5列に変更し、2段に折り返す */
  .keika-cb-row {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* タップ領域を広げ、中央寄せにして押しやすくする */
  .keika-cb-item {
    border-bottom: 1px solid var(--gray-100);
    justify-content: center;
    padding: 10px 4px; 
    font-size: 13px;
  }
  
  /* 5列ごとに右側の線を消す（折り返しレイアウトの調整） */
  .keika-cb-item:nth-child(5n) {
    border-right: none;
  }
  
  /* リンクテキスト（全選択など）の折り返しとタップ領域拡大 */
  .keika-ctrl-row {
    justify-content: center;
    display:flex; 
    gap:8px; 
    padding:8px 13px; 
    flex-wrap:wrap;
  }
  .keika-ctrl-link {
    font-size: 13px;
    padding: 4px;
  }

  /* アクションボタンを縦並び＆横幅100%にして押しやすく */
  .keika-action {
    flex-direction: column-reverse; /* 「閉じる」を下に、「出力」を上に配置 */
    gap: 10px;
    padding: 16px 14px;
  }
  .keika-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  /* ▼ 詳細比較表：ページャーとボタンバーのスマホ調整 ▼ */
  
  /* ページャー全体を折り返し（ラップ）可能にし、中央寄せにする */
  .pager-bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px;
    gap: 8px;
  }
  
  /* スマホでは中央の余白（スペーサー）を消す */
  .pager-spacer {
    display: none;
  }

  /* 出力ボタンエリアの設定 */
  .exp-btns {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列のグリッド */
    gap: 8px;
    margin-top: 8px;
    border-top: 1px dashed var(--gray-300); /* ページャーとの境界をわかりやすく */
    padding-top: 12px;
  }
  
  /* ? アイコンをグリッドの2列分（全幅）使い、右端に配置する */
  .info-tooltip-wrap {
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2px;
  }
  
  /* ツールチップ（吹き出し）がスマホ画面からはみ出さないように幅を調整 */
  .info-tooltip {
    right: 0;
    width: 280px;
    white-space: normal;
  }
  
  /* 各ボタンを押しやすいサイズに拡張 */
  .exp-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 4px;
    font-size: 13px;
  }
}

@media screen and (max-width: 768px) {
  /* ▼ 掲載商品一覧（Document更新）のスマホ調整 ▼ */
  
  /* 2カラムレイアウトを1カラム（縦積み）に変更 */
  .listed-wrap {
    grid-template-columns: 1fr;
    gap: 24px; /* 縦の余白を少し広げて見やすく */
  }

  /* ファイル名が長い場合に折り返すようにする */
  .listed-file-input {
    flex-wrap: wrap;
  }

  /* 保存ボタンを横幅いっぱいに広げてタップしやすくする */
  .listed-save-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    margin-top: 8px;
  }
}

@media screen and (max-width: 768px) {
  /* ▼ 利用回数確認画面のスマホ調整 ▼ */
  
  /* 検索フォームを1カラム（縦並び）に変更 */
  .usage-search-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  /* ラベルを左寄せに変更し、上部に少し余白を設ける */
  .usage-search-label {
    text-align: left;
    margin-top: 8px;
  }
  .usage-search-label:first-child {
    margin-top: 0;
  }
  
  /* HTMLのインラインスタイル(width: 320px)を強制的に上書きして画面幅に合わせる */
  .usage-search-grid select.inp {
    width: 100% !important;
  }
  
  /* 日付のセレクトボックス群が折り返しても崩れないようにする */
  .usage-search-grid > div {
    flex-wrap: wrap;
  }
  
  /* 検索ボタンを押しやすく幅100%に広げる */
  .usage-search-btn {
    margin-top: 16px;
    justify-content: center;
  }
  .usage-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }
  
  /* テーブルを横スクロール可能にし、文字の潰れや不自然な改行を防ぐ */
  .usage-card-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .usage-tbl {
    min-width: 480px; /* スクロールさせるための最低幅 */
  }
  .usage-tbl th, 
  .usage-tbl td {
    white-space: nowrap;
    padding: 10px 8px; /* タップしやすく行の高さを少し出す */
  }
}

@media screen and (max-width: 768px) {
  /* ▼ 保険会社管理（保険種類一覧）のスマホ調整 ▼ */
  
  /* 外側の余白を調整し、420pxの最小幅制限を解除して画面幅に合わせる */
  .ins-mgmt-wrap {
    padding: 16px 8px;
  }
  .ins-mgmt-card {
    min-width: 0;
    width: 100%;
  }

  /* 行の高さを広げて、スマホでもチェックボックスやリンクをタップしやすくする */
  .ins-mgmt-tbl th,
  .ins-mgmt-tbl td {
    padding: 12px 8px;
  }
  
  /* 保険名の列が長くなった場合に自然に折り返すようにする */
  .ins-mgmt-name {
    white-space: normal;
    line-height: 1.4;
  }

  /* 「決定」ボタンを横幅いっぱいに広げて押しやすくする */
  .ins-mgmt-footer {
    padding: 12px;
  }
  .ins-mgmt-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  /* ▼ ロゴ変更画面のスマホ調整 ▼ */

  /* 横並びのグリッドを解除し、縦積みのフレックスレイアウトに変更 */
  .logo-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px 8px;
    border-bottom: none; /* 直下のアップロード行とセットに見せるため下線を消す */
    gap: 10px;
  }
  
  .logo-upload-row {
    display: flex;
    flex-direction: column;
    padding: 0 14px 20px;
    border-bottom: 2px solid var(--gray-200); /* ユーザーごとの区切りを強調 */
  }

  /* PCレイアウト用の空の要素（空白セル）を非表示にしてスペース節約 */
  .logo-upload-row > .logo-user:empty,
  .logo-upload-row > div:empty {
    display: none;
  }

  /* ユーザー名を左寄せにして少し強調 */
  .logo-user {
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    width: 100%;
  }

  /* ！！！重要！！！ */
  /* HTMLに直書きされている 680px などの固定幅を強制的に100%に収める */
  .logo-img-cell {
    width: 100%;
  }
  .logo-dummy {
    max-width: 100% !important;
    height: auto !important;
    min-height: 60px; /* 最低限の高さを確保 */
    white-space: normal; /* テキストがはみ出さないよう折り返し許可 */
    text-align: center;
  }

  /* 削除ボタンを右下に配置し、タップしやすいボタン風に */
  .logo-del {
    align-self: flex-end;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
  }

  /* ファイル選択・アップロードボタン群を縦並びにし、幅100%にする */
  .logo-upload-cell {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
  }
  
  .logo-upload-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
  }
}

@media screen and (max-width: 768px) {
  /* ▼ 検索履歴画面のスマホ調整 ▼ */

  /* フィルターエリア：横並びを最適化し、日付指定を2段に分ける */
  .hist-filter {
    padding: 12px;
    gap: 8px;
    justify-content: space-between;
  }
  
  /* PC用の固定幅を解除し、スマホ画面に柔軟にフィットさせる */
  .hist-filter .inp.w120 { width: 42% !important; flex: 1 1 auto; }
  .hist-filter .inp.w50  { width: 23% !important; flex: 1 1 auto; }
  
  /* 「～」を横幅100%にして、ここで強制的に改行させる（CSSレイアウトの小技） */
  .hist-sep {
    width: 100%;
    text-align: center;
    margin: 2px 0;
  }
  
  /* 更新ボタンをフル幅にしてタップしやすく */
  .hist-update-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    margin-top: 8px;
    margin-left: 0;
  }

  /* テーブルエリア：文字の潰れを防ぎ、横スクロールを許可する */
  .hist-tbl {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iOSでのスクロールを滑らかに */
  }
  
  .hist-tbl th,
  .hist-tbl td {
    white-space: nowrap; /* テキストの意図しない改行を防ぐ */
  }
  
  /* スマホ用にセルの余白を調整し、タップしやすくする */
  .hist-name, 
  .hist-count, 
  .hist-dl {
    padding: 12px 10px; 
  }
}

@media screen and (max-width: 480px) {
  .insurer-grid { grid-template-columns: 1fr; }
  .field-input { flex-direction: column; align-items: stretch; }
  .field-input > div, .field-input > select, .field-input > input { width: 100%; }
  .radio-group { flex-direction: column; gap: 8px; }
  #birthMode .field-input, #ageMode { flex-direction: row; flex-wrap: wrap; }
  .login-logo { font-size: 20px; }
  .login-logo-sub { font-size: 9px; }
  .terms-agree { align-items: flex-start; }
  .terms-agree input[type=checkbox] { margin-top: 2px; }
  .company-cell-name { font-size: 11px; }
  .company-cell-price { font-size: 11px !important; }
  .ct-tbl-merged th, .ct-tbl-merged td { padding: 4px 2px; font-size: 10px; }
}

.table_nen{
    position:sticky;left:0;z-index:2;background:var(--gray-100);font-weight:700;font-size:13px;text-align:center;padding:2px 8px;white-space:nowrap;/*box-shadow: inset -2px 0 0 #9ca0ae, inset 0 -1px 0 var(--gray-200)*/;
}
.nen_title{
    z-index:7;
}
.table_tatesen{
    border-right: 1px solid var(--gray-200);
}
.txtC{
    text-align: center;
}

/* ── データセル共通 ── */
.result-table td {
  padding: 5px 10px;
  border-top: 1px solid #d0d7e3;
  box-shadow: inset -1px 0 0 #d0d7e3;
  vertical-align: middle;
  /*white-space: nowrap;*/
  overflow: hidden;
  font-size: 13px;
  color: var(--gray-900);
}
.result-table td:last-child { box-shadow: none; }
.result-table td.num { text-align: right; /*font-family: var(--mono);*/ font-size: 13px; font-variant-numeric: tabular-nums; }
.result-table td.center { text-align: center; }

/* ── 行ホバー・選択 ── */
.result-table tbody tr:hover td        { background: var(--blue-50) !important; box-shadow: inset -1px 0 0 #d0d7e3; }
.result-table tbody tr:hover td.fix    { background: var(--blue-50) !important; box-shadow: inset -1px 0 0 #d0d7e3; }
.result-table tbody tr:hover td:last-child { box-shadow: none; }
.result-table tbody tr.row-selected td { background: #dbeafe !important; box-shadow: inset -1px 0 0 #93c5fd; }
.result-table tbody tr.row-selected td.fix { background: #dbeafe !important; box-shadow: inset -1px 0 0 #93c5fd; }
.result-table tbody tr.row-selected td:last-child { box-shadow: none; }
.result-table tbody tr.row-selected td:first-child { border-left: 3px solid #1A6FC4; }



/* 模式図ボタン */
.mozuki-btn {
  background: none; border: 1px solid var(--gray-300); color: var(--gray-400);
  padding: 2px 6px; border-radius: var(--radius-sm); font-size: 12px;
  cursor: pointer; line-height: 1; transition: all .15s;
}
.mozuki-btn:hover { border-color: var(--gray-400); color: var(--gray-600); }
.mozuki-btn.added { background: var(--blue-600); color: #fff; border-color: var(--blue-600); font-weight: 600; }


/* 0613*/
/* 画面全体レイアウト */
.screen-wrapper { display: flex; flex-direction: column; height: calc(100dvh - 57px); overflow: hidden; }
.sticky-header { flex-shrink: 0; }
.scroll-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

.align_center{
    text-align:center;
}
.align_left{
    text-align:left;
}
.mozukiBtn{
    padding:6px 16px;
    font-size:13px;
}
span.mozukiSlots{
    display:flex;gap:6px;
    flex-wrap:wrap;
    align-items:center;
    flex:1;
}
button.btn-compare-inactive{
    padding:5px 14px;
    font-size:13px;
    height:30px;
}
span.excel_out{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:14px;
    height:14px;
    background:#fff;
    border-radius:2px;
    margin-right:4px;
}
span.excel_out2{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:14px;height:14px;
    background:var(--white);
    border-radius:2px;
    margin-right:5px;
    flex-shrink:0
}
span.excel_out_inner{
    color:#1d6f42;
    font-size:9px;
    font-weight:800;
    line-height:1;
}
span#keikaCount{
    font-size:13px;
    color:var(--gray-400);
    font-family:var(--mono)
}
.keika-cb{
    accent-color:var(--blue-600);
}
th.company_title{
    position:sticky;
    left:0;
    z-index:7;
    background:var(--blue-50);
    font-size:13px;
    font-weight:700;
    padding:8px 8px;
    border-bottom:none;
    box-shadow: inset -2px 0 0 #9ca0ae, inset 0 -2px 0 var(--blue-200);
}
th.other_title{
    position:sticky;
    left:0;
    z-index:6;
    background:var(--gray-100);
    font-size:13px;
    font-weight:700;
    border-bottom:none;
    box-shadow: inset -2px 0 0 #9ca0ae, inset 0 -1px 0 var(--gray-200);
}
/*
th.view_data{
    border-right:2px solid #9ca0ae!important;
}
*/
tr.bg_gray{
    background:var(--gray-100);
}
th.border_right{
    border-right:2px solid #9ca0ae!important
}
td.foot_title{
    position:sticky;
    left:0;z-index:6;
    /*background:var(--gray-100);*/
    font-size:13px;
    font-weight:700;
    /*border-bottom:none;*/
    /*box-shadow: inset -2px 0 0 #9ca0ae, inset 0 -1px 0 var(--gray-200);*/
    border-top: 1px solid var(--gray-200);
}
td.foot_data{
    /*border-right:2px solid #9ca0ae!important;*/
    background:var(--gray-100);
}
td.foot_last{
    background:var(--gray-100);
}
img.top_logo{
    width: 140px;
    height: 29px;
    object-fit: contain;
    /*background-color: #0f3d70;*/
    object-position: left;
}
img.top_logo_moc{
    width: 140px;
    height: 29px;
    object-fit: contain;
    background-color: #0f3d70;
    object-position: left;
}
div.screen-section_mg{
    max-width:1300px;
    margin : 0 auto 72px;
}
p.pad_b_18{
    padding-bottom: 18px;
}
div#errMsg{
    font-weight: bold;
    color: red;
    font-size: 25px;
    margin: 10px 10px 10px 10px;
}
button.cf_chip_del{
    border: none;
    outline: none;
}
button.cf_chip_del:hover { 
    background: var(--gray-300); 
}
div.flex_g_6{
    display:flex;
    gap:6px
}
div.flex_g_10{
    display:flex;
    gap:10px
}
span.color_red{
    color: var(--red);
}
td input {
  width: 100%;
  box-sizing: border-box;
}

/* 印刷時の比較表レイアウトを画面用の固定・スクロール指定から切り離す */
@media print {
  html,
  body {
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: visible !important;
  }

  .views-wrapper,
  #views_window,
  #print-pages,
  .page {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    max-height: none;
    overflow: visible !important;
  }

  .sticky-header,
  .ct-tbl-merged thead th,
  .table_nen {
    position: static !important;
    left: auto !important;
    top: auto !important;
  }

  .ct-tbl-merged {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
}

/* ===========================================================================
   Support Login
   ========================================================================== */
.support-display-block { display: block; }
.support-display-none { display: none; }

.support-section {
  width: 100%;
  min-width: 0;
}

.support-app {
  width: 100%;
  max-width: 900px;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.support-contact-wrap {
  width: 100%;
  box-sizing: border-box;
}

.support-form {
  width: 100%;
  min-width: 0;
}

.support-form-card {
  width: 100%;
  max-width: 900px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(10,40,90,.08);
  position: relative;
  overflow: hidden;
}

.support-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0F3D70 0%, #1A6FC4 100%);
}

.support-error-text { color: red; }

.support-group-title-required {
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-success-offset { padding-top: 16px; }

.support-success-wrap {
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  background: var(--gray-50);
}

.support-success-content {
  width: 100%;
  max-width: 580px;
}

.support-success-icon {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
}

.support-ripple {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(26,111,196,.15);
  animation: support-ripple 2.4s ease-out infinite;
}

.support-ripple-second { animation-delay: .8s; }

.support-success-icon-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8F2FC 0%, rgba(26,111,196,.1) 100%);
  border: 2px solid rgba(26,111,196,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(26,111,196,.18);
  position: relative;
  z-index: 1;
}

.support-success-check { animation: support-draw-check .55s ease .35s forwards; }

@keyframes support-ripple {
  0% { transform: scale(.85); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes support-draw-check {
  to { stroke-dashoffset: 0; }
}

.support-success-title {
  font-size: 20px;
  font-weight: 700;
  color: #0B2D52;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 10px;
}

.support-success-description {
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
  line-height: 2;
  margin-bottom: 24px;
}

.support-success-emphasis { color: #0B2D52; }

.support-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 2px 8px rgba(10,40,90,.08);
  margin-bottom: 20px;
}

.support-progress-step {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.support-progress-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1A6FC4;
  border: 2px solid #1A6FC4;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.support-progress-check {
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px,-1px);
}

.support-progress-label {
  font-size: 13px;
  font-weight: 700;
  color: #1A6FC4;
  white-space: nowrap;
}

.support-progress-line {
  flex: 1;
  height: 2px;
  background: #1A6FC4;
  margin-bottom: 16px;
}

.support-flow-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(10,40,90,.08);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.support-flow-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0F3D70 0%, #1A6FC4 100%);
  border-radius: 12px 12px 0 0;
}

.support-flow-heading {
  font-size: 13px;
  font-weight: 700;
  color: #0B2D52;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-flow-heading-mark {
  display: inline-block;
  width: 3px;
  height: 14px;
  background: #1A6FC4;
  border-radius: 2px;
  flex-shrink: 0;
}

.support-flow-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.support-flow-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.support-flow-item-first { padding: 14px 0 0; }

.support-flow-item-last {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

.support-flow-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #E8F2FC;
  border: 1px solid #C5DCF5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.support-flow-step-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #1A6FC4;
  margin-bottom: 3px;
}

.support-flow-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #0B2D52;
  margin-bottom: 3px;
}

.support-flow-step-description {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===========================================================================
   Contradiction
   ========================================================================== */
.contradiction-wrap {
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  background: var(--gray-50);
}

.contradiction-content {
  width: 100%;
  max-width: 520px;
}

.contradiction-icon {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
}

.contradiction-ripple {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(200,154,46,.2);
  animation: contradiction-ripple 2.4s ease-out infinite;
}

.contradiction-ripple-second { animation-delay: .8s; }

.contradiction-icon-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef9ec 0%, rgba(200,154,46,.12) 100%);
  border: 2px solid rgba(200,154,46,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(200,154,46,.2);
  position: relative;
  z-index: 1;
  font-size: 42px;
  font-weight: 700;
  color: #C89A2E;
}

@keyframes contradiction-ripple {
  0% { transform: scale(.85); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

.contradiction-title {
  font-size: 20px;
  font-weight: 700;
  color: #0B2D52;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 10px;
}

.contradiction-description {
  font-size: 12px;
  color: var(--gray-600);
  text-align: center;
  line-height: 2;
  margin-bottom: 24px;
}

.contradiction-info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(10,40,90,.08);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.contradiction-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0F3D70 0%, #1A6FC4 100%);
}

.contradiction-info-heading {
  font-size: 13px;
  font-weight: 700;
  color: #0B2D52;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contradiction-info-heading-mark {
  display: inline-block;
  width: 3px;
  height: 14px;
  background: #1A6FC4;
  border-radius: 2px;
  flex-shrink: 0;
}

.contradiction-step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contradiction-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contradiction-step-first {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.contradiction-step-last { padding: 12px 0 0; }

.contradiction-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #E8F2FC;
  border: 1px solid #C5DCF5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contradiction-step-number {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #1A6FC4;
  margin-bottom: 3px;
}

.contradiction-step-title {
  font-size: 12px;
  font-weight: 700;
  color: #0B2D52;
  margin-bottom: 2px;
}

.contradiction-step-description {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.6;
}
.ins-mgmt-tbl .th_pad_1{
    padding:  6px 1px;
    font-size: 12px;
}
.contradiction-action { text-align: center; }

.contradiction-login-button { display: inline; }

div.cart_info_line{
    display:flex;
}
div.cart_title{
    width: 70px;
}
div.button_space{
    width:100%;
    display:flex;
    margin-bottom:10px;
}
@media screen and (max-width: 1024px) {
  .result-table .fix,
  .result-table thead th.fix {
    /*position: static !important;*/
    left: auto !important;
    will-change: auto;
  }
  .result-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.result-table {
  table-layout: fixed;
  width: max-content;
  min-width: 100%;
}
}

  .video-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    padding:20px;
  }
  @media(max-width:900px){
    .video-grid{ grid-template-columns:repeat(2,1fr); }
  }

  .video-card{
    border:1px solid var(--border);
    background:#fff;
    text-decoration:none;
    color:inherit;
    display:block;
    cursor:pointer;
    transition:box-shadow .15s ease, transform .15s ease;
  }
  .video-card:hover{
    box-shadow:0 4px 14px rgba(26,75,143,0.15);
    transform:translateY(-2px);
  }
  .thumb{
    position:relative;
    aspect-ratio:16/9;
    background:linear-gradient(135deg,#274d84,#1a3763);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
  }
  .thumb .step-label{
    position:absolute;
    top:8px;
    left:8px;
    background:rgba(0,0,0,0.45);
    color:#fff;
    font-size:10.5px;
    padding:2px 8px;
    border-radius:3px;
  }
  .thumb .duration{
    position:absolute;
    bottom:8px;
    right:8px;
    background:rgba(0,0,0,0.7);
    color:#fff;
    font-size:11px;
    padding:2px 6px;
    border-radius:3px;
  }
  .play-btn{
    width:46px;height:46px;
    border-radius:50%;
    background:rgba(255,255,255,0.92);
    display:flex;align-items:center;justify-content:center;
  }
  .play-btn::after{
    content:"";
    border-style:solid;
    border-width:9px 0 9px 15px;
    border-color:transparent transparent transparent var(--navy);
    margin-left:3px;
  }
  .video-info{
    padding:12px 14px 16px;
  }
  .video-info .yt-tag{
    display:inline-flex;
    align-items:center;
    gap:4px;
    font-size:10.5px;
    color:#c4302b;
    font-weight:bold;
    margin-bottom:6px;
  }
  .video-info h4{
    margin:0 0 6px;
    font-size:13.5px;
    line-height:1.5;
    color:var(--text);
  }
  .video-info p{
    margin:0;
    font-size:11.5px;
    color:var(--text-sub);
    line-height:1.6;
  }

  .note{
    padding:12px 20px 20px;
    font-size:11.5px;
    color:var(--text-sub);
  }

  /* ---- modal player ---- */
  .modal-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(15,25,40,0.75);
    z-index:100;
    align-items:center;
    justify-content:center;
    padding:24px;
  }
  .modal-overlay.open{ display:flex; }
  .modal-box{
    background:#fff;
    width:100%;
    max-width:860px;
    box-shadow:0 10px 40px rgba(0,0,0,0.35);
  }
  .modal-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 18px;
    background:var(--navy);
    color:#fff;
  }
  .modal-head h4{
    margin:0;
    font-size:14px;
    font-weight:normal;
  }
  .modal-close{
    background:none;
    border:none;
    color:#fff;
    font-size:20px;
    line-height:1;
    cursor:pointer;
    padding:2px 6px;
  }
  .modal-player{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    background:#000;
  }
  .modal-player iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
  }
  .modal-desc{
    padding:14px 18px;
    font-size:12.5px;
    color:var(--text-sub);
    line-height:1.7;
  }
  .dot{
    width:8px;height:8px;border-radius:50%;
    background:var(--blue-accent);
  }