@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){
  /*必要ならばここにコードを書く*/
}

/* ==================================================
   NOKOSU DESIGN
   Home page
   ================================================== */


/* ---------- 基本 ---------- */

.home #main {
  background: #fff;
  border: 0;
  box-shadow: none;
}

.home .entry-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 64px;
  color: #20282d;
  line-height: 1.9;
}


/* HOMEという固定ページタイトルを非表示 */

.home .entry-title {
  display: none;
}


/* トップページの不要な表示 */

.home .date-tags,
.home .sns-share,
.home .sns-follow,
.home .author-box,
.home .toc,
.home .breadcrumb {
  display: none !important;
}


/* ---------- 最初のキャッチコピー ---------- */

.home .entry-content > h2:first-of-type {
  background: none;
  border: 0;
  padding: 0;
  margin: 20px 0 24px;
  color: #20282d;
  font-size: 2rem;
  line-height: 1.45;
  letter-spacing: .02em;
}


/* ---------- 通常見出し ---------- */

.home .entry-content h2 {
  background: none;
  border: 0;
  padding: 0;
  color: #20282d;
  font-size: 1.55rem;
  line-height: 1.45;
  margin: 58px 0 22px;
  letter-spacing: .03em;
}

.home .entry-content h3 {
  background: none;
  border: 0;
  padding: 0;
  color: #20282d;
}


/* ---------- FEATURED ---------- */

.home .featured-card {
  margin: 20px 0 42px;
  padding: 0 0 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 18px;
  box-shadow: 0 7px 25px rgba(25, 43, 50, .06);
}

.home .featured-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 18px 18px 0 0;
}

.home .featured-card h2,
.home .featured-card h3 {
  margin: 22px 22px 12px;
  font-size: 1.45rem;
  line-height: 1.45;
}

.home .featured-card p {
  margin: 0 22px;
  color: #59666c;
}

.home .featured-card a {
  color: #17647a;
  text-decoration: none;
}


/* ---------- BUY / USE / SELL / PLUS ---------- */

/* スマホでも2列×2段 */
.home .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}

.home .wp-block-column {
  min-width: 0;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(25, 43, 50, .045);
}

.home .wp-block-column h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.home .wp-block-column p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.65;
}


/* ---------- NEW ARTICLES ---------- */

.home .wp-block-latest-posts {
  margin: 0;
  padding: 0;
}

.home .wp-block-latest-posts li {
  margin: 0 0 18px;
  padding: 14px;
  overflow: hidden;
  list-style: none;
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 14px;
}

.home .wp-block-latest-posts__featured-image img {
  border-radius: 10px;
}

.home .wp-block-latest-posts a {
  color: #20282d;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
}

.home .wp-block-latest-posts__post-date {
  margin-top: 6px;
  color: #7b878c;
  font-size: .82rem;
}


/* ---------- ABOUT NOKOSU ---------- */

.home h2:last-of-type + p {
  padding-top: 4px;
}

.home h2:last-of-type {
  margin-top: 64px;
}


/* ---------- リンク ---------- */

.home a {
  color: #17647a;
}


/* ---------- スマホ ---------- */

@media screen and (max-width: 768px) {

  .home .entry-content {
    padding: 24px 18px 58px;
  }

  .home .entry-content > h2:first-of-type {
    font-size: 1.8rem;
    margin-top: 12px;
  }

  .home .entry-content h2 {
    font-size: 1.35rem;
    margin-top: 48px;
  }

  .home .featured-card h2,
  .home .featured-card h3 {
    margin: 18px 18px 10px;
    font-size: 1.3rem;
  }

  .home .featured-card p {
    margin-left: 18px;
    margin-right: 18px;
  }

  .home .wp-block-column {
    padding: 18px 14px;
  }

  .home .wp-block-column h3 {
    font-size: 1.15rem;
  }

  .home .wp-block-column p {
    font-size: .88rem;
  }
}


/* ---------- PC ---------- */

@media screen and (min-width: 769px) {

  .home #main {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
  }

  .home .entry-content {
    padding: 50px 42px 90px;
  }
}


/* ==================================================
   NOKOSU DESIGN
   Home page
   ================================================== */


/* ---------- 基本 ---------- */

.home #main {
  background: #fff;
  border: 0;
  box-shadow: none;
}

.home .entry-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 64px;
  color: #20282d;
  line-height: 1.9;
}


/* HOMEという固定ページタイトルを非表示 */

.home .entry-title {
  display: none;
}


/* トップページの不要な表示 */

.home .date-tags,
.home .sns-share,
.home .sns-follow,
.home .author-box,
.home .toc,
.home .breadcrumb {
  display: none !important;
}


/* ---------- 最初のキャッチコピー ---------- */

