@charset "utf-8";

/*==========================================
  blog.css
  THE THOR のブログ（一覧／記事／検索）を
  コーポレートサイトのデザインに寄せる。
  読み込み順: テーマCSS → common.css → animation.css → blog.css
==========================================*/

/*------------------------------------------
  ベース
------------------------------------------*/
body.t-logoPc,
body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: var(--primary-gray);
  color: var(--primary-black);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.9;
}

/* テーマが出す独自ヘッダー・フッターは使わない */
.l-header,
.l-headerBottom,
.l-footerTop,
.l-footer,
.controllerFooter,
.pagetop {
  display: none !important;
}

/* 固定ヘッダーのぶんだけ本文を下げる（背景は本文と同じグレー） */
.blogHead {
  padding-top: var(--header-h, 114px);
  background: var(--primary-gray);
}

.blogHead__inner {
  max-width: 1160px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 14px 0 0;
}

/* パンくず（テーマが記事ページ側で出すものも同じ見た目に揃える） */
.breadcrumb {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #5b6472;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  color: #5b6472;
}

.breadcrumb__link,
.breadcrumb a {
  color: var(--primary-black);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/*------------------------------------------
  レイアウト
------------------------------------------*/
.l-wrapper {
  max-width: 1160px;
  width: calc(100% - 40px);
  margin: 48px auto 80px;
  gap: 48px;
  align-items: flex-start;
}

.l-main {
  width: calc(72% - 24px);
}

.l-sidebar {
  width: calc(28% - 24px);
}

/*------------------------------------------
  見出し（タブ付きボックス＝サイト共通の形）
------------------------------------------*/
.archiveHead {
  margin-bottom: 0;
  padding-bottom: 36px;
}

/* ブログ一覧は .archiveHead を持たないテンプレートもあるため、
   見出しとカードの間隔はリスト側で確保する */
.l-main .archive {
  margin-top: 36px;
}

.archiveHead__contents {
  position: relative;
  display: inline-block;
}

/* サイト共通の midashi（タブ＋白ボックス）に合わせる */
.archiveHead__subtitle {
  display: inline-block;
  width: fit-content;
  padding: 8px 24px;
  background: var(--primary-gradation);
  border: 2px solid var(--primary-black);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  color: var(--primary-white);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
}

.archiveHead__subtitle:empty::before {
  content: "BLOG";
}

.archiveHead .heading-primary,
.l-main .heading-primary {
  display: block;
  background: var(--primary-white);
  border: 2px solid var(--primary-black);
  border-radius: 0 5px 5px 5px;
  color: var(--primary-black);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  padding: 16px 28px;
  text-align: left;
}

.archiveHead .heading-primary {
  font-size: 3.2rem;
  letter-spacing: 0.08em;
  padding: 12px 32px;
}

/*------------------------------------------
  記事一覧カード
------------------------------------------*/
.archive {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 28px;
}

.archive__item {
  display: flex;
  flex-direction: column;
  background: var(--primary-white);
  border: 2px solid var(--primary-black);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 6px 8px 0 rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin: 0;
  padding: 0;
}

.archive__item:hover {
  transform: translateY(-4px);
  box-shadow: 8px 12px 0 rgba(15, 23, 42, 0.2);
}

.archive__item .eyecatch {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--primary-black);
  overflow: hidden;
  margin: 0;
}

.archive__item .eyecatch__link {
  display: block;
  width: 100%;
  height: 100%;
}

.archive__item .eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.archive__item:hover .eyecatch img {
  transform: scale(1.04);
}

/* アイキャッチ未設定の記事でも枠が崩れないようにする */
.archive__item .eyecatch::before {
  content: "SHIBATA INDUSTRY";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(210, 255, 1, 0.35);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.archive__item .eyecatch__link {
  position: relative;
  z-index: 1;
}

.archive__item .eyecatch__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  width: auto;
  max-width: calc(100% - 20px);
  z-index: 2;
  border-radius: 4px;
  overflow: hidden;
}

