/*
Theme Name: takamatsuseisakusyo
Theme URI: 
Author: yashibous
Author URI: 
Description: 高松製作所様WordPressサイトテーマ
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: takamatsuseisakusyo
Tags: 
*/

:root {
  /* フォントサイズ変数 */
  --global-font-size: 1rem;
  --global-line-height: 1.6;

  /* スペース変数 */
  --global-spacing: 2rem;
  --content-width: 45rem;
  --ys-content-padding-inline: clamp(
    24px,
    calc(24px + (80 - 24) * ((100vw - 1040px) / (1320 - 1040))),
    80px
  );

  /* z-index管理 */
  --z-default: 1;
  --z-fixed-cta-button-sp: 90; /* SP用固定CTAボタン */
  --z-modal-overlay: 100; /* モーダル背景 */
  --z-modal-main: 200; /* モーダル本体・コンテンツ */
  --z-hamburger-button: 400; /* ハンバーガーメニュー */
}

body {
  font-family: var(--wp--preset--font-family--zen-kaku-gothic-new);
  font-size: var(--global-font-size);
  line-height: var(--global-line-height);
  font-weight: 500;
  -webkit-touch-callout: default;
  -webkit-user-select: text;
}

img {
  width: 100%;
  height: auto;
}
.site-header,
.site-footer,
.site-main {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: var(--global-spacing);
}

/*
* section セクション
*/
.ys-section {
  width: 100%;
  padding-block: var(
    --ys-section-padding-block,
    var(--wp--preset--spacing--80)
  );

  > * {
    margin-inline: auto;
    padding-inline: var(--ys-content-padding-inline);
    width: 100%;
  }
  &[data-section-type="header"] {
    padding-block: var(--wp--preset--spacing--30) 0;
  }
  &[data-section-type="main"] {
    padding-block: 0;
  }
}
.ys-section__inner {
  max-width: var(--wp--style--global--wide-size); /* 1120px */
}
.ys-section__inner--wide {
  max-width: var(--wp--style--global--wide-size); /* 1320px */
}
.ys-section__inner--narrow {
  max-width: var(--wp--style--global--wide-size); /* 1040px */
  padding-inline-end: calc(120px + var(--ys-content-padding-inline) * 2);
}
.ys-section__group {
  &[data-type="yoko-tate"] {
    display: flex;
    flex-direction: row;
    gap: var(--ys-section-group-gap, var(--wp--preset--spacing--40));
    justify-content: space-between;
  }
}
@media screen and (max-width: 1039px) {
  .ys-section {
    --ys-section-padding-block: var(--wp--preset--spacing--60);
    > * {
      padding-inline: var(--wp--preset--spacing--30);
    }
  }
  .ys-section__inner {
    padding-inline: var(--wp--preset--spacing--30);
  }
  .ys-section__group {
    &[data-type="yoko-tate"] {
      flex-direction: column;
    }
  }
}

/*
* layout レイアウト
*/
.ys-aside {
  --ys-aside-color: var(--wp--preset--color--custom-black);
  position: sticky;
  top: 340px;
  left: 0;
  z-index: 10;
  --ys-section-padding-block: 0;
  width: fit-content;
  color: var(--ys-aside-color);
}
.ys-aside__inner {
  padding-inline: var(--wp--preset--spacing--50) 0;
}
@media screen and (max-width: 1039px) {
  .ys-aside {
    display: none;
  }
}

