/*
Theme Name: REHUB-Child
Version: 1.6
Template: rehub_tcd099
*/

/**************************
 
基本設定
 
 **************************/


:root {
  --chocolate: #5C4842;
  --usuichocolate: #5D4943;
  --orange: #f2a400;
}

body {
  background: #fff;
  color: var(--chocolate);
  font-family: zen maru gothic;
}

p,
li {
  color: var(--chocolate);
}

li {
  margin-bottom: 1em;
}


/*==============================================================================================
全体のレイアウト
==============================================================================================*/

.site-container {
  max-width: 100%;
  display: flex;
  box-sizing: border-box;
}

.site-container__main {
  flex: 1;
  min-width: 0;
}

.site-container__main__contents {
  max-width: 1000px;
  margin: 50px auto;
}

.site-container__main--ranking-page {
  max-width: 1500px;
  margin: 50px auto;
}


/*親テーマのheader.phpで定義されてる必要ないCSS設定の上書き*/

.u-flex-wrap {
  display: block;
}

.l-inner {
  max-width: none;
  margin: 0;
  width: 100%;
}

.l-main {
  max-width: none;
}

.single .l-main:only-child,
.post-type-archive-news .l-main:only-child,
.page-template-default:not(.home) .l-main:only-child {
  max-width: none;
}


/*==============================================================================================
ランキングページ
==============================================================================================*/
.ranking-page h2 {
  font-family: Zen maru gothic;
  text-align: center;
  font-size: 44px;
  margin: 20px 0;
  color: var(--chocolate);
}

.ranking-page-desc{
  border-bottom: 1px solid var(--orange);
  text-align: center;
  padding-bottom: 30px;
  margin-bottom:50px;
  color: var(--chocolate);
}

.ranking-card__metaTsubo{
  font-weight: bold;
  color: orangered;
  font-size: 18px;
}




.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}


/* 4列 */
.ranking-card {
  width: calc((100% - 78px) / 4);
  /* gap 26px × 3 */
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .08), 0 10px 22px rgba(0, 0, 0, .06);
  position: relative;
  overflow: hidden;
  padding:18px;
}

/* 3列 */
@media (max-width: 1200px) {
  .ranking-card {
    width: calc((100% - 52px) / 3);
    /* gap 26px × 2 */
  }
}

/* 2列 */
@media (max-width: 980px) {
  .ranking-card {
    width: calc((100% - 26px) / 2);
  }
}

/* 1列 */
@media (max-width: 560px) {
  .ranking-card {
    width: 100%;
  }
}

.ranking-card__rank {
  position: absolute;
  top: 0;
  left: 12px;
  width: 34px;
  height: 30px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  line-height: 30px;
  text-align: center;
}


.ranking-card__rank::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 17px solid var(--chocolate);
  border-right: 17px solid var(--chocolate);
  border-top: 10px solid var(--chocolate);
  border-bottom: 10px solid #fff;
}

/* 1位：金 */
.ranking-card:nth-child(1) .ranking-card__rank,
.ranking-card:nth-child(1) .ranking-card__rank::after {
  background: #d4af37;
  /* gold */
  border-left-color: #d4af37;
  border-right-color: #d4af37;
  border-top-color: transparent;
  border-bottom-color: #fff;
}

/* 2位：銀 */
.ranking-card:nth-child(2) .ranking-card__rank,
.ranking-card:nth-child(2) .ranking-card__rank::after {
  background: #c0c0c0;
  /* silver */
  border-left-color: #c0c0c0;
  border-right-color: #c0c0c0;
  border-top-color: transparent;
  border-bottom-color: #fff;
}

/* 3位：銅 */
.ranking-card:nth-child(3) .ranking-card__rank,
.ranking-card:nth-child(3) .ranking-card__rank::after {
  background: #cd7f32;
  /* bronze */
  border-left-color: #cd7f32;
  border-right-color: #cd7f32;
  border-top-color: transparent;
  border-bottom-color: #fff;
}

/* デフォルト（4位以下） */
.ranking-card__rank,
.ranking-card__rank::after {
  background: var(--chocolate);
  border-left-color: var(--chocolate);
  border-right-color: var(--chocolate);
  border-top-color: transparent;
  border-bottom-color: #fff;
}

.ranking-card__logo {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-card__logoImg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.ranking-card__image{
  width:100%;
  height:130px;
}

.ranking-card__image img{
  display: block;     /* 余計な隙間防止 */
  width: 100%;
  height: 100%;
  object-fit: contain;
}



.ranking-card__maker {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0;
}

.ranking-card__description{
  font-size: 15px;
}

.ranking-card__meta {
  margin: 15px 0;
  font-size: 15px;
}

.ranking-card__meta__tsubo{
  color:orangered;
  font-size: 18px;
  font-weight: 900;
}


.ranking-card__star{
  margin-top:10px;
  font-size:18px;
}



.ranking-card__metaSep {
  margin: 0 4px;
}

.ranking-card__ratingRow{
  margin: 10px 0;
}








/*==============================================================================================
各ハウスメーカーレビューページ
==============================================================================================*/

.simple_ul {
  margin: 25px 0;
}

/*single-review.phpの部分*/


.slider-main {
  margin-bottom: 20px;
}


/* 未選択の画像 */
.slider-nav .thumb-item {
  cursor: pointer;
  opacity: 0.5;
  /* 半透明にする */
  filter: brightness(1.2);
  /* ★画像を少し明るく飛ばす */
  padding: 0 5px;
}

/* 選択中の画像 */
.slider-nav .thumb-item.slick-current {
  opacity: 1;
  /* 元に戻す */
  filter: none;
  border: 2px solid #000;
}

/* 画像自体の調整 */
.slider-wrapper img {
  width: 100%;
  height: auto;
}



/*comment-template.php部分*/

.review_average_h3 {
  font-size: 20px;
  margin: 10px;
}

.review_average_sogohyoka {
  font-size: 20px;
  margin: 15px 10px;
  font-weight: bold;
}

.review_average_table th,
.review_average_table td {
  padding: 10px;
  border: 1px solid #d3d3d3;
  text-align: center;
}

.review_average_table th:first-child {
  width: 30%;
  background-color: #fbff6159;

}

.review_average_table td:first-child {
  background-color: #fbff6159;
}

.review_average__comment_amount {
  margin: 10px 0;
  text-align: right;
}

body .p-single--review-rating {
  padding: 20px;
}


/* レビュー書き込みフォーム：デフォルトは閉じる */
.p-review-comments-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  /* ←閉じ */
  margin-top: -1px;
  transition: grid-template-rows 0.5s ease;
}

