@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template: cocoon-master  
Site Name: 楽描彩人 -ART-
Site URI: https://spark-a.com/
Site Author: ZOMI
Version: 1.1.2
*/

/* 段落 */
p {
margin-top: 30px;
margin-bottom: 30px;
}

.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 {
	margin-left: auto;
	margin-right: auto;
	max-width: 1000px;
}

/* 行の文字数制限・中央構え */
p {
 display: inline-block;
 text-align: left;
 padding-left: 10%;
 margin: 0 auto; 
 width: 90%;
}

.column-wrap div {
 display: inline-block;
 text-align: left;
 padding-left: 5%;
 margin: 0 auto; 
 width: 90%;
}

/* カラム幅 */
.no-sidebar .wrap {
 width: 1200px;
}

@media screen and (max-width:750px) {
.no-sidebar .wrap {
 width: 100%;
}
}

/* 見出し初期化 */
.main{
 background-color: #f2f7ff;
}

.a-wrap {
 color: #333333;
}

/* 見出し初期化 */
.article h3,
.article h4,
{
padding: 0;
margin: 0;
background: none;
border-collapse: separate;
border-spacing: 0;
border-top: none;
border-right: none;
border-bottom: none;
border-left: none;
line-height: normal;
position: relative;
}

/* 見出し */
.article h3{
  background: #2b619b;
  font-size: 18px; 
  color: #fff; 
  letter-spacing: 3px;
  margin: 100px -8px 20px -8px;
  text-indent: 5px;
  padding: 10px 7px 8px 10px;
  border: 3px solid #2b619b;
  border-radius: 10px;
}

.article h3:before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 13px;
  border-radius: 50%;
  background: #fff;
}

.article h4{
  background: #8395DD;
  font-size: 16px; 
  color: #fff; 
  letter-spacing: 3px;
  margin: 50px -8px 20px -8px;
  text-indent: 5px;
  padding: 10px 7px 8px 10px;
  border: 3px solid #8395DD;
  border-radius: 10px;
}

.article h4:before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 13px;
  border-radius: 50%;
  background: #fff;
}

/* 新着記事タイトル文字非表示 */
.front-top-page .list-new-entries-title.list-title {
   display: none;
}

/* タイトル・キャッチフレーズ */
.header-in {
 justify-content: normal;
}

.logo-text {
padding: 35px;
}

.tagline{
font-weight: bold;
font-size: 14pt;
color: #2b619b;
}

/* グローバルナビメニューに検索窓 */
.header-search {
  width: 200px !important;
}

.header-search .search-box {
  margin: 0;
}

.header-search input[type="text"] {
  padding: 3px 14px;
  font-size: 14px;
  border-radius: 14px / 50%;
}

.header-search .search-submit {
  color: #2b619b;
}

/* 記事タイトルとアイキャッチの位置変更 */
.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;
}

/* タイトル中央寄せ */
.page .entry-title,
.single .entry-title {
 text-align: center;
}

/* アドセンス */
.staldia-adsense{
	width: 350px;
	height: 260px;
}

@media (max-width: 575px){
	.staldia-adsense{
		width: 100%;
		height: 320px;
	}
}

/* 画像キャプションの中央寄せ */
.entry-content figure figcaption,
.entry-content .wp-block-image figcaption,
.entry-content .wp-caption .wp-caption-text {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* ブロックガード */
.blogcard {
	padding: 1rem;
	color: #333;
	position: relative;
	border-color: #a7b5f2 !important; /* 枠線の色を変更 */
}

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 {
	line-height: 0;
	margin-right: 1rem;
	overflow: hidden;
}

.blogcard-title{
	margin-bottom: .5rem;
}

.blogcard-snippet{
	display: none;
}

@media screen and (max-width: 480px){
	.blogcard-thumbnail{
		width: 40%;
	}
}

.internal-blogcard-footer{
	display: none; /* 内部ブログカードのアイコンとURLを非表示 */
}

.internal-blogcard::after{
	content: '記事を読む \00bb'; /* 内部リンク右下枠の文言 */
	position: absolute;
	bottom: .5rem;
	right: 1rem;
	font-size: 70%;
	background-color: #a7b5f2;
	padding: .4em 3em;
	font-weight: bold;
	color: #fff;
	border-radius: 2px;
}

.external-blogcard-footer{
	display: none;
}

.external-blogcard::after{
	content: '記事を読む \00bb'; /* 外部リンク右下枠の文言 */
	position: absolute;
	bottom: .5rem;
	right: 1rem;
	font-size: 70%;
	background-color: #a7b5f2;
	padding: .4em 3em;
	font-weight: bold;
	color: #fff;
	border-radius: 2px;
}

/* 商品リンク */
/* 全体 */
div.yyi-rinker-contents div.yyi-rinker-box {
	display: block;
}
/* 画像とボタンを中央配置 */
div.yyi-rinker-contents div.yyi-rinker-image {
	margin-left: auto;
	margin-right: auto;
}
div.yyi-rinker-contents ul.yyi-rinker-links li {
	text-align: center;
	width: 100%;
	margin: 6px 0px;
}
/* 商品詳細（テキストとボタン）の幅を広げる */
div.yyi-rinker-contents div.yyi-rinker-box div.yyi-rinker-info {
	width: 70%;
	margin: 0 auto;
	text-align: center;
}
/* 詳細箇所を調整 */
div.yyi-rinker-contents div.yyi-rinker-detail {
	padding-left: 0;
}
div.yyi-rinker-contents div.yyi-rinker-detail div.price-box {
	font-size: .5em;
}
/* 値段箇所の微調整 */
div.yyi-rinker-contents div.yyi-rinker-detail div.price-box .price {
	font-size: 2em;
	margin: 5px;
	display: block;
}
/* 画像サイズを調整 */
div.yyi-rinker-contents div.yyi-rinker-image {
	width: 230px;
	min-width: 140px;
}

/* ボタン色 */
div.yyi-rinker-contents ul.yyi-rinker-links li.amazonkindlelink { /* kindle */
    background: #666; /* 背景色 */
    border: 2px solid #666; /* 外枠 */
}
div.yyi-rinker-contents ul.yyi-rinker-links li.amazonlink { /* Amazon */
    background: #f6a306; /* 背景色 */
    border: 2px solid #f6a306; /* 外枠 */
}
div.yyi-rinker-contents ul.yyi-rinker-links li.rakutenlink { /* 楽天 */
    background: #cf4944; /* 背景色 */
    border: 2px solid #cf4944; /* 外枠 */
}

/* memox */
/* --- 共通設定 --- */
.memox {
  position: relative;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  box-sizing: border-box;
  margin: 2.5em auto;
}

/* マスキングテープ */
.tape {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  height: 40px;
  width: 50%;
  max-width: 180px;
  padding: 6px 10px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  backdrop-filter: blur(1px); /* 少し透け感をプラス */
}

/* テープ色 */
.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; }