.ys-main {
  position: relative;
  z-index: 0;
  container-type: inline-size;
  .is-layout-constrained.alignfull,
  .ys-main__inner--full {
    max-width: initial;
    padding-inline: 0;
    margin-inline-start: calc(50% - 50cqw - 100px);
    margin-inline-end: calc(50% - 50cqw + 100px);

    > * {
      max-width: var(--wp--style--global--wide-size);
      padding-inline-start: calc(200px + var(--ys-content-padding-inline));
      padding-inline-end: var(--ys-content-padding-inline);
      margin-inline: auto;
    }
  }
}
.ys-front-page {
  .ys-front-mainvisual.ys-main__inner--full {
    padding-block: 0;
  }
}
.ys-main__inner {
  padding-inline-start: calc(200px + var(--ys-content-padding-inline));
}
/* ブロックエディタでコンテンツを作るときに使う */
.ys-main__content {

  >section,
  >article {
    padding-block: var(
      --ys-main-content-padding-block,
      var(--wp--preset--spacing--80)
    );
  }
  .ys-main__simple-content {
    > * + * {
      margin-block-start: var(--wp--preset--spacing--60);
    }
  }
}
@media screen and (max-width: 1039px) {
  .ys-main__content {
    >section,
    >article {
      padding-block: var(
        --ys-main-content-padding-block,
        var(--wp--preset--spacing--60)
      );
    }
    .ys-main__simple-content {
      > * + * {
        margin-block-start: var(--wp--preset--spacing--60);
      }
    }
  }
}
.ys-main__content--single {
  padding-block-start: var(--wp--preset--spacing--40);
  padding-block-end: var(--wp--preset--spacing--80);

  > * + * {
    margin-block-start: var(--wp--preset--spacing--80);
  }
}
@media screen and (max-width: 1039px) {
  .ys-main__content--single {
    padding-block-start: var(--wp--preset--spacing--40);
    padding-block-end: var(--wp--preset--spacing--70);
    > * + * {
      margin-block-start: var(--wp--preset--spacing--60);
    }
  }
}

.ys-main__title-area {
  max-width: var(--wp--style--global--wide-size);
  padding-inline-start: calc(200px + var(--ys-content-padding-inline));
  padding-inline-end: 0;
  padding-block-start: var(--wp--preset--spacing--70);
}

.ys-breadcrumb {
  font-size: 14px;
  color: var(--wp--preset--color--custom-gray-02);
}

.ys-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.ys-breadcrumb a:hover {
  color: var(--wp--preset--color--custom-tk-blue, #1a4b7a);
  text-decoration: underline;
}

.ys-breadcrumb__sep {
  margin-inline: 12px;
}

.ys-breadcrumb__current {
  color: var(--wp--preset--color--custom-black, #222);
}

.ys-main__title {
  font-size: 60px;
  color: var(--wp--preset--color--custom-black);
  line-height: 1;
  margin-block-start: 56px;
}
.ys-single .ys-main__title {
  font-size: var(--wp--preset--font-size--xx-large);
}

.ys-main__eyecatch {
  margin-top: 80px;
  position: relative;
}
.ys-main__eyecatch-text {
  font-size: var(--wp--preset--font-size--xx-large);
  color: var(--wp--preset--color--custom-white);
  line-height: 1.2;
  text-align: left;
  position: absolute;
  bottom: var(--wp--preset--spacing--40);
  right: var(--wp--preset--spacing--60);
}
@media screen and (max-width: 1039px) {
  .ys-main__eyecatch-text {
    bottom: var(--wp--preset--spacing--20);
    right: unset;
    left: var(--wp--preset--spacing--20);
  }
}

.ys-main__eyecatch-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  object-fit: cover;
}

@media screen and (max-width: 1039px) {
  .ys-main {
    .is-layout-constrained.alignfull,
    .ys-main__inner--full {
      margin-inline-start: calc(50% - 50cqw);
      margin-inline-end: calc(50% - 50cqw);

      > * {
        max-width: 100%;
        padding-inline: var(--wp--preset--spacing--30);
      }
    }
  }
  .ys-main__inner {
    padding-inline-start: var(--wp--preset--spacing--30);
  }
  .ys-main__content {
    > section {
      padding-block: var(--wp--preset--spacing--60);
    }
  }
  .ys-main__title-area {
    padding-inline: var(--wp--preset--spacing--30) 0;
  }
  .ys-main__title {
    font-size: var(--wp--preset--font-size--xx-large);
    margin-block-start: var(--wp--preset--spacing--30);
  }
  .ys-breadcrumb__sep {
    margin-inline: 8px;
  }
  .ys-main__eyecatch {
    margin-top: 40px;
  }
  .ys-main__eyecatch-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 351 / 206;
    margin: 0;
    padding: 0;
    object-fit: cover;
  }
}

/*
* single シングルページ
*/
.ys-single {
}
.ys-single__header {
  > * + * {
    margin-block-start: 34px;
  }
}

