@charset "utf-8";
/*
Theme Name: REHUB child
Theme URI:https://tcd-theme.com/tcd099
Description:WordPressテーマ「REHUB」の子テーマ
Template:rehub_tcd099
Author:TCD
Author URI:https://tcd-theme.com/
Version:1.0.19
*/

/*
  ここから下にCSSを追記してください。
*/

/* G-1E-3: migrated internal article cards (ch-article-card) */
/*
  Prefer TCD Classic Editor .tcdce-card chrome when that plugin CSS is loaded.
  Keep .ch-article-card as migration marker + fallback scope if tcdce CSS is absent.
*/
.ch-related-articles,
.post_content .ch-related-articles,
.p-single__content .ch-related-articles {
  margin: 2em 0;
}

.ch-related-articles__title,
.post_content .ch-related-articles__title,
.p-single__content .ch-related-articles__title {
  margin: 0 0 0.75em;
  font-size: 1.25rem;
  line-height: 1.4;
}

.ch-related-articles__list,
.post_content .ch-related-articles__list,
.p-single__content .ch-related-articles__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
}

.ch-related-articles__list > .tcdce-card,
.ch-related-articles__list > .ch-article-card,
.post_content .ch-related-articles__list > .tcdce-card,
.post_content .ch-related-articles__list > .ch-article-card {
  margin: 0;
}

.ch-related-articles__external {
  margin: 0;
  word-break: break-word;
}

/* Fallback card chrome (scoped). Harmless overlap when .tcdce-card rules also apply. */
.post_content .ch-article-card,
.p-single__content .ch-article-card {
  line-height: 1;
  background: #fafafa;
  border: 1px solid #ddd;
  overflow: hidden;
}

.post_content .ch-article-card .tcdce-card__link,
.post_content .ch-article-card .ch-article-card__link,
.p-single__content .ch-article-card .tcdce-card__link,
.p-single__content .ch-article-card .ch-article-card__link {
  display: flex !important;
  align-items: center;
  gap: 20px;
  padding: 20px;
  color: #000 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

.post_content .ch-article-card .tcdce-card__link:hover,
.post_content .ch-article-card .ch-article-card__link:hover,
.p-single__content .ch-article-card .tcdce-card__link:hover,
.p-single__content .ch-article-card .ch-article-card__link:hover {
  text-decoration: none !important;
  color: #000 !important;
}

.post_content .ch-article-card .tcdce-card__image,
.p-single__content .ch-article-card .tcdce-card__image {
  flex: 0 0 130px;
  aspect-ratio: 1;
  max-width: 130px;
}

.post_content .ch-article-card .tcdce-card__image-bg,
.p-single__content .ch-article-card .tcdce-card__image-bg {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0;
}

.post_content .ch-article-card .tcdce-card__content,
.p-single__content .ch-article-card .tcdce-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  word-break: break-word;
}

.post_content .ch-article-card .tcdce-card__title,
.p-single__content .ch-article-card .tcdce-card__title {
  display: -webkit-box;
  max-height: 3.2em;
  margin: -0.35em 0 !important;
  padding: 0 !important;
  overflow: hidden;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.7 !important;
  border: 0 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post_content .ch-article-card .tcdce-card__desc,
.p-single__content .ch-article-card .tcdce-card__desc {
  display: -webkit-box;
  max-height: 3.2em;
  margin: -0.35em 0 !important;
  padding: 0 !important;
  overflow: hidden;
  font-size: 14px !important;
  line-height: 1.7 !important;
  border: 0 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 767px) {
  .post_content .ch-article-card .tcdce-card__link,
  .p-single__content .ch-article-card .tcdce-card__link {
    gap: 15px;
    padding: 15px;
  }

  .post_content .ch-article-card .tcdce-card__image,
  .p-single__content .ch-article-card .tcdce-card__image {
    flex: 0 0 110px;
    max-width: 110px;
  }

  .post_content .ch-article-card .tcdce-card__title,
  .p-single__content .ch-article-card .tcdce-card__title {
    max-height: 5.4em;
    font-size: 14px !important;
    -webkit-line-clamp: 3;
  }

  .post_content .ch-article-card .tcdce-card__desc,
  .p-single__content .ch-article-card .tcdce-card__desc {
    display: none;
  }
}
/* G-1E-3: end article cards */

/* Pz-LinkCard: suppress TCD orange hover underline on the wrapping <a> */
.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 */

/* In-article figure: match paragraph spacing after the 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.aligncenter figcaption,
.post_content figure.aligncenter figcaption,
.tcdce-body figure.aligncenter figcaption {
  margin: 0.5em 0 0;
  padding: 0;
  color: #767676;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}
/* In-article figure: end */

/* Sidebar tab labels: brand orange base; the active tab keeps the theme's white.
   marker: ch_child_theme_widget_tab_color_v1 */
.p-widget-posts__labels-item {
  background: #ff9326;
}

/* Store detail: OSM map under review table
   marker: ch_child_theme_store_info_v8 */
.ch-store-map-embed {
  margin: 1.25rem 0 1.75rem;
}

.ch-store-map-embed__frame-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #f4f4f4;
}

