@charset "utf-8";
/*
Theme Name:DDdeco child
Theme URI:https://dddeco.net/
Description:WordPressテーマ「DDdeco」の子テーマ
Template:dddeco
Author:DailyDesignDecoration
Author URI:https://dddeco.net/
Version:1.0
*/

/*
  ここから下にCSSを追記してください。
*/

/* =========================================================================
   新HP：全ページ共通の調整（2026-11-22）
   ========================================================================= */

/* ヘッダーメニュー：今いるページ
   TCDはメインカラー（#d3dee0）で薄く表示するため、濃いグレーにしてゴールドの下線で示す */
#global_menu > ul > li.current-menu-item > a,
#global_menu > ul > li.current_page_item > a,
#global_menu > ul > li.current-menu-ancestor > a,
#global_menu > ul > li.current_page_parent > a,
#global_menu > ul > li.active.current-menu-item > a {
  color: #4a4a4a;
}
#global_menu > ul > li.current-menu-item > a::after,
#global_menu > ul > li.current_page_item > a::after,
#global_menu > ul > li.current-menu-ancestor > a::after,
#global_menu > ul > li.current_page_parent > a::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 24px;
  height: 2px;
  background: #c8bca0;
}

/* ヘッダーメニューの位置（2026-11-22「よくある質問」を足して6項目に）
   TCDは画面の中央に置くため、幅が狭いとロゴに重なる。ロゴ（右端 320px）と「無料相談」ボタンの間の中央に置く */
@media (min-width: 1201px) {
  #global_menu { left: 330px; right: 170px; width: auto; transform: none; text-align: center; }
}
/* 狭いPC幅では、文字と間隔を少し詰める */
@media (min-width: 1201px) and (max-width: 1320px) {
  #global_menu > ul > li { font-size: 14px; }
  #global_menu > ul > li > a { padding: 0 12px; }
  #global_menu > ul > li.current-menu-item > a::after,
  #global_menu > ul > li.current_page_item > a::after,
  #global_menu > ul > li.current-menu-ancestor > a::after,
  #global_menu > ul > li.current_page_parent > a::after { left: 12px; right: 12px; }
}

/* ヘッダー右上の「無料相談」ボタン（2026-11-22 Miharuさん承認）
   TCDはメインカラー（#d3dee0）＋白文字で読みにくいため、相談エリアの「無料で相談する」と同じ濃いグレーに */
#header_button {
  background: #4a4a4a;
  color: #fff !important;
  transition: opacity .2s;
}
#header_button:hover { background: #4a4a4a; opacity: .85; }

/* スマホのメニュー（ドロワー）（2026-11-22 Miharuさん承認）
   TCDのCSSで黒の背景・白の文字に固定されているため、淡いブルーグレーの背景に濃いグレーの文字に */
#drawer_menu { background: #d3dee0; }
#drawer_menu .header { border-bottom-color: rgba(74, 74, 74, .2); }
#drawer_mneu_close_button:before { color: #4a4a4a; }
#mobile_menu a {
  color: #4a4a4a !important;
  border-bottom-color: rgba(74, 74, 74, .2);
}
#mobile_menu .child_menu_button:after { color: #4a4a4a; }
#mobile_menu li ul,
#mobile_menu li li a { background: #eef3f4; }

/* スマホのメニューの下のボタン（functions.php で class と LINE の項目を追加）
   相談エリアの「無料で相談する」「LINEで気軽に聞く」と同じ見た目 */
#mobile_menu li.ddf-menu-cta { padding: 28px 20px 0; }
#mobile_menu li.ddf-menu-line { padding: 12px 20px 28px; }
#mobile_menu li.ddf-menu-cta > a,
#mobile_menu li.ddf-menu-line > a {
  height: auto;
  min-height: 52px;
  line-height: 1.6;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #4a4a4a;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  white-space: normal;
  transition: opacity .2s, background-color .2s;
}
#mobile_menu li.ddf-menu-cta > a { background: #4a4a4a; color: #fff !important; }
#mobile_menu li.ddf-menu-cta > a:hover { opacity: .85; }
#mobile_menu li.ddf-menu-line > a { background: #fff; color: #4a4a4a !important; }
#mobile_menu li.ddf-menu-line > a:hover { background: #eef3f4; }

