@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* =========================================================
   方針
   ・見出し（h2〜h4）と項目名（dt）の装飾は、スキンに任せる
   ・ここでは、レイアウト（並び・余白）と独自パーツだけを指定する
   ========================================================= */

/* ---------------------------------------------------------
   色の設定（ここを変えるとまとめて変わります）
   --------------------------------------------------------- */
:root {
  --cpt-accent: #0b2973;       /* ボタンの色（サイトのメインカラー） */
  --cpt-accent-hover: #09225e;
  --cpt-border: #e3e3e3;
  --cpt-bg-soft: #f7f7f7;
  --cpt-text-sub: #666;
}

/* =========================================================
   サイト全体
   ========================================================= */

/* グローバルメニューの文字サイズ */
#navi .navi-in a {
  font-size: 12px !important;
}

/* 新着カード一覧：サムネイルのずれと上下の間隔を調整 */
.widget-entry-cards .card-item,
.new-entry-cards .card-item,
.entry-card-wrap {
  align-items: flex-start !important;
  margin-bottom: 15px !important;
  padding-bottom: 0 !important;
}
.widget-entry-cards .card-thumb img,
.new-entry-cards .card-thumb img,
.entry-card-thumb img {
  position: static !important;
  margin-top: 0 !important;
  vertical-align: top !important;
  object-fit: cover !important;
}

/* トップページ：メインビジュアル下の余白を詰める */
.home .article-header {
  display: none;
}
.home .entry-content {
  margin-top: 0;
}
.home .entry-content > *:first-child,
.home .entry-content > .wp-block-columns:first-child,
.home .entry-content > .wp-block-columns:first-child .wp-block-column > :first-child {
  margin-top: 0;
}

/* =========================================================
   カスタム投稿：共通パーツ
   ========================================================= */

/* カード（囲み枠） */
.cpt-card {
  background: #fff;
  border: 1px solid var(--cpt-border);
  border-radius: 6px;
  padding: 1.5em;
  margin: 2em 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* カード内の最初の見出しの上余白をなくす（装飾はスキンのまま） */
.article .cpt-card :is(h3, h4):first-child {
  margin-top: 0;
}

/* 項目リスト：ラベルと内容を横並び（スマホは縦並び） */
.cpt-dl {
  display: grid;
  grid-template-columns: 7em 1fr;
  margin: 0;
}
.entry-content .cpt-dl dt,
.entry-content .cpt-dl dd {
  margin: 0;
  padding: 0.7em 0.5em;
  border-bottom: 1px solid var(--cpt-border);
}

/* 項目リスト：ラベルの下に内容（インタビュー・お客様の声など） */
.cpt-dl-stack {
  margin: 0;
}
.entry-content .cpt-dl-stack dt {
  margin: 0 0 0.3em;
}
.entry-content .cpt-dl-stack dd {
  margin: 0 0 1.2em;
  padding: 0 0 1em;
  border-bottom: 1px solid var(--cpt-border);
}
.entry-content .cpt-dl-stack dd:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.entry-content .cpt-dl dd > :last-child,
.entry-content .cpt-dl-stack dd > :last-child {
  margin-bottom: 0;
}

/* 本文中の項目名（dt）を太字にして、内容と区別しやすくする */
.entry-content dt {
  font-weight: bold;
}

/* 2列・3列レイアウト（タブレット以下は1列） */
.cpt-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
}
.cpt-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
}

/* ボタン */
.cpt-btn,
.cpt-btn:visited {
  display: inline-block;
  background: var(--cpt-accent);
  color: #fff;
  padding: 0.8em 2em;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
}
.cpt-btn:hover {
  background: var(--cpt-accent-hover);
  color: #fff;
}
.cpt-btn.sem-btn-sub,
.cpt-btn.sem-btn-sub:visited {
  background: #31b0d5;
}
.cpt-btn.sem-btn-sub:hover {
  background: #269abc;
}
.cpt-btn.sem-btn-green,
.cpt-btn.sem-btn-green:visited {
  background: #5cb85c;
}
.cpt-btn.sem-btn-green:hover {
  background: #449d44;
}

/* 申込欄のボタン：横幅いっぱい */
.entry-content .sem-btn-wrap {
  text-align: center;
}
.entry-content .sem-btn-wrap a.cpt-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 1em;
  font-size: 1.1em;
}