/* 開く */
.p-review-comments-wrapper.is-active {
  grid-template-rows: 1fr;
}

/* 中身は折りたたみ中に見えないようにする（重要） */
.p-review-comments-wrapper__inner {
  overflow: hidden;
}



/* レビュー順にソート */
.review-sort {
  border: 1px solid #ddd;
  padding: 20px;
  margin: 20px auto;
}

.review-sort h2 {
  padding: 10px;
}

.review-sort-title {
  font-size: 18px;
  margin-bottom: 15px;
}

.review-sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-btn {
  padding: 6px 12px;
  border: 1px solid #666;
  background: #fff;
  cursor: pointer;
}

.sort-btn.active {
  background: #000;
  color: #fff;
}

#rating-filter {
  padding: 6px;
}

.sort-btn {
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
}

.sort-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* レビューページ：レビュー順にソート ここまで*/


/*comment-loop.php部分(各個人が書いたレビュー)*/
.p-single--review-comments__item-author {
  margin-bottom: 10px;
}

.review_box {
  display: flex;
  gap: 20px;
}

.review_box_rating {
  border: 2px solid #e5e5e5;
  width: 40%;
  margin: 20px 0;
  height: 372px;
}

.sougou_hyouka {
  font-weight: bold;
}

.sougou_hyouka tr {
  background: #fbff6159;
}

.sougou_hyouka th,
.sougou_hyouka td {
  padding: 10px;
  border-bottom: 1px solid #cfcfcf;
  font-size: 1.1em;
  text-align: center;
}

.kobetsu_hyouka th,
.kobetsu_hyouka td {
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #cfcfcf;
}

.review_box_comment {
  width: 60%;
}

.u-flex-align-center {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  justify-content: flex-end;
}

.p-star-review__icon {
  color: #6b6b6b
}

/* グラデーションのかかり方も少し伸ばす（任意） */
#js-review-comment-list .p-single--review-comments__item-desc--hide {
  max-height: 25em;
}

#js-review-comment-list .p-single--review-comments__item-desc--hide:before {
  background: linear-gradient(rgba(255, 255, 255, 0) 20em, #fff 25em);
}

#js-review-comment-list .p-single--review-comments__item-desc--hide.is-active {
  max-height: initial;
}


@media screen and (max-width: 767px) {
  .review_box {
    display: block;
    gap: 0px;
  }

  .review_box_rating {
    width: 98%;
    margin: 20px auto;
    height: 356px;

  }

  .review_box_comment {
    width: 100%;
  }

}


/*comment-loop.phpここまで*/


/* ==============================================================================
  ==============================
   

/* ==============================================================================
   価格.com 風：レビュー/クチコミ/スペック タブ
============================================================================== */
.p-reviewTabs{
  display:flex;
  align-items:flex-end;
  gap:6px;
  border-bottom:2px solid #f07f00;
  margin: 12px 0 10px;
}

.p-reviewTabs__tab{
  display:inline-block;
  padding:10px 16px;
  border:1px solid #ddd;
  border-bottom:none;
  border-radius:8px 8px 0 0;
  background:#f6f6f6;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  line-height:1;
  color:#333;
}

.p-reviewTabs__tab:hover{ background:#fff; }

.p-reviewTabs__tab.is-active{
  background:#f07f00;
  border-color:#f07f00;
  color:#fff;
}

.p-reviewTabs__tab.is-disabled{
  opacity:.45;
  cursor:not-allowed;
}

/* スレ一覧の微調整（価格.com 寄せ） */
.p-review-board__th{
  font-size:13px;
  padding:10px 10px;
  background:#e9e9e9;
  border-bottom:1px solid #d9d9d9;
  opacity:1;
}
.p-review-board__td{
  padding:10px 10px;
  font-size:13px;
}
.p-review-board__tr:nth-child(even) .p-review-board__td{ background:#fff7e8; }
.p-review-board__tr:hover .p-review-board__td{ background:#fff2d6; }
.rb-newThread{ margin-top:12px; display:flex; justify-content:flex-end; }
.rb-newThread__btn{
  display:inline-block;
  padding:10px 14px;
  background:#f07f00;
  color:#fff;
  border-radius:6px;
  font-weight:700;
  text-decoration:none;
}
.rb-newThread__btn:hover{ filter: brightness(0.95); }

/*
Review-Board.php (掲示板) 
==============================================================================
============================== */

/* 全体 */
.p-review-board {
  margin: 28px 0;
}

.p-review-board__title {
  text-align: center;
  margin: 0 0 18px;
}

/* 共通パネル（枠） */
.p-review-board__panel {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  margin: 14px 0;
}

/* パネル見出し */
.p-review-board__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.p-review-board__panel-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.p-review-board__panel-meta {
  font-size: 12px;
  opacity: .75;
}

/* エラー */
.p-review-board__error {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #f1c7c7;
  background: #fff5f5;
  border-radius: 10px;
  color: #8a1f1f;
  font-size: 14px;
}

/* 空 */
.p-review-board__empty {
  padding: 10px 0;
  opacity: .75;
}

/* ==============================
   一覧テーブル
   ============================== */
.p-review-board__table-wrap {
  overflow-x: auto;
}

.p-review-board__table {
  width: 100%;
  border-collapse: collapse;
}

.p-review-board__th {
  font-size: 16px;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .8;
  padding: 10px 10px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  white-space: nowrap;
}

.p-review-board__th--title {
  text-align: left;
}

.p-review-board__th--reply {
  text-align: right;
  width: 88px;
}

.p-review-board__th--last {
  text-align: right;
  width: 96px;
}

.p-review-board__tr:hover .p-review-board__td {
  background: #fcfcfc;
}

.p-review-board__td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.p-review-board__td--reply,
.p-review-board__td--last {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.p-review-board__thread-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
}

.p-review-board__thread-link:hover {
  text-decoration: underline;
}

/* ==============================
   ページャー
   ============================== */
.p-review-board__pager {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.p-review-board__pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}

.p-review-board__pager-btn:hover {
  background: #fafafa;
}

.p-review-board__pager-btn.is-disabled {
  opacity: .45;
  pointer-events: none;
}

.p-review-board__pager-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.p-review-board__pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}

.p-review-board__pager-num:hover {
  background: #fafafa;
}

.p-review-board__pager-num.is-current {
  font-weight: 700;
  border-color: #dcdcdc;
  background: #f3f3f3;
  pointer-events: none;
}

/* ==============================
   新規スレフォーム
   ============================== */
.p-review-board__form {
  display: block;
}

.p-review-board__field {
  margin: 0 0 12px;
}

.p-review-board__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.p-review-board__input,
.p-review-board__textarea {
  width: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
}

.p-review-board__textarea {
  min-height: 140px;
  resize: vertical;
}

.p-review-board__input:focus,
.p-review-board__textarea:focus {
  outline: none;
  border-color: #cfcfcf;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .04);
}

.p-review-board__actions {
  margin-top: 6px;
}

/* c-btn がテーマ側にある前提。幅だけ調整 */
.p-review-board__submit {
  min-width: 220px;
}

/* =========================================
   口コミ掲示板：新規書き込みボタン
========================================= */
.p-review-board__submit.c-btn {
  display: block;
  justify-content: center;
  min-width: 220px;
  height: 44px;
  padding: 0 18px;
  font-weight: 800;
  border-radius: 6px;
  background: #f39b15;
  color: #fff;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 0 auto;
}

/* hover */
.p-review-board__submit.c-btn:hover {
  background-color: #e68a00;
  border-color: #e68a00;
  color: #fff;
}

/* focus / active（念のため） */
.p-review-board__submit.c-btn:focus,
.p-review-board__submit.c-btn:active {
  background-color: #e68a00;
  border-color: #e68a00;
  color: #fff;
}




/* ==============================
   スレカード（下の展開）
   ============================== */
.p-review-board__threads {
  margin: 18px auto 0 auto;
  width: 98%;
}

.p-review-board__thread {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  margin: 16px 0;
}

/* タイトル帯 */
.p-review-board__thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f6f6f6;
  border-bottom: 1px solid #ededed;
}

.p-review-board__thread-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.p-review-board__thread-count {
  font-size: 12px;
  opacity: .8;
  white-space: nowrap;
}

.p-review-board__thread-body {
  padding: 14px;
}

.p-review-board__thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  opacity: .8;
  margin-bottom: 10px;
}

