@import url('https://fonts.googleapis.com/css2?family=Bonheur+Royale&family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/*
ページ上部ウィジェットエリアのスタイル
*/
.blog-page-top-widget-area,
.post-page-top-widget-area {
  margin-bottom: 2rem;
}

.page-top-widget {
  margin-bottom: 1.5rem;
}

.page-top-widget:last-child {
  margin-bottom: 0;
}

.page-top-widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

@media (max-width: 768px) {
  .blog-page-top-widget-area,
  .post-page-top-widget-area {
    margin-bottom: 1.5rem;
  }
  
  .page-top-widget-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
}

/*
サイドバーウィジェットエリアのスタイル
*/
.blog-sidebar-widget-area,
.post-sidebar-widget-area {
  margin-bottom: 2rem;
}

.blog-sidebar-widget-area .c-widget,
.post-sidebar-widget-area .c-widget {
  margin-bottom: 2rem;
}

.blog-sidebar-widget-area .c-widget:last-child,
.post-sidebar-widget-area .c-widget:last-child {
  margin-bottom: 0;
}

.c-widget__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

/* ウィジェット内のリスト */
.c-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.c-widget li {
  margin-bottom: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.c-widget li:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.c-widget a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.c-widget a:hover {
  color: #007cba;
}

@media (max-width: 768px) {
  .blog-sidebar-widget-area,
  .post-sidebar-widget-area {
    margin-bottom: 1.5rem;
  }
  
  .c-widget__title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
}

html {
  scroll-behavior: smooth;
}

body, html {
  color: #555555;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 500;
}

@media (max-width: 768px) {
  body, html {
    font-size: 14px;
    line-height: 1.8;
  }
}

ul,
ol {
  line-height: 1.4;
}

a:hover {
  opacity: 0.8;
  transition: 0.3s;
}

.wp-block-list > li:not(:last-child) {
  margin-bottom: 0.8rem;
}

.c-section {
  padding: 0;
}

.l-header {
  display: none;
}

.l-footer-widget-area {
  padding-top: 0!important;
  padding-bottom: 0!important;
}

.l-footer-widget-area .c-fluid-container {
  padding-left: 0;
  padding-right: 0;
}

.l-footer__sub-nav {
  background-color: var(--wp--preset--color--sm-accent);
}

.l-footer__sub-nav .c-fluid-container ul {
  gap: 0.875rem 2.5rem;
  padding-top: 16px;
  padding-bottom: 16px;
}

.l-footer__sub-nav .c-fluid-container ul li a {
  color: #ffffff;
  font-size: 0.875rem;
}

.l-footer__footer {
  background-color: #ffffff;
  padding-top: 14px!important;
  padding-bottom: 14px!important;
}

.l-footer__footer .c-copyright .c-fluid-container {
  text-align: center;
  color: var(--wp--preset--color--sm-accent);
  font-size: 0.75rem;
}

.l-footer iframe {
  display: block;
  height: 100%;
}


.footer-line,
.footer-tel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 92px;
  height: 100%;
}

.footer-line .wp-block-media-text,
.footer-tel .wp-block-media-text{
  display: flex;
  justify-content: center;
  font-weight: 800;
  gap: 18px;
}

.footer-line:hover,
.footer-tel:hover{
  opacity: 0.8;
  transition: 0.3s;
}

.footer-line .wp-block-media-text .wp-block-media-text__media{
  width: 37px!important;
}

.footer-tel .wp-block-media-text .wp-block-media-text__media {
  width: 23px!important;
}

.footer-line .wp-block-media-text__content {
  font-size: 1.375rem;
}

.footer-tel .wp-block-media-text__content .footer-tel-label {
  font-size: 1.125rem;
}

.footer-tel .wp-block-media-text__content .footer-tel-number {
  font-size: 1.645rem;
  margin-left: 1.5rem;
}

.iframe-wrapper div {
  height: 100%;
}

@media screen and (max-width: 768px) {

  .page-kv-ja {
    line-height: 1.3;
  }

  .l-footer iframe {
    height: 300px;
  }

  .footer-line,
  .footer-tel {
    min-height: 70px;
  }

  .footer-line .wp-block-media-text,
  .footer-tel .wp-block-media-text{
    gap: 7px;
  }

  .footer-line .wp-block-media-text .wp-block-media-text__media{
    width: 19px!important;
  }

  .footer-tel .wp-block-media-text .wp-block-media-text__media {
    width: 17px!important;
  }

  .footer-line .wp-block-media-text__content {
    font-size: 1rem;
  }

  .footer-tel .wp-block-media-text__content .footer-tel-label {
    font-size: 1rem;
  }

  .footer-tel .wp-block-media-text__content .footer-tel-number {
    font-size: 1.645rem;
    margin-left: 1.5rem;
  }

}

.l-title-top-widget-area {
  margin-top: 0;
  margin-bottom: 0;
}

.post-template-default .c-entry__title,
.blog-template-default .c-entry__title {
  color: var(--wp--preset--color--sm-accent);
  line-height: 1.35;
}

.post-template-default .c-meta__item--modified,
.blog-template-default .c-meta__item--modified {
  display: none;
}

.post-template-default .c-meta__item--author,
.blog-template-default .c-meta__item--author {
  display: none;
}

.post-template-default .c-meta__item,
.blog-template-default .c-meta__item {
  color: #999999;
}

.post-template-default .c-meta__item .svg-inline--fa,
.blog-template-default .c-meta__item .svg-inline--fa {
  display: none;
}

.post-template-default .p-related-posts__title,
.blog-template-default .p-related-posts__title {
  color: var(--wp--preset--color--sm-accent);
}

.post-template-default .p-related-posts__title::before,
.post-template-default .p-related-posts__title::after,
.blog-template-default .p-related-posts__title::before,
.blog-template-default .p-related-posts__title::after {
  background-color: var(--wp--preset--color--sm-accent);
}

.post-template-default .c-entry-summary__meta,
.blog-template-default .c-entry-summary__meta,
.archive .c-entry-summary__meta {
  display: none;
}

.post-template-default .c-entry__body h2,
.blog-template-default .c-entry__body h2 {
  color: var(--wp--preset--color--sm-accent);
  line-height: 1.4;
}

.post-template-default .c-entry__body h3,
.blog-template-default .c-entry__body h3 {
  color: var(--wp--preset--color--sm-accent);
  font-size: 1.35rem;
  border-bottom: 1px solid var(--wp--preset--color--sm-accent);
  line-height: 1.4;
}

.post-template-default .c-entry__body h4,
.blog-template-default .c-entry__body h4 {
  color: var(--wp--preset--color--sm-accent);
  font-size: 1.25rem;
  line-height: 1.4;
}

.post-template-default .c-entry__body h5,
.blog-template-default .c-entry__body h5 {
  color: var(--wp--preset--color--sm-accent);
  font-size: 1.125rem;
  line-height: 1.4;
}

.c-prev-next-nav {
  display: none;
}

.c-page-top {
  display: none;
}

.snow-monkey-posts.snow-monkey-recent-posts .c-entry-summary__body {
  color: #fff;
}

.c-entries--rich-media .c-entry-summary__figure {
  border-radius: 20px;
}

.c-entries--rich-media .c-entry-summary__figure > img {
  transition: 0.3s ease-in-out;
}

.c-entries--rich-media .c-entry-summary__term {
  border-radius: 0 0 0 20px;
}

.c-entries--rich-media .c-entries__item a:hover .c-entry-summary__figure img {
  transition: 0.3s ease-in-out;
  transform: scale(1.05);
}

.c-entries--rich-media .c-entry-summary__title {
  color: var(--wp--preset--color--sm-accent);
  line-height: 1.375;
}

.single-post .c-entry-summary--post .c-entry-summary__content,
.single-post .c-entry-summary--post .c-entry-summary__meta {
  display: none;
}

.nav-links .c-pagination__item-link {
  color: var(--wp--preset--color--sm-accent);
  border-radius: 6px;
}

.nav-links .c-pagination__item.current {
  border-radius: 6px;
}

ul.wp-block-list {
  list-style: none;
  padding-left: 1.5em;
}

ul.wp-block-list li {
  position: relative;
}

ul.wp-block-list li::before {
  content: "";
  position: absolute;
  left: -1.5em;
  top: 0.2em;
  width: 16px;
  height: 16px;
  background-image: url(./images/icon_list.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.is-style-heading-with-icon {
  background-color: transparent;
  position: relative;
  border-left: none;
  color: var(--wp--preset--color--sm-accent);
  padding-left: 51px!important;
  font-size: 2.75rem;
}
.is-style-heading-with-icon::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 30px;
  width: 31px;
  height: 31px;
  background-image: url(./images/icon_heading.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
@media screen and (max-width: 768px) {
  .is-style-heading-with-icon {
    font-size: 2.29rem;
    padding-left: 28px!important;
    line-height: 1.4;
  }
  .is-style-heading-with-icon::before {
    top: 12px;
    left: 0px;
    width: 22px;
    height: 22px;
  } 
}

.is-style-heading-with-line {
  position: relative;
  display: inline-block;
  padding: 0 35px!important;
}
.is-style-heading-with-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 1px;
  background-color: currentColor;
}
.is-style-heading-with-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 1px;
  background-color: currentColor;
}

.is-style-heading-with-line-long {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--wp--preset--color--sm-accent);
  font-size: 1.25rem;
  font-weight: 800;
}
.is-style-heading-with-line-long::before,
.is-style-heading-with-line-long::after {
  content: "";
  flex: 1;  
  height: 1px;
  background-color: currentColor;
}
.is-style-heading-with-line-long::before {
  margin-right: 10px;
}
.is-style-heading-with-line-long::after {
  margin-left: 10px;
}

.is-style-text-en {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.2;
} 
.wp-block-table.is-style-no-border-radius {
  border: none;
  border-radius: 0.5rem;
}
.wp-block-table.is-style-border-radius {
  border: 1px solid var(--wp--preset--color--sm-accent);
  border-radius: 0.5rem;
}
.wp-block-table.is-style-border-radius tr:not(:last-child),
.wp-block-table.is-style-no-border-radius tr:not(:last-child) {
  border-bottom: 1px solid #CCCCCC;
}
.wp-block-table.is-style-border-radius thead,
.wp-block-table.is-style-no-border-radius thead {
  border-bottom: none;
}
.wp-block-table.is-style-border-radius th,
.wp-block-table.is-style-no-border-radius th {
  border: none;
}
.wp-block-table.is-style-border-radius td,
.wp-block-table.is-style-no-border-radius td {
  border: none;
}
.wp-block-table.is-style-border-radius tr,
.wp-block-table.is-style-border-bottom-dotted tr {
  border-bottom: 1px dotted #CCCCCC;
}
.wp-block-table.is-style-border-radius th,
.wp-block-table.is-style-border-bottom-dotted th {
  border: none;
}
.wp-block-table.is-style-border-radius td,
.wp-block-table.is-style-border-bottom-dotted td {
  border: none;
}

.wp-block-image.is-style-white-bg-caption {
  position: relative;
  overflow: hidden;
  border-radius: 0.625rem;
}
.wp-block-image.is-style-white-bg-caption .wp-element-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  border-radius: 0 0.625rem 0 0;
  width: fit-content;
  margin-bottom: 0;
  margin-top: 0;
  color: var(--wp--preset--color--sm-accent);
  font-weight: 500;
  padding: 10px 12px;
  line-height: 1.3;
}