/*
* header ヘッダー
*/
.ys-header {
  padding-block: var(--wp--preset--spacing--30);
  position: relative;
  z-index: var(--z-default);
  margin-block-end: -496px; /* asideの高さ */
}
.ys-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline-start: var(--wp--preset--spacing--50);
  padding-inline-end: 0;
}
.ys-header__logo {
  width: 80px;
  position: relative;
  z-index: var(--z-modal-main); /* ロゴをモーダルメニューより上に表示 */
  transition: all 0.3s ease;
}
.ys-header__logo a.custom-logo-link {
  display: flex;
  justify-self: flex-start;
  align-items: center;
  gap: 20px;
  &::after {
    content: "株式会社高松製作所";
    flex: 1 0 300px;
    font-size: 32px;
    color: var(--ys-header-logo-text-color, var(--wp--preset--color--custom-black));
    font-weight: 400;
  }
}
.ys-header__logo a.custom-logo-link .custom-logo {
  flex: 0 1 auto;
  width: 83px;
}
.ys-header__menu {
  position: relative;
  z-index: var(--z-default);
}
.ys-header__cta-button {

  .cta-button {
    .cta-button__text {
      padding-inline: 40px;
      &::before {
        content: none;
      }
    }

    &:nth-child(2) {
      background-color: var(--wp--preset--color--custom-black);
    }
  }
}

/* ヘッダーがモーダル開いた状態のとき */
.ys-header.is-modal-open {
  z-index: var(--z-modal-main);
}

@media screen and (max-width: 1039px) {
  .ys-header {
    position: fixed;
    margin-block-end: 0;
  }
  .ys-header.is-hidden {
    display: none;
  }
  .ys-header__inner {
    padding-inline-start: var(--wp--preset--spacing--30);
    padding-inline-end: var(--wp--preset--spacing--30);
  }
  .ys-header__logo {
    width: 65px;
  }
  .ys-header__logo a.custom-logo-link {
    &::after {
      content: none;
    }
  }
  .ys-header__logo a.custom-logo-link .custom-logo {
    width: 65px;
  }

  .ys-header__menu {
  }
  .ys-header__cta-button {
    display: none;
    position: static;
    /* top: 616px; */
    bottom: 0;
    right: 0;
    z-index: var(--z-fixed-cta-button-sp);
    width: auto;

    .cta-button {
      min-height: 170px;
      .cta-button__text {
        padding-inline: 0;
        padding-block: 6px;
        &::before {
          content: none;
        }
      }
  
      &:nth-child(2) {
        background-color: var(--wp--preset--color--custom-black);
      }
    }
  }

  .ys-header__cta-button .cta-button {
    padding: 10px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .ys-header__cta-button .cta-button__text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding-left: 0;
    padding-inline: 0;
  }

  .ys-header__cta-button .cta-button__text::before {
  }
}

.ys-site-navigation {
  display: none;
  position: relative;
  z-index: var(--z-modal-main);
}

.ys-site-navigation__button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding-block: 11px;
  position: relative;
  z-index: var(--z-hamburger-button); /* モーダルとロゴより前面に表示 */
  background-color: transparent;
  border: none;
  cursor: pointer;

  &.is-active {
    width: 48px;
    height: 48px;
  }
}

.ys-site-navigation__button span {
  width: 100%;
  height: 2px;
  background-color: var(--wp--preset--color--custom-tk-blue);
  transition: transform 0.3s, opacity 0.2s;
}

/* ハンバーガーメニューをバツに変化 */
.ys-site-navigation__button.is-active span:nth-child(1) {
  transform: translateY(12px) rotate(24deg);
}

.ys-site-navigation__button.is-active span:nth-child(2) {
  opacity: 0;
}

.ys-site-navigation__button.is-active span:nth-child(3) {
  transform: translateY(-12px) rotate(-24deg);
}