/* インライン装飾 */
db, lb { font-size: 1.1em; font-weight: bold; }
db { color: #3676e0; }
lb { color: #18c6f8; }

/* --- 1. ポストイット専用 (.pi) --- */
.pi {
  width: 80%;
  padding: 40px 25px 20px;
}

/* --- 2. ポラロイド専用 (.pr) --- */
.pr {
  padding: 15px 15px 45px;
}
.pr img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 1px solid #eee;
}
.caption {
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
}

/* レイアウト用 */
.memox-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.w30 { width: calc((100% - 40px) / 3); }
.w45 { width: calc((100% - 20px) / 2); }

/* スマホ対応 */
@media screen and (max-width: 767px) {
  .w30, .w45, .pi { width: 95%; } /* .piに修正 */
}


/* バッジ*/
.badge-group {
  margin: 20px;
  max-width: 900px; /* 固定幅よりmax-widthがレスポンシブで安全 */
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px; /* marginの代わりにgapを使うと計算が楽です */
}

/* 共通デザイン */
.badge {
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .4);
  padding: 3px 10px;
  font-size: 13px;
  font-weight: bold;
  line-height: 30px;
  color: #fff;
  background: #2b619b; /* デフォルト色 */
}

/* バリエーション（色と枠線のみ） */
.bglb { background: #8395DD; }
.bgw { background: #fff; color: #afafb0; border: 1px solid #afafb0; }

/*ふりがな*/
rt {
  position: relative;
  top: -.3em;
  transform: translateY(-.3em);
}

/*タブ切替*/
.tabs {
  margin-top: 50px;
  padding-bottom: 40px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  width: 100%;
  margin: 0 auto;
  flex-direction: column;
  column-count: 2;
  height: 500px;
  }
  
/*タブのスタイル*/
.tab_item {
  width: calc(100% + 1px/4);
  margin-left: 30px;
  height: 50px;
  background-color: #e6e6fa;
  line-height: 50px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  display: block;
  float: left;
  transition: all 0.2s ease;
}

.tab_item:hover {
  opacity: 0.75;
}

/*ラジオボタンを全て消す*/
input[name="tab_item"] {
  display: none;
}

/*タブ切り替えの中身のスタイル*/
.tab_content {
  display: none;
  padding: 40px 40px 0;
  clear: both;
  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;
}

/* 行頭揃え */
.hline {
display: inline-block;
width: 8em;
}

@media screen and (max-width: 640px) {
  .hline {
    display: block;
    width: 100%;
    border-bottom:none;
  }
}

/* ツールチップのテキスト */
/* ベース：ツールチップを保持する親 */
.tp { position: relative; cursor: pointer; display: inline-block; }

/* 吹き出し本体（iタグで共通設定） */
.tp .msg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  padding: 10px 12px; 
  line-height: 1.5;      /* 行間を広げて文字の重なりを防ぐ */
   letter-spacing: 0.05em;/* 文字間をわずかに広げてスッキリさせる */
  background: #a2c2d0;
  color: #fff;
  font-size: 14px;
  font-style: normal; /* iタグの斜体を解除 */
  text-align: center; /* テキストを中央寄せ */
  border-radius: 4px;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  transition: .3s;
}

/* 矢印の共通設定 */
.tp .msg::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
}

/* 方向の切り替え */
.tp.-t .msg { bottom: 120%; } /* 上 */
.tp.-t .msg::before { top: 100%; border-top-color: #a2c2d0; }

.tp.-b .msg { top: 120%; }    /* 下 */
.tp.-b .msg::before { bottom: 100%; border-bottom-color: #a2c2d0; }

/* ホバー動作 */
.tp:hover .msg { visibility: visible; opacity: 1; }
