:root {
  --font_style: "Noto Sans JP", sans-serif;
  --font_style--serif: "Noto Serif JP", serif;
  --thema-blue: #004172;
  --thema-blue-light: #f0f3f8;
  --thema-blue-medium: #c0cfdd;
  --thema-gold: #d3af75;
  --thema-red: #bf4e70;
  --theme-black-dark: #001921;
  --theme-black-light: #9d9d9d;
  --border-color: #d5d5d5;
  --svg--dark: brightness(0) saturate(100%) invert(9%) sepia(28%)
    saturate(2145%) hue-rotate(153deg) brightness(93%) contrast(106%);
  --svg--white: brightness(0) saturate(100%) invert(100%) sepia(0%)
    saturate(7500%) hue-rotate(164deg) brightness(106%) contrast(106%);
}
:where(figure) {
  margin: 0;
}
.grecaptcha-badge {
  visibility: hidden;
}

html {
  /* font-size: 62.5%; */
  font-size: 100%;
  font-family: var(--font_style);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.1em;
  line-height: 1.5;
  scroll-behavior: smooth;
}
body {
  color: var(--theme-black-dark);
  font-family: var(--font_style);
  font-size: 1rem;
  transform: none;
}
br.only--sp {
  display: none;
}
@media screen and (max-width: 768px) {
  br.only--sp {
    display: block;
  }
}
footer a[href^="tel:"] {
  color: #fff;
  text-decoration: none;
}

/* .section__body--wp > p,
.section__body--wp > .wp-block-list,
.fade-slide-up {
  opacity: 0;
  transform: translateY(120px);
  transition: all 0.6s ease;
}

.section__body--wp > p.is-visible,
.section__body--wp > .wp-block-list.is-visible,
.fade-slide-up.is-visible {
  opacity: 1;
  transform: translateY(0);
} */

/**
 * ================================================================================
 * header
 * 
 * ================================================================================
 */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  width: 100%;
  z-index: 20;
  transition: background-color 0.3s ease;
  background-color: transparent;
  transform: translateZ(0);
  background-color: #fff;
}
.header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
}
body.admin-bar #header {
  top: 32px;
}

@media screen and (max-width: 840px) {
  #header {
    padding: 0;
    flex-wrap: wrap;
  }
  body.open #header {
    height: 100%;
    bottom: 0;
    align-items: flex-start;
  }
  body.admin-bar #header.scrolled {
    top: 0;
  }
}

/**
      * logo
      * -------------------------------
      */

.siteLogo {
  display: flex;
  align-items: center;
  gap: 16px;
}
#header .siteLogo {
  padding: 8px 40px;
}
.siteLogo__image {
  width: 44px;
  aspect-ratio: 1/1;
  display: block;
}
.siteLogo__text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--theme-black-dark);
}
.siteLogo__subtitle {
  font-family: var(--font_style--serif);
  font-size: 12px;
  font-weight: bold;
}
.siteLogo__title {
  font-family: var(--font_style--serif);
  font-size: 20px;
  font-weight: bold;
}

@media screen and (max-width: 1240px) {
  #header .siteLogo {
    padding: 4px 24px;
    height: 64px;
  }
  .siteLogo__text {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  .siteLogo__text .siteLogo__subtitle {
    font-size: 10px;
  }
  .siteLogo__text .siteLogo__title {
    font-size: 14px;
  }
  #header.open .siteLogo__image {
    filter: var(--svg--white);
  }
  #header.open .siteLogo__text {
    color: #fff;
  }
}

@media screen and (max-width: 768px) {
  .siteLogo__image {
    width: 32px;
  }
}
@media screen and (max-width: 414px) {
  .siteLogo__text {
    flex-direction: column;
    gap: 0;
  }
}

/**
    * menu nav
    * -------------------------------
    */
.header__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__menu .btn.btn--contact {
  padding: 26px 24px;
  background-color: var(--thema-blue);
  color: #fff;
  font-weight: bold;
  transition: 0.5s;
}
.header__menu .btn.btn--contact:hover {
  background-color: var(--theme-black-dark);
}

@media screen and (max-width: 1240px) {
  #header.open .header__menu .btn.btn--contact {
    background-color: #b08d57;
    max-width: 460px;
    margin: 32px auto 0;
    width: 100%;
    text-align: center;
  }
}

