@charset "UTF-8";

/**************************************************
* ヘッダー ※変更不可
***************************************************/
/*------------------------------
ヘッダー、Gナビ共通 ※変更不可
------------------------------*/
#header {
  width: 100%;
  height: 60px;
  background: var(--color--wh);
  position: fixed;
  z-index: 1000;
  display: flex;
  align-items: center;
  font-size: var(--smallest);
  letter-spacing: 0.2rem;
}
#header .l-head-inner {
  display: block;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}
#header .l-hd-logo {
  width: 100%;
  max-width: 180px;
  margin-left: 10px;
}
/* h1テキスト */
#header .c-ttl--xlarge__hd-top {
  font-size: var(--smallest);
  letter-spacing: 0.1rem;
}

/* SP時：ハンバーガーメニューボタン */
.global-nav-header {
  width: 50px;
}

/*========= ハンバーガーボタンのCSS ===============*/

.openbtn {
  position: fixed;
  top: 4px;
  right: 1px;
  z-index: 1200; /*ボタンを最前面に*/
  cursor: pointer;
  width: 50px;
  height: 50px;
}
/*×に変化*/
.openbtn span {
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  left: 14px;
  height: 1px;
  border-radius: 2px;
  background-color: #29307c;
  width: 45%;
}
.openbtn span:nth-of-type(1) {
  top: 15px;
}
.openbtn span:nth-of-type(2) {
  top: 23px;
}
.openbtn span:nth-of-type(3) {
  top: 31px;
}
.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}
.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}
.openbtn.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}
.openbtn.active span:nth-of-type(1),
.openbtn.active span:nth-of-type(3) {
  background-color: #29307c;
}

@media screen and (max-width: 999px) {
  /* グローバルメニュー */
  .global-nav {
    margin: 0;
    position: relative;
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    overflow-y: auto;
  }

  /* メニュー */
  .nav-list {
    justify-content: space-between;
    list-style: none;
    background: #ffffff;
    left: 50%;
    padding: 10px;
    margin: 0;
    position: absolute;
    transform: translate(-50%, 0%);
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item > a {
    border-right: 1px solid var(--color--wh);
    border-bottom: 1px solid var(--color--gray);
    color: var(--color--bk);
    display: block;
    padding: 0.6em 0.4em;
    text-align: center;
    text-decoration: none;
    border-right: none;
    padding: 20px 10px;
  }
  .nav-item:last-child a {
    border-right: none;
    border-bottom: none;
  }

  #header .nav-item.has-child button {
    position: relative;
    background-color: transparent;
    border: none;
    cursor: pointer;
    appearance: none;

    width: 100%;
    border-right: 1px solid var(--color--wh);
    color: var(--color--bk);
    display: block;
    padding: 0.6em 0.4em;
    text-align: center;
    text-decoration: none;
    border-bottom: 1px solid var(--color--gray);
    border-right: none;
    padding: 20px 10px;
  }

  .nav-item-sub {
    display: none;
  }
  .nav-item-sub a {
    display: block;
    text-align: center;
    padding: var(--space-2) var(--space-1);
  }
  .nav-item-sub a::before {
    content: "－";
    text-align: center;
  }
  .nav-item-sub li:last-child a {
    border-bottom: 1px solid var(--color--gray);
  }

  #header .nav-item.has-child.is-active button {
    border-bottom: none;
  }
}

/*=================== TBここから ==================*/
@media screen and (min-width: 700px) {
}
/*=================== TBここまで ==================*/

