/*
記事ページのみで使用する独自スタイル
*/

.bread-comb {
  font-size: 12px;
  margin-bottom: 20px;
}

#bread-crumb-list{
  list-style-type: none;
  margin: 0;
}

#bread-crumb-list li {
  display: inline;
}

.bread-comb a:hover {
  text-decoration: underline;
}

.p_singleContent {
  width: 100%;
  font-size: 16px;
  line-height: 1.8;
}

.p_singleContent p {
  margin-bottom: 20px;
}

.post h1 {
  font-size: 28px;
}

.p_singleContent h1 {
  font-size: 28px;
  font-weight: bold;
}

.p_singleContent h2 {
  padding: 0.7rem;
  margin-bottom: 1rem;
  font-size: 22px;
  font-weight: bold;
  line-height: 28px;
  background-color: #daecf0;
  scroll-margin-top: 160px;
}

.p_singleContent h3 {
  border-bottom: solid 2px #daecf0;
  padding: 6px 0 6px 0;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
  line-height: 28px;
  scroll-margin-top: 160px;
}

.p_singleContent h4 {
  position: relative;
  margin: 1rem 0;
  padding-left: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  scroll-margin-top: 160px;
}

.p_singleContent h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 26px;
  background: #2f4fa8;
  border-radius: 3px;
}

.p_singleContent h5 {
  font-size: 17px;
  line-height: 1.4;
  padding-left: 8px;
  font-weight: bold;
  margin-left: 3px;
  scroll-margin-top: 160px;
}

.p_singleContent h5:before {
  content: "●";
  margin-right: 3px;
  color: #9bcfff;
  font-weight: bold;
}

.p_singleContent h6 {
  font-size: 16px;
  line-height: 1.2;
  color: #002053;
  border-left: 1px solid #002053;
  padding-left: 10px;
  font-weight: bold;
  margin-left: 3px;
  scroll-margin-top: 160px;
}

/* アイコン関連 */
.article-tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.article-tools a:hover {
  opacity: 0.7;
}

.a-tooltip {
  position: relative;
  cursor: pointer;
}

.a-tooltip:hover .a-tooltip-text {
  opacity: 1;
  visibility: visible;
}

.a-tooltip-text {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 32px;
  display: inline-block;
  padding: 3px;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.3;
  background: #333;
  color: #fff;
  border-radius: 2px;
  transition: 0.3s ease-in;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: auto;
}

.x-share {
  width: 22px;
  height: 22px;
  background-color: #000000ff;
  padding: 5px;
  border-radius: 2px;
}

.fb-share {
  width: 22px;
  height: 22px;
}
/* アイコン関連ここまで */

.p_singleContent img.left,
.p_singleContent img.alignleft,
.p_singleContent img.right,
.p_singleContent img.alignright,
.wp-caption .alignright {
  width: 100%;
}

.p_singleContent img.left,
.p_singleContent img.alignleft,
.p_singleContent img.right,
.p_singleContent img.alignright,
.wp-caption .alignright {
  width: 100%;
}

.p_singleContent img.left,
.p_singleContent img.alignleft,
.wp-caption.alignleft {
  margin: 0.3em 1.571em 0.5em 0;
  display: block;
  float: left;
  text-align: center;
}

.p_singleContent img.right,
.p_singleContent img.alignright,
.wp-caption.alignright {
  margin: 0.3em 0 0.5em 1.571em;
  display: block;
  float: right;
}

.p_singleContent img.center,
.p_singleContent img.aligncenter,
.wp-caption.aligncenter {
  margin: 0.3em auto 1em auto;
  display: block;
}

.p_singleContent img.aligncenter,
.p_singleContent img.alignnone {
  display: block;
  clear: both;
  margin: 1rem auto;
}

.before_toc_section {
  font-size: 80%;
  font-weight: bold;
}

.p_singleContent a,
.media-library-content a,
.area-content a {
  color: #003399;
  font-weight: 500;
  text-decoration: underline;
}

.p_singleContent a:hover,
.media-library-content a:hover,
.area-content a:hover {
  color: #003399;
  text-decoration: none;
}

/* 目次CSS上書き */
#toc_container {
  margin-top: 32px;
  -webkit-border-top-left-radius: 8px;
  -webkit-border-top-right-radius: 8px;
  -moz-border-radius-topleft: 8px;
  -moz-border-radius-topright: 8px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border: 1px dashed #aaa;
}

#toc_container {
  background: #fff;
  border: 2px solid #daecf0;
  border-radius: 8px;
  min-width: 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#toc_container p.toc_title {
  background-color: #fff;
}

.default_single_post ul,
.default_page_post ul {
  margin: 1.5em 0 1.571em 1.9em;
  list-style-type: square;
}

.default_single_post ol,
.default_page_post ol {
  margin: 1.5em 0 1.571em 1.9em;
  list-style-type: decimal;
}