.archive__item .eyecatch__cat a,
.archive__item .eyecatch__cat {
  background: var(--primary-yellow) !important;
  color: var(--primary-black) !important;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.archive__item .eyecatch__cat a {
  display: block;
  padding: 7px 12px;
}

.archive__contents {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
}

.archive__item .heading-secondary {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.55;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.archive__item .heading-secondary a {
  color: var(--primary-black);
  text-decoration: none;
}

.archive__item .heading-secondary a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.archive__item .phrase-secondary {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #4a5568;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.archive__item-none {
  grid-column: 1 / -1;
  padding: 32px;
}

/* 一覧上部の並び替えコントローラは隠す（情報が増えるだけなので） */
.controller {
  display: none;
}

/*------------------------------------------
  ページャー
------------------------------------------*/
.pager__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.pager__item a,
.pager__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--primary-black);
  border-radius: 6px;
  background: var(--primary-white);
  color: var(--primary-black);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.pager__item a:hover {
  background: var(--primary-yellow);
}

.pager__item-current span,
.pager__item .current {
  background: var(--primary-black);
  color: var(--primary-white);
}

/*------------------------------------------
  サイドバー
------------------------------------------*/
.l-sidebar .widget-side {
  background: var(--primary-white);
  border: 2px solid var(--primary-black);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
  font-size: 1.4rem;
  line-height: 1.8;
}

.l-sidebar .widget-side .wp-block-heading,
.l-sidebar .heading-widget {
  display: block;
  background: var(--primary-black);
  color: var(--primary-yellow);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.4;
  margin: -20px -20px 16px;
  padding: 12px 20px;
  border-radius: 7px 7px 0 0;
}

.l-sidebar .widget-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.l-sidebar .widget-side li {
  padding: 9px 0;
  border-bottom: 1px dashed #cbd2d9;
}

.l-sidebar .widget-side li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.l-sidebar .widget-side a {
  color: var(--primary-black);
  text-decoration: none;
}

.l-sidebar .widget-side a:hover {
  text-decoration: underline;
}

.l-sidebar .widget-side p {
  margin: 12px 0 0;
}

/* 検索ウィジェット */
.l-sidebar .wp-block-search__label {
  display: block;
  background: var(--primary-black);
  color: var(--primary-yellow);
  font-size: 1.5rem;
  font-weight: 900;
  margin: -20px -20px 16px;
  padding: 12px 20px;
  border-radius: 7px 7px 0 0;
}

.l-sidebar .wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
}

.l-sidebar .wp-block-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 2px solid var(--primary-black);
  border-radius: 6px;
  background: var(--primary-white);
  font-size: 1.4rem;
}

.l-sidebar .wp-block-search__button {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 16px;
  border: 2px solid var(--primary-black);
  border-radius: 6px;
  background: var(--primary-black);
  color: var(--primary-white);
  font-weight: 600;
  cursor: pointer;
}

.l-sidebar .wp-block-search__button:hover {
  background: var(--primary-yellow);
  color: var(--primary-black);
}

/* 募集概要・LINE CTA（記事側で付けている独自クラス） */
/* 上の .widget-side li の padding 指定を上回る必要があるので、
   同じ強さまでセレクタを合わせる */
.l-sidebar .widget-side .shibataSideJob li {
  position: relative;
  padding: 9px 0 9px 20px;
}

.l-sidebar .widget-side .shibataSideJob li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.18em;
  width: 8px;
  height: 8px;
  background: var(--primary-yellow);
  border: 1px solid var(--primary-black);
}

.shibataSideJob a,
.shibataSideCta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  padding: 8px 16px;
  background: var(--primary-black);
  color: var(--primary-white) !important;
  border: 2px solid var(--primary-black);
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.shibataSideJob a:hover,
.shibataSideCta a:hover {
  background: var(--primary-yellow);
  color: var(--primary-black) !important;
}

/* LINEグリーンに白文字は 2.26:1 しか出ないので、文字は濃紺にする */
.shibataSideCta a {
  background: #06c755;
  border-color: #06c755;
  color: var(--primary-black) !important;
}

.shibataSideCta a:hover {
  background: var(--primary-yellow);
  border-color: var(--primary-black);
}

/*------------------------------------------
  記事ページ
------------------------------------------*/
.l-main .dateList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 1.4rem;
}

.l-main .dateList a {
  color: var(--primary-black);
}

.eyecatch-main {
  position: relative;
  margin: 24px 0 0;
  border: 2px solid var(--primary-black);
  border-radius: 10px;
  overflow: hidden;
  background: var(--primary-black);
}

.eyecatch-main img {
  display: block;
  width: 100%;
  height: auto;
}

.eyecatch-main .eyecatch__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--primary-yellow) !important;
  border-radius: 4px;
  overflow: hidden;
}

