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




/*アドミンバーを半透明に*/
#wpadminbar {
	background: rgba(29, 35, 39, 0.8);
}

.wrap {
	max-width: 768px;
}

body:not(.single-post) .date-tags {
	display: none;
}
.date-tags {
	position: absolute;
	top:  10px;
	right: 20px;
}
.sns-share.ss-high-and-low-lc a .button-caption.button-caption,
.sns-share-message {
	display: none;
}

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


/*--------------------------------
	全体
--------------------------------*/
@font-face {
	font-family: 'fontserif';
	src: url('./NotoSerifJP-SemiBold.woff2') format('woff2');
	font-display: swap;
}
@font-face {
	font-family: 'fontsans';
	src: url('./NotoSansJP-Light.woff2') format('woff2');
	font-display: swap;
}
@font-face {
	font-family: 'fontinder';
	src: url('./Inder-Regular.woff2') format('woff2');
	font-display: swap;
}

:root {
	--color_key: #EF4056;
	--color_font: #202124;
	--color_link: #1D9BF0;
	--color_line: #DDD;
	--color_shadow: 0px 4px 8px -2px rgba(0,0,0,0.2);
	--font_sans: 'fontsans';
	--font_serif: 'fontserif';
}

body, #main {
	overflow-x: hidden;
}
@media screen and (max-width: 1104px) {
	.main, .sidebar, .sidebar-left .main, .sidebar-left .sidebar {
		margin: unset;
	}
}
/*リンク*/
a, 
a:hover {
	color: var(--color_link);
	outline: unset;
	text-decoration: unset;
	/*text-underline-offset: 2px;*/
}
a[href*="https://sgmanual.net/site"]::after {
	font-family: 'Font Awesome 5 Free';
		content: '\f35d';
		font-weight: 900;
	margin: 0 0.3em;
	font-size: 0.5em;
}
/* 関連記事などのカードホバー時の背景色を透明にする */
.a-wrap:hover {
    background-color: transparent !important;
}
.internal-icon::before {
	font-size: 0.6em;
}
.fa-external-link-alt::before {
    font-size: 0.6em;
}
/*ルビを文字に寄せる（Safari専用）*/
@supports (-webkit-touch-callout: none) {
    ruby rt {
        line-height: 1;
        margin-bottom: -0.5em; /* ← しっかり寄せる */
    }
}
/*em斜体*/
em {
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", YuGothic, "Yu Gothic", sans-serif;
	font-style: italic;
}
/* Cocoon：テーブル内の改行制御を正常化 */
.entry-content table {
  table-layout: fixed;
  width: 100%;
}
.entry-content table td,
.entry-content table th {
  word-break: normal;        /* keep-all をやめる */
  overflow-wrap: break-word; /* どうしても無理な時だけ折る */
}


/*--------------------------------
	インライン
--------------------------------*/
.huto,
.bold { /*AFFINGER引継ぎ*/
	font-weight: bold;
}
.st-aka { /*AFFINGER引継ぎ*/
	color: var(--color_key);
}
.highlight {
	background: linear-gradient(transparent 70%, rgba(239, 64, 86, 0.3) 70%);
	font-weight: bold;
}
.bold.red,
.hutoaka { /*AFFINGER引継ぎ*/
	color: var(--color_key);
	font-weight: bold;
}
.blue,
.komozi, /*AFFINGER引継ぎ*/
.small {
	color: inherit;
	font-size: 12px;
}
.blue.bold,
.large {
	font-size: 1.3rem;
	font-weight: bold;
	line-height: 1.4;
}
/*青 = 小文字*/
.blue,
.small {
	display: inline-block;
	color: var(--color_font);
	font-size: 0.75em;
	line-height: 1.2em;
}


/*--------------------------------
	フロントページ
--------------------------------*/
body.page h2 {
	margin: unset;
	margin: 1rem -16px 2.5rem;
}
.column-wrap [class*="fp-box"] {
	border: solid 1px;
	border-color: #e3e3e3;
	border-radius: 8px;
	padding: 6px;
	box-shadow: var(--color_shadow);
}
.column-wrap .speech-wrap {
	margin: unset;
}
.column-wrap .speech-icon {
	width: 80px;
}
.column-wrap [class*="blogcard-wrap"] {
	width: unset;
	max-width: unset;
}

