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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
h1, h2, h3, h4, h5, h6 {
	font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
}
.article h3, .article h4, .article h5, .article h6 {
	text-decoration: none;
	border: none;
	padding-left: 0;
	margin-bottom: 0.2em;
}
h1.logo-text {
	/*background-color: #000000;*/
	color: #1c1c1c;
	line-height: 5em;
	padding: 0;
}

.article h2 {
	border-left: 5px solid #1c1c1c;
	border-bottom: 1px dashed #1c1c1c;
	padding: 1em;
}

p {
	font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	line-height: 2em;
	color: #1c1c1c;
}
.bgk p {
	color: #ecebe6;
}
.site-name-text {
	font-family: "Advent Pro", sans-serif;
	font-size:  6em;
	/*font-optical-sizing: auto;*/
	font-weight: 300;
	font-style: normal;
	font-variation-settings: "wdth" 100;
	letter-spacing: -0.05em;
}
/* ここからメニュー */
ul li.menu-item {
	font-family: "Advent Pro", sans-serif;
	font-weight: 300;
	font-style: normal;
	font-variation-settings: "wdth" 100;	
}
/* ここまでメニュー */
.entry-card-title, .related-entry-card-title {
  line-height: 1.2;
}
figure .wp-block-embed__wrapper iframe{
	margin: 0px auto;
	display: block;
}
.homemv iframe {
	width: 100%;	
}
.no-sidebar .content .main {
	width:1000px;
	margin:0 auto;
}
.article {
	width:800px;
	margin:0 auto;
}
.site-name-text {
	font-weight: bold;
}
section#siteinfo_ala {
	margin:0px auto 30px;
}
section#siteinfo_ala p,
.width_p {
	width: 80%;
	max-width: 600px;
	margin-right: auto !important;
	margin-left: auto !important;
}
section#siteinfo_ala h1,
section#siteinfo_ala h2,
.home .center_ala {
	padding-bottom: 15px;
}
section#siteinfo_ala figure {
	margin: 0;
	background-color: #0c0c0c;
}
section#siteinfo_ala figure img {
	width: 100%;
}
.navi-in > ul li {
  width: 140px;
}
figure.wp-block-image {
	margin-top: 15px;
}
.center_ala {
	text-align: center;
}
.bgk {
	/*background-color: #0c0c0c;*/
	background-color: #1c1c1c;
	color: #ecebe6;
}
.pdm3 {
	padding: 3em 0 3.5em;
}
.pdt3 {
	padding-top: 3em;
}
.edit_ala {
	text-align: center;
	background-color: black;
	color: white;
	border-radius: 5px;
	margin: 1em auto;
}
.edit_ala a:link,
.edit_ala a:visited {
	color: white;
	text-decoration: none;
}
.copyright a:link,
.copyright a:visited {
	color: black;
}
.tx-center{
	text-align: center;
}
.content {
  margin-top: 0px;
}
.main {
  padding-top: 0.5em;
}
.t1m {
	margin-top: 1em !important;
}
.t2m {
	margin-top: 2em !important;
}
.b1m {
	margin-bottom: 1em !important;
}
.b2m {
	margin-bottom: 2em !important;
}
.logo-text {
  padding: 0;
  line-height: 1em;
}
.small {
	font-size: 0.9em;
}
.smaller {
	font-size: 0.8em;
}
.smallest {
	font-size: 0.7em;
}
.smallex {
	font-size: 0.6em;
}
/****************************************
一覧用
****************************************/
.page-template-ichiran-ftp .next,
.page-template-ichiran-ftp .prev {
	width: 4em;
}
.page-template-ichiran-ftp .entry-header h1{
	margin-bottom: 0;
}
.page-template-ichiran-ftp .entry-content {
	margin-top: 0;
}
.entry-content p.ichiran-p,
.entry-content .entry-categories-tags,
.entry-content .date-tags {
	margin-bottom: 0;
}
.entry-content p.ichiran-p img {
	float: left;
	margin-right: 1em;
	margin-top: 0.5em;
}
.entry-content p.ichiran-p {
	font-size: 0.8em;
}
.entry-content .entry-categories-tags,
.entry-content .date-tags {
	line-height: 1em;
}
.entry-content .date-tags {
	text-align: left;
}
.page-template-ichiran-ftp .post-update {
	display: none;
}
/****************************************
アサイド
****************************************/
.widget_rss h2 {
	font-size:1em;
	display: flex;
	flex-direction: row;
	align-items: center;
}
.widget_rss h2 img {
	display: block;
	margin-top: 0.1em;
	margin-right: 0.25em;
}
#content-bottom-in {
	max-width: 1000px;
	display: grid; /* グリッドレイアウト */
	grid-template-rows: 500px;
    grid-template-columns: 33% 33% 1fr;
}
div#content-bottom aside {
	margin: 1em;
	font-size: 0.8em;
	line-height:1.2em;
	overflow: scroll;
}
div#content-bottom aside li .rsswidget {
	font-size: 0.8em;
	line-height:1.2em;
	font-weight: bold;
	padding-bottom: 0;
}
div#content-bottom aside li .rss-date {
	font-size: 0.6em;
	line-height:1em;
}
div#content-bottom aside li .rssSummary {
	font-size: 0.8em;
	line-height:1.2em;
	margin-bottom: 1em;
}
/*ホームのリスト下*/
.home #list {
	margin-bottom: 1em;
}
.tonewsupdates {
	text-align: center;
	background-color: #f4f4f4;
}


/****************************************
組み立て説明ナンバリング
****************************************/
.assembly-steps {/*手順全域をラップ*/
  counter-reset: step;
}

