@charset "UTF-8";
/*
Theme Name: tokuyo-caregiver
Description: CARE STEP 特養で深める介護の仕事（KC-R568）の WordPress テーマ
Author: bitstar
Version: 1.0.0
*/
/*======================================================================
  KC-R568 CARE STEP 特養で深める介護の仕事について
  Figma: https://www.figma.com/design/6QvkMsabBjrrDP7Zeh8u83/KC-R568
======================================================================*/

/*======================================================================
  Reset CSS for HTML5
======================================================================*/
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,
address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,
b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,caption,tbody,tfoot,thead,
article,aside,canvas,details,figcaption,figure,footer,header,main,menu,nav,
section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

ul,ol,dl {
  list-style: none;
}

/*======================================================================
  デザイントークン（Figma 変数）
======================================================================*/
:root {
  /* color */
  --color-yellow:      #f5dc00; /* メインアクセント */
  --color-yellow-dark: #d4b900; /* 濃いイエロー（ホバー） */
  --color-yellow-60:   rgba(245, 220, 0, 0.6); /* MV/サムネ上のラベル背景 */
  --color-text:        #3e3e3e; /* 本文テキスト */
  --color-text-50:     rgba(62, 62, 62, 0.5); /* 日付など補助 */
  --color-black:       #1f1f1f; /* category 本文 */
  --color-h1:          #2a2a2a; /* h1・footer 背景 */
  --color-white:       #ffffff;
  --color-line:        #989080; /* ボーダー（logo_gray） */
  --color-line-mv:     #4d4d4d; /* about_me 区切り線 */
  --color-bg-gray:     #f6f5f5; /* 薄グレー背景 */
  --color-footer:      #2a2a2a; /* フッター背景 */
  --color-overlay:     rgba(0, 0, 0, 0.2); /* 画像ダークオーバーレイ */
  --color-link:        #3a726c; /* 記事内テキストリンク：サイト未使用かつ派手でない落ち着いた色（レバモック共通ルール）。Figmaトークンではない */

  /* font */
  --font-base: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --fs-base: 16px;
  --fs-lg:   20px;
  --fs-xl:   28px;
  --lh:      1.5;

  /* layout */
  --content-w: 768px;
  --side-pad:  20px;
  --gap:       20px;
  --radius:    4px;
}

body {
  /* Figma のデザイン幅 768px に合わせて中央寄せ（SPファースト → WPテーマ前提） */
  max-width: var(--content-w);
  margin: 0 auto;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh);
  -webkit-text-size-adjust: 100%;
  color: var(--color-text);
  background: var(--color-white);
}

a {
  color: var(--color-text);
  text-decoration: none;
  box-sizing: border-box;
}

a:hover {
  opacity: 0.5;
}

h1 {
  font-weight: normal;
}

/*======================================================================
  共通
======================================================================*/
img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.box_wrap {
  margin: 0 auto;
  max-width: var(--content-w);
  width: 100%;
  box-sizing: border-box;
}

/* 画像トリミング（aspect-ratio / height ＋ object-fit:cover の新方式） */
.img_wrap {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.img_wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 画像上のダークオーバーレイ（Figma: rgba(0,0,0,0.2)） */
.img_wrap--overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  border-radius: var(--radius);
}

/* 「More read」ボタン（前置きの線＋テキスト） */
.more {
  display: inline-flex;
  align-items: center; /* テキストは上下中央（線だけ下へ＝::before で align-self:flex-end） */
  height: 32px; /* Figma: More read ボタンの高さ32px */
  font-weight: 700;
  color: var(--color-yellow);
  margin-right: 12px;
  line-height: 1;
}

.more::before {
  content: "";
  align-self: flex-end; /* 線だけ下に置く（テキストは中央のまま） */
  width: 45px;
  height: 1px;
  margin-right: 8px;
  margin-bottom: 11px;
  background: currentColor;
}

.more:hover {
  opacity: 1;
  color: var(--color-text-50);
}

/*======================================================================
  ハンバーガーB（grid-template-rows トグル）
  JS: hamburger.js（.menu_button[aria-controls] → .menu-main#id に .open）
======================================================================*/
.hamburger {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  background: var(--color-white);
}

.menu_button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 64px;
  height: 64px;
  padding: 15px 12px;
  background: var(--color-yellow);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.menu_button:hover {
  opacity: .5;
}