/*--------------------------------
	サイト名
--------------------------------*/
.site-name-text-link {
	padding: unset;
}
.logo-header {
	margin: 16px;
}
@media screen and (max-width: 1023px) {
	.footer-bottom-logo {
		line-height: unset;
	}
}
#header .logo {
	text-align: unset;
}
.site-name-text span {
	display: inline-block;
	border: 1px solid var(--color_font);
	color: var(--color_font);
	font: normal 1em var(--font_serif);
	line-height: 1.1;
	padding: 0 0.1em 0.1em 0.1em;
	margin-left: -1px;
}
.site-name-text span:nth-child(1) {
	font-size: 1.5em;
	margin-right: 0.05em;
	transform: rotate(-13deg);
}
.site-name-text span:nth-child(1),
.site-name-text span:nth-child(3),
.site-name-text span:nth-child(4) {
	color: var(--color_key);
}


/*--------------------------------
	タイトル周り
--------------------------------*/
/*パンくずリスト*/
.breadcrumb {
	border-top: 1px solid var(--color_line);
	border-bottom: 1px solid var(--color_line);
}
.breadcrumb-home .fa-fw,
.breadcrumb-item .fa-fw {
	display: none;
}
/*h1見出しデザイン*/
h1.entry-title {
	color: var(--color_font);
	font:normal 1.6rem var(--font_serif);
	line-height: initial;
	padding: unset;
}
/*タイトル：カテゴリーページ・タグページ*/
.archive-title {
	font-family: var(--font_serif);
}
.archive-title .fas {
	display: none;
}
.post-date .far::before {
	display: none;
}
.post-date ::before {
	content: "投稿日：";
}
.post-update .fas::before {
	display: none;
}
.post-update ::before {
	content: "更新日：";
}


/*--------------------------------
	タググループ
--------------------------------*/
/*タググループ*/
.tagcloud-taggroup,
.widget-below-single-content-title {
	margin-bottom: 1rem !important;
}
.tagcloud-alltags {
	text-align: center;
}
[class^='tagcloud'] a {
	display: inline-block;
	border: solid 1px;
	border-radius: 2em;
	font: normal 13px sans-serif;
	margin: 0.1em 0.3em;
	padding: 0.05em 0.5em 0.35em;
	text-decoration: unset;
}
[class^='tagcloud'] a::before {
	content: "#";
	font-size: 1.2em;
}


/*--------------------------------
	目次
--------------------------------*/
/*Cocoon目次デザイン変更*/
#toc_container {
	background: linear-gradient(135deg, transparent 25%, rgba(73, 94, 105, 0.05 ) 25%, rgba(73, 94, 105, 0.05 ) 50%, transparent 50%, transparent 75%, rgba(73, 94, 105, 0.05 ) 75%, rgba(73, 94, 105, 0.05 )) !important;
	background-size: 4px 4px !important;
	background-clip: padding-box !important;
	border: unset !important;
	border-top: 4px double #E2E2E2 !important;
	border-bottom: 4px double #E2E2E2 !important;
	margin-bottom: 2rem;
	width: 100% !important;
}
#toc_container p.toc_title {
	color: initial;
	font: normal 24px serif !important;
	margin-left: 0.5rem !important;
	text-align: unset !important;
}
#toc_container a {
	font-size: 15px;
	text-decoration: none !important;
}
#toc_container > ul {
	list-style: none;
	padding-left: unset !important;
}
#toc_container > ul > li {
	position: relative;
	list-style: none;
	padding-left: 1.25em !important;
}
#toc_container > ul > li::before {
	position: absolute;
	content: '\226b';
	display: inline-block;
	font-size: 0.5em;
	margin-right: 0.25em;
	transform: rotate(90deg);
	left: 0;
	top: 0.8em;
}
#toc_container ul ul {
	padding-left: 1em;
	margin-left: unset !important;
}
#toc_container ul ul > li {
	list-style: circle !important;
}
#toc_container .toc_depth_2 {
	display: none;
}


/*--------------------------------
	見出し
--------------------------------*/
/*h2見出しデザイン*/
.article h2 {
	position: relative;
	border-bottom: 6px solid var(--color_key);
	border-radius: unset;
	background-color: unset;
	color: var(--color_font);
	font: normal 24px var(--font_serif);
	padding: 0.7em;
	margin: 12rem -16px 2.5rem;
}
.article h2:before {
	position: absolute;
	content: '';
	border-width: 21px 21px 0 0;
	border-style: solid;
	border-color: var(--color_key) transparent transparent transparent;
	left: 16px;
	bottom: -22px;
	width: 0;
	height: 0;
}
.article h2:after {
	position: absolute;
	content: '';
	border-width: 14px 14px 0 0;
	border-style: solid;
	border-color: #FFF transparent transparent transparent;
	left: 22px;
	bottom: -10px;
	width: 0;
	height: 0;
}
/*h3見出しデザイン*/
.article h3 {
	border: unset;
	border-top: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 6px solid var(--color_key);
	color: var(--color_font);
	font: normal 22px var(--font_serif);
	padding: 0.5em;
	margin: 1.5rem 0;
}
[class$="-box"] h3 {
	border: unset;
}



