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

/* ================================================
   レイアウト
   ================================================ */
.content { margin: 0; }
.content-in { max-width: 1440px; flex-wrap: nowrap; }
.wrap { width: 100%; }
.main {
  width: 76%;
  max-width: 1100px;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
}
.sidebar {
  max-width: 340px;
  padding-top: 0;
  padding-left: 36px;
  width: 24%;
}
.container { background-color: white; }

/* ================================================
   記事ページ
   ================================================ */
.article {
  padding: 24px 36px 24px 24px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
}
article {
  font-style: normal;
  font-weight: 400;
  line-height: 200%;
}
.article img { height: auto; }

/* パンくず */
.breadcrumb { margin: 0; }

/* 投稿日・更新日 */
.date-tags { padding: 8px 0; text-align: left; }
.post-date,
.entry-date { font-size: 12px; font-weight: 700; color: #6C6E74; }

/* サムネイル */
.eye-catch-image { border-radius: 24px; }
.eye-catch .cat-label { top: 1.5em; left: 1.5em; }

/* タイトル */
h1 { font-size: 28px; font-weight: 700; font-family: "Noto Sans JP", sans-serif; }

/* 記事コンテンツ */
.entry-content { padding: 64px 48px; margin-top: 0; }

/* 目次 */
.toc { width: 100%; border: 1px solid #D9DDE3; border-radius: 8px; padding: 24px 48px; }
.toc-title { font-size: 16px; font-weight: 700; }
.toc-list a { position: relative; padding: 0 0 0 16px; }
.toc-list a::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 100px; background-color: #007AFF;
  vertical-align: middle; margin-right: 12px;
  position: absolute; left: 0; top: 4px;
}
.toc-content { font-size: 14px; }

/* 見出し */
.article h2 {
  display: block; margin: 60px 0; background-color: white;
  padding: 0 0 0 24px; position: relative;
}
.article h2::before {
  content: ""; display: inline-block; width: 8px; height: 100%;
  border-radius: 8px; background-color: #007AFF;
  position: absolute; left: 0;
}
.article h3 { border: none; margin: 40px 0; font-size: 20px; padding: 0 0 0 12px; position: relative; }
.article h3::before {
  content: ""; display: inline-block; width: 4px; height: 100%;
  border-radius: 100px; background-color: #007AFF;
  vertical-align: middle; margin-right: 12px;
  position: absolute; left: 0;
}
.wp-block-heading { background-color: white; }

/* ボックス系 */
.alert-box, .memo-box { background: white; border: 1px solid #D9DDE3; font-size: 14px; }
.blank-box { border-width: 1px; font-size: 14px; border-color: #D9DDE3; padding: 24px 48px; border-radius: 8px; }
.common-icon-box { border-radius: 12px; }
pre { background: white; padding: 16px 48px; font-size: 14px; border-radius: 8px; }
.speech-balloon { font-size: 14px; border-color: #D9DDE3; }

/* マーカー */
.marker-under { background: linear-gradient(transparent 60%, #FFECDC 60%); font-weight: bold; }

/* 監修者 */
.supervisor-container {
  border: 1px solid #ced0d4; padding: 40px; display: flex; gap: 30px;
}
@media screen and (max-width: 750px) {
  .supervisor-container { flex-direction: column; }
}

/* スクロールテーブル */
.table-scrollable { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scrollable table { min-width: 600px; width: auto !important; border-collapse: collapse; }

/* ================================================
   サイドバー
   ================================================ */
.card-title { font-size: 14px; }
.card-thumb img { border-radius: 8px; }
.sidebar h3 {
  background-color: white; font-size: 20px; font-weight: 700;
  line-height: 140%; padding: 12px 5px; margin: 0;
}
.sidebar a { font-size: 16px; font-weight: 700; line-height: 140%; }
.widget_categories ul { padding-left: 5px; }
.widget_categories ul li a {
  padding: 7px 0 7px 20px; position: relative; border-radius: 8px;
}
.widget_categories ul li a::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 100px; background-color: #007AFF;
  margin-right: 12px; margin-left: 6px; margin-top: 7px;
  position: absolute; left: 0; top: 8px;
}
.widget-entry-cards a { border-radius: 8px; }
.sidebar-consult { background: #ECF1F6; padding: 24px; border-radius: 8px; margin-bottom: 32px; }

/* ================================================
   記事一覧
   ================================================ */
.archive-title { padding-left: 16px; font-size: 22px; }
.archive-title span { display: none; }
.list a { border-radius: 8px; }
.related-list a { border-radius: 8px; }
.entry-card-title { font-size: 16px; }

/* ================================================
   ページネーション
   ================================================ */
.page-numbers { background-color: #FFF; border: none; border-radius: 100px; font-size: 14px; font-weight: 700; }
.page-numbers.dots { background-color: #FFF; }
.pagination-next { display: none; }
.pagination .current { background-color: #007AFF1F; border-radius: 100px; }
.pager-post-navi { display: none; }

/* ================================================
   ホバーエフェクト
   ================================================ */
.widget_recent_entries ul li a:hover,
.widget_categories ul li a:hover,
.widget_archive ul li a:hover,
.widget_pages ul li a:hover,
.widget_meta ul li a:hover,
.widget_rss ul li a:hover,
.widget_nav_menu ul li a:hover,
.navi-in a:hover,
.navi-footer-in a:hover,
.a-wrap:hover,
.comment-reply-link:hover,
.recent-comments .a-wrap:hover .recent-comment-content,
.pagination a:hover,
.pagination-next-link:hover, .comment-btn:hover,
.pager-links a:hover span,
.mobile-menu-buttons .menu-button:hover,
.menu-drawer a:hover,
.bp-login-widget-register-link a:hover {
  background-color: #007AFF1F;
  transition: all 0.8s ease;
  color: #333;
}
.custom-html-widget img,
#article-tob-button div,
.sidebar-banner-image,
.sidebar-consult a div {
  cursor: pointer;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}
.custom-html-widget img:hover,
.sidebar-banner-image:hover,
.sidebar-consult a div:hover { opacity: 0.8; transform: scale(1.05); }
#article-tob-button div:hover { transform: scale(1.05); }

/* ================================================
   エディタ
   ================================================ */
.editor-styles-wrapper p::selection,
.editor-styles-wrapper h2::selection,
.editor-styles-wrapper h3::selection,
.editor-styles-wrapper h4::selection,
.editor-styles-wrapper td::selection,
.editor-styles-wrapper li::selection,
.editor-styles-wrapper textarea::selection { background: #B5D8FE !important; }
.editor-styles-wrapper .marker-under { background: linear-gradient(transparent 60%, #FFECDC 60%) !important; }
.editor-styles-wrapper .blank-box {
  border-width: 1px !important; font-size: 14px !important;
  border-color: #D9DDE3 !important; padding: 24px 48px !important; border-radius: 8px !important;
}

/* ================================================
   ヘッダー
   ================================================ */
.r-header {
  background: #fff;
  border-bottom: 1px solid #E8E8ED;
  position: sticky;
  top: 0;
  z-index: 9990;
  margin-bottom: 24px;
}
.r-header__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 32px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.r-header__logo svg { display: block; width: 160px; height: auto; }
.r-header__right { display: flex; align-items: center; gap: 4px; }
.r-header__nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 13px; font-weight: 600;
  color: #1C1C1E; text-decoration: none; border-radius: 8px;
  transition: background 0.2s;
}
.r-header__nav-link:hover { background: #F5F5F7; color: #1C1C1E !important; }

/* Cocoon の旧ヘッダーを非表示 */
.new-corporate-header-main { display: none; }

/* カテゴリドロップダウン */
.r-header__category { position: relative; }
.r-header__category-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 13px; font-weight: 600;
  color: #1C1C1E; background: none; border: none; border-radius: 8px;
  cursor: pointer; transition: background 0.2s;
}
.r-header__category-btn:hover { background: #F5F5F7; }
.r-header__category-popup {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid #E8E8ED; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 8px;
  min-width: 420px; z-index: 100;
}
.r-header__category-popup.is-open { display: block; }
.r-header__category-list {
  columns: 2; column-gap: 8px;
  list-style: none !important; margin: 0 !important; padding: 0 !important;
}
.r-header__category-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; font-size: 13px; color: #1C1C1E;
  text-decoration: none; border-radius: 8px; transition: background 0.2s;
}
.r-header__category-list li a:hover { background: #F5F5F7; }
.r-header__category-count {
  font-size: 11px; color: #6E6E73; background: #F5F5F7;
  padding: 2px 8px; border-radius: 980px;
}

/* PC 検索 */
.r-header__search { flex: 1; max-width: 400px; margin: 0 24px; }
.r-header__search form { position: relative; }
.r-header__search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #6E6E73; pointer-events: none;
}
.r-header__search-input {
  width: 100% !important; padding: 8px 12px 8px 36px !important;
  border: 1px solid #E8E8ED !important; border-radius: 980px !important;
  background: #F5F5F7 !important; font-size: 13px !important;
  color: #1C1C1E !important; outline: none !important;
  box-shadow: none !important; height: auto !important; margin: 0 !important;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none; appearance: none;
}
.r-header__search-input:focus { border-color: #007AFF !important; background: #fff !important; box-shadow: none !important; }
.r-header__search-input::placeholder { color: #6E6E73; }

/* SP 検索ボタン */
.r-header__search-sp { display: none; background: none; border: none; padding: 6px; color: #1C1C1E; cursor: pointer; }

/* SP 検索ドロワー */
.r-search-drawer {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  background: #fff; z-index: 9993; padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-100%); transition: transform 0.3s ease;
}
.r-search-drawer.is-open { display: block; transform: translateY(0); }
.r-search-drawer__form { display: flex; align-items: center; gap: 8px; }
.r-search-drawer__input {
  flex: 1; padding: 10px 16px; border: 1px solid #E8E8ED;
  border-radius: 980px; background: #F5F5F7; font-size: 14px;
  color: #1C1C1E; outline: none;
}
.r-search-drawer__input:focus { border-color: #007AFF; background: #fff; }
.r-search-drawer__close { background: none; border: none; padding: 4px; color: #6E6E73; cursor: pointer; }

/* ハンバーガー（SPのみ） */
.r-header__menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 8px; background: none; border: none; cursor: pointer;
}
.r-header__menu-toggle span {
  display: block; width: 100%; height: 2px; background: #1C1C1E;
  border-radius: 1px; transition: transform 0.3s, opacity 0.3s;
}

/* モバイルドロワー */
.r-drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9991; }
.r-drawer-backdrop.is-open { display: block; }
.r-drawer {
  position: fixed; top: 0; right: -300px; width: 300px; height: 100%;
  background: #fff; z-index: 9992; transition: right 0.3s ease; overflow-y: auto;
}
.r-drawer.is-open { right: 0; }
.r-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid #E8E8ED;
}
.r-drawer__close { background: none; border: none; cursor: pointer; padding: 4px; color: #6E6E73; }
.r-drawer__nav { padding: 16px; }
.r-drawer__nav ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.r-drawer__nav li a {
  display: block; padding: 10px 0; font-size: 14px; color: #1C1C1E;
  text-decoration: none; border-bottom: 1px solid #F5F5F7;
}
.r-drawer__nav li a:hover { color: #007AFF; }
.r-drawer__label { font-size: 11px; color: #6E6E73; letter-spacing: 0.06em; text-transform: uppercase; padding: 16px 0 8px; }

/* ================================================
   検索結果ページ
   ================================================ */
#archive-title.archive-title {
  font-size: 20px !important; font-weight: 700 !important; color: #1C1C1E !important;
  border: none !important; background: none !important; padding: 0 !important; margin-bottom: 24px !important;
}
#archive-title .fa { display: none; }

.search-box.input-box {
  display: flex !important; align-items: center;
  border: 1px solid #E8E8ED !important; border-radius: 980px !important;
  background: #F5F5F7 !important; overflow: hidden; box-shadow: none !important;
  margin-bottom: 24px !important; max-width: 600px;
}
.search-box .search-edit {
  flex: 1; border: none !important; background: transparent !important;
  padding: 10px 16px !important; font-size: 14px !important; color: #1C1C1E !important;
  outline: none !important; box-shadow: none !important; height: auto !important; margin: 0 !important;
}
.search-box .search-edit::placeholder { color: #6E6E73; }
.search-box .search-submit {
  background: none !important; border: none !important; padding: 10px 16px !important;
  color: #6E6E73 !important; cursor: pointer; font-size: 16px;
  display: flex !important; align-items: center !important;
  height: auto !important; top: auto !important; position: static !important;
}
.search-box .search-submit:hover { color: #007AFF !important; }

/* ================================================
   フッター
   ================================================ */
.romptn-footer { background: #F4F6FA; padding: 48px 0 32px; margin-top: 48px; }
.romptn-footer__inner { max-width: 1440px; margin: 0 auto; padding: 0 64px; }
.romptn-footer__links { display: flex; flex-direction: column; gap: 32px; margin-bottom: 40px; }
.romptn-footer__heading { font-size: 13px; font-weight: 700; color: #1C1C1E; margin-bottom: 16px !important; }
.romptn-footer__list {
  list-style: none !important; padding: 0 !important; margin: 0 !important;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.romptn-footer__list li { list-style: none !important; }
.romptn-footer__list a { font-size: 13px; color: #6E6E73; text-decoration: none; transition: color 0.2s; }
.romptn-footer__list a:hover { color: #007AFF; }
.romptn-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid #D9DDE3;
}
.romptn-footer__logo svg { display: block; }
.romptn-footer__copyright { font-size: 12px; color: #6E6E73; margin: 0 !important; }

/* ================================================
   コンテンツ下部ウィジェット
   ================================================ */
#content-bottom.wwa {
  max-width: none;
  padding-left: calc(24% + 36px + 32px);
  padding-right: 32px;
}
#content-bottom.wwa #content-bottom-in { padding: 0; }

/* タグクラウド */
#content-bottom .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
#content-bottom .tagcloud a {
  display: inline-flex; align-items: center; white-space: nowrap;
  flex: 0 0 auto !important; padding: 6px 14px; border-radius: 980px;
  border: 1px solid #D9DDE3; background: #fff; color: #333;
  font-size: 13px !important; text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
#content-bottom .tagcloud a:hover { background: #F5F5F7; border-color: #007AFF; color: #007AFF; }
#content-bottom .tagcloud .tag-caption { display: flex; align-items: center; gap: 4px; }
#content-bottom .tagcloud .tax-icon { display: none; }

/* ================================================
   レスポンシブ
   ================================================ */
@media screen and (max-width: 1023px) {
  #content-bottom.wwa { padding-left: 0; }
  #content-bottom.wwa #content-bottom-in { max-width: none; }
  #sidebar { width: 100% !important; max-width: 100% !important; padding: 0 16px !important; margin: 0 auto !important; }
  #content-bottom.wwa { padding: 0 16px !important; }
  #content-bottom .tagcloud a { font-size: 11px !important; padding: 4px 10px; }
  #content-bottom .tagcloud { gap: 6px; }
}

@media screen and (max-width: 768px) {
  /* ヘッダー */
  .r-header__inner { padding: 0 16px; height: 56px; }
  .r-header { margin-bottom: 16px; }
  .r-header__logo svg { width: 120px; }
  .r-header__search { display: none; }
  .r-header__right { display: none; }
  .r-header__search-sp { display: flex; margin-left: auto; }
  .r-header__menu-toggle { display: flex; }
  /* フッター */
  .romptn-footer { padding: 32px 0 24px; }
  .romptn-footer__inner { padding: 0 16px; }
  .romptn-footer__list { gap: 6px 16px; }
  .romptn-footer__bottom { flex-direction: column; align-items: center; gap: 12px; }
}

@media screen and (max-width: 700px) {
  .article { padding: 0; }
  .entry-content { padding: 48px 0; }
}
