/*
Theme Name: anthem_tcd083 Child
Template: anthem_tcd083
*/

/* ==========================================================================
   andnp child theme — design overrides
   カラーパレット:
     ネイビー     #1a2a4a
     ターコイズ   #007a85
     クリーム     #f8f7f4
     白           #ffffff
     薄グレー     #e8e6e1
     ミディアム   #4a5568
   ========================================================================== */

/* --------------------------------------------------------------------------
   ベース / body
   -------------------------------------------------------------------------- */

body {
  background-color: #f8f7f4;
  color: #1a2a4a;
  font-family: "Noto Serif JP", "游明朝", YuMincho, "Hiragino Mincho Pro", serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #007a85;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #005a62;
  opacity: 0.85;
}

p {
  line-height: 1.9;
  margin-bottom: 1.4em;
}

h1, h2, h3, h4, h5, h6 {
  color: #1a2a4a;
  font-family: "Noto Serif JP", "游明朝", YuMincho, "Hiragino Mincho Pro", serif;
  font-weight: 600;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */

#header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e6e1;
  box-shadow: none;
}

#header_top {
  background-color: #ffffff;
  border-bottom: none;
}

#header_bottom {
  background-color: #ffffff;
}

#header_bottom_inner {
  display: flex;
  align-items: center;
}

/* ロゴ */
#header_logo .logo a {
  color: #1a2a4a;
}

#header_logo img {
  max-height: 48px;
  width: auto;
}

/* --------------------------------------------------------------------------
   グローバルナビ
   -------------------------------------------------------------------------- */

#global_menu {
  background-color: transparent;
}

#global_menu ul {
  background-color: transparent;
}

#global_menu ul li a {
  color: #1a2a4a;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0 1.2em;
  background-color: transparent;
  transition: color 0.2s ease;
  font-family: "Noto Sans JP", "游ゴシック", YuGothic, "Hiragino Kaku Gothic Pro", sans-serif;
}

#global_menu ul li a:hover,
#global_menu ul li.current-menu-item > a,
#global_menu ul li.current-page-ancestor > a {
  color: #007a85;
  background-color: transparent;
}

/* ドロップダウン */
#global_menu ul ul {
  background-color: #ffffff;
  border: 1px solid #e8e6e1;
  border-top: 2px solid #007a85;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#global_menu ul ul li a {
  color: #1a2a4a;
  font-size: 13px;
}

#global_menu ul ul li a:hover {
  background-color: #f8f7f4;
  color: #007a85;
}

/* --------------------------------------------------------------------------
   トップページ: ヒーローエリア（背景なし・テキストのみ）
   -------------------------------------------------------------------------- */

/* スライダー背景を無効化 */
#header_slider {
  background-color: #f8f7f4;
  border-bottom: 1px solid #e8e6e1;
}

#header_slider .bg_image,
#header_slider .overlay {
  display: none !important;
}

/* スライダー内のテキストをネイビーに */
#header_slider .catch,
#header_slider_content .catch {
  color: #1a2a4a;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.6;
  font-family: "Noto Serif JP", "游明朝", YuMincho, serif;
}

#header_slider .desc,
#header_slider_content .desc {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   コンテンツエリア共通
   -------------------------------------------------------------------------- */

#main_contents {
  background-color: #f8f7f4;
}

#main_col {
  background-color: #f8f7f4;
}

/* セクション見出し */
.section_header .catch,
.content_header .catch,
.design1_content .content_header .catch,
.design1_content2 .catch {
  color: #1a2a4a;
  font-family: "Noto Serif JP", "游明朝", YuMincho, serif;
}

/* コンテンツブロックの背景 */
.design1_content,
.design1_content2 {
  background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   ページヘッダー（各ページのバナー部）
   -------------------------------------------------------------------------- */

#page_header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e6e1;
  height: auto;
  min-height: 120px;
  padding: 48px 0;
}

#page_header .bg_image,
#page_header .overlay {
  display: none;
}

#page_header .catch {
  color: #1a2a4a;
  font-size: 2rem;
  font-weight: 700;
  font-family: "Noto Serif JP", "游明朝", YuMincho, serif;
}

#page_header .desc {
  color: #4a5568;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   固定ページ本文
   -------------------------------------------------------------------------- */

.entry-content {
  color: #1a2a4a;
  line-height: 1.9;
}

.entry-content h2 {
  font-size: 1.4rem;
  border-left: 4px solid #007a85;
  padding-left: 0.8em;
  margin: 2.5em 0 1em;
  color: #1a2a4a;
}

.entry-content h3 {
  font-size: 1.15rem;
  margin: 2em 0 0.8em;
  color: #1a2a4a;
  border-bottom: 1px solid #e8e6e1;
  padding-bottom: 0.4em;
}

.entry-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
}

.entry-content table th,
.entry-content table td {
  border: 1px solid #e8e6e1;
  padding: 0.7em 1em;
  font-size: 0.95rem;
  text-align: left;
  vertical-align: top;
}

.entry-content table th {
  background-color: #f8f7f4;
  color: #1a2a4a;
  font-weight: 600;
  width: 30%;
}

/* --------------------------------------------------------------------------
   ボタン
   -------------------------------------------------------------------------- */