.p-review-board__meta-item {
  white-space: nowrap;
}

.p-review-board__thread-excerpt {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.75;
}

/* 最新レス枠 */
.p-review-board__latest {
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fafafa;
  padding: 12px 12px;
}

.p-review-board__latest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.p-review-board__latest-title {
  font-weight: 800;
  font-size: 13px;
}

.p-review-board__latest-link {
  font-size: 12px;
  text-decoration: none;
  opacity: .85;
}

.p-review-board__latest-link:hover {
  text-decoration: underline;
}

.p-review-board__latest-list {
  display: block;
}

.p-review-board__latest-item {
  padding: 10px 0;
  border-top: 1px solid #ececec;
}

.p-review-board__latest-item:first-child {
  border-top: none;
  padding-top: 0;
}

.p-review-board__latest-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  opacity: .85;
  margin-bottom: 6px;
}

.p-review-board__latest-author {
  font-weight: 800;
}

.p-review-board__latest-time {
  opacity: .85;
}

.p-review-board__latest-text {
  font-size: 14px;
  line-height: 1.6;
}

.p-review-board__latest-empty {
  font-size: 12px;
  opacity: .75;
}

/* 返信ボタン */
.p-review-board__thread-actions {
  text-align: center;
  margin-top: 12px;
}

.p-review-board__reply-btn {
  display: inline-block;
  min-width: 220px;
}

/* ==============================
   レスポンシブ
   ============================== */
@media (max-width: 640px) {
  .p-review-board__panel {
    padding: 14px 12px;
  }

  .p-review-board__thread-body {
    padding: 12px;
  }

  .p-review-board__pager-num {
    width: 34px;
    height: 34px;
  }

  .p-review-board__submit,
  .p-review-board__reply-btn {
    min-width: 100%;
  }

  /* テーブルは横スクロールに任せる */
}

/* =========================================
   掲示板（review-board / thread）ワイヤー風
   ========================================= */

/* 全体 */
.p-review-board {
  width:100%;
}

/* スレッドカード（一覧側） */
.p-review-board__thread {
  border: 1px solid #bdbdbd;
  background: #fff;
  margin: 18px 0;
  padding: 0;
}

/* タイトル帯（上のグレー） */
.p-review-board__thread>.p-review-board__thread-head,
.p-review-board__thread>div:first-child {
  background: #d9d9d9;
  border-bottom: 1px solid #bdbdbd;
  padding: 10px 14px;
  font-weight: 700;
}

/* スレッド本文エリア */
.p-review-board__thread-body {
  padding: 14px;
}

/* 返信するボタン（中央） */
.p-review-board__thread .c-btn {
  display: inline-block;
  min-width: 220px;
  text-align: center;
  background: #d9d9d9;
  border: 1px solid #bdbdbd;
  color: #111;
  padding: 12px 16px;
  border-radius: 0;
  box-shadow: none;
}

.p-review-board__thread .c-btn:hover {
  opacity: .9;
}

/* 「最新レス（最大5件）」みたいな内箱（今の実装の箱をワイヤー寄せ） */
.p-review-board__latest,
.p-review-board__thread .p-review-board__latest-replies,
.p-review-board__thread div[style*="background:#fafafa"] {
  background: #fff !important;
  border: 1px solid #bdbdbd !important;
  padding: 12px !important;
  margin-top: 14px !important;
}


/* reply form slide animation */
.rb-replyForm{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
  will-change: max-height, opacity, transform;
}

/* open */
.rb-replyForm.is-open{
  max-height: 1200px; /* 充分大きい値。内容が増えるなら上げてOK */
  opacity: 1;
  transform: translateY(0);
}

/* reduced motion 対応（一応） */
@media (prefers-reduced-motion: reduce){
  .rb-replyForm{
    transition: none;
  }
}



/* =========================================
   “ワイヤーの箱＋名前札” を汎用クラスで作る
   （スレ主・レスの両方に使える）
   ========================================= */

.rb-post {
  position: relative;
  border: 1px solid #bdbdbd;
  background: #fff;
  padding: 20px 14px 14px;
  margin: 18px 0;
}