.wp-block-image.is-style-white-bg-small-caption {
  position: relative;
  overflow: hidden;
  border-radius: 0.625rem;
}
.wp-block-image.is-style-white-bg-small-caption .wp-element-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  border-radius: 0 0.625rem 0 0;
  width: fit-content;
  margin-bottom: 0;
  margin-top: 0;
  color: var(--wp--preset--color--sm-accent);
  font-weight: 500;
  padding: 10px 12px;
  line-height: 1.3;
}

.wp-block-image.is-style-green-bg-caption {
  position: relative;
  border-radius: 0.625rem;
  overflow: hidden;
  line-height: 1.3;
}
.wp-block-image.is-style-green-bg-caption .wp-element-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--wp--preset--color--sm-accent);
  border-radius: 0 0.625rem 0 0;
  width: fit-content;
  margin-bottom: 0;
  margin-top: 0;
  color: #ffffff;
  font-weight: 500;
  padding: 10px 12px;
  font-size: 1.125rem;
  line-height: 1.3;
}

/* -------------------------------------------------
   mask_fluid_shape.svg でマスクして、そのマスクを動かすアニメーション
--------------------------------------------------- */
.wp-block-image.is-style-fluid-shape-animation img{
  mask-image: url('./images/mask_fluid_shape.svg');
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('./images/mask_fluid_shape.svg');
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;

  animation: fluid-mask-move 10s linear infinite;
}