/*=================== PCここから==================*/
@media screen and (min-width: 1000px) {
  /*========= スクロール途中でヘッダーが表示＆非表示するためのCSS ===============*/
  /*------------------------------
  PCヘッダー、Gナビ共通 ※変更不可
------------------------------*/
  #header {
    /*fixedで上部固定*/
    position: fixed;
    height: 120px;
    /* z-index: 10000;  */
    padding: 0;
    display: block;
  }
  #header .l-head-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
  }
  #header .l-hd-left {
    margin-left: 2%;
  }
  #header .l-hd-right {
    width: calc(100% - 50%);
    max-width: 530px;
    /* width: fit-content; */
  }
  #header .c-ttl--xlarge__hd-top {
    margin-top: 0.4rem;
  }
  #header .l-hd-logo {
    max-width: 222px;
    padding-top: 0.8rem;
  }

  #header .l-hd-logo,
  #header .h-hd-cta {
    max-height: 80px;
  }

  #header .h-hd-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  #header .h-hd-cta > div {
    width: calc(100% / 2 - 10px);
    margin-left: 20px;
  }
  /* LINEが表示されている場合 */
  #header .h-hd-cta--line > div {
    width: 245px;
  }
  #header .h-hd-cta--line > div:last-child {
    margin-left: -1px;
  }
  #header .h-hd-cta--line > div:first-child a img {
    width: 100%;
    height: 76px;
    object-fit: cover;
    display: block;
  }

  /* グローバルナビ（仮のGナビ） */
  #header .global-nav {
    display: block;
    width: 100%;
    position: relative;
    margin: 0px auto 0;
    background: var(--color--wh);
  }
  #header .nav-list {
    display: flex;
    width: 100%;
    /* max-width: 1440px; */
    justify-content: center;
    align-items: first baseline;
  }
  #header .nav-item {
    width: fit-content;
  }

  /* サブメニューなし */
  #header .nav-item > a {
    border-bottom: none;
    padding: 0;
    position: relative;
    font-size: var(--font-small);
    padding: var(--space-2) 0;
  }

  #header .nav-item .nav-item-sub a {
    padding: var(--space-2);
  }

  /* 非表示、非表示を切り替えるボタン */
  #header .nav-item.has-child button {
    position: relative;
    background-color: transparent;
    border: none;
    cursor: pointer;
    appearance: none;

    padding-left: 0;
    padding-right: var(--space-3);
  }
  #header .nav-item.has-child button span {
    font-size: var(--font-small);
    padding: var(--space-2) 0 var(--space-2) var(--space-4);
  }

  /*2階層目を持つ+のの設定*/
  #header .nav-item.has-child button::before,
  #header .nav-item.has-child button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    height: 2px;
    width: 16px;
    background-color: var(--color--key);
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
  }
  #header .nav-item.has-child button::before {
    -webkit-transform: translateY(-50%) rotate(90deg);
    transform: translateY(-50%) rotate(90deg);
  }
  #header .nav-item.has-child button::after {
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }

  #header .nav-item.has-child.is-active button::before {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }

  /*現在地とhoverの設定*/
  #header .nav-item.current a,
  #header .nav-item.current button {
    color: var(--color--key);
  }
  #header .nav-item {
    position: relative;
  }

  /* ホバー時に下線を表示 */
  #header .nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    margin: auto;
    width: 50px;
    height: 3px;
    background: var(--color--key);
    border-radius: 10px;
    transition: all 0.3s;
    transform: scale(0, 1);
    transform-origin: center top;
  }
  #header .nav-item:hover::after {
    transform: scale(1, 1); /*X方向にスケール拡大*/
  }

  /*ナビゲーションのリンク設定*/
  #header .nav-item ul a {
    display: block;
    color: var(--color--bk);
    padding: 20px 35px;
    transition: all 0.3s;
  }

  /*== 2・3階層目の共通設定 */

  /*下の階層を持っているulの指定*/
  #header .nav-item.has-child ul {
    /*絶対配置で位置を指定*/
    position: absolute;
    left: 0;
    top: 50px;
    z-index: 1200;
    /*形状を指定*/
    width: 255px;
    background: var(--color--key);
    border-radius: var(--radius-md);

    /*はじめは非表示*/
    visibility: hidden;
    opacity: 0;
    /*アニメーション設定*/
    transition: all 0.3s;
  }

  #header .nav-item.has-child.is-active > ul {
    visibility: visible;
    opacity: 1;
    border-radius: var(--radius-md);
  }

  /*ナビゲーションaタグの形状*/
  #header .nav-item.has-child ul li a {
    color: var(--color--wh);
    border-bottom: solid 1px rgba(255, 255, 255, 0.6);
    font-size: var(--font-small);
  }

  #header .nav-item.has-child ul li:last-child > a {
    border-bottom: none;
  }

  #header .nav-item.has-child ul li a:hover,
  #header .nav-item.has-child ul li a:active {
    background: var(--color--darkgreen);
    border-radius: var(--radius-md);
  }
}
/*=================== PCここまで ==================*/

/**************************************************
* フッター footer ※変更不可
***************************************************/

/* Base */
.h-footer {
  background: var(--color--key);
  color: var(--color--wh);
  font-size: var(--font-sm);
}

/* 見出し */
.h-footer__heading {
  font-weight: var(--weight-7);
  margin-bottom: var(--space-6);
  font-size: var(--heading-md);
}

/* ブロック */
.h-footer__block {
  margin-bottom: var(--space-4);
}
/* 探す見出し（装飾付き） */
.h-footer__title {
  font-weight: var(--weight-7);
  font-size: var(--heading-xs);
  margin: 0;
  padding: 1rem 2rem 1rem 0; /* 右に余白 */
  border-bottom: 2px solid var(--color--wh);
  position: relative;
}