.rb-post__name {
  position: absolute;
  top: -12px;
  left: 14px;
  display: inline-block;
  background: #fff;
  border: 1px solid #bdbdbd;
  padding: 6px 10px;
  min-width: 110px;
  text-align: center;
  font-weight: 700;
}

.rb-post__text {
  line-height: 1.8;
  word-break: break-word;
}

/* 返信（コメント）リストを “縦に増える箱” に */
.rb-replies {
  margin-top: 18px;
}

/* =========================================
   review_thread のコメント（WP標準HTML）をワイヤー化
   ※テーマによってHTMLが違うので「だいたい効く」当て方にしてる
   ========================================= */

/* コメントの親枠 */
.p-thread .comment,
.single-review_thread .comment,
.post-type-review_thread .comment,
.p-review-thread .comment {
  position: relative;
  border: 1px solid #bdbdbd;
  background: #fff;
  padding: 20px 14px 14px;
  margin: 18px 0;
  list-style: none;
}

/* ネスト表示されても “内側に入れ子” に見えないように */
.p-thread .comment .children,
.single-review_thread .comment .children {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

/* コメント作者名を “名前札” に見せる（WP標準の .comment-author を利用） */
.p-thread .comment .comment-author,
.single-review_thread .comment .comment-author,
.post-type-review_thread .comment .comment-author {
  position: absolute;
  top: -12px;
  left: 14px;
  background: #fff;
  border: 1px solid #bdbdbd;
  padding: 6px 10px;
  min-width: 110px;
  text-align: center;
  font-weight: 700;
  margin: 0;
}

/* 日付やメタを薄く */
.p-thread .comment .comment-meta,
.single-review_thread .comment .comment-meta {
  font-size: 12px;
  opacity: .7;
  margin: 8px 0 0;
}

/* コメント本文 */
.p-thread .comment .comment-content,
.single-review_thread .comment .comment-content {
  margin-top: 10px;
  line-height: 1.8;
  word-break: break-word;
}

/* 返信リンクとかの位置 */
.p-thread .comment .reply,
.single-review_thread .comment .reply {
  margin-top: 10px;
}


/* ==============================================================================
   口コミ掲示板（添付画像の完成デザイン寄せ）
   - review-board.php（一覧＋スレ展開）
   - single-review_thread.php（スレ詳細）
============================================================================= */

/* タブ */
.rb-tabs {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 14px;
}

.rb-tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid #d6d6d6;
  background: #fff;
  color: #111;
}

.rb-tabs__tab:hover {
  opacity: .9;
}

.rb-tabs__tab.is-current {
  background: #f39b15;
  border-color: #f39b15;
  color: #fff;
}

/* 一覧パネル：画像っぽい薄オレンジ */
.p-review-board__panel--list {
  border-radius: 0;
}

.p-review-board__table .p-review-board__th {
  background: #f39b15;
  color: #fff;
  opacity: 1;
  border-bottom: 0;
}

.p-review-board__table tbody tr:nth-child(odd) .p-review-board__td {
  background: #fffdf9;
}

.p-review-board__table tbody tr:nth-child(even) .p-review-board__td {
  background: #fff1da;
}

.p-review-board__thread-link {
  font-weight: 800;
}

/* ページャー（下の「<< 1 2 3 >>」風） */
.p-review-board__pager {
  gap: 6px;
}
.p-review-board__pager-btn,
.p-review-board__pager-num {
  border-radius: 0;
  border-color: #d6d6d6;
  background: #fff;
}
.p-review-board__pager-num.is-current {
  background: #f39b15;
  border-color: #f39b15;
  color: #fff;
}

/* 「新規スレッドを立てる」ボタン */
.rb-newThread {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.rb-newThread__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  background: #f39b15;
  color: #fff;
  border-radius: 6px;
}

.rb-newThread__btn:hover {
  opacity: .9;
}

/* スレッド（展開） */
.rb-thread {
  border: 1px solid #d6d6d6;
  background: #fff;
  margin: 18px 0 26px;
}

.rb-thread header{
  background-color: var(--orange);
  padding:10px;
}

.rb-thread__head {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 20px;
}

.rb-thread__title {
  font-size: 20px;
}

.rb-thread__meta {
  font-size: 14px;
}

.rb-thread__date {
  font-size: 16px;
}

.rb-thread__body {
  padding: 14px 12px 18px;
}

/* メッセージ（アイコン＋吹き出し） */
.rb-msg {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
  margin: 14px 0;
}

/* アイコンの右側は「名前行 → 吹き出し」の縦積み（カンプ通り） */


.rb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #cfcfcf;
}

.rb-bubble {
  position: relative;
  border-radius: 10px;
  padding: 12px 12px 10px;
  border: 1px solid #d6d6d6;
}

.rb-msg--owner .rb-bubble {
  background: #fff2bf;
  border-color: #ead79b;
}

.rb-msg--reply .rb-bubble {
  background: #ededed;
}

.rb-bubble:before {
  content: "";
  position: absolute;
  left: 2px;
  top: -10px;
  border-width: 10px 10px 0px 10px;
  border-style: solid;
  border-color: transparent;
}

.rb-msg--owner .rb-bubble:before {
  border-right-color: #fff2bf;
}

.rb-msg--reply .rb-bubble:before {
  border-right-color: #ededed;
}

.rb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 10px;
  background: #f39b15;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  border-radius: 4px;
}

.rb-name {
  font-weight: 800;
  color:red;
}

.rb-bubble__text {
  font-size: 14px;
  line-height: 1.8;
}

.rb-thread__actions {
  margin-top: 16px;
  text-align: center;
}

.rb-btn,
input.rb-btn,
button.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 44px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 6px;
  background: #f39b15;
  color: #fff;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.rb-btn:hover {
  opacity: .9;
}




/* 掲示板（kuchikomi）一覧ページ：同一ページ内返信フォーム */
.rb-replyForm {
  margin: 14px auto 0;
  max-width: 720px;
  padding: 14px;
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fff;
}

.rb-replyForm .comment-form-author label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

/* ================================
   口コミ（review）投稿フォームの見やすさ改善
   - タイトル入力の「枠」が無い問題
   - 送信ボタンをオレンジに統一
   ================================ */

/* タイトル／名前などの input が border:none なので枠を付ける */
.p-review-comments__item-text,
.p-review-comments__item-textarea {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
}