/*--------------------------------
	ボックス
--------------------------------*/
/*引用blockquote*/
blockquote {
	background: #F6F6F6;
	border: unset;
	border-radius: 4px;
	font-family: "fontmono";
	padding: 15px;
}
blockquote::before {
	color: var(--color_font);
	font-size: 4rem;
	top: -18px;
	left: -8px;
}
blockquote::after {
	content: none;
}
blockquote p {
	font-size: 0.95em;
	line-height: 1.8;
	margin-bottom: .5rem !important;
}
blockquote p + hr {
	border-width: 1px 0px 0px 0px;
	border-style: solid;
	color: #DDD;
	margin: 1rem;
}
h2:not(:last-of-type) + ul,
.primary-box {
	background: #fef5f6;
	border: 1px dashed var(--color_key);
	color: initial;
	padding: 0.5rem;
	padding-left: 2rem;
}
.primary-box {
	border-radius: unset;
	padding-left: unset;
	padding: 0.5rem;
}
/*導線（アフィリエイト誘導)*/
.leadline {
	background: #fef3f4;
	/*border: solid 1px #f8b2bb;*/
	border-radius: 6px;
	font-size: 0.95em;
	line-height: 1.8;
	padding: 0.5rem;
}
/*用語注釈*/
.annotation {
	position: relative;
	background: transparent;
	border: 1px solid #666;
	padding: 1rem;
}
.annotation p:first-child {
	position: absolute;
		top: -1.6rem;
	display: inline-block;
	background: #FFF;
	font-weight: bold;
	line-height: 1;
	padding: 0 1em;
	white-space: nowrap;
	margin-top: 1rem;
}
.annotation p:last-child {
	margin-bottom: unset;
}
.annotation ul {
	margin-bottom: unset;
}
/*FAQ（リッチリザルト）*/
.faq {
	list-style: none;
	padding-left: unset !important;
}
.faq li div:nth-of-type(1)::before {
	content: "Q";
	color: var(--color_key);
	font-size: 1.5rem;
	margin-right: 1rem;
}
.faq li div:nth-of-type(2) p::before {
	content: "A";
	font-size: 1.5rem;
	margin-left: 0.1em;
	margin-right: 1rem;
}


/*--------------------------------
	スピーチバルーン
--------------------------------*/
.speech-person {
	width: 25% !important;
	min-width: unset !important;
	max-width: 100px !important;
}
.speech-balloon {
	color: #666;
}
.speech-balloon p {
	font-size: 0.9em;
	line-height: 1.7;
	max-width: 400px;
}



/*--------------------------------
	ブログカード
--------------------------------*/
[class*="blogcard-wrap"] {
	margin: unset;
	padding: unset;
	max-width: 400px;
}
.cat-label {
	display: none;
}
.blogcard {
	box-shadow: var(--color_shadow);
	padding: 6px;
}
[class*="card-thumb"] {
	margin: 0 8px 0 0;
	width: 100px;
	height: 100px;
}
[class*="card-content"] {
	text-align: left;
	margin: 0;
	padding: 0;
}
[class*="card-title"] {
	color: var(--color_font);
	font: normal 15px var(--font_serif) !important;
	font-weight: normal;
	line-height: 1.5;
	margin: 0 0 0.5em 0;
}
[class*="card-snippet"] {
	color: var(--color_font) !important;
	line-height: 1.5;
}
[class*="card-footer"] {
	padding: unset;
}
/*エントリーカード*/
.entry-card-content {
	margin-left: unset;
}
/*内部ブログカード*/
.internal-blogcard {
	text-align: center;
}
/*外部ブログカード*/
.internal-blogcard,
.external-blogcard {
	position: relative;
	min-height: 116px;
}
.external-blogcard::before {
	position: absolute;
		top: -2rem;
		left: 50%;
	content: "▼";
	transform: scale(2, 1) translateX(-20%);/*位置調整*/
	-webkit-transform: scale(2, 1) translateX(-20%);
}
.internal-blogcard::after,
.external-blogcard::after {
	position: absolute;
		right: 5px;
		bottom: 2px;
	content: "この記事を読む≫";
	background: #FFF;
	color: var(--color_link);
	font-size: 0.7rem;
	padding: 0 0.5em;
}
.external-blogcard-title {
	margin-bottom: 8px;
}
.external-blogcard-site {
	display: none;
}


