/*
Theme Name: reviewSiteSummary
Theme URI: https://deferred-payment.com/
Author: deferred-payment supporter
Description: レビューサイト用のWordPressテーマです。
Version: 1.0
*/
.textUnderColorYellow {
	background:linear-gradient(transparent 70%, #FFFF00 0%);
}


.recommend__tab {
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  background: #f8f8f8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.recommend__tab:hover {
  background: #e0e0e0;
}
.recommend__tab.active {
  background: #0054a6;
  color: #fff;
  box-shadow: 0 3px 6px rgba(0,84,166,0.3);
}

.thumb-fixed {
  width: 130px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* これでズームトリミング */
  border-radius: 6px;
  display: block;
}

.recommend__post {
  height: 130px; /* 必ず固定！ここで揃う */
  align-items: center;
  display: flex;
}


@media screen and (max-width: 768px) {
  .recommend__post {
    height: auto !important;       /* 固定高さを解除 */
    padding: 10px;                 /* 内側余白調整（必要に応じて） */
    align-items: flex-start;       /* 上詰めにする場合 */
    flex-direction: row;           /* 横並び（そのままでOKなら不要） */
  }

  .recommend__tab {
    font-size: 13px;
    padding: 6px 12px;
  }

  .recommend__post h3 {
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    overflow: visible;
    display: block;
  }

  .recommend__post p {
    font-size: 13px;
    line-height: 1.5;
  }

  .thumb-fixed {
    width: 110px;         /* 少し小さめに調整可能（任意） */
    height: 85px;
  }

  .thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}



/* 通常は下線なし */
a.under-line {
  text-decoration: none;
  color: #fff;
}
/* ホバー時・フォーカス時だけ下線 */

a.under-line:hover,
a.under-line:focus {
  text-decoration: underline;
}



@media (max-width: 800px) {
  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.3fr;
    grid-template-rows: auto auto;
    gap: 1vw !important;
    padding-left: 2vw !important;
    padding-right: 2vw !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    justify-content: unset !important;
    align-items: unset !important;
  }
  .footer-grid > ul {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .footer-grid > ul:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
  .footer-grid > ul:nth-child(2) { grid-column: 2 / 3; grid-row: 1; }
  .footer-grid > ul:nth-child(3) { grid-column: 1 / 3; grid-row: 2; margin-top: 20px !important; padding-bottom: 30px!important;}
}

/* スマホのハンバーガーメニューが他要素より前に出るように */
@media (max-width: 991.98px) {
  /* ヘッダー全体の高さを広げる */
  #my-header.navbar {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    min-height: 80px !important; /* デフォルト56px→72pxへ広げる */
  }

  /* 開いたメニューの位置も調整 */
  #my-header .navbar-collapse {
    position: fixed !important;
    top: 72px !important;  /* ヘッダーの高さに合わせる */
    left: 0 !important;
    width: 100% !important;
    background: #09559c !important;
    z-index: 1500 !important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding-bottom: 20px;
  }

  /* ハンバーガーボタンは最前面 */
  #my-header .navbar-toggler {
    z-index: 2000 !important;
  }

  /* ロゴの位置 */
  #my-header .navbar-brand {
    margin: 0;
    display: flex;
    align-items: center;
  }

  /* コンテナの左右余白 */
  #my-header .container-fluid {
    padding-left: 0 !important;
    padding-right: 8px !important;
  }

  /* collapseの競合打ち消し */
  .navbar.fixed-top + .collapse {
    all: unset !important;
  }

  /* ダミー余白の高さも合わせる */
  #header-dummy-space {
    height: 80px !important;
  }
}

/* fvページ用のダミー余白（スマホ） */
@media (max-width: 600px) {
  body.fv-page #header-dummy-space {
    height: 80px !important; /* 上の高さに合わせる */
  }
}

/* PC用 左の余白調整 */
#my-header .container-fluid {
  padding-left: 0;
}
