/**
 * フロントとブロックエディタのキャンバス双方で同じ見た目にしたいルールをここに書く。
 * 読み込み: functions.php（wp_enqueue_scripts / add_editor_style）
 */

/* Font size token usage examples:
 * - Body text: var(--wp--preset--font-size--body)
 * - CTA button: var(--wp--preset--font-size--button-cta)
 */

/* Global fallback (WordPress also uses theme.json presets). */
body {
  font-size: var(--wp--preset--font-size--body);
}

/* Spacing role tokens */
:root,
body {
  --space-section-lg: var(--wp--preset--spacing--space-120);
  --space-section-md: var(--wp--preset--spacing--space-80);
  --space-block: var(--wp--preset--spacing--space-40);
  --space-heading: var(--wp--preset--spacing--space-30);

  --yutorimind-z-index-header: 100;
  /* スクロールスパイ: セクションを「アクティブ」とみなすビューポート上端からの距離（px 推奨） */
  --yutorimind-scrollspy-offset: 120px;
}
main {
  container-type: inline-size;
}
.wp-container-core-group-is-layout-67e27d10
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100%;
}
a:where(:not(.wp-element-button)) {
  text-decoration: none;
}

/* Section spacing block styles (core/group) */
.wp-block-group.is-style-section-space-lg {
  padding-top: var(--space-section-lg);
  padding-bottom: var(--space-section-lg);
}

.wp-block-group.is-style-section-space-md {
  padding-top: var(--space-section-md);
  padding-bottom: var(--space-section-md);
}

/* Automatic spacing between direct child blocks in group */
.wp-block-group > .wp-block + .wp-block {
  margin-top: var(--space-block);
}

/* Automatic spacing below headings */
.wp-block-heading {
  margin-top: 0;
  margin-bottom: var(--space-heading);
}

/* lowerpage-with-mainvisual：メインビジュアル内タイトル・英字 */
.lowerpage-main-visual__title,
.lowerpage-main-visual__title-en {
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.85),
    0 1px 4px rgba(0, 0, 0, 0.45);
}

.wp-block-button {
  .wp-block-button__link {
    &:hover {
      transform: translateY(2px);
      transition: transform 0.3s ease;
    }
  }
}
.lowerpage-main-visual__cover {
  img {
    object-position: bottom;
  }
}

/* SP overrides for spacing scale */
@media (max-width: 960px) {
  :root,
  body {
    --wp--preset--spacing--space-20: 0.75em;
    --wp--preset--spacing--space-30: 1em;
    --wp--preset--spacing--space-40: 1.25em;
    --wp--preset--spacing--space-60: 1.875em;
    --wp--preset--spacing--space-80: 2.5em;
    --wp--preset--spacing--space-120: 3.5em;
    --wp--preset--spacing--space-160: 4em;
    --wp--preset--spacing--space-200: 5em;

    --wp--preset--font-size--mobile-half: 0.5rem;
    --wp--preset--font-size--mobile-two-third: 0.667rem;
    --wp--preset--font-size--mobile-three-fourth: 0.75rem;
  }
}

