@charset "utf-8";
/*
 * B Inc. コーポレートサイト
 * 旧 WordPress テーマ（jig / binc）の見た目を踏襲し、zoom ではなくメディアクエリでスマホに対応する。
 * 本文の文字色・リンク色は、背景 #f6f6f6 に対してコントラスト比 4.5:1 以上になるよう旧テーマから調整している
 * （本文 #678288 → #4f6a70、リンク #00badc → #007a93）。
 */

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, table, th, td, figure, blockquote {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: bold; }

/* ---------- 基本 ---------- */
body {
  background: #1c2426;
  color: #1c2426;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 本文が短いページでも、フッターを画面の下端に置く（本文の領域を伸ばす） */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body > .content { flex: 1 0 auto; }
a { color: #4f6a70; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible { outline: 2px solid #007a93; outline-offset: 2px; }

.inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* ---------- ヘッダー ---------- */
.site-header {
  background: #f6f6f6 url(../img/header_bar.gif) top center repeat-x;
  border-bottom: 1px solid #dcdcdc;
  height: 100px;
}
.site-header .inner { height: 100%; }
.site-header h1 { font-size: inherit; }
.site-logo {
  position: absolute;
  top: 30px;
  left: 10px;
}
.site-logo img { height: 48px; width: auto; }
.nav-toggle,
.nav-toggle-label { display: none; }
.global-nav {
  position: absolute;
  top: 30px;
  right: 10px;
}
.global-nav li {
  float: left;
  padding: 20px 20px 0;
}
.global-nav img { height: 20px; width: auto; }

/* ---------- ページ上部の帯・パンくず ---------- */
.caption {
  background: #fbfbfb;
  border-bottom: 1px solid #dcdcdc;
  padding: 25px 0;
}
.caption h1,
.caption p {
  font-size: 48px;
  font-weight: bold;
  line-height: 135px;
  height: 135px;
}
.breadcrumb {
  background: #e6e6e6;
  border-bottom: 1px solid #dcdcdc;
  padding: 10px 0;
}
.breadcrumb li { display: inline; }
.breadcrumb li:not(:last-child)::after { content: "｜"; color: #4f6a70; }

/* ---------- 本文 ---------- */
.content {
  background: #f6f6f6;
  padding: 30px 0 40px;
  min-height: 400px;
}
.content::after { content: ""; display: block; clear: both; }
.section { margin: 0 0 40px; }
.section h2 { font-size: 20px; margin: 0 0 10px; }
.section h3 { font-size: 16px; margin: 0 0 10px; }
.section p { margin: 0 0 20px; color: #4f6a70; }
.section p a,
.section li a,
.section td a { color: #007a93; text-decoration: underline; }
.section li { color: #4f6a70; }
.section ol { margin-left: 20px; list-style: decimal; }
.section ol li { margin: 20px 0.5em; }

/* 旧テーマ・WordPress 由来の配置用クラス */
.aligncenter { display: block; margin: 0 auto; }
img.alignleft { display: block; float: left; padding: 0 20px 20px 0; }
img.alignright { display: block; float: right; padding: 0 0 20px 20px; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.strike { text-decoration: line-through; }
.disc { list-style: disc; }
.indent { text-indent: 1em; }
.add-gap { margin-right: 1ex; }
.inline_block { display: inline-block; }

/* ---------- サイドバー付きのレイアウト（記事・サービス詳細） ---------- */
.with-sidebar {
  display: grid;
  grid-template-columns: 250px minmax(0, 840px);
  justify-content: space-between;
}
.with-sidebar > article { grid-column: 2; grid-row: 1; word-break: break-all; }
.with-sidebar > .sidebar { grid-column: 1; grid-row: 1; }
.sidebar h2 { font-size: 20px; margin: 0 0 10px; }
.sidebar h2 a { color: #1c2426; }
.sidebar ul { list-style: disc inside; }
.sidebar li { margin: 10px 0 0; color: #4f6a70; }

/* ---------- 記事 ---------- */
.label {
  display: inline-block;
  min-width: 105px;
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}
.label-press { background: #007a93; }
.label-topics { background: #a35f00; }
.label-publicity { background: #367f00; }
.post > .label { margin: 0 0 20px; }
.post > h1 {
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}
.post > .date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 20px;
  padding: 5px 0;
}
.post > .date::before { content: ""; flex: 1; border-top: 1px solid #dcdcdc; }
.post-body {
  color: #4f6a70;
  font-size: 15.6px;
  line-height: 1.5;
  margin: 0 0 40px;
}
.post-body::after { content: ""; display: block; clear: both; }
.post-body p { margin: 0 0 20px; }
.post-body a { color: #007a93; text-decoration: underline; }
.post-body h2 { font-size: 18px; margin: 0 0 10px; color: #1c2426; }
.post-body h3 { font-size: 16px; margin: 0 0 10px; color: #1c2426; }
.post-body img { padding: 5px 10px; }
.post-body div { margin: 20px 0; }
.post-body .indent { padding-left: 40px; text-indent: 0; }
.post-body .indent .unindent { margin-left: -40px; }
.post-body ul.disc, .post-body ul.indent { margin: 0 0 20px; }
.post-body table { margin: 0 0 20px; }
.post-body th, .post-body td { border: 1px solid #000; padding: 4px 8px; }
.post-body table.company_info th,
.post-body table.company_info td { border: 0; padding: 4px; }
.post-body table.company_info th { white-space: nowrap; text-align: right; font-weight: normal; }
.pressinfo {
  background: #edf6f6;
  border-radius: 5px;
  padding: 20px 30px;
  margin: 0 0 20px;
  color: #4f6a70;
}
.pressinfo h2 {
  font-size: 18px;
  font-weight: normal;
  color: #1c2426;
  border-bottom: 1px solid #ccc;
  padding: 0 10px 10px;
  margin: 0 0 10px;
}
.pressinfo p { margin: 0 30px; font-size: 14px; line-height: 1.8; }
.pressinfo a { color: #007a93; text-decoration: underline; }
.attention p { font-size: 12px; line-height: 1.2; color: #4f6a70; }

/* 現行の記事・サービス詳細のページ内 <style> から移した書式 */
.post-body table.spec th { background: #dcdcdc; text-align: center; }
.post-body table.spec td { padding: 4px 10px; }
.post-body table.spec td.name { text-align: center; vertical-align: middle; }
.programming-book table { border-collapse: collapse; }
.post-body .programming-book th,
.post-body .programming-book td { border: 1px solid #4f6a70; padding: 0.5rem; }
.service .section .programming-book th,
.service .section .programming-book td { border: 1px solid lightgray; padding: 0.5rem; }
.programming-book ul { list-style: disc; margin-left: 1em; }

/* ---------- サービス詳細 ---------- */
.service > h1 { font-size: 20px; margin: 0 0 20px; line-height: 1.5; }
.service .section { color: #4f6a70; }
.service .section h2 { font-size: 20px; margin: 30px 0 20px; line-height: 1.3; color: #1c2426; }
.service .section h3 { font-size: 14px; margin: 0 0 5px; color: #1c2426; }
.service .section section { margin: 0 0 30px; }
.service .section ul { list-style: disc; margin: 0 0 20px 20px; }
.service .section table { margin: 0 0 20px; background: #fff; }
.service .section th,
.service .section td { border: 1px solid #d0d0d0; padding: 10px 5px; }
.service .download { border: 15px solid #ddd; padding: 15px; background: #fff; }
.service .download::after { content: ""; display: block; clear: both; }
.service .image-left { float: left; width: 350px; margin: 0 20px 0 0; }
.service .image-right p > img { margin: 30px 0 0 10px; }
.service > p { color: #4f6a70; }

/* ---------- 最新情報の一覧 ---------- */
.news-tabs {
  display: flex;
  gap: 10px;
  position: relative;
  top: 1px;
  z-index: 1;
}
.news-tabs a {
  display: block;
  width: 140px;
  height: 55px;
  line-height: 55px;
  border-radius: 10px 10px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}
.news-tabs a.selected { height: 56px; }
.tab-all a { background: #f6f6f6; color: #1c2426; border: 1px solid #dcdcdc; border-bottom: 0; }
.tab-press a { background: #007a93; }
.tab-topics a { background: #a35f00; }
.tab-publicity a { background: #367f00; }
.news-panel {
  border: 1px solid #dcdcdc;
  border-radius: 0 10px 10px 10px;
  padding: 0 20px 20px;
}
.news-panel-press { border-color: #007a93; }
.news-panel-topics { border-color: #a35f00; }
.news-panel-publicity { border-color: #367f00; }
.news-list {
  display: grid;
  grid-template-columns: 140px 130px 1fr;
  column-gap: 10px;
}
.news-list dt,
.news-list dd { padding: 20px 0; }
.news-list .month { font-weight: bold; font-size: 14px; }
.news-list .title { color: #4f6a70; }
.news-list .title a { color: #007a93; text-decoration: underline; }
.pager ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.pager a {
  display: block;
  min-width: 40px;
  padding: 8px 12px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #dcdcdc;
  color: #007a93;
  font-size: 14px;
  text-align: center;
}
.pager a[aria-current="page"] { background: #007a93; border-color: #007a93; color: #fff; }

/* ---------- HOME ---------- */
.top {
  display: grid;
  /* 左の列は縮められるようにし、PC 表示のまま幅が狭いときに右の列がはみ出さないようにする */
  grid-template-columns: minmax(0, 820px) 260px;
  column-gap: 20px;
  justify-content: space-between;
  align-items: start;
}
.top-news { grid-column: 2; grid-row: 1; }
.top-contents { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; gap: 20px; }
.top-news h2 { margin: 0 0 10px; line-height: 1; }
.top-news dl { display: grid; grid-template-columns: 45px 1fr; }
.top-news dt {
  padding: 15px 0 0 3px;
  color: #2f3c3f;
  text-align: center;
  font-weight: bold;
  line-height: 1;
  border-bottom: 1px solid #dcdcdc;
}
.top-news .day { font-size: 18px; }
.top-news .month { font-size: 12px; }
.top-news dd { padding: 10px 5px 10px 0; border-bottom: 1px solid #dcdcdc; }
.top-news h3 { color: #2f3c3f; font-size: 14px; margin: 0 0 5px; line-height: 20px; }
.top-news dd p { font-size: 12px; line-height: 17px; height: 51px; margin: 0 0 10px; overflow: hidden; }
.top-news .more { text-align: center; margin: 20px 0 0; }
.button {
  display: inline-block;
  min-width: 160px;
  padding: 8px 20px;
  border-radius: 3px;
  background: #007a93;
  box-shadow: 0 4px 0 #005566;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}
.button:hover, .button:focus { text-decoration: none; background: #006a80; }
.button::after { content: " ▸"; }
.banner a {
  display: block;
  width: 250px;
  height: 305px;
  padding: 5px;
  background: #515455;
  color: #fff;
  text-decoration: none;
}
.banner span { display: block; }
.banner .logo {
  width: 240px;
  height: 200px;
  margin: 0 0 10px;
  overflow: hidden;
  background: #fff;
}
.banner .logo img { width: 240px; height: 200px; object-fit: cover; }
.banner .title { font-size: 14px; font-weight: bold; margin: 0 0 5px; padding: 0 10px; }
.banner .outline { font-size: 11px; padding: 0 10px; }

/* ---------- サービス一覧 ---------- */
.service-list { display: flex; flex-wrap: wrap; gap: 20px 18px; }
.service-list li { width: 262px; background: #e3e3e3; padding: 0 0 20px; }
.service-list a { display: block; height: 100%; color: #1c2426; text-decoration: none; }
.section .service-list a { text-decoration: none; color: #1c2426; }
.service-list span { display: block; }
.service-list .logo { width: 260px; margin: 1px auto 10px; background: #fff; text-align: center; }
.service-list .title { font-weight: bold; padding: 0 10px; margin: 0 0 5px; }
.service-list .outline { font-size: 11px; padding: 0 10px; }

/* ---------- 会社情報 ---------- */
.company-info { display: grid; grid-template-columns: 160px 1fr; }
.company-info dt,
.company-info dd { padding: 20px 10px; border-bottom: 1px solid #dcdcdc; }
.company-info dt { font-size: 14px; font-weight: bold; }
.company-info dd { color: #4f6a70; padding-left: 0; }
.company-info dd h3 { font-size: 14px; margin: 0 0 5px; color: #1c2426; }
.company-info dd p { margin: 0 0 20px; }
.company-info dd p.map { margin: 30px 0; }
.company-info dd a { color: #007a93; text-decoration: underline; }
.company-info .station { width: 500px; max-width: 100%; margin: 0 0 30px; }
.company-info .station tr { border-bottom: 1px solid #dcdcdc; }
.company-info .station th { width: 180px; padding: 10px; text-align: left; }
.company-info .station td { padding: 10px; }

/* ---------- 採用情報 ---------- */
.recruit-box { display: flex; align-items: center; background: #2f3c3f; min-height: 216px; }
.recruit-box .logo { flex: 0 0 373px; align-self: stretch; display: flex; align-items: center; justify-content: center; background: #fff; }
.section .recruit-box .message,
.recruit-box .message { color: #fff; font-weight: bold; font-size: 20px; line-height: 1.6; padding: 0 20px 12px; margin: 0; }
.section .recruit-box .message a { color: #8fdff0; margin: 0 0.2em 0 0.3em; }

/* ---------- サイトマップ ---------- */
.sitemap { display: flex; gap: 80px; padding: 20px 0 0 120px; }
.sitemap > ul { width: 340px; }
.sitemap > ul > li { font-size: 16px; font-weight: bold; margin: 0 0 30px; }
.sitemap > ul > li > a { display: block; border-bottom: 1px solid #ddd; padding: 0 0 5px 5px; color: #4f6a70; text-decoration: none; }
.sitemap ul ul { margin: 10px 0 0; }
.sitemap ul ul li { font-size: 14px; font-weight: normal; margin: 0 0 10px 20px; }
.sitemap ul ul a { color: #007a93; }

/* ---------- 個人情報保護方針・反社排除に関する基本方針 ---------- */
.def-table { margin: 0 20px 20px; }
.def-table th { font-size: 18px; padding: 10px; border: 1px solid #dcdcdc; }
.def-table td { padding: 10px; border: 1px solid #dcdcdc; vertical-align: top; }
.section .def-table td p { margin: 0 0 12px; }
.section .def-table td p:last-child { margin: 0; }
/* 現行のページ内 <style> から移した番号の書式（(1) (2) …） */
.page-privacy .section ol { list-style: none; counter-reset: cnt; }
.page-privacy .section ol li { counter-increment: cnt; margin: 0 0.5em; }
.page-privacy .section ol li::before { content: "(" counter(cnt) ") "; }
.pmark-logo { float: left; margin: 20px 20px 20px 0; }
.pmark { margin-top: 20px; overflow: hidden; }
.pmark h3 { font-size: 16px; }
.pmark dt { font-weight: bold; margin: 10px 0 0; }
.pmark dd { color: #4f6a70; }
.section hr { border: 0; border-top: 1px solid #dcdcdc; clear: both; }
.supplementary-provisions { float: right; color: #4f6a70; }
.supplementary-provisions .signature { padding-top: 20px; }

/* ---------- フッター ---------- */
.site-footer {
  background: #2f3c3f url(../img/header_bar.gif) top center repeat-x;
  border-bottom: 10px solid #1c2426;
  min-height: 60px;
  font-size: 12px;
}
.site-footer .inner {
  display: flex;
  justify-content: space-between;
  padding: 20px 10px;
}
.site-footer li { display: inline-block; }
.site-footer li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 4px 0 5px;
  vertical-align: middle;
  background: #9aabae;
}
.site-footer a,
.site-footer p { color: #d2d8d9; }

/* 1100px 未満（PC 表示のまま幅が狭いとき）は、左右に余白を取る */
@media screen and (max-width: 1132px) {
  .inner { padding: 0 16px; }
  .site-logo { left: 16px; }
  .global-nav { right: 6px; }
}

/* 1000px 以下（スマートフォン表示の手前）は、ロゴとナビが重ならないよう小さく・詰める */
@media screen and (max-width: 1000px) {
  .site-logo { top: 38px; }
  .site-logo img { height: 32px; }
  .global-nav li { padding: 20px 8px 0; }
}

/* ---------- スマートフォン（768px 以下） ---------- */
@media screen and (max-width: 768px) {
  body { line-height: 1.8; }
  .inner { padding: 0 16px; }

  .site-header { background-image: url(../img/sp_header_bar.gif); }
  .site-logo { left: 16px; top: 15px; }
  .site-logo img { height: 70px; }
  .nav-toggle-label {
    display: block;
    position: absolute;
    top: 30px;
    right: 16px;
    cursor: pointer;
  }
  .nav-toggle-label img { width: 120px; height: 40px; }
  /* チェックボックスはキーボードで操作できるよう画面外に置く */
  .nav-toggle { display: block; position: absolute; top: 30px; right: 16px; margin: 0; opacity: 0; width: 1px; height: 1px; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid #007a93; outline-offset: 2px; }
  .global-nav {
    display: none;
    top: 101px;
    left: 0;
    right: 0;
    z-index: 10;
    box-shadow: 0 2px 3px #999;
  }
  .nav-toggle:checked ~ .global-nav { display: block; }
  .global-nav li {
    float: none;
    padding: 0;
    background: #f6f6f6;
    border-bottom: 1px solid #dcdcdc;
    text-align: center;
  }
  .global-nav a { display: block; padding: 10px 0; }

  .caption { background: #f6f6f6; padding: 0; }
  .caption h1,
  .caption p { font-size: 30px; line-height: 1.3; height: auto; padding: 35px 0; text-align: center; }

  .content { padding: 30px 0 0; }
  .section h2, .section h3, .section > p { padding: 0; }

  .with-sidebar { display: block; }
  .sidebar { margin: 40px -16px 0; }
  .sidebar h2 { padding: 5px 16px; background: #e6e6e6; border-top: 1px solid #dcdcdc; border-bottom: 1px solid #dcdcdc; }
  .sidebar ul { list-style: none; }
  .sidebar li { margin: 0; border-bottom: 1px solid #dcdcdc; }
  .sidebar li a { display: block; padding: 8px 16px 8px 35px; }

  .post-body img, .post-body .alignright, .post-body .alignleft { padding: 10px 0; }
  .post-body .sp-full { display: block; float: none; margin: 0 auto; }
  .post-body table { display: block; overflow-x: auto; }
  .pressinfo { padding: 10px; }
  .pressinfo p { margin: 0 10px; }

  .service .image-left { float: none; width: auto; margin: 0; }
  .service .image-right p > img { margin: 0; }
  .service .section table { display: block; overflow-x: auto; }

  .news-tabs { gap: 5px; }
  .news-tabs a { width: auto; height: 40px; line-height: 40px; font-size: 10px; letter-spacing: -0.05em; padding: 0 2px; }
  .news-tabs li { flex: 1; }
  .news-tabs a.selected { height: 41px; }
  .news-panel { padding: 0 10px 20px; border-radius: 0 0 10px 10px; }
  .news-list { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
  .news-list dt { grid-column: 1; padding: 20px 0 0; }
  .news-list .label { min-width: 80px; padding: 3px 8px; font-size: 11px; }
  .news-list .month { grid-column: 2; padding: 20px 0 0; font-size: 11px; }
  .news-list .title { grid-column: 1 / -1; padding: 10px 0 20px; font-size: 12px; border-bottom: 1px solid #dcdcdc; }

  .top { display: flex; flex-direction: column; }
  .top-contents { order: 1; flex-direction: column; gap: 20px; }
  .top-news { order: 2; margin: 40px 0 0; }
  .top-contents .top-support { order: 1; }
  .top-contents li { width: 100%; }
  .top-contents picture img { width: 100%; }
  .banner a { width: 100%; height: auto; padding: 5px 5px 20px; }
  .banner .logo { width: 100%; height: auto; }
  .banner .logo img { width: 100%; height: auto; }
  .banner .title { font-size: 16px; }
  .banner .outline { font-size: 13px; }

  .service-list li { width: 100%; }
  .service-list .logo { width: 100%; margin: 0 0 10px; }
  .service-list .title { font-size: 20px; padding: 0 20px; }
  .service-list .outline { font-size: 14px; padding: 0 20px; }

  .company-info { display: block; }
  .company-info dt { border-bottom: 0; padding: 10px 0; }
  .company-info dd { padding: 0 0 20px; margin: 0 0 20px; }
  .company-info .station th { width: 130px; }

  .recruit-box { display: block; padding: 20px 0; }
  .recruit-box .logo { display: none; }
  .section .recruit-box .message,
  .recruit-box .message { font-size: 14px; }

  .sitemap { display: block; padding: 0; }
  .sitemap > ul { width: auto; }

  .def-table { margin: 0 0 20px; }
  .def-table th { font-size: 14px; padding: 6px; }
  .def-table td { padding: 6px; }
  .post-body .indent { padding-left: 20px; }
  .post-body .indent .unindent { margin-left: -20px; }

  .site-footer .inner { display: block; padding: 20px 16px; }
  .site-footer li { display: block; margin: 0 0 5px; }
  .site-footer li::after { display: none !important; }
  .site-footer a { font-weight: bold; }
  .site-footer p { text-align: right; padding: 20px 0 0; font-weight: bold; font-size: 11px; }
}