.wp-block-column:nth-child(even) .wp-block-image.is-style-fluid-shape-animation img {
  mask-image: url('./images/mask_fluid_shape_02.svg');
  -webkit-mask-image: url('./images/mask_fluid_shape_02.svg');
  animation: fluid-mask-move02 10s linear infinite;
}

/* キーフレームでマスク位置・サイズを可変（例: 上方向に波状で動く表現） */
@keyframes fluid-mask-move {
  0% {
    mask-position: center 0%;
    -webkit-mask-position: center 0%;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
  }
  20% {
    mask-position: center 7%;
    -webkit-mask-position: center 7%;
    mask-size: 105% 94%;
    -webkit-mask-size: 105% 94%;
  }
  40% {
    mask-position: center 10%;
    -webkit-mask-position: center 10%;
    mask-size: 110% 104%;
    -webkit-mask-size: 110% 104%;
  }
  60% {
    mask-position: center 5%;
    -webkit-mask-position: center 5%;
    mask-size: 105% 100%;
    -webkit-mask-size: 105% 100%;
  }
  80% {
    mask-position: center 0%;
    -webkit-mask-position: center 0%;
    mask-size: 98% 100%;
    -webkit-mask-size: 98% 100%;
  }
  100% {
    mask-position: center 0%;
    -webkit-mask-position: center 0%;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
  }
}