/* 送信ボタン（reviewフォーム）をオレンジに */
.p-review-comments__item__submit-button.c-button {
  background: #f39b15;
  border: none;
  color: #fff;
  font-weight: 800;
  border-radius: 6px;
}

.p-review-comments__item__submit-button.c-button:hover {
  opacity: .9;
}

/* 掲示板返信フォーム内の textarea を少し見やすく */
.rb-replyForm textarea#comment {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
}

.rb-replyForm .comment-form-author input,
.rb-replyForm textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.rb-replyForm textarea {
  min-height: 140px;
}

.rb-replyForm .form-submit {
  margin-top: 10px;
  text-align: center;
}

.rb-replyForm .form-submit input[type="submit"],
.rb-replyForm .form-submit button[type="submit"] {
  cursor: pointer;
}

/* スレッド詳細ページも同じ見た目 */
.p-thread {
  max-width: 820px;
  margin: 0 auto;
}

.p-thread__title {
  background: #f39b15;
  color: #fff;
  padding: 12px;
  font-weight: 800;
  margin: 0 0 14px;
}

.p-thread__back {
  display: inline-block;
  margin: 8px 0 0;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 640px) {
  .rb-tabs {
    justify-content: space-between;
  }
  .rb-tabs__tab {
    min-width: 0;
    flex: 1;
  }
  .rb-msg {
    grid-template-columns: 38px 1fr;
  }
  .rb-avatar {
    width: 38px;
    height: 38px;
  }
  .rb-btn {
    min-width: 50%;
  }
}




/*================================================================================================
================================================================================================
フロントページ
================================================================================================
================================================================================================*/
.home-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  height: 70vh;
}

.home-hero__bg {
  background-image: url('img/Top_gray.jpg');
  background-size: cover;
  background-position: center;
}




.home-hero__content {
  inset: 0;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.home-hero__catch {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.home-hero__title {
  position: absolute;
  margin: 0;
  top: 10vh;
  left: 8vw;
}

.home-hero__title_letter {
  font-size: 40px;
  color: #fff;
  line-height: 2.5;
  font-weight: 800;
}

.home-hero__title_letter span {
  font-size: 50px;
}

@media (max-width: 1300px) {
  .home-hero__title {
    position: absolute;
    margin: 0;
    left: 2vw;
  }

  .home-hero__title_letter {
    font-size: 27px;
    color: #fff;
    line-height: 2.5;
    font-weight: 800;
  }

  .home-hero__title_letter span {
    font-size: 35px;
  }

}

.home-hero__logo {}

.home-hero__logo img {
  width: 260px;
  height: auto;
  display: block;
}

.home-search {
  display: flex;
  width: 600px;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.home-search__input {
  width: 80%;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  box-sizing: border-box;
}

.home-search__btn {
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  width: 20%;
  margin-left: 20px;
}


@media (max-width: 700px) {
  .home-hero__bg {
    height: 300px;
    background-position: right;
  }

  .home-hero__title {
    margin: 0;
    top: 10vh;
    left: 5vw;
  }

  .home-hero__title_letter span {
    font-size: 25px;
  }

  .home-hero__title_letter {
    font-size: 17px;
    color: #fff;
    line-height: 1.5;
    font-weight: 800;
  }

  .home-hero__title img {
    max-width: 70%;
    min-width: 280px;
    height: auto;
    vertical-align: bottom;

  }

  .home-search {
    width: 80%;
    bottom: 5%;
  }

  .home-search__input {
    height: 30px;
  }

  .home-search__btn {
    height: inherit;
  }
}


/* Section Head */
.c-sectionHead {
  font-family: zen maru gothic;
}

.c-sectionHead img {
  width: 70px;
}

.c-sectionHead__kuchikomirank {
  margin: 20px 0 40px 0;
  font-size: 35px;
  font-weight: 800;
  text-align: center;
}

.c-sectionHead__title {
  margin: 20px 0 40px 0;
  font-size: 35px;
  font-weight: 800;
  text-align: center;
}

.c-sectionHead--center {
  text-align: center;
}

.c-sectionHead__eyebrow {
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 6px;
  font-family: 'Zen Maru Gothic';
}

/* Ranking */
.home-ranking {
  background-image: url('img/mokume.jpg');
  padding: 20px;
}

.home-rankingGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.c-sectionHead {
  text-align: center;
}

.rank-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  padding: 20px;
  align-items: center;
}

.rank-card-link {
  display: block;
}

.rank-card__thumb {
  aspect-ratio: 16/10;
  width: 45%;
}

.rank-card__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.rank-card__meta {
  padding: 10px;
  margin: 0 auto;
}

.rank-card__label {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  color: var(--chocolate);
}

.rank-card__sub {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  color: var(--chocolate);
  opacity: 0.7;
}



.rank-card__btn {
  display: block;
  padding: 12px 12px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  margin: 0 auto;
  text-align: center;
  width: 120px;
}


@media (max-width: 1150px) {
  .home-rankingGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .home-rankingGrid {
    grid-template-columns: 1fr;
  }
}


/* fpコンテンツ */

.fp_content_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.fp_content_h3 {
  background: var(--usuichocolate);
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: Zen Maru Gothic;
  font-weight: bold;
}

.home-steps {
  margin-top: 24px;
  padding: 18px 0 30px;
}


.step-card__head {
  background: #3b2f2a;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 10px;
  font-family: Zen Maru Gothic;
}

.step-card__badge {
  background: rgba(255, 255, 255, .18);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .02em;
  font-family: Zen Maru Gothic;
}

.step-card__title {
  font-weight: 900;
  font-family: Zen Maru Gothic;
}

.step-card__body {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  padding: 16px;
}

.step-card__text p {
  margin: 0 0 6px;
  line-height: 1.7;
}

.step-card__spacer {
  margin-top: 10px;
}


.text_link {
  text-decoration: underline;
  font-weight: 700;
  margin: 1em 0;
  display: block;
}


.step-card__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid #eee;
}

.step-card__cta {
  margin: 40px auto;
  text-align: center;
}

.c-ctaBtn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}


/* 家づくりのコツ */

.iedukuri_kotsu {
  background-color: #E5E4E3;
  padding-top: 30px;
}

/* fp_家づくりの座学 */

.fp_zagaku {
  background-color: #EAE3D9;
  padding: 30px 0 70px 0;
}