.ch-store-map-embed__frame-wrap:empty {
  display: none;
}

.ch-store-map-embed__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ch-store-map-embed__link-wrap {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
}

.ch-store-map-embed__link {
  text-decoration: underline;
}

.p-single--review-table__cell-right {
  line-height: 1.7;
}

.p-single--review-table__cell-right a {
  word-break: break-all;
}

@media (max-width: 767px) {
  .ch-store-map-embed__frame-wrap {
    height: 280px;
  }
}
/* Store detail map: end */

/* Review footer bar: match header-message orange (PC capsule + mobile bar)
   marker: ch_child_theme_review_footer_bar_color_v1 */
.p-review-footer-bar__list {
  background: #ff9326;
}
@media (max-width: 767px) {
  .p-review-footer-bar {
    background: #ff9326;
  }
}

/* Header keyword search: visible field on white header
   marker: ch_child_theme_header_search_field_v1 */
.l-header__search-form input {
  box-sizing: border-box;
  background: #fff !important;
  border: 1px solid #c4c4c4 !important;
  color: #333 !important;
  caret-color: #333;
}

.l-header__search-form input::placeholder {
  color: #888 !important;
  opacity: 1 !important;
}

.l-header__search-form input:focus {
  border-color: #888 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}
/* Header keyword search: end */

/* ch_kantan_link_v1: もしもかんたんリンク相当（Rinker非使用） */
.p-single__content .ch-kantan-link,
.post_content .ch-kantan-link,
.ch-kantan-link {
  box-sizing: border-box;
  margin: 1.5em 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.ch-kantan-link__inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ch-kantan-link__image { flex: 0 0 120px; }
.ch-kantan-link__image img {
  display: block;
  width: 120px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.ch-kantan-link__body { flex: 1 1 auto; min-width: 0; }
.ch-kantan-link__title {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}
.ch-kantan-link__title a { color: #222 !important; text-decoration: none !important; }
.ch-kantan-link__title a:hover { text-decoration: underline !important; }
.ch-kantan-link__shops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ch-kantan-link__shops li { margin: 0; padding: 0; list-style: none; }
.ch-kantan-link__shops a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 4px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}
.ch-kantan-link__shops .amazon a { background: #f90; }
.ch-kantan-link__shops .kindle a { background: #444; }
.ch-kantan-link__shops .rakuten a { background: #bf0000; }
.ch-kantan-link__shops .yahoo a { background: #e00; }
.ch-kantan-link__shops a:hover { opacity: 0.88; }
@media (max-width: 600px) {
  .ch-kantan-link__inner { flex-direction: column; }
  .ch-kantan-link__image { flex-basis: auto; }
}
/* ch_kantan_link_v1: end */

/* marker: ch_child_theme_ceylon_holiday_cta_v1 */
.ch-ceylon-cta {
  box-sizing: border-box;
  margin: 2em 0 1.5em;
  padding: 1.25em 1.35em;
  background: #fffaf4;
  border: 1px solid #ead9c4;
  border-radius: 8px;
}
.ch-ceylon-cta__kicker {
  margin: 0 0 0.45em;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
}
.ch-ceylon-cta__text {
  margin: 0 0 1em;
  line-height: 1.7;
  color: #333;
}
.ch-ceylon-cta__action {
  margin: 0 0 0.7em;
}
.ch-ceylon-cta__button {
  display: inline-block;
  padding: 0.7em 1.25em;
  background: #ff9326;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 4px;
}
.ch-ceylon-cta__button:hover {
  opacity: 0.9;
}
.ch-ceylon-cta__note {
  margin: 0;
  font-size: 0.85em;
  line-height: 1.5;
  color: #666;
}
.ch-ceylon-cta__note a {
  color: #666;
}
/* ch_child_theme_ceylon_holiday_cta_v1: end */