/*==768px以下の形状*/
@media screen and (max-width: 600px) {
  /* プラマイアイコン */
  .h-footer__title::after {
    content: "+";
    font-size: 1.2rem;
    position: absolute;
    right: 0; /* 右端に配置 */
    top: 50%; /* 縦中央配置 */
    transform: translateY(-50%);
    transition: transform 0.3s ease, content 0.3s ease;
  }

  /* 開いたときマイナス表示 */
  .h-footer__title.is-open::after {
    content: "−";
  }
}

/* コンテンツ */
.h-footer__content {
  display: none;
  margin-top: var(--space-4);
}
.h-footer__block.is-open .h-footer__content {
  display: block;
}

.h-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  /* gap: 1.5rem; */
}

.h-footer__subtitle {
  font-weight: var(--weight-6);
  padding-top: var(--space-3);
  font-size: var(--heading-xs);
}

.h-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-top: var(--space-3);
}
.h-footer__cols:last-child .h-footer__list {
  padding-top: var(--space-0);
}

.h-footer__list li {
  margin-bottom: var(--space-3);
}
/* ------------------------
   Footer External Link Icon
------------------------ */
.h-footer-external-icon {
  position: relative;
  display: inline-block;
  /* padding-left: 1.2rem; */
}

.h-footer-external-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--color--lightgreen02); /* 塗りの色 */
  -webkit-mask: url("../../images/common/icon-external-link.svg") no-repeat
    center;
  -webkit-mask-size: contain;
  mask: url("../../images/common/icon-external-link.svg") no-repeat center;
  mask-size: contain;
}
.h-footer__list a:hover {
  text-decoration: underline;
}

/* ------------------------
   Footer Sublist
------------------------ */
.h-footer__sublist {
  margin: 0;
  padding: 0;
}

.h-footer__sublist li {
  font-size: var(--font-small); /* 少し小さめ */
  line-height: 1.6;
  margin: var(--space-1) 0;
  color: var(--color--lightgreen02);
  position: relative;
  padding-left: 1.6rem; /* アイコン分の余白 */
}

.h-footer__sublist li::before {
  content: "−"; /* 行頭にハイフン */
  position: absolute;
  font-size: 1rem;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color--lightgreen02);
}

/* Inline list */
.h-footer__list--inline {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--space-3);
}

/* Bottom */
.h-footer__bottom {
  margin-top: var(--space-7);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-6);
  text-align: center;
}

.h-footer__nav {
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 1rem 2rem;
}
.h-footer__nav a,
.h-footer__copy {
  font-size: var(--font-small);
}
.h-footer__copy {
  padding: var(--space-2);
  color: var(--color--bk);
  text-align: center;
}

/* --- Responsive --- */
@media (min-width: 600px) {
  .h-footer__content {
    display: block !important; /* アコーディオン解除 */
  }
  .h-footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .h-footer__list--inline {
    flex-direction: row;
    gap: 1rem 2rem;
  }
  .h-footer__nav {
    justify-content: center;
  }
  .h-footer-format .h-footer__heading {
    padding: 0;
    border-bottom: none;
  }
}

@media (min-width: 1023px) {
  .h-footer .l-section:first-child {
    padding-top: var(--space-0);
  }
  .h-footer .l-section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-2);
  }
  .h-footer__bottom {
    margin-top: var(--space-6);
    padding-top: var(--space-3);
  }

  .h-footer__inner {
    display: flex;
    flex-direction: column;
  }

  .h-footer__section {
    margin-bottom: var(--space-5);
  }

  .h-footer__block--accordion {
    margin-bottom: var(--space-4);
  }

  /* --- 目的から探す & サービスから探す 横並び --- */
  .h-footer__section:first-child {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 均等2列 */
    gap: var(--space-6);
  }

  .h-footer__block {
    margin-bottom: 0; /* grid 内なので余白リセット */
  }

  /* 見出しh2は100%幅（サービス案内） */
  .h-footer__heading {
    grid-column: 1 / -1;
    margin-bottom: var(--space-4);
  }
  .h-footer__sublist,
  .h-footer__subtitle {
    padding-top: var(--space-0);
    padding-bottom: var(--space-2);
  }
  .h-footer__list li {
    margin-bottom: var(--space-1);
  }
  .h-footer__sublist li {
    margin: 0 0 var(--space-1);
  }
  /* 書式集 */
  .h-footer-format .h-footer__section:first-child {
    gap: 1rem;
  }
  .h-footer-format .h-footer__heading {
    margin-bottom: 0;
  }
  .h-footer-format .h-footer__content,
  .h-footer-format .h-footer__list--inline {
    margin-top: 0;
    gap: 0 2rem;
    padding: 0;
  }
}
