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

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

/* DH ARTICLE EDITORIAL v1.0 | 2026-11-27 | approved navy / unraveling thread */
body.single-post #main .entry-content {
  --dh-ink: #20344e;
  --dh-navy: #10243f;
  --dh-gold: #c7a46a;
  --dh-teal: #477e84;
  --dh-mincho: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", "MS PMincho", serif;
}
body.single-post #main .entry-content h2 {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 2.65em 0 1.15em; padding: 0.85em 20% 0.85em 1.35em;
  border: 0; border-top: 1px solid var(--dh-teal); border-bottom: 1px solid var(--dh-gold);
  border-radius: 0; box-shadow: inset 0 4px 0 #f5f8fa, inset 0 -3px 0 #f5f8fa;
  background: linear-gradient(115deg, #10243f 0%, #20344e 58%, #294968 100%);
  color: #fff; font-family: var(--dh-mincho); font-size: clamp(1.21rem, 2.1vw, 1.55rem);
  font-weight: 700; line-height: 1.65; letter-spacing: .035em;
  text-shadow: none; text-decoration: none; overflow-wrap: anywhere;
}
body.single-post #main .entry-content h2::before {
  content: ""; position: absolute; left: .62em; top: .85em; bottom: .85em;
  width: 3px; background: var(--dh-gold); border: 0; border-radius: 0; transform: none;
}
body.single-post #main .entry-content h2::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 24%; right: 0; top: 3px; bottom: 3px; height: auto; border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 100' preserveAspectRatio='none'%3E%3Cpath d='M0 96 C66 95 76 7 190 1 L190 100 Z' fill='%237c9cbb' opacity='.13'/%3E%3Cpath d='M0 95 C62 95 78 10 190 2' fill='none' stroke='%23c7a46a' stroke-width='1.15'/%3E%3Cpath d='M27 98 C97 93 121 35 190 9' fill='none' stroke='%237c9cbb' stroke-width='1' opacity='.7'/%3E%3Cpath d='M112 88 Q143 77 160 42 Q167 29 177 20' fill='none' stroke='%23d8c59e' stroke-width='1.3'/%3E%3Cpath d='M145 66 Q137 54 146 49 Q151 54 145 66 M154 54 Q167 48 170 38 Q157 39 154 54 M164 39 Q157 25 168 24 Q174 31 164 39 M171 29 Q185 27 187 17 Q176 17 171 29' fill='%23d8c59e'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: none;
}
body.single-post #main .entry-content h3 {
  position: relative; isolation: isolate; overflow: visible;
  margin: 2.1em 0 1.35em; padding: .62em .8em 1.22em 2.45em;
  border: 0; border-bottom: 1px solid #c5d3df; border-radius: 5px 5px 0 0;
  box-shadow: none; background: linear-gradient(105deg, #eaf0f5 0%, #f4f7fa 100%);
  color: var(--dh-ink); font-family: var(--dh-mincho); font-size: clamp(1.08rem, 1.7vw, 1.31rem);
  line-height: 1.65; font-weight: 700; letter-spacing: .025em; text-shadow: none;
  overflow-wrap: anywhere;
}
body.single-post #main .entry-content h3::before {
  content: ""; position: absolute; pointer-events: none;
  left: .4em; bottom: .32em; top: auto; width: 2.05em; height: 1.95em;
  border: 0; border-radius: 0; transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 44'%3E%3Cpath d='M1 39 C14 42 25 29 28 17 C32 -1 10 -1 12 15 C14 29 32 38 46 39' fill='none' stroke='%2320344e' stroke-width='1.45' stroke-linecap='round'/%3E%3Cpath d='M12 15 C10 -1 32 -1 28 17' fill='none' stroke='%23b18b4d' stroke-width='1.55' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
