/*
Theme Name: Surf-OK Points
Template: rehub_tcd099
Version: 0.3.7
Description: Thin child for Surf-OK REHUB staging. Today on point URLs. Weekly CTA to PANDORA.
*/

/* CTA: wpautop inserts <br> inside inline-block forecast links */
.p-single--review .post_content a[href*="surf-ok.jp/category/"][style*="#0077b6"] {
  display: inline-block !important;
  line-height: 1.4;
  vertical-align: middle;
}
.p-single--review .post_content a[href*="surf-ok.jp/category/"][style*="#0077b6"] br {
  display: none !important;
}

.surfok-today {
  margin: 0 0 2em;
  padding: 1.1em 1.1em 0.8em;
  border: 1px solid #d7e3ea;
  border-radius: 8px;
  background: #f7fbfe;
}
.surfok-today__kicker {
  margin: 0 0 0.6em;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0077b6;
}
.surfok-today__error,
.surfok-today__meta {
  font-size: 13px;
  color: #4a5a63;
}
.surfok-today .surfok-table-wrap,
.surfok-today .s_table {
  overflow-x: auto;
}
.surfok-today table.surfok-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.surfok-today table.surfok-table th,
.surfok-today table.surfok-table td {
  padding: 6px 8px;
  border: 1px solid #d5dee4;
  white-space: nowrap;
}
.surfok-today .surfok-tide-chart img {
  max-width: 100%;
  height: auto;
}
.surfok-week-cta {
  text-align: center;
  margin: 1.4em 0 0.4em;
}
.surfok-week-cta__btn {
  display: inline-block;
  padding: 14px 28px;
  background: #0077b6;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.surfok-week-cta__btn:hover {
  opacity: 0.9;
}

.surfok-contact label { display: block; font-weight: 700; margin-bottom: 0.3em; }
.surfok-contact input[type="text"],
.surfok-contact input[type="email"],
.surfok-contact textarea {
  width: 100%;
  max-width: 40em;
  padding: 0.6em 0.7em;
  border: 1px solid #ccc;
}
.surfok-contact button {
  padding: 0.7em 1.4em;
  background: #0077b6;
  color: #fff;
  border: 0;
  cursor: pointer;
}
.surfok-contact__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.surfok-contact__ok { color: #0a7a32; font-weight: 700; }
.surfok-contact__error { color: #b00020; font-weight: 700; }

/* Review footer bar: PC capsule + mobile bar
   marker: surfok_review_footer_bar_color_v1 */
#js-review-footer-bar.p-review-footer-bar .p-review-footer-bar__list {
  background: #ff7f00;
}
@media (max-width: 767px) {
  #js-review-footer-bar.p-review-footer-bar {
    background: #ff7f00;
  }
}


/* [PATCH-ANCHOR:global-nav-current-color]
   グローバルナビのカレント文字色を他項目と揃える。
   「ポイント一覧」と「エリアから探す」が同じURLだと両方 current-menu-item になり
   アクセントオレンジになるため上書きする。ホバー色は親テーマのまま。 */
.p-global__nav > li.current-menu-item > a,
.p-global__nav > li.current-menu-ancestor > a,
.p-global__nav > li.current-menu-parent > a {
  color: inherit;
}
.p-drawer-menu__nav > li.current-menu-item > a,
.p-drawer-menu__nav > li.current-menu-ancestor > a,
.p-drawer-menu__nav > li.current-menu-parent > a,
.p-drawer-menu__nav li.is-active > a {
  color: inherit;
}

/* In-article figure captions: CurryHunter child と同じ
   marker: surfok_in_article_figcaption_v1 */
.p-single__content figure.wp-block-image,
.post_content figure.wp-block-image,
.tcdce-body figure.wp-block-image,
.p-single__content figure.aligncenter,
.post_content figure.aligncenter,
.tcdce-body figure.aligncenter {
  margin-bottom: calc(var(--tcdce-base-margin-bottom-pc, 2em) + (1em - 2.4em) / 2);
}

.p-single__content figure figcaption,
.post_content figure figcaption,
.tcdce-body figure figcaption,
.wp-block-image figcaption,
.wp-element-caption {
  margin: 0.5em 0 0;
  padding: 0;
  color: #767676;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

/* Pz-LinkCard: suppress TCD orange hover underline on the wrapping <a>
   marker: surfok_pz_linkcard_hover_v1 */
.post_content .linkcard a.lkc-link,
.post_content .linkcard a.lkc-link:hover,
.post_content a.lkc-link,
.post_content a.lkc-link:hover,
.p-single__content .linkcard a.lkc-link,
.p-single__content .linkcard a.lkc-link:hover,
.p-single__content a.lkc-link,
.p-single__content a.lkc-link:hover {
  color: inherit !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  background-image: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.post_content .linkcard .lkc-title:hover,
.post_content .lkc-link:hover .lkc-title,
.p-single__content .linkcard .lkc-title:hover,
.p-single__content .lkc-link:hover .lkc-title {
  text-decoration: none !important;
}

.post_content .lkc-favicon img,
.p-single__content .lkc-favicon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
}
/* Pz-LinkCard: end */

/* 固定ページ「会員登録するとできること」のボタン（2026-09-30）。遷移先は PANDORA のマイページ */
.surfok-member-benefits-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 2em;
}
.tcdce-body .surfok-member-benefits-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 200px;
  margin: 0;
  padding: 0.8em 1.4em;
  border: 1px solid #fb7f00;
  border-radius: 6px;
  background: #fb7f00;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}
.tcdce-body .surfok-member-benefits-actions a.surfok-member-benefits-actions__sub {
  background: #fff;
  color: #c45a00;
}