.menu_button .bar {
  display: block;
  width: 30px;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 開いている時（aria-expanded=true）→ ×印 */
.menu_button[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu_button[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.menu_button[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* アコーディオン本体 */
.menu-main {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  background: var(--color-white);
}

.menu-main.open {
  grid-template-rows: 1fr;
}

.menu-main_inner {
  overflow: hidden;
  min-height: 0;
  visibility: hidden; /* 閉時はタブ順序からも除外 */
  transition: visibility 0.3s;
}

.menu-main.open .menu-main_inner {
  visibility: visible;
}

/* gnav の ul/li には class を振らない（WP生成に置換されるため）→ 子孫セレクタで指定 */

.gnav.open {
  margin-bottom: 24px;
}

.gnav li {
  border-bottom: 1px solid var(--color-line);
}

.gnav li:first-child {
  border-top: 1px solid var(--color-line);
}

.gnav a {
  display: block;
  padding: 16px var(--side-pad);
  text-align: center;
  font-weight: 700;
}

.gnav a:hover {
  opacity: 1;
  color: var(--color-yellow-dark);
}

@media (prefers-reduced-motion: reduce) {
  .menu-main,
  .menu-main_inner,
  .menu_button .bar {
    transition: none;
  }
}

/*======================================================================
  HEADER
======================================================================*/
.header {
  max-width: var(--content-w);
  margin: 0 auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.header_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap);
  padding: 0 var(--side-pad);
}

.header_content .logo {
  flex-shrink: 0;
}

.header_content .logo img {
  width: 179px;
  max-width: 100%;
  height: auto;
}

.header_content h1 {
  max-width: 400px;
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--color-h1);
}

/* メインビジュアル */
.header_mv {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  height: 400px;
  padding: 0 20px 20px;
  box-sizing: border-box; /* padding込みで400pxに収める（content-boxだと下padding20pxが加算され420pxになる） */
  overflow: hidden;
  background-image: url(images/mv.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.header_mv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.header_mv .about_me {
  position: relative;
  width: 300px;
  max-width: 100%;
  padding: 20px;
  background: var(--color-yellow-60);
  box-sizing: border-box;
}

.header_mv .about_me_title {
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--color-line-mv);
  font-weight: 700;
  text-align: center;
}

/* About me 内のテキストリンク：黄背景上で本文と区別できるよう色＋下線（記事リンク色と統一） */
.header_mv .about_me a {
  color: var(--color-link);
  text-decoration: underline;
}

/* パンくず（header 内） */
.breadcrumb {
  margin: 0 auto;
  padding: 0 var(--side-pad); /* 他コンテンツと左右を揃える（不要なら削除可） */
}

.breadcrumb ul li {
  padding-right: 5px;
  display: inline-block;
  vertical-align: middle; /* アイコン入りli(inline-flex)とテキストliのベースラインずれを防ぐ */
}

/* アイコン＋テキストの縦位置を中央で揃える */
.breadcrumb ul li a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
}

/* ホームアイコン：グローバル img{width:100%} を実寸に上書き（アイコンはHTML側のimgで対応） */
.breadcrumb img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/*======================================================================
  TOP（index）
======================================================================*/
#index {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 80px;
}

/* overview（見出し＋概要） */
#index .index_summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  padding: 0 var(--side-pad);
}

#index .index_summary h2 {
  text-align: center;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-text);
}

#index .index_summary h2 .deco {
  font-size: var(--fs-lg);
  color: var(--color-yellow);
}

#index .index_summary h2 .suffix {
  font-size: var(--fs-base);
}

#index .index_summary p {
  width: 100%;
}

/* index リスト（new ＋ 記事カード） */
#index .index_list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  padding: 0 var(--side-pad);
}

/* newボックス共通（index: Last updated / detail: Update） */
#index .date,
#detail .detail_head {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg-gray);
  box-sizing: border-box;
}

/* 日付バッジ（Last updated / Update 共用） */
#index .date dt,
#detail .detail_head .date .label {
  padding: 5px 10px;
  border-radius: var(--radius);
  background: var(--color-yellow);
  font-weight: 700;
  white-space: nowrap;
}

/* 日付テキスト（50%） */
#index .date dd,
#detail .detail_head .date .day {
  font-weight: 700;
  color: var(--color-text-50);
}

/* index 固有：日付行の下線＋記事タイトル */
#index .date .flex_box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
	width: fit-content;
}

#index .date .title {
  align-self: flex-start;
  font-weight: 700;
}

#index .date .title:hover {
  opacity: 1;
  text-decoration: underline;
}

