/* 画像パスを修正 */
.youtube {
  margin-top: 120px;
  width: 100%;
}

.youtube__iframe {
  width: 100%;
  position: relative;
}
.youtube__iframe::before {
  display: block;
  content: '';
  padding-top: 53.7037037037037%;
}
.youtube__iframe iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.midokoro .flex-imagebox.left {
  width: 100%;
}
.goto {
  padding-top: 128px;
}
.goto::after {
  max-width: 100%;
  bottom: unset;
  top: 0;
  left: 50%;
  height: 148px;
  transform: translateX(-50%);
}
.goto .inner .goto-image {
  position: relative;
  z-index: 11;
}
.floor .flex {
  flex-wrap: wrap;
}
.midokoro .flex-imagebox.right {
  text-align: right;
  width: 100%;
}
.midokoro .flex-imagebox img {
  width: 47.22222222222222%;
  height: 480px;
  object-fit: cover;
}
.about .inner-relative .mapblock {
  right: 0;
}
.mapblock {
  width: 100%;
  text-align: right;
}
.mapblock img {
  width: 55.55555555555556%;
  max-width: 800px;
  object-fit: cover;
}
.floor .flex .imagebox {
  padding-left: 0;
  padding-right: 0;
  max-height: 400px;
  min-height: 400px;
}
.gallerybox img {
  height: 424px;
  object-fit: cover;
}
.floor .imagebox {
  width: 516px;
  min-height: 516px;
  max-height: 516px;
}
.flexbox.--flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer .inner {
  border: none;
}
.footer__logo-area > a > img.--habi {
  max-width: 200px;
}
.footer__logo-area > a > img {
  max-width: 240px;
}
.footer__block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}
.footer__block:nth-child(1) {
  padding-bottom: 24px;
  border-bottom: solid 2px #333;
}
.footer__block.--reverse {
  padding-top: 24px;
  flex-direction: row-reverse;
}
.footer__sns {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 40px);
  gap: 24px;
  justify-content: center;
}
.footer__text {
  margin: 0;
  font-size: 18px;
}
.footer__text.--head {
  margin-bottom: 8px;
  font-size: 22px;
}
.footer__text span {
  display: block;
  text-align: center;
}
a[href^='tel:'] {
  color: #065fd4;
  pointer-events: none;
}
.concept .textbox p {
  line-height: 2.75em;
}
.goto .inner .goto-txt h2 {
  line-height: 1.5em;
}
.floor .flex {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  /* grid-template-columns: repeat(4, 1fr); */
}
.floor .imagebox {
  width: unset;
  max-width: unset;
  min-width: unset;
  max-height: fit-content;
  min-height: auto;
}
.floor .imagebox img {
  max-width: 95%;
}
.floor .textbox {
  min-height: 101px;
}
.floor .flex .imagebox img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
}
h1 span.large {
  font-size: min(5.6vw, 4rem);
}
.--span-top {
  margin-top: 16px;
}
html {
  overflow: unset !important;
}
/* .firstview {
  background-image: url(../../images/top/top-fv.webp);
} */
.floor .textbox {
  min-height: auto;
  font-size: 18px;
  padding-bottom: 16px;
}
.goto .inner .goto-txt p span:last-child {
  position: relative;
  top: 12px;
}
.mw_wp_form .error.error {
  margin-top: 0;
}
.contact__privacy span.error {
  display: block;
}
.--address-number .error {
  white-space: nowrap;
}
.iziModal-navigate {
  display: none;
}
.iziModal .close {
  position: absolute;
  right: -16px;
  top: -16px;
  cursor: pointer;
  z-index: 100;
  font-size: 24px;
}
.iziModal .iziModal-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.goto .inner .goto-txt h2 {
  font-size: 2rem;
}
.goto .inner .goto-txt {
  left: unset;
}
@media screen and (max-width: 919px) {
  .goto .inner .goto-txt {
    left: 20px;
  }
  .goto::after {
    bottom: unset;
    top: 0;
    left: 0;
    height: 796px;
    transform: unset;
  }
  .mwform-radio-field.horizontal-item {
    left: 0;
  }
  .button-top {
    display: none;
  }
  .footer__text span {
    padding-top: 8px;
  }
  /* .firstview {
    background-image: url(../../images/top/top-fv--sp.webp);
  } */
  .iziModal {
    min-height: 50%;
    max-height: calc(100vh - 120px);
  }
  h1 span.large {
    font-size: min(7vw, 2rem);
  }
  .floor .flex {
    grid-template-columns: repeat(1, 1fr);
  }
  .footer__block {
    padding: 0 12px;
    flex-direction: column;
    gap: 40px;
  }
  .footer .inner {
    padding-bottom: 40px;
  }
  .footer__text {
    font-size: 16px;
  }
  .footer__text.--head {
    font-size: 18px;
  }
  .footer__block.--reverse {
    padding-top: 24px;
    flex-direction: column;
  }
  a[href^='tel:'] {
    pointer-events: unset;
  }
  .about .explain {
    font-size: 0.9rem;
  }
  .single-item {
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
  }
  .flex.--gap-24 {
    gap: 40px;
  }
  .slick-slide {
    margin: 0 8px;
  }
  .slick-slide img {
    height: auto;
    width: 100%;
  }
  .--no-pad-sp {
    padding-right: 0;
    padding-left: 0;
  }
  .midokoro .slick-slide {
    padding-right: 0;
    padding-left: 0;
  }
  .slick-slide img {
    height: 224px;
  }
  .concept .spconcept h2 {
    margin: 0;
    line-height: 1.5;
    font-size: 44px;
    transform: unset;
    top: 40px;
    left: 20px;
  }
  .youtube {
    padding: 0 16px;
    margin-top: 40px;
  }
  .midokoro .flex-imagebox img {
    width: 100%;
    height: unset;
  }
  .mapblock img {
    width: 100%;
  }
  .floor .flexbox {
    width: 100%;
  }
  .floor .flex .imagebox {
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
  }

  .floor .flex .imagebox img {
    max-height: 100%;
  }
  .goto .inner .goto-txt p span:last-child {
    top: -16px;
  }
}
@media screen and (min-width: 1441px) {
  .about .inner-relative .mapblock {
    right: 160px;
  }
}

