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

/* ============================================================
   DeskHub サイト全体デザイン（2026-11-16）
   ------------------------------------------------------------
   前提：Cocoon 7.1.4 ／ 子テーマ cocoon-child-master ／ スキン「なし」
   根拠：reports/権威性のあるメディアデザイン参考例.md
   原本：Deskhub/theme/cocoon-child/style.css（直すときはこちらを直す）

   ※この上のコメント（Theme Name〜）は子テーマの必須ヘッダーです。
     消すとテーマが壊れるので、絶対に残してください。
   ============================================================ */

:root{
  /* ティールは維持。白文字を載せる場面だけ、コントラスト基準を満たす明度に */
  --dh-teal:#0e5f59;        /* 白地 7.50:1 */
  --dh-teal-deep:#0f4c4a;   /* 白地 9.75:1 */
  --dh-teal-pale:#eaf2f1;
  --dh-teal-tint:#f4f8f8;
  --dh-rule:#cfd9d8;
  --dh-accent:#e08a2c;      /* 地色としてのみ使う。文字色には使わない */
  --dh-ink:#1a1a1a;
  --dh-muted:#5a6468;
  --dh-page:#eceff1;        /* 地をわずかに沈めて、記事を白カードで浮かせる */
  --dh-font:"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",
            "Noto Sans JP","BIZ UDPGothic",Meiryo,sans-serif;
  /* 角丸：小＝チップ、中＝カード、大＝大きな面、pill＝完全な丸 */
  --dh-r-s:10px;
  --dh-r-m:14px;
  --dh-r-l:20px;
  --dh-r-pill:999px;
  --dh-shadow:0 2px 10px rgba(15,76,74,.06);
}

/************************************
** 全体
************************************/
body{
  background:var(--dh-page);
  color:var(--dh-ink);
  font-family:var(--dh-font);
  letter-spacing:.02em;
}
a{color:var(--dh-teal);}
.wrap{max-width:1100px;}

/************************************
** ヘッダー
** 旧：センターロゴ＋全画面ヒーロー（スキン skin-grayish-topfull）
** 新：白ベタ・64px・ロゴ左／ナビ右
************************************/
#header,
.header-container{
  background:#fff;
  border-bottom:1px solid var(--dh-rule);
}
#header-in.header-in{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:64px;
  padding-top:0;
  padding-bottom:0;
  text-align:left;
}
#header .tagline{
  order:2;
  margin:0;
  font-size:11.5px;
  color:var(--dh-muted);
  letter-spacing:.04em;
}
#header .logo,
#header .logo-header{
  order:1;
  margin:0;
  text-align:left;
}
#header .site-name-text-link,
#header .site-name-text{
  font-size:21px;
  font-weight:700;
  color:var(--dh-teal-deep);
  letter-spacing:.04em;
  line-height:1.3;
}
/* スキンが出していた全画面ヒーローの残骸を念のため消す */
.grayish_topmv_whovlay,
.grayish_topmv_dot,
.skinadd-topmv-scroll{display:none !important;}

/************************************
** グローバルナビ
************************************/
#navi{
  background:#fff;
  border-bottom:1px solid var(--dh-rule);
}
#navi .navi-in > ul > li > a{
  height:auto;
  padding:9px 15px;
  font-size:13.5px;
  font-weight:600;
  color:#33403f;
  border-radius:var(--dh-r-pill);
  line-height:1.6;
}
#navi .navi-in > ul > li > a:hover{
  background:var(--dh-teal-pale);
  color:var(--dh-teal-deep);
}
#navi .navi-in > ul > li.current-menu-item > a{
  background:var(--dh-teal-pale);
  color:var(--dh-teal-deep);
}
#navi .navi-in > ul{justify-content:center;}

/************************************
** パンくず
** 旧：本文に溶け込んで存在感がない
** 新：淡い帯・高さ46px・12px（弁護士ドットコム／ZEIMOの共通解）
************************************/
#breadcrumb{
  background:#f1f2f0;
  border-bottom:1px solid #e3e6e4;
  margin:0 0 22px;
  padding:13px 0;
  font-size:12px;
  color:#6c7574;
}
#breadcrumb a{color:#6c7574;}
#breadcrumb a:hover{text-decoration:underline;}
#breadcrumb .sp{margin:0 8px;color:#aeb6b5;}