/* 記事カード共通（index_cat / cat_post 共用。ul・li は裸＝WP生成なので文脈セレクタで共有） */
#index .index_list > ul,
.category .category_inner > ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

#index .index_list > ul > li,
.category .category_inner > ul > li {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-sizing: border-box;
}

#index .index_list h3,
.category .category_inner > ul h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
}

#index .index_list h3 a:hover,
.category .category_inner > ul h3 a:hover {
  opacity: 1;
  text-decoration: underline;
}

#index .index_list .more_wrap {
  display: flex;
  justify-content: flex-end;
}

/*======================================================================
  RECOMMEND
======================================================================*/
.recommend {
  background: var(--color-bg-gray);
}

.recommend .box_wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 20px 80px;
}

.recommend .recommend_deco {
  width: 577px;
  max-width: 100%;
}

.recommend .recommend_body {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.recommend ul {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.recommend li {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.recommend .recommend_head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
}

.recommend .recommend_head .icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

.recommend .recommend_head h4 {
  font-size: var(--fs-xl);
  font-weight: 700;
}

/* サムネ＋カテゴリラベル */
.recommend .thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding: 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
}

.recommend .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommend .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  transition: background 0.3s ease;
}

/* ホバーで rgba(0,0,0,0.2) のダークオーバーレイ（Figmaのホバー状態） */
.recommend .thumb:hover::after {
  background: var(--color-overlay);
}

.recommend .thumb .cat_label {
  position: relative;
  z-index: 2; /* オーバーレイより前面（ラベルは暗くしない） */
  width: 100%;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--color-yellow-60);
  font-size: var(--fs-lg);
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
}

.recommend li h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.recommend li h3 a:hover {
  text-decoration: underline;
  opacity: 1;
}

.recommend .more_wrap {
  display: flex;
  justify-content: flex-end;
}

/*======================================================================
  CATEGORY
======================================================================*/
.category .box_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 0 20px 80px;
}

.category .category_inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
}

.category .category_top {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.category .category_top h2 {
  text-align: center;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-text);
}

.category .category_top p {
  color: var(--color-black);
}

/* category 固有（カードのシェル・見出しは「記事カード共通」を使い回し） */
.category .category_inner > ul .img_wrap {
  height: 150px;
}

.category .category_inner > ul p {
  color: var(--color-black);
}

/* category 下部の大サムネ */
.category .category_thumbnail {
  width: 100%;
  height: 200px;
}

/*======================================================================
  DETAIL
======================================================================*/
#detail .box_wrap {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: 0 20px 80px;
}

/* detail 固有（newボックスのシェル・バッジ・日付テキストは「newボックス共通」を使い回し） */
#detail .detail_head .date {
  display: flex;
  align-items: center;
  gap: 10px;
}

#detail .detail_head h2 {
  text-align: center;
  font-size: var(--fs-xl);
  font-weight: 700;
}

/* 本文ブロック：余白は flex+gap ではなく margin で取る。
   段落<p>には余白を持たせず、見出し(h3)・画像(.img_wrap)側で間隔をとる＝レバ本文の共通方針。
   （CMS生成の本文に強く、余白の二重取り／p依存を避けるため。詳細: decisions/2026-06-23_レバレジーズ_本文余白はmarginでh3img側） */

/* 先頭・末尾の構造要素の外側余白は殺す（親 .box_wrap 側の gap/padding と二重取りしない） */
#detail .detail_post > :first-child {
  margin-top: 0;
}

#detail .detail_post > :last-child {
  margin-bottom: 0;
}

/* 段落は余白を持たない（間隔は前後の h3 / img が持つ） */
#detail .detail_post p {
  margin: 0;
}

/* 見出し：上下の間隔は h3 が持つ */
#detail .detail_post h3 {
  margin: 20px 0;
  font-size: var(--fs-lg);
  font-weight: 700;
}

/* 画像：上下の間隔は画像（.img_wrap）側が持つ */
#detail .detail_post .img_wrap {
  margin: 20px 0 0 0;
  height: 150px;
}

/* 記事詳細内のリンク：グローバルの a{color:--color-text} だと本文と同色でリンクと判別できないため、
   #detail 内のリンクに記事内リンク色を当てる（メールリンク等のベタなリンクも拾う）。
   ＝レバモック共通ルール：記事内テキストリンクは落ち着いた色（--color-link） */
#detail a {
  color: var(--color-link);
	font-weight: bold;
}

