@charset "UTF-8";

/*
Theme Name: Cocoon Child
Description: Cocoon用の子テーマ
Template:   cocoon-master
Version:    1.0.0
*/


/* ==========================================
   【固定】りんサーチ見出しデザイン
   ※トップページは除外
========================================== */

/* H2基本設定 */
body:not(.home) .article h2 {
  background: transparent !important;
  border: none !important;
  padding: 0 0 15px 20px !important;
  margin: 42px 0 26px !important;
  font-size: 1.45em;
  font-weight: 700;
  color: #3f352d;
  position: relative;
  line-height: 1.55;
}

body:not(.home) .article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 5px;
  height: 1.8em;
  border-radius: 4px;
  background: #7eb8e8;
}

body:not(.home) .article h2::after {
  content: "";
  display: block;
  width: 55%;
  border-bottom: 2px dotted #7eb8e8;
  margin-top: 14px;
}

/* H3基本設定 */
body:not(.home) .article h3 {
  background: transparent !important;
  border: none !important;
  padding: 0 0 12px !important;
  margin: 32px 0 18px !important;
  font-size: 1.18em;
  font-weight: 700;
  color: #3f352d;
  line-height: 1.55;
}

body:not(.home) .article h3::after {
  content: "";
  display: block;
  width: 42%;
  border-bottom: 1.5px dotted #b9d7f5;
  margin-top: 10px;
}

/* カテゴリー切り替え（要注目サイト：緑） */
body:not(.home).category-youchumoku .article h2::before {
  background: #7fa36d;
}

body:not(.home).category-youchumoku .article h2::after {
  border-bottom-color: #7fa36d;
}

body:not(.home).category-youchumoku .article h3::after {
  border-bottom-color: #b8d8b0;
}

/* スマホ表示対応 */
@media screen and (max-width: 768px) {
  body:not(.home) .article h2 {
    font-size: 1.28em;
    padding-left: 17px !important;
  }

  body:not(.home) .article h2::after {
    width: 70%;
  }

  body:not(.home) .article h3 {
    font-size: 1.08em;
  }

  body:not(.home) .article h3::after {
    width: 58%;
  }
}

/* ===================================
   トップページ上部の余白調整
=================================== */

