@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* ==== 臨床工学技士のリアル: カスタムデザイン ==== */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@500;700;900&family=Noto+Sans+JP:wght@400;500;600;700&family=Roboto+Mono:wght@500&display=swap');

:root{
  --bg: #f6f3ec;
  --paper: #fffdf8;
  --ink: #1e2a2f;
  --ink-soft: #4a5a5f;
  --line: #dcd4c2;
  --steel: #1b4b66;
  --steel-deep: #123549;
  --amber: #c07a2e;
  --amber-tint: #f3e6d3;
  --chip-bg: #eef1e9;
}

body, .site {
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: 'Noto Sans JP', system-ui, sans-serif !important;
  line-height: 1.9;
}

.article h1, .entry-title,
.article h2, .entry-content h2,
.article h3, .entry-content h3,
.article h4, .entry-content h4 {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
  color: var(--ink);
}

.article h2, .entry-content h2 {
  font-weight: 700;
  border-bottom: 2px solid var(--steel);
  padding-bottom: 12px;
  margin-top: 40px;
}

.article h3, .entry-content h3 {
  color: var(--steel-deep);
  font-weight: 700;
}

.article p, .entry-content p {
  max-width: 68ch;
}

.article a, .entry-content a {
  color: var(--steel);
}

.article table, .entry-content table {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.article table thead th, .entry-content table thead th,
.article table th, .entry-content table th {
  background: var(--steel-deep) !important;
  color: #fdfaf2 !important;
  font-weight: 600;
  padding: 11px 16px;
}
.article table td, .entry-content table td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}
.article table tr:nth-child(even) td, .entry-content table tr:nth-child(even) td {
  background: var(--chip-bg);
}

.callout {
  background: #e7eef1;
  border-left: 3px solid var(--steel);
  border-radius: 0 4px 4px 0;
  padding: 18px 22px;
  margin: 22px 0;
}
.callout .label {
  font-family: 'Roboto Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 8px;
}
.callout p { margin: 0; }

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.device-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 16px 18px;
}
.device-card .name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--steel-deep);
  margin-bottom: 8px;
  display: block;
}
.device-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 26px 0;
}
.stat { background: var(--paper); padding: 20px 16px; text-align: center; }
.stat .val {
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
  font-size: 26px;
  color: var(--amber);
}
.stat .lab { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.chip {
  background: var(--chip-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip::before { content: "✓"; color: var(--steel); font-weight: 700; }

.voice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.voice .icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--amber-tint);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.voice h4 { margin: 0 0 6px; font-size: 15px; color: var(--steel-deep); }
.voice p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.reason { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.reason .mark {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  color: var(--steel);
  background: #e7eef1;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.reason h4 { margin: 0 0 6px; font-size: 15.5px; color: var(--ink); }
.reason p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.conclusion {
  background: var(--steel-deep);
  color: #fdfaf2;
  border-radius: 6px;
  padding: 32px 30px;
  margin-top: 8px;
}
.conclusion h2 {
  color: #fdfaf2 !important;
  border: none !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}
.conclusion p { color: #e3ddca; margin-bottom: 12px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--amber); display: inline-block; }
.lede {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 30px;
}

@media (max-width: 640px) {
  .device-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}
/* SNSシェア・フォローボタンは白文字に戻す */
.sns-share a, .sns-follow a,
.sns-share-buttons a, .sns-follow-buttons a,
.share-buttons a, .btn-tag-list a {
  color: #fff !important;
}
/* まとめボックス内の見出しの白背景を消す */
/* まとめボックス内の見出しを、周りと同じ濃紺にする */
.conclusion h2,
.conclusion h2 * {
  background: var(--steel-deep) !important;
  box-shadow: none !important;
  border: none !important;
}
.conclusion h2 {
  background: none !important;
  box-shadow: none !important;
}
/* 統計ボックスの列数を、中身の数に応じて自動調整 */
.stat-row {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
}
/* サイト名(ヘッダー)のデザインを統一 */
.site-name, .site-name a,
.logo-image, .site-title, .site-title a {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
  font-weight: 700 !important;
  color: var(--steel-deep) !important;
  letter-spacing: .02em;
}
/* ヘッダーに控えめな差し色を追加 */
#header-container, .header-container, #header, .site-header {
  background: var(--bg) !important;
  border-bottom: 3px solid var(--amber) !important;
}
/* 記事下のカテゴリラベルを白文字にして読みやすく */
.entry-categories-tags .cat-link,
.entry-categories-tags .cat-link:visited {
  color: #fff !important;
  background-color: var(--steel, #1b4b66) !important;
}
.entry-categories-tags .cat-link:hover {
  color: #fff !important;
  opacity: .8;
}

/* ホームボタン(記事の上) */
.home-btn-top { margin: 0 0 12px; }
.home-btn-top a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; text-decoration: none !important;
  color: var(--steel, #1b4b66) !important;
  background: #fff; border: 1.5px solid var(--steel, #1b4b66);
  border-radius: 999px; padding: 5px 14px;
}
.home-btn-top a:hover { background: var(--steel, #1b4b66); color: #fff !important; }

/* ホームボタン(記事の下) */
.home-btn-bottom { text-align: center; margin: 28px 0 8px; }
.home-btn-bottom a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 260px; font-size: 16px; font-weight: 700; text-decoration: none !important;
  color: #fff !important; background: var(--steel, #1b4b66);
  border-radius: 8px; padding: 14px 28px;
}
.home-btn-bottom a:hover { opacity: .85; }

/* ホームボタン(画面右下・PCのみ) */
.home-btn-float {
  position: fixed; right: 16px; bottom: 84px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--amber, #c07a2e); color: #fff !important; text-decoration: none !important;
  font-size: 10px; font-weight: 700; line-height: 1.2; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.home-btn-float .fa { font-size: 20px; }
.home-btn-float:hover { opacity: .85; }
@media (max-width: 1023px) { .home-btn-float { display: none; } }

/* アイキャッチ画像を小さめに */
.single .eye-catch-wrap { max-width: 640px; margin-left: auto; margin-right: auto; }

/* 記事下の書いた人ボックス */
.writer-box { border: 2px solid var(--line, #d9d4c7); border-radius: 12px; background: #fff; padding: 20px; margin: 32px 0 16px; }
.writer-box .writer-label { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--steel, #1b4b66); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }
.writer-box .writer-inner { display: flex; gap: 16px; align-items: flex-start; }
.writer-box .writer-photo { flex: 0 0 96px; }
.writer-box .writer-photo img { width: 96px; height: 96px; border-radius: 50%; display: block; }
.writer-box .writer-name { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.writer-box .writer-name span { font-size: 13px; font-weight: 600; color: var(--ink-soft, #4a5a5f); margin-left: 6px; }
.writer-box .writer-text { font-size: 14px; line-height: 1.8; margin: 0 0 10px; }
.writer-box .writer-link a { font-size: 13px; font-weight: 700; color: var(--steel, #1b4b66) !important; }

/* 書いた人ボックスの本文幅 */
.writer-box .writer-inner > div:last-child { flex: 1; min-width: 0; }
.writer-box p:last-child { margin-bottom: 0; }