/* 記事内リンク（fパターン：画像＋説明文＋テキストリンク） */
/* 画像リンクのクリック範囲を画像幅に収めるため、ブロックを内容幅に縮める */
#detail .detail_post .link_item {
  display: block;
  width: fit-content;  /* 内容（画像）幅に縮める＝クリック範囲を画像幅に */
  margin: 20px 0;      /* 本文と同じ20pxリズム（block化で上下marginが前後と相殺し非対称を防ぐ） */
}

/* 画像・説明文・テキストリンクを縦に積み、各要素間に1行分の空白 */
#detail .detail_post .link_item > a,
#detail .detail_post .link_item > span {
  display: block;
}

#detail .detail_post .link_item > * + * {
  margin-top: 1em;
}

/* 画像はグローバル img{width:100%} を打ち消し、HTMLのwidth/height属性（CMS指定の実寸）を活かす */
#detail .detail_post .link_item img {
  display: block;
  width: revert-layer;
  max-width: 100%;
  height: auto;
}

/* テキストリンク（画像を含まない a）：太字＋下線でリンクと分かるように・クリック範囲はテキスト幅 */
/* 並び順に依存しないよう :has(img) で画像リンクと判別（CMS出力にクラスは付かない前提） */
/* 色はサイト未使用かつ落ち着いた色（--color-link）でリンクと判別させる＝レバモック共通ルール */
#detail .detail_post .link_item > a:not(:has(img)) {
  display: inline-block;
  color: var(--color-link);
  font-weight: 700;
  text-decoration: underline;
}

/* 引用（blockquote）：上下の間隔は blockquote 自身が持つ（gap廃止のため） */
#detail .detail_post blockquote {
  position: relative;
  margin: 20px 0;
  padding: 52px 20px 20px;
  background: var(--color-bg-gray);
  border-radius: var(--radius);
  font-style: italic;
}

#detail .detail_post blockquote::before {
  content: "\201C"; /* 開き二重引用符 */
  position: absolute;
  top: 10px;
  left: 16px;
  color: var(--color-yellow);
  font-size: 48px;
  font-style: normal;
  line-height: 1;
}

/* 引用元（blockquote 直後の p）：右寄せ・補助色 */
#detail .detail_post blockquote + p {
  text-align: right;
  color: var(--color-text-50);
}

/*======================================================================
  FOOTER
======================================================================*/
.footer {
  background: var(--color-footer);
}

.footer .box_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  padding: 40px 20px;
}

.footer .page_top {
  display: block;
  width: 41px;
  height: 40px;
}

.footer .page_top img {
  width: 41px;
  height: 40px;
  transform: scaleY(-1); /* 素材は下向き矢印 → 上下反転して上向きに（Figmaも同方法） */
}

/* フッターカテゴリリスト（縦区切り線）。ul/li には class を振らないため子孫セレクタで指定 */
.footer .fnav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer .fnav li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 182px;
  max-width: 100%;
  padding: 8px 0;
  border-left: 1px solid var(--color-white);
  box-sizing: border-box; /* 枠線を182pxに含めて4つを1行に収める（4×182=728） */
}

.footer .fnav li:last-child {
  border-right: 1px solid var(--color-white);
}

.footer .fnav a {
  width: 128px; /* Figma: テキスト幅128px・中央寄せ（はみ出しは2行折返し） */
  max-width: 100%;
  color: var(--color-white);
  font-weight: 700;
  text-align: center;
}

.footer .fnav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer .flogo img {
  width: 179px;
  height: 90px;
}

.footer .copyright {
  color: var(--color-white);
  text-align: center;
}

/*======================================================================
  レスポンシブ（SP: 767px 以下）
======================================================================*/
@media screen and (max-width: 767px) {
  /* ヘッダー：ロゴと h1 を縦積み（狭い画面では横並びだと h1 が潰れるため） */
  .header_content {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 大見出し（overview / category / detail / recommend）は SP では少し小さく */
  #index .index_summary h2,
  .category .category_top h2,
  #detail .detail_head h2,
  .recommend .recommend_head h4 {
    font-size: var(--fs-lg);
  }

  /* フッターカテゴリリストは SP では1列（縦区切り線は消す） */
  .footer .fnav li {
    width: 100%;
    border-left: none;
  }

  .footer .fnav li:last-child {
    border-right: none;
  }

  /* 1列化に合わせてリンクのタップ領域を全幅に */
  .footer .fnav a {
    width: 100%;
  }
}
