


/* * {outline: 1px solid red;} */


/* ===========================================
  サイドバー位置調整（single-headerの高さ分下げる）
  =========================================== */
.single-sidebar {
    margin-top: var(--single-header-height, 0) !important;
    transition: margin-top 0.3s ease;
}

/* より具体的なセレクターで確実に適用 */
.post-container .single-sidebar {
    margin-top: var(--single-header-height, 0) !important;
}

/* ===========================================
  シリーズ記事ナビゲーション（ピックアップ記事風）
  =========================================== */
.series-navigation { margin: 3rem 0;}
.series-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.2rem;
	margin: 0 auto;
}
.series-item,
.related-article-link {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: .3em .2em .6em;
	color: #333;
	text-decoration: none;
	border-radius: 1.5rem;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	overflow: hidden;
	transition: all 0.3s ease;
}
@media (min-width: 769px) { .series-item { flex-direction: row;}}
.related-article-link {
    display: block;
    padding: 0;
}
.series-item:hover,
.related-article-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.series-item.current {
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/*
.series-item.current::before {
	content: "現在";
	position: absolute;
	top: 0.8rem;
	right: 0.8rem;
	color: #333;
	font-size: 0.8rem;
	padding: 0.3rem 0.6rem;
	border-radius: 1rem;
	font-weight: 500;
	z-index: 2;
}
*/
/* 画像部分 */
.series-item-image {
	flex: 0 0 auto;
	margin: auto;
	width: 100%;
	max-width: 220px;
	font-size: 0.0001%;
	overflow: hidden;
	aspect-ratio: 3/2;
}
.series-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* コンテンツ部分 */
.series-item-content,
.related-article-content {
	flex: 1;
	padding: clamp(1.2rem, 0.95rem + 1vw, 1.5rem) clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.series-item-meta,
.related-article-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.2rem;
	color: #888;
}
.series-item-category,
.related-article-category {
	position: relative;
	padding: 0.25rem 1.4rem 0.3rem;
	color: #333;
	font-size: 1.2rem;
	font-weight: 600;
	-webkit-mask: url("../images/mask-book-label.png") center / 100% 100% no-repeat;
	mask: url("../images/mask-book-label.png") center / 100% 100% no-repeat;
	box-shadow: none;
	border-radius: 0;
}
.category-feature .series-item-category,
a.category-feature .related-article-category { background-color: var(--labelcolor-feature);}
.category-column .series-item-category,
a.category-column .related-article-category { background-color: var(--labelcolor-column);}
.category-talk-session .series-item-category,
a.category-talk-session .related-article-category { background-color: var(--labelcolor-talk-session);}
.category-enquete .series-item-category,
a.category-enquete .related-article-category { background-color: var(--labelcolor-enquete);}
.category-schedule .series-item-category,
a.category-schedule .related-article-category { background-color: var(--labelcolor-schedule);}

.post-template-default .related-article-category {
	padding: 0.1rem .8rem;
	font-size: 1.1rem;
	-webkit-mask:none;
	mask:none;
}
.category-news .related-article-category { border:2px solid var(--labelcolor-news); }
.category-stage .related-article-category { border:2px solid var(--labelcolor-stage); }
.category-event .related-article-category { border:2px solid var(--labelcolor-event); }
.category-ws .related-article-category { border:2px solid var(--labelcolor-ws); }

.series-item-title,
.related-article-title {
  margin: .3em 0 0.5rem;
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
}
.series-item-title:first-letter,
.related-article-title:first-letter {font-feature-settings: "palt";}

.related-article-title { font-size: 1.65rem;}
.series-item-subtitle,
.related-article-subtitle {
	margin: 0 ;
	color: #666;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.4;
}
.related-article-subtitle {font-size: 1.4rem;}





/* 関連記事セクション（シリーズナビゲーション風）
  ------------------------------------------- */
.related-articles { margin: 4rem 0;}

.related-articles h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: bold;
}
.related-articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.no-related-articles {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
  margin: 0;
}


/* ===========================================
  環境判別表示（テスト環境のみ）
  =========================================== */
