/* the_content() 出力の本文スタイル調整 */
/* SiteOrigin等のDB内HTMLは変更不可のため、ここでスタイル */
/* 実HTMLは oldsite/*.html を参照しながら追加調整 */

.entry-content {
  font-size: 14px;
  line-height: 1.625;
  color: var(--text-b);
}
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: var(--text-h);
  font-weight: 900;
  margin: 1em 0 0.5em;
  line-height: 1.25;
}
.entry-content h1 { font-size: 20px; }
.entry-content h2 { font-size: 18px; padding: 0.35em 0.6em; border-left: 4px solid var(--brand); background: var(--brand-bg); border-radius: 4px; }
.entry-content h3 { font-size: 16px; padding-left: 0.6em; border-left: 3px solid var(--teal); }
.entry-content h4 { font-size: 14px; font-weight: 700; color: var(--text-h); padding-left: 0.5em; border-left: 2px solid var(--card-bd); }
.entry-content a { color: var(--brand); text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 20px; }
.entry-content .activity_layout img { border-radius: 0; }
.entry-content iframe { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content p { margin: 0.6em 0; }
.entry-content ul,
.entry-content ol { margin: 0.6em 0; padding-left: 1.5em; }
.entry-content li { margin: 0.3em 0; }
/* SiteOrigin等の固定ピクセル幅 table が親カラムを突き抜ける問題を抑制
   （DB内HTMLは変更不可のため !important でインラインstyleを上書き） */
.entry-content table { width: 100% !important; max-width: 100% !important; border-collapse: collapse; margin: 1em 0; }
.entry-content table th,
.entry-content table td { border: 1px solid var(--brand); padding: 8px; max-width: 100%; width: auto !important; }
.entry-content table th { background: var(--brand-bg); }

/* === SiteOrigin Panels 対応（DB出力HTML・変更不可のため） === */
.entry-content .panel-layout,
.entry-content .panel-grid { margin: 0; }
.entry-content .panel-grid-cell { padding: 0; }
.entry-content .panel-row-style { margin: 0; padding: 0; }
.entry-content .so-panel { margin-bottom: 0.6em; }
.entry-content .widget-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-h);
  margin: 1em 0 0.5em;
  line-height: 1.25;
}
.entry-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

/* 画像配置 */
.entry-content img.alignnone { display: block; margin: 0.6em auto; }
.entry-content img.aligncenter { display: block; margin: 0.6em auto; }
.entry-content img.alignleft  { float: left;  margin: 0.3em 0.6em 0.3em 0; }
.entry-content img.alignright { float: right; margin: 0.3em 0 0.3em 0.6em; }

/* ボタン・CTA（DB内の .btn / .button 等） */
.entry-content .btn,
.entry-content a.button,
.entry-content button,
.entry-content input[type="submit"] {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  margin: 0.6em 0;
  cursor: pointer;
}

/* 引用・コード */
.entry-content blockquote {
  border-left: 4px solid var(--brand);
  padding: 0.4em 0.8em;
  margin: 0.8em 0;
  background: var(--brand-bg);
  border-radius: 0 12px 12px 0;
  color: var(--text-b);
}
.entry-content pre {
  white-space: pre-wrap;
  word-break: break-all;
}
.entry-content pre:not(.js-cancel_policy):not(.js-client-data) {
  background: #2a2640;
  color: #e4e0ff;
  padding: 0.8em;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 12px;
}
.cancel-policy > p {
  margin-top: 0;
}

