/**
 * Renewal styles
 *
 * このファイルは tailwind.css / style.css / editor-style.css の後に読み込まれます。
 * 既存スタイルを上書きする場合は、ここに追記してください。
 *
 * このファイルは style.css の後に読み込まれます。
 */
 
html {
  scroll-padding-top: 98px; /* 基準距離と同値（アンカー着地位置） */
}

/* container */
.container {
  margin-inline: auto;
  padding-inline: 40px;
}
.container._960 {
  max-width: 960px;
}
.container._760 {
  max-width: 760px;
}
.container._1160 {
  max-width: 1160px;
}

@media screen and (max-width: 640px) {
  .container {
    padding-inline: 20px;
  }
  .container .container {
    padding-inline: 0;
  }
}

/* button */
:where(.button-wrapper) {
  width: fit-content;
  height: fit-content;
  margin-top: 60px;
}
.button-wrapper-more {
  margin-top: 60px;
  width: 100%;
  height: 60px;
  max-width: fit-content;
  min-width: 260px;
  margin-inline: auto;
}
.button-square {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  border-radius: 2px;
  gap: 16px;
  padding-inline: 20px;
  font-weight: 500;
}

.button-rounded {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-inline: 20px;
  padding-block: 16px;
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9999px;
  gap: 16px;
  line-height: 1.5;
}

.button-square._normal,
.button-rounded._normal {
  background-color: #fff;
  border: 1px solid #000;
  color: #000;
}
.button-square._museum,
.button-rounded._museum {
  color: #fff;
  background-color: var(--color-museum-accent);
}
.button-square._museum span,
.button-rounded._museum span {
  font-weight: 600;
}
.button-square._park,
.button-rounded._park {
  color: #fff;
  background-color: var(--color-park-accent-dark);
}
.button-square._park span,
.button-rounded._park span {
  font-weight: 600;
}
.button-square._contact,
.button-rounded._contact {
  color: #fff;
  background-color: #505050;
}
.button-square._contact span,
.button-rounded._contact span {
  font-weight: 600;
}
.button-rounded._museum,
.button-rounded._park {
  border: none;
}

.button-wrapper a svg {
  width: 5px;
  height: 11px;
}

.button-arrow-right {
  width: 5px;
  height: 11px;
}
.button-icon-blank {
  width: 14px;
  height: 14px;
}

.c-text .button-rounded {
	width: fit-content;
	min-width: 200px;
	margin-inline: auto;
	text-decoration: none;
}
.c-text .button-rounded:hover {
	text-decoration: underline;
}
.c-text .button-rounded br {
	display: none;
}

@media screen and (max-width: 640px) {
  .button-rounded {
    padding: 12px 32px;
  }
}

/* section-title */
.section-title {
  margin-bottom: 60px;
  font-size: 40px;
  line-height: 1.4;
  text-align: center;
  font-weight: bold;
}
.section-hgroup {
  text-align: center;
  font-size: 20px;
  margin-bottom: 60px;
}
.section-hgroup .section-title {
  margin-bottom: 0;
}
.section-hgroup p {
  font-weight: bold;
}

@media screen and (max-width: 640px) {
  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }
  .section-hgroup {
    font-size: 18px;
    margin-bottom: 40px;
  }
  .section-hgroup .section-title {
    margin-bottom: 0;
  }
}
 
