@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

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

/************************************
** CSS変数（デザイントークン）
** PINTO!風：白ベース・ミニマル・余白多め
************************************/
:root {
  /* カラー */
  --color-main: #1A3C6E;
  --color-accent: #F5A623;
  --color-base: #FFFFFF;
  --color-text: #222222;
  --color-text-light: #888888;
  --color-text-mid: #555555;
  --color-border: #EEEEEE;
  --color-bg: #FFFFFF;
  --color-bg-section: #F8F9FB;

  /* カテゴリカラー */
  --color-cat-web-ad: #F5A623;
  --color-cat-facebook: #1877F2;
  --color-cat-google: #4285F4;

  /* フォント */
  --font-heading: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;

  /* シャドウ・角丸（控えめ） */
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius-card: 6px;
  --radius-label: 3px;

  /* トランジション */
  --transition-base: 0.2s ease;

  /* レイアウト */
  --max-width: 1180px;
}

/************************************
** グローバルスタイル
************************************/
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
}

/************************************
** レイアウトコンテナ
************************************/
.wrap {
  background-color: var(--color-bg);
}

/* 2カラムレイアウト（Cocoonのflex構造を維持） */
#content-in,
.content-in {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px;
  gap: 40px;
}

#main,
.main {
  flex: 1;
  min-width: 0;
  background-color: transparent;
}

#sidebar,
.sidebar {
  width: 320px;
  flex-shrink: 0;
  background-color: transparent;
}

/************************************
** ヘッダー
************************************/
#header,
.header {
  background-color: var(--color-base);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-in {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
}

.logo-header {
  flex-shrink: 0;
}

.tagline {
  display: none;
}

.header .site-name-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.header .site-name-text:hover {
  opacity: 0.7;
}

/************************************
** ナビゲーション
************************************/
#navi,
.navi {
  background-color: var(--color-base);
  border: none;
  box-shadow: none;
}

.navi-in {
  max-width: var(--max-width);
  margin: 0 auto;
}

#navi .navi-in {
  display: flex;
  align-items: center;
  height: 64px;
}

#navi .navi-in > ul {
  display: flex;
  align-items: center;
  justify-content: flex-end !important;
  width: 100% !important;
  height: 100%;
  margin: 0;
  padding: 0;
}

#navi .navi-in > ul > li {
  display: flex;
  align-items: center;
  height: 100%;
}

.navi-in > .menu-header > .menu-header-list {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  list-style: none;
}

.navi-in a {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 16px;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  transition: opacity var(--transition-base);
  letter-spacing: 0.02em;
}

.navi-in a:hover {
  opacity: 0.6;
  background-color: transparent;
}

.navi-in li.current-menu-item > a,
.navi-in li.current-menu-ancestor > a {
  color: var(--color-accent);
  font-weight: 700;
}

.menu-button {
  color: var(--color-text);
  font-size: 22px;
}

/************************************
** ファーストビュー（トップページFV）
************************************/
.fv-hero {
  width: 100%;
  height: 400px;
  background-color: #1A3C6E;
  background-image: url('');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.fv-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.fv-hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 42px;
  color: #FFFFFF;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  line-height: 1.3;
}

.fv-hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.14em;
  margin: 0;
}

/* FVの下線アクセント */
.fv-hero-accent {
  display: block;
  width: 48px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 20px auto 0;
}

/************************************
** セクション見出し（英語＋日本語サブタイトル）
** 使い方：Cocoonの見出しブロックや
** カスタムHTMLで以下の構造を使用
** <div class="section-heading">
**   <span class="section-heading-en">WEB ADVERTISING</span>
**   <span class="section-heading-ja">Web広告</span>
** </div>
************************************/
.section-heading {
  text-align: center;
  margin: 48px 0 32px;
  padding: 0;
}

.section-heading-en {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--color-text);
  line-height: 1.2;
}

.section-heading-ja {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 6px;
  letter-spacing: 0.1em;
}

/* セクション見出しの下線バリエーション */
.section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 16px auto 0;
}

/************************************
** 記事カードグリッドレイアウト
************************************/
.ect-vertical-card,
.article-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0;
}