.fp_zagaku .c-sectionHead__title img {
  width: 100px;
}

.zagaku_sub {
  margin: -20px 0 30px;
  font-size: 1.2em;
}

.fp_zagaku_list {
  display: flex;
  border-bottom: 2px dashed var(--chocolate);
  padding: 20px 5px 20px 5px;
  align-items: center;
  font-size: 24px;
  width: 100%;
}

.fp_zagaku_list_top {
  border-top: 2px dashed var(--chocolate);
}



.fp_zagaku_list dt {
  padding: 10px;
  background-color: var(--chocolate);
  color: #fff;
  border-radius: 10px;
  margin: 0 30px 0 10px;
  min-width: 85px;
}

/*リンクの矢印*/
.arrow_r_b {
  position: relative;
  display: block;
  padding-right: 32px;
  width: 100%;
}

.arrow_r_b:before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--chocolate);
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.arrow_r_b:after {
  content: '';
  width: 6px;
  height: 6px;
  border: 0;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  right: 7px;
  bottom: 0;
  margin: auto;
  transition: right .15s ease;
}

.arrow_r_b:hover:after {
  right: 5px;
}

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

  .fp_zagaku_list {
    border-bottom: 2px dashed var(--chocolate);
    padding: 15px;
    font-size: 18px;
  }

  .fp_zagaku_list dt {
    padding: 10px;
    margin: 0 15px 0 0;
    font-size: 15px;
    min-width: 60px;
  }

}



/***********************************
fp_やってよかった・やらなきゃよかった
***********************************/


.fp_after_build_contents {
  display: flex;
  gap: 20px;
}

.fp_after_build_contents_top {
  display: flex;
  align-items: center;
  border-radius: 15px 15px 0 0;
  padding: 10px;
}

.yattokyayokatta {
  background-color: #5D4943;
}

.yatteyokatta {
  background-color: var(--orange);
}

.fp_after_build_contents_top img {
  display: block;
  width: 30%;
}

.fp_after_build_contents_top p {
  color: #fff;
  font-weight: bold;
  font-size: 24px;
}

.fp_after_build_contents_body {
  padding: 15px;
}

.yattokyayokatta_body {
  background-color: #E5E4E3;
}

.yatteyokatta_body .arrow_r_b:before {
  background-color: var(--orange);
}

.yatteyokatta_body {
  background-color: #FCE5BF;
}

.fp_after_build_contents_body li {
  border-bottom: 2px dashed var(--chocolate);
  font-size: 18px;
  padding: 15px;
}

.fp_after_build_contents_foot {
  text-align: center;
  height: 40px;
  border-radius: 0 0 7px 7px;
}

.fp_after_build_contents_foot a {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: block;
  padding: 9px;
}

@media screen and (max-width: 767px) {
  .fp_after_build_contents {
    display: block;
    margin-top: 20px;
  }

  .fp_after_build_contents_2 {
    margin-top: 50px;
  }
}



/*fp編集部コラム*/
.fp_column {
  padding: 20px;
  margin-top: 50px;
}




/* ===== reset & layout ===== */
.fp_column_box {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  margin: -14px;
}

.fp_column_box__item {
  width: 33.3333%;
  padding: 14px;
  box-sizing: border-box;
}

@media (max-width:980px) {
  .fp_column_box__item {
    width: 50%;
  }
}

@media (max-width:640px) {
  .fp_column_box__item {
    width: 100%;
  }
}

/* ===== card ===== */
.fp_column_box__card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 全面クリック用リンク（背面） */
.fp_column_box__overlayLink {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 内部の実リンクは前面に */
.fp_column_box__card a:not(.fp_column_box__overlayLink) {
  position: relative;
  z-index: 2;
}

/* image */
.fp_column_box__thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f2f2f2;
}

.fp_column_box__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s ease;
}

.fp_column_box__card:hover .fp_column_box__img {
  transform: scale(1.05);
}

/* body */
.fp_column_box__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* label */
.fp_column_box__label {
  font-size: 12px;
  background: #efefefef;
  color: var(--chocolate);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 12px;
  align-self: flex-start;
}

/* title */
.fp_column_box__title {
  font-size: 18px;
  margin: 0 0 10px;
}

.fp_column_box__title a {
  color: #111;
  text-decoration: none;
}

/* excerpt */
.fp_column_box__excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0, 0, 0, .75);
  margin-bottom: 14px;
}

/* meta */
.fp_column_box__meta {
  font-size: 12px;
  color: rgba(0, 0, 0, .5);
  margin-bottom: 16px;
}

/* CTA */
.fp_column_box__cta {
  margin-top: auto;
  text-align: right;
}

/* button */
.fp_column_box__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .15);
  text-decoration: none;
  color: #111;
  font-weight: 700;
  background: #fff;
}

.fp_column_box__btn:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  transform: translateY(-1px);
}

.fp_column_more {
  margin-top: 32px;
  text-align: center;
}

.fp_column_more__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--chocolate);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: .2s ease;
}

.fp_column_more__btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
}




/* ==============================
   サイドバー
   ============================== */

/* Sidebar */
.site-sidebar {
  width: 220px;
  flex: 0 0 220px;
  background: #fff;
}

.site-sidebar__inner {
  background: #fff;
  padding: 14px;
}

.site-sidebar__logo {
  display: block;
  text-align: center;
  margin-bottom: 12px;
}

.site-sidebar__logo img {
  width: 140px;
  height: auto;
}

.site-side-nav {
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}

.site-side-nav__item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 6px 8px;
  border-radius: 6px;
}

.site-side-nav__item:hover {
  background: #f7f7f7;
}

.site-side-nav__item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.site-sidebar__block {
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 12px;
}

