@charset "UTF-8";
/* ----関数設定---- */
/* ----------------------------------------------------------------------
サブページ共通
---------------------------------------------------------------------- */
#page, #article, #single {
  margin-top: 180px;
}
@media screen and (max-width: 820px) {
  #page, #article, #single {
    margin-top: 140px;
  }
}
@media screen and (max-width: 520px) {
  #page, #article, #single {
    margin-top: 100px;
    margin-bottom: 12rem;
  }
}

.page_title {
  padding-left: 7.5%;
  margin-right: calc(50% - 50vw);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8rem;
}
@media screen and (max-width: 820px) {
  .page_title {
    padding-left: 5%;
  }
}
@media screen and (max-width: 520px) {
  .page_title {
    flex-direction: column-reverse;
    margin-bottom: 6rem;
    padding-left: 0;
  }
}

.title_img {
  width: 64rem;
  height: 24rem;
  border-radius: 500px 0 0 500px;
  background-image: url("../images/contact_title_img@2x.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media screen and (max-width: 1366px) {
  .title_img {
    width: 50rem;
    height: 20rem;
  }
}
@media screen and (max-width: 820px) {
  .title_img {
    width: 40rem;
    height: 16rem;
  }
}
@media screen and (max-width: 520px) {
  .title_img {
    width: 100%;
    border-radius: 0;
    height: 16rem;
  }
}

/*title_img分岐*/
#page:has(#staff) .title_img {
  background-image: image-set(url("../images/title_img_staff.webp") 1x, url("../images/title_img_staff@2x.webp") 2x);
  background-position: center -3px;
}
#page:has(#office) .title_img {
  background-image: image-set(url("../images/title_img_office.webp") 1x, url("../images/title_img_office@2x.webp") 2x);
}
#page:has(#recruit) .title_img {
  background-image: image-set(url("../images/title_img_recruit.webp") 1x, url("../images/title_img_recruit@2x.webp") 2x);
}
#page:has(#service.roumu) .title_img {
  background-image: image-set(url("../images/title_img_roumu.webp") 1x, url("../images/title_img_roumu@2x.webp") 2x);
}
#page:has(#service.tetsuzuki) .title_img {
  background-image: image-set(url("../images/title_img_tetsuzuki.webp") 1x, url("../images/title_img_tetsuzuki@2x.webp") 2x);
}
#page:has(#service.kyuyo) .title_img {
  background-image: image-set(url("../images/title_img_kyuyo.webp") 1x, url("../images/title_img_kyuyo@2x.webp") 2x);
}
#page:has(#service.shugyo) .title_img {
  background-image: image-set(url("../images/title_img_shugyo.webp") 1x, url("../images/title_img_shugyo@2x.webp") 2x);
}
#page:has(#service.consulting) .title_img {
  background-image: image-set(url("../images/title_img_consulting.webp") 1x, url("../images/title_img_consulting@2x.webp") 2x);
}
#page:has(#service.fees) .title_img {
  background-image: image-set(url("../images/title_img_fees.webp") 1x, url("../images/title_img_fees@2x.webp") 2x);
}
#page:has(#security) .title_img {
  background-image: image-set(url("../images/title_img_security.webp") 1x, url("../images/title_img_security@2x.webp") 2x);
}

#article.info .title_img {
  background-image: image-set(url("../images/title_img_info.webp") 1x, url("../images/title_img_info@2x.webp") 2x);
}

#single.info .title_img {
  background-image: image-set(url("../images/title_img_info.webp") 1x, url("../images/title_img_info@2x.webp") 2x);
}

.page_inner {
  width: 85%;
  max-width: 1200px;
  margin-inline: auto;
}
@media screen and (max-width: 520px) {
  .page_inner {
    width: 90%;
  }
}

.h2_wrapper {
  color: var(--color-blue);
}
.h2_wrapper h2 {
  font-size: max(4.8rem, 36px);
  margin-bottom: 2rem;
}
.h2_wrapper .subtitle {
  font-size: max(2rem, 14px);
  font-family: "EB Garamond", serif;
  letter-spacing: 0.05em;
}
@media screen and (max-width: 1366px) {
  .h2_wrapper h2 {
    font-size: max(4rem, 30px);
  }
}
@media screen and (max-width: 520px) {
  .h2_wrapper {
    margin: 3rem auto 0 5%;
  }
  .h2_wrapper h2 {
    font-size: max(3rem, 24px);
    margin-bottom: 1rem;
  }
  .h2_wrapper .subtitle {
    font-size: 14px;
  }
}