.ys-site-navigation__menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--wp--preset--color--custom-bg-gray);
  color: var(--wp--preset--color--custom-black);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  padding-block: 148px 80px;
  padding-inline: var(--wp--preset--spacing--30);
  overflow-y: auto;
  z-index: var(--z-modal-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.ys-site-navigation__menu.is-open {
  display: block;
  opacity: 1;
  visibility: visible;
}

.ys-site-navigation__menu-inner {
  max-width: var(--wp--style--global--content-size);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ys-site-navigation__list {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
  padding-block-end: var(--wp--preset--spacing--40);
}

.ys-site-navigation__list > li {
}

.ys-site-navigation__list > li a,
.ys-site-navigation__list > li p {
  text-decoration: none;
  line-height: 1.6;
  color: inherit;
}

/* サブメニュースタイル */
.ys-site-navigation__submenu-list {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--10);
  margin-block-start: var(--wp--preset--spacing--20);
}

.ys-site-navigation__submenu-list > li {
  font-size: var(--wp--preset--font-size--xx-small);
}

.ys-site-navigation__submenu-list > li a:hover {
  opacity: 1;
}

.ys-site-navigation__footer {
  background-color: var(--wp--preset--color--custom-tk-blue);
  color: var(--wp--preset--color--custom-white);
  margin-inline: calc(var(--wp--preset--spacing--30) * -1);
}

.ys-site-navigation__footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
  padding-inline: var(--wp--preset--spacing--30);
  padding-block: var(--wp--preset--spacing--40);
}

.ys-site-navigation__footer-button {
  border: 1px solid var(--wp--preset--color--custom-white);
}

.ys-address {
}

.ys-address__company-name {
  font-size: var(--wp--preset--font-size--x-large);
  color: inherit;
  margin-block-end: 8px;
}

.ys-address__address {
  font-size: var(--wp--preset--font-size--xx-small);
  color: inherit;

  > a {
    color: inherit;
    text-decoration: none;
  }
}

.ys-copyright {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media screen and (max-width: 1039px) {
  .ys-site-navigation {
    display: block;
  }
  .ys-address {
    width: 100%;
    padding-block-end: var(--wp--preset--spacing--40);
    border-bottom: 1px solid var(--wp--preset--color--custom-white);
  }
}

/*
* footer フッター
*/
.ys-footer {
  background-color: var(--wp--preset--color--custom-gray-01);
  padding-block-start: var(--wp--preset--spacing--70);
  padding-block-end: var(--wp--preset--spacing--40);
}
.ys-footer__logo {
  width: 165px;
}
.ys-footer__menu {
  --ys-section-group-gap: 37px;
}
.ys-footer__cta-button {
  height: min-content;
}
.ys-footer__address {
  align-items: flex-end;
  padding-block-start: var(--wp--preset--spacing--40);
}
.ys-footer__address-list {
  &.ys-section__group[data-type="yoko-tate"] {
    justify-content: flex-start;
    --ys-section-group-gap: var(--wp--preset--spacing--20);
  }
}
.ys-footer__copyright {
  --ys-section-group-gap: 24px;
}
@media screen and (max-width: 1039px) {
  .ys-footer {
    padding-block-start: var(--wp--preset--spacing--60);
  }
  .ys-footer__logo {
    width: 65px;
  }
  .ys-footer__menu {
    --ys-section-group-gap: var(--wp--preset--spacing--30);
  }
  .ys-footer__address {
    align-items: flex-start;
    border-top: 1px solid var(--wp--preset--color--custom-white);
  }
  .ys-footer__address-list {
    --ys-section-group-gap: 0;
  }
  .ys-footer__copyright {
    --ys-section-group-gap: 8px;
  }
}

/*
* cta コンテンツ
*/
.ys-cta {
  background-color: var(--wp--preset--color--custom-tk-blue);
  color: var(--wp--preset--color--custom-white);
}
.ys-cta__inner {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--60);
  padding-inline: 0;
}
.ys-cta__block1 {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
}
.ys-cta__block2 {
  gap: var(--wp--preset--spacing--40);
  align-items: center;
}
.ys-cta__text {
  font-size: var(--wp--preset--font-size--xx-small);
  color: inherit;
}
.ys-cta__tel {
  font-family: var(--wp--preset--font-family--questrial);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.03em;
  color: inherit;

  a {
    color: inherit;
    text-decoration: none;
  }
}
@media screen and (max-width: 1039px) {
  .ys-cta__inner {
    max-width: 100%;
    padding-inline: var(--wp--preset--spacing--30);
  }
  .ys-cta__block2 {
    &.ys-section__group[data-type="yoko-tate"] {
      align-items: flex-start;
    }
  }
}