.home .entry-content > h2:first-of-type {
  background: none;
  border: 0;
  padding: 0;
  margin: 20px 0 24px;
  color: #20282d;
  font-size: 2rem;
  line-height: 1.45;
  letter-spacing: .02em;
}


/* ---------- 通常見出し ---------- */

.home .entry-content h2 {
  background: none;
  border: 0;
  padding: 0;
  color: #20282d;
  font-size: 1.55rem;
  line-height: 1.45;
  margin: 58px 0 22px;
  letter-spacing: .03em;
}

.home .entry-content h3 {
  background: none;
  border: 0;
  padding: 0;
  color: #20282d;
}


/* ---------- FEATURED ---------- */

.home .featured-card {
  margin: 20px 0 42px;
  padding: 0 0 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 18px;
  box-shadow: 0 7px 25px rgba(25, 43, 50, .06);
}

.home .featured-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 18px 18px 0 0;
}

.home .featured-card h2,
.home .featured-card h3 {
  margin: 22px 22px 12px;
  font-size: 1.45rem;
  line-height: 1.45;
}

.home .featured-card p {
  margin: 0 22px;
  color: #59666c;
}

.home .featured-card a {
  color: #17647a;
  text-decoration: none;
}


/* ---------- BUY / USE / SELL / PLUS ---------- */

/* スマホでも2列×2段 */
.home .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}

.home .wp-block-column {
  min-width: 0;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(25, 43, 50, .045);
}

.home .wp-block-column h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.home .wp-block-column p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.65;
}


/* ---------- NEW ARTICLES ---------- */

.home .wp-block-latest-posts {
  margin: 0;
  padding: 0;
}

.home .wp-block-latest-posts li {
  margin: 0 0 18px;
  padding: 14px;
  overflow: hidden;
  list-style: none;
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 14px;
}

.home .wp-block-latest-posts__featured-image img {
  border-radius: 10px;
}

.home .wp-block-latest-posts a {
  color: #20282d;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
}

.home .wp-block-latest-posts__post-date {
  margin-top: 6px;
  color: #7b878c;
  font-size: .82rem;
}


/* ---------- ABOUT NOKOSU ---------- */

.home h2:last-of-type + p {
  padding-top: 4px;
}

.home h2:last-of-type {
  margin-top: 64px;
}


/* ---------- リンク ---------- */

.home a {
  color: #17647a;
}


/* ---------- スマホ ---------- */

@media screen and (max-width: 768px) {

  .home .entry-content {
    padding: 24px 18px 58px;
  }

  .home .entry-content > h2:first-of-type {
    font-size: 1.8rem;
    margin-top: 12px;
  }

  .home .entry-content h2 {
    font-size: 1.35rem;
    margin-top: 48px;
  }

  .home .featured-card h2,
  .home .featured-card h3 {
    margin: 18px 18px 10px;
    font-size: 1.3rem;
  }

  .home .featured-card p {
    margin-left: 18px;
    margin-right: 18px;
  }

  .home .wp-block-column {
    padding: 18px 14px;
  }

  .home .wp-block-column h3 {
    font-size: 1.15rem;
  }

  .home .wp-block-column p {
    font-size: .88rem;
  }
}


/* ---------- PC ---------- */

@media screen and (min-width: 769px) {

  .home #main {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
  }

  .home .entry-content {
    padding: 50px 42px 90px;
  }
}


/* =====================================
   NOKOSU visual upgrade
   ===================================== */

/* 全体背景を真っ白から少し暖かい色へ */
body.home,
.home #container,
.home .content {
  background: #F4F2ED !important;
}

/* ヘッダー */
.home #header-container,
.home .header-container {
  background: #F8F6F1 !important;
  border-bottom: 1px solid #E4E1DA;
}

/* メインエリア */
.home #main {
  background: transparent !important;
}

/* 本文 */
.home .entry-content {
  color: #1F2A30;
}

/* トップの大見出し */
.home .entry-content > h2:first-of-type {
  color: #1F2A30;
  font-weight: 700;
  letter-spacing: .02em;
}

/* FEATURED */
.home .featured-card {
  background: #fff;
  border: 1px solid #E4E1DA;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 14px 35px rgba(31,42,48,.07),
    0 2px 8px rgba(31,42,48,.04);
}

/* カテゴリーカード */
.home .wp-block-column {
  background: #FFFFFF !important;
  border: 1px solid #E4E1DA !important;
  border-radius: 18px !important;
  box-shadow:
    0 8px 22px rgba(31,42,48,.05) !important;
}

/* BUY / USE / SELL / PLUS */
.home .wp-block-column h3 {
  color: #1F2A30;
  font-weight: 700;
  letter-spacing: .04em;
}

/* NEW ARTICLESカード */
.home .wp-block-latest-posts li {
  background: #FFFFFF !important;
  border: 1px solid #E4E1DA !important;
  border-radius: 16px !important;
  box-shadow: 0 7px 20px rgba(31,42,48,.045);
}

