/*
 Theme Name:   airi Child
 Description:  airi Child Theme
 Template:     airi
*/

/* Webフォントは functions.php の airi_child_enqueue_fonts() で読み込む。
   @import はレンダリングを直列にブロックするためCSS側には置かない。 */

body,
.entry-title,
.woocommerce-loop-product__title { font-family: 'Noto Sans JP', 'Helvetica Neue', sans-serif; }

.home h1, 
.home h2, 
.home h3, 
.home h4, 
.home h5, 
.home h6,
.main-navigation,
.anton {font-family: 'Anton' !important;}


a,button { outline: none;}

.site-info { display: none;}
.site-branding img { width: 150px; max-width: 150px !important;}

@media (max-width: 640px) {
	.site-branding img { width: 120px;}
}

.row-eq-height { display: flex; flex-wrap: wrap; }

.center { text-align: center;}
/*common*/
input.input-text::placeholder { color: #aaa; }


.site-content { padding: 40px 0; }
@media (max-width: 767px) {
	.site-content { padding: 20px 0;}
}
/*
@media (min-width: 1200px) {
	.site-content .container { max-width: 1140px !important; }
}
@media (min-width: 992px) {
	.site-content .container { max-width: 960px !important; }
}
@media (min-width: 768px) {
	.site-content .container { max-width: 720px !important; }
}
@media (min-width: 576px) {
	.site-content .container { max-width: 540px !important; }
}
*/

/*header*/
.main-navigation a {font-size: 22px; }

@media (max-width: 1199px) {
	.main-navigation a { font-size: 25px; }
}

.site-header { border-bottom: 1px solid #eee; }
@media (max-width: 767px) {
	.site-header { border-bottom: 1px solid #eee; /* -webkit-box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1); box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);*/ }
}

@media (max-width: 1199px) {
	.menuStyle2 .main-navigation a:hover:after,
	.menuStyle2 .main-navigation .current-menu-item:after { display: none;}
}

.mobile-menu-toggle:focus { outline: none; }

.is-sticky .site-header { padding: 10px; background:rgba(255,255,255,0.7) !important;} 
.is-sticky .site-header .site-branding img { width: 100px; }

/*Side*/
.widget-area { padding: 0; border: none;}

ul.instagram-pics { text-align: center;margin: 20px auto; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap;}
ul.instagram-pics li { width: 33.33333333%; padding: 2px;}

.null-instagram-feed p a { display: block; color: #fff; text-align: center; font-weight: bold; padding: 7px; border-radius: 20px; font-size: 15px; margin: 0px; background: #00aeef; }

@media (max-width: 767px) {
	.widget-area { padding: 15px; }
}

/*footer*/
.sidebar-column .widget p { font-size: 13px;}

/*Home*/
@media (max-width: 767px) {
	.elementor-heading-title { font-size: 36px !important;}
}


/*Post*/
.single-post .posted-on a,
.blog-loop .posted-on a,
.comments-area .comment-time { letter-spacing: 0;}


/*Shop*/
.related h2 { font-weight: bold; font-size: 18px; display: flex; align-items: center; margin: 80px 0 40px !important; font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ Pro W3", Helvetica, Arial,  "メイリオ", Meiryo, Verdana, "游ゴシック", YuGothic, "Yu Gothic", sans-serif !important; }
.related h2:before,
.related h2:after { content: ""; flex-grow: 1; height: 1px; display: block; }
.related h2:before { margin-right: .4em; background: linear-gradient(-90deg, #ccc, transparent);}
.related h2:after { margin-left: .4em; background: linear-gradient(90deg, #ccc, transparent); }
.related h2.woocommerce-loop-product__title { margin: 10px 0 !important;}


/*PAGE txt contents*/
h1.entry-title {font-weight: bold; font-size: 1.5rem;}
.contents_txt {}
.contents_txt h1, 
.contents_txt h2, 
.contents_txt h3, 
.contents_txt h4, 
.contents_txt h5, 
.contents_txt h6 { margin: 40px auto 30px; font-weight: bold;}

.contents_txt h2 { font-size: 20px; border-bottom: 1px solid #ccc; padding-bottom: 10px;}
.contents_txt h3 { font-size: 17px; margin-bottom: 15px;}
.contents_txt h4 { font-size: 15px; margin-bottom: 10px;}
.contents_txt p {  font-size: 15px; margin: 15px auto; line-height: 28px;}

.guide_mail { border: 1px dotted #ccc; padding: 10px;}

/*Woocommerce */
.woocommerce .woocommerce-breadcrumb { font-weight: normal; font-size: 12px; margin-bottom: 30px;}



/*Woocommerce カテゴリー*/
@media (max-width: 767px) {
	.woocommerce-product-loop:not(.single) .site-content > .container { padding: 0 45px;}
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { display: none;}

.woocommerce ul.products li.product a img { margin-bottom: 10px;}

.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 0.75em !important;}


.sold-out-overlay { background: #000; color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; position: absolute; left: 10px; top: 10px; }


/*Woocommerce 詳細*/
.woocommerce div.product .product_title { font-size: 22px;}
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th { text-align: left; padding: 0; vertical-align:middle;}

.product-template-default .site-content > .container { padding: 0 40px; }

.woocommerce div.product .product_title { font-size: 25px; }

.woocommerce div.product form.cart .variations select {height: 60px;}

.product_meta {font-size: 12px; color: #555; margin-top: 10px;}
.sku_wrapper { margin-right: 20px; }
.sku_wrapper span.sku { font-size: 95%; color: #000; }

.related.products h2 { font-size: 20px; color: #555;}



.tshirts_info dt small { font-weight: normal;}
.tshirts_info dd { margin: 10px auto;}

.tshirts_info dt.important_info,
.tshirts_info dd.important_info { color: #d80000;}

.tshirts_info dd .size_table table th,
.tshirts_info dd .size_table table td {
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
    border: none;
    border-bottom: solid #000 1px;
    padding: 10px 4px;
}

@media only screen and (min-width: 768px) {
	.tshirts_info { display: flex; justify-content: space-between}
	.tshirts_info dl { width: 48%;}

}


/*Woocommerce サイドバー*/

.woocommerce ul.cart_list li img,
.woocommerce ul.product_list_widget li img { float: left; margin-right: 15px; width: 80px;}


/*Woocommerce カート*/

.product-remove a.remove { border: none;}
.woocommerce-cart .cart-collaterals .cart_totals .button { color: #fff; font-weight: bold;}
.woocommerce-shipping-destination { font-weight: normal; font-size: 90%;}
@media only screen and (min-width: 768px) {
	.woocommerce-shipping-destination {  text-align: left;}

}
.shipping-calculator-button { display: inline-block; border: 1px solid #ccc; padding: 5px 15px; font-size: 80%; background: #fff;}

.woocommerce table.woocommerce-checkout-review-order-table td { padding-top: 20px; padding-bottom: 20px;}

/*Woocommerce 支払い*/
#customer_details h3 { padding-bottom: 5px; margin-bottom: 15px; font-size: 18px; font-weight: bold; border-bottom: 1px solid #ddd;}

.woocommerce-checkout #order_review_heading { margin-bottom: 30px;}

.woocommerce-checkout-review-order-table thead th { width: 50%; padding-top: 10px; padding-bottom: 10px; background: #ebe9eb; }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { padding-top: 20px; padding-bottom: 20px;}


.woocommerce-checkout #payment div.payment_box { padding-bottom: 0; margin-bottom: 0;}

.wc_payment_method label { font-weight: bold;}
ul.payment_methods { padding: 30px !important;}

.wc-stripe-elements-field, .wc-stripe-iban-element-field { width: 250px;}

.woocommerce form .form-row { margin: 10px auto 5px;}
.woocommerce form .form-row label {min-width: 200px;font-size: 12px; color: #555; }

.woocommerce form .form-row-wide,
.woocommerce form .form-row-first,
.woocommerce form .form-row-last { float: none; width: 100%; padding: 0 !important;}



.woocommerce-checkout .place-order { padding: 20px; text-align: center;}
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order { float: none; display: inline-block !important; width: 300px; margin: 0 auto; }

.woocommerce-privacy-policy-text { font-size: 14px; display: none;}


.mailerror { border: 1px dotted #ccc; padding: 0px 15px 15px; color: #555; margin-top: 30px; }
.mailerror h3 { font-size: 15px; margin-top: 20px; }
.mailerror p { font-size: 12px; margin: 5px auto;}
.mailerror a { text-decoration: underline;}

@media (max-width: 767px) {
	ul.payment_methods { padding: 20px !important;}
	.woocommerce form .form-row label { display: block;  }
	.woocommerce-page #payment #place_order { width: 100%; }

}


/*Woocommerce 購入確認*/
.woocommerce-order-details__title,
.woocommerce-column__title {margin-bottom: 15px; font-size: 18px; font-weight: bold;}
.woocommerce .woocommerce-customer-details address { padding: 20px; line-height: 30px;}

/*Woocommerce 購入完了*/
.woocommerce ul.order_details {  border: 3px solid #ccc; padding: 0.5em 1em;}
.woocommerce ul.order_details li { padding: 1em 2em 1em 0em; }


.woocommerce .woocommerce-customer-details address { margin-bottom: 30px !important;}

/*撮影機材*/
#equipment { margin-bottom: 40px;}
#equipment .row { margin-bottom: 15px !important;}
#equipment h2 { margin-top: 50px; font-weight: bold; font-size: 40px;}

#equipment h2 span {font-size: 70%; display: block; font-weight: normal; margin-bottom: 10px;}
#equipment h3 { margin: 50px auto 30px; font-weight: bold;}
.nfx-amkr-box { border: 1px solid #ddd; background: #fff; box-sizing: border-box; margin: 0; padding: 1.5em 1em; height: 100%; }
.nfx-amkr-image { text-align: center; height: 180px; display: block; vertical-align: top; }
.nfx-amkr-image img { max-width: none; max-height: 180px;}
.nfx-amkr-content { display: block; vertical-align: top; }
.nfx-amkr-title { font-weight: bold; line-height: 20px; }
.nfx-amkr-title a { box-shadow: none; color: #d2691e; text-decoration: none; }
.nfx-amkr-desc { color: #666; list-style: none; font-size: .9em; padding-left: 0; margin: 0; }
.nfx-amkr-desc li { margin-bottom: .2em; }
.nfx-amkr-price { color: #b00; font-weight: bold; font-family: initial; font-weight: bold; }
.nfx-amkr-amzlink a { background: #f6ce50; color: #000 !important; font-size: 14px; padding: 7px 15px 5px; border-radius: 5px; border-bottom: 3px solid #e3b628; margin-top: 10px; width: auto; text-align: center; display: block; font-weight: 700;}
.nfx-amkr-amzlink a:hover { color: #555; background: #F6A037; border-top: 3px solid #C09A24; border-bottom: none;}

@media only screen and (max-width: 767px) {
	#equipment h2 { font-size: 30px;}
	#equipment h3 { font-size: 22px;}
	.nfx-amkr-image { width: auto; }
	.nfx-amkr-content { margin: 0;}
}


/*サイズ表*/

/* ===================================================================
   記事ページ（単一投稿）のデザイン
   -------------------------------------------------------------------
   親テーマは body 16px / line-height 1.5 の欧文基準で、日本語の長文には
   行間・字間が足りない。また col-lg-8 + サイドバーの2カラムだと本文幅が
   中途半端に狭くなるため、記事は1カラム・センター寄せに変更する。

   すべて .single-post スコープ。ショップ・固定ページには影響しない。
   サイドバーを戻したい場合は、次の「1カラム化」ブロックを丸ごと消す。
   =================================================================== */

/* --- 1カラム化 ------------------------------------------------- */
/* サイドバーは functions.php の airi_child_single_post_full_width() で
   そもそも出力させていない。以下は、設定が戻された場合や
   他プラグインがサイドバーを差し込んだ場合の保険。
   Bootstrapのグリッドが3系（float）でも4系（flex）でも効くよう両方指定する */
.single-post #secondary { display: none; }
.single-post #primary.content-area {
	float: none;
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
	margin: 0 auto;
}
.single-post .entry-header,
.single-post .entry-content,
.single-post .entry-footer,
.single-post .post-navigation,
.single-post #comments { max-width: 1040px; margin-left: auto; margin-right: auto; }

/* --- 記事ヘッダー ----------------------------------------------- */
.single-post .entry-header { margin-bottom: 2.4em; text-align: center; }
.single-post h1.entry-title {
	font-size: 2rem;
	line-height: 1.55;
	font-weight: 700;
	letter-spacing: .01em;
	margin: .4em 0 .6em;
}
.single-post .posted-on,
.single-post .entry-meta {
	font-size: 12px;
	letter-spacing: .12em;
	color: #999;
	text-transform: uppercase;
}
.single-post .entry-meta { margin-top: .6em; }

/* アイキャッチ画像 */
.single-post .post-thumbnail { margin: 0 0 2.6em; }
.single-post .post-thumbnail img { width: 100%; height: auto; border-radius: 8px; }

/* --- 本文の基本 ------------------------------------------------- */
.single-post .entry-content {
	font-size: 18px;
	line-height: 1.95;        /* 日本語は行間を広く取らないと読み進められない */
	letter-spacing: .02em;
	color: #333;              /* 真っ黒より少し落として目の負担を減らす */
}
.single-post .entry-content p { margin: 0 0 1.9em; }

/* 導入文。記事の入口だけ少し大きくして引き込む */
.single-post .entry-content .yt-lead {
	font-size: 1.1em;
	line-height: 1.9;
	color: #222;
}

/* --- 見出し ----------------------------------------------------- */
/* 見出しの手前に大きく余白を取り、話題の切れ目をはっきりさせる */
.single-post .entry-content h2 {
	font-size: 1.65rem;
	line-height: 1.55;
	font-weight: 700;
	color: #191919;
	margin: 3.4em 0 1.1em;
	padding-bottom: .55em;
	border-bottom: 2px solid #f0437e;
}
.single-post .entry-content h3 {
	font-size: 1.25rem;
	line-height: 1.6;
	font-weight: 700;
	color: #191919;
	margin: 2.8em 0 .9em;
	padding-left: .65em;
	border-left: 4px solid #f0437e;
}
.single-post .entry-content h4 { font-size: 1.05rem; font-weight: 700; margin: 2.2em 0 .8em; }
.single-post .entry-content > h2:first-child,
.single-post .entry-content > h3:first-child { margin-top: 0; }

/* --- リスト ----------------------------------------------------- */
.single-post .entry-content ul,
.single-post .entry-content ol { margin: 0 0 1.9em; padding-left: 1.5em; }
.single-post .entry-content li { margin-bottom: .7em; line-height: 1.9; }
.single-post .entry-content li:last-child { margin-bottom: 0; }

/* --- 引用（動画内の発言を載せる用） ------------------------------ */
.single-post .entry-content blockquote {
	position: relative;
	margin: 2.4em 0;
	padding: 1.4em 1.5em 1.4em 3.2em;
	background: #f7f7f8;
	border: 0;
	border-left: 4px solid #f0437e;
	border-radius: 0 6px 6px 0;
	font-size: .95em;
	font-style: normal;       /* 日本語はイタリックにすると読みにくい */
	color: #444;
}
.single-post .entry-content blockquote:before {
	content: "\201C";
	position: absolute;
	left: .45em;
	top: .1em;
	font-family: Georgia, serif;
	font-size: 3em;
	line-height: 1;
	color: #f0437e;
	opacity: .35;
}
.single-post .entry-content blockquote p { margin: 0; }
.single-post .entry-content blockquote cite { display: block; margin-top: .8em; font-size: 12px; color: #999; font-style: normal; }

/* --- 動画埋め込み・画像 ----------------------------------------- */
.single-post .entry-content figure,
.single-post .entry-content .wp-block-embed { margin: 2.8em 0; }

/* YouTube埋め込みを16:9に固定する。
   本来はWordPressコアのブロックCSS（.wp-embed-aspect-16-9）が面倒を見るが、
   この環境では効いておらず、iframeが既定の高さのまま正方形に潰れていた。
   コア側の ::before を打ち消したうえで、padding-top方式で自前に比率を作る。
   aspect-ratio ではなくpadding-topを使うのは、古いブラウザでも確実に効くため。 */
.single-post .entry-content .wp-block-embed__wrapper:before { display: none; }
.single-post .entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	padding-top: 56.25%;      /* 9 ÷ 16 */
	height: 0;
	overflow: hidden;
	border-radius: 8px;
}
.single-post .entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe,
.single-post .entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper > * {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.single-post .entry-content .wp-block-embed iframe { border-radius: 8px; display: block; }
.single-post .entry-content img { height: auto; border-radius: 6px; }
.single-post .entry-content figcaption {
	font-size: 13px;
	color: #888;
	text-align: center;
	margin-top: .9em;
	line-height: 1.7;
}

/* 動画のスクリーンショット。キャプションを一体化したカードとして見せる */
.single-post .entry-content .yt-shot { margin: 2.8em 0; }
.single-post .entry-content .yt-shot img { width: 100%; border-radius: 8px 8px 0 0; display: block; }
.single-post .entry-content .yt-shot figcaption {
	margin: 0;
	padding: .9em 1.1em;
	background: #f7f7f8;
	border-radius: 0 0 8px 8px;
	text-align: left;
	font-size: 13px;
	color: #666;
}
/* スクショを2枚並べる場合 */
.single-post .entry-content .yt-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 2.8em 0; }
/* Gutenbergのグループブロックは、中身をラッパーdivで1枚包んでから出力する。
   そのままだとラッパー自身がグリッドの1マス目を占めてしまい、
   画像は「半分の幅で縦に2枚」並ぶ。display:contents でラッパーを透過させ、
   中のfigureを直接グリッドの要素として扱わせる。
   ラッパーが無い場合（ブロック構造が変わった場合）もそのまま動く。 */
.single-post .entry-content .yt-shots > .wp-block-group__inner-container { display: contents; }
.single-post .entry-content .yt-shots figure { margin: 0; max-width: none; }
.single-post .entry-content .yt-shots img { width: 100%; height: auto; border-radius: 6px; display: block; }

/* --- 記事末の「この動画について」カード ------------------------- */
.single-post .entry-content .yt-meta {
	margin: 3em 0 0;
	padding: 1.6em 1.8em;
	background: #fafafa;
	border: 1px solid #ececec;
	border-radius: 10px;
	font-size: .92em;
	line-height: 1.85;
}
.single-post .entry-content .yt-meta h3 {
	margin: 0 0 .9em;
	padding: 0;
	border: 0;
	font-size: 1rem;
	letter-spacing: .06em;
	color: #666;
}
.single-post .entry-content .yt-meta ul { margin: 0; padding-left: 1.3em; }
.single-post .entry-content .yt-meta li { margin-bottom: .45em; }

/* --- 区切り線・強調・リンク ------------------------------------- */
.single-post .entry-content hr { margin: 3.4em 0; border: 0; border-top: 1px solid #e8e8e8; }
.single-post .entry-content strong { font-weight: 700; color: #111; }
.single-post .entry-content a { color: #d0246a; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.single-post .entry-content a:hover { color: #f0437e; }

/* --- 記事下・コメント欄 ----------------------------------------- */
.single-post .entry-footer { margin-top: 3.2em; font-size: 13px; color: #999; }
.single-post #comments { margin-top: 4em; }
.single-post #comments .comments-title,
.single-post #comments #reply-title { font-size: 1.15rem; font-weight: 700; }

/* --- スマホ ----------------------------------------------------- */
@media only screen and (max-width: 767px) {
	.single-post h1.entry-title { font-size: 1.45rem; }
	.single-post .entry-content { font-size: 16px; line-height: 1.9; }
	.single-post .entry-content h2 { font-size: 1.3rem; margin-top: 2.8em; }
	.single-post .entry-content h3 { font-size: 1.1rem; margin-top: 2.4em; }
	.single-post .entry-content blockquote { padding: 1.1em 1.1em 1.1em 2.6em; }
	.single-post .entry-content .yt-meta { padding: 1.2em 1.3em; }
	.single-post .entry-content .yt-shots { grid-template-columns: 1fr; }
}


/* --- 文字の行長だけ絞る ------------------------------------------
   本文エリアは1040pxまで広げたが、その幅いっぱいに文字を流すと
   1行が長すぎて目が戻れなくなる。文章系のブロックだけ820pxに制限し、
   画像・動画・スクショは1040pxいっぱいに見せて緩急をつける。
   （タイポグラフィ指定より後に置かないと margin の一括指定に負けるため末尾）
   ------------------------------------------------------------------ */
.single-post .entry-content > p,
.single-post .entry-content > h2,
.single-post .entry-content > h3,
.single-post .entry-content > h4,
.single-post .entry-content > ul,
.single-post .entry-content > ol,
.single-post .entry-content > blockquote,
.single-post .entry-content > hr,
.single-post .entry-content > .yt-meta {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}
/* 見出しは行長を絞っても上下の余白は保つ */
.single-post .entry-content > h2 { margin-top: 3.4em; margin-bottom: 1.1em; }
.single-post .entry-content > h3 { margin-top: 2.8em; margin-bottom: .9em; }
.single-post .entry-content > p  { margin-bottom: 1.9em; }

@media only screen and (max-width: 767px) {
	.single-post .entry-content > h2 { margin-top: 2.8em; }
	.single-post .entry-content > h3 { margin-top: 2.4em; }
}


/* ===================================================================
   記事末のYouTube導線（.yt-cta）
   -------------------------------------------------------------------
   冒頭の埋め込みは「記事内で見てもらう」ため、末尾のこれは
   「YouTubeへ送る」ため。役割が違うので、ここでは2つ目のiframeを置かず
   サムネイルのリンクにする。ページも軽くなり、視聴もYouTube本体で発生する。
   =================================================================== */
.single-post .entry-content .yt-cta {
	max-width: 820px;
	margin: 3.6em auto 0;
	padding: 1.6em;
	background: #16161a;
	border-radius: 12px;
	color: #fff;
}
.single-post .entry-content .yt-cta__thumb { display: block; position: relative; border-radius: 8px; overflow: hidden; box-shadow: none; }
.single-post .entry-content .yt-cta__thumb img { width: 100%; height: auto; border-radius: 8px; display: block; margin: 0; }
/* 再生ボタンの三角。画像を足さずCSSだけで作る */
.single-post .entry-content .yt-cta__thumb:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	background: rgba(0, 0, 0, .72);
	border-radius: 12px;
}
.single-post .entry-content .yt-cta__thumb:before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-40%, -50%);
	z-index: 2;
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #fff;
}
.single-post .entry-content .yt-cta__thumb:hover:after { background: #f00; }

.single-post .entry-content .yt-cta__label {
	margin: 1.3em 0 .4em;
	font-size: 11px;
	letter-spacing: .14em;
	color: #8a8a94;
	text-transform: uppercase;
}
.single-post .entry-content .yt-cta__title { margin: 0 0 .7em; font-size: 1.05rem; font-weight: 700; line-height: 1.6; color: #fff; }
.single-post .entry-content .yt-cta__note { margin: 0 0 1.4em; font-size: .88em; line-height: 1.8; color: #b6b6c0; }

.single-post .entry-content .yt-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.single-post .entry-content .yt-cta a.yt-cta__btn,
.single-post .entry-content .yt-cta a.yt-cta__sub {
	display: inline-block;
	padding: .85em 1.5em;
	border-radius: 999px;
	font-size: .9em;
	font-weight: 700;
	text-decoration: none;
	box-shadow: none;
	transition: opacity .15s;
}
.single-post .entry-content .yt-cta a.yt-cta__btn { background: #f00; color: #fff; }
.single-post .entry-content .yt-cta a.yt-cta__sub { background: #2c2c34; color: #fff; }
.single-post .entry-content .yt-cta a.yt-cta__btn:hover,
.single-post .entry-content .yt-cta a.yt-cta__sub:hover { opacity: .82; color: #fff; }

/* チャンネルページへの補助リンク。ボタンを3つ並べると主役が消えるので、
   動画と登録はボタン、チャンネルページはテキストリンクで階層をつける */
.single-post .entry-content .yt-cta__channel {
	margin: 1.3em 0 0;
	padding-top: 1.2em;
	border-top: 1px solid #2c2c34;
	font-size: .85em;
	line-height: 1.8;
	color: #b6b6c0;
}
.single-post .entry-content .yt-cta a.yt-cta__channel-link {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	box-shadow: none;
	white-space: nowrap;
}
.single-post .entry-content .yt-cta a.yt-cta__channel-link:hover { color: #f0437e; }

@media only screen and (max-width: 767px) {
	.single-post .entry-content .yt-cta { padding: 1.2em; }
	.single-post .entry-content .yt-cta__actions { display: block; }
	.single-post .entry-content .yt-cta a.yt-cta__btn,
	.single-post .entry-content .yt-cta a.yt-cta__sub { display: block; text-align: center; margin-bottom: 10px; }
}


/* ===================================================================
   記事一覧ページ（/vlog/）
   -------------------------------------------------------------------
   レイアウトは functions.php の airi_child_blog_grid_layout() で
   親テーマの 'layout-grid'（PC3列・タブレット2列・スマホ1列）に固定済み。
   ここでは見出しの可視化とカードの体裁だけを整える。
   =================================================================== */

/* 親テーマは一覧の見出しを screen-reader-text で隠しているが、
   Vlog一覧はページとしての入口になるので、見えるようにする */
.blog .page-title.screen-reader-text {
	position: static;
	width: auto;
	height: auto;
	margin: 0 0 .4em;
	padding: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: normal;
	font-size: 2rem;
	font-weight: 700;
	text-align: center;
}
.blog .site-main > header { margin-bottom: 3em; }
/* 見出しの下に添えるリード文 */
.blog .site-main > header:after {
	content: "アメリカ・カリフォルニアでの日常を、動画と記事でお届けしています。";
	display: block;
	text-align: center;
	font-size: .9rem;
	line-height: 1.9;
	color: #888;
}

/* --- カード --- */
.blog .blog-loop .post-inner {
	margin-bottom: 40px;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 6px 24px rgba(61, 82, 96, .12);
	transition: transform .18s, box-shadow .18s;
}
.blog .blog-loop .hentry { border: 0; padding-bottom: 0; margin-bottom: 0; }
.blog .blog-loop .post-inner:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(61, 82, 96, .18); }

/* サムネイルは動画に合わせて16:9で切り揃える。
   アイキャッチの縦横比がまちまちでも一覧の見た目が崩れない */
.blog .blog-loop .post-thumbnail { margin: 0; display: block; }
.blog .blog-loop .post-thumbnail img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

.blog .blog-loop .post-info { padding: 1.2em 1.4em 1.5em; }
.blog .blog-loop .entry-header { margin-bottom: 0; }
.blog .blog-loop .entry-title {
	margin: .5em 0 .6em;
	font-size: 1.05rem;
	line-height: 1.65;
	font-weight: 700;
}
.blog .blog-loop .entry-title a { color: #191919; box-shadow: none; text-decoration: none; }
.blog .blog-loop .entry-title a:hover { color: #f0437e; }
.blog .blog-loop .posted-on { font-size: 11px; letter-spacing: .1em; color: #999; }
.blog .blog-loop .posted-on a { color: #999; box-shadow: none; }
.blog .blog-loop .entry-meta { font-size: 11px; color: #aaa; }
.blog .blog-loop .entry-meta a { color: #f0437e; box-shadow: none; }

/* --- ページ送り --- */
.blog .posts-navigation { margin-top: 1em; }
.blog .posts-navigation a { box-shadow: none; }

@media only screen and (max-width: 767px) {
	.blog .page-title.screen-reader-text { font-size: 1.5rem; }
	.blog .site-main > header { margin-bottom: 2em; }
	.blog .blog-loop .post-inner { margin-bottom: 26px; }
}


/* ===================================================================
   縦型動画（YouTubeショート）への対応
   -------------------------------------------------------------------
   パジメのチャンネルには 16:9 の通常動画と 9:16 のショートが混在する。
   ショートを16:9の枠に入れると左右が黒帯だらけになり、
   縦長のスクショを本文幅いっぱいに置くと画面を占領してしまうため、
   縦型のときだけ幅を絞る。記事生成側でクラスを付け分ける。
   =================================================================== */

/* --- 縦型の埋め込み（9:16） --- */
.single-post .entry-content .wp-block-embed.is-vertical {
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}
.single-post .entry-content .wp-block-embed.is-type-video.is-vertical .wp-block-embed__wrapper {
	padding-top: 177.78%;      /* 16 ÷ 9 */
}

/* --- 縦型のスクリーンショット --- */
.single-post .entry-content .yt-shot--portrait {
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}
/* 縦型を2枚並べる場合。全幅だと1枚あたりが縦に長すぎる */
.single-post .entry-content .yt-shots--portrait {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

@media only screen and (max-width: 767px) {
	.single-post .entry-content .wp-block-embed.is-vertical,
	.single-post .entry-content .yt-shot--portrait { max-width: 300px; }
	.single-post .entry-content .yt-shots--portrait { max-width: none; }
}


/* ===================================================================
   トップページの最新記事リスト（[pajime_latest_posts]）
   -------------------------------------------------------------------
   Vlog一覧（.blog .blog-loop）と同じカードの見え方に揃えている。
   ただしトップページは body class が blog ではないので、
   一覧側のCSSは効かない。ここで独立して定義する。
   =================================================================== */
.pj-posts { max-width: 1140px; margin: 0 auto; padding: 70px 15px; }
.pj-posts__title { font-size: 2rem; font-weight: 700; text-align: center; margin: 0 0 .4em; }
.pj-posts__lead { font-size: .9rem; line-height: 1.9; color: #888; text-align: center; margin: 0 0 2.6em; }

.pj-posts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.pj-post {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(61, 82, 96, .12);
	transition: transform .18s, box-shadow .18s;
}
.pj-post:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(61, 82, 96, .18); }

.pj-post__thumb { display: block; box-shadow: none; }
/* サムネイルは動画に合わせて16:9で切り揃える */
.pj-post__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.pj-post__body { padding: 1.2em 1.4em 1.5em; }
.pj-post__date { font-size: 11px; letter-spacing: .1em; color: #999; margin: 0 0 .5em; }
.pj-post__title { font-size: 1.05rem; line-height: 1.65; font-weight: 700; margin: 0 0 .8em; }
.pj-post__title a { color: #191919; box-shadow: none; text-decoration: none; }
.pj-post__title a:hover { color: #f0437e; }
.pj-post__cat { margin: 0; font-size: 11px; }
.pj-post__cat a {
	display: inline-block;
	padding: .35em .9em;
	background: #fdeef4;
	border-radius: 999px;
	color: #d0246a;
	box-shadow: none;
	text-decoration: none;
}
.pj-post__cat a:hover { background: #f0437e; color: #fff; }

.pj-posts__more { text-align: center; margin: 3em 0 0; }
.pj-posts__more a {
	display: inline-block;
	padding: .9em 2.4em;
	border: 1px solid #191919;
	border-radius: 999px;
	color: #191919;
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: none;
	transition: background .15s, color .15s;
}
.pj-posts__more a:hover { background: #191919; color: #fff; }

@media only screen and (max-width: 767px) {
	.pj-posts { padding: 45px 15px; }
	.pj-posts__title { font-size: 1.5rem; }
	.pj-posts__grid { grid-template-columns: 1fr; gap: 22px; }
}