@keyframes fluid-mask-move02 {
  0% {
    mask-position: 48% 2%;
    -webkit-mask-position: 48% 2%;
    mask-size: 99% 101%;
    -webkit-mask-size: 99% 101%;
  }
  15% {
    mask-position: 54% 4%;
    -webkit-mask-position: 54% 4%;
    mask-size: 102% 98%;
    -webkit-mask-size: 102% 98%;
  }
  35% {
    mask-position: 46% 5%;
    -webkit-mask-position: 46% 5%;
    mask-size: 104% 102%;
    -webkit-mask-size: 104% 102%;
  }
  50% {
    mask-position: 52% 1%;
    -webkit-mask-position: 52% 1%;
    mask-size: 97% 100%;
    -webkit-mask-size: 97% 100%;
  }
  70% {
    mask-position: 45% 3%;
    -webkit-mask-position: 45% 3%;
    mask-size: 101% 103%;
    -webkit-mask-size: 101% 103%;
  }
  85% {
    mask-position: 51% 2%;
    -webkit-mask-position: 51% 2%;
    mask-size: 103% 98%;
    -webkit-mask-size: 103% 98%;
  }
  100% {
    mask-position: 48% 2%;
    -webkit-mask-position: 48% 2%;
    mask-size: 99% 101%;
    -webkit-mask-size: 99% 101%;
  }
}