.menu__list {
  display: flex;
  align-items: center;
  gap: 24px;
}
header .menu__list {
  gap: 32px;
}
.menu__item {
  position: relative;
  width: 100%;
}
#header:not(.open) .menu__item--spOnly {
  display: none;
}
footer .btn--contact {
  display: none;
}
.menu__item > .menu__link {
  display: block;
  white-space: nowrap;
  color: var(--black);
  font-family: var(--font_style--en);
  cursor: pointer;
  position: relative;
  line-height: 2;
  font-weight: 600;
  /* transition: transform 0.2s ease; */
  transition: 0.5s;
}

#header .menu__link::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right top;
}
#header .menu__dropdown .menu__link::before {
  display: none;
}

/* ホバー時のスタイル */
@media screen and (min-width: 1025px) {
  #header .menu__link:hover::before {
    transform-origin: left top;
    transform: scaleX(1);
  }
}
@media screen and (max-width: 1024px) {
  #header .menu__link:hover {
    /* opacity: 0.5; */
    color: #80a0b8;
  }
}
/**
    * ドロップダウンメニュー
    * -------------------------------
 **/
.menu__item > .menu__link.menu__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu__toggle::after {
  background-image: url(../img/icon-arrow.svg);
  content: "";
  width: 10px;
  height: 10px;
  display: block;
  background-size: cover;
  filter: var(--svg--dark);
}
#header .menu__dropdown .toggle__link {
  display: flex;
  gap: 8px;
  color: var(--theme-black-dark);
  white-space: nowrap;
  align-items: center;
  font-weight: 500;
  position: relative;
  padding-right: 32px;
}
#header .menu__dropdown .toggle__link::after {
  content: "";
  background-image: url(../img/icon-arrow_right.svg);
  width: 16px;
  aspect-ratio: 1/1;
  display: block;
  background-size: cover;
  background-position: center;
  filter: var(--svg-white);
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}
#header .menu__dropdown .toggle__link:hover::after {
  transform: translateX(8px);
}
@media screen and (min-width: 1025px) {
  #header .menu__dropdown {
    position: absolute;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transform-origin: top center;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, transform 0.3s ease;
    z-index: 10;
    left: 0;
    top: 100%;
  }
  #header .menu__dropdown-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
  }
  #header .menu__item:hover .menu__dropdown {
    width: auto;
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #header .menu__link::before {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--thema-blue);
    transform: scaleX(0);
    transform-origin: right top;
    transition: transform 0.2s ease;
  }
  #header .menu__toggle::before {
    display: none;
  }

  /* ホバー時のスタイル */
  #header .menu__link:hover::before {
    transform-origin: left top;
    transform: scaleX(1);
  }
}
@media screen and (max-width: 1024px) {
  #header .menu__dropdown {
    display: none;
    border-bottom: 1px solid #dadad2;
  }
  #header .menu__dropdown.active {
    display: block;
    padding: 24px;
  }
  #header .menu__dropdown .menu__item {
    margin-bottom: 0;
  }

  #header .menu__dropdown .toggle__link {
    color: var(--theme-black-dark);
    padding: 16px 0;
  }
  #header .menu__dropdown .toggle__link:hover {
    opacity: 0.5;
  }
  #header .menu__item > .menu__link.menu__toggle {
    justify-content: space-between;
  }

  #header .menu__dropdown .toggle__link::after,
  #header .menu__link--blank::after {
    filter: var(--svg--dark);
  }
  #header .btn--inquiry {
    max-width: 460px;
    width: 100%;
  }
}

/* .menu__link::before {
   display: none;
 } */
/**
    * スクロール時
    * -------------------------------
    */
#header.scrolled {
}

/**
    * ハンバーガーメニュー OPEN制御
    * -------------------------------
 */