.site-sidebar__blockTitle {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.site-sidebar__blockTitle--big {
  font-size: 14px;
}

/* ==========================================================
   Sidebar drawer (mobile) - CSS only
   - Toggle is implemented in template-parts/site-sidebar.php
   ========================================================== */

/* Hide drawer controls on desktop */
.site-sidebarDrawer__check,
.site-sidebarDrawer__btn,
.site-sidebarDrawer__backdrop,
.site-sidebarDrawer__close {
  display: none;
}




@media (max-width: 980px) {
  .site-sidebarDrawer__check {
    display: block;
    position: absolute;
    /* keep it out of the flow / invisible but focusable by label */
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .site-sidebarDrawer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 10001;
    cursor: pointer;
  }

  /* Hamburger icon */
  .site-sidebarDrawer__icon {
    position: relative;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 999px;
  }

  .site-sidebarDrawer__icon::before,
  .site-sidebarDrawer__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 999px;
  }

  .site-sidebarDrawer__icon::before {
    top: -7px;
  }

  .site-sidebarDrawer__icon::after {
    top: 7px;
  }

  /* Backdrop */
  .site-sidebarDrawer__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    z-index: 10000;
  }

  /* Drawer body */
  .site-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 320px);
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    z-index: 10002;
    box-shadow: 12px 0 28px rgba(0, 0, 0, 0.18);
  }

  /* Close button inside drawer */
  .site-sidebarDrawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    cursor: pointer;
    float: right;
  }

  /* Open state */
  .site-sidebarDrawer__check:checked~.site-sidebarDrawer__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .site-sidebarDrawer__check:checked~.site-sidebar {
    transform: translateX(0);
  }

  /* When open, turn hamburger into "X" */
  .site-sidebarDrawer__check:checked~.site-sidebarDrawer__btn .site-sidebarDrawer__icon {
    background: transparent;
  }

  .site-sidebarDrawer__check:checked~.site-sidebarDrawer__btn .site-sidebarDrawer__icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-sidebarDrawer__check:checked~.site-sidebarDrawer__btn .site-sidebarDrawer__icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .step-card__body {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {

  .site-sidebar {
    position: relative;
    /* 念のため */
  }

  /* 追従本体 */
  .site-sidebar__inner {
    position: sticky;
    top: 24px;
    /* 固定ヘッダーがあるなら 80px などに上げる */
  }
}


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

.site_footer {
  background: var(--chocolate);
  color: #fff;
  padding: 60px 20px 40px;
  position: relative;
  margin-top: 100px;
}

.site_footer a {
  color: #fff;
  text-decoration: none;
}

.site_footer a:hover {
  text-decoration: underline;
}

.footer_cotainer {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.footer_box1 {
  display: flex;
  justify-content: space-between;
}

.footer_box1 img {
  max-width: 120px;
  height: auto;
  display: block;
}

.footer_cta {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
  align-items: center;
}


.footer_balloon {
  background: #fff;
  color: #f39800;
  padding: 20px 30px;
  border-radius: 16px;
  font-size: 23px;
  font-weight: bold;
  position: relative;
  max-width: 420px;
  line-height: 1.6;
  font-family: Zen Maru Gothic;
}

.footer_balloon:after {
  content: "";
  position: absolute;
  right: -30px;
  top: 40%;
  border-width: 10px 0px 10px 30px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

.footer_cta_btn {
  width: 250px;
  height: 250px;
  background: #f39800;
  border-radius: 50%;
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-left: 40px;
}

.footer_cta_btn a {
  color: #fff;
  font-weight: bold;
  font-size: 28px;
  line-height: 1.4;
}

/* 4-column layout */
.footer_menu {
  display: flex;
}

.footer_menu img {
  display: block;
  width: 150px;
}

.footer_menu_col {
  flex: 1 1 220px;
  min-width: 220px;
  margin-left: 50px;
}

/* menu inside each column */
.footer_menu_row {
  font-size: 16px;
  margin: 0;
  padding: 0;
}

.footer_menu_row li {
  list-style: none;
  position: relative;
  padding-left: 16px;
}

.footer_menu_row li:before {
  content: "|";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.6);
}

.all_right_reserved {
  text-align: center;
  color: #fff;
  background-color: var(--chocolate);
  padding: 15px 0;
}


/* responsive */
@media (max-width: 768px) {

  .footer_cta {
    margin-bottom: 50px;
  }

  .footer_cta_btn {
    width: 150px;
    height: 150px;
    margin-left: 40px;
  }

  .footer_cta_btn a {
    font-size: 18px;
  }

}

@media (max-width: 640px) {
  .site_footer {
    padding: 60px 10px 40px;
  }

  .footer_cta_btn {
    width: 100px;
    height: 100px;
    margin-left: 20px;
  }

  .footer_cta_btn a {
    font-size: 14px;
  }


  .footer_balloon {
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    max-width: 320px;
  }

  .footer_balloon:after {
    content: "";
    position: absolute;
    right: -30px;
    top: 40%;
    border-width: 10px 0px 10px 30px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
  }
}
/* 返信フォーム：×ボタン */
.rb-replyForm {
  position: relative;
}

.rb-replyForm__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
  font-size: 20px;
  line-height: 28px;
  cursor: pointer;
}

.rb-field {
  margin-top: 12px;
}

.rb-label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.rb-input,
.rb-textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}

.rb-textarea {
  min-height: 140px;
}

.rb-actions {
  margin-top: 12px;
  text-align: center;
}

.rb-btn--orange {
  background: #f39b15;
  color: #fff;
  border: none;
}

/* トースト（送信完了メッセージ） */
.rb-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-weight: 800;
  z-index: 99999;
  transition: opacity .2s ease, transform .2s ease;
}

.rb-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 投稿注意点 */
.rb-notes {
  max-width: 820px;
  margin: 22px auto 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #f0d5a6;
  background: #fff7e6;
}

.rb-notes__title {
  margin: 0 0 10px;
  font-weight: 900;
  color: #c45500;
}

.rb-notes__list {
  margin: 0;
  padding-left: 1.2em;
}

.rb-notes__list li {
  margin: 6px 0;
}


/* =========================================
   掲示板：アバター選択UI
========================================= */
.rb-avatar{
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background-color: #d9d9d9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex: 0 0 auto;
}

.rb-avatarPicker{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 6px;
}

.rb-avatarPicker__item{
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.rb-avatarPicker__item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}

.rb-avatarPicker__item.is-selected{
  outline: 2px solid #f39b15;
  outline-offset: 2px;
}



