/* =========================================================
   一誠株式会社 - user.css 最终整理版
   ========================================================= */


/* ===== 页面背景 ===== */
body,
.site,
.site-grid {
  background: #f5f6f8 !important;
}


/* ===== 固定 Header（PC + 手机共用） ===== */
header.container-header.full-width {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1100 !important;
  background: linear-gradient(135deg, #233472 0%, #3a49a5 100%) !important;
}


/* ===== Logo 图片 ===== */
header.container-header.full-width .navbar-brand img,
header.container-header.full-width .brand-logo img {
  max-height: 72px !important;
  width: auto !important;
  display: block !important;
}


/* ===== 去掉 Logo 周围可能的线 ===== */
header.container-header.full-width .brand-logo,
header.container-header.full-width .brand-logo a,
header.container-header.full-width .brand-logo .site-title,
header.container-header.full-width .navbar-brand,
header.container-header.full-width .navbar-brand a,
header.container-header.full-width .navbar-brand span {
  text-decoration: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}


/* ===== 顶部菜单文字颜色 ===== */
.container-header .mod-menu .nav-item > a,
.container-header .mod-menu > li > a {
  color: #ffffff !important;
}


/* ===== 许可号（PC + 手机） ===== */
header.container-header.full-width::after {
  content: "埼玉県知事 許可（般-7）第79092号";
  position: absolute;
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: left;
  z-index: 1201;
}


/* ===== 给正文整体让出 header 高度 ===== */
.site-grid {
  padding-top: 150px !important;
}


/* ===== 页脚 ===== */
footer.container-footer.footer.full-width,
.container-footer,
.footer {
  background: #24357a !important;
  color: #ffffff !important;
}

.footer a,
.container-footer a {
  color: #ffffff !important;
  text-decoration: none !important;
}


/* ===== 全站文章基础样式 ===== */
.item-page,
.com-content-article,
.com-content-article__body {
  text-align: left !important;
}

.item-page p,
.com-content-article p,
.com-content-article__body p {
  margin-top: 0 !important;
}


/* =========================================================
   PC 端
   ========================================================= */
@media (min-width: 769px) {

  /* ===== PC：正文左边界不要过度居中 ===== */
  .container-component,
  .site-grid > .container-component,
  main {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .item-page,
  .com-content-article,
  .com-content-article__body {
    max-width: 860px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 17px !important;
    line-height: 1.95 !important;
  }

  .item-page p,
  .com-content-article p,
  .com-content-article__body p,
  .item-page li,
  .com-content-article li,
  .com-content-article__body li {
    font-size: 1rem !important;
    line-height: 1.95 !important;
    margin-bottom: 1.2rem !important;
  }

  .item-page h1,
  .com-content-article h1 {
    font-size: 2rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.2rem !important;
  }

  .item-page h2,
  .com-content-article h2 {
    font-size: 1.65rem !important;
    line-height: 1.45 !important;
    margin-top: 2.2rem !important;
    margin-bottom: 1rem !important;
  }

  .item-page h3,
  .com-content-article h3 {
    font-size: 1.3rem !important;
    line-height: 1.5 !important;
    margin-top: 1.8rem !important;
    margin-bottom: 0.7rem !important;
  }

  /* ===== PC：许可号位置 ===== */
  header.container-header.full-width::after {
    top: 8px;
    left: 300px;
    right: auto;
  }
}


/* =========================================================
   手机端
   ========================================================= */
@media (max-width: 768px) {

  /* ===== Header 布局 ===== */
  header.container-header.full-width {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 0.5rem 0.75rem !important;
    min-height: 72px !important;
  }

  header.container-header.full-width > .grid-child:first-child {
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header.container-header.full-width > .grid-child.container-nav {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }

  header.container-header.full-width .navbar-brand img,
  header.container-header.full-width .brand-logo img {
    max-height: 42px !important;
    width: auto !important;
  }

  /* ===== 手机端正文让出 header 高度 ===== */
  .site-grid {
    padding-top: 72px !important;
  }

  /* ===== 手机端许可号 ===== */
  header.container-header.full-width::after {
    top: 6px;
    left: 12px;
    right: auto;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  /* ===== 三条线按钮 ===== */
  header.container-header.full-width .navbar-toggler {
    margin: 0 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  }

  header.container-header.full-width .navbar-toggler:hover,
  header.container-header.full-width .navbar-toggler:focus {
    background: rgba(255, 255, 255, 0.10) !important;
  }

  /* ===== 下拉菜单 ===== */
  header.container-header.full-width .navbar-collapse {
    position: fixed !important;
    top: 80px !important;
    right: 12px !important;
    left: auto !important;
    min-width: 220px !important;
    background: rgba(37, 56, 125, 0.96) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    padding: 0.5rem !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 28px rgba(8, 16, 48, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    z-index: 1200 !important;
  }

  header.container-header.full-width .mod-menu,
  header.container-header.full-width .mod-menu.nav {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  header.container-header.full-width .mod-menu > li,
  header.container-header.full-width .mod-menu .nav-item {
    margin: 0 !important;
    padding: 0 !important;
  }

  header.container-header.full-width .mod-menu > li > a,
  header.container-header.full-width .mod-menu .nav-item > a {
    display: block !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    padding: 0.75rem 0.9rem !important;
    border-radius: 10px !important;
    transition: background-color 0.2s ease !important;
  }

  header.container-header.full-width .mod-menu > li > a:hover,
  header.container-header.full-width .mod-menu .nav-item > a:hover,
  header.container-header.full-width .mod-menu > li > a:focus,
  header.container-header.full-width .mod-menu .nav-item > a:focus {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
  }

  header.container-header.full-width .mod-menu .current > a,
  header.container-header.full-width .mod-menu .active > a {
    background: rgba(255, 255, 255, 0.14) !important;
  }

  /* ===== 手机端正文基础 ===== */
  .item-page,
  .com-content-article,
  .com-content-article__body {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .item-page p,
  .com-content-article p,
  .com-content-article__body p {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
    line-height: 1.8 !important;
    margin-bottom: 0.9rem !important;
  }

  .item-page h1,
  .com-content-article h1 {
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
  }

  .item-page h2,
  .com-content-article h2 {
    font-size: 1.3rem !important;
    line-height: 1.45 !important;
    margin-top: 1.8rem !important;
    margin-bottom: 0.8rem !important;
  }

  .item-page h3,
  .com-content-article h3 {
    font-size: 1.15rem !important;
    line-height: 1.45 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
}


/* =========================================================
   会社概要 表格样式
   去外框，只留横线
   ========================================================= */
.item-page table,
.com-content-article table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: none !important;
  background: transparent !important;
  margin: 1.5rem 0 2rem !important;
}

.item-page table col,
.com-content-article table col {
  width: auto !important;
}

.item-page table tr,
.com-content-article table tr {
  border-top: 1px solid #cfd5df !important;
}

.item-page table tr:last-child,
.com-content-article table tr:last-child {
  border-bottom: 1px solid #cfd5df !important;
}

.item-page table th,
.item-page table td,
.com-content-article table th,
.com-content-article table td {
  border: none !important;
  padding: 1rem 1rem !important;
  text-align: left !important;
  vertical-align: top !important;
  background: transparent !important;
  line-height: 1.8 !important;
}

.item-page table th,
.com-content-article table th {
  width: 180px !important;
  font-weight: 700 !important;
  color: #1e2f68 !important;
  white-space: nowrap !important;
}

.item-page table ul,
.com-content-article table ul {
  margin: 0 !important;
  padding-left: 1.2rem !important;
}

.item-page table li,
.com-content-article table li {
  margin-bottom: 0.25rem !important;
  line-height: 1.7 !important;
}


/* ===== 手机端：会社概要表格保持真正表格，不拆块 ===== */
@media (max-width: 768px) {
  .item-page table,
  .com-content-article table {
    display: table !important;
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
  }

  .item-page table tbody,
  .com-content-article table tbody {
    display: table-row-group !important;
  }

  .item-page table tr,
  .com-content-article table tr {
    display: table-row !important;
  }

  .item-page table th,
  .item-page table td,
  .com-content-article table th,
  .com-content-article table td {
    display: table-cell !important;
    width: auto !important;
    padding: 0.75rem 0.55rem !important;
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    vertical-align: top !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  .item-page table th,
  .com-content-article table th {
    width: 7.5em !important;
    min-width: 7.5em !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .item-page table td,
  .com-content-article table td {
    width: auto !important;
  }

  .item-page table ul,
  .com-content-article table ul {
    margin: 0 !important;
    padding-left: 1rem !important;
  }

  .item-page table li,
  .com-content-article table li {
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}