/*========== 2024/02/02 ==========*/
a:hover {
  text-decoration: underline;
}
.flex-block {
  position: relative;
}
.reserve .flex-block:first-child {
  border-right: 0;
  border-bottom: solid 3px #333;
}
.reserve .flex-block:first-child .blank.two {
  display: none;
}
.reserve .flex-block:last-child {
  border-left: solid 3px #333;
}
.reserve .flex span.midium {
  font-size: 1.5rem;
}
.reserve .flex span.small {
  font-size: 1.3rem;
}
.reserve .flex .map {
  margin-top: 24px;
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 26.53846153846154%;
}
.reserve .flex .map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-right: 16px;
}
.reserve .flex .map__link {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  color: #e65f2e;
  text-decoration: underline;
  padding-right: 16px;
  display: flex;
  justify-content: flex-end;
}
.reserve .flex .map__link a {
  display: flex;
  align-items: center;
}
.reserve .flex .map__link a span {
  padding-left: 8px;
}
.reserve .flex .map__link a:hover svg .a {
  stroke: #135e96;
  transition: 0.3s;
}
.reserve .flex-illust {
  /* right: -80px; */
  right: -4.5vw;
  z-index: 3;
}
@media screen and (max-width: 919px) {
  .reserve .flex-block:first-child {
    border-bottom: 0;
  }
  .reserve .flex-block:first-child .blank.two {
    display: block;
  }
  .reserve .flex-block:first-child .blank.three,
  .reserve .flex-block:first-child .blank.four {
    display: none;
  }
  .reserve .flex-block:nth-child(2) {
    border-bottom: solid 3px #333;
  }
  .reserve .flex-block:nth-child(2) .blank.two {
    display: none;
  }
  .reserve .flex-block:last-child {
    border-left: 0;
  }
  .reserve .flex span.midium {
    font-size: 1.2rem;
  }
  .reserve .flex span.small {
    font-size: 1rem;
  }
  .reserve .flex .map {
    margin-top: 0;
    padding-top: 44.51612903225806%;
  }
  .reserve .flex .map iframe {
    padding-left: 16px;
  }
}
.pd16 {
  padding-bottom: 16px;
}
/* === mw wp form === */
.reservation__link {
  margin-top: 8px;
}
.reservation__link a {
  font-weight: 500;
  text-decoration: underline;
}
.mwform-radio-field.horizontal-item {
  margin-right: 16px;
}
.contact__submit,
.contact__back-button {
  cursor: pointer;
}
/* --- CTAボタン --- */
.contact .inner {
  text-align: center;
}
.contact__cta-area {
  margin-top: 72px; /* フォームがあった場所との余白を調整 */
  position: relative; /* 子要素(画像)を絶対配置するための基準点にする */
  display: inline-block; /* ブロックを内包する要素の幅に合わせる */
}

