/*  RESET ============================ */
* {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  /* Safari clamp対策 */
  min-height: 0vw;
  min-height: 0;
}

/* Safari　枠を消す設定 */
*:focus {
  outline: none;
}
a {
  -webkit-tap-highlight-color: transparent;
}

:where(a, a:visited) {
  color: inherit;
  text-decoration: none;
}

:where(a:hover) {
  color: #486682;
}

:where(a img) {
  border-style: none;
}

/* summary要素のスタイル */
:where(summary) {
  cursor: pointer;
}

/*  ベース ============================ */

html {
  font-size: 16px;
}

body {
  font-family: YakuHanRP, "M PLUS 2", -apple-system, BlinkMacSystemFont, Meiryo,
    "ヒラギノ角ゴ ProN W3", Hiragino Kaku Gothic ProN, sans-serif;
  font-optical-sizing: auto;
  font-weight: var(--font-weight-base);
  letter-spacing: 0.02em;
  font-style: normal;
  line-height: 1.7;
  color: var(--site-main-textcolor);
  background-color: var(--site-bg-color);
}

:where(h1, h2, h3, h4, h5) {
  line-height: calc(1em + 0.5rem);
  font-weight: var(--font-weight-bold);
}

/* target アンカースクロール先にマージン追加 */
:target {
  scroll-margin-block: var(--margin-header-hight);
}

/*  テンプレート ============================ */
.page-wrapper {
  width: 100%;
  max-width: var(--contentsWidth);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.l-header {
  position: sticky;
  top: 0;
  background-color: var(--site-mainbg-color);
  border-radius: 0 0 20px 20px;
  z-index: 1;
}

.l-header__inner {
  width: 100%;
  max-width: var(--contentsWidth);
  height: var(--margin-header-hight);
  margin-inline: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: nowrap;
  position: relative;
}

.l-header__inner::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(32, 84, 130, 1),
    rgba(32, 84, 130, 1) 13px,
    rgba(221, 233, 235, 1) 0,
    rgba(221, 233, 235, 1) 25px
  );
  width: 100%;
  height: 20px;
}