@media (min-width: 961px) {
  .sp {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .pc {
    display: none !important;
  }
}

/**
 * header navigation (mobile overlay)
 * - 対象はヘッダー内ナビゲーションのみ
 * - ロゴはヘッダーの site-logo をオーバーレイ表示中に中央へ移動
 */
@media (min-width: 961px) {
  /* コア既定(約600px)のレスポンシブ切替を960px基準で上書き */
  header.wp-block-template-part
    .wp-block-navigation.is-responsive
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none !important;
  }

  header.wp-block-template-part
    .wp-block-navigation.is-responsive
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
      .is-menu-open
    ) {
    display: block !important;
    position: relative;
    width: auto;
    z-index: auto;
    background-color: transparent;
  }

  header.wp-block-template-part
    .wp-block-navigation.is-responsive
    .wp-block-navigation__responsive-container-content {
    /* display: block !important; */
  }

  header.wp-block-template-part
    .wp-block-navigation.is-responsive
    .wp-block-navigation__container {
    display: flex !important;
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 960px) {
  header.wp-block-template-part .wp-block-navigation.is-responsive {
    margin-left: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  /* 960px以下では常にハンバーガー運用 */
  header.wp-block-template-part
    .wp-block-navigation.is-responsive
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex !important;
  }

  header.wp-block-template-part
    .wp-block-navigation.is-responsive
    .wp-block-navigation__responsive-container:not(.is-menu-open):not(
      .has-modal-open
    ) {
    display: none !important;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-open {
    position: relative;
    inset-inline-start: auto;
    inset-inline-end: 0;
    margin-left: auto;
    width: 55px;
    height: 55px;
    border-radius: 9999px;
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    padding: 0;
    justify-content: center;
    align-items: center;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-open
    svg {
    width: 30px;
    height: 30px;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-open
    svg
    path {
    fill: currentColor;
  }

  header.wp-block-template-part .wp-block-navigation__responsive-container {
    background-color: #f2f2f2;
    padding: 0;
  }

  header.wp-block-template-part .wp-block-navigation__responsive-close {
    min-height: 100dvh;
    width: 100%;
    padding: 0;
  }

  header.wp-block-template-part .wp-block-navigation__responsive-dialog {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px 40px;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-close {
    width: 55px;
    height: 55px;
    border-radius: 9999px;
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    top: 12px;
    right: 20px;
    justify-content: center;
    align-items: center;
    display: flex;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-close
    svg {
    width: 22px;
    height: 22px;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-close
    svg
    path {
    fill: currentColor;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-content {
    width: min(100%, 320px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation__container {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-item__content {
    padding: 0;
    text-align: center;
    width: 100%;
    font-family: var(--wp--preset--font-family--noto-sans);
    font-size: var(--wp--preset--font-size--body);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.05em;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-content
    .wp-block-buttons {
    width: 100%;
    margin-top: 34px;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-content
    .wp-block-button {
    width: 100%;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-content
    .wp-block-button__link {
    display: block;
    width: 100%;
    border-radius: 9999px;
    text-align: center;
    padding-block: 14px;
  }

  header.wp-block-template-part
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-item {
    width: 100%;
    margin-bottom: 2rem;
  }

  header.wp-block-template-part:has(
      .wp-block-navigation__responsive-container.is-menu-open
    )
    .wp-block-group:has(> .wp-block-site-logo) {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 10000000;
  }

  header.wp-block-template-part:has(
      .wp-block-navigation__responsive-container.is-menu-open
    )
    .wp-block-group:has(> .wp-block-site-logo)
    img {
    width: 140px;
    height: auto;
  }
}
/**
 * footer
 */
footer.wp-block-template-part {
  position: relative;
  background-color: var(--wp--preset--color--base);
  margin-block-start: 0;
}
.footer__upper {
  justify-content: space-between;
}
@media (max-width: 960px) {
  .footer__upper {
    justify-content: center;
  }
}
.footer__nav-footer {
}
@media (max-width: 960px) {
  .footer__nav-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer__nav-socialicon {
  li.wp-block-navigation-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 41px;
    aspect-ratio: 1/1;
  }
  .wp-block-navigation-item__label {
    color: transparent;
  }
  li.wp-block-navigation-item.icon-instagram {
    background-image: url(images/icon-instagram.jpg);
  }
  li.wp-block-navigation-item.icon-x {
    background-image: url(images/icon-x.jpg);
  }
  li.wp-block-navigation-item.icon-youtube {
    background-image: url(images/icon-youtube.jpg);
    aspect-ratio: 57/41;
  }
  li.wp-block-navigation-item.icon-facebook {
    background-image: url(images/icon-facebook.jpg);
  }
  li.wp-block-navigation-item.icon-note {
    background-image: url(images/icon-note.jpg);
  }
  li.wp-block-navigation-item.icon-tiktok {
    background-image: url(images/icon-tiktok.jpg);
  }
  li.wp-block-navigation-item.icon-line {
    background-image: url(images/icon-line.jpg);
  }
  li.wp-block-navigation-item.icon-threads {
    background-image: url(images/icon-threads.png);
    aspect-ratio: 36/41;
  }
  li.wp-block-navigation-item.icon-standfm {
    background-image: url(images/icon-standfm.jpg);
  }
}
@media (max-width: 960px) {
  .footer__nav-socialicon {
    max-width: 325px;
    margin-inline: auto;
  }
}
.footer__nav-socialicon-text {
  text-align: right;
}
@media (max-width: 960px) {
  .footer__nav-socialicon-text {
    text-align: center;
  }
}
.footer__lower {
}
@media (max-width: 960px) {
  .footer__lower {
    justify-content: center;
  }
  .footer__lower-linklist {
    justify-content: center;
  }
}

/**
 * メニューページ　メニュー詳細
 */
.template-menu-bg {
  margin: 0;
  position: relative;
  &::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(./images/p-menu-bg.webp);
    background-size: cover;
    background-position: center;
    z-index: -1;
  }
}

/**
 * メニューページ　メニュー一覧
 */
/* layout */
.leyout-sidemenu {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  /* container-type: inline-size; */
  max-width: 1366px;
  margin-inline: auto;
}
.leyout-sidemenu__side {
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 1;
  max-width: 300px;
}
.leyout-sidemenu__main {
  position: relative;
  flex: 1;
  min-width: 0;
}
@media (max-width: 960px) {
  .leyout-sidemenu {
    flex-direction: column;
    flex-wrap: wrap;
  }
  .leyout-sidemenu__side {
    position: static;
    width: 100%;
  }
}

/* スクロールスパイ（assets/sidemenu-scrollspy.js）: 現在のセクションに対応するリンク */
.leyout-sidemenu__side a.leyout-sidemenu__link--active {
  color: var(--wp--preset--color--secondary);
  font-weight: 700;
  position: relative;
  &::after {
    content: "・";
    position: absolute;
    top: 50%;
    right: -1em;
    transform: translateY(-50%);
    color: var(--wp--preset--color--secondary);
  }
}

.p-menu-sidebar {
  box-shadow: 0 0 32px 3% #ebf5de48;
}
.p-menu-index {
}
.p-menu-index__item {
  background-image: url(images/p-menu-index__item.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 262/165;
  width: 262px;
  transition:
    scale 0.25s ease,
    filter 0.12s ease;

  /* ポインター操作時のみホバー拡大（タッチ端末でホバーが残留しにくい） */
  @media (hover: hover) and (pointer: fine) {
    &:hover {
      scale: 1.05;
    }
  }

  /* クリック／タップ中: 押し込み（マウス・スマホの :active はここで共通） */
  &:has(a:active) {
    scale: 0.97;
    filter: brightness(0.92);
    transition-duration: 0.08s, 0.08s;
  }

  @media (prefers-reduced-motion: reduce) {
    transition: none;
    @media (hover: hover) and (pointer: fine) {
      &:hover {
        scale: 1;
      }
    }
    &:has(a:active) {
      scale: 1;
      filter: brightness(0.92);
    }
  }

  p {
    width: 100%;
    height: 100%;

    a {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      /* Secondary (#338b43) に寄せたタップハイライト */
      -webkit-tap-highlight-color: rgba(51, 139, 67, 0.22);
      touch-action: manipulation;
    }
  }
}
@media (max-width: 960px) {
  .p-menu-index__item {
    width: 50%;
  }
}

.p-menu-coontent-top {
}
.p-menu-coontent-top__inner1 {
  position: relative;
  &::before,
  &::after {
    content: "";
    background-image: url(images/p-menu-coontent-top__inner-bg.webp);
    background-size: calc(100% - 10px);
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 1/1;
    width: 168px;
    position: absolute;
    z-index: 0;
    top: -25px;
    right: -25px;
    background-color: var(--wp--preset--color--accent-bg);
    scale: 1 -1;
  }
  &::before {
    scale: -1 -1;
    right: unset;
    left: -25px;
    z-index: 1;
  }
}
@media (max-width: 960px) {
  .p-menu-coontent-top__inner1 {
    &::before,
    &::after {
      width: 60px;
      top: -12px;
      right: -12px;
    }
    &::before {
      right: unset;
      left: -12px;
    }
  }
}
.p-menu-coontent-top__inner2 {
  > * {
    position: relative;
    z-index: 1;
  }
  &::before,
  &::after {
    content: "";
    background-image: url(images/p-menu-coontent-top__inner-bg.webp);
    background-size: calc(100% - 10px);
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 1/1;
    width: 168px;
    position: absolute;
    z-index: 0;
    bottom: -25px;
    right: -25px;
    background-color: var(--wp--preset--color--accent-bg);
    scale: 1 1;
  }
  &::before {
    scale: -1 1;
    right: unset;
    left: -25px;
    z-index: 1;
  }
}
@media (max-width: 960px) {
  .p-menu-coontent-top__inner2 {
    &::before,
    &::after {
      width: 84px;
      bottom: -12px;
      right: -12px;
    }
    &::before {
      right: unset;
      left: -12px;
    }
  }
}
.p-menu-coontent-top__list1 {
  height: 9lh;
}
@media (max-width: 960px) {
  .p-menu-coontent-top__list1 {
    height: auto;
  }
}

.p-menu-coontent-price {
}
.p-menu-coontent-price__title {
  position: relative;
  z-index: 1;

  &::before {
    content: "";
    background-image: url(images/p-menu-coontent-price__title-bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 527px;
    max-width: 95%;
    aspect-ratio: 1054/140;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.6;
  }
}

.p-menu-coontent-type-a {
}
.p-menu-coontent-type-a__item {
}
.p-menu-coontent-type-a__item-image {
  width: 100%;
  aspect-ratio: 9/6;

  &.has-dummy-image {
    opacity: 0;
  }
}
@media (max-width: 960px) {
  .p-menu-coontent-type-a__item-image {
    &.has-dummy-image {
      height: 0;
    }
  }
}
.p-menu-coontent-type-a__item-title {
}

/* 見出しブロックスタイル「スタイル１」: 文字数に応じて線の長さが変わる */
.wp-block-heading.is-style-menu-type-a-title {
  display: flex;
  align-items: center;
  gap: 1em;
  width: 100%;
  box-sizing: border-box;
}

.wp-block-heading.is-style-menu-type-a-title::after {
  content: "";
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
  background-color: currentColor;
}
.p-menu-coontent-type-a__item-text {
}

/*
* 「こんな人には来ないで頂きたい」ブロック
*/
.p-top-coontent-caution-block {
  max-width: 800px;
  margin-inline: 0 auto;
}
.p-top-coontent-caution__title {
  position: relative;

  &::after {
    content: "";
    background-image: url(images/p-top-coontent-caution__title-bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 550px;
    aspect-ratio: 928/33;
    position: absolute;
    top: calc(100% + 0.5em);
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
@media (max-width: 960px) {
  .p-top-coontent-caution__title {
    &::after {
      max-width: 80%;
    }
  }
}
.has-check-circle {
  position: relative;
  &::before {
    content: "";
    background-image: url(images/p-top-coontent-caution__check-circle.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 25px;
    aspect-ratio: 50/46;
    position: absolute;
    top: 50%;
    left: -2em;
    transform: translateY(-50%);
  }
}
.has-icon-triangle a {
  position: relative;
  &::before {
    content: "";
    width: 0.7em;
    aspect-ratio: 1/1;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    background-color: var(--wp--preset--color--base);
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translateY(-50%);
  }
}

@media (max-width: 960px) {
  .has-icon-triangle a {
    &::before {
      right: 10%;
    }
  }
}
.p-menu-content-top-block1__title {
  position: relative;
  translate: 0 -1em;
}

.is-layout-column-rev-sp {
}
@media (max-width: 960px) {
  .is-layout-column-rev-sp {
    flex-direction: column-reverse;
  }
}

/**
* front page
*/
.section-contents {
  position: relative;
  max-width: 940px;
  margin-inline: 0 auto;
  padding-right: 20px;
}
@media screen and (max-width: 960px) {
  .section-contents {
    width: calc(100% - 40px);
    margin-inline: auto;
    padding-right: 0;
  }
}
.front-mainvisual {
  align-items: center;
  justify-content: center;
  min-height: 700px;

  img.wp-block-cover__image-background {
    object-position: top;
  }
}
.front-mainvisual__contents {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}
.front-mainvisual__image {
  width: 60%;
}
.front-mainvisual__text3 {
  text-shadow:
    0 0 1.5rem #54745b,
    0 0 1.5rem #54745b,
    0 0 1.5rem #54745b;
}

.top-contents-bg {
  position: relative;
  &::before {
    content: "";
    background-image: url(images/top-yutorimind-bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100cqi;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
  }
}
@media screen and (min-width: 1366px) {
  .top-contents-bg {
    &::before {
      right: calc((1366px - 100cqi) / 2);
    }
  }
}
.top-contents-bg1 {
  &::before {
    background-image: url(images/top-yutorimind-bg.webp);
  }
}
.top-contents-bg2 {
  &::before {
    background-image: url(images/top-contents-bg2.webp);
  }
}
.top-contents-bg3 {
  &::before {
    background-image: url(images/top-service-bg.webp);
  }
}
.top-contents-bg4 {
  &::before {
    background-image: url(images/top-contents-bg4.webp);
  }
}
.top-contents-bg5 {
  &::before {
    background-image: url(images/top-book-bg.webp);
  }
}
.top-contents-bg6 {
  &::before {
    background-image: url(images/top-profile-bg.webp);
  }
}
.top-contents-bg8 {
  &::before {
    background-image: unset;
    background-color: #181818;
  }
}
@media screen and (max-width: 960px) {
  .top-contents-bg8 {
    height: auto;
  }
}
.top-contents-bg9 {
  padding-top: 150px;
  &::before {
    background-image: url(images/top-contents-bg9.webp);
  }
}
@media screen and (max-width: 960px) {
  .top-contents-bg9 {
    padding-top: 100vw;
    &::before {
      background-image: url(images/top-contents-bg9-sp.webp);
      background-size: contain !important;
      background-position: center top;
    }
  }
}
.top-contents-bg10 {
  padding-top: 150px;
  &::before {
    background-image: url(images/top-contents-bg10.webp);
  }
}
@media screen and (max-width: 960px) {
  .top-contents-bg10 {
    padding-top: 100vw;
    &::before {
      background-image: url(images/top-contents-bg10-sp.webp);
      background-size: contain !important;
      background-position: center top;
    }
  }
}

.top-yutorimind__contents {
}
@media screen and (max-width: 960px) {
  .top-yutorimind__contents {
  }
}
.top-yutorimind__contents-text {
  flex: 0 2 600px;
}
@media screen and (max-width: 961px) {
  .top-yutorimind__contents-text {
    flex: auto;
  }
}
.top-yutorimind__contents-image {
  flex: 0 1 300px;
  img {
    aspect-ratio: 300 / 456;
    object-position: -40px bottom;
  }
}
@media screen and (max-width: 960px) {
  .top-yutorimind__contents-image {
    flex: auto;
    img {
      aspect-ratio: 662 / 431;
      object-position: center -20px;
    }
  }
}

.top-service {
  .top-yutorimind__contents {
  }
  @media screen and (max-width: 960px) {
    .top-yutorimind__contents {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: flex-start;
      gap: 3rem 0;
    }
  }
  .top-yutorimind__contents .top-service__list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 136px;

    .top-service__list-item-left {
      height: 100%;
      position: relative;
      z-index: 1;
      width: 240px;
      display: flex;
      justify-content: center;
      align-items: center;
      &::before {
        content: "";
        background-image: url(images/p-menu-index__item.png);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        aspect-ratio: 262 / 165;
        width: auto;
        height: 170px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
      }
    }
    .top-service__list-item-right {
      height: 100%;
      position: relative;

      width: calc(100% - 240px);
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0;
      &::before {
        content: "";
        background-image: url(images/top-service-list-item-bg.png);
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
        height: 140px;
        width: auto;
        aspect-ratio: 1154 / 204;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translate(0, -50%);
        z-index: -1;
      }
    }
  }
  @media screen and (max-width: 960px) {
    .top-yutorimind__contents .top-service__list-item {
      height: auto;
      width: 140px;
      flex: 0 1 48%;
      flex-direction: column;
      justify-content: center;
      display: flex;
      margin-block-start: 0;
      .top-service__list-item-left {
        height: 90px;
        position: relative;
        z-index: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        &::before {
          content: "";
          background-image: url(images/p-menu-index__item.png);
          background-size: contain;
          background-position: center;
          background-repeat: no-repeat;
          aspect-ratio: 262 / 165;
          width: auto;
          height: 120px;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          z-index: -1;
        }
      }
      .top-service__list-item-right {
        height: 100%;
        position: relative;
        width: 170px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 1.3rem 0.5em;
        &::before {
          content: "";
          background-image: url(images/top-service-list-item-bg-sp.png);
          background-size: cover;
          background-position: center;
          background-repeat: no-repeat;
          height: 100%;
          width: 100%;
          aspect-ratio: auto;
          position: absolute;
          top: 0;
          right: 0;
          transform: unset;
          z-index: -1;
          background-color: var(--wp--preset--color--base);
        }
      }
    }
  }
}

.top-book {
  .top-book__contents {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    .top-book__contents-textarea {
      flex: 0 1 66%;
    }
    .top-book__contents-image {
      flex: 0 1 34%;

      &.book img {
        translate: 0 -5em;
      }
    }
  }
}
@media screen and (max-width: 960px) {
  .top-book {
    &.calendar {
      margin-top: var(--wp--preset--spacing--space-80);
    }
    .top-book__title-en,
    .top-book__title {
      text-align: left !important;
    }
    .top-book__contents {
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 3rem 0;

      &.is-layout-column-rev-sp {
        flex-direction: column-reverse;
      }
      .top-book__contents-image {
        flex: 0 1 auto;
        width: 80%;
        max-width: 510px;
        margin-inline: auto;

        &.book img {
          width: 60%;
          margin-inline: auto;
          display: block;
          translate: 0 0;
        }
      }
    }
  }
}

.top-profile {
  &.section-contents {
    max-width: 100%;
    padding-right: 0;
    overflow: hidden;
  }
  .top-profile-contents {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
  }
  .top-profile-image1 {
    flex: 0 1 470px;
    position: relative;
    top: 0;
    right: -40px;
    img {
      aspect-ratio: 1/1;
      width: 470px;
      border-radius: 50%;
    }
  }
  .top-profile-textarea {
    flex: 0 1 570px;
  }
  .is-style-menu-type-a-title {
    display: flex;
    align-items: center;
    gap: 1em;
    width: 100%;
    box-sizing: border-box;
  }

  .is-style-menu-type-a-title::after {
    content: "";
    flex: 1 1 0;
    min-width: 0;
    height: 1px;
    background-color: currentColor;
  }
}
@media screen and (max-width: 960px) {
  .top-profile {
    .top-profile-contents {
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin-top: var(--wp--preset--spacing--space-60);
    }
    .top-profile-image1 {
      flex: 0 1 230px;
      position: relative;
      top: 0;
      right: 0;
      img {
        width: 230px;
      }
    }
  }
}

.top-profile-list {
  justify-content: center;
  gap: 20px !important;
  .top-profile-list-item-image {
    width: 89px;
    aspect-ratio: 1/1;
    translate: 0 -40px;
    margin-bottom: -20px;
  }
  .top-profile-list-item-title {
    min-height: 2.8lh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media screen and (max-width: 960px) {
  .top-profile-list {
    gap: 100px !important;
    .top-profile-list-item-image {
      width: 96px;
      translate: 0 -50px;
      margin-block-end: -30px;
    }
  }
}

.column-item {
  display: flex;
}

.top-shaman-story__contents {
  height: 100%;
  max-width: 1050px;
  margin-inline: 0 auto;
  position: relative;
  container-type: inline-size;

  .top-shaman-story__link {
    font-size: 4cqi;
    position: absolute;
    bottom: 20%;
    left: 0.5em;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;

    &:hover {
      text-decoration-thickness: 2px;
    }
  }
}
@media screen and (max-width: 960px) {
  .top-shaman-story__contents {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    padding-left: 1rem !important;
    .top-shaman-story__link {
      text-underline-offset: 0.1em;
    }
  }
}
.top-shaman-story__title {
  color: var(--wp--preset--color--base);
  max-width: 500px;
  margin-inline: auto 0;
}
@media screen and (max-width: 960px) {
  .top-shaman-story__title {
    color: var(--wp--preset--color--secondary);
    max-width: 100%;
    margin-inline: auto;
  }
}

.top-shaman-story__text {
  color: var(--wp--preset--color--base);
  max-width: 500px;
  margin-inline: auto 0;
  line-height: 3.3;

  &.top-shaman-story__link {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    &:hover {
      text-decoration-thickness: 2px;
    }

    a {
      color: inherit;
    }
  }
}
@media screen and (max-width: 960px) {
  .top-shaman-story__text {
    color: var(--wp--preset--color--contrast);
    max-width: 100%;
    margin-inline: auto;
    line-height: 1.5;

    &.top-shaman-story__link {
      a {
        color: inherit;
      }
    }
  }
}

.template-page-contents {
  padding-block-start: 210px;
}
@media screen and (max-width: 960px) {
  .template-page-contents {
    padding-block-start: 100px;
  }
}

.legal-notice {
  .legal-notice__contents {
    p {
      sub {
        font-size: 12px;
      }
    }
  }
}