/*
* category カテゴリ
*/
.ys-category {
}
.ys-category__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wp--preset--spacing--60) 12px;
}
.category-casestudy .ys-category__list {
  grid-template-columns: repeat(2, 1fr);
}
.category-employees-voices .ys-category__list {
  grid-template-columns: repeat(2, 1fr);
}
.category-news .ys-category__list {
  gap: 0;
  border-top: 1px solid var(--wp--preset--color--custom-gray-01);
}
@media screen and (max-width: 1039px) {
  .category-casestudy .ys-category__list {
    grid-template-columns: 1fr;
  }
  .category-employees-voices .ys-category__list {
    grid-template-columns: 1fr;
  }
}

.ys-category__item {

} 
.ys-category__tags-tab {
  display: flex;
  gap: var(--wp--preset--spacing--30);
  margin-block-end: var(--wp--preset--spacing--60);
}

.ys-category__tab {
  font-size: var(--wp--preset--font-size--x-small);
  color: var(--wp--preset--color--custom-black);
  font-weight: 500;
  text-decoration: none;
  padding-inline: 2px;
  padding-block: 4px;

  &.is-active {
    color: var(--wp--preset--color--custom-tk-blue);
    border-bottom: 1px solid var(--wp--preset--color--custom-tk-blue);
  }
}

/*
* tags タグ
*/
.ys-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--20);
}
.ys-tags__item {
  font-size: var(--wp--preset--font-size--x-small);
  color: var(--wp--preset--color--custom-tk-blue);
  text-decoration: none;
  border: 1px solid var(--wp--preset--color--custom-tk-blue);
  padding-inline: 12px;
  padding-block: 4px;
}

/*
* parts パーツ
*/
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-block: var(--wp--preset--spacing--30);
  padding-inline: var(--wp--preset--spacing--50);
  color: var(--wp--preset--color--custom-white);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  line-height: 1.6;
  background-color: var(--wp--preset--color--custom-tk-blue);
  position: relative;
  
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 0.1);
    opacity: 0;
    transition: opacity 0.1s ease-out;
    z-index: 1;
  }
  
  &:hover::before {
    opacity: 1;
  }
}

.cta-button__text {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 40px; /* アイコン分のスペース確保 */
  z-index: 2;
}

.cta-button__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3H23V21H1V3ZM3 5V6.83L12 11.38L21 6.83V5H3ZM21 9.07L12 13.62L3 9.07V19H21V9.07Z' fill='white'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3H23V21H1V3ZM3 5V6.83L12 11.38L21 6.83V5H3ZM21 9.07L12 13.62L3 9.07V19H21V9.07Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  background-color: currentColor; /* ボタン内のテキスト色を継承 */
}

/* button ボタン */
.ys-button {
  --ys-button-border-color: var(--wp--preset--color--custom-white);
  background-color: transparent;
  padding-block: var(--wp--preset--spacing--20);
  padding-inline: var(--wp--preset--spacing--30);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  line-height: 1.6;
  display: block;
  width: fit-content;

  &[data-button~="border"] {
    border: 1px solid var(--ys-button-border-color);

    transition: background-color 0.1s ease-out;
    &:hover {
      background-color: rgb(255 255 255 / 0.4);
    }
  }

  &[data-button~="back"] {
    border: none;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;

    &::after {
      content: none;
    }
    &::before {
      content: "";
      display: inline-block;
      width: 40px;
      height: 40px;
      background-color: #191919;
      background-image: url(./assets/images/icon-arrow2.svg);
      background-size: 9px 16px;
      background-repeat: no-repeat;
      background-position: center;
    }

    transition: opacity 0.1s ease-out;
    &:hover {
      opacity: 0.6;
    }
  }

  &[data-button~="reverse"] {
    flex-direction: row-reverse;
    &::before {
      transform: rotate(180deg);
    }
  }
}

/* title タイトル */
.ys-title {
  font-size: var(--wp--preset--font-size--xx-large);
  line-height: 1.5;
  color: inherit;
}
.ys-title__ja {
  font-size: var(--wp--preset--font-size--xx-large);
  color: inherit;
}
.ys-title__en {
  font-size: var(--wp--preset--font-size--small);
  color: inherit;
}
@media screen and (max-width: 1039px) {
  .ys-title {
    font-size: 32px;
  }
  .ys-title__ja {
    font-size: 32px;
  }
}
/* text テキスト */
.ys-text {
  color: var(--ys-text-color, inherit);
  font-size: var(--ys-text-font-size, var(--wp--preset--font-size--small));
  font-weight: var(--ys-text-font-weight, 500);
  line-height: var(--ys-text-line-height, 1.6);
  word-break: break-all;
}

