/* ============================================
   パターン2 トップページ専用スタイル
   プレフィックス: p2-
   ============================================ */

/* スマホのみ表示する改行 */
.sp-only { display: none; }
@media only screen and (max-width: 768px) {
  .sp-only { display: inline; }
}

:root {
  --p2-red: #ed5754;
  --p2-green: #429350;
  --p2-dark-green: #40944e;
  --p2-blue: #0d8dd2;
  --p2-orange: #f88d03;
  --p2-yellow: #ffdd4d;
  --p2-pink: #f39ec4;
  --p2-line-green: #06c755;
  --p2-bg-beige: #f7f5ef;
  --p2-bg-leaflet: #f7efe5;
  --p2-bg-nav: #fafafa;
  --p2-bg-footer: #f8f8f8;
  --p2-text: #333;
  --p2-text-light: #5a5a5a;
  --p2-alert-red: #cd0000;
  --p2-alert-bg: #fdf4f3;
  --p2-border: #eee2c9;
  --p2-nav-border: #bcbbbb;
}

/* sticky footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.p2-container {
  flex: 1;
}

/* ============================================
   ヘッダー
   ============================================ */

.p2-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: #fff;
}

.p2-header__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 0;
}

.p2-header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p2-header__logo {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.p2-header__logo img {
  height: 81px;
  width: auto;
}

.p2-header__logo-text {
  font-size: 14px;
  color: var(--p2-text);
  line-height: 1.6;
  font-weight: bold;
}

.p2-header__logo:hover {
  text-decoration: none;
}

.p2-header__right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.p2-header__sns {
  display: flex;
  align-items: center;
  gap: 13px;
}

.p2-header__sns-icon {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.p2-header__reserve-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--p2-red);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2.4px;
  text-decoration: none;
  padding: 14px 40px;
  border-radius: 24px;
  transition: opacity 0.3s;
}

.p2-header__reserve-btn:hover {
  opacity: 0.8;
}

/* ナビゲーション */
.p2-nav {
  background-color: var(--p2-bg-nav);
}

.p2-nav__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.p2-nav__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.p2-nav__item {
  position: relative;
}

.p2-nav__item > a,
.p2-nav__item > span {
  display: block;
  padding: 24px 16px 8px;
  font-size: 16px;
  font-weight: bold;
  color: var(--p2-text);
  text-decoration: none;
  text-align: center;
  border-bottom: 4px solid transparent;
}

.p2-nav__item--home > a   { border-bottom-color: var(--p2-nav-border); }
.p2-nav__item--about > a  { border-bottom-color: var(--p2-green); }
.p2-nav__item--guide > a  { border-bottom-color: var(--p2-blue); }
.p2-nav__item--news > a   { border-bottom-color: var(--p2-yellow); }
.p2-nav__item--event > a  { border-bottom-color: var(--p2-pink); }
.p2-nav__item--faq > a    { border-bottom-color: var(--p2-orange); }
.p2-nav__item--contact > a { border-bottom-color: var(--p2-red); }

/* サブメニュー */
.p2-nav__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  list-style: none;
  padding: 8px 0;
  min-width: 200px;
}

.p2-nav__item:hover .p2-nav__submenu {
  display: block;
}

.p2-nav__submenu li a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--p2-text);
  text-decoration: none;
  white-space: nowrap;
}

.p2-nav__submenu li a:hover {
  background-color: #f5f5f5;
}

/* ============================================
   LINE固定タブ
   ============================================ */

.p2-line-tab {
  position: fixed;
  right: 0;
  top: 206px;
  width: 58px;
  background-color: var(--p2-line-green);
  color: #fff;
  border-radius: 20px 0 0 20px;
  padding: 10px;
  z-index: 998;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.p2-line-tab:hover {
  opacity: 0.85;
  text-decoration: none;
}

.p2-line-tab__text {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2.7px;
  text-align: center;
  line-height: 1.6;
}

/* ============================================
   MV（メインビジュアル）
   ============================================ */

.p2-mv {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 40px;
  margin: 0 24px;
  width: calc(100% - 48px);
}

.p2-mv__video-wrap {
  width: 100%;
  height: 768px;
  overflow: hidden;
}

.p2-mv__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p2-mv__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 51px 120px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  box-sizing: border-box;
}