/************************************
** 記事一覧カード（エントリーカード）
************************************/
#list .entry-card-wrap,
.entry-card-wrap.a-wrap{
  background:#fff;
  border:1px solid var(--dh-rule);
  border-radius:var(--dh-r-m);
  box-shadow:var(--dh-shadow);
  overflow:hidden;
  transition:transform .18s, border-color .18s;
}
#list .entry-card-wrap:hover,
.entry-card-wrap.a-wrap:hover{
  transform:translateY(-2px);
  border-color:#b9ccca;
  background:#fff;
}
.entry-card-content{padding:14px 16px;}
.entry-card-title{
  font-size:15px;
  font-weight:700;
  line-height:1.6;
  color:var(--dh-ink);
  margin-bottom:7px;
}
.entry-card-snippet{
  font-size:12.5px;
  line-height:1.75;
  color:var(--dh-muted);
}
.entry-card-meta{font-size:11.5px;color:var(--dh-muted);}
.cat-label{
  border:none;
  border-radius:var(--dh-r-pill);
  background:var(--dh-teal-deep);
  color:#fff;
  font-size:10.5px;
  font-weight:700;
  padding:3px 11px;
}

/************************************
** トップページのヒーローと柱記事（固定ページ「ホーム」で使う）
************************************/
.dh-home{max-width:1040px;margin:0 auto;}
.dh-home__hero{
  background:#fff;
  border:1px solid var(--dh-rule);
  border-radius:var(--dh-r-l);
  box-shadow:var(--dh-shadow);
  padding:44px 28px 40px;
  margin:0 0 34px;
  text-align:center;
}
.dh-home__hero h1,
.dh-home__hero .dh-home__title{
  font-size:30px;
  font-weight:700;
  color:var(--dh-teal-deep);
  line-height:1.55;
  margin:0 0 14px;
  padding:0;
  background:none;
  border:none;
}
.dh-home__hero p{
  font-size:16px;
  color:#3c4645;
  margin:0 auto 10px;
  max-width:620px;
  line-height:1.9;
}
.dh-home__meta{font-size:12.5px;color:var(--dh-muted);margin:0 0 28px;}
.dh-home__meta b{color:var(--dh-teal-deep);font-size:14px;}

.dh-home__cats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  text-align:left;
  margin:0;
  padding:0;
  list-style:none;
}
.dh-home__cats li{margin:0;padding:0;list-style:none;}
.dh-home__cats li::before{content:none;}
.dh-home__cat{
  display:block;
  background:#fff;
  border:1px solid var(--dh-rule);
  border-radius:var(--dh-r-m);
  box-shadow:var(--dh-shadow);
  padding:18px 18px 16px;
  text-decoration:none;
  transition:.18s;
}
.dh-home__cat:hover{
  border-color:var(--dh-teal);
  background:var(--dh-teal-tint);
  transform:translateY(-2px);
}
.dh-home__cat em{
  display:inline-block;
  font-style:normal;
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  color:var(--dh-teal-deep);
  background:var(--dh-teal-pale);
  border-radius:var(--dh-r-pill);
  padding:4px 13px;
  margin-bottom:11px;
}
.dh-home__cat b{display:block;font-size:15px;color:var(--dh-teal-deep);margin-bottom:4px;}
.dh-home__cat span{display:block;font-size:12.5px;color:var(--dh-muted);line-height:1.65;}

.dh-home__sec{
  font-size:17px;
  font-weight:700;
  color:var(--dh-teal-deep);
  margin:0 0 14px;
  padding:0 0 9px;
  background:none;
  border:none;
  border-bottom:2px solid var(--dh-rule);
  border-radius:0;
}
.dh-home__pillars{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:0 0 34px;
  padding:0;
  list-style:none;
}
.dh-home__pillars li{margin:0;padding:0;list-style:none;}
.dh-home__pillars li::before{content:none;}
.dh-home__pillar{
  display:block;
  background:#fff;
  border:1px solid var(--dh-rule);
  border-top:3px solid var(--dh-teal);
  border-radius:var(--dh-r-m);
  box-shadow:var(--dh-shadow);
  padding:19px 20px;
  text-decoration:none;
  transition:.18s;
}
.dh-home__pillar:hover{transform:translateY(-2px);border-color:#b9ccca;border-top-color:var(--dh-teal);}
.dh-home__tag{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  color:#1a1a1a;
  background:var(--dh-accent);
  border-radius:var(--dh-r-pill);
  padding:3px 12px;
  margin-bottom:10px;
}
.dh-home__pillar b{display:block;font-size:16.5px;line-height:1.55;color:var(--dh-ink);margin-bottom:7px;}
.dh-home__pillar span{display:block;font-size:13.5px;color:var(--dh-muted);line-height:1.7;margin-bottom:10px;}
.dh-home__pillar small{
  display:block;
  font-size:11.5px;
  color:var(--dh-muted);
  border-top:1px solid #e8edec;
  padding-top:8px;
}

/************************************
** サイドバー
************************************/
#sidebar .widget-sidebar{
  background:#fff;
  border:1px solid var(--dh-rule);
  border-radius:var(--dh-r-m);
  box-shadow:var(--dh-shadow);
  overflow:hidden;
  padding:0;
  margin-bottom:18px;
}
#sidebar .widget-sidebar-title,
#sidebar .widget-sidebar h2{
  margin:0;
  padding:10px 15px;
  background:var(--dh-teal-deep);
  color:#fff;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.04em;
  text-align:left;
  border:none;
  border-radius:0;
}
#sidebar .widget-sidebar > *:not(.widget-sidebar-title):not(h2){padding-left:14px;padding-right:14px;}
#sidebar .widget-sidebar > *:last-child{padding-bottom:14px;}