.menu_btn-wrap {
  display: none;
}
#header .header__contact--tablet,
#header .header__contact--sp {
  display: none;
}
/* @media screen and (max-width: 1240px) { */
@media screen and (max-width: 1024px) {
  #header.open {
    height: 100%;
    bottom: 0;
    position: fixed;
    flex-wrap: wrap;
    align-items: flex-start;
    background: var(--thema-blue);
  }
  .header__main {
    gap: 24px;
    flex-wrap: wrap;
    height: 100%;
    z-index: 1;
  }

  .header__contact--tablet {
    display: flex;
    flex-grow: 1;
    justify-content: end;
    gap: 24px;
  }
  .header__menu {
    display: none;
    order: 3;
    width: 100%;
  }
  .header__menu::after {
    content: "";
  }

  #overlay.open .menu__list {
    flex-direction: column;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    gap: 0;
  }
  #overlay.open .menu__list li {
    display: block;
    width: 100%;
  }
  /*  */

  #header .menu__link,
  #header .menu__toggle {
    border-bottom: 1px solid #fff;
  }

  #header .menu__item {
    width: 100%;
  }
  #header .menu__link {
    padding: 16px 0;
    color: #fff;
  }
  #header.open .menu__toggle::after {
    filter: var(--svg--white);
  }
  #header.open .menu__dropdown .toggle__link {
    color: #fff;
  }
  #header.open .menu__dropdown .toggle__link::after {
    filter: var(--svg--white);
  }
  #header .menu__item::after {
    background: #ccc;
    height: 1px;
  }

  /**/
  body.open {
    overflow: hidden;
  }
  /**/
  #overlay {
    opacity: 0;
    z-index: -5;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
  }
  #overlay.open {
    opacity: 1;
    /*     height: 100%; */
    height: calc(100% - 80px);
    overflow: scroll;
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    order: 3;
    gap: 0;
  }

  /**/
  .menu_btn-wrap {
    display: block;
  }

  #overlay-button {
    position: relative;
    z-index: 5;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: center;
    /* gap: 40px; */
    height: 64px;
    width: 64px;
    align-items: center;
    background-color: var(--thema-blue);
    transition: all 0.3s ease;
  }

  #overlay-button span {
    display: block;
    height: 2px;
    width: 24px;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  #overlay-button span::before,
  #overlay-button span::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 24px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    top: 0;
    left: 0;
    transform-origin: center;
  }

  #overlay-button span::before {
    transform: translateY(-8px);
  }

  #overlay-button span::after {
    transform: translateY(8px);
  }
  #header input[type="checkbox"] {
    display: none;
  }

  /* ホバー時カラー変更 */
  #overlay-button:hover {
    background-color: var(--theme-black-dark);
  }
  /* #overlay-button:hover span,
  #overlay-button:hover span::before,
  #overlay-button:hover span::after {
    background-color: var(--black);
  } */

  /* チェック時：クロス表示 */
  #header input[type="checkbox"]:checked ~ #overlay-button span {
    background: transparent;
  }

  #header input[type="checkbox"]:checked ~ #overlay-button span::before {
    transform: rotate(45deg);
  }

  #header input[type="checkbox"]:checked ~ #overlay-button span::after {
    transform: rotate(-45deg);
  }
}
/**
   * ================================================================================
   * footer
   * 
   * ================================================================================
   */
.footer {
  background-color: var(--theme-black-dark);
  padding: 64px 24px 24px;
  color: #fff;
}