/* 下層ページ共通のヘッダー（子テーマ page.php）
   写真＋グレイッシュブルー（#d3dee0）の半透明＋英語ラベル＋明朝のタイトル＋ゴールドの細い線 */
#page_header.ddf-page-header {
  height: 380px;
  padding: 80px 0 0; /* 上に重なるヘッダーのメニュー（白い枠）の分だけ下げる */
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#page_header.ddf-page-header .bg_image img { object-position: center center; }
#page_header.ddf-page-header .ddf-page-header__overlay { background: rgba(211, 222, 224, .78); }
.ddf-page-header__inner {
  position: relative;
  z-index: 3;
  padding: 0 24px;
  color: #4a4a4a;
}
.ddf-page-header__label {
  margin: 0 0 14px;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .32em;
  line-height: 1.4;
  color: #7d7158;
}
.ddf-page-header__title {
  margin: 0;
  font-family: "Shippori Mincho", "Yu Mincho", "游明朝", serif;
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.5;
  letter-spacing: .08em;
  color: #4a4a4a;
}
.ddf-page-header__line {
  display: block;
  width: 56px;
  height: 1px;
  margin: 22px auto 0;
  background: #c8bca0;
}
@media (max-width: 1100px) {
  #page_header.ddf-page-header { height: 320px; }
}
@media (max-width: 1100px) {
  #page_header.ddf-page-header { padding-top: 0; }
}
@media (max-width: 767px) {
  #page_header.ddf-page-header { height: 220px; }
  .ddf-page-header__label { font-size: 11px; margin-bottom: 10px; letter-spacing: .28em; }
  .ddf-page-header__title { font-size: 21px; letter-spacing: .06em; text-wrap: balance; }
  .ddf-page-header__line { width: 44px; margin-top: 16px; }
}

/* 事例：業種（TCDはメインカラー #d3dee0 で薄く表示）を読める色に */
#single_case_header .meta .job,
#archive_case_study .meta .job,
#related_case .meta .job { color: #7d7158; }

/* パンくずリスト：今いるページの文字を読める濃さに */
#bread_crumb li:last-of-type { color: #6b6b6b; }
#bread_crumb li a { color: #4a4a4a; }

/* フッター：お問い合わせ欄をオフにした分、ロゴの上の余白を詰める */
#page_contents,
#single_case { padding-bottom: 40px; }
#footer_inner { padding: 28px 0 32px; }
@media (max-width: 767px) {
  #page_contents,
  #single_case { padding-bottom: 20px; }
  #footer_inner { padding: 20px 0 24px; }
}

/* コピーライトの横のプライバシーポリシー（footer.php で追加） */
#copyright .ddf-privacy {
  display: inline-block;
  margin-left: 1.5em;
  font-size: 12px;
  color: #6b6b6b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 767px) {
  #copyright .ddf-privacy { display: block; margin: 6px 0 0; }
}

/* =========================================================================
   記事カード（2026-11-23 Miharuさん指示）
   対象：コラムの一覧・カテゴリー・タグ・検索結果・投稿者の一覧（.blog_list）、記事下の関連記事（#related_post）
   TOPのコラム3件は front-page.css
   ========================================================================= */
/* タイトル：黒く太い → 濃いグレー・太さ500 */
.blog_list .title,
.blog_list .title a,
#related_post .post_list .title {
  color: #4a4a4a;
  font-family: "Noto Sans JP", "Yu Gothic", "游ゴシック", "Hiragino Sans", sans-serif;
  font-weight: 500;
}
/* 画像：どの記事でも同じ縦横比（アイキャッチと同じ 720:460）。枠からはみ出す分は切り取る（画像そのものは変えない） */
.blog_list .image_link { aspect-ratio: 720 / 460; height: auto; overflow: hidden; }
#related_post .post_list .image_wrap { aspect-ratio: 720 / 460; height: auto; overflow: hidden; }
.blog_list .image_wrap { position: absolute; inset: 0; width: 100%; height: 100%; }
.blog_list .image_wrap img,
#related_post .post_list .image_wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
}