.p2-mv__title {
  font-size: 48px;
  font-weight: bold;
  color: #fff;
  line-height: 2;
  letter-spacing: 6px;
  margin-bottom: 24px;
}

.p2-mv__subtitle {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 3px;
  line-height: 2;
}

/* ============================================
   メインインフォメーション
   ============================================ */

.p2-info {
  padding: 40px 0;
}

.p2-info__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 重要なお知らせ */
.p2-notice {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px 40px;
  border: 2px solid var(--p2-alert-red);
  background-color: var(--p2-alert-bg);
}

.p2-notice__label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--p2-alert-red);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2.4px;
  white-space: nowrap;
  min-width: 159px;
  justify-content: center;
}

.p2-notice__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p2-notice__content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p2-notice__dot {
  font-size: 10px;
  color: var(--p2-alert-red);
  flex-shrink: 0;
}

.p2-notice__content a {
  font-size: 16px;
  color: #000;
  letter-spacing: 2.4px;
  text-decoration: underline;
}

.p2-notice__more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: bold;
  color: var(--p2-alert-red);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.p2-notice__more:hover {
  text-decoration: none;
  opacity: 0.7;
}

/* 予約セクション */
.p2-reservation {
  background-color: var(--p2-red);
  border: 4px solid var(--p2-red);
  border-radius: 40px;
  padding: 50px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.p2-reservation__title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

.p2-reservation__text {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2.4px;
  line-height: 28px;
}

.p2-reservation__text--large {
  font-size: 24px;
}

.p2-reservation__video {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
}

.p2-reservation__video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}

.p2-reservation__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

a.p2-reservation__btn,
a.p2-reservation__btn:link,
a.p2-reservation__btn:visited,
a.p2-reservation__btn:hover,
a.p2-reservation__btn:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #fff !important;
  color: #ed5754 !important;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2.4px;
  text-decoration: none;
  padding: 14px 40px;
  border-radius: 24px;
  width: 465px;
  max-width: 100%;
  transition: opacity 0.3s;
}

.p2-reservation__btn:hover {
  opacity: 0.8;
}

.p2-reservation__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--p2-red);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
}

.p2-reservation__link {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2.4px;
  text-decoration: underline;
}

/* ご利用案内・よくある質問カード */
.p2-cards {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.p2-card {
  flex: 1;
  max-width: 480px;
  border-radius: 40px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: opacity 0.3s;
}

.p2-card:hover {
  opacity: 0.85;
  text-decoration: none;
}

.p2-card--guide {
  background-color: var(--p2-blue);
}

.p2-card--faq {
  background-color: var(--p2-orange);
}

.p2-card__icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #fff;
  border-radius: 50%;
}

.p2-card--guide .p2-card__icon-circle {
  color: var(--p2-blue);
}

.p2-card--faq .p2-card__icon-circle {
  color: var(--p2-orange);
}

.p2-card__title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 3.6px;
}

.p2-card__desc {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  line-height: 1.6;
  max-width: 380px;
}

.p2-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #fff;
  padding: 8px 0;
  border-radius: 50px;
  width: 322px;
  max-width: 100%;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2.4px;
}

.p2-card--guide .p2-card__btn {
  color: var(--p2-blue);
}

.p2-card--faq .p2-card__btn {
  color: var(--p2-orange);
}

.p2-card__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
}

.p2-card--guide .p2-card__btn-icon {
  background-color: var(--p2-blue);
  color: #fff;
}

.p2-card--faq .p2-card__btn-icon {
  background-color: var(--p2-orange);
  color: #fff;
}

/* ============================================
   ペップキッズこおりやまってどんなところ??
   ============================================ */

.p2-about {
  background-color: var(--p2-bg-beige);
  padding: 60px 0 80px;
  position: relative;
}

.p2-about__inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.p2-about__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 40px;
}

.p2-about__heading-text {
  font-size: 32px;
  font-weight: bold;
  color: #000;
}