@media screen and (max-width: 768px) {
  .wp-block-image.is-style-green-bg-caption .wp-element-caption {
    font-size: 1rem;
    padding: 5px 6px;
  }
  .wp-block-image.is-style-white-bg-caption .wp-element-caption {
    font-size: 1rem;
    padding: 5px 6px;
  }
  .wp-block-image.is-style-white-bg-caption img {
    aspect-ratio: 1/1;
    object-fit: cover;
  }

  .wp-block-image.is-style-white-bg-small-caption .wp-element-caption {
    font-size: 1rem;
    padding: 5px 6px;
  }
  .wp-block-image.is-style-white-bg-small-caption img {
    aspect-ratio: 1/1;
    object-fit: cover;
  }
  .wp-block-image.is-style-white-bg-small-caption .wp-element-caption {
    font-size: 0.75rem;
    padding: 5px 6px;
  }
  .wp-block-image.is-style-white-bg-small-caption .wp-element-caption > * {
    font-size: 0.75rem!important;
  }
}

.wp-block-columns.is-style-overlap-image-content {
  position: relative;
}
.wp-block-columns.is-style-overlap-image-content .wp-block-column {
  flex-shrink: 0;
}

@media screen and (min-width: 769px) {
  .wp-block-columns.is-style-with-center-border {
    position: relative;
  }
  .wp-block-columns.is-style-with-center-border::after {
    content: "";
    display: block;
    width: 1px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-right: 1px dashed var(--wp--preset--color--sm-accent);
  }
}

@media screen and (max-width: 768px) {
  .wp-block-columns.is-style-sp-2-columns {
    column-gap: 20px!important;
  }
  .wp-block-columns.is-style-sp-2-columns .wp-block-column {
    flex-basis: calc(50% - 10px)!important;
    flex-grow: 0;
  }

  .wp-block-group.is-style-grid-sp-2-columns {
    column-gap: 20px!important;
    grid-template-columns: repeat(2, 1fr);
  }
  .wp-block-group.is-style-sp-column-reverse {
    flex-direction: column-reverse;
  }
}

.wp-block-group.is-style-heading-with-image-icon .wp-block-heading {
  line-height: 1.4;
}

@media (max-width: 768px) {
  .wp-block-group.is-style-heading-with-image-icon .wp-block-image {
    width: 72px;
  }
}

.wp-block-button__link {
  border-radius: 9999px;
  position: relative;
}

.wp-block-button__link[href$=".pdf"],
.wp-block-button__link[target="_blank"] {
  padding-right: 2.5em;
}