/*--------------------------------
	リスト
--------------------------------*/
.primary-box ul {
	list-style: none;
	padding-left: unset;
}
.article h2:not(:last-of-type) + ul {
	list-style: none;
	padding: 0.5rem;
}
.primary-box ul > li,
.article h2:not(:last-of-type) + ul > li {
	position: relative;
	padding-left: 1.5rem;
}
.primary-box ul > li::before,
.article h2:not(:last-of-type) + ul > li::before {
	color: var(--color_key);
	content: '\f00c';
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	top: 0;
	left: 0;
}


/*--------------------------------
	番号付きリスト黒丸
--------------------------------*/
:root {
	--listspace: 0.5em; /*番号と文字の隙間*/
}
ol {
	list-style: none;
}
ol li {
	text-indent: calc(-1.3em - var(--listspace));
}
ol li::before {
	color: var(--color_sub);
	font: 1.2em serif;
	padding-right: var(--listspace);
}
ol :not(li){
	text-indent: initial;
}
ol > li:nth-of-type(1)::before {content: '\2776';}
ol > li:nth-of-type(2)::before {content: '\2777';}
ol > li:nth-of-type(3)::before {content: '\2778';}
ol > li:nth-of-type(4)::before {content: '\2779';}
ol > li:nth-of-type(5)::before {content: '\277a';}
ol > li:nth-of-type(6)::before {content: '\277b';}
ol > li:nth-of-type(7)::before {content: '\277c';}
ol > li:nth-of-type(8)::before {content: '\277d';}
ol > li:nth-of-type(9)::before {content: '\277e';}
ol > li:nth-of-type(10)::before {content: '\277f';}



/*--------------------------------
	ステップ
--------------------------------*/
/*スタイル > ボックス（案内） > サクセス*/
.step {
	max-width: 540px;
	margin: 0 auto;
}
.step h3 {
	position: relative;
	border: unset;
	margin-bottom: unset;
}
@media screen and (min-width: 440px) {
	.step h3 {
		padding-left: 30%;
	}
}
.step h3::before {
	color: var(--color_key);
	padding-right: 0.5em;
}
.step h3:nth-of-type(1)::before {content: "Step1";}
.step h3:nth-of-type(2)::before {content: "Step2";}
.step h3:nth-of-type(3)::before {content: "Step3";}
.step h3:nth-of-type(4)::before {content: "Step4";}
.step h3:nth-of-type(5)::before {content: "Step5";}
.step p+h3::after {
	content: "▼";
	position: absolute;
		top: -28px;
		left: 50%;
	transform: scale(2, 1) translateX(-20%);/*位置調整*/
	-webkit-transform: scale(2, 1) translateX(-20%);
	color: var(--color_sub);

}



/*--------------------------------
	タイムライン
--------------------------------*/
.timeline ul {
	border-left: 1px solid var(--color_key);
	padding-left: 16px;
}
.timeline ul li {
	margin: 1rem 0;
}
.timeline ul li::marker {
	color: var(--color_key);
	font-size: 1.1em;
}



/*--------------------------------
	tx内部リンク
--------------------------------*/
.tx-wrap .tx a {
    display: block;
	width: fit-content;
	margin: 0 auto;
	position: relative; /* ← ::before を配置するために必要 */
    background: #ffffff;
    border-radius: 2em; /* 四角にしたいなら 0 */
    box-shadow: var(--color_shadow);
    border: 1px solid #ccc;
    color: var(--color_link);
    font-size: 0.85rem;
	line-height: 1.5;
	padding: 8px 12px 8px 60px; /* ← 左に余白を追加（before の分） */
	text-decoration: none; 
}
/* 左側に「参考｜」を追加 */
.tx-wrap .tx a::before {
    content: "参考";
    position: absolute;
    color: #666;
    font-weight: normal;
    transform: translateY(-50%);
    left: 12px;
    top: 50%;
}
/* 長い縦線（仕切り） */ 
.tx-wrap .tx a::after {
	content: ""; 
	position: absolute; 
	left: 48px; /* 参考の右側に配置 */ 
	top: 8px; /* ← 線の上端（調整可） */ 
	width: 1px; 
	height: calc(100% - 16px); /* ← 線の長さ（上下の余白を調整） */ 
	background: #ccc; 
}