/* ロゴスタイル */
.custom-logo-link {
  display: inline-block;
}

.custom-logo {
  width: 100%;
  height: auto;
}

/*
* icon アイコン
*/
.icon {
  display: inline-block;
  position: relative;
}
.icon--instagram {
  position: relative;
}
.icon--instagram::before {
  display: inline-block;
  content: "";
  width: 24px;
  height: 24px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--%3E%3Cpath d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--%3E%3Cpath d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  background-color: currentColor; /* 親要素の色を継承 */
}

.ys-icon--externallink {
  position: relative;
}

.ys-icon--externallink::after {
  display: inline-block;
  vertical-align: sub;
  content: "";
  width: 16px;
  height: 16px;
  mask-image: url("data:image/svg+xml,%3Csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_31_7392)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.0906 3.51934L13.0914 10.0866L12.0241 10.0873L12.0241 5.3401L3.50641 13.8578L2.75217 13.1036L11.2699 4.58585L6.5234 4.5866L6.5234 3.51859L13.0906 3.51934Z' fill='currentColor'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_31_7392'%3E%3Crect width='16' height='16' fill='white' transform='translate(16 0.5) rotate(90)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_31_7392)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.0906 3.51934L13.0914 10.0866L12.0241 10.0873L12.0241 5.3401L3.50641 13.8578L2.75217 13.1036L11.2699 4.58585L6.5234 4.5866L6.5234 3.51859L13.0906 3.51934Z' fill='currentColor'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_31_7392'%3E%3Crect width='16' height='16' fill='white' transform='translate(16 0.5) rotate(90)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  background-color: currentColor; /* 親要素の色を継承 */
}

.ys-button[data-button~="arrow"] > span,
.ys-icon--arrow,
.is-style-simple-arrow > a {
  position: relative;
}

.ys-button[data-button~="arrow"] > span::after,
.ys-icon--arrow::after,
.is-style-simple-arrow > a::after {
  display: inline-block;
  vertical-align: -3px;
  content: "";
  width: 17px;
  height: 17px;
  margin-inline-start: 4px;
  mask-image: url("data:image/svg+xml,%3Csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_47_6701)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.1533 8.49974L10.5101 13.144L9.75492 12.3899L13.1117 9.03307L1.06585 9.03307L1.06585 7.9664L13.1117 7.9664L9.75492 4.61067L10.5101 3.85547L15.1533 8.49974Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_47_6701'%3E%3Crect width='16' height='16' fill='white' transform='translate(16 0.5) rotate(90)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_47_6701)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.1533 8.49974L10.5101 13.144L9.75492 12.3899L13.1117 9.03307L1.06585 9.03307L1.06585 7.9664L13.1117 7.9664L9.75492 4.61067L10.5101 3.85547L15.1533 8.49974Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_47_6701'%3E%3Crect width='16' height='16' fill='white' transform='translate(16 0.5) rotate(90)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  background-color: currentColor; /* 親要素の色を継承 */
}

.ys-swiper {
  position: relative;
  --swiper-navigation-color: white;
  --swiper-navigation-size: var(--wp--preset--font-size--small);
}
.ys-swiper__button {
  position: absolute;
  top: calc(-1 * var(--wp--preset--spacing--60));
  right: var(--wp--preset--spacing--60);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  .swiper-button-prev,
  .swiper-button-next {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: var(--wp--preset--color--custom-black);
    inset: 0;
    margin-top: 0;
    
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgb(255 255 255 / 0.4);
      opacity: 0;
      transition: opacity 0.1s ease-out;
      z-index: 1;
    }
    
    &:hover::before {
      opacity: 1;
    }
  }
}
@media screen and (max-width: 1039px) {
  .ys-swiper__button {
    top: calc(-1 * var(--wp--preset--spacing--50));
    right: var(--wp--preset--spacing--20);
  }
}
/*
* custom block style カスタムブロックスタイル
*/
.is-style-underline-2color {
  position: relative;
  padding-block: 8px;
  border-bottom: 1px solid var(--wp--preset--color--custom-gray-01);
}

.is-style-underline-2color::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--wp--preset--color--custom-tk-blue);
  width: var(--underline-width, 250px);
  z-index: var(--z-default);
}