/* PDFリンクのアイコン */
.wp-block-button__link[href$=".pdf"]::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translateY(-50%);
  width: 14px;
  height: 17px;
  background-image: url(./images/icon_pdf.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* target="_blank"のアイコン */
.wp-block-button__link[target="_blank"]:not([href$=".pdf"])::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translateY(-50%);
  width: 17px;
  height: 13px;
  background-image: url(./images/icon_blank.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.wp-block-navigation__responsive-container .wp-block-navigation-item__content {
  position: relative;
  font-size: 1.125rem;
  padding-right: 22px;
}
.wp-block-navigation__responsive-container .wp-block-navigation-item__content::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 18px;
  height: 18px;
  background-image: url(./images/icon_arrow.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/*
カスタムヘッダースタイル
*/
.ohana-custom-header {
  background-color: #FFFFFF;
  transition: background-color 0.3s ease;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* トップページの初期状態は透明背景 */
.home .ohana-custom-header {
  background-color: transparent;
  position: fixed;
}

/* トップページでスクロール時は白背景 */
.home .ohana-custom-header.scrolled {
  background-color: #FFFFFF;
}
.ohana-header-container {
  width: 100%;
  padding-left: 48px;
  display: flex;
}
.ohana-header-logo {
  width: clamp(280px, 23.82vw, 350px);
  margin-right: auto;
  padding: 15px 0;
}
.ohana-header-body {
  display: flex;
}
.ohana-header-nav {
  margin-left: clamp(5px, 0.8vw, 15px);
  margin-right: clamp(20px, 2vw, 50px);
  display: flex;
  align-items: center;
}
.ohana-nav-menu {
  display: flex;
  gap: clamp(20px, 1.8vw, 30px);
  margin: 0;
  padding: 0;
}
.ohana-nav-menu li {
  list-style: none;
  position: relative;
}
.ohana-nav-menu li a {
  text-decoration: none;
  color: #ffffff;
  transition: 0.3s ease-in-out;
  display: block;
  padding: 5px 0;
  position: relative;
}

  /* 白背景時のナビ文字色変更 */
  .ohana-custom-header:not(.home .ohana-custom-header) .ohana-nav-menu > li > a,
  .home .ohana-custom-header.scrolled .ohana-nav-menu > li > a {
    color: var(--wp--preset--color--sm-accent);
  }

  /* 白背景時のアクセス情報文字色変更 */
  .ohana-custom-header:not(.home .ohana-custom-header) .ohana-access-text,
  .home .ohana-custom-header.scrolled .ohana-access-text {
    color: var(--wp--preset--color--sm-accent);
  }

/* サブメニューを持つ親要素に右向き矢印を追加 */
.ohana-nav-menu .menu-item-has-children > a::after {
  content: "→";
  margin-left: 8px;
  font-weight: bold;
  font-size: 1.5px;
  color: var(--wp--preset--color--sm-accent);
}
.ohana-nav-menu li a:hover {
  color: var(--wp--preset--color--sm-accent);
}

/* サブメニューのスタイル */
.ohana-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: #ffffff;
  border-radius: 10px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 1000;
  margin: 0;
  padding: 10px 0;
  margin-top: 12px;
}

/* サブメニューの上向き矢印 */
.ohana-nav-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #ffffff;
}

.ohana-nav-menu .children-expander {
  display: none;
}

/* 親要素にホバーした時にサブメニューを表示 */
.ohana-nav-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* サブメニューの項目 */
.ohana-nav-menu .sub-menu li {
  width: 100%;
  margin: 0;
}

.ohana-nav-menu .sub-menu > li > a {
  color: var(--wp--preset--color--sm-accent);
  padding: 8px 20px;
  font-size: 13px;
  border-bottom: 1px solid #CCCCCC;
  transition: background-color 0.3s ease;
}

.ohana-nav-menu .sub-menu li:last-child a {
  border-bottom: none;
}

.ohana-nav-menu .sub-menu li a::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 21px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--wp--preset--color--sm-accent);
  border-right: 2px solid var(--wp--preset--color--sm-accent);
  transform: rotate(45deg);
}

.ohana-nav-menu .sub-menu li a:hover {
  background-color: #f8f8f8;
  color: var(--wp--preset--color--sm-accent);
}

/* 3階層目のサブメニュー（サブサブメニュー） */
.ohana-nav-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

.ohana-header-info {
  display: flex;
}

.ohana-access-info {
  margin-right: clamp(10px, 2.65vw, 45px);
  display: flex;
  align-items: flex-start;
  align-items: center;
}

.ohana-access-icon {
  width: 20px;
  margin-top: 10px;
}

.ohana-custom-header:not(.home .ohana-custom-header) .ohana-access-icon path,
.home .ohana-custom-header.scrolled .ohana-access-icon path {
  fill: var(--wp--preset--color--sm-accent);
}

.ohana-access-text {
  font-size: 0.875rem;
  color: #ffffff;
  line-height: 1.43;
  margin-left: 15px;
  letter-spacing: 0;
}

.ohana-line-link {
  color: #555555;
  text-decoration: none;
  width: 106px;
  height: 106px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 15px;
  border-radius: 0 0 0 20px;
  transition: 0.3s ease-in-out;
}

@media screen and (max-width: 1380px) {
  .ohana-line-link {  
    width: 90px;
    height: 90px;
  }
}

.ohana-tel-button {
  display: none;
}