/* ABOUT */
.home h2:last-of-type + p {
  background: #ECE9E2;
  border-radius: 18px;
  padding: 24px;
}

/* フッターも濃すぎない色に */
.home .footer,
.home #footer {
  background: #233A43 !important;
}

/* スマホ下部メニュー */
.mobile-footer-menu-buttons {
  background: rgba(248,246,241,.96) !important;
  border-top: 1px solid #E4E1DA !important;
}

/* ==============================
   NOKOSU brand refinement
   ============================== */

/* ヘッダーのサイト名 */
.logo-text {
  font-weight: 700;
  letter-spacing: .18em;
}

/* トップのメインコピー */
.home .entry-content > h2:first-of-type {
  font-size: 2.15rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 22px;
}

/* FEATUREDラベルを英字らしく */
.home .entry-content h2:not(:first-of-type) {
  letter-spacing: .08em;
}

/* FEATURED画像 */
.home .featured-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* カテゴリーカード */
.home .wp-block-column {
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* PCではわずかに浮く */
@media (hover:hover) {
  .home .wp-block-column:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(31,42,48,.08) !important;
  }
}

/* BUY / USE / SELL / PLUS */
.home .wp-block-column h3 {
  font-size: 1.05rem;
  letter-spacing: .12em;
  color: #17647A;
  margin-bottom: 12px;
}

/* 説明文 */
.home .wp-block-column p {
  color: #4D5B61;
  line-height: 1.7;
}


/* =========================================================
   NOKOSU HOME v2
   ========================================================= */

body:has(.nokosu-v2) {
  background: #f1efe9;
  color: #20282d;
}

/* Cocoon感をHOME v2では極力消す */
body:has(.nokosu-v2) #main {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body:has(.nokosu-v2) .entry-title,
body:has(.nokosu-v2) .date-tags,
body:has(.nokosu-v2) .sns-share,
body:has(.nokosu-v2) .sns-follow,
body:has(.nokosu-v2) .author-box,
body:has(.nokosu-v2) .toc,
body:has(.nokosu-v2) .breadcrumb {
  display: none !important;
}