/* article-card */
.article-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}
a.article-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.article-card-figure {
  width: 100%;
  flex-shrink: 0;
}
.article-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 464 / 310;
}
.article-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 30px;
}
.article-card-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.article-card-info + * {
  margin-top: 12px;
}
.article-card-age {
  width: fit-content;
  padding: 4px 12px 4px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  line-height: 1;
}
.article-card-age._pink {
  border: 1px solid #F5A0A0;
}
.article-card-age._blue {
  border: 1px solid #50AAE6;
}
.article-card-age._green {
  border: 1px solid #78C846;
}
.article-card-age._yellow {
  border: 1px solid #FFD34E;
}
.article-card-age::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.article-card-age._pink::before {
  background-color: #F5A0A0;
}
.article-card-age._blue::before {
  background-color: #50AAE6;
}
.article-card-age._green::before {
  background-color: #78C846;
}
.article-card-age._yellow::before {
  background-color: #FFD34E;
}
.article-card-title {
  font-size: 20px;
  line-height: 1.4;
  font-weight: bold;
  letter-spacing: 0.04em;
}
a.article-card-link:hover .article-card-title {
  text-decoration: underline;
}
.article-card-time {
  margin-top: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  flex: 1;
}
.article-card-info .article-card-time {
  margin-top: 0;
}
.article-card-note {
  margin-top: 40px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-card-note svg,
.article-card-note img {
  width: 20px;
  height: auto;
}

@media screen and (max-width: 640px) {
  .article-card-title {
    font-size: 16px;
  }
  .article-card-time {
    font-size: 14px;
  }
  .article-card-note {
    font-size: 12px;
  }
  .article-card-note svg {
    width: 14px;
    height: 14px;
  }
}

/* Splide arrow (Museum / Park shared) — splide.min.css の後に読み込む */
.splide__arrow {
  top: 50%;
  width: 50px;
  height: 50px;
  padding: 0;
  background: #fff;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
}

.splide__arrow:hover:not(:disabled) {
  opacity: 1;
  background: #fff;
}

.splide__arrow--prev {
  left: 20px;
  right: auto;
}

.splide__arrow--next {
  right: 20px;
  left: auto;
}

.splide__arrow svg {
  display: none;
  width: 0;
  height: 0;
}

.splide__arrow .play-slider-arrow {
  width: 16px;
  height: 16px;
  display: block;
}

/* 非アクティブ（先頭/末尾で進めない）矢印は非表示 */
.splide__arrow:disabled {
  display: none;
}

@media screen and (max-width: 700px) {
  .splide__arrow {
    width: 40px;
    height: 40px;
  }
}

.splide__pagination {
  gap: 12px;
}
.splide__pagination__page {
  width: 8px;
  height: 8px;
  background-color: #D9D9D9;
  margin: 0;
}
.splide__pagination__page.is-active {
  transform: scale(1);
  background-color: #000;
}

/* nav-content: PC / SP 共通のメニュー中身（見た目は親コンテナ側で定義） */
.nav-content__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-content__list li > * {
  font-weight: 700;
  display: block;
}
.nav-content__list li span {
  opacity: 0.2;
}
.nav-content__list li a:hover {
  text-decoration: underline;
}
.nav-content__list li.current a {
  color: #DC503C;
}

/* PCナビ */
.g-nav .nav-content {
  display: flex;
  align-items: center;
  flex: 1;
}
.g-nav .nav-content__list {
  display: flex;
  padding-right: 18px;
}
.g-nav .nav-content__list li > * {
  display: block;
  padding: 30px 10px;
  height: 90px;
  line-height: 30px;
  white-space: nowrap;
  font-size: 14px;
}
.g-nav .nav-content__ticket {
  width: fit-content;
  height: 50px;
  margin-right: 20px;
  font-size: 14px;
}
.g-nav .nav-content__crosslink a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  line-height: 60px;
}
.g-nav .nav-content__crosslink a span {
  font-weight: 600;
}
.g-nav .nav-content__crosslink a svg {
  width: 9px;
  height: 7px;
}

/* メニュー・チケット・クロスリンクは縮小/折返しさせない（長文は museum-info 側が吸収） */
.g-nav .nav-content__list,
.g-nav .nav-content__ticket,
.g-nav .nav-content__crosslink {
  flex-shrink: 0;
  white-space: nowrap;
}

@media screen and (max-width: 1280px) {
  .g-nav .nav-content__list li a {
    padding-inline: 10px;
  }
}
@media screen and (max-width: 640px) {
  .g-header__inner {
    padding-bottom: 20px;
  }
}