.p2-about__heading-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 171px;
  height: 171px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.p2-about__heading-logo img {
  width: 143px;
  height: auto;
}

.p2-about__catch {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: var(--p2-text);
  letter-spacing: 3.42px;
  line-height: 36px;
  margin-bottom: 40px;
}

.p2-about__photo-area {
  position: relative;
  margin-bottom: 40px;
}

.p2-about__photo {
  width: 924px;
  max-width: 100%;
  border-radius: 40px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.p2-about__chara {
  position: absolute;
}

.p2-about__chara--right {
  right: -40px;
  top: -80px;
  width: 120px;
}

.p2-about__chara--left {
  position: absolute;
  left: -20px;
  bottom: 120px;
  width: 83px;
}

.p2-about__contents-list {
  display: block;
  width: 924px;
  max-width: 100%;
  margin: 0 auto 40px;
}

.p2-about__contents-list .contents_list_upper_box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.p2-about__contents-list .contents_list_upper_box a {
  flex: 1;
  display: block;
}

.p2-about__contents-list .contents_list_upper_box img {
  width: 100%;
  height: auto;
  display: block;
}

.p2-about__desc {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--p2-text);
  letter-spacing: 1.96px;
  line-height: 36px;
  margin-bottom: 40px;
}

.p2-about__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 80px;
}

.p2-about__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--p2-orange);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2.4px;
  text-decoration: none;
  padding: 14px 40px;
  border-radius: 24px;
  width: 316px;
  transition: opacity 0.3s;
}

.p2-about__btn:hover {
  opacity: 0.8;
}

/* 10周年記念バナー */
.p2-anniversary {
  display: block;
  max-width: 903px;
  margin: 0 auto 40px;
  border-radius: 24px;
  overflow: hidden;
  transition: opacity 0.3s;
}

.p2-anniversary:hover {
  opacity: 0.85;
}

.p2-anniversary__img {
  width: 100%;
  height: auto;
  display: block;
}

.p2-about__note {
  font-size: 14px;
  color: #462e2e;
  text-align: center;
  letter-spacing: 1.96px;
  line-height: 22px;
}

/* ============================================
   入館者・イベント参加者の声
   ============================================ */

.p2-voice {
  padding: 80px 0;
  overflow: hidden;
}

.p2-voice__inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.p2-voice__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.p2-voice__heading-chara--left {
  width: 66px;
  height: auto;
}

.p2-voice__heading-chara--right {
  width: 52px;
  height: auto;
}

.p2-voice__heading-title {
  background-color: var(--p2-dark-green);
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 5.4px;
  text-align: center;
  padding: 10px 60px;
  border-radius: 50px;
}

.p2-voice__slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.p2-voice__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #ffdd4d;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.p2-voice__arrow:hover {
  opacity: 0.8;
}

.p2-voice__arrow i {
  color: var(--p2-dark-green);
  font-size: 22px;
}

.p2-voice__arrow--prev {
  left: 24px;
}

.p2-voice__arrow--next {
  right: 24px;
}

.p2-voice__viewport {
  overflow: hidden;
  width: 100%;
}

.p2-voice__track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

.p2-voice__item {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.p2-voice__item p {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  line-height: 1.9;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* ============================================
   動画セクション
   ============================================ */

.p2-movie {
  padding: 40px 0;
}

.p2-movie__inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.p2-movie__chara {
  width: 176px;
  height: auto;
  position: relative;
  z-index: 1;
  margin-bottom: -20px;
  margin-left: 30px;
}

.p2-movie__wrap {
  background-color: #f0f0f0;
  border-radius: 24px;
  overflow: hidden;
  padding: 40px;
  position: relative;
}

.p2-movie__wrap iframe {
  width: 100%;
  aspect-ratio: 923 / 496;
  height: auto;
  display: block;
}

/* ============================================
   お知らせ
   ============================================ */

.p2-news {
  padding: 40px 0;
}

.p2-news__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.p2-news__main {
  flex: 1;
  max-width: 642px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
}

.p2-news__heading {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.p2-news__heading-chara {
  width: 67px;
  height: auto;
}

.p2-news__heading-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--p2-text);
  letter-spacing: 1.44px;
  line-height: 1;
}

.p2-news__list {
  width: 100%;
}

.p2-news__item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 10px;
  border-bottom: 1px solid var(--p2-border);
  text-decoration: none;
  transition: background-color 0.2s;
}