.footer__wrap {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}
.siteLogo--footer {
  gap: 16px;
  margin-bottom: 24px;
}
.footer__text {
  display: flex;
  flex-direction: column;
}
footer .siteLogo__subtitle,
footer .siteLogo__title {
  font-family: var(--font_style);
  color: #fff;
}
.footer .siteLogo__image {
  filter: var(--svg--white);
  width: 68px;
}
.footerCompany {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footerCompany__address {
  font-size: 12px;
}
.footerTel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footerTel__label p {
  font-size: 14px;
}
.footerTel__content {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: bold;
  flex-wrap: wrap;
}
.footerTel__content a {
  font-size: 24px;
}
.footerCompany__mail {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #fff;
}
.footerTel img,
.footerCompany__mail img {
  filter: var(--svg--white);
  width: 24px;
  aspect-ratio: 1/1;
}
.footerTel__number {
  font-size: 12px;
}
.footer__menu {
  display: flex;
  gap: 24px;
}

@media screen and (min-width: 501px) {
  .footer__menu .menu__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 16px;
  }
  .footer__menu .menu__item--top {
    grid-area: 1 / 1 / 2 / 2;
  }
  .footer__menu .menu__item--service {
    grid-area: 2 / 1 / 5 / 2;
    height: 100%;
  }
  .footer__menu .menu__item--flow {
    grid-area: 1 / 2 / 2 / 3;
  }
  .footer__menu .menu__item--faq {
    grid-area: 2 / 2 / 3 / 3;
  }
  .footer__menu .menu__item--message {
    grid-area: 1 / 3 / 2 / 4;
  }
  .footer__menu .menu__item--contact {
    grid-area: 2 / 3 / 3 / 4;
  }
  .footer__menu .menu__item--office {
    grid-area: 3 / 3 / 4 / 4;
  }
  .footer__menu .menu__item--policy {
    grid-area: 4 / 3 / 5 / 4;
  }

  .footer__menu .menu__item--service {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
  }
  .footer__menu .menu__link.menu__toggle {
    grid-area: 1 / 1 / 2 / 2;
  }
  .footer__menu .menu__dropdown {
    grid-area: 2 / 1 / 4 / 2;
  }

  .footer__menu .menu__dropdown-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    height: 100%;
  }
}
@media screen and (max-width: 500px) {
  .footer__menu .menu__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 8px;
  }
  .footer__menu .menu__item--top {
    grid-area: 1 / 1 / 2 / 2;
  }
  .footer__menu .menu__item--service {
    grid-area: 2 / 1 / 5 / 2;
  }
  .footer__menu .menu__item--flow {
    grid-area: 1 / 2 / 2 / 3;
  }
  .footer__menu .menu__item--faq {
    grid-area: 2 / 2 / 3 / 3;
  }
  .footer__menu .menu__item--message {
    grid-area: 5 / 1 / 6 / 2;
  }
  .footer__menu .menu__item--contact {
    grid-area: 6 / 1 / 7 / 2;
  }
  .footer__menu .menu__item--office {
    grid-area: 7 / 1 / 8 / 2;
  }
  .footer__menu .menu__item--policy {
    grid-area: 8 / 1 / 9 / 2;
  }
  .footer__menu .menu__item--service {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
  }
  .footer__menu .menu__link.menu__toggle {
    grid-area: 1 / 1 / 2 / 2;
  }
  .footer__menu .menu__dropdown {
    grid-area: 2 / 1 / 4 / 2;
    padding-left: 8px;
  }

  .footer__menu .menu__dropdown-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    height: 100%;
  }
}
.footer__menu .menu__dropdown-inner .menu__item {
  display: flex;
  align-items: center;
  color: #fff;
}
.footer__menu .menu__item > .menu__link,
.footer__menu .toggle__link {
  color: #fff;
  font-family: var(--font_style);
}
small {
  padding-top: 64px;
  display: block;
  font-size: 12px;
  color: #fff;
  opacity: 0.5;
}