.eyecatch-main .eyecatch__cat a {
  display: block;
  padding: 8px 14px;
  color: var(--primary-black) !important;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

/* 本文は白いカードに入れて読みやすくする */
.postContents {
  background: var(--primary-white);
  border: 2px solid var(--primary-black);
  border-radius: 10px;
  padding: 36px 40px;
  margin-top: 28px;
}

.postContents .content > *:first-child {
  margin-top: 0;
}

.l-main .eyecatch img {
  border-radius: 0;
}

.l-main figure.wp-block-image img {
  border-radius: 8px;
}

.l-main .wp-element-caption,
.l-main figcaption {
  font-size: 1.3rem;
  color: #5b6472;
  margin-top: 8px;
}

.content {
  font-size: 1.6rem;
  line-height: 2;
}

.content p {
  margin: 0 0 1.6em;
}

.content h2 {
  background: var(--primary-black);
  color: var(--primary-white);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.5;
  margin: 2.4em 0 1em;
  padding: 14px 20px;
  border-radius: 6px;
}

.content h3 {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.5;
  margin: 2em 0 0.9em;
  padding-left: 14px;
  border-left: 6px solid var(--primary-yellow);
}

.content h4 {
  font-size: 1.7rem;
  font-weight: 900;
  margin: 1.8em 0 0.8em;
}

.content ul,
.content ol {
  margin: 0 0 1.6em;
  padding-left: 1.4em;
}

.content li {
  margin-bottom: 0.5em;
}

.content a {
  color: #0b63c5;
  text-decoration: underline;
}

.content img {
  border-radius: 8px;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6em;
  font-size: 1.5rem;
}

.content th,
.content td {
  border: 1px solid var(--primary-black);
  padding: 10px 14px;
  text-align: left;
}

.content th {
  background: var(--primary-gray);
  font-weight: 600;
}

/*------------------------------------------
  タブレット
------------------------------------------*/
@media screen and (max-width: 1024px) {
  .l-wrapper {
    display: block;
    margin-top: 32px;
  }

  .l-main,
  .l-sidebar {
    width: 100%;
  }

  .l-sidebar {
    margin-top: 48px;
  }
}

/*------------------------------------------
  スマホ
------------------------------------------*/
@media screen and (max-width: 768px) {
  .blogHead {
    padding-top: calc(var(--header-h, 66px) + 16px);
  }

  .blogHead__inner {
    padding: 10px 16px 12px;
  }

  .l-wrapper {
    width: calc(100% - 32px);
    margin-bottom: 56px;
  }

  .archive {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .archiveHead .heading-primary,
  .l-main .heading-primary {
    font-size: 2.2rem;
    padding: 12px 18px;
  }

  .l-main .article,
  .l-main .post {
    padding: 20px;
  }

  .content h2 {
    font-size: 1.9rem;
    padding: 12px 16px;
  }

  .content h3 {
    font-size: 1.7rem;
  }
}

/*------------------------------------------
  テーマCSSの打ち消し（共通ヘッダー／フッター用）
------------------------------------------*/
.header ul,
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header li,
.footer li {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.header li::before,
.header li::marker,
.footer li::marker {
  content: none;
}

.header a,
.footer a {
  text-decoration: none;
}

/* パンくずが無いページでも、固定ヘッダーぶんの余白だけは確保する */
.blogHead-empty .blogHead__inner {
  display: none;
}

/*------------------------------------------
  サイドバー追従
  テーマのJSが position:fixed を直接当ててくるので、
  CSSのstickyに寄せて固定ヘッダーの下で止める
------------------------------------------*/
.l-sidebar .widgetSticky {
  position: sticky !important;
  top: calc(var(--header-h, 114px) + 16px) !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
}

.l-sidebar .fitSidebar-blank,
.l-sidebar [class$="-blank"] {
  display: none !important;
}

@media screen and (max-width: 1024px) {
  .l-sidebar .widgetSticky {
    position: static !important;
  }
}

/*------------------------------------------
  コントラスト調整 2026-10-13
------------------------------------------*/
/* 記事中のブロックボタンまで本文リンク色にしてしまい、
   濃い背景に青文字（2.06:1）になっていたので除外する */
.content a.wp-block-button__link,
.content .wp-block-button__link,
.content .wp-element-button {
  color: var(--primary-white);
  text-decoration: none;
}

/* テーマ既定の表見出しは白×#7f7f7f で 4:1。濃紺地にして白を載せる */
.l-main .content table th,
.l-main .content table thead th {
  background: var(--primary-black);
  color: var(--primary-white);
  font-weight: 600;
}