.p2-news__item:hover {
  background-color: #faf8f5;
}

.p2-news__date {
  font-size: 14px;
  font-weight: bold;
  color: var(--p2-text);
  letter-spacing: 1.96px;
  white-space: nowrap;
}

.p2-news__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--p2-text);
  border-radius: 50px;
  padding: 4px;
  width: 94px;
  font-size: 14px;
  font-weight: bold;
  color: var(--p2-text);
  letter-spacing: 1.96px;
  white-space: nowrap;
}

.p2-news__title {
  font-size: 14px;
  font-weight: bold;
  color: var(--p2-text);
  letter-spacing: 1.96px;
}

.p2-news__more {
  text-align: right;
}

.p2-news__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--p2-dark-green);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1.96px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 50px;
  transition: opacity 0.3s;
}

.p2-news__more-btn:hover {
  opacity: 0.8;
}

/* リーフレット */
.p2-news__leaflet {
  width: 298px;
  background-color: var(--p2-bg-leaflet);
  border-radius: 24px;
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.p2-news__leaflet-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--p2-dark-green);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2.4px;
  margin-bottom: 16px;
}

.p2-news__leaflet-label-flip {
  transform: scaleX(-1);
}

.p2-news__leaflet-img {
  width: 132px;
  height: auto;
}

.p2-news__leaflet-download {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: bold;
  color: var(--p2-green);
  text-decoration: underline;
  white-space: nowrap;
}

.p2-news__leaflet-download:hover {
  opacity: 0.7;
}

.p2-news__leaflet-download .fa-file-pdf {
  color: var(--p2-green);
  font-size: 14px;
}

/* ============================================
   Instagram
   ============================================ */

.p2-instagram {
  background-color: var(--p2-bg-beige);
  padding: 80px 0;
}

.p2-instagram__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.p2-instagram__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.p2-instagram__heading-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--p2-text);
  letter-spacing: 1.44px;
}

.p2-instagram__heading-chara--left {
  width: 38px;
  height: auto;
}

.p2-instagram__heading-chara--right {
  width: 75px;
  height: auto;
}

.p2-instagram__feed {
  width: 100%;
}

/* ============================================
   フッター
   ============================================ */

.p2-footer {
  width: 100%;
}

.p2-footer__nav {
  background-color: var(--p2-bg-footer);
  padding: 24px 10px;
}

.p2-footer__nav-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 0;
}

.p2-footer__nav-inner a {
  font-size: 14px;
  font-weight: bold;
  color: var(--p2-text-light);
  text-decoration: none;
  letter-spacing: 2.1px;
  padding: 0 10px;
  border-right: 1px solid var(--p2-text-light);
  line-height: 1;
}

.p2-footer__nav-inner a:last-child {
  border-right: none;
}

.p2-footer__nav-inner a:hover {
  text-decoration: underline;
}

.p2-footer__copyright {
  padding: 10px;
  text-align: center;
}

.p2-footer__copyright p {
  font-size: 12px;
  font-weight: bold;
  color: var(--p2-text);
  letter-spacing: 1.8px;
}

/* ============================================
   重要なお知らせ一覧ページ
   ============================================ */

.p2-archive-notice {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 24px;
}

.p2-archive-notice__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  color: var(--p2-alert-red);
  padding-bottom: 20px;
  border-bottom: 2px solid var(--p2-alert-red);
  margin-bottom: 30px;
}

.p2-archive-notice__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p2-archive-notice__item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}

.p2-archive-notice__date {
  font-size: 14px;
  color: #888;
  flex-shrink: 0;
}

.p2-archive-notice__link {
  font-size: 16px;
  color: #333;
  text-decoration: none;
  letter-spacing: 1.2px;
}

.p2-archive-notice__link:hover {
  text-decoration: underline;
  color: var(--p2-alert-red);
}

.p2-archive-notice__pagination {
  margin-top: 40px;
  text-align: center;
}