/* SPツールバー */
.g-header-spnav {
  display: none;
}
.g-header-spnav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.g-header-spnav .nav-content__museum-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  margin-left: 40px; /* メニューボタン幅分ずらしてチケット購入ボタン下に揃える */
  font-size: 13px;
  line-height: 1;
  color: var(--color-museum-accent);
}
.g-header-spnav .nav-content__museum-info-title {
  font-weight: 700;
}
.g-header-spnav .nav-content__museum-info-time {
  font-weight: 600;
}
.g-header-spnav-visit {
  width: 40px;
  height: 100%;
  padding: 8px;
}
.g-header-spnav-ticket {
  width: 110px;
  height: 48px;
}
.g-header-spnav-ticket .button-square,
.g-header-spnav-ticket .button-rounded {
  padding: 12px;
  font-size: 14px;
}
.g-header-spnav-menu {
  width: 60px;
  height: 60px;
}
.g-header-spnav-menu-button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.g-header-spnav-menu-button span {
  display: block;
  width: 32px;
  height: 2px;
  background-color: #000;
  position: absolute;
  top: 50%;
  left: 50%;
  transition: transform 0.3s ease-in-out;
}
.g-header-spnav-menu-button span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 4px));
}
.g-header-spnav-menu-button span:nth-child(2) {
  transform: translate(-50%, calc(50% + 4px));
}
/* SPメニューパネル */
.g-nav-sp {
  display: none;
}

/* ファーストビュー通過後の固定ヘッダー */
.g-header--origin-hidden {
  visibility: hidden;
}

.g-header__fixed-clone {
  display: none;
}

.g-header__fixed-clone.g-header--fixed {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: #fff;
  transform: translate3d(0, -100%, 0);
  transition: none;
  will-change: transform;
}