.link_button,
.entry-content .wp-block-button__link,
.entry-content a.button {
  background-color: #007a85;
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  padding: 0.7em 1.8em;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-block;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.link_button:hover,
.entry-content .wp-block-button__link:hover,
.entry-content a.button:hover {
  background-color: #005a62;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   信頼の根拠セクション（RTBリスト）
   -------------------------------------------------------------------------- */

.entry-content ul {
  padding-left: 1.2em;
  margin-bottom: 1.4em;
}

.entry-content ul li {
  line-height: 1.8;
  margin-bottom: 0.4em;
  color: #1a2a4a;
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */

#footer {
  background-color: #1a2a4a;
  color: #b8c4d4;
  border-top: none;
}

#footer a {
  color: #b8c4d4;
}

#footer a:hover {
  color: #ffffff;
}

#footer_bottom {
  background-color: #111e36;
  color: #8899aa;
  font-size: 0.8rem;
}

#footer_logo .logo {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   サイドバー（使用する場合）
   -------------------------------------------------------------------------- */

#side_col {
  background-color: #f8f7f4;
}

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  #header_slider .catch,
  #header_slider_content .catch {
    font-size: 1.5rem;
  }

  #page_header .catch {
    font-size: 1.4rem;
  }

  .entry-content h2 {
    font-size: 1.2rem;
  }

  #page_header {
    min-height: 80px;
    padding: 32px 0;
  }
}

/* ==========================================================================
   フロントページ専用スタイル
   ========================================================================== */

/* スライダー・カルーセルを非表示（front-page.phpでカスタムヒーローを使用） */
.home #header_slider,
.home #header_carousel_wrap {
  display: none;
}

/* ヒーローセクション */
.andnp-hero {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e6e1;
  text-align: center;
  padding: 72px 24px;
}

.andnp-hero .cb_contents_inner {
  max-width: 720px;
  margin: 0 auto;
}

.andnp-hero-mission {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1a2a4a;
  font-family: "Noto Serif JP", "游明朝", YuMincho, serif;
  line-height: 1.6;
  margin-bottom: 0.7em;
  letter-spacing: 0.05em;
}

.andnp-hero-sub {
  font-size: 0.95rem;
  color: #4a5568;
  margin: 0;
}

/* 代表作セクション */
#cb_book .cb_contents_inner {
  max-width: 960px;
  margin: 0 auto;
}

#cb_book .cb_catch {
  text-align: center;
  font-size: 1rem;
  letter-spacing: .12em;
  color: #007a85;
  border: none;
  padding: 0;
  margin-bottom: 2rem;
}

.andnp-book-feature {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.andnp-book-covers {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.andnp-book-covers img {
  width: 140px;
  height: auto;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.andnp-book-text h3 {
  font-size: 1.15rem;
  color: #1a2a4a;
  margin-bottom: 0.4em;
  line-height: 1.6;
}

.andnp-book-meta {
  font-size: 0.85rem;
  color: #4a5568;
  margin-bottom: 1em;
}

.andnp-cta-link {
  display: inline-block;
  background-color: #007a85;
  color: #ffffff !important;
  padding: 0.6em 1.6em;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 1.2em;
  transition: background-color 0.2s ease;
}

.andnp-cta-link:hover {
  background-color: #005a62;
  color: #ffffff !important;
}

/* ナビゲーションカード */
#cb_nav {
  background-color: #f8f7f4;
}

#cb_nav .cb_contents_inner {
  max-width: 960px;
  margin: 0 auto;
}

.andnp-nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.andnp-nav-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #e8e6e1;
  border-radius: 6px;
  padding: 1.4em 1.6em;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.andnp-nav-card:hover {
  border-color: #007a85;
  box-shadow: 0 4px 12px rgba(0,122,133,0.1);
}

.andnp-nav-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 0.4em;
  font-family: "Noto Sans JP", sans-serif;
}

.andnp-nav-card-desc {
  font-size: 0.85rem;
  color: #4a5568;
  line-height: 1.6;
}

/* フロントページ レスポンシブ */
@media (max-width: 768px) {
  .andnp-hero {
    padding: 48px 20px;
  }

  .andnp-hero-mission {
    font-size: 1.3rem;
  }

  .andnp-book-feature {
    flex-direction: column;
    gap: 24px;
  }

  .andnp-book-covers {
    justify-content: center;
  }

  .andnp-book-covers img {
    width: 120px;
  }

  .andnp-nav-cards {
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------------------------------
   投稿ページ: 1カラム化 / サイドバー・コメント非表示
   ------------------------------------------------------------------ */

/* サイドバーを消す */
.single #side_col {
  display: none !important;
}

/* コンテンツ列をセンタリング・フルワイド */
.single #main_col {
  width: 100% !important;
  max-width: 780px;
  margin: 0 auto !important;
  float: none !important;
}

/* コメント欄を非表示 */
.single #comments {
  display: none;
}

/* URLコピーボタンを非表示 */
.single .single_copy_title_url {
  display: none;
}

/* ------------------------------------------------------------------
   投稿ページ: 関連記事・シェアボタン非表示
   ------------------------------------------------------------------ */

/* Anthem自動関連記事を非表示（テンプレートの「あわせて読む」で代替） */
.single #related_post {
  display: none;
}

/* LINE / Note シェアボタンを非表示 */
.single #single_share_top,
.single #single_share_bottom {
  display: none;
}