/* clearfix（float解除） */
.entry-content .panel-grid::after,
.entry-content .clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* フッターナビリンク色（背景濃紫とのコントラスト確保） */
.footer-nav a { color: #b8b3d9; }
.footer-nav a:hover { color: #fff; }

/* === pgs-card（DB内HTML・旧テーマ post-grab-shortcode 出力・変更不可）
   プラン詳細本文内「その他のプラン」カード群のスタイル（旧テーマ style.css 準拠） === */
.entry-content .pgs-card {
  display: flex;
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: stretch;
  border: 1px solid var(--card-bd);
  background: #fff;
  border-radius: 12px;
  margin: 0 0 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.entry-content .pgs-card br { display: none; }
.entry-content .pgs-thumbnail {
  flex: 0 0 120px;
  width: 120px;
  height: 90px;
  overflow: hidden;
}
.entry-content .pgs-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  margin: 0;
}
.entry-content .pgs-post-data {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.entry-content .pgs-post-data a {
  text-decoration: none !important;
  display: block;
}
.entry-content .pgs-post-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-h);
  margin-bottom: 4px;
}
.entry-content .pgs-post-date {
  display: block;
  font-size: 11px;
  color: var(--text-m);
}
@media screen and (max-width: 767px) {
  .entry-content .pgs-thumbnail { flex: 0 0 96px; width: 96px; height: 72px; }
  .entry-content .pgs-post-data { padding: 6px 8px; }
  .entry-content .pgs-post-title { font-size: 13px; }
}
@media screen and (min-width: 768px) {
  .entry-content .pgs-post-price {
    width: 80%;
  }
}

.entry-content .widget_sow-anything-carousel { display: block; }
.slick-track{
  display: flex!important;
max-width: 500px;
}
.slick-initialized .slick-slide {
max-width: 300px;
}
.slick-initialized .slick-slide img{
max-width: 300px;
height: auto;
}
@media screen and (max-width: 767px) {
  .slick-initialized .slick-slide img {
  max-width: 250px;
}
}

/* SiteOrigin ウィジェットコンテナの幅を entry-content に制限 */
.entry-content .so-widget { max-width: 100%; overflow: hidden; }
.entry-content .sow-masonry-grid { max-width: 100%; }
.entry-content .sow-masonry-grid-item img { max-width: 100%; height: auto; }

/* 最終防波堤: JS が異常 width を設定しても entry-content から突き抜けない */
.entry-content { overflow-x: hidden; }

/* === ページネーション（the_posts_pagination 出力） === */
.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 1.5rem;
  font-size: 13px;
}
.pagination .page-numbers,
.nav-links .page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--card-bd);
  background: #fff;
  color: var(--text-b);
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  line-height: 1;
}
.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.pagination .page-numbers:hover:not(.current):not(.dots),
.nav-links a:hover:not(.current):not(.dots) {
  background: var(--brand-bg);
  border-color: var(--brand);
  color: var(--brand);
}
.pagination .page-numbers.dots,
.nav-links .page-numbers.dots,
.nav-links .dots {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 0 2px;
}

/* === サイドエリア（aside）の sticky 化 ===
   要件: メインエリアが続く限りサイドエリアがスクロールに追従して見え続ける（position: sticky）
   PC（lg:1024px以上）の2カラムレイアウトのみ適用。SPは単カラムのため無効。
   top は sticky ヘッダー（約57px）+ 余白 を考慮。 */
@media screen and (min-width: 1024px) {
  main aside {
    position: sticky;
    top: 76px;
    align-self: start;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }
}