.g-header__fixed-clone.g-header--fixed.is-ready {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.g-header__fixed-clone.g-header--fixed.is-ready.is-shown {
  transform: translate3d(0, 0, 0);
}

.g-header__fixed-clone.g-header--fixed .g-header__logo {
  position: relative;
  top: auto;
  left: auto;
}

.g-header__fixed-clone.g-header--fixed .g-header__logo--park svg {
  fill: #000;
}

.g-header__spacer {
  height: 0;
}

@media screen and (min-width: 961px) {
  .g-header__fixed-clone.g-header--fixed {
    padding-left: 20px;
  }

  .g-header__fixed-clone.g-header--fixed .g-header-spnav {
    display: none;
  }

  .g-header__fixed-clone.g-header--fixed .g-nav {
    flex: 1;
    justify-content: flex-end;
  }

  /* ナビ項目を右寄せ（MUSEUMはmuseum-infoのflex:1で右寄せになるが、
     globalヘッダー等それ以外の構成でもロゴ側に寄らないように共通で指定） */
  .g-header__fixed-clone.g-header--fixed .nav-content {
    justify-content: flex-end;
  }

  .g-header__fixed-clone.g-header--fixed .g-header__inner {
    align-items: center;
    gap: 70px;
  }
  
  .g-header__fixed-clone.g-header--fixed .g-nav .nav-content__list li > * {
    height: 70px;
    padding-block: 20px;
  }

  .g-header__fixed-clone.g-header--fixed .g-header__logo--museum {
    width: 94px;
    height: 56px;
  }

  .g-header__fixed-clone.g-header--fixed .g-header__logo--park {
    width: 66px;
    height: 53px;
  }
}

@media screen and (max-width: 960px) {
  .g-header-spnav {
    display: block;
  }

  .g-header__fixed-clone.g-header--fixed {
    padding-left: 10px;
  }

  .g-header__fixed-clone.g-header--fixed .g-nav {
    display: none;
  }

  .g-header__fixed-clone.g-header--fixed .g-header-spnav {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 10px;
  }

  .g-header__fixed-clone.g-header--fixed .nav-content__museum-info {
    /* display: none; */
    margin-top: 0;
    margin-left: 10px;
  }

  .g-header__fixed-clone.g-header--fixed .g-header__inner {
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
  }

  .g-header__fixed-clone.g-header--fixed .g-header__logo {
    width: 96px;
    height: 42px;
  }

  .g-header__fixed-clone.g-header--fixed .g-header__logo--museum {
    width: 70px;
    height: 42px;
  }

  .g-header__fixed-clone.g-header--fixed .g-header__logo--park {
    width: 53px;
    height: 42px;
  }

  /* メニュー開時: 既存ヘッダー／下部ナビを隠し、白レイヤーを最前面に */
  .nav--open {
    overflow: hidden;
  }

  .nav--open .g-header,
  .nav--open .g-header__fixed-clone,
  .nav--open .sp--bnav {
    visibility: hidden;
    pointer-events: none;
  }

  .g-nav-sp {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: #fff;
    overflow: auto;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav--open .g-nav-sp {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .g-nav-sp__close {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 210;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .g-nav-sp__close span {
    display: block;
    width: 28px;
    height: 1.5px;
    background-color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
  }

  .g-nav-sp__close span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(30deg);
  }

  .g-nav-sp__close span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-30deg);
  }

  .g-nav-sp__inner {
    padding: 20px 40px 120px;
  }

  .g-nav-sp__top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 20px;
    border: 1px solid #C8C8C8;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #000;
    margin-left: -20px;
  }

  .g-nav-sp__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 24px;
  }

  .g-nav-sp__title {
    margin: 0;
  }

  .g-nav-sp__title a {
    font-size: 28px;
    line-height: 1.2;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .g-nav-sp__crosslink {
    margin: 0;
  }

  .g-nav-sp__crosslink a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.04em;
  }

  .g-nav-sp__crosslink a svg {
    width: 10px;
    height: 8px;
  }

  .g-nav-sp .nav-content__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #dcdcdc;
  }

  .g-nav-sp .nav-content__list li {
    border-bottom: 1px solid #dcdcdc;
  }

  .g-nav-sp .nav-content__list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.3;
    padding: 18px 4px;
    color: #000;
  }

  .g-nav-sp .nav-content__list li a::after {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #000;
    border-bottom: 1.5px solid #000;
    transform: rotate(-45deg);
  }

  .g-nav-sp .nav-content__ticket {
    margin-top: 28px;
    height: 56px;
  }

  .g-nav-sp .nav-content__ticket .button-square {
    font-size: 16px;
  }

  .g-nav-sp__sublinks {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
  }

  .g-nav-sp__sublinks li + li {
  }

  .g-nav-sp__sublinks a {
    display: block;
    font-size: 14px;
    line-height: 2.8;
    color: #000;
    text-decoration: none;
  }
}

/* footer */
.g-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 60px;
  padding-bottom: 60px;
}
.g-footer__contents {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
}
.g-footer__profile {
  grid-column: 1 / 2;
}
.g-footer__logo {
  width: 233px;
  height: 100px;
}
.g-footer__description {
  font-size: 20px;
  margin-top: 40px;
}
.g-footer__description p {
  line-height: 1.6;
}
.g-footer__address {
  margin-top: 12px;
  font-size: 14px;
}
.g-footer__top {
  margin-top: 24px;
  width: fit-content;
  height: 28px;
}
.g-footer__top a.button-rounded {
  padding-inline: 20px;
  font-size: 14px;
  gap: 12px;
  font-weight: 600;
  border-radius: 9999px;
}
.g-footer__top a.button-rounded svg {
  width: 9px;
  height: 7px;
}