@media (min-width: 769px) {
  a[href*="tel:"] {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
  }
}
@media screen and (max-width: 900px) {
  .footer__menu {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  .footer__wrap {
    flex-direction: column-reverse;
    gap: 40px;
  }
  .footer .siteLogo {
    justify-content: center;
  }
  .footer .siteLogo__image {
    width: 44px;
  }
  .footerCompany {
    align-items: center;
    text-align: center;
  }
  .footerTel__content {
    align-items: center;
    justify-content: center;
  }
  .footerTel__note {
    width: 100%;
  }
  .footer__menu .menu__item > .menu__link,
  .footer__menu .toggle__link {
    font-size: 14px;
  }
  small {
    text-align: center;
  }
}

@media screen and (max-width: 414px) {
  .footer__menu {
    flex-direction: column;
  }
}
@media screen and (max-width: 320px) {
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
/**
   * ================================================================================
   * section
   * 
   * ================================================================================
   */
.fv {
  background: linear-gradient(180deg, rgba(240, 243, 248, 0) 0%, #f0f3f8 100%),
    url(../img/fv.webp), #f0f3f8;
}
.fv__wrap {
  position: relative;
  display: grid;
  place-items: center left;
  padding-left: clamp(6rem, -11.4rem + 15vw, 17.4rem) !important;
  max-width: unset !important;
  height: min(700px, calc(100vh - 76px));
}
.fv__contets {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 16px 24px;
  margin-left: calc(clamp(2.8rem, -0.7104rem + 3.03vw, 5.1008rem) * -1);
  width: clamp(38.6rem, -4.5952rem + 37.24vw, 66.9008rem);
  position: relative;
  z-index: 1;
}
.fv__contets img {
  max-width: 80px;
}
.fv__contets h1 {
  font-size: 14px;
  color: var(--thema-blue);
  text-align: center;
}
.fv__contets h2 {
  font-family: "Noto Serif JP";
  font-weight: 400;
  font-size: 50px;
  color: var(--thema-blue);
}
.fv__img {
  overflow: hidden;
  aspect-ratio: 1200 / 950;
  border-top-left-radius: 200px;
  position: absolute;
  top: 0;
  right: 0;
  width: min(1200px, 64%);
  height: 100%;
}
.fv__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media screen and (max-width: 1240px) {
  .fv__img {
    width: min(600px, 64%);
  }
}
@media screen and (max-width: 768px) {
  .fv__wrap {
    padding: 0 !important;
    height: auto !important;
  }
  .fv__contets {
    margin-left: inherit !important;
    width: 100% !important;
    padding: 40px 24px;
  }
  .fv__img {
    position: inherit;
    /* display: none; */
    width: 100%;
    aspect-ratio: 6 / 4;
    border-top-left-radius: 50px;
  }
  .fv__contets h2 {
    font-size: 24px;
  }
}
/**
   * ================================================================================
   * section
   * 
   * ================================================================================
   */
/* .section {
  display: flex;
  flex-direction: column;
  gap: 60px;
} */

.section__wrap {
  max-width: calc(1024px + 24px * 2);
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  padding: 80px 24px;
  flex-direction: column;
}

.section__wrap--wp {
  gap: 24px;
}
.section__wrap--single {
  font-weight: bold;
}
.section__wrap--404 {
  align-items: center;
}
.section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 40px;
}
.section__title {
  font-size: 24px;
  font-family: var(--font_style--serif);
}
.section__title::before {
  content: attr(data-title);
  font-family: var(--font_style);
  display: block;
  font-size: 14px;
}
.section__titleEn {
  font-size: 16px;
}
.section__header .btn.btn--contact {
  display: inline-flex;
  padding: 24px 40px;
  background-color: var(--thema-blue);
  color: #fff;
  font-weight: bold;
  transition: 0.5s;
  border-radius: 100px;
}
.btn--contact .btn__icon {
  display: none;
  width: 32px;
}
.section__header .btn.btn--contact:hover {
  background-color: var(--theme-black-dark);
}

@media screen and (max-width: 1024px) {
  .section__header .btn.btn--contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    aspect-ratio: 1/1;
    padding: 0;
    position: fixed;
    z-index: 5;
    right: 16px;
    bottom: 16px;
  }
  .btn--contact .btn__icon {
    display: block;
    filter: var(--svg--white);
  }
  .btn--contact .btn__text {
    display: none;
  }
}
.section__body {
  background-color: var(--thema-blue-light);
}

@media screen and (max-width: 768px) {
  /* .section {
    padding: 40px 0;
    gap: 40px;
  } */
  .section__wrap--wp {
    gap: 40px;
  }
}
.btn.btn--back {
  display: flex;
  padding: 24px 40px;
  background-color: var(--thema-blue);
  color: #fff;
  font-weight: bold;
  transition: 0.5s;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 250px;
  width: 100%;
}
.btn--back::after {
  content: "";
  background: url(../img/icon-arrow.svg) no-repeat;
  background-size: contain;
  background-position: center;
  width: 16px;
  aspect-ratio: 1/1;
  filter: var(--svg--white);
  transform: rotate(-90deg);
}
/**/
#breadcrumbs {
  width: 100%;
}
#breadcrumbs span {
  display: flex;
  gap: 8px;
  align-items: center;
}
#breadcrumbs a,
#breadcrumbs span {
  font-size: 12px;
  color: var(--theme-black-dark);
}
#breadcrumbs a {
  display: flex;
  gap: 0;
  align-items: center;
  font-size: 12px;
  color: var(--theme-black-dark);
}
.breadcrumbs__icon--arrow {
  filter: var(--svg--dark);
  width: 12px;
  aspect-ratio: 1/1;
  transform: rotate(-90deg);
}

/**
   * ================================================================================
   * section__headerのお問い合わせボタン
   * 
   * ================================================================================
   */