/* =========================================================
   アバター表（テーブルUI）
========================================================= */
.rb-avatarPanel{
  max-height: 400px;
  overflow: auto;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.rb-avatarSection + .rb-avatarSection{
  margin-top: 12px;
}

.rb-avatarSection__head{
  font-weight: 800;
  margin: 2px 0 8px;
}

.rb-avatarTable{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
}

.rb-avatarTable__th,
.rb-avatarTable__rowhead,
.rb-avatarTable__td{
  border-top: 1px solid #f0f0f0;
  border-left: 1px solid #f0f0f0;
  padding: 1px;
  text-align: center;
  vertical-align: middle;
}

.rb-avatarTable tr > *:last-child{
  border-right: 1px solid #f0f0f0;
}
.rb-avatarTable tbody tr:last-child > *{
  border-bottom: 1px solid #f0f0f0;
}

.rb-avatarTable__th--type{
  width: 64px;
}

.rb-avatarTable__rowhead{
  font-weight: 700;
  background: #fafafa;
}

.rb-avatarTable__item{
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  cursor: pointer;

  /* ブラウザの黒枠（focus ring）対策：見た目はオレンジで統一 */
  outline: none;
}

.rb-avatarTable__item:focus-visible{
  outline: 2px solid #f39b15;
  outline-offset: 2px;
}

.rb-avatarTable__item img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.rb-avatarTable__item.is-selected{
  outline: 2px solid #f39b15;
  outline-offset: 2px;
}

.rb-avatarTable__placeholder{
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px dashed #e0e0e0;
  background: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,0.03),
    rgba(0,0,0,0.03) 6px,
    rgba(0,0,0,0.00) 6px,
    rgba(0,0,0,0.00) 12px
  );
}

/* 返信フォーム内で横が厳しい時は縮める */
@media (max-width: 680px){
  .rb-avatarTable{font-size:12px;}
  .rb-avatarPanel{ padding: 8px; }
  .rb-avatarTable__th--type{ width: 56px; }
  .rb-avatarTable__item,
  .rb-avatarTable__placeholder{ width: 40px; height: 40px; }
}

@media (max-width: 480px){
  .rb-avatarPanel{ padding: 4px; }
  .rb-avatarTable__th--type{ width: 30px; }
  .rb-avatarTable__item,
  .rb-avatarTable__placeholder{ width: 40px; height: 40px; }
  .rb-avatarModal__panel{width:100%;}
  .rb-avatarTable__item.is-selected{
    outline: 1px solid #f39b15;
    outline-offset: 0px;
  }
}



/* =========================================================
 * 掲示板：アバター選択（価格.com風）
========================================================= */
.rb-avatarSelector__bar{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rb-avatarSelector__preview{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.rb-avatarSelector__preview img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.rb-avatarSelector__previewPlaceholder{
  width: 100%;
  height: 100%;
  display: block;
  background: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,0.03),
    rgba(0,0,0,0.03) 6px,
    rgba(0,0,0,0.00) 6px,
    rgba(0,0,0,0.00) 12px
  );
}

.rb-avatarSelector__open{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
  color: blue;
  text-decoration: underline;
}

.rb-avatarSelector__open:hover{
  text-decoration: underline;
}

.rb-avatarSelector__controls{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rb-avatarSelector__control{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.rb-avatarSelector__controlLabel{
  font-weight: 700;
}

.rb-avatarSelector__select{
  height: 34px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

/* モーダル */
.rb-avatarModal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.rb-avatarModal.is-open{
  display: block;
}

.rb-avatarModal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  border: none;
  padding: 0;
}

.rb-avatarModal__panel{
  position: relative;
  width: min(980px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  margin: 12px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rb-avatarModal__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.rb-avatarModal__title{
  font-weight: 800;
}

.rb-avatarModal__close{
  width: 34px;
  height: 34px;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.rb-avatarModal__body{
  padding: 10px;
  overflow: auto;
}

@media (max-width: 680px){
  .rb-avatarSelector__controls{ gap: 8px; }
  .rb-avatarSelector__select{ height: 32px; }
  .rb-avatarModal__head{    
    padding: 10px 12px 10px 70px;
}
}

/* ==============================================================================
   価格.com 風：性能レビューまとめ（★） + 坪単価 + 総合評価
============================================================================== */
.p-reviewSummary{
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 18px 16px;
  margin: 14px 0 10px;
  background: #fff;
  justify-content: center;
}

.p-reviewSummary__left{
  margin-right: 50px;
}

.p-reviewSummary__title{
  font-weight:700;
  margin-bottom:10px;
}

.p-reviewSummary__title a{
  color:var(--tcd-review-star-color);
  text-decoration: underline;
}

.p-reviewSummary__row{
  display: grid;
  grid-template-columns: 100px 100px 50px;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid #eee;
}
.p-reviewSummary__row:first-of-type{
  border-top:none;
}

.p-reviewSummary__label{
  font-size:16px;
}

.p-reviewSummary__stars{
  font-size: 22px;
  letter-spacing: 1px;
}

.p-reviewSummary__score{
  font-size:16px;
  text-align:right;
  white-space:nowrap;
}

.p-reviewSummary__right{
  width: 220px;
  flex: 0 0 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 50px;
}

.p-reviewSummary__price{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  padding:10px 12px;
  border:1px solid #eee;
  background:#fafafa;
}

.p-reviewSummary__priceLabel{
  font-size:16px;
  color:var(--chocolate);
  font-weight:700;
}

.p-reviewSummary__priceValue{
  font-size: 24px;
  font-weight: 800;
  color: orangered;
}

.p-reviewSummary__overall{
  padding:10px 12px;
  border:1px solid #eee;
  background:#fafafa;
}

.p-reviewSummary__overallStar{
  font-size:26px;
  line-height:1.2;
  margin-bottom:4px;
  color:var(--tcd-review-star-color);
}

.p-reviewSummary__overallValue{
  font-size:16px;
  font-weight:800;
}

.p-reviewSummary__overallCount{
  font-size:16px;
  font-weight:700;
  color:var(--chocolate);
  margin-left:6px;
}

.p-reviewSummary__overallCount a{
  color:var(--tcd-review-star-color);
  text-decoration: underline;
}

.p-reviewSummary__overallNum{
  font-size:26px;
}

@media (max-width: 800px){
  .p-reviewSummary{
    flex-direction:column;
  }

  .p-reviewSummary__left{
    width:100%;
    text-align: center;
  }

  .p-reviewSummary__right{
    width: 100%;
    flex: 0 0;
    text-align: center;
    margin: 10px 0;
  }
  .p-reviewSummary__row{
    grid-template-columns: 1fr 1fr 1fr;
  }

  .p-reviewSummary__score{
    text-align: center;
  }

  .p-reviewSummary__stars{
    text-align: center;
  }

  .p-reviewSummary__label{
    text-align: center;
  }
}