body.single-post #main .entry-content h3::after {
  content: ""; position: absolute; pointer-events: none;
  left: 2.42em; right: .55em; bottom: .32em; top: auto; width: auto; height: 1.95em;
  border: 0; border-radius: 0; transform: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44'%3E%3Cpath d='M0 39 C23 39 37 40 45 29 C55 10 31 12 33 27 C34 38 64 42 91 36' fill='none' stroke='%2320344e' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='99' cy='34' r='1.5' fill='%23b18b4d'/%3E%3Ccircle cx='107' cy='32' r='1.5' fill='%23b18b4d'/%3E%3Ccircle cx='115' cy='30' r='1.5' fill='%23b18b4d'/%3E%3C/svg%3E") right bottom / 5.3em 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 44' preserveAspectRatio='none'%3E%3Cpath d='M0 39 C80 39 135 34 200 38 S335 41 400 36 S460 39 500 39' fill='none' stroke='%2320344e' stroke-width='1.3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") left bottom / calc(100% - 5.3em) 100% no-repeat;
}
body.single-post #main .entry-content h4 {
  margin: 1.7em 0 .8em; padding: .2em .65em;
  border: 0; border-left: 3px solid var(--dh-teal); border-radius: 0;
  background: transparent; box-shadow: none; color: var(--dh-ink);
  font-size: 1.06em; line-height: 1.6; font-weight: 700;
}
body.single-post #main .entry-content h4::before,
body.single-post #main .entry-content h4::after { content: none; }
body.single-post #main .entry-content .speech-wrap.sb-id-11.sbs-line .speech-balloon {
  background-color: #d7f0b9; border-color: #d7f0b9; color: #23352a;
}
body.single-post #main .entry-content .speech-wrap.sb-id-11.sbs-line.sbp-r .speech-balloon::before,
body.single-post #main .entry-content .speech-wrap.sb-id-11.sbs-line.sbp-r .speech-balloon::after {
  border-left-color: #d7f0b9;
}
body.single-post #main .entry-content .speech-wrap.sb-id-11.sbs-line.sbp-l .speech-balloon::before,
body.single-post #main .entry-content .speech-wrap.sb-id-11.sbs-line.sbp-l .speech-balloon::after {
  border-right-color: #d7f0b9;
}
@media (max-width: 600px) {
  body.single-post #main .entry-content h2 { padding: .8em 12% .8em 1.1em; margin-top: 2.2em; }
  body.single-post #main .entry-content h2::before { left: .45em; }
  body.single-post #main .entry-content h2::after { width: 17%; opacity: .65; }
  body.single-post #main .entry-content h3 { margin-top: 1.8em; margin-bottom: 1.25em; padding-left: 2.2em; padding-right: .65em; }
  body.single-post #main .entry-content h3::before { width: 1.8em; }
  body.single-post #main .entry-content h3::after { left: 2.17em; right: .45em; }
}
@media (forced-colors: active) {
  body.single-post #main .entry-content h2 { border: 1px solid CanvasText; }
  body.single-post #main .entry-content h3 { border-bottom: 1px solid CanvasText; }
}
/* END DH ARTICLE EDITORIAL v1.0 */