/*--------------------------------
	FAQ
--------------------------------*/
/* section.faq 内の Q 行（奇数 p）を太字に */
section.faq p:nth-of-type(odd) {
	font-size: 1.2rem;
	font-weight: bold;
	line-height: 1.7;
	margin: 0.8rem 0 0.8rem;
}
/* Q 行の先頭文字だけを赤＋大文字に */
section.faq p:nth-of-type(odd)::first-letter {
    color: var(--color_key);
    font-size: 2rem;
	font-family: serif;
}
/* A 行の先頭文字だけを赤＋大文字に */
section.faq p:nth-of-type(even)::first-letter {
    font-size: 1.5rem;
	font-weight: bold;
	font-family: serif;
	line-height: 1; /*font-sizeによる行間の開きを戻す*/
}




/*--------------------------------
	tagpostsついでに読んでおきたい
--------------------------------*/
.tagposts span {
	display: block;
	margin-bottom: 0.5em;
}
.tagposts span a {
	display: inline-block;
	line-height: 1.5;
}


/*--------------------------------
	フッター周り
--------------------------------*/
/*ロゴ・ライセンス1024px以上での左右分割を無効化してセンタリング*/
.footer-bottom-logo {
	float: none;
    position: static;
}
.footer-bottom-logo .logo-image {
    margin: 0 auto;
}
.footer-bottom-content {
	float: none;
    text-align: center;
}
/*クレジットとの隙間調整*/
.logo-footer {
	margin-bottom: 16px;
}



/*--------------------------------
	計算機
--------------------------------*/
/*計算機*/
.calc-wrap {
	background-color: #eee;
	border-radius: 8px;
	padding: 4px;
}
.calc {
	padding: unset;
	margin: 0 auto;
	max-width: 300px;
}
.calc p {
	margin: unset;
	padding: unset;
}
.calc .calc-title {
	font-weight: bold;
	text-align: center;
}
.calc .calc-display {
	background-color: #FFF;
	border-radius: 8px;
	box-shadow: inset 0px 2px 5px 0px rgba(0,0,0,0.2);
	margin: 4px auto;
	padding: 0.3em 1em 0 0;
	text-align: right;
	width: auto;
}
.calc .res {
	color: black;
	font: 3rem "fontsans";
}
.calc .calc-input {
	font-size: 0.9em;
	margin: 4px auto;
	width: auto;
	position: relative;
}
.calc input,
.calc select {
	margin: 2px 0 2px 4px !important;
}
.calc .input-button {
	position: absolute;
	right: 0;
	bottom: 0;
}
.calc input[type="button"] {
	background-color: var(--color_key);
	border: solid 2px !important;
	border-radius: 6px !important;
	color: white;
	height: 2.3em;
	text-align: center;
	margin: 0 2px !important;
	padding: unset !important;
	width: 3em !important;
	-webkit-appearance: none;
}
.calc input[type="button"] {
	border-color: #fac5cc #f58c99 #d7394d #f58c99 !important;
}
.calc input[type="button"]:active {
	border-color: #f58c99 #f58c99 #f58c99 #f58c99 !important;
}


/*--------------------------------
	ボタンリンク（アフィリエイト）
--------------------------------*/
.buttonlink {
    text-align: center;
    margin: 20px 0;
}

/* ボタンの上に一言添える */
.buttonlink::before {
    content: "＼ 登録は完全無料・5分で完了 ／";
    display: block;
    font-size: 0.8em;
    font-weight: bold;
    color: #e67e22; /* オレンジ */
    margin-bottom: 5px;
}

.buttonlink a {
    display: inline-block;
    background: linear-gradient(to bottom, #f39c12, #e67e22); /* 立体感 */
    color: #fff !important;
    padding: 15px 30px;
    border-radius: 50px; /* 丸み */
    text-decoration: none !important;
    font-weight: bold;
    box-shadow: 0 4px 0 #d35400; /* 押しボタン風の影 */
    transition: 0.3s;
}

.buttonlink a:active {
    transform: translateY(3px); /* 押した時に沈む */
    box-shadow: none;
}
@media screen and (max-width: 480px) {
    .buttonlink a {
        /* 1. 行間を詰める（1.2〜1.3くらいが、重ならず詰まって見える限界値） */
        line-height: 1.3; 
        /* 2. 上下のpaddingを15pxから10px程度に減らす（左右は30pxのまま） */
        padding-top: 10px;
        padding-bottom: 10px;
        /* 3. 2行になった時の文字のズレを防ぐためインラインブロックを維持 */
        display: inline-block;
    }
}





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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