.is-style-simple-arrow {
  background-color: transparent;
  border: 1px solid currentColor;

  > a {
    padding-block: var(--wp--preset--spacing--20);
    padding-inline: var(--wp--preset--spacing--30);
  }
}
/*
* utility ユーティリティ
*/
.hover--transparent10 {
  transition: opacity 0.1s;
  &:hover {
    opacity: 0.9;
  }
}
.ys-pc-only {
  display: block;
}
.ys-sp-only {
  display: none;
}
@media screen and (max-width: 1039px) {
  .ys-pc-only {
    display: none;
  }
  .ys-sp-only {
    display: block;
  }
}

.ys-ellipsis-1line {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.ys-ellipsis-2lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

/* ページネーション */
.ys-pagination {
  width: 100%;
  background: var(--wp--preset--color--custom-bg-gray, #f5f5f5);
  padding: 0;
  margin-block-start: var(--wp--preset--spacing--80);
}
@media screen and (max-width: 1039px) { 
  .ys-pagination {
    margin-block-end: var(--wp--preset--spacing--60);
  }
}
.ys-pagination__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-inline:auto;
  padding: 0;
  list-style: none;
}
.ys-pagination__item {
  margin: 0 4px;
  display: flex;
  align-items: center;
}
.ys-pagination__prev,
.ys-pagination__next {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-start;
}
.ys-pagination__next {
  justify-content: flex-end;
}
.ys-pagination__item:not(.ys-pagination__prev):not(.ys-pagination__next) {
  flex: 0 0 auto;
}
.ys-pagination__link {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wp--preset--color--custom-black);
  background: transparent;
  color: var(--wp--preset--color--custom-black);
  font-size: 16px;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  box-sizing: border-box;
  position: relative;
  
  &:not(.ys-pagination__link--current)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255 / 0.4);
    opacity: 0;
    transition: opacity 0.1s ease-out;
    z-index: 1;
  }
  
  &:not(.ys-pagination__link--current):hover::before {
    opacity: 1;
  }
}
.ys-pagination__link--current,
.ys-pagination__item.is-current .ys-pagination__link {
  background: #191919;
  color: #fff;
  border: 1px solid #191919;
  pointer-events: none;
}
.ys-pagination__prev.is-disabled .ys-button,
.ys-pagination__next.is-disabled .ys-button {
  display: none;
}



/*
* コンテンツブロック内のブロックのスタイル
*/
:is(.is-root-container,.ys-blockeditor-root) {
  > * + * {
    margin-block-start: var(--wp--preset--spacing--60);
  }
  /* 見出しブロックのカスタムスタイル */
  .is-style-underline-2color {
    position: relative;
    padding-block: 8px;
    border-bottom: 1px solid var(--wp--preset--color--custom-gray-01, #f5f5f5);
    margin-block-end: var(--wp--preset--spacing--40);
  }

  .is-style-underline-2color::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    background-color: var(--wp--preset--color--custom-tk-blue, #053560);
    width: var(--underline-width, 250px);
    z-index: 1;
  }

  .is-style-square-blue {
    position: relative;
    padding-left: 24px;
  }

  .is-style-square-blue::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--wp--preset--color--custom-tk-blue, #053560);
  }

  .is-style-square-black {
    position: relative;
    padding-left: 24px;
  }

  .is-style-square-black::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--wp--preset--color--custom-black, #222);
  }

  /* 画像ブロックのカスタムスタイル */
  .is-style-white-frame {
    padding: 24px;
    background-color: var(--wp--preset--color--custom-white, #fff);
  }

  .is-style-white-frame img {
    display: block;
    width: 100%;
    height: auto;
  }
  /* タグリスト */
  .ys-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .ys-tags__item {
    display: inline-block;
    padding: 4px 12px;
    color: var(--wp--preset--color--custom-tk-blue);
    text-decoration: none;
    font-size: var(--wp--preset--font-size--x-small);
    transition: background-color 0.2s;
  }

  .ys-tags__item:hover {
    background-color: var(--wp--preset--color--custom-gray-02, #606060);
    color: var(--wp--preset--color--custom-white, #fff);
  }

  /* リストブロックのカスタマイズ */
  ul,
  ol {
    list-style: none;
    padding-left: 0;
  }

  ul li {
    position: relative;
    padding-left: 1.1em;
  }

  ul li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wp--preset--color--custom-black);
    font-weight: bold;
  }

  ol {
    counter-reset: list-counter;
  }

  ol > li {
    position: relative;
    padding-left: 1em;
    counter-increment: list-counter;
  }

  ol > li::before {
    content: counter(list-counter)".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wp--preset--color--custom-black);
    font-weight: bold;
  }

  ol ol {
    counter-reset: sub-list-counter;
  }

  ol ol > li {
    counter-increment: sub-list-counter;
  }

  ol ol > li::before {
    content: counter(sub-list-counter, lower-alpha)".";
  }

  /* 引用ブロックのカスタムスタイル */
  .is-style-border-frame {
    border: 1px solid currentColor;
    padding: 24px;
  }
}