/* ===== 共通（状態） ===== */
#contactBtn {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ===== SPだけ表示 ===== */
@media (max-width: 768px) {
  #contactBtn {
    display: flex;
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1000;
  }
  #contactBtn .btn__icon {
    width: 32px;
  }
  #contactBtn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  #contactBtn.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
  }
}

/**
   * ================================================================================
   * cta
   * 
   * ================================================================================
   */
#ctaSection {
  background: var(--thema-gold);
  text-align: center;
}
#ctaSection .section__wrap {
  gap: 40px;
}
#ctaSection .section__title {
  color: #fff;
}
#ctaSection p {
  color: #fff;
  font-weight: bold;
}
.ctaSection__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.ctaSection__item {
  padding: 16px 32px;
  background: #fff;
  border-radius: 50px 50px 0px 50px;
  font-weight: bold;
}
.btnGroup--cta {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.btnGroup--cta .btn {
  display: flex;
  padding: 16px 32px;
  gap: 32px;
  max-width: 400px;
  width: 100%;
  background: var(--theme-black-dark);
  border-radius: 50px;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: 500;
}
.btnGroup--cta .btn::before {
  content: "";
  width: 40px;
  aspect-ratio: 1/1;
  filter: var(--svg--white);
  display: block;
}
.btnGroup--cta .btn--tel::before {
  background: url(../img/icon-tel.svg) no-repeat;
  background-position: center;
  background-size: contain;
}
.btnGroup--cta .btn--content::before {
  background: url(../img/icon-mail.svg) no-repeat;
  background-position: center;
  background-size: contain;
}
.btn {
  transition: 0.5s;
}
.fv .btn {
  font-size: 18px;
  max-width: 300px;
  background: var(--thema-blue);
  color: #fff;
}
.btnGroup--cta .btn:hover {
  background: var(--thema-blue);
}
.fv .btn:hover {
  background: var(--theme-black-dark);
}
.btn__text {
  color: #fff;
}

.btn__text .font--sm {
  display: block;
  font-size: 12px;
}

@media screen and (max-width: 768px) {
  .btnGroup--cta {
    flex-direction: column;
    align-items: center;
  }
  .ctaSection__list {
    gap: 8px;
  }

  .ctaSection__item {
    font-size: 14px;
    padding: 8px 16px;
  }
  .btnGroup--cta .btn {
    padding: 12px 24px;
    font-size: 18px;
  }
  .btnGroup--cta .btn::before {
    width: 32px;
  }
}
/**
   * ================================================================================
   * 業務の流れ
   * 
   * ================================================================================
   */
.flow {
  counter-reset: flow-step;
  display: flex;
  width: 100%;
}

.flow__item {
  counter-increment: flow-step;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100% / 5);
  width: 100%;
}

.flow__header h3 {
  display: flex;
  font-size: 15px;
  padding: 8px;
  align-items: center;
  gap: 4px;
  height: 100%;
  background: var(--thema-blue);
  color: #fff;
  margin: 0 -0.5px;
  width: calc(100% + 1px);
  justify-content: center;
  font-weight: 600;
}

.flow__header h3::before {
  content: counter(flow-step);
  width: 24px;
  height: 24px;
  color: var(--thema-blue);
  aspect-ratio: 1/1;
  border-radius: 24px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.flow__header {
  display: flex;
  align-items: center;
  /* max-height: 76px; */
  height: 100%;
  width: 100%;
  margin-bottom: 24px;
}

.flow__header::before {
  content: "";
  width: 10px;
  height: 100%;
  background: var(--thema-blue);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 25% 100%, 100% 50%);
}
.flow__header::after {
  content: "";
  width: 10px;
  height: 100%;
  background: var(--thema-blue);
  clip-path: polygon(0 0, 0% 100%, 100% 50%);
}
.flow__item:first-child .flow__header::before,
.flow__item:last-child .flow__header::after {
  content: none;
}