.home .content,
.home .main,
.home .article,
.front-page .content,
.front-page .main,
.front-page .article {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 固定ページトップでタイトル周りの余白が出る場合 */
.home .entry-content,
.front-page .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 最初の画像ブロックの上余白を削る */
.home .entry-content > *:first-child,
.front-page .entry-content > *:first-child {
  margin-top: 0 !important;
}

/*=========================
  りんサーチ サイドバー
=========================*/

.rin-sidebar{
  font-family: "Hiragino Sans","Yu Gothic",sans-serif;
}

.rin-card{
  background: #f5faff;
  border: 1px solid #d8e8f5;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(79, 147, 217, 0.08);
  text-align: center;
}

.rin-avatar img{

  width:110px;

  height:110px;

  border-radius:50%;

  object-fit:cover;

  margin-bottom:14px;

}

.rin-card h3{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  color: #32485f !important;
  font-size: 17px !important;
  font-weight: 700 !important;

  margin: 0 0 18px !important;
  padding: 0 !important;

  text-align: center !important;
}

.rin-card h3::before{
  display: none !important;
  content: none !important;
}

.rin-card h3::after{
  content: "";
  display: block;
  width: 90px;
  margin: 10px auto 0;
  border-bottom: 2px dotted #8fc2e8;
}

.rin-card p{

  text-align:left;

  font-size:13px;

  line-height:2;

  background:transparent;

  border:none;

  padding:0;

  color:#5b6d80;

  margin-bottom:24px;

}

.rin-home{
  display: inline-block;
  margin-bottom: 16px;
  padding: 12px 26px;

  background: #eef7ff;
  border: 1px solid #d6e8f7;
  border-radius: 999px;

  color: #4f93d9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;

  transition: all .25s ease;
}

.rin-home:hover{
  background: #5ba8e5;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79,147,217,.18);
}


.rin-line{

  display:block;

  background:linear-gradient(135deg,#67b2ea,#4f93d9);

  color:#fff!important;

  text-decoration:none;

  padding:13px;

  border-radius:999px;

  font-size:13px;

  font-weight:700;

  transition:.25s;

}

.rin-line:hover{

  transform:translateY(-2px);

  box-shadow:0 8px 20px rgba(79,147,217,.25);

}

/* ==========================================
   りんサーチ：標準ウィジェット用デザイン
========================================== */

.sidebar .widget {
  background: #ffffff !important;
  border: 1px solid #eef4f8 !important;
  border-radius: 18px !important;
  padding: 22px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 8px 24px rgba(79,147,217,0.06) !important;
}

.sidebar .widget-title {
  background: #eaf5fd !important;
  color: #2f4f66 !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 13px 16px !important;
  margin: 0 0 18px !important;
  text-align: center !important;
}

.sidebar .widget-title::before,
.sidebar .widget-title::after {
  display: none !important;
}

/* ブロックウィジェット内のアーカイブ・カテゴリー見出しごと非表示 */
.sidebar .widget_block:has(.wp-block-archives),
.sidebar .widget_block:has(.wp-block-categories) {
  display: none !important;
}

/* スマホだけ通知バーの文字を小さくする */
@media screen and (max-width: 768px) {

  .notice-area,
  .notice-message,
  .appeal-content,
  #appeal {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

}


/* =========================
   りんサーチ 4カテゴリカード
========================= */

/* 全体の横並び */
.shop-banner-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;

  width: 100%;
  max-width: none;
  margin: 0 auto 24px;
  padding: 15px 5px;

  background-color: #faf7f2;
  border-radius: 10px;
  box-sizing: border-box;
}

/* カード基本 */
.shop-banner-card {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  height: 90px;

  text-decoration: none !important;
  border-radius: 6px;
  position: relative;

  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

/* 内側の点線 */
.banner-inner {
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;

  border: 1.5px dashed #cccccc;
  border-radius: 4px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 0 5px;
  text-align: center;
}

/* 色分け */
.banner-loft .banner-inner {
  border-color: #e6b800;
}
.banner-loft:hover {
  background-color: #fffdf2;
  transform: translateY(-3px);
}

.banner-nordic .banner-inner {
  border-color: #7fa08f;
}
.banner-nordic:hover {
  background-color: #f5f8f6;
  transform: translateY(-3px);
}

.banner-korea .banner-inner {
  border-color: #c5ab93;
}
.banner-korea:hover {
  background-color: #faf7f4;
  transform: translateY(-3px);
}

.banner-stationery .banner-inner {
  border-color: #92a9bd;
}
.banner-stationery:hover {
  background-color: #f3f6f9;
  transform: translateY(-3px);
}

/* 英語ラベル */
.en-sub {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #a0a0a0;
  margin-bottom: 2px;
  font-weight: bold;
}

/* 日本語タイトル */
.banner-inner h3 {
  font-size: 12px;
  color: #333333 !important;
  margin: 0;
  font-weight: bold;
  line-height: 1.3;
}

/* カード内文字の余計な装飾解除 */
.shop-banner-card .banner-inner h3,
.shop-banner-card .banner-inner .en-sub {
  border: none !important;
  border-bottom: none !important;
  text-decoration: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* スマホ */
@media (max-width: 600px) {
  .shop-banner-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 10px 5px !important;
    margin: 0 auto 20px !important;
  }

  .shop-banner-card {
    height: 75px !important;
  }

  .banner-inner {
    top: 4px !important;
    left: 4px !important;
    right: 4px !important;
    bottom: 4px !important;
    padding: 0 4px !important;
  }

  .en-sub {
    font-size: 8px !important;
    margin: 0 0 1px 0 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
  }

  .banner-inner h3 {
    font-size: 11.5px !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
  }
}

/* ===========================
   りんサーチ 記事カード装飾
=========================== */

.entry-card-wrap {
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid #d6e4ef !important;
  box-shadow: 0 8px 20px rgba(47,79,102,.06) !important;
  transition: all .25s ease !important;
  background: #fff !important;
}

.entry-card-wrap:hover {
  transform: translateY(-4px);
  border-color: #c7dff1 !important;
  box-shadow: 0 14px 28px rgba(47,79,102,.14) !important;
}

/* 上部アクセント */
.entry-card-wrap::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #5baee8, #b8ddf6);
}

/* 記事カード左上のカテゴリーラベルを非表示 */
.entry-card .cat-label,
.entry-card-wrap .cat-label {
  display: none !important;
}


/* トップページ用の記事だけタイトル非表示 */

/* 投稿 */
.postid-608 .entry-title {
  display: none !important;
}

/* 固定ページ */
.page-id-11 .entry-title,
.page-id-14 .entry-title {
  display: none !important;
}


/* コンテンツへスキップを通常時は画面外へ隠す */
a.skip-link,
.skip-link {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
}

/* キーボード操作時だけ表示 */
a.skip-link:focus,
.skip-link:focus {
  left: 10px !important;
  top: 10px !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  z-index: 99999 !important;
}