.ys-404 {

}

.ys-404__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  --ys-main-content-padding-block: 240px;
}
@media screen and (max-width: 1039px) {
  .ys-404__content {
    --ys-main-content-padding-block: 160px;
  }
}
.ys-404__title {
  font-size: 60px;
  font-weight: 400;
  font-family: var(--wp--preset--font-family--questrial);
  color: var(--wp--preset--color--custom-tk-blue);
  margin-block-end: 16px;
  line-height: 1;
}

.ys-404__description {
  margin-block-end: 80px;
}

.ys-404__button {
  --ys-button-border-color: var(--wp--preset--color--custom-black);
}

/* 404ページでサイドナビを非表示 */
.error404 {
  height: 100dvh;

  .ys-header {
    margin-block-end: 0;
  }
  .ys-main__inner {
    padding-inline: 0;
  }
}
.error404 .ys-aside {
  display: none;
}

.ys-internallinks {
  position: relative;
  top: 0;
  z-index: var(--z-modal-overlay);
  /* background-color: var(--wp--preset--color--custom-bg-gray); */
}

.ys-internallinks__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px var(--wp--preset--spacing--30);
  padding-block-start: 48px;
  margin-block-start: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
@media screen and (max-width: 1039px) {
  .ys-internallinks {
    top: 80px;
  }
  .ys-internallinks__list {
    padding-block-start: 12px;
    padding-block-end: 12px;
    margin-block-start: 68px;
    /* background-color: var(--wp--preset--color--custom-bg-gray); */
  }
}

.ys-internallinks__list::-webkit-scrollbar {
  display: none;
}

.ys-internallinks__item {
  flex: 0 0 auto;
}

.ys-internallinks__link {
  display: block;
  /* padding-block: var(--wp--preset--spacing--10); */
  /* padding-inline: var(--wp--preset--spacing--20); */
  color: var(--wp--preset--color--custom-black);
  text-decoration: none;
  font-size: var(--wp--preset--font-size-x-small);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

.ys-internallinks__link:hover {
  color: var(--wp--preset--color--custom-tk-blue);
}

.ys-internallinks__link.is-active {
  color: var(--wp--preset--color--custom-tk-blue);
  border-bottom: 1px solid var(--wp--preset--color--custom-tk-blue);
}

@media screen and (max-width: 1039px) {
  .ys-internallinks {
    margin-inline: calc(var(--wp--preset--spacing--30) * -1);
    margin-block-end: var(--wp--preset--spacing--40);
  }
  
  .ys-internallinks__list {
    padding-inline: var(--wp--preset--spacing--30);
  }
}

.ys-hover-blue {
  transition: color 0.1s ease-out;
  &:hover {
    color: var(--wp--preset--color--custom-tk-blue);
  }
}

.ys-hover-underline {
  position: relative;
  text-decoration: none;
  
  &::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: var(--ys-aside-color);
    transition: width 0.15s ease-out;
  }
  
  &:hover::before {
    width: 100%;
  }
}

.ys-hover-transparent60 {
  transition: opacity 0.1s ease-out;
  &:hover {
    opacity: 0.6;
  }
}

/* iPhone用電話番号リンクの色修正 */
a[href^="tel:"] {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  text-decoration: none !important;
}

.js-scrollable {
  /* overflow-x: scroll; */
}