/* このサイトについて */
.dh-side__editor{display:flex;gap:11px;align-items:flex-start;padding-top:14px;}
.dh-side__av{
  flex:none;width:44px;height:44px;border-radius:50%;
  background:var(--dh-teal-pale);color:var(--dh-teal-deep);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:13px;
}
.dh-side__editor b{display:block;font-size:14px;color:var(--dh-ink);}
.dh-side__editor span{display:block;font-size:12px;color:var(--dh-muted);line-height:1.65;}

/* よく読まれている記事（[popular_list rank=1] の出力に当てる） */
#sidebar .popular-entry-cards{padding-top:6px;}
#sidebar .popular-entry-card{
  border:none;
  border-bottom:1px solid #eef2f1;
  border-radius:0;
  padding:11px 0;
  margin:0;
}
#sidebar .popular-entry-card:last-child{border-bottom:none;}
#sidebar .popular-entry-card-title{
  font-size:13px;
  line-height:1.65;
  font-weight:400;
  color:#33403f;
}
#sidebar .popular-entry-card-rank{
  width:22px;height:22px;line-height:22px;
  border-radius:var(--dh-r-pill);
  background:var(--dh-teal-pale);
  color:var(--dh-teal-deep);
  font-size:11.5px;font-weight:700;text-align:center;
}
#sidebar .popular-entry-card:first-child .popular-entry-card-rank{
  background:var(--dh-teal);
  color:#fff;
}

/************************************
** 投稿ページ
************************************/
#main .article,
.entry-content{
  background:transparent;
}
.content .main,
#main{
  background:#fff;
  border:1px solid var(--dh-rule);
  border-radius:var(--dh-r-l);
  box-shadow:var(--dh-shadow);
  padding:32px 36px;
}
.entry-title,
h1.entry-title{
  font-size:27px;
  font-weight:700;
  line-height:1.55;
  color:var(--dh-teal-deep);
  margin:0 0 18px;
  padding:0;
  background:none;
  border:none;
}
/* タイトル直下の「誰が・いつ書いて・いつ直したか」 */
.dh-byline{
  display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;
  border-top:1px solid var(--dh-rule);
  border-bottom:1px solid var(--dh-rule);
  padding:12px 0;margin:0 0 16px;
}
.dh-byline__who{display:flex;align-items:center;gap:9px;font-size:13.5px;}
.dh-byline__av{
  width:34px;height:34px;border-radius:50%;
  background:var(--dh-teal-pale);color:var(--dh-teal-deep);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:11px;
}
.dh-byline__who b{color:var(--dh-ink);}
.dh-byline__dates{font-size:12.5px;color:var(--dh-muted);}
.dh-byline__dates b{color:#36413f;}

/************************************
** フッター
************************************/
#footer{
  background:var(--dh-teal-deep);
  color:#d7e6e4;
  border-radius:var(--dh-r-l) var(--dh-r-l) 0 0;
  margin-top:40px;
}
#footer a{color:#d7e6e4;}
#footer a:hover{color:#fff;text-decoration:underline;}
#footer .footer-bottom{border-top:1px solid rgba(255,255,255,.16);padding-top:14px;}
#footer .footer-bottom-logo .site-name-text-link{color:#fff;}
#footer .menu-footer li a{font-size:13px;}
#footer .copyright{font-size:11.5px;color:#a8c2bf;}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .dh-home__cats{grid-template-columns:1fr 1fr;}
  .content .main,#main{padding:24px 20px;}
}

