@charset "UTF-8";

/* ==========================================================================
   Base / Typography
   ========================================================================== */

html{
  box-sizing:border-box;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
*,*::before,*::after{box-sizing:inherit}

img{max-width:100%;height:auto;vertical-align:middle}
a{color:#b71c1c;text-decoration:none}
a:hover,a:focus{text-decoration:underline}


/* ==========================================================================
   Section / Spacing
   ========================================================================== */

.section{padding:3.2rem 0}
.section--tight{padding:2.4rem 0}
.section-gap{margin-top:3.2rem}
.section-gap-lg{margin-top:4.8rem}


/* ==========================================================================
   Headings / Labels
   ========================================================================== */

.eyebrow{
  display:block;
  font-size:1.2rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#b71c1c;
  margin-bottom:.4rem;
}

.h-title{
  font-size:2.6rem;
  line-height:1.35;
  margin-bottom:1.4rem;
}

.section-title{
  font-size:1.6rem;
  font-weight:700;
  border-bottom:3px solid #c7382a;
  display:inline-block;
  padding-bottom:.25rem;
}


/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb-wrap{
  margin:0 0 1.2rem 0;
  font-size:.9rem;
}

.breadcrumb{
  padding:0;
  margin:0;
  background:transparent;
}

.breadcrumb-item + .breadcrumb-item::before{
  content:">";
  padding:0 .5rem;
  color:#666;
}

.breadcrumb-item a{
  color:#666;
  text-decoration:none;
}

.breadcrumb-item.active{
  color:#000;
  font-weight:600;
}


/* ==========================================================================
   Tables (generic)
   ========================================================================== */

table{width:100%;border-collapse:collapse;margin:1rem 0}
th,td{border:1px solid #e6e6e6;padding:.6rem .8rem;vertical-align:middle}
thead th{background:#f6f6f6}
.table-sm th,.table-sm td{padding:.45rem .6rem}


/* ==========================================================================
   TablePress
   ========================================================================== */

.tablepress{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:0 0 18px;
  font-size:13px;
  line-height:1.55;
}

.tablepress th,
.tablepress td{
  padding:8px 10px;
  vertical-align:top;
  border:0;
  border-top:1px solid rgba(0,0,0,.08);
  background:transparent;
  color:inherit;
}

.tablepress thead th{
  font-weight:600;
  color:#111;
  background:rgba(0,0,0,.03);
  border-top:1px solid rgba(0,0,0,.08);
  border-bottom:1px solid rgba(0,0,0,.08);
}

.tablepress tbody tr:first-child td{
  border-top:0;
}

.dataTables_wrapper{
  margin:0 0 18px;
}


/* ==========================================================================
   PDF Embed
   ========================================================================== */

.fean-pdf{
  margin:1.25rem 0;
  padding:1rem;
  border:1px solid rgba(0,0,0,.10);
  border-radius:1rem;
  background:#fff;
}

.fean-pdf .fean-pdf__lead{
  margin:0 0 .75rem;
  font-size:.95rem;
  line-height:1.6;
}

.fean-pdf .fean-pdf__actions{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  margin:0 0 .75rem;
}

.fean-pdf :where(iframe,object,embed){
  display:block;
  width:100%!important;
  max-width:100%;
  border:0;
}


/* =========================================================
   ページタイトル（新方式：h1.fean-title）
========================================================= */

.fean-title{
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 500;
  padding: .35rem .75rem;
  margin: 1.05rem 0 1rem 0;
  display: block;
}

/* タイトル内リンクの色事故防止 */
.fean-title a,
.fean-title a:visited,
.fean-title a:hover,
.fean-title a:active{
  color: inherit;
  text-decoration: inherit;
}

/* root background colors */
.fean-title.fean-root-news           { background-color:#dc3545; } /* danger */
.fean-title.fean-root-public-info    { background-color:#0dcaf0; } /* info */
.fean-title.fean-root-works          { background-color:#198754; } /* success */
.fean-title.fean-root-equipment-info { background-color:#0d6efd; } /* primary */
.fean-title.fean-root-basic          { background-color:#212529; } /* dark */
.fean-title.fean-root-topics         { background-color:#6c757d; } /* secondary */
.fean-title.fean-root-laws           { background-color:#ffc107; } /* warning */
.fean-title.fean-root-membersonly    { background-color:#6610f2; } /* indigo-400 相当 */
.fean-title.fean-root-unknown        { background-color:#6c757d; }

/* text color by root + level */
/* news */
.fean-title.fean-root-news.fean-lv1 { color:#ffffff; }
.fean-title.fean-root-news.fean-lv2 { color:#f8f9fa; }
.fean-title.fean-root-news.fean-lv3 { color:#ffe5e5; }

/* public-info */
.fean-title.fean-root-public-info.fean-lv1 { color:#003b44; }
.fean-title.fean-root-public-info.fean-lv2 { color:#084c57; }
.fean-title.fean-root-public-info.fean-lv3 { color:#0b6a78; }

/* works */
.fean-title.fean-root-works.fean-lv1 { color:#ffffff; }
.fean-title.fean-root-works.fean-lv2 { color:#e6f4ee; }
.fean-title.fean-root-works.fean-lv3 { color:#d1e7dd; }

/* equipment-info */
.fean-title.fean-root-equipment-info.fean-lv1 { color:#ffffff; }
.fean-title.fean-root-equipment-info.fean-lv2 { color:#e7f1ff; }
.fean-title.fean-root-equipment-info.fean-lv3 { color:#cfe2ff; }

/* basic */
.fean-title.fean-root-basic.fean-lv1 { color:#ffffff; }
.fean-title.fean-root-basic.fean-lv2 { color:#e9ecef; }
.fean-title.fean-root-basic.fean-lv3 { color:#dee2e6; }

/* topics */
.fean-title.fean-root-topics.fean-lv1 { color:#ffffff; }
.fean-title.fean-root-topics.fean-lv2 { color:#f1f3f5; }
.fean-title.fean-root-topics.fean-lv3 { color:#dee2e6; }

/* laws */
.fean-title.fean-root-laws.fean-lv1 { color:#212529; }
.fean-title.fean-root-laws.fean-lv2 { color:#343a40; }
.fean-title.fean-root-laws.fean-lv3 { color:#495057; }

/* membersonly */
.fean-title.fean-root-membersonly.fean-lv1 { color:#ffffff; }
.fean-title.fean-root-membersonly.fean-lv2 { color:#ede7ff; }
.fean-title.fean-root-membersonly.fean-lv3 { color:#d6ccff; }

/* unknown */
.fean-title.fean-root-unknown.fean-lv1 { color:#ffffff; }
.fean-title.fean-root-unknown.fean-lv2 { color:#f1f3f5; }
.fean-title.fean-root-unknown.fean-lv3 { color:#dee2e6; }


/* =========================================================
   Footer (visual only)
   - band width = header container width (Bootstrap .container)
   - background / text / link
   - button size + color (normal red / hover white)
   - height tighten (footer + button)
========================================================= */

.site-footer.footer-inner{
  /* outer footer should not define the band width */
  max-width:none;
  margin-left:0;
  margin-right:0;
  padding-left:0;
  padding-right:0;

  /* override footer.php utilities (bg-light / py-4) */
  background:transparent !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

/* band is on the inner .container (same width as header .container) */
.site-footer.footer-inner > .container{
  background-color:#212529;
  color:#f8f9fa;

  /* height tighten */
  padding-top:1rem !important;
  padding-bottom:1rem !important;
}

/* footer 内リンク色 */
.site-footer.footer-inner a,
.site-footer.footer-inner a:visited{
  color:#f8f9fa;
  text-decoration:none;
}
.site-footer.footer-inner a:hover,
.site-footer.footer-inner a:focus{
  color:#ffffff;
  text-decoration:underline;
}

/* footer 内ボタン（通常：赤 / hover：白）+ height tighten */
.site-footer.footer-inner .btn{
  font-size:.9rem;
  padding-left:1.1rem;
  padding-right:1.1rem;

  /* height tighten */
  padding-top:.35rem;
  padding-bottom:.35rem;
  line-height:1.15;

  background-color:#dc3545;
  border-color:#dc3545;
  color:#ffffff;
}
.site-footer.footer-inner .btn:hover,
.site-footer.footer-inner .btn:focus{
  background-color:#ffffff;
  border-color:#ffffff;
  color:#dc3545;
}