/* Drama Hodoku: common navigation and search */
.dh-visually-hidden {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
#header-container { background:#fff; color:#202a3a; }
#header-container-in #header-in {
  display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between;
  max-width:1200px; min-height:104px; height:auto; padding:16px 24px; gap:8px 32px;
}
#header-container-in #header-in::after { display:none; }
#header-container-in .tagline {
  width:100%; margin:0; padding:0; text-align:left;
  color:#536579; font-size:12px; line-height:1.5; letter-spacing:.06em;
}
#header-container-in .logo-header { margin:0; padding:0; text-align:left; font-size:28px; line-height:1.4; }
#header-container-in .site-name-text-link { display:inline-block; padding:0; color:#20344e; font-weight:700; letter-spacing:.08em; }
.dh-header-search { display:flex; align-items:stretch; width:360px; max-width:100%; margin:0; }
.dh-header-search input {
  flex:1; min-width:0; width:auto; border:1px solid #9caebc; border-right:0;
  border-radius:6px 0 0 6px; background:#fff; color:#202a3a;
  padding:10px 12px; font-size:14px; line-height:1.5; height:44px;
}
.dh-header-search input::placeholder { color:#596b7c; opacity:1; }
.dh-header-search button {
  min-width:64px; border:1px solid #304d70; border-radius:0 6px 6px 0;
  padding:8px 14px; color:#fff; background:#304d70; font-size:14px; font-weight:700;
  cursor:pointer;
}
.dh-header-search button:hover { background:#20344e; }
#navi { background:#eef4f8; border-top:1px solid #dce5ec; border-bottom:1px solid #dce5ec; }
#navi-in { max-width:1200px; padding:0 24px; }
#navi .menu-header { display:flex; align-items:stretch; justify-content:flex-start; flex-wrap:wrap; }
#navi .menu-header > li { width:auto; height:auto; min-width:0; margin:0; }
#navi .menu-header > li > a {
  padding:14px 25px; height:auto; color:#20344e; font-size:15px; font-weight:700; line-height:1.6;
}
#navi .menu-header > li > a:hover { background:#dce8f0; }
#navi .menu-header .current-menu-item > a { background:#dce8f0; }
#header-container a:focus-visible, #header-container input:focus-visible,
#header-container button:focus-visible, .mobile-menu-buttons a:focus-visible,
#navi-footer a:focus-visible {
  outline:3px solid #4b7295; outline-offset:3px;
}
#footer { background:#eef4f8; color:#20344e; border-top:1px solid #dce5ec; margin-top:36px; padding:28px 20px 24px; }
#footer-in { max-width:1200px; }
#footer .logo-footer { text-align:center; margin:0 0 18px; padding:0; }
#footer .site-name-text-link { color:#20344e; font-size:20px; font-weight:700; }
#footer .footer-bottom { display:flex; flex-direction:column; align-items:center; gap:14px; }
#navi-footer .menu-footer { display:flex; justify-content:center; flex-wrap:wrap; gap:4px 8px; }
#navi-footer .menu-footer li { border:0; margin:0; }
#navi-footer .menu-footer a { display:block; color:#20344e; padding:10px 12px; font-size:13px; line-height:1.6; }
#navi-footer .menu-footer a:hover { text-decoration:underline; background:transparent; }
#footer .copyright { float:none; color:#536579; font-size:12px; margin:0; }
:is(.page-id-174,.page-id-175,.page-id-176,.page-id-177) .sns-share,
:is(.page-id-174,.page-id-175,.page-id-176,.page-id-177) .sns-follow { display:none; }
:is(.page-id-174,.page-id-175,.page-id-176,.page-id-177) .main { margin-left:auto; margin-right:auto; }
@media (max-width:1023px) {
  #header-container-in #header-in { padding:16px 20px; gap:8px 20px; }
  #navi .menu-header > li > a { padding:13px 20px; }
}
@media (max-width:834px) {
  .dh-header-search { display:none; }
  #navi .menu-header { display:none; }
  .mobile-header-menu-buttons {
    background:#fff; color:#20344e; border-bottom:1px solid #dce5ec;
    box-shadow:0 2px 8px rgba(32,52,78,.05);
  }
  .mobile-header-menu-buttons .menu-button-in { color:#20344e; min-height:52px; }
  .mobile-header-menu-buttons .menu-caption { font-size:11px; color:#20344e; }
  .mobile-header-menu-buttons .logo-menu-button .site-name-text { font-size:18px; font-weight:700; letter-spacing:.04em; }
  #navi-menu-content .menu-drawer a { color:#20344e; padding:15px 20px; line-height:1.6; font-size:16px; }
  #footer { margin-top:24px; padding:24px 12px 20px; }
  #navi-footer .menu-footer { gap:2px 0; }
  #navi-footer .menu-footer a { padding:12px 10px; }
}


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

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

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