.default_single_post ul ul,
.default_page_post ul ul,
.default_single_post ol ol,
.default_page_post ol ol,
.default_single_post ul ol,
.default_page_post ul ol,
.default_single_post ol ul,
.default_page_post ol ul {
  margin-top: 0;
  margin-bottom: 0;
}

.default_single_post p {
  margin-bottom: 20px;
}

.default_single_post table td p {
  margin-bottom: 0;
}

.summary {
  background: #eaf3f5;
  margin: 0 0 18px 0;
  border-radius:6px;
  -moz-border-radius:6px;
  -webkit-border-radius:6px;
  padding-bottom: 1.5rem;
}

.summary dt {
  display: block;
  float: none;
  width: auto;
  padding: 2% 0 1% 5%;
  text-align: left;
}

.summary dd {
  display: block;
  margin: 0 3% 0 3%;
}

.summary li {
  margin: 0 0 8px 0;
  list-style: disc;
}

.summary li::marker {
  color: #c7c7c7;
  font-size: 1.2em;
}

.p_singleMeta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

/* カテゴリ・タグ 表示 */
.p_singleMeta_categoryTag {
  grid-area: 1 / 1 / 2 / 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
  margin-bottom: 10px;
}

.p_singleMeta_dateTag {
  font-size: 12px;
}

.p_singleMeta_sponsored {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid  #adadad;
  border-radius: 5px;
	font-size: 12px;
	color: #666666;
	line-height: 1.5;
}

.p_singleMeta_category {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid #d8ebf8;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  color: #003399;
  line-height: 1.5;
  text-decoration: none;
  background: #d8ebf8;
}

.p_singleMeta_tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 14px;
  border: 1px solid #b4d8f3;
	border-radius: 20px;
	font-size: 12px;
  font-weight: bold;
	color: #003399;
	line-height: 1.5;
	text-decoration: none;
}

.p_singleMeta_tag::before {
  content: "\f02b";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  color: #b4d8f3;
  transform: translateY(10%) rotate(80deg);
}

.p_singleMeta_supervisor {
  grid-area: 2 / 1 / 3 / 3;
}

.p_singleMeta_supervisorLink {
  color: #003399;
  font-size: 12px;
  font-weight: bold;
}

.p_singleMeta_supervisorLink:hover {
  text-decoration: underline;
}

.p_singleMeta_date {
  grid-area: 3 / 1 / 4 / 2;
}

.p_singleMeta_sns {
  grid-area: 2 / 2 / 4 / 3;
  align-self: end;
}

.p_singleMeta_entrepreneurDate {
  font-size: 12px;
}

/* 関連記事上書き */
.related_story_background {
  background: #d7ecff;
}
.related_story {
  padding: 1rem 2rem;
  border: none;
  border-radius: 0;
  box-shadow: 2px 2px 4px #e0e0e0;
}

.toc_list a {
  position: relative;
  padding-left: 2em;
}

.toc_list a::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url('/wp-content/themes/techo-web/images/renewal/single/mokuji_icon.webp') no-repeat;
  background-size: 20px;
  position: absolute;
  transition: all 0.2s;
  top: 50%;
  left: 0px;
  transform: translateY(-50%);
}

.toc_list > li > ul li a:before {
  content:none;
}

.toc_list > li > a {
  font-weight: bold;
  font-size: 16px;
}

.toc_list > li > ul > li > a {
  font-weight: medium;
  font-size: 14px;
}

.toc_list > li > ul > li > ul > li > a {
  font-weight: medium;
  font-size: 12px;
}