body:has(.nokosu-v2) .entry-content {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* =========================
   HERO
   ========================= */

.nokosu-v2 {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.nokosu-hero-v2 {
  padding: 80px 0 72px;
}

.nokosu-kicker {
  margin: 0 0 34px !important;
  color: #17647a;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .28em;
}

.nokosu-hero-v2 h1 {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: #17242a;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.nokosu-lead {
  max-width: 590px;
  margin: 34px 0 0 !important;
  color: #677278;
  font-size: 1rem;
  line-height: 2;
}

/* =========================
   SECTION LABEL
   ========================= */

.nokosu-section-label {
  margin: 0 0 18px !important;
  color: #17647a;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
}

/* =========================
   FEATURED
   ========================= */

.nokosu-feature-section {
  margin: 0 0 88px;
}

.nokosu-feature-card {
  display: block;
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 48px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.20), transparent 35%),
    linear-gradient(135deg, #173844 0%, #1e5967 55%, #102b33 100%);
  box-shadow: 0 24px 65px rgba(26, 41, 47, .16);
  color: #fff !important;
  text-decoration: none !important;
}

.nokosu-feature-card:after {
  content: "18 PRO";
  position: absolute;
  right: -8px;
  bottom: -30px;
  color: rgba(255,255,255,.055);
  font-size: 8rem;
  font-weight: 800;
  letter-spacing: -.06em;
}

.nokosu-feature-text {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.nokosu-feature-text > span {
  display: inline-block;
  margin-bottom: 95px;
  color: rgba(255,255,255,.67);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.nokosu-feature-text h2 {
  margin: 0 0 18px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.17;
  letter-spacing: -.035em;
}

.nokosu-feature-text p {
  max-width: 500px;
  margin: 0 0 34px !important;
  color: rgba(255,255,255,.74);
  line-height: 1.8;
}

.nokosu-feature-text small {
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
}

/* =========================
   CATEGORY
   ========================= */

.nokosu-category-section {
  margin-bottom: 92px;
}

.nokosu-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.nokosu-category-card {
  display: block;
  min-height: 220px;
  position: relative;
  padding: 26px;
  background: #fff;
  border: 1px solid #e1ded6;
  border-radius: 22px;
  color: #20282d !important;
  text-decoration: none !important;
  box-shadow: 0 7px 24px rgba(31,42,48,.035);
  transition: transform .25s ease, box-shadow .25s ease;
}

.nokosu-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(31,42,48,.08);
}

.nokosu-category-card > span {
  display: block;
  margin-bottom: 40px;
  color: #9aa2a5;
  font-size: .68rem;
  letter-spacing: .12em;
}

.nokosu-category-card h3 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  color: #17647a !important;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: .06em;
}

.nokosu-category-card p {
  margin: 0 0 8px !important;
  color: #26343a;
  font-weight: 600;
}

.nokosu-category-card small {
  color: #8a9498;
  font-size: .72rem;
  line-height: 1.5;
}

/* =========================
   ABOUT
   ========================= */

.nokosu-about-v2 {
  margin-bottom: 88px;
  padding: 50px;
  background: #dfdbd1;
  border-radius: 28px;
}

.nokosu-about-v2 h2 {
  margin: 0 0 28px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  color: #20282d !important;
  font-size: 2rem;
  line-height: 1.35;
}

.nokosu-about-v2 p:not(.nokosu-section-label) {
  max-width: 680px;
  color: #59656a;
  line-height: 1.9;
}

/* =========================
   NEW ARTICLES
   ========================= */

body:has(.nokosu-v2) .entry-content > .wp-block-heading {
  max-width: 940px;
  margin: 0 auto 22px !important;
  padding: 0 24px !important;
  background: none !important;
  border: 0 !important;
  color: #20282d !important;
  font-size: 1.35rem;
  letter-spacing: .06em;
}

body:has(.nokosu-v2) .wp-block-latest-posts {
  max-width: 940px;
  margin: 0 auto 90px !important;
  padding: 0 24px !important;
}

body:has(.nokosu-v2) .wp-block-latest-posts li {
  overflow: hidden;
  margin-bottom: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e1ded6;
  border-radius: 18px;
  box-shadow: none;
}

body:has(.nokosu-v2) .wp-block-latest-posts__featured-image img {
  border-radius: 12px;
}

body:has(.nokosu-v2) .wp-block-latest-posts a {
  color: #20282d;
  font-weight: 650;
  text-decoration: none;
}

body:has(.nokosu-v2) .wp-block-latest-posts__post-date {
  margin-top: 6px;
  color: #929a9d;
  font-size: .72rem;
}

/* =========================
   MOBILE
   ========================= */

@media screen and (max-width: 768px) {

  .nokosu-v2 {
    padding: 0 18px 58px;
  }

  .nokosu-hero-v2 {
    padding: 52px 0 54px;
  }

  .nokosu-kicker {
    margin-bottom: 24px !important;
  }

  .nokosu-hero-v2 h1 {
    font-size: 2.65rem;
    line-height: 1.07;
  }

  .nokosu-lead {
    margin-top: 25px !important;
    font-size: .91rem;
    line-height: 1.9;
  }

  .nokosu-feature-section {
    margin-bottom: 66px;
  }

  .nokosu-feature-card {
    min-height: 410px;
    padding: 30px 26px;
    border-radius: 24px;
  }

  .nokosu-feature-text > span {
    margin-bottom: 110px;
  }

  .nokosu-feature-text h2 {
    font-size: 2rem;
  }

  .nokosu-feature-text p {
    font-size: .88rem;
  }

  .nokosu-feature-card:after {
    right: -12px;
    bottom: -14px;
    font-size: 5rem;
  }

  .nokosu-category-section {
    margin-bottom: 68px;
  }

  .nokosu-category-grid {
    gap: 10px;
  }

  .nokosu-category-card {
    min-height: 180px;
    padding: 19px 16px;
    border-radius: 18px;
  }

  .nokosu-category-card > span {
    margin-bottom: 29px;
  }

  .nokosu-category-card h3 {
    font-size: 1.38rem;
  }

  .nokosu-category-card p {
    font-size: .83rem;
  }

  .nokosu-category-card small {
    font-size: .63rem;
  }

  .nokosu-about-v2 {
    margin-bottom: 65px;
    padding: 30px 24px;
    border-radius: 22px;
  }

  .nokosu-about-v2 h2 {
    font-size: 1.55rem;
  }

  body:has(.nokosu-v2) .entry-content > .wp-block-heading,
  body:has(.nokosu-v2) .wp-block-latest-posts {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* ===== FEATURED 修正版 ===== */

.nokosu-feature-card {
  display: flex !important;
  align-items: flex-end;
  width: 100% !important;
  min-height: 420px;
  box-sizing: border-box;
  padding: 34px !important;
  overflow: hidden;
}

.nokosu-feature-text {
  display: block !important;
  width: 100% !important;
  max-width: 560px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.nokosu-feature-text > span {
  display: block;
  margin: 0 0 18px !important;
}

.nokosu-feature-text h2 {
  margin: 0 0 14px !important;
}

.nokosu-feature-text p {
  margin: 0 0 24px !important;
}

@media screen and (max-width: 768px) {
  .nokosu-feature-card {
    min-height: 390px;
    padding: 26px !important;
  }
}