.cta-button__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px; /* 画像の幅（お好みで調整してください） */
  height: auto;
  transform: translate(-30%, -40%); /* 画像を左と上にずらして重ねる（お好みで調整してください） */
  z-index: 3; /* ボタンより手前に表示 */
  pointer-events: none; /* 画像がクリックの邪魔にならないようにする */
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative; /* アニメーションの基準点にする */
  overflow: hidden; /* はみ出したアニメーションを隠す */
  padding: 24px 40px;
  min-width: 320px;
  background-color: transparent; /* 背景色を透明に変更 */
  border: 2px solid #111; /* 枠線を黒に変更 */
  color: #111; /* 通常時の文字色を黒に変更 */
  text-decoration: none;
  transition: color 0.4s ease-out; /* 文字色の変化を滑らかに */
  z-index: 1; 
}

/* ボタンのテキストと矢印のスタイル */
.cta-button__text {
  position: relative;
  z-index: 2; /* アニメーション要素より手前に表示 */
  margin-right: 16px;
  font-size: 18px;
  font-weight: bold;
  /* 文字色のtransitionは親要素.cta-buttonから継承 */
}

.cta-button__arrow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.cta-button__arrow svg {
  stroke: #111; /* 矢印の色を黒に変更 */
  transition: stroke 0.4s ease-out;
}


/* ホバーアニメーション用の背景要素 */
.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111; /* ホバー時に広がる色を黒に設定 */
  transform: translateX(-101%); /* 初期状態では左側に隠しておく */
  transition: transform 0.4s ease-in-out;
  z-index: 1; /* テキストより後ろに配置 */
}

/* --- ホバーした時のスタイル --- */
.cta-button:hover {
  text-decoration: none;
  color: #fff; /* 文字色を白に変更 */
}

.cta-button:hover::before {
  transform: translateX(0); /* 背景を左から右へスライドイン */
}

.cta-button:hover .cta-button__arrow svg {
    stroke: #fff; /* 背景が黒になるため、矢印は白にして視認性を確保 */
}

/* スマホ表示用の調整 */
@media screen and (max-width: 640px) {
  .cta-button {
    min-width: 100%;
    padding: 20px;
  }
  .cta-button__text {
    font-size: 16px;
  }
}

/* --- イベント一覧ページ --- */
.event-list-container {
  padding-top: 60px;
  padding-bottom: 60px;
}

.event-list-container .page-header {
  margin-bottom: 40px;
  text-align: center;
  border-bottom: 2px solid #eee;
  padding-bottom: 20px;
}

.event-list-container .page-title {
  font-size: 28px;
  font-family: 'Hina Mincho', serif;
}

.event-list {
  display: grid;
  /* 縦方向のカード間の余白を調整 */
  gap: 24px;
}

/* --- ここから下が横長レイアウトのスタイルです --- */
.event-card {
  display: flex; /* 子要素を横並びに変更 */
  align-items: center; /* 上下中央揃え */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  transition: box-shadow 0.3s ease;
  min-height: 120px; /* カードの最小の高さを設定 */
}

.event-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.event-card__link {
  display: flex; /* link要素もflexにして中身を横並びに */
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* 左側の画像エリア */
.event-card__thumbnail {
  width: 200px; /* 画像エリアの横幅を固定 */
  flex-shrink: 0; /* コンテナが縮んでも画像の幅を維持 */
  aspect-ratio: 4 / 3; /* 画像の比率を少し縦長に */
  background-color: #f0f0f0;
}

.event-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右側のテキストエリア */
.event-card__content {
  flex-grow: 1; /* 残りのスペースをすべて埋める */
  padding: 20px 24px;
}

.event-card__title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

.event-card__date {
    font-size: 14px;
    color: #e65f2e; /* テーマのアクセントカラー */
    font-weight: bold;
    margin: 0 0 8px; /* タイトルの下に配置 */
}

/* 不要な要素を非表示に */
.event-card__excerpt,
.event-card__button {
  display: none;
}

/* 画面が小さい時の調整 */
@media (max-width: 600px) {
  .event-card,
  .event-card__link {
    flex-direction: column; /* スマホでは縦積みに戻す */
    align-items: stretch;
  }

  .event-card__thumbnail {
    width: 100%; /* 横幅を100%に */
    aspect-ratio: 16 / 9; /* 比率をワイドに戻す */
  }
}