.h3_wrapper h3 {
  font-size: max(3.2rem, 24px);
  font-weight: 700;
  margin-bottom: 3.5rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--color-blue);
}
@media screen and (max-width: 1366px) {
  .h3_wrapper h3 {
    font-size: max(2.8rem, 24px);
    margin-bottom: 1.5rem;
  }
}
@media screen and (max-width: 820px) {
  .h3_wrapper h3 {
    margin-bottom: 1.8rem;
  }
}
@media screen and (max-width: 520px) {
  .h3_wrapper h3 {
    font-size: max(2rem, 20px);
    margin-bottom: 1rem;
  }
}

.h4_wrapper {
  position: relative;
  padding-left: 2.3rem;
}
.h4_wrapper h4 {
  font-weight: 700;
  font-size: max(2.4rem, 20px);
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: #333;
  margin-bottom: 3rem;
}
.h4_wrapper::before {
  content: "";
  background-image: url("../images/h4_square.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 12px;
  height: 12px;
  position: absolute;
  top: 7px;
  left: 0;
}
@media screen and (max-width: 1366px) {
  .h4_wrapper h4 {
    margin-bottom: 1.3rem;
  }
}
@media screen and (max-width: 820px) {
  .h4_wrapper {
    padding-left: 20px;
  }
  .h4_wrapper h4 {
    margin-bottom: 2.2rem;
  }
}
@media screen and (max-width: 520px) {
  .h4_wrapper h4 {
    font-size: max(1.8rem, 18px);
    margin-bottom: 0.9rem;
  }
}

.h5_wrapper {
  margin-bottom: 1.2rem;
}
.h5_wrapper h5 {
  font-weight: 700;
  font-size: max(2rem, 18px);
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--color-blue);
}

section {
  margin-bottom: 16rem;
}
section:last-child {
  margin-bottom: 0;
}
@media screen and (max-width: 1300px) {
  section {
    margin-bottom: 8rem;
  }
}
@media screen and (max-width: 520px) {
  section {
    margin-bottom: 6rem;
  }
}

.sec_box:has(~ .sec_box) {
  margin-bottom: 12rem;
}
@media screen and (max-width: 1024px) {
  .sec_box:has(~ .sec_box) {
    margin-bottom: 8rem;
  }
}
@media screen and (max-width: 520px) {
  .sec_box:has(~ .sec_box) {
    margin-bottom: 6rem;
  }
}

.sec_box2 {
  margin-top: 5rem;
}

.page_inner2 {
  width: 85%;
  max-width: 1440px;
  margin-inline: auto;
  display: flex;
  gap: 8rem;
  justify-content: space-between;
  align-items: flex-start;
}
@media screen and (max-width: 1366px) {
  .page_inner2 {
    gap: 6rem;
  }
}
@media screen and (max-width: 1300px) {
  .page_inner2 {
    flex-direction: column;
  }
}
@media screen and (max-width: 820px) {
  .page_inner2 {
    gap: 6rem;
    width: 90%;
  }
}

#auto_headings {
  flex-shrink: 0;
  position: sticky;
  top: 120px;
}
@media screen and (max-width: 1300px) {
  #auto_headings {
    position: relative;
    top: 0;
  }
}