.assembly-step {/*手順１つをラップ*/
  counter-increment: step;
  margin-bottom: 4rem !important;
  border-left: 1px solid #000;
  position: relative;
}

.assembly-step .step-number::before {/*ステップナンバーの後ろにピリオド*/
  content: counter(step) ".";
  display: inline-block;
  font-family: "Advent Pro", sans-serif;
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
}
p.step-number {/*ステップナンバー*/
	margin-bottom: 0 !important;
}
.step-header-block {/*Numとタイトルのカラムブロック*/
  display: flex;
  align-items: baseline !important;  /* WPの生成CSSに勝つために !important */
  gap: 0.75em;
  border-left: 5px solid #000;
  margin-left: -5px;
  margin-bottom: 0.5em !important;
}
.step-header-block > div:first-child {/*ステップナンバーpが入るdiv*/
	flex: 0 0 auto;
  padding-left: 0.75em;
  margin-bottom: 0 !important;
  flex-basis: fit-content !important;
}
p.step-number {
  margin: 0 !important;
  padding: 0;
}
.step-title {
  flex: 1;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.step-title h3 {
  margin: 0 !important;
  padding: 0;
  line-height: 1;
}
.step-text {
	padding-left:1em;
}
/* 最後以外のブロックの下に横線を入れる */
.assembly-step:has(+ .assembly-step)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2em;         /* 間隔に線 */
  height: 1px;
  background: #d9d9d9;
}

#translateManualBtn{
	display: block;
	margin: 0px auto;
	color: white;
	background-color: #000000;
	padding-left: 1em;
	padding-right: 1em; 
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
    main.main {
		padding-top: 0.5em;
    }
  .no-sidebar .content .main {
		width:100%;
	}
	.article {
		width:100%;
	}
	h1.logo-text {
		/*background-color: #000000;
		color: #ffffff;*/
		line-height: 1em;
		padding-bottom: 0.4em;
		width : 100%;
	}
	#header .site-name-text {
		font-size:  2.5em;
	}
}

/*834px以下*/
@media screen and (max-width: 834px){
	/*必要ならばここにコードを書く*/
	#content-bottom-in {
		max-width: 90%;
		display: block; /* グリッドレイアウト */
	}
}

/*600px以下 主に説明書用*/
@media (max-width: 600px) {
	.assembly-step > div > p {
		margin-top:1em;
	}
	.step-title h3 {
	  padding-left: 0.75em;
	  padding-bottom: 0.5em;
	}
	.step-header-block {
		margin-bottom: 0.75em  !important;
		gap: 0;
	}
	.assembly-step .wp-block-media-text.is-stacked-on-mobile {
		display: flex;
		flex-direction: column;
	}
	.assembly-step .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		order: 1 !important;
	}
	.assembly-step .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
		order: 2 !important;
		margin-top: 1.25rem;
	}
}

/*480px以下*/
@media screen and (max-width: 480px){
	/*必要ならばここにコードを書く*/
	.page-template-ichiran-ftp .entry-header h1{
		padding: 0;
	}
}


/* ==========================================================================
   印刷用スタイル（PDF書き出し用）
   Cocoon子テーマ（cocoon-child-master）の style.css の末尾に貼り付けてください。
   貼ったあと、ブラウザで該当ページを開き「印刷 → PDFとして保存」すると、
   組み立てステップが途中で切れない綺麗なPDFになります。
   ※ @media print 内なので、通常の画面表示には一切影響しません。
   ========================================================================== */
@media print {

  /* 用紙はA4、余白は控えめ（印刷ダイアログ側は「デフォルト」推奨） */
  @page {
    size: A5;
    margin: 12mm 10mm 14mm 10mm;
  }

  /* 印刷に不要なサイト共通パーツ（ナビ・フッター・SNS・モバイルボタン等）を隠す */
  #header-container,
  #navi,
  #breadcrumb,
  .breadcrumb,
  .sns-share,
  .under-entry-content,
  #related-entries,
  #footer,
  .footer-container,
  .mobile-footer-menu-buttons,
  .mobile-menu-buttons,
  #go-to-top,
  .go-to-top {
    display: none !important;
  }
  /* 目次（#toc）・日付・カテゴリ等はそのまま残します。
     目次も省きたい場合は、上のリストの最後に  #toc,  を追加してください。 */

  /* 本文を紙幅いっぱいに広げる（Cocoonの固定幅 .main 860px と
     サイドバー用の余白を解除。右側の余白＝間延びの解消） */
  #container,
  #content,
  #content-in,
  .wrap,
  #main,
  .main {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  /* ★ ここが肝心 ★
     各組み立てステップ（番号のまとまり）と画像を、ページの境目で途中分割しない */
  .assembly-step,
  .assembly-step figure,
  .wp-block-image,
  img {
    break-inside: avoid;
    page-break-inside: avoid;   /* 旧仕様フォールバック（Safari等） */
  }

  /* 見出しだけがページ末尾に取り残されるのを防ぐ */
  h1, h2, h3, h4 {
    break-after: avoid;
    page-break-after: avoid;
  }
  .category-instructions-post p,
  .category-instructions-post li {
	  font-size: 1.4em;
  }
  .assembly-step h3 {
	  padding-left: 1em !important;
  }

  /* 画像が大きすぎてはみ出さないように */
  img {
    max-width: 80% !important;
    margin-right: auto !important;
    margin-left: auto !important;
    height: auto !important;
  }

  /* （任意）ページ数を詰めたい場合は、次の行のコメントを外すと
     画像の高さが抑えられ、1ページに約2ステップ入るようになります。
  .assembly-step figure img { max-height: 100mm !important; width: auto !important; }
  */

  /* 青い見出しバーなどの背景色をPDFに反映 */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}