/* ページ上部の申込ボタン：横幅いっぱい（複数あるときは横並び） */
.entry-content .sem-top-buttons {
  display: flex;
  gap: 1em;
  margin: 1.5em 0;
}
.entry-content .sem-top-buttons a.cpt-btn {
  display: block;
  flex: 1 1 0;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 1em;
  font-size: 1.1em;
}

/* カテゴリー表示 */
.cpt-terms-wrap {
  margin-top: 2em;
  font-size: 0.9em;
}
.cpt-terms {
  margin-bottom: 0.4em;
}
.cpt-terms-label {
  display: inline-block;
  background: var(--cpt-bg-soft);
  border: 1px solid var(--cpt-border);
  border-radius: 3px;
  padding: 0.1em 0.6em;
  margin-right: 0.6em;
  color: var(--cpt-text-sub);
}

/* 前後の記事リンク */
.cpt-pager {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--cpt-border);
}
.cpt-pager-next {
  margin-left: auto;
  text-align: right;
}

/* =========================================================
   人事労務クイズ（single-quiz.php）
   ========================================================= */
.quiz-date {
  color: #777;
  font-size: 0.9em;
}
.quiz-heading small {
  font-size: 0.75em;
  font-weight: bold;
  margin-left: 0.5em;
}
.quiz-content .quiz-choices {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5em;
}
.quiz-content .quiz-choices li {
  margin-bottom: 0.6em;
  padding-left: 0;
}
.quiz-content .quiz-choices li::before {
  content: none;
}
.quiz-label {
  font-weight: bold;
  margin-right: 0.3em;
}

/* 開閉ボタン */
.quiz-toggle {
  margin: 1em 0;
}
.quiz-toggle > summary {
  list-style: none;
}
.quiz-toggle > summary::-webkit-details-marker {
  display: none;
}
.quiz-btn {
  display: inline-block;
  padding: 0.5em 1.2em;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
  transition: opacity 0.2s;
}
.quiz-btn:hover {
  opacity: 0.85;
}
.quiz-btn-answer {
  background: #d9534f;
  border: 1px solid #d43f3a;
  color: #fff;
}
.quiz-btn-more {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
}
.quiz-toggle[open] > .quiz-btn-answer::after,
.quiz-toggle[open] > .quiz-btn-more::after {
  content: " ▲";
  font-size: 0.8em;
}
.quiz-toggle:not([open]) > .quiz-btn-answer::after,
.quiz-toggle:not([open]) > .quiz-btn-more::after {
  content: " ▼";
  font-size: 0.8em;
}

/* 回答・解説の囲み */
.quiz-well {
  background: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  padding: 1em 1.2em;
  margin-top: 1em;
}
.quiz-well > :last-child {
  margin-bottom: 0;
}
.quiz-correct {
  color: #337ab7;
}

/* 前後リンク */
.quiz-pager {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #e3e3e3;
}
.quiz-pager-next {
  text-align: right;
  margin-left: auto;
}

/* =========================================================
   セミナー情報（single-seminar.php）・労務ゼミ共通
   ========================================================= */
.sem-intro {
  line-height: 1.9;
  margin-bottom: 1.5em;
}
.sem-leaflet {
  text-align: center;
  margin: 1.5em 0;
}
.sem-leaflet-img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.sem-fee + .sem-fee {
  margin-top: 0.5em;
}
.sem-fee-label {
  display: inline-block;
  min-width: 5em;
  font-weight: bold;
}
.sem-fee small {
  display: block;
  color: var(--cpt-text-sub);
}
.sem-part-time {
  color: var(--cpt-text-sub);
  font-size: 0.9em;
}
.sem-apply-block + .sem-apply-block {
  margin-top: 1.8em;
}
.sem-qr {
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}
.sem-qr-img {
  max-width: 160px;
  height: auto;
}
.sem-content .sem-pdf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sem-content .sem-pdf-list li::before {
  content: none;
}

/* =========================================================
   労務ゼミ（single-study-meeting.php）
   ========================================================= */
.zemi-group-note {
  color: #d9534f;
  font-weight: bold;
}
.zemi-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5em;
  align-items: start;
}
.zemi-teacher {
  text-align: center;
}
.zemi-teacher img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 6px;
}
.zemi-teacher small {
  display: block;
  margin-top: 0.5em;
  color: var(--cpt-text-sub);
}
.zemi-session + .zemi-session {
  margin-top: 1.8em;
}
.zemi-goal {
  color: #337ab7;
}
.zemi-apply-col .sem-qr {
  justify-content: center;
}

/* =========================================================
   一緒に働く仲間たち（single-staff_voice.php）
   ========================================================= */