/* ステージング環境のみ表示（本番環境は表示なし＝本番の証） */
body.env-staging::before {
    content: "【テスト環境】";
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: #ff6b6b;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom-right-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ===========================================
  本番環境専用スタイル（www.koenowa.comのみ）
  =========================================== */
/* 本番環境でのみ適用されるスタイル */
body.production-site .some-element {
    display: none; /* 本番環境で非表示 */
}

/* ステージング環境でのみ表示 */
body.staging-site .some-element {
    display: block; /* ステージング環境で表示 */
}

/* 例：本番環境で広告エリアを非表示 */
body.production-site .ad-area {
    display: none !important;
}

/* 例：ステージング環境でデバッグ情報を表示 */
body.staging-site .debug-info {
    display: block !important;
}

/* ===========================================
  ヒーロー全幅セクション（ベース：スマホ表示）
  =========================================== */

.single-hero > .main-hero {
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
}

.main-hero { position: relative; }
.main-hero .hero-image-frame { overflow: visible; border-radius: 0; box-shadow: none; }

/* 画像上のタイトル/サブタイトルを上に重ねる */
.hero-image-container { position: relative; }
.hero-title-wrap {
    position: absolute;
    left: clamp(1.2rem, 4vw, 3rem);
    bottom: 17%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0; /* タイトルとサブタイトルの間隔 */
    z-index: 6;
}
@media (min-width: 500px) {
	.hero-title-wrap { display: inline-flex; } 
}


.hero-image-title {
	position: static;
	display: inline-block;
	margin: 0 0 -3px;
	padding: 0.6rem 1.6rem;
	color: #333;
	font-weight: 700;
	font-size: clamp(1.6rem, 3vw, 2.7rem);
	font-family: var(--mplus-rounded-heading-font);
	border: 2px solid #555;
	border-top-right-radius: 1.6rem;
	border-top-left-radius: 1.6rem;
	background: #FFC98C; /* デフォルト。ACF title_color がインラインで上書き */
}
/* カテゴリー別タイトル背景色 */
body.category-feature .hero-image-title { background-color: var(--labelcolor-feature) !important; /* 特集 */}
body.category-column .hero-image-title { background-color: var(--labelcolor-column) !important; /* コラム */}
body.category-talk-session .hero-image-title { background-color:   var(--labelcolor-talk-session) !important; /* 座談会 */}
body.category-enquete .hero-image-title { background-color: var(--labelcolor-enquete) !important; /* アンケート */}
body.category-schedule .hero-image-title { background-color: var(--labelcolor-schedule) !important; /* わがやのスケジュール */}

.hero-image-subtitle { position: static; }
.hero-image-subtitle .subtitle-text {
	display: inline-block;
	padding: 0.65em 1.6rem;
	color: #333;
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	background: #fff;
	border: 2px solid #555;
	border-top-right-radius: 1.6rem;
	border-bottom-right-radius: 1.6rem;
	border-bottom-left-radius: 1.6rem;
}

.hero-title-anim { animation: heroFadeIn .5s ease .05s both; }
.hero-subtitle-anim { animation: heroFadeIn .5s ease .12s both; }
@keyframes heroFadeIn { from { opacity:0; transform: translateX(-12px);} to { opacity:1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-title-anim, .hero-subtitle-anim { animation: none; } }

/* END hero block */

/*
 * 記事詳細ページ専用CSS (single.php) (モバイルファースト対応版)
 */

/* ===========================================
  全体レイアウト（ベース：スマホ表示）
  =========================================== */
.post-container {
  display: grid;
  grid-template-columns: 1fr; /* スマホでは1カラム */
  gap: 30px;
  margin: 0 auto;
  padding: 1.65em 0; /* スマホ用のpadding */
  width: 88%;
  max-width: 1100px;
}
.single .post-container,
.page .post-container { max-width: 1060px;}

.content-main { }
.single-sidebar { position: static;} /* スマホでは追従しない */


/* ===========================================
  記事ヘッダー（ベース：スマホ表示）
  =========================================== */
.single-header {
	margin-bottom: 4em;
	max-width: 100%;
}
.single-meta {
	display: flex;
	flex-direction: column; /* スマホでは縦並び */
	align-items: flex-start;
	gap: 10px;
}
.single-meta { justify-content: space-between; width: 100%; }
.single-meta .single-categories { order: 1; }
.single-meta .single-publish-date { order: 2; margin-left: auto; color: #555; }
.single-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.single-category {/* お知らせのカテゴリータグ */
	padding: 4px 12px;
	color: #fff;
	font-size: 0.8rem;
	font-weight: bold;
	background-color: #ff6b9d;
	border-radius: 12px;
}
.single-title {
    margin: 0 0 .15em;
    line-height: 1.3;
}
.single-categories.post-categories .category-label {
    position: relative;
    margin: 0 .6rem .6rem 0;
    padding: .5rem 1.4rem;
    border-radius: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
    background: transparent;
    -webkit-mask: url("../images/book-label-mask.svg") center / auto 100% no-repeat;
            mask: url("../images/book-label-mask.svg") center / auto 100% no-repeat;
}
/* カテゴリー色（一覧と同配色） */
.single-categories .category-label.cat-talk-session { background-color: #d0adff; }
.single-categories .category-label.cat-enquete { background-color: #ffdd8d; }
.single-categories .category-label.cat-schedule { background-color: #b0f0ff; padding: .6rem 1.6rem; }
.single-categories .category-label.cat-column { background-color: #b0f0ff; }
.single-categories .category-label.cat-feature { background-color: #ffb7d1; }
.single-featured-image {
    margin-bottom: 30px;
}
.single-article h2::before,
.single-article h3::before {
	content: ''; 
  display: inline-block;
  margin-right: .5em;
  width: .67em;
  height: .67em;  
  background: var(--page-bg, #f8f9fb); /* 背景色（青） #f8f9fb */
  background-image: url(../images/headline-ron2.svg); /* SVGアイコン */
  background-repeat: no-repeat;
	background-size: 93%,auto;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.talk-session-article h2::before,
.talk-session-article h3::before {
  background-color: #feae7b;
  background-image: url(../images/headline-ron2.svg); /* SVGアイコン */
}
.single-subtitle {
	margin: 0 0 1.4rem;
	color: #555;
	font-size: 2rem;
	line-height: 1.35;
	letter-spacing: 0.07em;
	font-family: var(--noto-heading-font);
}

/* 公開日（サブタイトルの下・右寄せ） */
.single-publish-date {
	margin: 0 0 2rem;
	color: #999;
	text-align: right;
	font-family: var(--noto-heading-font);
}



.single-date { color: #666;}
/* ===========================================
  コンテンツエリアの構造
  =========================================== */
main section { margin-bottom: 3em;}
main .section-title {
	position: relative; 
	margin: 0 auto .5em;
	padding-bottom: 0.75em;
	font-size: 2.1rem !important;
}
.page main .section-title::after {
	content: ''; /* 擬似要素には必須 */
  position: absolute;
  bottom: 0;
  left: 50%;
	transform: translateX(-50%);
  width: 50%;
  max-width: 300px;
  height: 2px; 
  background-color: #666;
}


/* ------------------------------------------
  目次（.table-of-contents）
  ------------------------------------------- */
.table-of-contents {
	margin:0 auto 3em;
	padding: 3rem 1rem ;
	background-color: rgba(255,255,255,.5);
	border-radius: 2rem;
	max-width: 700px;
}
.table-of-contents h3.section-title {
	margin: 0 auto;
	padding-left: 2rem;
}
.table-of-contents ul.toc-list {
	margin: 0;
	padding:0 2.2rem;
	list-style: none;	
}
.table-of-contents ul li.toc-item {
	margin: .2rem 0;
	padding-left: 1.3em;
	text-indent: -1.3em;
}
.table-of-contents ul li.toc-item a { font-size: 1.8rem;}
.table-of-contents ul li.toc-item a::before {
	content: ''; 
  display: inline-block;
  margin-right: .5em;
  width: .37em;
  height:.37em;  
  background: var(--page-bg, #f8f9fb); /* 背景色（青） #f8f9fb */
  background-image: url(../images/headline-ron1.svg); /* SVGアイコン */
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.table-of-contents ul li.toc-item a:link,
.table-of-contents ul li.toc-item a:visited { color: var(--koenowa-dark-gray);}
.table-of-contents ul li.toc-item a:hover { color: var(--koenowa-primary);} 
.table-of-contents ul li.current-chapter a { font-weight: bold; }

/* ------------------------------------------
  企画説明（.project-description）
  ------------------------------------------- */
.project-description {
	padding: 2em;
	background: rgba(255,255,255,.45);
	border-radius: 2.7rem;
	border-top-left-radius: 0;
}
.project-description .section-title { margin: 0 auto;}
.project-description .project-content p:first-child { margin-top: 0;}
.project-description .project-content p:last-child { margin-bottom: 0;}

/* ------------------------------------------
  参加者カード（.project-description）
  ------------------------------------------- */
.participants-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.6rem;
}
.participant-card {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	padding: 1.2rem 1.6rem;
	background: rgba(255,255,255,.45);
	border-radius: 1.2rem;
	border-top-left-radius: 0;
}
.participant-avatar { flex: 0 0 auto; width: 4.8rem; height: 4.8rem; overflow: hidden; }
.participant-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.participant-meta { display: flex; flex-direction: column; gap: .2rem; }
.participant-name { color: #333; font-weight: 700; line-height: 1.3; }
.participant-info { color: #666; line-height: 1.5; }




@media (min-width: 769px) {
  .participants-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------
  サイドバー執筆者プロフィールスタイル（.profile-widget）
  ------------------------------------------- */
.profile-item { margin-bottom: 3rem;}
.profile-item:last-child { margin-bottom: 1rem;}
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}
.profile-image {
    flex: 0 0 auto;
    width:  8rem;
    height: 8rem;
    border-radius: 50%;
}
.profile-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-name-section { flex: 1;}
.profile-name {
    margin: 0 0 0.3rem;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.05em;
}
.profile-name-kana {
    margin: 0;
    color: #666;
    font-size: 1.3rem;
    line-height: 1.3;
    letter-spacing: 0;
}
.profile-text p {
	margin: 0;
	font-size: 1.55rem;
	font-family: var(--noto-heading-font);
/* 	font-family: var(--mplus-rounded-heading-font); */
	font-weight: 500;
}




/* SNSアイコンリストの基本設定 */
.profile-sns-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1.2rem;
	padding: 0;
	margin: 1em auto;
	list-style: none;
}
.profile-sns-list li {
	margin: 0;
	padding: 0;
}
.profile-sns-list a {
	display: inline-block;
	opacity: .7;
	transition: all 0.3s ease;
}
.profile-sns-list a:hover { opacity: 1;}
.profile-sns-list svg {
	width: 4.1rem;
	height: 4.1rem;
}
.profile-sns-list svg .ron,
.profile-sns-list svg .black {fill: #000 ;}



/* ------------------------------------------
  前編、後編リンク
  ------------------------------------------- */
.partlink { text-align: center;}
.partlink .wp-block-group__inner-container {
  position: relative;
	display: inline-block;
	padding: .7em 2em;
/* 	background-color: rgba(0,0,0,.05); */
	border: solid 3px #777;
	border-radius: 1.7rem;
	z-index: 1;
}
.partlink .wp-block-group__inner-container::after {
  content: "";
  position: absolute;
  bottom: -7px;
  right: -7px;
  border-right: solid 3px #777;
  border-bottom: solid 3px #777;
  width: 98%;
  height: 94%;
  border-radius: 0 0 2.1rem 0;
  z-index: -1;
}
.partlink .wp-block-group__inner-container p { margin: 0;}

/* ===========================================
  記事本文（ベース：スマホ表示）
  =========================================== */
.single-content {
    margin-bottom: 50px;
    padding: clamp(1.1rem, 2.7vw, 3.9rem);
    color: #333;
    line-height: 1.65;
    background-color: rgba(255,255,255,.55);
    border-radius: 2rem;
}
.category-talk-session .single-content,
.category-enquete .single-content,
.category-schedule .single-content {
	padding: 1.1rem;
	background: none;
}
.category-stage .single-content,
.category-ws .single-content,
.category-event .single-content { padding: clamp(1rem, 4vw, 2rem);}


.single-content p {
	margin-bottom: 1.5em;
	font-family: var(--noto-heading-font);
	font-feature-settings: "palt";
	text-align: justify;
	text-justify: inter-character; /* ⇐ これを追加 */
	word-wrap: break-word;
	letter-spacing: .06em;

}
.category-talk-session .single-content p {
	margin: .5em auto;
	color: #222;
	font-weight: 500;
	line-height: 1.5;
}
.single-content h2 {
	margin: 2em 0 1em;
	color: #333;
	font-weight: 600;
}
.single-content h2:first-child { margin-top: 0;}

.single-content h3 { margin: 1.8em 0 0.8em; color: #333; font-weight: bold;}
.single-content h4 { margin: 1.5em 0 0.8em; color: #333;}
.single-content ul, .single-content ol {
	margin: 1.5em 0;
	padding-left: 0.3em;
}
.single-content li {
	margin-bottom: 0.75em;
	line-height: 1.45;
	list-style-position: inside;
}







ol {/* 1. <ol>でカウンターをリセット（初期化） */
  list-style: none; /* デフォルトの数字を消す */
  padding-left: 0;
	counter-reset: myCounter;  /* 'myCounter'という名前でカウンターを0にリセット */
}
ol li {
  display: flex;
  align-items: flex-start; /* 上揃え（ulと全く同じ） */
  margin-bottom: 0.5em;
  counter-increment: myCounter; /* 2. liごとに 'myCounter' を1増やす */
}

ol li::before {/* 3. 'myCounter' の現在の値を表示 */
	content: counter(myCounter) ". "; /* "1. ", "2. ", "3. " ...と自動で表示される */
	margin-right: 0.5em;     /* 数字とテキストの間の余白 */
	font-weight: bold;       /* （お好みで）数字を太字に */
	line-height: 1.4;        /* （お好みで）テキストの行高と合わせる */
  /* * （お好みで）数字が2桁(10.)になった時も
   * テキストの開始位置を揃えるためのテクニック 
   */
  min-width: 1.5em; /* 最小幅を確保 */
  text-align: right;  /* 数字を右揃えに */
}


.single-content li::marker { text-indent: 0;}
.single-content blockquote { margin: 2em 0; padding: 1.5em; font-style: italic; background-color: #f8f9fa;}
.single-content img { height: auto; max-width: 100%; margin: 0; border-radius: 8px;}

/* ===========================================
  プロモーションエリア（.promotion-section）
  =========================================== */
.promotion-section .promotion-item {
	padding: clamp(1.2em, 4vw, 2em);
	background-color: rgba(255,255,255,0.45);
	border-radius: 2rem;
}
@media (min-width: 769px) {
	.promotion-section .promotion-content {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap:clamp(1.2em, 4vw, 2em);;
	}
	.promotion-content .promotion-image { flex: 1;}
	.promotion-content .promotion-text-wrapper {
		flex: 2;
		position: relative;
		z-index: 0;
	}
}
/* テキスト部分 */
.promotion-text-wrapper .promotion-text { padding: .5em 0;}
.promotion-text-wrapper h1,
.promotion-text-wrapper h2,
.promotion-text-wrapper h3,
.promotion-text-wrapper h4,
.promotion-text-wrapper h5,
.promotion-text-wrapper h6 {
	margin: .25em auto .85em;
	line-height: 1.25;
}
.promotion-text-wrapper p {
	margin: .15em auto;
	line-height: 1.35;
}
.promotion-text-wrapper .promotion-button {
	margin: 1.3rem auto 0;
	text-align: right;
  opacity: .75;
  transition: all .25s ease;
}
.promotion-text-wrapper .promotion-button a {
	position: relative;
	display: inline-block;
	padding: .6rem 5.2rem .6rem 3.2rem;
	color: #111;
	font-size: 1.6rem;
	font-weight: 600;
  border-radius: 2rem;
}
.promotion-text-wrapper .promotion-button a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: .9rem;
	transform: translateY(-50%);
	width: 3.6rem;
	height: 3.6rem;
	background: transparent url("../images/icon-ron-outerlink.svg?2") center / 100% 100% no-repeat;
	transition: all .25s ease;
}
.promotion-text-wrapper .promotion-button:hover {opacity: 1;}
.promotion-text-wrapper .promotion-button:hover a {
	color: #fff;
	background-color: #000;
}


/* ===========================================
  記事フッター（ベース：スマホ表示）
  =========================================== */
.single-footer { margin-bottom: 50px;}

/* タグ（共通チップ） */
.single-tags { margin-top: 2rem;}
.single-tags .tag-title {
	display: block;
	margin: 0 auto 2em;
	padding: 0;
	color: #666;
	font-size: 1.5rem;
	font-weight: 400;
}
.tags-list { margin-top: .6rem; }

/* 関連（タグ） */
.related-by-tags { margin: 3rem 0; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.related-card { border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff; }
.related-card-link { display: flex; gap: 1rem; text-decoration: none; color: inherit; padding: 1rem; }
.related-thumb { width: 120px; flex-shrink: 0; }
.related-thumb img { width: 100%; height: auto; display: block; border-radius: 6px; }
.related-image-placeholder { display:flex; align-items:center; justify-content:center; width:120px; height:80px; background:#f0f1f3; color:#999; border-radius:6px; }
.related-body { display:flex; flex-direction:column; gap:.4rem; }
.related-title { font-size: 1.4rem; line-height: 1.4; margin: 0; }
.related-date { color:#999; font-size: 1.2rem; }

/* CTA */
.tag-cta { margin: 2rem 0 4rem; text-align: center; }


@media (min-width: 769px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .related-card-link { flex-direction: column; padding: 0; }
  .related-thumb { width: 100%; }
  .related-image-placeholder { width: 100%; height: 140px; }
  .related-body { padding: 1rem 1.2rem 1.2rem; }
}
.tags-list,
.post-tags-header {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem .6rem;
	margin: 1.35rem 0 2rem;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.single-footer .tags-list {
	margin-bottom: 4em;
	justify-content: center;
}
.post-tags-header::-webkit-scrollbar { display: none; }
.tags-list .tag-chip,
.post-tags-header .tag-chip {
	display: inline-block;
  padding: .5rem 1.2rem;
  color: #666;
  font-size: 1.25rem;
  font-weight: 500;
	line-height: .9;
  background-color: #fff;
  border: 1px solid #666;
  border-radius: 2rem;
  white-space: nowrap;
}
.tags-list .tag-chip:before,
.post-tags-header .tag-chip:before {
	content: "#";
	margin-right: -2px;
}
.tags-list .tag-chip:hover,
.post-tags-header .tag-chip:hover {
    background: #f7f8fa;
    border-style: solid;
}

/* ------------------------------------------
  モダンシェアボタン（.modern-share）
  ------------------------------------------- */
.modern-share {
    margin: 3rem 0;
    padding: 2.5rem 0;
    text-align: center;
}
.modern-share .share-label {
    margin-bottom: 2rem;
    color: #666;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.modern-share .share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.modern-share .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.modern-share button.share-btn { padding: 0;}
.modern-share .share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modern-share .share-btn:hover::before { transform: scale(1);}
.modern-share .share-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.modern-share .share-btn:active { transform: translateY(0) scale(0.95);}
.modern-share .share-btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}
.modern-share .share-btn:hover svg { transform: scale(1.1);}

/* 各SNSのブランドカラー */
.modern-share .share-btn.twitter { background: linear-gradient(135deg, #555 0%, #333 100%);}
.modern-share .share-btn.facebook { background: linear-gradient(135deg, #1877F2 0%, #0d5bb8 100%);}
.modern-share .share-btn.line { background: linear-gradient(135deg, #00C300 0%, #00a000 100%);}
.modern-share .share-btn.copy { background: linear-gradient(135deg, #666 0%, #444 100%);}


/* ===========================================
  記事ナビゲーション（ベース：スマホ表示）
  =========================================== */
.post-navigation { margin-bottom: 50px; padding: 30px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee;}
.nav-links { display: grid; grid-template-columns: 1fr; gap: 20px;}
.nav-previous,
.nav-next { padding: 15px; text-align: left;border-radius: 8px; background-color: #f8f9fa; transition: background-color 0.3s ease;}

/* (中略：記事ナビのテキストスタイルは変更なし) */
.nav-previous:hover, .nav-next:hover { background-color: #e9ecef;}
.nav-label { display: block; margin-bottom: 8px; color: #666; font-size: 0.9rem;}
.nav-title { color: #333; font-weight: bold; line-height: 1.4; text-decoration: none; transition: color 0.3s ease;}
.nav-title:hover { color: #ff6b9d;}

/* (中略：関連記事とサイドバーは page.css と同様の構造なので、そちらのモバイルファースト設定を継承・参考にする) */



/* ===========================================
  「座談会」シングルページ
  =========================================== */

/* 吹き出しスタイル */
.speech {
	position: relative;
	margin: 7rem 0;
	padding-left: 3rem;
}
.comment {
	position: relative;
	margin: 7rem 0;
	padding-left: 0 !important;
	text-align: left;
}
.speech:nth-of-type(even) {
	padding-left: 0;
	padding-right: 3rem;
	text-align: right;
}
.comment .wp-block-group__inner-container,
.speech .wp-block-group__inner-container {
	display: inline-block;
	padding: clamp(1.2em, 4vw, 2em);
	background: rgba(255,255,255,0.65);
	border-radius: 2.5rem;
}

.comment .wp-block-group__inner-container p:first-child,
.speech .wp-block-group__inner-container p:first-child { margin-top: 0;}
.comment .wp-block-group__inner-container p:last-child,
.speech .wp-block-group__inner-container p:last-child { margin-bottom: 0;}
/* アバター表示（最初のstrongタグの擬似要素） */
.speech strong:first-child {
  position: absolute;
	display: block;
	top: -5rem;
	left: -1rem;
	padding:0 .5em .5em;
	width: 70px;
	height: auto;
	text-align: center;
	font-size: 1.35rem;
	line-height: 1.2;
	background-color: #ffedc4;
	border-radius: 50%;
}
.speech strong:first-child::before {
	content: '';
	display: inline-block;
	margin-left: calc( 10px -.5em);
	width: 50px;
	height: 50px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
/* 	border-radius: 50%; */
	z-index: 2;
}

/* 各発言者のアバター設定 */
.speech.woman1 strong:first-child::before { background-image: url('../images/avatars/avatar-W1_blue.png');}
.speech.woman2 strong:first-child::before { background-image: url('../images/avatars/avatar-W2_orange.png');}
.speech.woman3 strong:first-child::before { background-image: url('../images/avatars/avatar-W3_yellow.png');}
.speech.woman4 strong:first-child::before { background-image: url('../images/avatars/avatar-W4_purple.png');}
.speech.woman5 strong:first-child::before { background-image: url('../images/avatars/avatar-W5_green.png');}
.speech.man1 strong:first-child::before { background-image: url('../images/avatars/avatar-M1_purple.png');}
.speech.man2 strong:first-child::before { background-image: url('../images/avatars/avatar-M2_green.png');}
.speech.man3 strong:first-child::before { background-image: url('../images/avatars/avatar-M3_yellow.png');}
.speech.reverse strong:first-child::before { transform: scaleX(-1);}

/* .speech:nth-of-type(even) strong  { flex-direction: row-reverse;} */
.speech:nth-of-type(even) strong:first-child {
    right: -1rem;
    left: auto;
}


/* レスポンシブ対応 */
@media (min-width: 769px) {
	.speech { padding-left: 5.5rem;}
	.speech:nth-of-type(even) { padding-right: 5.5rem; padding-left: 0;}
	.speech .wp-block-group__inner-container { border-top-left-radius: 0;}
	.speech:nth-of-type(even) .wp-block-group__inner-container {
		border-top-right-radius: 0;
		border-top-left-radius: 2.75rem;
	}
}



/* ===========================================
  「わがやのスケジュール」シングルページ
  =========================================== */

/* スケジュール画像
  ------------------------------------------- */
.wp-block-group.schedule img { border-radius: 0 !important;}
.wp-block-group.schedule .wp-block-gallery {
	gap:0 !important;
	border: clamp(1em ,2vw,2.5em) solid #fff;
}
@media (max-width: 768px) {
.wp-block-group.schedule .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: 100%;
}
}


/* 一問一答カテゴリー
  ------------------------------------------- */ 

.category-enquete h2,
.category-enquete h3 {
	display: inline-block;
	margin-top: 2.3em;
	padding-right: clamp(10px ,4vw,50px);
	color: #333;
	font-size: 1.65rem;
	font-weight: normal;
	font-feature-settings: "palt";
	text-align: justify;
	word-wrap: break-word;
	letter-spacing: .06em;

}
.category-enquete .answer p {
	margin: .4rem;
	font-size: 1.7rem;
	font-family: var(--noto-heading-font);
}
.category-enquete .answer p:first-child { margin-top: 0;}
.category-enquete .answer p:last-child { margin-bottom: 0;}

/* プロフィール画像を吹き出しの右側に表示 */

.category-enquete .answer {
	padding-right: clamp(55px ,4vw,60px);
	text-align: right;
}
.category-enquete .answer .wp-block-group__inner-container {
	position: relative;
	display: inline-block;
  padding: clamp(1em, 4vw, 2rem);
  text-align: left;
  background: rgba(255,255,255,0.7);
  border-radius: 2rem;
  border-bottom-right-radius: 0;
}

.category-enquete .answer .wp-block-group__inner-container::after {
	content: '';
	position: absolute;
	right: -60px;
	bottom: -20px;
/* 	transform: translateY(-50%); */
	width: 50px;
	height: 50px;
	background-image: url('../images/avatars/avatar.png'); /* デフォルトアバター追加 */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 50%;
}

/* ===========================================
  「お知らせ」シングルページ
  =========================================== */
 
 
/* 背景色
  ------------------------------------------- */  

.bg-blue { background-color: #b0f0ff !important;}
.bg-orange { background-color: #ffad79 !important;}
.bg-yellow { background-color: #ffdd8c !important;}
.bg-purple { background-color: #cfacff !important;}

  
/* 画像エリア
  ------------------------------------------- */  
.single-content .mainimage {
	margin: 0 auto 5em;
  width: auto;
  aspect-ratio: 1 / 1; /* 例えば「16:9」の比率を維持する */
  overflow: hidden;
}
.single-content .mainimage img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 縦横比を維持したまま、コンテナを完全に覆う */
}

.single-content .mainimage.is-landscape {/* 横長の画像用のコンテナ（is-landscapeクラス） */
    aspect-ratio: 16 / 9; /* 横長の比率に */
}
.single-content .mainimage.is-portrait {/* 縦長の画像用のコンテナ（is-portraitクラス） */
	aspect-ratio: 3 / 4;  /* 縦長の比率に */
	max-width: 400px;     /* 縦長画像が横に広がりすぎないように最大幅を指定（任意） */
}
.single-content .mainimage.is-square {/* 正方形の画像用のコンテナ（is-squareクラス） */
	aspect-ratio: 1 / 1;  /* 正方形の比率に */
	max-width: 500px;     /* 正方形画像が広がりすぎないように最大幅を指定（任意） */
}

/* 基本情報エリア（.basic-info-section）
  ------------------------------------------- */  
.basic-info-section {
	margin-bottom: 5rem;
	padding: clamp(1em, 4vw, 2em);
	background-color: #f8f9fa;
	border-radius: 2.5rem;
	background-color: rgba(255, 173, 121,.3);
}
.contact-section h3,
.basic-info-section h3 { margin-top: .5em;}
.basic-info-section dl {
	margin: auto;
	width: 92%;
}
.basic-info-section dl dt {
	display: inline-block;
	margin: 0 0 .3em;
	width: 100px;
	font-size: 1.45rem;
}
.basic-info-section dl dd {
	display: inline-block;
	margin: 0 0 1.5em;
	font-size: 1.6rem;
	line-height: 1.45;
	font-family: var(--noto-heading-font);
}

/* よくある質問エリア（.faq-section）
  ------------------------------------------- */  
.faq-section .faq-question {
	margin: 1.8em 0 0.85em;
	font-size: 1.6rem;
}
.faq-section .faq-question::before {
  content: '';
  display: inline-block;
  margin:0 .5em;
  width: .67em;
  height: .67em;
  background: var(--page-bg, #f8f9fb);
  background-image: url(../images/headline-ron2.svg);
  background-repeat: no-repeat;
  background-size: 93%,auto;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.faq-section .faq-answer {
/* 	color: #666; */
	padding: 1em;
	padding: clamp(1em, 4vw, 1.75em);
	font-size: 1.65rem;
/* 	font-weight: 600; */
	line-height: 1.65;
	border-radius: 25px;
	border-top-right-radius: 0;
	background-color: rgba(176, 240, 255,.45);
}




@media (min-width: 500px) {
/* ===========================================
  お知らせシングルページ
  =========================================== */
  
/* 基本情報エリア（.basic-info-section）
  ------------------------------------------- */  
.basic-info-section dl .info-item {
    display: flex;
    gap: 1rem; /* dtとddの間隔 */
    margin-bottom: 1.2rem;
}

.basic-info-section dl .info-item dt {
    flex: 0 0 auto; /* 幅を固定 */
    min-width: 110px; /* 最小幅を指定 */
    font-size: 1.5rem;
    font-weight: 700;
}

.basic-info-section dl .info-item dd {
    flex: 1; /* 残りの幅を全て使用 */
    margin: 0; /* デフォルトのmarginをリセット */
    font-weight: 500;
}

}


/* トリガーアラート画像エリア（.trigger-alert）
  ------------------------------------------- */

.trigger-alert-section {
	margin: 4rem 0;
	text-align: center;
}
.trigger-alert-image {
	display: inline-block;
	max-width: 100%;
}
.alert-image {
	width: 100%;
	height: auto;
}

/* お問い合わせエリア（.contact-section）
  ------------------------------------------- */
.contact-section {
	margin: 3rem 0;
	padding: clamp(1em, 4vw, 2em);
	background-color: #f8f9fa;
	border-radius: 2.5rem;
}
.contact-content {
	color: #333;
	font-size: clamp(1.55rem, 4vw, 1.65rem);
	line-height: 1.65;
}
.contact-content h3:first-child { margin-top: 0;}

.contact-content a { color: #007cba;}
.contact-content a:hover {
	color: #005a87;
	text-decoration: underline;
}


/*  プロフィールパターン（.profile）
  ------------------------------------------- */
/* ===========================================
   プロフィールパターン（ベース：スマホ表示）
   =========================================== */
.profile-pattern {
	display: flex;
	margin: 2rem 0;
	padding: 0;
	padding: clamp(1em, 4vw, 2em);
	background-color: #f8f9fa;
	border-radius: 2.5rem;
}
.profile-pattern .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: auto 1fr; /* 写真と名前を横並び */
    grid-template-areas:
        "image header"
        "text text"; /* テキストは下に全幅 */
    gap: 1rem 1.5rem;
    width: 100%;
}

/* 写真 */
.profile-pattern .profile-image {
    grid-area: image;
    margin: 0;
    width: 	100px;
    height: 100px;
}
.profile-pattern .profile-image img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover;
}
/* 名前エリア */
.profile-pattern .profile-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-area: header;
    margin: 0;
    padding: 0;
}

.profile-pattern .profile-header .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0;
}
.profile-pattern .profile-header h4 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.3;
}
.profile-pattern .profile-header .name_kana {
    margin: 0;
    color: #666;
    font-size: 1.35rem;
    line-height: 1.2;
}

/* プロフィール本文 */
.profile-pattern .profile-text {
    grid-area: text;
    margin: 0;
    padding: 0;
}
.profile-pattern .profile-text .wp-block-group__inner-container { padding: 0;}
.profile-pattern .profile-text p {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.6;
}

/* ===========================================
   タブレット以上（769px〜）
   =========================================== */
@media (min-width: 769px) {
    .profile-pattern > .wp-block-group__inner-container {
        grid-template-columns: 120px 1fr; /* 写真幅を固定 */
        grid-template-areas:
            "image header"
            "image text"; /* テキストも右側に配置 */
        gap: 1rem 2rem;
        align-items: start; /* 上部揃え */

    }
    
    .profile-pattern .profile-image {
	    margin-top: 1.5rem;
        width: 120px;
        height: 120px;
    }
    .profile-pattern .profile-header .wp-block-group__inner-container {
	    flex-direction: row;
	    align-items: baseline;
	    gap: 1rem;
    }
    .profile-pattern .profile-header h4 {
        font-size: 2rem;
    }
    
    .profile-pattern .profile-header .name_kana {
        font-size: 1.3rem;
    }
    
    .profile-pattern .profile-text p {
        font-size: 1.5rem;
    }
}



/* ===========================================
  レスポンシブ対応 (モバイルファースト)
  =========================================== */
/* タブレット・PCサイズでの調整 */
@media (min-width: 769px) {
    .modern-share {
        margin: 4rem 0;
        padding: 3rem 0;
    }
    
    .modern-share .share-label {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .modern-share .share-btn {
        width: 52px;
        height: 52px;
    }
    
    .modern-share .share-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .modern-share .share-buttons {
        gap: 1.5rem;
    }
}

@media (min-width: 950px) {
  .post-container { grid-template-columns: 1fr 300px; gap: 40px;}
  .single-sidebar { align-self: start; position: sticky; top: 110px;}
  .single-meta { flex-direction: row; align-items: center; gap: 20px;}
  .nav-links { grid-template-columns: 1fr 1fr; gap: 30px;}
  .nav-next { text-align: right;}
  
  .modern-share .share-btn {
      width: 56px;
      height: 56px;
  }
  
  .modern-share .share-btn svg {
      width: 24px ;
      height: 24px;
  }
  .modern-share .share-btn svg path {
	  width: 100%;
	  height: 100%;
  }
  
  
  .modern-share .share-buttons {
      gap: 1.8rem;
  }
}


/* ===========================================
   固定ページ専用スタイル（page.php用）
   =========================================== */
/* ページヘッダー */
.page-header {
	padding: 0;
	text-align: center;
}
.page-title {
  position: relative;
  display: block;
  margin: 24px;
  margin-inline: auto;
  padding: .45em 2em;
  max-width: 500px;
  font-size: 24px;
  letter-spacing: 0.1em;
  text-align: center; 
  outline: 2px solid #333;
  border-radius: 0 0 1.45rem 0;
}

.page-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: -999;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom:-7px;
  right: -7px;
  border-right: solid 2px #333;
  border-bottom: solid 2px #333;
  width: 98%;
  height: 98%;
  border-radius: 0 0 1.7rem 0;
  z-index: -1;
}

/* ページコンテンツセクション */
.page-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.page-featured-image {
    margin-bottom: 40px;
    text-align: center;
}

.page-thumbnail {
    height: auto;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ページコンテンツ */
.page-content {
	margin-bottom: 50px;
	color: #333;
	font-size: 1.6rem;
	line-height: 1.6;
}
.page-content h1 {
    margin: 2.5em 0 1em;
    padding-bottom: 0.5em;
}
.page-content h2 {
	position: relative;
	margin: 2em 0 1em;
	padding-bottom: 0.3em;
}
.page-content h2:first-child { margin-top: 0;}
.page-id-2 .page-content h2:first-child,
.page-id-15 .page-content h2:first-child,
.page-id-308 .page-content h2:first-child { margin-top: 2em;}

.page-content h2::before,
.page-content h3::before {
	content: ''; 
  display: inline-block;
  margin-right: .5em;
  width: .6em;
  height: .6em;  
  background-color: rgba(146, 144, 144, .35); /* 背景色（青） #f8f9fb */
  background-image: url(../images/headline-ron2.svg); /* SVGアイコン */
  background-repeat: no-repeat;
  background-position: calc(50% + 1px) calc(50% + 1px), auto;
	background-size: 90%,auto;
  border-radius: 50%;
}


.page-content h3 {
    margin: 1.8em 0 0.8em;
    padding-left: 0;
}
.page-content h4 {
    margin: 1.5em 0 0.8em;
}
.page-content p {
    margin-bottom: 1.5em;
}
.page-content ul, .page-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}
/* .page-content li { margin-bottom: 0.8em;} */
.page-content blockquote {
    position: relative;
    margin: 2em 0;
    padding: 2em;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    background: #f8f9fa;
}
.page-content blockquote::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 15px;
    color: #ff6b9d;
    font-size: 4rem;
    opacity: 0.3;
}
.page-content img {
    height: auto;
    max-width: 100%;
    margin: 2em 0;
/*     border-radius: 10px; */
/*     box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
}


/* 固定ページのレスポンシブ対応 */
@media (min-width: 950px) {
	.page-header .container {}
	.page-header .page-title {
/* 		font-size: 3.25rem; */
	}
	.single-title {font-size: 3.1rem;}
}

/* ===========================================
   固定ページ装飾要素（ランダム配置）
   =========================================== */
.page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin:0 auto ; /* 下のマージンを追加 */
    padding: 1rem 0; /* 上下の余白を大きく */
    width: 100%;
    max-width: 760px;
    aspect-ratio: 40 / 15;
}
.page-id-308 .page-header,
.page-id-15 .page-header,
.page-id-2 .page-header {
	padding: 2rem 0; /* 上下の余白を大きく */
    aspect-ratio: 38 / 15;
  background-image: url('../images/decorations/titlebg-deco10.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  overflow: visible;	
}

.page-header .container {
    position: relative;
    z-index: 2; /* 装飾要素より前面に */
}


.decoration {
    position: absolute;
    width: 70px !important; /* トップページと同等サイズ */
    height: 70px !important;
    opacity: 0.8; /* 即座に表示 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1; /* タイトルより背面に */
}

/* 装飾要素のホバー効果 */
.decoration:hover {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* レスポンシブ対応 */
@media (min-width: 769px) {
    .decoration {
        width: 80px !important; /* PCサイズでもトップページと同等 */
        height: 80px !important;
    }
    
    .page-header {
        padding: 6rem 0; /* PCサイズでさらに大きく */
    }
}

@media (min-width:1440px) {
/*   .post-container { gap: 6rem;} */
  .single .post-container,
.page .post-container { max-width: 1200px;}
}


