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

/************************************
** デザイン方向A「公共ガイドブック」（3サイト共通の骨格）
** 色は各サイトの tokens.css（サイト/<サイト名>/tokens.css）から差し込む。
** このファイルは 共通/theme/child-style.css。deploy_theme.ps1 でテーマへ反映する
************************************/
:root {
  --paper: #FFFFFF;
  --paper-deep: #EEF2F5;
  --surface: #FFFFFF;
  --ink: #22262B;
  --muted: #5A6570;
  --rule: #D6DEE5;
  --primary: #2B5980;
  --primary-tint: #E4EDF4;
  --accent: #1D3E58;
  --accent-dark: #142B3E;
  --note-bg: #EAF0F5;
  --warn-bg: #FBF0D9;
  --warn-rule: #B7791F;
}
:root {
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* vw基準のフルブリード要素がスクロールバー幅の分だけはみ出しても、横スクロールを発生させない */
html {
  overflow-x: hidden;
}

/* 土台：紙色の背景・墨色の文字・読みやすい行間 */
body,
body.ff-hiragino {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 2.05;
  -webkit-font-smoothing: antialiased;
}
.container,
.content,
.main,
#main.main {
  background: transparent;
}

/* PR表記（全ページ最上部） */
.pr-notice {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  padding: 6px 12px;
  text-align: center;
}
.pr-notice__label {
  border: 1px solid var(--muted);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
  padding: 0 5px;
}
.pr-notice a {
  color: var(--primary);
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* 表紙（ヘッダー）：二重罫の題字 */
.header-container,
.header-container-in,
.header-container .header {
  background: var(--paper);
  margin: 0;
  min-height: 0;
  padding: 0;
}
.header-container {
  border-top: 5px solid var(--primary);
  border-bottom: 3px double var(--primary);
}
.header-in {
  padding: 14px 0 16px;
}
.logo-header {
  line-height: 1.3;
  margin: 0;
  padding: 0;
}
.entry-content,
.entry-title {
  text-wrap: pretty;
  word-break: auto-phrase;
}
.entry-title,
.entry-content h2,
.entry-content h3 {
  text-wrap: balance;
}
.tagline {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.24em;
  margin-bottom: 4px;
}
.logo-header .site-name-text,
.logo-header .site-name-text-link {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: clamp(22px, 18px + 1.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 本文の幅：画面幅いっぱい（レスポンシブ、上限なし） */
.content-in {
  display: block;
}
#content-in.wrap {
  margin: 0;
  width: auto;
}
#main.main {
  border: 0;
  box-shadow: none;
  float: none;
  margin: 0 auto;
  max-width: 100%;
  padding: 0 20px 56px;
  width: auto;
}
.sidebar {
  display: none;
}

/* 見出し */
.entry-title,
.article h1.entry-title {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(23px, 19px + 1.6vw, 32px);
  font-weight: 700;
  line-height: 1.6;
  margin: 44px 0 20px;
}
.article-header {
  margin-bottom: 8px;
}
.entry-content {
  counter-reset: chapter;
}
.entry-content h2,
.article h2 {
  background: none;
  border: 0;
  border-bottom: 2px solid var(--primary);
  border-radius: 0;
  color: var(--primary);
  counter-increment: chapter;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  margin: 60px 0 22px;
  padding: 0 0 10px;
}
.entry-content h2::before,
.article h2::before {
  border: 0;
  color: var(--accent);
  content: counter(chapter, decimal-leading-zero);
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  height: auto;
  letter-spacing: 0.24em;
  margin: 0 0 4px;
  position: static;
  width: auto;
}
.entry-content h2::after,
.article h2::after {
  content: none;
}
.entry-content h3,
.article h3 {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin: 40px 0 16px;
  padding: 0 0 6px;
}
.entry-content h3::before,
.entry-content h3::after {
  content: none;
}

/* 段落・リスト・リンク */
.entry-content p {
  margin: 0 0 1.8em;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.8em;
  padding-left: 1.5em;
}
.entry-content li {
  margin: 0.7em 0;
}
.entry-content li::marker {
  color: var(--primary);
  font-weight: 700;
}
.entry-content a,
.entry-content a:visited {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.entry-content a:hover {
  color: var(--accent);
}
.entry-content strong {
  font-weight: 700;
}

/* 表：書式のように罫線で区切る */
.entry-content table {
  border-collapse: collapse;
  border-top: 2px solid var(--primary);
  font-variant-numeric: tabular-nums;
  margin: 0 0 1.8em;
  width: 100%;
}
.entry-content th,
.entry-content td {
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.75em 1em;
  text-align: left;
  vertical-align: top;
}
.entry-content th {
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

/* 部品：目安・注意・確認事項 */
.guide-note,
.guide-warn {
  border-left: 4px solid var(--primary);
  margin: 0 0 1.8em;
  padding: 1em 1.2em;
}
.guide-note {
  background: var(--note-bg);
}
.guide-warn {
  background: var(--warn-bg);
  border-left-color: var(--warn-rule);
}
.guide-note > :last-child,
.guide-warn > :last-child {
  margin-bottom: 0;
}
.guide-check {
  list-style: none;
  padding-left: 0;
}
.guide-check li {
  padding-left: 1.7em;
  position: relative;
}
.guide-check li::before {
  border: 1.5px solid var(--primary);
  content: "";
  height: 0.9em;
  left: 0;
  position: absolute;
  top: 0.55em;
  width: 0.9em;
}

/* 目次：ガイドブックの「目次」 */
.toc {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-top: 2px solid var(--primary);
  border-radius: 0;
  display: block;
  margin: 0 0 40px;
  padding: 16px 4px 12px;
  width: auto;
}
.toc-title {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
}
.toc-content a,
.toc a {
  color: var(--ink);
  text-decoration: none;
}
.toc-content a:hover,
.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* カテゴリー表示・関連記事 */
.entry-categories-tags .cat-link,
.cat-link {
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 2px;
  color: var(--primary);
  font-size: 12px;
  padding: 0 8px;
}
.related-entry-heading,
.comment-title,
.comment-reply-title {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  padding: 0 0 8px;
}

/* 記事末尾・パンくず・フッター */
.article-footer,
.breadcrumb {
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a {
  color: var(--muted);
}
.footer {
  background: var(--paper);
  border-top: 3px double var(--primary);
  color: var(--muted);
}
.footer a,
.footer .site-name-text {
  color: var(--primary);
}
.footer .site-name-text {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* お問い合わせフォーム */
.wpcf7 label {
  display: block;
  font-weight: 700;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 16px;
  margin-top: 6px;
  padding: 0.7em 0.9em;
  width: 100%;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.wpcf7 input[type="submit"] {
  background: var(--accent);
  border: 0;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.85em 2.4em;
}
.wpcf7 input[type="submit"]:hover {
  background: var(--accent-dark);
}

/* 固定ページでは投稿日・著者を出さない */
body.page .date-tags,
body.page .author-info {
  display: none;
}

/* キーボード操作の目印 */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*834px以下*/
@media screen and (max-width: 834px){
  body,
  body.ff-hiragino {
    font-size: 16px;
  }
  #navi-footer .menu-footer {
    display: block;
    margin: 0;
    padding: 0;
  }
  #navi-footer .menu-footer > li {
    border: 0;
    display: block !important;
    flex: none !important;
    float: none;
    margin: 0;
    width: auto !important;
  }
  #navi-footer .menu-footer > li > a {
    border: 0;
    display: block;
    padding: 6px 0;
    white-space: normal;
    width: auto !important;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .entry-content h2,
  .article h2 {
    font-size: 21px;
  }
  .entry-content th {
    white-space: normal;
  }
}