/* 上部写真（スライダー）のサイズ */
.staff-top-slider {
  max-width: 300px;
  margin: 0 auto 30px;
  text-align: center;
}
.staff-top-slider img,
.staff-top-slider .n2-ss-slider {
  width: 100% !important;
  height: auto !important;
}

/* =========================================================
   お客様の声（single-customer_voice.php）
   ========================================================= */
.customer-lead {
  font-size: 1.2em;
  font-weight: bold;
  line-height: 1.6;
  padding: 0.8em 1em;
  background: var(--cpt-bg-soft);
  border-left: 5px solid var(--cpt-accent);
  margin-bottom: 1.5em;
}
.customer-photo {
  text-align: center;
}
.customer-photo-img {
  max-width: 100%;
  height: auto;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--cpt-border);
  border-radius: 4px;
}

/* =========================================================
   書籍紹介（single-book.php）
   ========================================================= */
.book-publisher {
  text-align: right;
  color: var(--cpt-text-sub);
  font-size: 0.95em;
}
.book-intro {
  line-height: 1.9;
  margin-bottom: 1.5em;
}
.book-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  margin: 1.5em 0;
}
.book-images img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   アーカイブ：小さいアイキャッチ＋横にタイトル
   （対象ページと列数は functions.php で指定）
   ========================================================= */
.archive-small-thumb #list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em 1.5em;
}
.archive-cols-2 #list {
  grid-template-columns: 1fr 1fr;
}
.archive-small-thumb #list .entry-card-wrap {
  width: auto;
  margin: 0;
}
.archive-small-thumb #list .entry-card {
  display: flex;
  gap: 1em;
  align-items: flex-start;
}

/* アイキャッチの枠：横長（16:9）に固定し、画像を枠いっぱいに表示 */
.archive-small-thumb #list .entry-card-thumb {
  flex: 0 0 150px;
  width: 150px;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: none;
}
.archive-small-thumb #list .entry-card-thumb img {
  position: static;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  margin: 0;
}
.archive-small-thumb #list .entry-card-content {
  flex: 1;
  min-width: 0;
  margin: 0;
}

@media screen and (max-width: 834px) {
  .archive-cols-2 #list {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 480px) {
  .archive-small-thumb #list .entry-card-thumb {
    flex-basis: 110px;
    width: 110px;
  }
}

/* =========================================================
   Lightning 時代のボタン（Bootstrap の btn クラス）を
   新サイトのボタンの見た目に揃える（本文内のみ）
   ========================================================= */
.entry-content a.btn {
  display: inline-block;
  background: var(--cpt-accent);
  border: none;
  border-radius: 4px;
  box-shadow: none;
  color: #fff;
  font-weight: bold;
  line-height: 1.5;
  padding: 0.8em 2em;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.entry-content a.btn:hover {
  background: var(--cpt-accent-hover);
  color: #fff;
}

/* 色の種類（Lightning 時代の指定に合わせる） */
.entry-content a.btn.btn-info {
  background: #31b0d5;
}
.entry-content a.btn.btn-info:hover {
  background: #269abc;
}
.entry-content a.btn.btn-success {
  background: #5cb85c;
}
.entry-content a.btn.btn-success:hover {
  background: #449d44;
}
.entry-content a.btn.btn-danger {
  background: #d9534f;
}
.entry-content a.btn.btn-danger:hover {
  background: #c9302c;
}
.entry-content a.btn.btn-default {
  background: #fff;
  border: 1px solid var(--cpt-accent);
  color: var(--cpt-accent);
}
.entry-content a.btn.btn-default:hover {
  background: var(--cpt-accent);
  color: #fff;
}

/* 大きいボタン・横幅いっぱいのボタンは、横幅いっぱいに広げる */
.entry-content a.btn.btn-lg,
.entry-content a.btn.btn-block {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 1em;
  font-size: 1.1em;
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  .cpt-grid-2col,
  .cpt-grid-3col,
  .zemi-detail {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .cpt-card {
    padding: 1.2em 1em;
  }
  .cpt-dl {
    grid-template-columns: 1fr;
  }
  .entry-content .cpt-dl dt {
    border-bottom: none;
    padding-bottom: 0;
  }
  .entry-content .sem-top-buttons {
    flex-direction: column;
  }
  .cpt-pager,
  .quiz-pager {
    flex-direction: column;
  }
  .cpt-pager-next,
  .quiz-pager-next {
    margin-left: 0;
    text-align: left;
  }
}