.flow__item img {
  max-width: 80px;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
}
.flow__body {
  max-width: calc(175px + 8px);
  padding: 0 8px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.flow__item p {
  min-height: calc(1.5em * 4);
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .flow {
    flex-direction: column;
  }
  .flow__item {
    max-width: 100%;
  }
  .flow__header h3 {
    display: flex;
    margin: -0.5px 0;
    width: 100%;
  }
  .flow__header {
    margin-bottom: 0;
    flex-direction: column;
  }

  .flow__header::before {
    height: 16px;
    width: 100%;
    clip-path: polygon(50% 100%, 100% 25%, 100% 100%, 0 100%, 0% 25%);
  }
  .flow__header::after {
    height: 16px;
    width: 100%;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
  }
  .flow__item:first-child .flow__header::before,
  .flow__item:last-child .flow__header::after {
    content: none;
  }
  .flow__body {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    gap: 24px;
  }
  .flow__item p {
    min-height: inherit;
    padding: 8px 0;
    text-align: left;
  }
}
@media screen and (max-width: 414px) {
  .flow__item img {
    max-width: 60px;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    margin-bottom: 16px;
  }
}

/**
   * ================================================================================
   * よくある質問
   * 
   * ================================================================================
   */
.faq__card {
  padding: 8px 24px;
  background: #fff;
  border-radius: 8px;
}
.faq__card h2 {
  display: flex;
  gap: 16px;
  font-size: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  line-height: 27px;
}
.faq__card h2::before {
  content: "Q";
  font-weight: bold;
  color: #004172;
  max-width: 32px;
  width: 100%;
  font-size: 18px;
  text-align: center;
}
.faq__answer {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  font-size: 16px;
  line-height: 27px;
}
.faq__answer::before {
  content: "A";
  font-weight: bold;
  color: var(--thema-red);
  max-width: 32px;
  width: 100%;
  font-size: 18px;
  text-align: center;
}
.faq__answer p:first-child {
  color: #bf4e70;
  font-weight: 700;
}
.faq__answer p {
  margin-bottom: 8px;
}
.faq__answer p:last-child {
  margin-bottom: 0;
}

.faq__answer strong {
  color: var(--thema-red);
  font-size: 16px;
  font-weight: 700;
}
@media screen and (max-width: 768px) {
  .faq__card {
    padding: 8px 18px;
  }
  .faq__card h2,
  .faq__answer {
    gap: 8px;
  }
}
/**
   * ================================================================================
   * 事業所
   * 
   * ================================================================================
   */

.wp-block-table {
  background: #fff;
}
.wp-block-table table {
  border-top: 1px solid var(--border-color) !important;
}
.wp-block-table td,
.wp-block-table th {
  border: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 16px !important;
}
.wp-block-table td:first-child {
  color: var(--theme-black-light) !important;
}

.wp-block-table td:last-child {
  font-weight: 700;
}
.wp-block-table td mark {
  font-size: 12px;
  font-weight: 300 !important;
}
iframe {
  aspect-ratio: 4/3;
  width: 100%;
}
@media screen and (max-width: 768px) {
  .wp-block-table td,
  .wp-block-table th {
    display: block;
    padding: 8px 16px !important;
  }
  .wp-block-table td:first-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    font-size: 14px;
  }
}

.example-dl {
  padding: 8px 24px 16px;
  background: #fff;
  border-radius: 8px;
}
.example-dl dt {
  font-weight: bold;
  border-bottom: 1px solid #dddddd;
  padding: 16px 0px;
  margin-bottom: 16px;
}
.example-dl dd {
  display: list-item;
  list-style-type: disc;
  margin-left: 1.2em;
  margin-bottom: 8px;
  font-weight: normal;
}
.ctaSection--single {
  position: relative;
}
.ctaSection--single::before {
  content: "";
  clip-path: polygon(50% 100%, 100% 40%, 100% 100%, 0 100%, 0% 40%);
  display: block;
  width: 100%;
  height: 50px;
  position: absolute;
  top: -50px;
  background: var(--thema-gold);
}
.ctaSection--single .flow {
  padding: 24px;
  background: #fff;
  border-radius: 8px;
}
#ctaSection.ctaSection--single .flow p {
  color: var(--theme-black-dark);
  font-size: 14px;
}

.wp-block-list {
  list-style: inside disc;
}
body.privacy-policy .wp-block-heading {
  margin-top: 24px;
}
@media screen and (max-width: 768px) {
  .wp-block-heading {
    font-size: 20px;
  }
}

#message .section__wrap {
  display: grid;
  max-width: calc(1240px + 24px * 2);
  grid-template-columns: 390px 1fr;
  grid-template-areas:
    "img title"
    "img text";
  align-items: start;
  gap: 0 32px;
}

