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

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

/* Japanese Best: トップページ ヒーローセクション */
.jb-hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  background-image: url('https://japanesebest.jp/wp-content/uploads/2026/07/ChatGPT-Image-2026%E5%B9%B47%E6%9C%8811%E6%97%A5-23_36_13.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 30%;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.jb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 24, 48, 0.82) 0%,
    rgba(8, 24, 48, 0.62) 36%,
    rgba(8, 24, 48, 0.12) 68%,
    rgba(8, 24, 48, 0) 100%
  );
}

.jb-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0 5%;
  color: #fff;
}

.jb-hero__title {
  font-size: 2.75rem;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
}

.jb-hero__desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #fff;
  margin: 0 0 1.75rem;
}

.jb-hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
}

.jb-hero__button {
  display: inline-block;
  padding: 0.85em 2em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.jb-hero__button--primary {
  background: #102447;
  color: #fff;
}
.jb-hero__button--primary:hover,
.jb-hero__button--primary:focus {
  background: #07172F;
  transform: translateY(-1px);
}

.jb-hero__button--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.jb-hero__button--secondary:hover,
.jb-hero__button--secondary:focus {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Japanese Best: ヘッダー / グローバルナビゲーション コンパクト化 */
/* センターロゴレイアウトの上下余白を圧縮 */
.header-container-in.hlt-center-logo .logo-text {
  padding: 16px 0 4px;
}
.header-container-in.hlt-center-logo .site-name-text {
  font-size: 24px;
}
.header-container-in.hlt-center-logo .tagline {
  margin: 0 1em 12px;
  font-size: 13px;
}

/* PCメニュー（.menu-pc）のみ対象。モバイルメニュー（.menu-mobile）には影響させない */
.navi-in > ul.menu-pc {
  flex-wrap: nowrap;
  justify-content: center;
}
.navi-in > ul.menu-pc li {
  width: auto;
  flex: 0 0 auto;
  height: 52px;
}
.navi-in > ul.menu-pc a {
  padding: 0 18px;
  font-size: 15px;
  white-space: nowrap;
}

/* Japanese Best: サイドバー広告ウィジェット */
.jb-sidebar-ad-widget {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.jb-sidebar-ad-widget img,
.jb-sidebar-ad-widget iframe,
.jb-sidebar-ad-widget ins {
  max-width: 100%;
  height: auto;
}

/* Japanese Best: カテゴリの内容(Cocoon標準欄)内のサブテーマpill・関連カテゴリリンク */
.jb-hub-subthemes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1em 0;
}
.jb-hub-subtheme-pill {
  display: inline-block;
  background: #eef2f8;
  color: #102447;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  white-space: nowrap;
}
.jb-hub-related-cats {
  margin: 1em 0 0.5em;
  font-size: 0.95rem;
}
.jb-hub-related-link {
  display: inline-block;
  margin: 0.3em 0.8em 0.3em 0;
  color: #102447;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 36, 71, 0.35);
}
.jb-hub-related-link:hover {
  border-bottom-color: #102447;
}

/* Japanese Best: Amazon商品CTAカード([jb_amazon_cta]ショートコード用、記事内に手動挿入) */
.jb-cta-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fafafa;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 16px;
  margin: 1.5em 0;
  box-sizing: border-box;
}
.jb-cta-card__img {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}
.jb-cta-card__body {
  flex: 1 1 auto;
  min-width: 0;
}
.jb-cta-card__name {
  font-weight: 700;
  margin: 0 0 0.4em;
  font-size: 1.02rem;
}
.jb-cta-card__reason {
  margin: 0 0 0.8em;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.6;
}
.jb-cta-card__btn {
  display: inline-block;
  background: #FF9900;
  color: #0f1111;
  font-weight: 700;
  padding: 0.6em 1.4em;
  border-radius: 4px;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.8;
  box-sizing: border-box;
}
.jb-cta-card__btn:hover {
  background: #e88a00;
}

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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
  .jb-hero {
    min-height: 460px;
    background-position: center 25%;
  }
  .jb-hero__title {
    font-size: 1.9rem;
  }
  .jb-hero__desc {
    font-size: 1rem;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
  .jb-hero {
    min-height: 500px;
    background-position: center 20%;
  }
  .jb-hero__content {
    max-width: 100%;
    padding: 0 6%;
  }
  .jb-hero__title {
    font-size: 1.6rem;
  }
  .jb-hero__cta-group {
    flex-direction: column;
  }
  .jb-hero__button {
    text-align: center;
  }
  .jb-hero__overlay {
    background: linear-gradient(
      90deg,
      rgba(8, 24, 48, 0.85) 0%,
      rgba(8, 24, 48, 0.72) 55%,
      rgba(8, 24, 48, 0.45) 100%
    );
  }
  .jb-cta-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .jb-cta-card__btn {
    width: 100%;
    text-align: center;
  }
}

/* Japanese Best: カテゴリーアーカイブ ヒーロー画像
   Cocoon標準の「カテゴリーアイキャッチ画像」機能(the_category_eye_catch_url term meta /
   tmp/category-content.php)をそのまま使用。対象は .category-content 配下のみに限定して
   おり、個別記事のアイキャッチや他ページの表示には一切影響しない。 */
.category-content .eye-catch {
  width: 100%;
}
.category-content .eye-catch-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1717 / 916;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.category-content .eye-catch .cat-label {
  display: none;
}
