/*
Theme Name: QUADRA CHILD
Template: quadra_biz001
Version:1.0
*/

body {
  font-family: "Noto Sans JP", sans-serif !important;
  min-width: 1370px !important;
}
html body {
  font-family: "Noto Sans JP", sans-serif !important;
}

.site_description {
  font-weight: bold;
  color:white;
}

.header_top_inner {
  max-width: 1800px !important;
}

#header_logo {
  margin-left: 0 !important;
  padding-left: 10px;
}

.header_bottom {
  border-top-color: #00c4b1 !important;
  border-bottom: 8px solid #003042;
  position: relative !important;
  z-index: 1 !important;
}

#global_menu {
  position: relative !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 20px !important;
  z-index: 2 !important;
}

/* タブ幅 */
#global_menu ul {
  width: 68% !important;
}

#global_menu li {
  margin-right: 30px;
}

#global_menu ul li a {
  background: #003042;
  border-radius: 8px 8px 0 0 !important;
  width: 30px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  font-size: 18px !important;
  letter-spacing: 0.5rem !important;
}

#global_menu .menu-item.current-menu-item a {
  background: white !important;
  color: #003042 !important;
  position: relative !important;
  z-index: 10 !important;
  margin-bottom: -8px !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

#main_contents.left {
    background: none !important;
}

.front_page_wrapper {
	max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

#front_page_contents {
	width: 60% !important;
	margin-right: 0px 0px 0px 30px !important;
	padding: 80px 0 150px !important;
}

.toc_widget_wrap.styled {
    overflow: visible !important;
}

.toc_widget_wrap.styled .toc_wrap.parent {
    overflow: visible !important;
}

.toc_title {
    display: none !important;
}

html, body {
  overflow-x: visible !important;
}

.sidebar_area {
  width: 20% !important;
  min-width: 280px !important;/* 最小幅を確保 */
  max-width: 400px !important; /* 必要なら */
  box-sizing: border-box !important;
}


.tcd_toc_widget.sticky {
  background: #fff; /* 必須: 固定要素は背景が必要 */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* 任意 */
  border-radius: 8px;
  width: 100% !important;
  box-sizing: border-box !important;
}

.tcd_toc_widget.sticky.tcd_toc_widget {
  padding: 40px 20px 40px 20px !important;
  border-radius: 6px !important;
  width: 380px !important;
}

.toc_link {
  background: #fff;
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: 0.2s ease;
  display: block;
  color: #333;
}

.toc_link:hover {
  background: #e0f7f5;
  border-left: 3px solid #00c4b3;
}

.toc_link.is-active-link {
  background: #00c4b3 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  font-weight: bold !important;
}

.toc_wrap.child .toc_link {
  background: #fff;
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: height 0.3s ease;
  overflow: hidden;
  display: block;
  color: #333;
}

.toc_wrap.child .toc_link:hover {
  background: #e0f7f5;
  color: #00c4b3;
}

.toc_wrap.child .toc_link.is-active-link {
  background: #e0f7f5;
  color: #0042;
  font-weight: bold;
  border-left: 4px solid #00c4b3;
}

.toc-section {
  display: none;
}
.toc-section.active {
  display: block;
}

.toc_wrap.child {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
}

.toc_wrap.child.open {
  height: auto; /* JavaScriptがここに実際の高さを設定する */
}

.toc_wrap.child.show {
  display: block;
}

.toggle_icon {
  float: right;
  font-weight: bold;
  cursor: pointer;
}

.toc_toggle {
  font-weight: bold;
  cursor: pointer;
}

/* button */
.section_nav {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.section_nav button {
  background-color: #00c4b3;
  color: white;
  border: none;
  padding: 10px 24px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

.section_nav button:hover {
  background-color: #009f91;
}

/* 固定ページ */
.archive_header_title_wrap {
  display: none;
}

.post_content {
	padding-left: 1em !important;
}

.post_content h2, 
.post_content h3 {
  font-weight: bold !important;
  line-height: 1.3 !important;
  display: inline-block !important;
  position: relative !important;
  padding-bottom: 0.2em !important;
}

/* h2 */
.post_content h2 {
  font-size: 2rem !important;
  color: #00bfa5 !important;
}

.post_content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.3em;
  background: #e0f7f4;
  border-radius: 2px;
  z-index: -1;
}

/* h3 */
.post_content h3 {
  font-size: 1.8rem !important;
  color: #009688 !important;
}

.post_content h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.2em;
  background: #d9f2f0;
  border-radius: 2px;
  z-index: -1;
}

/* h4 */
h4 {
  font-weight: bold !important;
  font-size: 1.3em !important;
  border-left: 4px solid #26c6da !important;
  padding-left: 0.5em !important;
  margin-top: 1em !important;
  color: #333 !important;
}

/* 吹き出し */
.balloon-left {
  display: flex;
  align-items: flex-start;
  margin: 2em 0;
}

.post_content p {
  margin: 0 0 1em 0 !important;
}

.balloon-left .icon {
  width: 70px;
  height: 70px;
  margin-right: 0;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

/* 吹き出し部分 */
.balloon-left .text {
  background: #e0f7f5;
  border-radius: 16px;
  padding: 1.2em 1.5em;
  position: relative;
  margin-left: 16px;
  font-size: 1em;
  line-height: 1.8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* 三角形の吹き出し矢印 */
.balloon-left .text::before {
  content: '';
  position: absolute;
  top: 30px;
  left: -16px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent #e0f7f5 transparent transparent;
}

#global_menu_border {
	display: none !important;
}

/* Coming Soon */
body.page-id-49 .post_content > * ,
body.page-id-50 .post_content > * {
  display: none !important;
}

body.page-id-49 .front_page_wrapper,
body.page-id-50 .front_page_wrapper {
	background-color : #f4f4f4;
	margin: 0 !important;
	max-width: none !important;
}

body.page-id-49 .sidebar_area,
body.page-id-50 .sidebar_area {
  display: none !important;
  width: 0 !important;
}

body.page-id-49 .post_content::before,
body.page-id-50 .post_content::before {
  content: "Coming Soon...";
  display: block;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #00bfa5;
  padding: 50px 0;
}

body.page-id-49 #front_page_contents,
body.page-id-50 #front_page_contents {
  padding: 200px 0 200px !important;
}

.message-box {
  background: #f0f8f7;
  border-left: 4px solid #00bfa5;
  padding: 1em;
  margin: 1em 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.message-box p {
  margin: 0 0 0.4px 0 !important;
  font-size: 1rem;
}


@media screen and (max-width: 1024px) {
 .sidebar_area {
    width: 100% !important;
    min-width: auto !important;
  }
  .tcd_toc_widget.sticky {
    position: static !important;
    width: 100% !important;
  }
}

#menu-item-68 {
 display: none;
}

.toc_item {
	margin-top : 1em !important;
}