.g-footer__nav {
  margin-top: 40px;
}
.g-footer__nav-title a {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.g-footer__nav-lists {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.g-footer__nav-list {
  display: flex;
  flex-direction: column;
}
.g-footer__nav-list a,
.g-footer__nav-list span {
  display: inline-block;
  font-size: 14px;
  padding-block: 4px;
}
.g-footer__nav-list span {
  opacity: 0.2;
}
.g-footer__shop {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.g-footer__shop-title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.g-footer__shop-title + * {
  margin-top: 8px;
}
.g-footer__button {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(222px, 1fr));
  gap: 20px;
}
.g-footer__button-item {
  width: 100%;
  height: 50px;
  min-height: fit-content;
  min-width: fit-content;
  font-weight: bold;
}

.g-footer__links {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
}
.g-footer__sns {
  padding-top: 110px;
  display: flex;
  gap: 10px;
}
.g-footer__sns-item {
  width: 50px;
  height: 50px;
}
.g-footer__sns-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 1px solid #c8c8c8;
  transition: border-color 0.3s ease;
}
.g-footer__sns-item a svg {
  width: 22px;
  height: 22px;
}

/* ------------------------------------------------------------------
 * floor-link: フロア誘導リンクの「見た目」コンポーネント（フッター・SPメニュー共用）
 * 配置（レイアウト）は使用側のコンテキスト側
 * （.g-footer__another-link / .g-nav-sp__floor-link）が持つ。
 * ------------------------------------------------------------------ */
.floor-link p {
  margin: 0;
}
.floor-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 6px;
  width: fit-content;
}
.floor-link a span {
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.floor-link a svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.floor-link._museum a {
  border-bottom: 1px solid var(--color-museum-accent);
}
.floor-link._park a {
  border-bottom: 1px solid var(--color-park-accent);
}

/* フッター内の配置のみ（見た目は .floor-link が担当） */
.g-footer__another-link {
  display: flex;
}
/* SPメニュー最下部の配置のみ */
.g-nav-sp__floor-link {
  margin-top: 40px;
}

.g-footer__bottom {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.g-footer__bottom-nav {
}
.g-footer__bottom-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.g-footer__bottom-nav li {
  font-size: 14px;
}
.g-footer__bottom-nav li span {
  opacity: 0.2;
}
.g-footer__copyright {
  margin-top: 40px;
  font-size: 12px;
  text-align: center;
}

@media screen and (max-width: 640px) {
  .g-footer {
    padding-bottom: 20px;
  }
  .g-footer__contents {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .g-footer__logo {
    width: 168px;
    height: 72px;
  }
  .g-footer__nav {
    margin-top: 0;
  }
  .g-footer__button {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .g-footer__links {
    align-items: flex-start;
    gap: 52px;
  }
  .g-footer__sns {
    padding-top: 0;
  }
  .g-footer__another-link {
    margin-left: auto;
  }
  .g-footer__bottom-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* .l-main
   ヘッダー下端〜ページタイトルの基準距離。ここが全下層ページの唯一の基準（98px）。
   個別の継ぎ足しpaddingは下の打ち消しルールで無効化して統一している */
.l-main {
  padding-top: 98px;
}

/* ページ個別の継ぎ足しpadding（style.css由来）を打ち消し、基準98pxに一本化 */
.page-museum .l-pageContents,
.page-park .l-pageContents {
  padding-top: 0;
}

/* playground はヘッダーabsolute前提で 180px 確保していたページ。
   PC(>960)はヘッダーがフローに戻ったぶん（約90px）を差し引いて視覚位置を維持 */
@media screen and (min-width: 961px) {
  .page-playground.page-park .l-main {
    padding-top: 98px;
  }
}

/* ------------------------------------------------------------------
 * WordPress 7 ギャラリーブロックのスライダー崩れ対処
 * WP7コアが figure.wp-block-gallery / ul.blocks-gallery-grid に
 * is-layout-flex（display:flex; flex-wrap; align-items:center; gap）を
 * 注入するようになり、slick でスライダー化したギャラリーが幅計算を誤って
 * 画像が原寸で横に伸びる。ギャラリーは全てスライダー化するため flex を無効化する。
 * ------------------------------------------------------------------ */
.wp-block-gallery.is-layout-flex {
  display: block !important;
  gap: 0 !important;
}
.wp-block-gallery:not(.has-nested-images) > .blocks-gallery-grid,
.blocks-gallery-grid:not(.has-nested-images) {
  display: block !important;
}

/* ------------------------------------------------------------------
 * テーブルブロックの黒罫線を除去
 * WPコアが td/th に border:1px solid（currentColor=黒）、thead/tfoot に
 * 黒3pxの罫線を注入する。テーマ設計はグレーの下罫線のみのため、
 * コア由来の黒罫線（上・左・右・thead/tfoot）を除去し、既存のグレー下罫線は維持する。
 * ------------------------------------------------------------------ */
.c-text .wp-block-table td,
.c-text .wp-block-table th,
.l-workshopList .wp-block-table td,
.l-workshopList .wp-block-table th {
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
.c-text .wp-block-table thead,
.c-text .wp-block-table tfoot,
.l-workshopList .wp-block-table thead,
.l-workshopList .wp-block-table tfoot {
  border: 0;
}

/* ------------------------------------------------------------------
 * ギャラリーのキャプションを画像の下・グレー文字に（.wp-block-image と同一スタイル）
 * WPコアは figcaption を画像上へオーバーレイ（position:absolute; 黒グラデ背景; color:#fff）し、
 * さらに is-cropped で画像を figure内に flex:1/height:100% で敷き詰めるため、単に静的配置に
 * するとキャプションが横並びで幅0に潰れて表示されない。画像のクロップ/flexを解除して
 * 通常フローに戻し、キャプションを画像の下へ .wp-block-image figcaption と同じ体裁で表示する。
 * ------------------------------------------------------------------ */
/* 内側 figure と画像を通常フロー（クロップ解除）に戻す */
.c-text .blocks-gallery-item figure,
.l-workshopList .blocks-gallery-item figure {
  display: block;
  height: auto;
}
.c-text .wp-block-gallery.is-cropped .blocks-gallery-item a,
.c-text .wp-block-gallery.is-cropped .blocks-gallery-item img,
.l-workshopList .wp-block-gallery.is-cropped .blocks-gallery-item a,
.l-workshopList .wp-block-gallery.is-cropped .blocks-gallery-item img {
  flex: none;
  height: auto;
  width: 100%;
  object-fit: initial;
}
/* キャプション本体（.wp-block-image figcaption と同じ） */
.c-text .blocks-gallery-item figcaption,
.c-text .blocks-gallery-caption,
.c-text .wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
.l-workshopList .blocks-gallery-item figcaption,
.l-workshopList .blocks-gallery-caption,
.l-workshopList .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  position: static;
  background: none;
  text-shadow: none;
  max-height: none;
  overflow: visible;
  width: auto;
  padding: 0;
  margin-top: 1.5em;
  text-align: center;
  font-size: 1rem;
  color: #646464;
}
/* nested形式で追加される背景ブラーの疑似要素を除去 */
.c-text .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before,
.l-workshopList .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before {
  display: none;
}
@media screen and (max-width: 960px) {
  .c-text .blocks-gallery-item figcaption,
  .c-text .blocks-gallery-caption,
  .c-text .wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
  .l-workshopList .blocks-gallery-item figcaption,
  .l-workshopList .blocks-gallery-caption,
  .l-workshopList .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    font-size: 1.2rem;
  }
}
@media screen and (max-width: 640px) {
  .c-text .blocks-gallery-item figcaption,
  .c-text .blocks-gallery-caption,
  .c-text .wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
  .l-workshopList .blocks-gallery-item figcaption,
  .l-workshopList .blocks-gallery-caption,
  .l-workshopList .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    margin-top: 1em;
    line-height: 1.4;
  }
}

/* ------------------------------------------------------------------
 * ギャラリースライダーのページング(ドット)・矢印を画像／キャプションから離す。
 * ドットは static でスライダー高さに含まれ、矢印は bottom 基準でスライダー下端に
 * 追従するため、ドットの margin-top を付けるだけで両方に上余白がつき、
 * 矢印がキャプションに被る問題も解消する。
 * 旧形式(.blocks-gallery-grid) と 新形式(.wp-block-gallery) の両方に適用。
 * ------------------------------------------------------------------ */
.c-text .blocks-gallery-grid .slick-dots,
.c-text .wp-block-gallery > .slick-dots,
.l-workshopList .blocks-gallery-grid .slick-dots,
.l-workshopList .wp-block-gallery > .slick-dots {
  margin-top: 20px;
}

/* ------------------------------------------------------------------
 * ギャラリースライダーのスライドをエリア内で上下中央基準に配置。
 * トラック(.slick-track)を flex 化し align-items:center にすると、
 * トラック高さ＝最も高いスライドとなり、高さの低い画像（＋キャプション）が
 * 上寄せではなく縦中央に配置される。fade の重ね表示（left オフセット＋opacity）は
 * 維持される。ドット/矢印はトラック外の要素のため影響を受けない。
 * ------------------------------------------------------------------ */
.c-text .blocks-gallery-grid .slick-track,
.c-text .wp-block-gallery .slick-track,
.l-workshopList .blocks-gallery-grid .slick-track,
.l-workshopList .wp-block-gallery .slick-track {
  display: flex;
  align-items: center;
}

/* /tag/workshop/ 上部の Googleカレンダー（tag-workshop.php） */
.workshop-calendar {
  margin-bottom: 60px;
  text-align: center;
}
.workshop-calendar iframe {
  max-width: 100%;
}

/* ------------------------------------------------------------------
 * PARKトップ MV動画のレイアウトシフト対策
 * ・PC/SPの出し分けをJSでなくメディアクエリで行い、初期描画から正しい方を表示
 * ・aspect-ratio（動画の実寸比）で、メタデータ読込前から高さを確保
 *   PC: 1280x720 / SP: 864x1080
 * ------------------------------------------------------------------ */
#parkMvVideo {
  line-height: 0;
}
.park-mv-video {
  width: 100%;
  height: auto;
  display: none;
}
#parkVideoPc {
  aspect-ratio: 1280 / 720;
}
#parkVideoSp {
  aspect-ratio: 864 / 1080;
}
@media screen and (min-width: 961px) {
  #parkVideoPc {
    display: block;
  }
}
@media screen and (max-width: 960px) {
  #parkVideoSp {
    display: block;
  }
}

/* ------------------------------------------------------------------
 * MUSEUMトップのみ、初期ヘッダーの背景を #f5f5f5 に。
 * スクロール後の固定ヘッダー（.g-header__fixed-clone.g-header--fixed）は
 * クラスを継承するが、下のルールで #fff を維持する。
 * ------------------------------------------------------------------ */
.g-header--museum-top {
  background-color: #f5f5f5;
}
.g-header__fixed-clone.g-header--museum-top.g-header--fixed {
  background-color: #fff;
}

/* 記事内ギャラリーの下に余白（新旧どちらのギャラリー形式も一律40px）
   ※ コアの .wp-block-gallery:not(.has-nested-images){margin:0} が wp_head で
   後から出力されるため、figure を付けて詳細度を1段上げている */
.c-text figure.wp-block-gallery,
.l-workshopList figure.wp-block-gallery {
  margin-bottom: 40px;
}
/* 旧形式は内側グリッドに 3em の余白が付いており二重になるため打ち消す */
.c-text .wp-block-gallery .blocks-gallery-grid,
.l-workshopList .wp-block-gallery .blocks-gallery-grid {
  margin-bottom: 0;
}

.wp-block-button {
  max-width: fit-content;
  margin-inline: auto;
}