/* 目次全体 */
.toc {
  width: 32rem;
  /* h4 リスト（アコーディオン部分） */
}
.toc .toc_list, .toc .toc_sub_list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc .toc_item {
  border-bottom: 1px solid var(--color-blue);
  padding: 1.5rem 0;
}
.toc .toc_item.has_children .toc_link {
  border-right: 1px solid #ccc;
}
.toc .toc_row {
  display: flex;
  align-items: center;
}
.toc .toc_link {
  flex: 1 1 auto;
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 4rem 0.5rem 0;
  position: relative;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-size: max(1.4rem, 14px);
}
.toc .toc_link::after {
  content: "";
  height: 16px;
  width: 16px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translatey(-50%);
  background-image: url("../images/arrow_r.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
@media (hover: hover) and (pointer: fine) {
  .toc .toc_link:hover {
    text-decoration: underline;
  }
}
.toc .toc_toggle_btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: calc(1em + 1rem);
  cursor: pointer;
  position: relative;
}
.toc .toc_toggle_btn::before {
  content: "";
  right: 10px;
  width: 16px;
  height: 16px;
  position: absolute;
  background-image: url("../images/toc_plus.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 0.3s;
}
.toc .toc_toggle_btn::after {
  content: "";
  right: 10px;
  width: 16px;
  height: 16px;
  position: absolute;
  background-image: url("../images/toc_minus.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s;
}
.toc .toc_item_h3.is_open > .toc_row .toc_toggle_btn::before {
  opacity: 0;
}
.toc .toc_item_h3.is_open > .toc_row .toc_toggle_btn::after {
  opacity: 1;
}
.toc .toc_toggle_btn:focus {
  outline: 2px solid #9ad;
  outline-offset: 2px;
}
.toc .toc_sub_list {
  margin-left: 2rem;
  overflow: hidden;
  padding: 2.5rem 2rem 2.5rem 3rem;
  width: calc(100% + 2rem);
  background-color: #f2f2f2;
  border-radius: 8px;
  margin-top: 2.5rem;
}
.toc .toc_item_h4 {
  padding: 0;
  border: none;
}
.toc .toc_item_h4 a {
  display: block;
  padding: 1.2rem 4rem 1.2rem 0;
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 400;
  position: relative;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-size: max(1.4rem, 14px);
}
.toc .toc_item_h4 a::after {
  content: "";
  height: 16px;
  width: 16px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translatey(-50%);
  background-image: url("../images/arrow_r.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
@media (hover: hover) and (pointer: fine) {
  .toc .toc_item_h4 a:hover {
    text-decoration: underline;
  }
}
@media screen and (max-width: 1366px) {
  .toc {
    width: 240px;
  }
  .toc .toc_item {
    padding: 1rem 0;
  }
  .toc .toc_sub_list {
    width: 100%;
    margin-bottom: 1rem;
    padding: 2rem;
    margin-left: 0;
    margin-top: 1.5rem;
  }
}
@media screen and (max-width: 1300px) {
  .toc {
    display: none;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
  }
  .toc .toc_sub_list {
    width: calc(100% - 2.5rem);
  }
}
@media screen and (max-width: 520px) {
  .toc .toc_item {
    padding: 10px 0;
  }
  .toc .toc_sub_list {
    padding: 1.5rem 1rem 1.5rem 2rem;
  }
  .toc .toc_item_h4 a {
    padding: 0.5rem 4rem 0.5rem 0;
  }
}

.error {
	margin-bottom: 12rem;
}
.error p {
	line-height: 1.5;
	text-align: center;
}
.link_btn.btn_red { margin-top: 8rem;}
.link_btn.btn_red a {
  display: block;
  color: #fff;
  background-color: var(--color-red);
  padding: 24px 50px 24px 4rem;
  max-width: 400px;
  position: relative;
  line-height: 1.5;
  border-radius: 3px;
	border: 1px solid var(--color-red);
}
.link_btn.btn_red a span {
	position: relative;
	z-index: 2;
}
.link_btn.btn_red a::after {
  content: "";
  height: 7px;
  width: 30px;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translatey(-50%);
  background-image: url("../images/btn_arrow_w.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
@media (hover: hover) and (pointer: fine) {
	.link_btn.btn_red a:hover {
		color: var(--color-red);
	}
	.link_btn.btn_red a:hover::after {
		background-image: url("../images/btn_arrow_r.svg");
	}
  .link_btn.btn_red a::before {
    content: "";
    width: 0%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s;
  }
  .link_btn.btn_red a:hover::before {
    width: 100%;
    transform-origin: left;
  }
}
@media screen and (max-width: 520px) {
  .link_btn.btn_red a {
    font-size: 14px;
    padding: 20px 50px 20px 2rem;
  }
}