/* --- 矢印アイコン --- */
.p_single_highlight {
  padding-left: 1em;
  position: relative;
  }
  
  .p_single_highlight::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url("/wp-content/themes/techo-web/images/renewal/single/yudo_icon.webp") no-repeat 0px 0px;
  background-size: 20px;
  position: absolute;
  transition: all 0.2s;
  top: 50%;
  left: 0px;
  transform: translateY(-50%);
  }
  
  .p_single_mark {
  background: linear-gradient(transparent 70%, #ece341 50%);
  font-weight: 600;
  }

/* ヘッダーナビ */
/* ナビゲーション全体のコンテナ */
.p_singleheader-nav {
  background-color: #d8ebf8;
  width: 100%;
  overflow-x: auto; /* 横スクロールを許可 */
  -webkit-overflow-scrolling: touch; /* スマホでの慣性スクロール */
  margin-bottom: 1rem;
}

/* スクロールバーを非表示にする */
.p_singleheader-nav::-webkit-scrollbar {
  display: none;
}

/* リストのスタイル */
.p_singlenav-list {
  display: flex;
  justify-content: left;
  list-style: none;
  margin: 0;
  padding: 15px 10px;
  white-space: nowrap;
}

/* 各メニュー項目 */
.p_singlenav-item {
  padding: 0 15px;
}

/* リンクのテキストスタイル */
.p_singlenav-item a {
  text-decoration: none;
  color: #1a4a9c;
  font-weight: bold;
  font-size: 14px;
}

/* ホバー時の演出（PC用） */
.p_singlenav-item a:hover {
  opacity: 0.7;
}

mark {
  padding: 1px 6px;
  margin: 0 2px;
  color: black;
  background: linear-gradient(transparent 50%, #c3e2ff 50%);
}

strong, b {
  font-weight: bold;
}

.p_cardRelatedStory {
  background-color: #d7ecff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0;
  box-shadow: 2px 2px 4px #e0e0e0;
}

/* ============================================
   関連記事をもっと見る
   ============================================ */

.p_cardRelatedStory_title {
  font-weight: bold;
  font-size: 20px;
}

.p_cardRelatedStory_link {
  display: block;
  color: #003399;
  font-weight: 600;
  text-decoration: underline;
}

.p_cardRelatedStory_link::before {
  content: "● ";
}

/* ============================================
   プロフィール欄
   ============================================ */
.p_interviewBlock {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  padding: 15px;
  border: 1px solid #d7ecff;
  background-color: #d7ecff;
}

.p_interviewBlock_noImg {
  padding: 15px;
  border: 1px solid #d7ecff;
  background-color: #d7ecff;
}

.p_interviewKikite {
  border: 1px solid #b2b2b2;
  background-color: #fff;
}

.p_interviewBlockImg {
  grid-area: 1 / 1 / 2 / 2;
  margin-right: 1rem;
}

.p_interviewBlockTitle {
  grid-area: 1 / 2 / 2 / 3;
}

.p_interviewBlockName {
  margin-bottom: 1rem;
  font-weight: bold;
}

.p_interviewBlockPosition {
  font-weight: bold;
  color: #003399;
}

.p_interviewBlockPosition:hover {
  text-decoration: underline;
}

.p_interviewBlockProfile {
  grid-area: 2 / 1 / 3 / 3;
  margin-top: 1rem;
}

.p_interviewBlockProfile_detail {
  font-size: 14px;
}

/* ============================================
   編集部コメント
   ============================================ */
.p_editorComment {
  border: 1px solid #cbcbcb;
  padding: 10px;
}

.p_editorComment_title {
  display: inline-block;
  background-color: #003399;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 0px 5px;
  margin-bottom: 5px;
}

.menu-mobile:after {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: "\f0c9";
  font-size: 1.6rem;
  padding: 0;
  top: -30px;
  float: right;
  right: 15px;
  -webkit-transform: translateY(-25%);
  -ms-transform: translateY(-25%);
  transform: translateY(-25%);
  color: #003399;
}

.side_scroll_table table th {
  padding: 5px 5px 5px 10px;
  border: 1px solid #cbcbcb;
}

.side_scroll_table table td {
  padding: 5px 5px 5px 10px;
  border: 1px solid #cbcbcb;
}

blockquote {
  border: 1px solid #cdcdcd;
  border-left: 9px solid #379fff;
}

blockquote p {
  padding: 5px;
  margin-bottom: 0px !important;
}

.p_singleEditorComment {
  border: 1px solid #cdcdcd;
  padding: 10px;
}

.p_singleEditorComment_title {
  background-color: #003399;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 10px;
}

@media (min-width: 768px) {
  .l_header_wrap {
    position: static;
    border-bottom: none;
  }
  
  .g_navi_wrap {
    position: static;
    width: auto;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
  }

  .p_singleheader-nav {
    margin-bottom: 0;
  }

  .p_singlenav-list {
    justify-content: center;
  }

  .p_singleMeta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
  }

  .p_singleMeta_categoryTag {
    grid-area: 1 / 1 / 2 / 3;
  }

  .p_singleMeta_date {
    grid-area: 2 / 1 / 3 / 2;
  }

  .p_singleMeta_supervisor {
    grid-area: 3 / 1 / 4 / 2;
  }

  .p_singleMeta_sns {
    grid-area: 2 / 2 / 3 / 3;
  }

  .p_interviewBlock {
    grid-template-columns: repeat(2, 1fr);
	}

	.p_interviewBlockImg {
    grid-area: 1 / 1 / 3 / 2;
	}

	.p_interviewBlockTitle {
		grid-area: 1 / 2 / 2 / 3;
    min-width: 640px;
	}

	.p_interviewBlockProfile {
		grid-area: 2 / 2 / 4 / 3;
	}

  .c_block_row .c_card:last-of-type {
    display: none;
  }
}

/* megamenu.jsが動的に.menu-mobileを挿入し高さが発生するため、
   g_navi_wrapをフローから外して灰色線と薄青ナビの間の空白を除去 */
.l_header_wrap {
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}
.g_navi_wrap {
  position: absolute;
  width: 100%;
  border: none;
  background: transparent;
}

@media (max-width: 768px) {
  .toc_list a {
    padding-left: 1.6em;
  }

  .toc_list a::before {
    top: 12px;
  }

  .p_single_highlight {
    padding-left: 1.5em;
  }
}