.entry-card-wrap {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.entry-card-wrap a {
  text-decoration: none;
}

/************************************
** カードスタイル（PINTO!風：フラット・余白多め）
************************************/
.entry-card {
  background-color: var(--color-base);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: opacity var(--transition-base);
  border: none;
  box-shadow: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.entry-card:hover {
  opacity: 0.8;
}

.card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-card);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.entry-card:hover .card-thumb img {
  transform: scale(1.02);
}

.card-content {
  padding: 14px 2px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-snippet {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.card-meta {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: auto;
}

.card-meta .post-date,
.card-meta .post-update {
  font-size: 11px;
  color: var(--color-text-light);
}

/************************************
** カテゴリラベル（PINTO!風：小さく丸め）
************************************/
.cat-label {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 3px 10px;
  border-radius: 2px;
  color: #FFFFFF !important;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  letter-spacing: 0.04em;
  background-color: var(--color-accent) !important;
}

/* カテゴリ別カラー（WordPressのカテゴリIDに合わせて調整） */
/* Web広告（総合）→ オレンジ */
.cat-label.cat-link-1 {
  background-color: var(--color-cat-web-ad) !important;
}

/* Facebook / Meta広告 → 青 */
.cat-label.cat-link-2 {
  background-color: var(--color-cat-facebook) !important;
}

/* Google広告 → 青 */
.cat-label.cat-link-3 {
  background-color: var(--color-cat-google) !important;
}

/************************************
** サイドバー
************************************/
.sidebar {
  background-color: transparent;
}

.widget-sidebar {
  background-color: var(--color-base);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
}

.sidebar h3,
.sidebar .widget-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  border-left: none;
  padding-bottom: 10px;
  padding-left: 0;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.sidebar .widget_recent_entries ul li,
.sidebar .widget_categories ul li,
.sidebar .widget_archive ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}

.sidebar .widget_recent_entries ul li:last-child,
.sidebar .widget_categories ul li:last-child,
.sidebar .widget_archive ul li:last-child {
  border-bottom: none;
}

.sidebar a {
  color: var(--color-text);
}

.sidebar a:hover {
  opacity: 0.7;
}

/* サイドバーウィジェットカード */
.widget-entry-cards .widget-entry-card-link {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.widget-entry-cards .widget-entry-card-link:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget-entry-cards .widget-entry-card-thumb {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.widget-entry-cards .widget-entry-card-content .widget-entry-card-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.widget-entry-cards .widget-entry-card-date {
  font-size: 10px;
  color: var(--color-text-light);
}

/* 検索ボックス */
.search-box {
  display: flex;
}

.search-edit {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 4px 0 0 4px;
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
  font-family: var(--font-body);
  background-color: var(--color-bg-section);
}

.search-edit:focus {
  border-color: var(--color-text-light);
  background-color: var(--color-base);
}

.search-submit {
  background-color: var(--color-text);
  color: #FFFFFF;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 10px 16px;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.search-submit:hover {
  opacity: 0.7;
}

/************************************
** フッター（PINTO!風：ダークチャコール）
************************************/
#footer,
.footer {
  background-color: #2C2C2C;
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer-in {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

.footer a:hover {
  color: #FFFFFF;
}

.footer h3,
.footer .widget-title {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 36px;
}

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.copyright a {
  color: rgba(255, 255, 255, 0.4);
}

/************************************
** パンくずリスト
************************************/
.breadcrumb {
  font-size: 11px;
  color: var(--color-text-light);
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: none;
  background-color: transparent;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.breadcrumb .sp {
  margin: 0 6px;
  color: #ccc;
}

/************************************
** ページネーション
************************************/
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 48px 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-mid);
  background-color: transparent;
  border: none;
  transition: all var(--transition-base);
}

.pagination .page-numbers:hover {
  background-color: var(--color-bg-section);
  color: var(--color-text);
}

.pagination .page-numbers.current {
  background-color: var(--color-text);
  color: #FFFFFF;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  font-weight: 500;
  color: var(--color-text-light);
}

/************************************
** 単一記事ページ
************************************/
.article {
  background-color: var(--color-base);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 40px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.entry-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 12px;
}

.date-tags {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

/* 記事本文 */
.entry-content {
  font-size: 15px;
  line-height: 2.0;
  color: var(--color-text);
}

.entry-content h2 {
  font-size: 22px;
  font-weight: 900;
  border-left: 3px solid var(--color-accent);
  border-bottom: none;
  padding-left: 16px;
  padding-bottom: 0;
  margin: 56px 0 24px;
  background-color: transparent;
}

.entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
  border-left: none;
  padding-bottom: 10px;
  padding-left: 0;
  margin: 40px 0 20px;
}

.entry-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 32px 0 14px;
}

.entry-content p {
  margin-bottom: 1.6em;
}

.entry-content img {
  border-radius: 4px;
  margin: 20px 0;
}

.entry-content blockquote {
  border-left: 3px solid var(--color-border);
  background-color: var(--color-bg-section);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
  font-style: normal;
  color: var(--color-text-mid);
  font-size: 14px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin-bottom: 1.6em;
}

.entry-content li {
  margin-bottom: 0.4em;
}

/* タグリンク */
.tag-link {
  display: inline-block;
  padding: 4px 14px;
  font-size: 11px;
  color: var(--color-text-mid);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  margin: 2px 4px 2px 0;
  transition: all var(--transition-base);
}

.tag-link:hover {
  background-color: var(--color-text);
  color: #FFFFFF;
  border-color: var(--color-text);
}

/************************************
** SNSシェアボタン
************************************/
.sns-share-buttons a,
.sns-follow-buttons a {
  border-radius: 4px;
}

/************************************
** 関連記事・前後記事ナビ
************************************/
.related-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-entry-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: none;
  transition: opacity var(--transition-base);
}

.related-entry-card:hover {
  opacity: 0.8;
}

.pager-post-navi a {
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: opacity var(--transition-base);
}

.pager-post-navi a:hover {
  opacity: 0.7;
}

/************************************
** CTAボタン・ボックス
************************************/
.btn-wrap a {
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 4px;
  padding: 14px 36px;
  font-size: 14px;
  transition: opacity var(--transition-base);
}

.btn-wrap a:hover {
  opacity: 0.85;
  color: #FFFFFF;
}

/************************************
** トップへ戻るボタン
************************************/
.go-to-top-button {
  background-color: var(--color-text);
  color: #FFFFFF;
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  transition: opacity var(--transition-base);
}

.go-to-top-button:hover {
  opacity: 0.7;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/*1023px以下（タブレット横・小型デスクトップ）*/
@media screen and (max-width: 1023px) {
  .ect-vertical-card,
  .article-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .related-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-in {
    padding: 0 16px;
  }

  .section-heading-en {
    font-size: 24px;
  }

  .sidebar {
    margin-top: 32px;
  }
}

/*834px以下（タブレット縦）*/
@media screen and (max-width: 834px) {
  .fv-hero {
    height: 320px;
  }

  .fv-hero-title {
    font-size: 32px;
  }

  .fv-hero-subtitle {
    font-size: 14px;
  }

  /* 1カラム化 */
  #content-in,
  .content-in {
    flex-direction: column;
    padding: 20px 16px;
    gap: 24px;
  }

  #sidebar,
  .sidebar {
    width: 100%;
    margin-top: 12px;
  }

  .ect-vertical-card,
  .article-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .header-in {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
  }

  #navi .navi-in {
    background-color: var(--color-base);
  }

  .navi-in a {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .entry-title {
    font-size: 22px;
  }

  .section-heading {
    margin: 36px 0 24px;
  }

  .section-heading-en {
    font-size: 22px;
  }

  .section-heading-ja {
    font-size: 12px;
  }

  .entry-content h2 {
    font-size: 20px;
  }

  .entry-content h3 {
    font-size: 17px;
  }
}

/*480px以下（モバイル）*/
@media screen and (max-width: 480px) {
  .fv-hero {
    height: 260px;
  }

  .fv-hero-title {
    font-size: 26px;
    letter-spacing: 0.06em;
  }

  .fv-hero-subtitle {
    font-size: 12px;
  }

  .fv-hero-accent {
    width: 36px;
    margin-top: 16px;
  }

  body {
    font-size: 14px;
  }

  .ect-vertical-card,
  .article-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  .card-title {
    font-size: 14px;
  }

  .entry-title {
    font-size: 20px;
  }

  .entry-content h2 {
    font-size: 19px;
    margin: 40px 0 20px;
  }

  .entry-content h3 {
    font-size: 16px;
  }

  .content-in {
    padding: 16px 14px;
  }

  .header-in {
    padding: 0 14px;
    height: 52px;
  }

  .header .site-name-text {
    font-size: 18px;
  }

  .pagination .page-numbers {
    min-width: 36px;
    height: 36px;
  }

  .widget-sidebar {
    padding: 18px;
  }

  .entry-content blockquote {
    padding: 16px;
  }

  .section-heading {
    margin: 28px 0 20px;
  }

  .section-heading-en {
    font-size: 20px;
  }

  .section-heading-ja {
    font-size: 11px;
  }

  .section-heading::after {
    width: 32px;
    margin-top: 12px;
  }
}