/* 白背景時のLINEボタンの角丸を無くす */
.ohana-custom-header:not(.home .ohana-custom-header) .ohana-line-link,
.home .ohana-custom-header.scrolled .ohana-line-link {
  border-radius: 0;
  background-color: var(--wp--preset--color--sm-accent);
}
.ohana-line-link:hover {
  background-color: var(--wp--preset--color--sm-accent);
}
.ohana-line-label {
  color: #555555;
  transition: 0.3s ease-in-out;
}
.ohana-line-link:hover .ohana-line-icon path {
  fill: #ffffff;
}
.ohana-line-link:hover .ohana-line-label {
  color: #ffffff;
}
.ohana-custom-header:not(.home .ohana-custom-header) .ohana-line-label,
.home .ohana-custom-header.scrolled .ohana-line-label {
  color: #ffffff;
}
.ohana-custom-header:not(.home .ohana-custom-header) .ohana-line-icon path,
.home .ohana-custom-header.scrolled .ohana-line-icon path {
  fill: #ffffff;
}

.header-hamburger {
  display: none;
}

@media screen and (max-width: 1537px) {
  .ohana-header-nav {
    margin-left: clamp(5px, 0.6vw, 10px);
    margin-right: clamp(20px, 1.6vw, 30px);
  }
  .ohana-nav-menu {
    gap: clamp(12px, 1.4vw, 20px);
  }
}

/* 1440px以下でアクセスアイコンを非表示 */
@media screen and (max-width: 1440px) {
  .ohana-access-icon {
    display: none;
  }
  .ohana-nav-menu li a {
    font-size: 0.875rem;
  }
  .ohana-access-text {
    font-size: 0.75rem;
    margin-left: 0;
  }
}