.p2-archive-notice__pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.p2-archive-notice__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  border: 1px solid #ddd;
}

.p2-archive-notice__pagination .page-numbers.current {
  background-color: var(--p2-alert-red);
  color: #fff;
  border-color: var(--p2-alert-red);
}

.p2-archive-notice__empty {
  font-size: 16px;
  color: #666;
  text-align: center;
  padding: 60px 0;
}

/* ============================================
   レスポンシブ（999px以下）
   ============================================ */

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

  /* ヘッダー */
  .p2-header__inner {
    padding: 14px 16px;
  }

  .p2-header__content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-right: 70px;
  }

  .p2-header__right {
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .p2-header__reserve-btn {
    width: 100%;
    box-sizing: border-box;
  }

  .p2-header__logo img {
    height: 50px;
  }

  .p2-header__logo-text {
    font-size: 11px;
  }

  .p2-header__logo {
    gap: 10px;
  }

  .p2-header__sns-icon {
    width: 28px;
    height: 28px;
  }

  .p2-header__reserve-btn {
    font-size: 12px;
    padding: 8px 20px;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  /* ナビゲーション非表示（モバイルメニュー） */
  .p2-nav {
    display: none;
  }

  /* LINE固定タブ */
  .p2-line-tab {
    width: 40px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    border-radius: 12px 0 0 12px;
  }

  .p2-line-tab__text {
    font-size: 14px;
  }

  /* MV */
  .p2-mv {
    border-radius: 0;
    margin: 0;
    width: 100%;
  }

  .p2-mv__video-wrap {
    height: 500px;
  }

  .p2-mv__overlay {
    padding: 0 20px 40px;
  }

  .p2-mv__title {
    font-size: 24px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .p2-mv__subtitle {
    font-size: 13px;
    line-height: 2;
  }

  /* インフォメーション */
  .p2-info__inner {
    padding: 0 16px;
    gap: 24px;
  }

  .p2-notice {
    flex-direction: column;
    gap: 12px;
    height: auto;
    padding: 16px;
    align-items: flex-start;
  }

  .p2-notice__label {
    font-size: 14px;
  }

  .p2-notice__content a {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .p2-notice__more {
    align-self: flex-end;
  }

  .p2-reservation {
    border-radius: 24px;
    padding: 30px 16px;
    gap: 20px;
    overflow: hidden;
  }

  .p2-reservation__actions {
    width: 100%;
    box-sizing: border-box;
  }

  .p2-reservation__btn {
    width: 100%;
    padding: 12px 8px;
    font-size: 12px;
    letter-spacing: 0;
    box-sizing: border-box;
    white-space: nowrap;
  }

  .p2-reservation__link {
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .p2-reservation__video {
    width: 100%;
    max-width: 480px;
  }

  .p2-reservation__title {
    font-size: 18px;
    line-height: 1.8;
  }

  .p2-reservation__text {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .p2-reservation__text--large {
    font-size: 18px;
  }

  .p2-cards {
    flex-direction: row;
    gap: 16px;
  }

  .p2-card {
    max-width: 50%;
    border-radius: 24px;
  }

  .p2-card__btn {
    width: 100%;
  }

  /* About */
  .p2-about__inner {
    padding: 0 16px;
  }

  .p2-about__heading {
    flex-direction: column;
    gap: 16px;
  }

  .p2-about__heading-text {
    font-size: 22px;
  }

  .p2-about__heading-logo {
    width: 120px;
    height: 120px;
  }

  .p2-about__heading-logo img {
    width: 100px;
  }

  .p2-about__catch {
    font-size: 15px;
  }

  .p2-about__photo {
    border-radius: 20px;
  }

  .p2-about__chara--right {
    width: 80px;
    right: 0;
    top: -30px;
  }

  .p2-about__chara--left {
    width: 50px;
    left: 0;
  }

  .p2-about__buttons {
    flex-direction: row;
    gap: 12px;
    margin-bottom: 40px;
  }

  .p2-about__btn {
    flex: 1;
  }

  .p2-anniversary {
    margin: 0 auto 24px;
  }

  .p2-about__note {
    font-size: 12px;
  }

  /* Voice */
  .p2-voice {
    padding: 40px 10px;
  }

  .p2-voice__heading-title {
    font-size: 20px;
    padding: 10px 24px;
    letter-spacing: 2px;
  }

  .p2-voice__heading-chara--left {
    width: 40px;
  }

  .p2-voice__heading-chara--right {
    width: 32px;
  }

  .p2-voice__item {
    width: 220px;
    height: 220px;
  }

  .p2-voice__item p {
    font-size: 15px;
  }

  /* Movie */
  .p2-movie__inner {
    padding: 0 16px;
  }

  .p2-movie__chara {
    width: 100px;
    margin-left: 10px;
  }

  .p2-movie__wrap {
    padding: 16px;
    border-radius: 16px;
  }

  /* News */
  .p2-news__inner {
    flex-direction: row;
    padding: 0 16px;
    gap: 24px;
  }

  .p2-news__main {
    flex: 1;
    max-width: 100%;
    min-width: 0;
  }

  .p2-news__item {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .p2-news__leaflet {
    width: 220px;
    flex-shrink: 0;
    padding: 24px;
    gap: 16px;
  }

  .p2-news__leaflet-img {
    width: 120px;
  }

  .p2-news__leaflet-download {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .p2-voice__arrow {
    width: 36px;
    height: 36px;
  }

  .p2-voice__arrow i {
    font-size: 14px;
  }

  .p2-voice__arrow--prev {
    left: 8px;
  }

  .p2-voice__arrow--next {
    right: 8px;
  }

  /* Instagram */
  .p2-instagram__inner {
    padding: 0 16px;
  }

  .p2-instagram__heading-title {
    font-size: 24px;
  }

  .p2-instagram__heading-chara--left {
    width: 24px;
  }

  .p2-instagram__heading-chara--right {
    width: 48px;
  }

  /* フッター */
  .p2-footer__nav-inner a {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .p2-footer__copyright p {
    font-size: 10px;
  }

  .p2-archive-notice {
    margin: 40px auto;
  }

  .p2-archive-notice__item {
    flex-direction: column;
    gap: 8px;
  }
}

/* スマホ（480px以下） */
@media only screen and (max-width: 480px) {
  .p2-header__content {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 70px;
    gap: 8px;
  }

  .p2-header__right {
    margin-left: 0;
  }

  .p2-cards {
    flex-direction: column;
    gap: 20px;
  }

  .p2-card {
    max-width: 100%;
  }

  .p2-about__buttons {
    flex-direction: column;
  }

  .p2-about__btn {
    width: 100%;
  }

  .p2-news__inner {
    flex-direction: column;
  }

  .p2-news__leaflet {
    width: 100%;
  }

  /* 入館者・イベント参加者の声 - 1行に収める */
  .p2-voice__heading-title {
    font-size: 14px;
    padding: 8px 16px;
    letter-spacing: 1px;
  }

  .p2-voice__heading-chara--left {
    width: 28px;
  }

  .p2-voice__heading-chara--right {
    width: 22px;
  }

  /* お知らせ見出し */
  .p2-news__heading-title {
    font-size: 24px;
  }

  .p2-news__heading-chara {
    width: 40px;
  }

  /* キャラクター（about） */
  .p2-about__chara--right {
    width: 60px;
    top: -20px;
  }

  .p2-about__chara--left {
    width: 40px;
  }
}

/* ==========================================================================
   投稿詳細ページ
========================================================================== */
.p2-single {
  display: block;
  padding: 40px 0 80px;
}

.p2-single__inner {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.p2-single article {
  display: block;
  position: static;
  float: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

.p2-single .p2-single__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.p2-single .p2-single__date {
  display: inline;
  font-size: 14px;
  font-weight: bold;
  color: var(--p2-text);
  letter-spacing: 1.96px;
  background: none;
  padding: 0;
}

.p2-single .p2-single__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--p2-text);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: bold;
  color: var(--p2-text);
  letter-spacing: 1.96px;
  white-space: nowrap;
  background: none;
}

.p2-single .p2-single__title {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: var(--p2-text);
  line-height: 1.6;
  letter-spacing: 1px;
  text-align: left;
  padding: 0 0 20px;
  margin: 0 0 32px;
  border: none;
  border-bottom: 2px solid var(--p2-green);
  background: none;
  width: auto;
  height: auto;
}

.p2-single .p2-single__content {
  display: block;
  font-size: 16px;
  line-height: 1.8;
  color: var(--p2-text);
  margin-bottom: 60px;
}

.p2-single .p2-single__content p {
  display: block;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 1.5em;
}

.p2-single .p2-single__content img {
  max-width: 100%;
  height: auto;
}

.p2-single .p2-single__content iframe {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.p2-single .p2-single__content .wp-block-embed,
.p2-single .p2-single__content figure {
  display: flex;
  justify-content: center;
  margin: 1.5em 0;
}

.p2-single .p2-single__content .wp-block-embed__wrapper {
  max-width: 100%;
}

.p2-single__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.p2-single__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 50px;
  transition: opacity 0.3s;
}

.p2-single__nav-prev,
.p2-single__nav-next {
  background-color: #fff;
  color: var(--p2-dark-green);
  border: 2px solid var(--p2-dark-green);
}

.p2-single__nav-prev:hover,
.p2-single__nav-next:hover {
  background-color: var(--p2-dark-green);
  color: #fff;
}

.p2-single__nav-prev.is-disabled,
.p2-single__nav-next.is-disabled {
  visibility: hidden;
}

.p2-single__nav-list {
  background-color: var(--p2-dark-green);
  color: #fff;
  letter-spacing: 1.96px;
}

.p2-single__nav-list:hover {
  opacity: 0.8;
}

@media only screen and (max-width: 768px) {
  .p2-single__nav {
    gap: 8px;
  }

  .p2-single__nav-link {
    font-size: 12px;
    padding: 10px 14px;
  }

  .p2-single .p2-single__title {
    font-size: 20px;
  }

  .p2-single .p2-single__content {
    font-size: 15px;
  }

  .p2-single .p2-single__content p {
    font-size: 15px;
  }
}

/* Responsive Menu プラグイン非表示（テーマ独自のハンバーガーメニューに置き換え） */
#rmp_menu_trigger-4966,
#rmp-container-4966 {
  display: none !important;
}

/* LINE固定タブとコンテンツの被り防止 */
@media only screen and (max-width: 999px) {
  .fix-block {
    padding-left: 16px;
    padding-right: 16px;
  }

  .p2-single__inner {
    padding-left: 16px;
    padding-right: 46px;
  }
}

/* お問い合わせテーブル: スマホで縦積み */
@media only screen and (max-width: 768px) {
  .contact-info-table,
  .contact-info-table tbody,
  .contact-info-table tr,
  .contact-info-table th,
  .contact-info-table td {
    display: block !important;
    width: 100% !important;
  }

  .contact-info-table tbody td {
    padding: 12px 16px !important;
  }
}

/* ============================================
   新着情報一覧
   ============================================ */
.news-list {
  border-top: 1px solid #ddd;
}

.news-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 10px;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
}

.news-list__item:hover {
  background-color: #f9f9f9;
}

.news-list__date {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-list__category {
  display: inline-block;
  background-color: #429350;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-list__title {
  font-size: 15px;
  line-height: 1.5;
}

/* ページネーション */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}

.news-pagination a,
.news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s, color 0.2s;
}

.news-pagination a:hover {
  background-color: #429350;
  color: #fff;
  border-color: #429350;
}

.news-pagination span.current {
  background-color: #429350;
  color: #fff;
  border-color: #429350;
  font-weight: bold;
}

.news-pagination .dots {
  border: none;
  padding: 0;
  min-width: auto;
}

@media only screen and (max-width: 768px) {
  .news-list__item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 10px;
  }

  .news-list__title {
    width: 100%;
    font-size: 14px;
  }
}

/* ============================================
   ハンバーガーメニュー（モバイル専用）
   ============================================ */

/* ハンバーガーボタン（PCでは非表示） */
.p2-hamburger {
  display: none;
}

/* クローズボタン（PCでは非表示） */
.p2-nav-close {
  display: none;
}

/* オーバーレイ（PCでは非表示） */
.p2-mobile-overlay {
  display: none;
}

/* サブメニュートグル（JSで生成、PCでは非表示） */
.p2-submenu-toggle {
  display: none;
}

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

  /* ハンバーガーボタン */
  .p2-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    background-color: var(--p2-green);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
  }

  .p2-hamburger__line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
  }

  /* ハンバーガーボタン: 開いた状態（×に変形） */
  .p2-hamburger.is-open .p2-hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .p2-hamburger.is-open .p2-hamburger__line:nth-child(2) {
    opacity: 0;
  }

  .p2-hamburger.is-open .p2-hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* メニュー展開時はLINE固定タブを非表示 */
  .p2-mobile-overlay.is-open ~ .p2-line-tab {
    display: none;
  }

  /* ヘッダー内のポジション調整 */
  .p2-header__inner {
    position: relative;
  }

  /* モバイルドロワー */
  #global-navigation {
    display: block !important;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    padding-top: 70px;
  }

  #global-navigation.is-open {
    right: 0;
  }

  #global-navigation,
  #global-navigation #nav {
    text-align: left;
  }

  #global-navigation ul {
    background: none;
  }

  #global-navigation #nav {
    padding: 0;
    margin: 0;
  }

  #global-navigation #nav > li {
    display: block;
    padding: 0;
    border-bottom: 1px solid #eee;
    position: relative;
    width: auto;
    box-sizing: border-box;
  }

  #global-navigation #nav > li a {
    display: block;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: bold;
    color: var(--p2-text);
    text-decoration: none;
    text-align: left;
  }

  #global-navigation #nav > li a:hover {
    background-color: #f5f5f5;
  }

  /* リンクのないメニュー項目（「ご利用案内」など） */
  #global-navigation #nav > li.menu-item-3 {
    padding: 0 !important;
    font-size: 0;
    font-weight: bold;
    color: var(--p2-text);
    line-height: 1.4;
  }

  #global-navigation #nav > li.menu-item-3::before {
    content: "ご利用案内";
    display: block;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: bold;
    color: var(--p2-text);
  }

  #global-navigation #nav > li.menu-item-3 > ul {
    font-size: 13px;
  }

  /* メニューアイテムのカラーバー削除 */
  #global-navigation #nav > li[class*="menu-item-"] {
    border-bottom: 1px solid #eee;
  }

  /* サブメニュー */
  #global-navigation #nav li ul {
    display: none !important;
    position: static;
    background: #f9f9f9;
    z-index: auto;
  }

  /* PCのhoverによるサブメニュー表示を無効化 */
  #global-navigation #nav li:hover > ul {
    display: none !important;
  }

  #global-navigation #nav li.submenu-open > ul {
    display: block !important;
  }

  #global-navigation #nav li ul li,
  #global-navigation #nav li ul li.sub-menu1,
  #global-navigation #nav li ul li.sub-menu2 {
    display: block !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  #global-navigation #nav li ul li a,
  #global-navigation #nav li ul li.sub-menu1 a,
  #global-navigation #nav li ul li.sub-menu2 a {
    padding: 12px 20px 12px 36px !important;
    font-size: 13px !important;
    font-weight: normal !important;
    color: var(--p2-text-light) !important;
  }

  #global-navigation #nav li ul li:first-child a,
  #global-navigation #nav li ul li.sub-menu1:first-child a,
  #global-navigation #nav li ul li.sub-menu2:first-child a {
    padding-top: 12px !important;
  }

  /* サブメニュートグルボタン */
  .p2-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    border-left: 1px solid #eee;
    cursor: pointer;
    color: var(--p2-text-light);
    font-size: 12px;
    transition: transform 0.3s;
    z-index: 2;
  }

  .submenu-open > .p2-submenu-toggle {
    transform: rotate(180deg);
  }

  /* オーバーレイ（ヘッダーz-index:900の下に配置、ページ内容の上に表示） */
  .p2-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 899;
  }

  .p2-mobile-overlay.is-open {
    display: block;
  }

  /* フッターフォントサイズ */
  .p2-footer__nav-inner a {
    font-size: 12px;
  }
}

