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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* ==========================================
   MetaFit-Hub トップページ カスタムCSS
   ========================================== */

:root {
  --mfh-brand: #06496b;
  --mfh-brand-dark: #043a56;
  --mfh-brand-darker: #022840;
  --mfh-accent: #1ab3a0;
  --mfh-accent2: #e8f4f9;
  --mfh-border: #c8dde8;
  --mfh-bg: #f4f9fb;
  --mfh-text: #0d1b24;
  --mfh-text-sub: #4a6575;
}

/* 全ブロック共通 */
.mfh-section {
  padding: 20px 16px;
  background: #fff;
}

.mfh-section-bg {
  padding: 20px 16px;
  background: var(--mfh-bg);
}

.mfh-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mfh-sec-head h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--mfh-text);
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mfh-sec-head h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 15px;
  background: var(--mfh-brand);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: -3px;
}

.mfh-see-all {
  font-size: 12px;
  color: var(--mfh-brand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.mfh-divider {
  height: 8px;
  background: var(--mfh-bg);
  margin: 0;
}

/* Cocoonのデフォルトスタイルを無効化（トップページのみ） */
.home .entry-title,
.home .breadcrumb,
.home .sns-share {
  display: none;
}

.home .article-body {
  padding: 0 !important;
  margin: 0 !important;
}
/* ==========================================
   ブロック1：ヒーロー
   ========================================== */
.mfh-hero {
  background: var(--mfh-brand);
  overflow: hidden;
}

.mfh-hero-inner {
  display: flex;
  align-items: stretch;
  min-height: 220px;
}

.mfh-hero-left {
  flex: 1;
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.mfh-hero-right {
  width: 140px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.mfh-hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.mfh-hero-right::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(to right, #06496b, transparent);
}

.mfh-eyebrow {
  font-size: 10px;
  color: var(--mfh-accent);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mfh-hero-h1 {
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #fff !important;
  line-height: 1.4 !important;
  margin-bottom: 10px !important;
  border: none !important;
  padding: 0 !important;
}

.mfh-hero-h1 em {
  font-style: normal;
  color: #7dd8ec;
}

.mfh-hero-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* 検索バー */
.mfh-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.4);
}

.mfh-search-wrap input {
  background: none;
  border: none;
  outline: none;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  width: 100%;
}

.mfh-search-wrap input::placeholder {
  color: rgba(255,255,255,0.35);
}

/* クイックリンク */
.mfh-ql-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.mfh-ql-btn {
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none !important;
  color: rgba(255,255,255,0.85) !important;
}

.mfh-ql-btn svg {
  flex-shrink: 0;
  color: #7dd8ec;
}

.mfh-ql-btn span {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.mfh-ql-btn:hover {
  background: rgba(255,255,255,0.13);
}

/* PC表示では画像を大きく */
@media (min-width: 768px) {
  .mfh-hero-inner {
    min-height: 320px;
  }
  .mfh-hero-right {
    width: 280px;
  }
  .mfh-hero-h1 {
    font-size: 26px !important;
  }
  .mfh-hero-sub {
    font-size: 13px;
  }
}
/* ==========================================
   ブロック2：4効果バー
   ========================================== */
.mfh-benefits {
  background: var(--mfh-brand-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

.mfh-benefit-item {
  padding: 12px 6px;
  text-align: center;
  border-right: 0.5px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.mfh-benefit-item:last-child {
  border-right: none;
}

.mfh-benefit-item svg {
  color: #7dd8ec;
  flex-shrink: 0;
}

.mfh-benefit-item span {
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
  display: block;
}

@media (min-width: 768px) {
  .mfh-benefit-item span {
    font-size: 11px;
  }
  .mfh-benefit-item {
    padding: 16px 8px;
    gap: 8px;
  }
}
/* ==========================================
   ブロック3：流れるティッカー
   ========================================== */
.mfh-ticker {
  background: var(--mfh-brand);
  overflow: hidden;
  padding: 8px 0;
  border-top: 0.5px solid rgba(255,255,255,0.1);
}

.mfh-ticker-track {
  display: flex;
  width: max-content;
  animation: mfh-ticker 25s linear infinite;
}

.mfh-ticker:hover .mfh-ticker-track {
  animation-play-state: paused;
}

@keyframes mfh-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mfh-ticker-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  white-space: nowrap;
}

.mfh-ticker-item svg {
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.mfh-ticker-item span {
  font-size: 11px;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  letter-spacing: 0.3px;
}
/* ==========================================
   レイアウト：NerdWallet方式
   ヒーローは全幅、コンテンツは中央寄せ
   ========================================== */

/* ヒーロー系は全幅のまま */
.mfh-hero-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* カード・セクション系はmax-width制限 */
.mfh-section,
.mfh-section-bg,
.mfh-trust-section,
.mfh-feature-section,
.mfh-rank-section {
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px;
  padding-right: 24px;
}

/* PC表示でヒーロー内のコンテンツだけ幅制限 */
@media (min-width: 768px) {
  .mfh-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
  }
}
/* style.cssに追加：トップページの広告非表示 */
.home .adsense-frame,
.home .ad-area,
.home ins.adsbygoogle {
  display: none !important;
}