@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template: cocoon-master  
Site Name: 楽描彩人 -DESIGN-
Site URI: https://spark-a.com/design/
Site Author: ZOMI
Version: 1.1.2
*/


/* ==========================================
   A. サイト全体・基本レイアウト
   ========================================== */
.main {
  background-color: #f2f7ff;
}
.body {
  color: #333333; 
}

/* 全体の段落設定 */
p {
  line-height: 1.75;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* 広い空白 */
.spacer-lg {
  height: 3rem;
}

/* 行の文字数制限・中央構え */
p {
  display: inline-block;
  box-sizing: border-box;
  width: 90%;
  margin: 0 auto; 
  padding-left: 10%;
  text-align: left;
}

.column-wrap div {
  display: inline-block;
  box-sizing: border-box;
  width: 90%;
  margin: 0 auto; 
  padding-left: 5%;
  text-align: left;
}

/* カラム・メインコンテンツ幅 */
.no-sidebar .wrap {
  width: 1200px;
}

.single-post:not(.has-sidebar) #primary,
.page.page-one-column:not(.twentyseventeen-front-page) #primary,
.archive.page-one-column:not(.has-sidebar) .page-header,
.archive.page-one-column:not(.has-sidebar) #primary {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* 記事タイトル中央寄せ */
.page .entry-title,
.single .entry-title {
  text-align: center;
}

/* 記事一覧やアイキャッチ上のカテゴリラベル非表示 */
.entry-card .cat-label, 
.eye-catch .cat-label {
  display: none !important;
}

/* 画像キャプションの中央寄せと装飾 */
.entry-content figure figcaption,
.entry-content .wp-block-image figcaption,
.entry-content .wp-caption .wp-caption-text {
  display: block !important;
  width: 100% !important;
  margin: 5px auto 16px !important;
  color: #666;
  font-size: 0.9em;
  text-align: center !important;
}

/* 行頭揃え */
.hline {
  display: inline-block;
  width: 8em;
}

/* ふりがな調整 */
rt {
  position: relative;
  top: -.3em;
  transform: translateY(-.3em);
}

/* ==========================================
   B. ヘッダー・ナビゲーション
   ========================================== */
/* タイトル・キャッチフレーズ */
.header-in {
  justify-content: normal;
}

.logo-text {
  padding: 35px;
}

.tagline {
  color: #2b619b;
  font-weight: bold;
  font-size: 14pt;
}

/* グローバルナビメニュー内 検索窓 */
.header-search {
  width: 200px !important;
}

.header-search .search-box {
  margin: 0;
}

.header-search input[type="text"] {
  padding: 3px 14px;
  border-radius: 14px;
  font-size: 14px;
}

.header-search .search-submit {
  color: #2b619b;
}

/* ==========================================
   C. 記事ページ・見出し
   ========================================== */
/* 新着記事タイトル文字非表示 */
.front-top-page .list-new-entries-title.list-title {
  display: none;
}

/* 記事タイトルとアイキャッチの位置変更 */
.entry-header {
  display: flex;
  flex-direction: column;
}
.entry-header .eye-catch-wrap { order: 1; }
.entry-header .entry-title { order: 2; }
.entry-header .date-tags { order: 3; }

/* 見出しの初期化と共通デザイン */
.article h2, 
.article h3 {
  display: block;
  vertical-align: middle;
  border-radius: 10px !important;
  margin: 10px 0;
  color: #fff;
  line-height: 1.5;
}

.article h2:before,
.article h3:before {
  content: '●';
  margin-right: 10px;
  color: #fff;
}

/* 個別見出し設定 */
.article h2 {
  margin: 48px 0 24px !important; 
  padding: 10px 15px !important;
  background-color: #094382 !important;
  font-size: 1.25rem;
}

.article h3 {
  margin: 32px 0 16px !important;
  padding: 5px 10px !important;
  border: 2px solid #3d51c4 !important;
  background-color: #3d51c4 !important;
  font-size: 1rem;
}

/* ==========================================
   D. 広告・ブログカード・商品リンク（Rinker）
   ========================================== */
/* アドセンスエリアの最適化 */
.ad-area {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  min-height: 280px;
  margin: 20px auto !important;
  overflow: hidden;
}

/* ブログカード */
.blogcard {
  position: relative;
  padding: 1rem;
  border-color: #a7b5f2 !important; 
  color: #333;
}

a.blogcard-wrap:hover {
  background-color: transparent !important;
  opacity: 0.8;
}

a.blogcard-wrap:hover img.blogcard-thumb-image {
  transform: scale(1.1);
  transition: .3s;
}

.blogcard-thumbnail {
  margin-right: 1rem;
  overflow: hidden;
  line-height: 0;
}

.blogcard-title {
  margin-bottom: .5rem;
}

.blogcard-snippet,
.internal-blogcard-footer,
.external-blogcard-footer {
  display: none;
}

/* ブログカード右下枠の文言（内部・外部共通） */
.internal-blogcard::after,
.external-blogcard::after {
  content: '記事を読む \00bb';
  position: absolute;
  bottom: .5rem;
  right: 1rem;
  padding: .4em 3em;
  border-radius: 2px;
  background-color: #a7b5f2;
  color: #fff;
  font-weight: bold;
  font-size: 70%;
}

/* 商品リンク（Rinker） */
div.yyi-rinker-contents div.yyi-rinker-box {
  display: block;
  max-width: 450px;
  margin: 0 auto 30px;
  padding: 15px;
  border-radius: 8px;
  background: none !important; 
  box-shadow: none !important; 
}

div.yyi-rinker-contents div.yyi-rinker-image {
  width: 160px; 
  margin: 0 auto 15px;
}

div.yyi-rinker-contents div.yyi-rinker-box div.yyi-rinker-info {
  width: 90%; 
  margin: 0 auto;
  text-align: center;
}

div.yyi-rinker-contents div.yyi-rinker-title {
  font-size: 0.9em;
  font-weight: bold;
}

div.yyi-rinker-contents ul.yyi-rinker-links li {
  width: 85%;
  margin: 8px auto;
  border-radius: 20px;
}

div.yyi-rinker-contents ul.yyi-rinker-links li.amazonkindlelink { background: #666; border-color: #666; }
div.yyi-rinker-contents ul.yyi-rinker-links li.amazonlink { background: #f6a306; border-color: #f6a306; }
div.yyi-rinker-contents ul.yyi-rinker-links li.rakutenlink { background: #cf4944; border-color: #cf4944; }

/* ==========================================
   E. バッジ・タブ切替・ツールチップ
   ========================================== */
/* バッジグループ */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  max-width: 900px;
  margin: 20px;
}

.badge {
  padding: 3px 10px;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .4);
  background: #2b619b;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  line-height: 30px;
}

.badge.bglb { background: #8395DD; }
.badge.bgw { background: #fff; color: #afafb0; border: 1px solid #afafb0; }

/* タブ切替 */
.tabs {
  display: flex;
  flex-direction: column;
  column-count: 2;
  width: 100%;
  height: 500px;
  margin: 0 auto;
  padding-bottom: 40px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.tab_item {
  display: block;
  float: left;
  width: calc(100% + 1px/4);
  height: 50px;
  margin-left: 30px;
  background-color: #e6e6fa;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  line-height: 50px;
  text-align: center;
  transition: all 0.2s ease;
}

.tab_item:hover {
  opacity: 0.75;
}

input[name="tab_item"] {
  display: none;
}

.tab_content {
  display: none;
  clear: both;
  padding: 40px 40px 0;
  overflow: hidden;
}

#tab01:checked ~ #tab01_content,
#tab02:checked ~ #tab02_content,
#tab03:checked ~ #tab03_content,
#tab04:checked ~ #tab04_content {
  display: block;
}

.tabs input:checked + .tab_item {
  background-color: #5066cc;
  color: #fff;
}

#tab_menu li:hover {
  background: #a7b5f2;
}

#tab_menu li img {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  bottom: 2px;
  padding: 15px 50px 15px 0;
}

/* ツールチップ */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .msg {
  position: absolute;
  left: 50%;
  z-index: 1;
  width: max-content;
  min-width: 120px;
  max-width: min(240px, 80vw);
  padding: 10px 12px;
  transform: translateX(-50%);
  transition: .3s;
  border-radius: 4px;
  background: #a2c2d0;
  color: #fff;
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  visibility: hidden;
  opacity: 0;
}

.tooltip .msg::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
}

/* 方向切り替え */
.tooltip.-t .msg { bottom: 120%; }
.tooltip.-t .msg::before { top: 100%; border-top-color: #a2c2d0; }

.tooltip.-b .msg { top: 120%; }
.tooltip.-b .msg::before { bottom: 100%; border-bottom-color: #a2c2d0; }

/* 表示アクション */
.tooltip:hover .msg {
  visibility: visible;
  opacity: 1;
}

/* ==========================================
   F. メモボックス（memox）システム
   ========================================== */
.memox {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 2.5em auto;
  padding: 55px 30px 30px !important; 
  background: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  font-size: 15px;
}

.memox-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.memox.w60 { width: 60%; }
.w45 { width: calc((100% - 20px) / 2); }
.w30 { width: calc((100% - 40px) / 3); }

.tape {
  position: absolute;
  top: -15px;
  left: 50%;
  z-index: 10;
  width: 50%;
  max-width: 180px;
  height: 40px;
  padding: 6px 10px;
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  backdrop-filter: blur(1px);
  font-weight: bold;
  font-size: 14px;
  text-align: center;
}

.tape.bl { background: rgba(199,216,250,0.7); color: #557; }
.tape.rd { background: rgba(245,178,178,0.7); color: #755; }
.tape.ye { background: rgba(255,250,180,0.7); color: #775; }
.tape.gr { background: rgba(200,240,210,0.7); color: #575; }

db, lb {
  font-weight: bold;
  font-size: 1.1em;
}
db { color: #3676e0; }
lb { color: #6fb5d9; }

.pi {
  width: 80%;
  padding: 40px 25px 20px;
}

.pr {
  padding: 15px 15px 45px;
}
.pr img {
  display: block;
  width: 80%;
  aspect-ratio: 4 / 1;
  margin: 10px auto 15px;
  object-fit: cover;
  border: 1px solid #eee;
}
.pr img.iro {
  display: inline-block;
  width: 50px !important;
  height: 50px !important;
  aspect-ratio: 1 / 1;
  margin: 0;
}

.coming {
  background: transparent;
  box-shadow: none;
  opacity: 0.4;
}
.coming::before {
  content: "";
  position: absolute;
  inset: 2px;
  box-shadow: inset 0 0 18px rgba(0,0,0,0.1);
}

/* メモ内段落設定（全体pの干渉をリセット＆上書き） */
.memox p {
  display: block !important;
  width: 100% !important;
  margin: 0 0 0.8rem 0 !important;
  padding-left: 0 !important;
  line-height: 1.6;
}
.memox p:last-child {
  margin-bottom: 0 !important;
}

/* ==========================================
   G. レスポンシブ（メディアクエリ）
   ========================================== */
/* タブレット・スマホ全般（幅768px以下） */
@media screen and (max-width: 768px) {
  .no-sidebar .wrap {
    width: 100%;
  }
  .article h2 { margin: 32px 0 16px !important; }
  .article h3 { margin: 24px 0 12px !important; }
  
  /* メモボックススマホ対応 */
  .memox {
    width: 95% !important;
    padding: 30px 20px !important;
  }
  .w30, .w45, .pi {
    width: 95%;
  }
}

/* レスポンシブ（幅640px以下） */
@media screen and (max-width: 640px) {
  .hline {
    display: block;
    width: 100%;
    border-bottom: none;
  }
}

/* スマートフォン（幅480px以下） */
@media screen and (max-width: 480px) {
  /* アドセンス */
  .ad-area {
    min-height: 250px;
    padding: 0 10px;
  }
  /* ブログカード */
  .blogcard-thumbnail {
    width: 40%;
  }
}