/* レスポンシブ対応 */
@media (max-width: 1279px) {
  .ohana-header-nav {
    margin-left: 30px;
  }
  
  .ohana-nav-menu {
    gap: 25px;
  }
  
  .ohana-nav-menu > li > a {
    font-size: 1rem;
  }

  .ohana-custom-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: #fff;
  }
  .home .ohana-custom-header {
    position: sticky;
    background-color: #fff;
  }
  
  .ohana-header-container {
    flex-direction: column;
    padding: 0 0;
    height: 57px;
  }

  .ohana-header-body {
    position: absolute;
    top: 57px;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    flex-direction: column-reverse;
    justify-content: flex-end;
    transform: translateX(-100%);
    transition: transform 0.3s;
    opacity: 0;
  }

  .ohana-header-body.open {
    transform: translateX(0);
    transition: 0.3s;
    opacity: 1;
  }
  
  .ohana-header-logo {
    width: 214px;
    margin: 10px 10px 10px 15px;
    padding: 0 0;
  }
  
  .ohana-header-nav {
    margin-left: 0;
    margin-bottom: 0;
    margin-right: 0;
    background-color: #fff;
    padding: 18px 30px 0;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .ohana-nav-container {
    width: 100%;
    height: 100%;
    display: block;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 110px;
  }

  .ohana-header-nav::-webkit-scrollbar {
    display: none;
  }

  .ohana-nav-container::-webkit-scrollbar {
    display: none;
  }

  .ohana-nav-menu {
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    overflow: scroll;
    width: 100%;
  }

  .ohana-nav-menu li {
    padding-bottom: 4px;
    width: 100%;
    border-bottom: dotted 1px var(--wp--preset--color--sm-accent);
  }
  
  .ohana-nav-menu > li > a {
    font-size: 1.14rem;
    display: block;
    text-decoration: none;
    color: var(--wp--preset--color--sm-accent);
    position: relative;
  }

  .ohana-nav-menu > li > a::after {
    content: "";
    position: absolute;
    top: 11px;
    right: 5px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--wp--preset--color--sm-accent);
    border-right: 2px solid var(--wp--preset--color--sm-accent);
    transform: rotate(45deg);
  }

  .ohana-nav-menu li:hover .sub-menu {
    transform: translateX(0) translateY(0);
  }
  
  /* サブメニューを常時表示 */
  .ohana-nav-menu .sub-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--wp--preset--color--sm-sub-accent);
    visibility: visible;
    opacity: 1;
    position: relative;
    padding: 7px 0;
    margin-top: 12px;
    border-radius: 10px;
    top: 0;
    left: 0;
    transform: translateX(0) translateY(0);
  }

  .ohana-nav-menu .sub-menu::before {
    display: none;
  }

  .ohana-nav-menu .sub-menu li {
    width: 100%;
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .ohana-nav-menu .sub-menu li:not(:last-child) {
    border-bottom: dotted 1px var(--wp--preset--color--sm-accent);
  }

  .ohana-nav-menu .sub-menu > li > a {
    border-bottom: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    font-size: 1rem;
    color: #555555;
  }

  .ohana-nav-menu .sub-menu li a::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 27px;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--wp--preset--color--sm-accent);
    border-right: 2px solid var(--wp--preset--color--sm-accent);
    transform: rotate(45deg);
  }

  .ohana-header-info {
    background-color: var(--wp--preset--color--sm-sub-accent);
    flex-direction: column;
    padding: 20px 30px 30px;
  }

  .ohana-access-info { 
    margin-right: 0;
    margin-bottom: 0;
    padding: 0;
    justify-content: center;
  }

  .ohana-access-icon {
    display: block;
    margin-top: 0;
    width: 26px;
    height: auto;
  }

  .ohana-access-icon path {
    fill: var(--wp--preset--color--sm-accent);
  }

  .ohana-access-text {
    font-size: 0.857rem;
    color: var(--wp--preset--color--sm-accent);
    margin-left: 10px;
  }

  .ohana-button-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
  }

  .ohana-line-button {
    margin-top: 0;
  }

  .ohana-line-link {
    display: flex;
    flex-direction: row;
    background-color: var(--wp--preset--color--sm-accent);
    border-radius: 8px;
    height: 70px;
    padding: 10px 0;
    width: 100%;
  }
  .ohana-custom-header:not(.home .ohana-custom-header) .ohana-line-link, .home .ohana-custom-header.scrolled .ohana-line-link {
    border-radius: 8px;
  }

  .ohana-line-icon {
    width: 20px;
    height: 20px;
  }

  .ohana-line-icon path {
    fill: #ffffff;
  }

  .ohana-line-label {
    color: #ffffff;
    font-size: 1.14rem;
    margin-left: 10px;
  }

  .ohana-tel-button {
    display: block;
  }

  .ohana-tel-link {
    display: flex;
    flex-direction: row;
    background-color: var(--wp--preset--color--sm-accent);
    border-radius: 8px;
    height: 70px;
    padding: 10px 0;
    padding-top: 10px;
    justify-content: center;
    align-items: center;
  }

  .ohana-tel-icon {
    width: 20px;
    height: 20px;
  }

  .ohana-tel-icon path {
    fill: #ffffff;
  }

  .ohana-tel-label {
    color: #ffffff;
    font-size: 1.14rem;
    margin-left: 10px;
  }

  .header-hamburger {
    display: flex;
    flex-direction: column;
    background-color: var(--wp--preset--color--sm-accent);
    border: none;
    outline: none;
    cursor: pointer;
    width: 57px;
    height: 57px;
    border-radius: 0 0 0 10px;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
  }
  .header-hamburger-line {
    width: 29px;
    height: 2px;
    background-color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
    transform-origin: left;
  }

  .header-hamburger-line:nth-child(1) {
    transform: translate(-50%, calc(-50% - 10px));
  }
  .header-hamburger-line:nth-child(2) {
    transform: translate(-50%, -50%);
  }
  .header-hamburger-line:nth-child(3) {
    transform: translate(-50%, calc(-50% + 10px));
  }

  .header-hamburger.open .header-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(-50%, -50%);
  }

  .header-hamburger.open .header-hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .header-hamburger.open .header-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(-50%, -50%);
  }
}

.footer-buttons > .wp-block-columns {
  gap: 0!important;
}

/* フッターボタンの固定表示 - SP時のみ */
@media (max-width: 768px) {
  .footer-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    transition: transform 0.3s ease;
  }

  .footer-buttons.footer-visible {
    position: relative;
  }

  /* フッター表示時のパディング調整（コンテンツ下部とボタンの重複防止） */
  body:not(.footer-visible) .l-contents {
    padding-bottom: calc(92px + 20px); /* ボタンの高さ + 余白 */
  }
}