.message__img {
  grid-area: img;
}

.section__title {
  grid-area: title;
}

.message__text {
  grid-area: text;
}

#message .message__img {
  max-width: 390px;
  width: 100%;
  border-radius: 40px 0px;
  overflow: hidden;
}
#message .section__title {
  position: relative;
  font-size: 16px;
  color: var(--thema-blue);
}
#message .section__title::before {
  position: absolute;
  font-family: "Noto Serif JP";
  font-weight: 700;
  font-size: 60px;
  color: var(--thema-blue-light);
  bottom: 0;
  left: 0;
  z-index: -1;
}

.message__key {
  font-family: "Noto Serif JP";
  font-weight: 700;
  font-size: 40px;
  color: var(--thema-blue);
}
.message__text {
  display: grid;
  gap: 40px;
}
.message__note {
  display: grid;
  gap: 16px;
}
.message__sign:last-child {
  font-family: "Noto Serif JP";
  font-weight: 700;
}
@media (max-width: 768px) {
}
@media (max-width: 768px) {
  .section__wrap {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "title"
      "img"
      "text" !important;
  }

  #message .section__title {
    text-align: center;
    margin-bottom: 32px;
  }
  #message .section__title::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .message__text {
    display: flex;
    flex-direction: column;
  }
  #message .message__img {
    margin: 0 auto 32px;
  }
  .message__key {
    font-size: 24px;
  }
}

#service {
  padding: 100px 0 0;
  background: var(--thema-blue-light);
}

#service > .section__title {
  text-align: center;
  position: relative;
  font-size: 16px;
  color: var(--thema-blue);
  z-index: 1;
  margin-bottom: 40px;
}
#service > .section__title::before {
  position: absolute;
  font-family: var(--font_style--serif);
  font-weight: 700;
  font-size: 60px;
  color: #fff !important;
  bottom: 0;
  left: 50%;
  line-height: 1;
  transform: translateX(-50%);
  z-index: -1;
}
.service__section .section__title {
  margin-bottom: 32px;
  font-family: var(--font_style--serif);
}
.service__section .section__title::before {
  font-family: var(--font_style);
}
.service__section > p {
  margin-bottom: 32px;
}

.service__layout {
  display: flex;
  height: 100%;
}
.service__image {
  flex: 0 0 auto;
  max-width: 500px;
  width: 40%;
  height: calc(100vh - 79px);
  position: sticky;
  top: 79px;
  overflow: hidden;
}
.admin-bar .service__image {
  height: calc(100vh - 79px - 32px);
  top: calc(79px + 32px);
}

.service__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service__content {
  flex: 1;
  width: 60%;
}
.service__section {
  padding: 80px 64px;
}
.service__section--personal {
  background: var(--thema-blue-light);
  scroll-margin-top: 80px;
}
.service__section--business {
  background: #c0cfdd;
  padding-bottom: 100px;
  scroll-margin-top: 80px;
}
.service__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1440px) {
  .service__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .service__section {
    padding: 80px 24px;
  }
  .service__list {
    grid-template-columns: 1fr;
  }

  .service__section--personal {
    scroll-margin-top: 64px;
  }
  .service__section--business {
    scroll-margin-top: 64px;
  }
}

.service__item {
  padding: 24px;
  background: #fff;
}
.service__item h4 {
  font-size: 24px;
  margin-bottom: 16px;
}
.service__item a {
  display: flex;
  justify-content: end;
  align-items: center;
  color: var(--theme-black-dark);
  gap: 8px;
  font-size: 14px;
  margin-top: 16px;
}
.service__item a::after {
  content: "";
  width: 16px;
  aspect-ratio: 1/1;
  background: url(../img/icon-arrow.svg) no-repeat;
  background-size: cover;
  background-position: center;
  filter: var(--svg--dark);
  transform: rotate(-90deg);
}
@media (max-width: 768px) {
  .service {
    height: auto;
  }

  .service__layout {
    flex-direction: column;
  }

  .service__image {
    max-width: inherit !important;
    width: 100% !important;
    height: 300px !important;
    position: relative;
    top: 0 !important;
  }

  .service__content {
    width: 100%;
    height: auto;
    overflow: visible;
  }
  .service__item h4 {
    font-size: 18px;
  }
}