.reservation-calendar { margin-top: 12px; }
.reservation-calendar .loading,
.reservation-calendar .error { font-size: 12px; color: var(--text-m); padding: 10px; text-align: center; }
.reservation-calendar .calendar-carousel { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; gap: 8px; }
.reservation-calendar .calendar-carousel button {
  background: transparent; border: 1px solid var(--card-bd); border-radius: 9999px;
  padding: 4px 14px; font-size: 12px; font-weight: 700; color: var(--text-h); cursor: pointer;
}
.reservation-calendar .calendar-carousel button.disabled { opacity: .4; cursor: not-allowed; }
.reservation-calendar .swiper-slide { display: none; }
.reservation-calendar .swiper-slide.active { display: block; }
.reservation-calendar .calendar-month { font-size: 14px; font-weight: 900; color: var(--text-h); margin-bottom: 6px; }
.reservation-calendar .calendar { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.reservation-calendar .calendar th { padding: 6px 2px; font-weight: 700; color: var(--text-m); border-bottom: 1px solid var(--card-bd); }
.reservation-calendar .calendar td.day { padding: 6px 2px; text-align: center; border: 1px solid #eee; vertical-align: middle; }
.reservation-calendar .calendar-date-price { display: none !important; }
.reservation-calendar .calendar-date-status i { font-size: 10px; }
.reservation-calendar td.reservable { background: rgba(132,158,237,.16); font-weight: 800; }
.reservation-calendar td.reservable a { color: var(--brand); text-decoration: none; display: block; }
.reservation-calendar td.reservable a:hover { text-decoration: underline; }
.reservation-calendar td.not-reservable,
.reservation-calendar td.past-date { color: #bbb; background: #f7f7f7; }

/* --- docs_issue: 予約カレンダーのスタイル調整 --- */
/* 前/次ボタンの左右入れ替え */
.reservation-calendar .calendar-carousel { flex-direction: row-reverse; }
/* 予約状態img(request_reserve.svg)非表示 */
.reservation-calendar .rsv-cal-status-request-reserve { display: none !important; }
/* 予約可能(aタグ存在)時のアイコン表示 */
.reservation-calendar td.reservable a::after {
  content: '◯'; display: block; font-size: 9px; line-height: 1; color: var(--coral); margin-top: 1px;
}
/* 前月・翌月のオーバーフロー日付を非表示化(背景色と同化) */
.reservation-calendar td.overflow-date { color: #f7f7f7 !important; background: #f7f7f7; }
.reservation-calendar td.overflow-date a { color: #f7f7f7 !important; pointer-events: none; }
.reservation-calendar td.overflow-date .calendar-date-status { display: none; }

.list-disc { list-style: disc; margin: 0 0 0 1.5em !important; }
.list-decimal { list-style-type: decimal;  padding-left: 1.5rem; }

.border-l-2 {
  border-left-width: 2px;
  border-left-style: solid;
}
.border-gray-200 {
  border-left-color: #e5e7eb;
}
.list-style-type-a {
  margin-top: 0.5rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style-type: lower-latin;
  list-style-position: inside;
  padding-left: 1rem !important;
  color: rgb(75 85 99);
}

#main article {
  padding: 0 0 24px 0;
}

/* リンク・ボタン */
.wp-singular .more-link {
  display: inline-block;
  font-size: .9rem;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 2px;
  background: #849eed;
  color: #fff;
  box-shadow: 3px 0 15px rgba(0, 0, 0, 0.05);
  margin: 3px 5px 3px 0;
}

/* サイドバー アクティビティ */
.side-block ul:not(.wpp-list) li {
  border-bottom: solid 1px #ebebfc;
}
.side-block ul:not(.wpp-list) li > a {
  display: block;
  padding: .5em;
  color: var(--brand);
}

.side-block .wpp-list li {
  margin-bottom: .75rem;
}

/* お問い合わせ */
.form-group p > label,
.form-label {
  font-weight: 700;
}
.form-group input[type="text"],
.form-group textarea,
.wpcf7-form-control-wrap input[type="text"],
.wpcf7-form-control-wrap input[type="tel"],
.wpcf7-form-control-wrap input[type="email"],
.wpcf7-form-control-wrap textarea {
  width: 100%;
  border: solid 1px #ebebfc;
  padding: .4em 1em;
}
.entry-content input[type="submit"].wpcf7-submit {
  display: block;
  width: min(100%, 200px);
  margin-inline: auto;
}
.wpcf7-spinner {
  display: block;
  margin-inline: auto;
}
.wpcf7-list-item {
  display: block;
  margin-left: 0;
}
.wpcf7-list-item > label {
  display: flex;
  gap: 8px;
}

/* 長崎のアクティビティを提供しませんか？ */
.banner-block {
  overflow: hidden;
  grid-template-columns: 1fr 40%;
}
.banner-text {
  align-self: center;
}
.banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-tag {
  background: #fff;
  border-radius: 4px;
  display: inline-block;
  color: #476dde;
  padding: .2em .4em;
}
@media(min-width:768px) {
  .banner-bg {
    position: relative;
  }
  .banner-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #7a9ee1 30%, transparent);
  }
}

/* プラン情報 */
.plan-info-text {
  word-break: break-all;
  flex: 1;
}

/* レビュー一覧・投稿 */
#review-more-btn {
  color: var(--brand);
}
#review-form-toggle {
  display: block;
  margin-left: auto;
}
.review-submit-btn {
  display: block;
  margin-inline: auto;
}
.review-comment-form input[type="text"],
.review-comment-form input[type="email"],
.review-comment-form select,
.review-comment-form textarea {
  width: 100%;
  border: 1px solid var(--card-bd);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 16px;
  margin-top: 4px;
  background: #fff;
}
.review-comment-form label { font-weight: 700; color: var(--text-h); font-size: 13px; margin-right: 1em; }
.review-comment-form p { margin-bottom: 14px; }
.review-comment-form .comment-form-sex label:not(:first-of-type) { display: inline-flex; align-items: center; gap: 4px; margin-right: 16px; font-weight: 400; }
.review-comment-form .required { color: var(--coral); margin-left: 2px; }