.l-header-logo__container {
  width: 180px;
  height: 63px;
  margin-bottom: 4px;
  background-image: url(../images/common/trsprt.png),
    url(../images/common/header-logo.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 63px;
}

.l-header-logo {
  padding: 0;
  margin: 0;

  & a {
    display: block;
    width: 180px;
    height: 63px;
  }
}

.bg_visible {
  color: transparent;
  font-size: 1px;

  & a {
    color: transparent;
  }
}

.l-header-menu {
  width: 42rem;
  max-width: 70%;
}

.l-header-menu__item {
  display: flex;
  justify-content: flex-end;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  gap: 1.5rem;
  height: 100%;

  & li a {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 1em 1.4em;
    padding-bottom: 6px;
    justify-content: center;
    border-bottom: 6px solid var(--site-mainbg-color);
  }

  & li a.header-menu-current {
    border-bottom: 6px solid var(--site-sub-color);
  }
}

/* ハンバーガーメニュー&ドロワーウィンドウ */
.gnav-toggleBtn {
  display: none;
}

.gnav-drawerWindow {
  display: none;
}

/* メインコンテンツ */
.l-main {
  --contents-bg-color: #f9faf0;
  flex-grow: 1;
  background-color: var(--contents-bg-color);
  position: relative;
}

.l-main__inner {
  width: 100%;
}

.l-main__container {
  width: 100%;
  background-color: var(--site-color-white);
}

.l-main__container a.textlink {
  text-decoration: underline;
  color: #486682;
}
.l-main__container a.textlink:hover {
  text-decoration: none;
}

/* フッター */
.l-footer {
  height: auto;
  background-color: var(--site-mainbg-color);
  padding-block-start: 1rem;
}

.l-footer__inner {
  max-width: var(--contentsWidth);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
  display: flex;
}

ul.l-footer__nav__link {
  color: var(--site-main-color);
  background-color: var(--site-color-white);
  border: 1px solid var(--site-color-white);
  border-radius: 10px 10px 0 0;
  font-size: 1rem;
  width: 15em;
  margin: 0;
  padding: 0.5em;
}

.l-footer__container {
  text-align: center;
  background-color: var(--site-main-color);
  padding-inline: 0.4rem;
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}

.l-footer__content {
  color: #333031;
  font-size: clamp(0.625rem, 0.547rem + 0.33vw, 0.813rem);
  letter-spacing: 0em;
}

.l-footer__copyright {
  font-size: clamp(0.688rem, 0.584rem + 0.44vw, 0.938rem);
  font-weight: 500;
  letter-spacing: 0em;
  color: var(--site-color-white);
  line-height: calc(1em + 0.2rem);
  padding-bottom: 0.25em;
}

/*ページトップへ戻るボタン*/
.backtoTop {
  width: 100%;
}

.backtoTop-Btn {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background-color: var(--site-main-color);
  position: fixed;
  right: 8px;
  bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.backtoTop-Btn {
  & .arrowTop {
    width: 16px;
    height: 16px;
    border-top: 4px solid var(--site-color-white);
    border-right: 4px solid var(--site-color-white);
    transform: translateY(20%) rotate(-45deg);
  }

  & span {
    display: none;
  }
}

/* ボタン伸縮センター */
.btn a {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 0.5em;
  align-items: center;
}

.btn a::before {
  content: "";
}

.btn a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 1em;
  height: 1em;
}

/* span　隠す */
span.hide {
  display: none;
}

/* ブレイクポイントによる表示非表示 */
.show--phone_tablet-portrait {
  display: none;
}

/* 改行を挿入 */
span.br-after::after {
  content: "\A";
  display: block;
}

/* スマホサイズのみ改行を挿入 */
span.br-after-ph::after {
  display: none;
}

/* リストスタイル共通 */
/* （）付きolのリスト */
ol.list_style-type-num_kakko li {
  padding: 0.25rem;
  /* position: relative;
	counter-increment: cnt; */
}

/* 文字サイズ */
.text-small {
  font-size: 0.875rem;
}

/* 上付き文字 */
.text-sup {
  font-size: 0.875em;
  vertical-align: top;
}

/* スペース　em基準 */
.space_top-1 {
  padding-top: 1em;
}
.space_top-2 {
  padding-top: 2em;
}
.space_left-1 {
  padding-left: 1em;
}
.space_left-2 {
  padding-left: 2em;
}
.space_right-1 {
  padding-right: 1em;
}
.space_right-2 {
  padding-right: 2em;
}
.space_bottom-1 {
  padding-bottom: 1em;
}
.space_bottom-2 {
  padding-bottom: 2em;
}

.space-box1-quarter {
  padding-block: 0.25em;
  padding-inline: 0.25em;
}

.space-box1-harf {
  padding-block: 0.5em;
  padding-inline: 0.5em;
}

/* image　囲みボーダー無し */
img.img-border-none {
  border: none !important;
}

/* ==============================================
ブレイクポイント
============================================== */
@media (min-width: 1280px) {
  /*ページトップへ戻るボタン*/
  .backtoTop {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: flex-end;
    position: relative;
    padding-right: 0px;
    background-color: var(--site-mainbg-color);
  }

  .backtoTop-Btn {
    position: relative;
    right: 16px;
    left: 0;
    bottom: -70px;
  }
}

/* =========================================== */
@media (max-width: 1023px) {
  :root {
    --contentsWidth: 100%;
  }

  .l-header {
    border-radius: 0 0 0 0;
  }

  .l-header__inner {
    max-width: var(--contentsWidth);
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.5rem;
    padding-right: 0rem;
    width: 100%;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: nowrap;
    position: relative;
  }

  .l-header__inner::before {
    background: repeating-linear-gradient(
      -45deg,
      rgba(32, 84, 130, 1),
      rgba(32, 84, 130, 1) 9px,
      rgba(221, 233, 235, 1) 0,
      rgba(221, 233, 235, 1) 18px
    );
    width: 100%;
    height: 12px;
  }

  .l-header-logo__container {
    width: 159px;
    height: 56px;
    margin-bottom: 2px;
    background-image: url(../images/common/trsprt.png),
      url(../images/common/header-logo.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 159px 56px;
  }

  .l-header-logo {
    & a {
      display: block;
      width: 159px;
      height: 56px;
    }
  }
  .l-header-menu {
    width: 3.75rem;
    max-width: 3.75rem;
  }

  /* ハンバーガーメニュー&ドロワーウィンドウ */
  .gnav-toggleBtn {
    display: block;
    width: 72px;
    aspect-ratio: 1;
    background-color: var(--site-main-color);
    border: none;
    z-index: 20001 !important;
    position: relative;

    & span {
      display: block;
      position: absolute;
      top: 50%;
      left: 50%;
      width: 2.5rem;
      height: 3px;
      background-color: var(--site-color-white);
      transform: translateX(-50%);
    }

    & span:nth-of-type(1) {
      transform: translate(-50%, calc(-50% - 0.6rem));
    }

    & span:nth-of-type(2) {
      transform: translate(-50%, -50%);
    }

    & span:nth-of-type(3) {
      transform: translate(-50%, calc(-50% + 0.6rem));
    }
  }

  .gnav-toggleBtn.js-Btn-active {
    & span:nth-of-type(1) {
      transform: translate(-50%, -50%) rotate(-45deg);
    }

    & span:nth-of-type(2) {
      opacity: 0;
    }

    & span:nth-of-type(3) {
      transform: translate(-50%, -50%) rotate(45deg);
    }
  }

  .gnav-drawerWindow {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: scroll;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 20000 !important;

    & .gnav-drawerWindow__inner {
      width: 100%;
      height: 100%;
      background-color: white;
      padding: 0rem 1rem 4rem 1rem;
      margin-left: auto;
      overflow: scroll;
      transform: translateX(100%);
      transition: transform 0.3s ease;
    }
  }

  .gnav-drawerWindow.js-Btn-active {
    opacity: 1;
    visibility: visible;

    & .gnav-drawerWindow__inner {
      transform: translateX(0);
    }
  }

  .gnav-drawer-menu,
  .gnav-drawer-menu_submenu {
    list-style: none;
    padding: 0;
  }

  .gnav-drawer-menu_submenu {
    padding-bottom: 0.5rem;
  }

  .gnav-drawer-menu__item {
    line-height: 1.4;
  }

  .gnav-main__item,
  .gnav-main__item__small {
    color: var(--site-main-color);
    font-weight: bold;
    font-weight: 500;
    margin-top: 1rem;
    border-left: 2px solid var(--site-main-color-pale);
    padding-left: 0.5rem;
  }

  .gnav-main__item {
    font-size: 1.0625rem;
  }

  .gnav-main__item__small {
    font-size: 0.875rem;
  }

  /* .gnav-main-accordion__item, */
  .gnav-main-sub__item {
    font-size: 1rem;
    padding-left: 0.5rem;
  }

  .gnav-main__item__practice_sub-item {
    display: flex;
    width: 100%;
    padding-left: 0.5rem;
    padding-bottom: 1.5rem;

    & li {
      width: calc(90% / 5);
      max-width: 80px;
      margin-right: 1%;
    }

    & li:last-child {
      margin-right: 0;
    }

    & img {
      aspect-ratio: 1;
    }
  }

  .gnav-drawer-menu__link,
  .gnav-drawer-menu__sub-link {
    display: block;
    text-decoration: none;
    padding: 0.5rem 0rem;
    position: relative;

    & span {
      content: "\A";
      display: block;
      white-space: pre;
      font-size: clamp(0.75rem, 0.64rem + 0.49vw, 0.875rem);
    }
  }

  .gnav-drawer-menu__sub-link {
    font-size: 0.875rem;
    padding-top: 0.3rem;
    padding-left: 1.3rem;
  }

  .gnav-drawer-menu__link {
    position: relative;
  }

  /* ハンバーガーメニュー&ドロワーウィンドウ　end */

  /*ページトップへ戻るボタン*/
  .backtoTop-Btn {
    bottom: 70px;
    right: 8px;
  }

  /* フッター */
  .l-footer {
    padding-block-start: 0rem;
  }

  .l-footer__nav {
    display: none;
  }

  /* ブレイクポイントによる表示非表示 */
  .show--tablet-landscape-up {
    display: none;
  }

  .show--phone_tablet-portrait {
    display: block;
  }

  /* スマホサイズのみ改行を挿入 */
  span.br-after-ph::after {
    content: "\A";
    display: block;
  }
}

/* =========================================== */
@media (max-width: 768px) {
  .l-footer__copyright {
    & span {
      content: "\A";
      display: block;
      white-space: pre;
      font-size: 0.8125rem;
    }
  }
}