/*834px以下*/
@media screen and (max-width: 834px){
  .dh-home__pillars{grid-template-columns:1fr;}
  .dh-home__hero{padding:32px 20px 30px;}
  .dh-home__hero h1,.dh-home__hero .dh-home__title{font-size:23px;}
  #header-in.header-in{min-height:56px;}
}

/*480px以下*/
@media screen and (max-width: 480px){
  .dh-home__cats{grid-template-columns:1fr;}
  .dh-home__hero h1,.dh-home__hero .dh-home__title{font-size:21px;}
  .dh-home__hero p{font-size:15px;}
  .content .main,#main{padding:20px 16px;border-radius:var(--dh-r-m);}
	
	
}/************************************
** 本文とサイドバーの横幅（2026-11-18 追加）
************************************/
@media screen and (min-width: 1024px){
  .content .main,#main{width:calc(100% - 344px);}
  .content .sidebar,#sidebar{width:320px;}
}

/************************************
** ヘッダー1段（トップメニュー右寄せ）の整え（2026-11-18 追加）
************************************/
@media screen and (min-width: 1024px){
  .header-container-in.hlt-top-menu{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;}
  .hlt-top-menu #header,.hlt-top-menu #navi{border-bottom:none;flex:0 1 auto;}
  .hlt-top-menu #header-in.header-in{min-height:64px;flex-direction:row;justify-content:flex-start;}
  .hlt-top-menu #header-in.header-in::before,.hlt-top-menu #header-in.header-in::after{content:none;display:none;}
  .hlt-top-menu #navi .navi-in > ul{flex-wrap:nowrap;justify-content:flex-end;height:auto;}
  .hlt-top-menu #navi .navi-in > ul > li{width:auto;height:auto;flex:0 0 auto;}
  .hlt-top-menu #navi .navi-in > ul > li > a{white-space:nowrap;padding:8px 13px;}
}

/************************************
** トップページ（固定ページ「ホーム」）の整え（2026-11-18 追加）
************************************/
/* 「ホーム」のタイトル・日付・SNSボタン・投稿者欄を出さない */
.home.page .entry-title,
.home.page .date-tags,
.home.page .sns-share,
.home.page .sns-follow,
.home.page .footer-meta,
.home.page .author-info,
.home.page .article-footer{display:none !important;}
/* WordPressが自動で入れる改行を消す */
.dh-home br{display:none !important;}
/* スマホでカードが右にずれるのを防ぐ */
.dh-home .dh-home__cats,
.dh-home .dh-home__pillars{padding:0 !important;margin-left:0 !important;margin-right:0 !important;}
.dh-home .dh-home__cats > li,
.dh-home .dh-home__pillars > li{margin:0 !important;}
/* 柱記事カードのカテゴリ名を小さなラベルにする */
.dh-home .dh-home__pillar .dh-home__tag{display:inline-block !important;width:auto !important;}
/* サイドバーがある幅では、カテゴリを2列×2段にする */
@media screen and (min-width: 835px){
  .dh-home__cats{grid-template-columns:repeat(2,1fr) !important;}
}

/************************************
** トップページ「悩みから探す」（2026-11-18 追加）
************************************/
.dh-home .dh-home__worries{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:0 0 34px !important;
  padding:0 !important;
  list-style:none;
}
.dh-home .dh-home__worries > li{margin:0 !important;padding:0;list-style:none;}
.dh-home .dh-home__worries > li::before{content:none;}
.dh-home__worry{
  display:flex;
  align-items:center;
  gap:10px;
  height:100%;
  background:#fff;
  border:1px solid var(--dh-rule);
  border-radius:var(--dh-r-m);
  padding:11px 38px 11px 12px;
  text-decoration:none;
  position:relative;
  transition:.18s;
}
.dh-home__worry::after{
  content:"";
  position:absolute;
  right:17px;top:50%;
  width:7px;height:7px;
  border-top:2px solid var(--dh-teal);
  border-right:2px solid var(--dh-teal);
  transform:translateY(-50%) rotate(45deg);
}
.dh-home__worry:hover{
  border-color:var(--dh-teal);
  background:var(--dh-teal-tint);
}
.dh-home__worry em{
  flex:none;
  font-style:normal;
  font-size:11px;
  font-weight:700;
  color:var(--dh-teal-deep);
  background:var(--dh-teal-pale);
  border-radius:var(--dh-r-pill);
  padding:3px 10px;
}
.dh-home__worry b{
  font-size:14px;
  font-weight:600;
  color:var(--dh-ink);
  line-height:1.5;
}
@media screen and (max-width: 480px){
  .dh-home .dh-home__worries{grid-template-columns:1fr;}
}
