/*
Theme Name: seibu-theme
Theme URI: https://www.seibu1969.com/
Author: seibuzidousya
Author URI: https://www.seibu1969.com/
Description: 西部自動車の公式テーマ（固定トップページ + お客様の声 + 新着情報）
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seibu-theme
*/

/* ========== リセット ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:"ヒラギノ角ゴ Pro","ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
/*  font-family:'Zen Kaku Gothic New', sans-serif;*/
  background-color: #D7E1E7;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6, .section-title, .page-title {
  font-family: sans-serif;
}
/* ========== 共通レイアウト ========== */
.container {
  width: 70%;
  margin: 0 auto;
  
}

.hidden {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* ========== ローディング ========== */

.loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  z-index: 9999;
  gap: 20px;
  font-family: system-ui, sans-serif;
  transition: opacity 0.6s ease; /* フェードアウト用 */
}

.tire {
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.bar {
  width: 300px;
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #e60012;
  width: 0;
  transition: width 0.2s;
}

.label {
  font-size: 14px;
  color: #333;
}

/* ========== ヘッダー ========== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.header-top {
  background: #e60021;
  color: #fff;
  font-size: 14px;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
}
.header-top.hidden {
  display: none;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.logo img {
  height: 40px;
}
.nav-pc {
  display: flex;
}
.nav-pc ul {
  display: flex;
  gap: 30px;
}
.nav-pc li a {
  font-size: 15px;
  color: #333;
}

/* ========== ハンバーガーアイコン ========== */
.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
}

/* 3本線の位置 */
.hamburger span{
  top:50%;
  transform:translateY(-50%);
}
.hamburger span::before{
  top:-8px;
}
.hamburger span::after{
  top:8px;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after{
  position:absolute;
  left:0;
  right:0;
  height:3px;
  background:#333;
  border-radius:2px;
  content:"";
  transition:transform .3s ease, top .3s ease, opacity .3s ease, background-color .3s ease;
}

/* チェック時に × へ */
.nav-toggle:checked + .hamburger span{
  background-color:transparent;     /* 真ん中線を消す */
}
.nav-toggle:checked + .hamburger span::before{
  top:0;
  transform:rotate(45deg);
}
.nav-toggle:checked + .hamburger span::after{
  top:0;
  transform:rotate(-45deg);
}

.hamburger span {
  background: #333;
}

/* ========== SPメニュー展開エリア ========== */
.nav-sp {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f8f8f8;
  width: 100%;
  padding: 20px;
  z-index: 999;
}

/* チェックされたときに表示 */
.nav-toggle:checked + .hamburger + .nav-sp {
  display: block;
}

/* ========== SP上部の2ボタン ========== */
.sp-contact-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.sp-contact-buttons .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  gap: 8px;
}

.sp-contact-buttons .btn img {
  width: 20px;
  height: auto;
}

.btn-red {
  background-color: #e6002d;
}

.btn-dark {
  background-color: #1c2237;
}

/* ========== SPメニュー本体 ========== */
.sp-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-menu li {
  border-bottom: 1px solid #ccc;
  padding: 12px 0;
}

.sp-menu li a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: bold;
  display: block;
}

.sp-menu li ul {
  padding-left: 20px;
  background-color: #f0f0f0;
}

.sp-menu li ul li {
  padding: 10px 0;
  border-bottom: none;
}

.sp-menu li ul li a {
  font-weight: normal;
  font-size: 14px;
}

/* ========== セクション見出し ========== */
.section-heading {
  text-align: left;
  margin-bottom: 20px;
  background-color: #D7E1E7;
}
.section-title {
  font-size: 40px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #1e1e1e;
}
.section-subtitle {
  font-size: 18px;
  color: #555;
  margin-top: 4px;
  letter-spacing: 0.2em;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('https://seibu1969.com/wp-content/themes/seibu-theme/images/hero.jpg') no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.hero-content {
  position: absolute;
  bottom: 40px;   /* 下からの距離 */
  left: 40px;     /* 左からの距離 */
  max-width: 600px;  /* 必要に応じて幅を制限 */
  padding: 20px;
  background-color: rgba(37, 44, 65, 0.7);
}
.hero-title {
  white-space: nowrap; /* 改行させない */
  font-size: clamp(20px, 6vw, 48px);
  font-weight: bold;
  margin-bottom: 20px;
}
.hero-subtext {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ========== 共通ボタン ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background-color: #1e2530;
  transition: all 0.3s ease;
  width: 275px;
  height: 50px;
}
.btn span {
  transition: transform 0.3s ease;
}
.btn:hover {
  opacity: 0.8;
}
.btn:hover span {
  transform: translateX(5px);
}
.btn-red {
  background-color: #E60020;
}
.btn-dark {
  background-color: #1e2530;
}

/* ========== SERVICE ========== */
.service {
  padding: 10px 0;

}
.service-item {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 15px;
}
.service-item.reverse {
  flex-direction: row-reverse;
}
.service-panel, .service-image {
  flex: 1;
  width: 50%;
  min-width: 300px;
}
.service-panel {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}
.service-header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}
.service-header .service-num {
  font-size: 60px;
  font-weight: bold;
  color: #1e2530;
  line-height: 1;
}
.service-header h3 {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}
.service-panel p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-image {
  display: none;
}

/*レビューセクション*/

.reviews {
  padding: 40px 0;
  background: #D7E1E7;
}

.review-cards {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.review-card {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.review-image {
  background: #5A5E6B; /* 仮の画像背景 */
  aspect-ratio: 16 / 9;
}

.review-content {
  padding: 16px;
}
.review-content h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}
.review-content p {
  font-size: 14px;
}

.reviews-more {
  text-align: center;
  margin-top: 30px;
}

/* ========== NEWS ========== */
.news {
  padding: 40px 15%;
  background: #fff;
  margin: 0 auto;
}

.news .section-heading {
  background-color: #fff;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  border-bottom: 1px dashed #aaa;
  padding: 20px 0;
}

.news-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.news-date {
  color: #E60020;
  font-size: 14px;
  font-weight: bold;
}

.news-tag {
  font-size: 12px;
  color: #888;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 12px;
}

.news-title {
  font-size: 18px;
  font-weight: bold;
}

.news-more {
  text-align: center;
  margin-top: 30px;
}

/* ========== CONTACT ========== */
.contact {
  padding: 40px 0;
}

.contact-cards {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: #1e2530;
  transition: transform 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-2px);
}

.icon-img {
  width: 24px;
  height: auto;
  display: block;
}

/* 電話カード内レイアウト */
.tel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tel-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.tel-number {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
}
.hours {
  font-size: 14px;
  color: #1e2530;
  margin: 0;
}

/* フォームカード内レイアウト */
.form-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.form-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.form-label {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  color: #1e2530;
  white-space: nowrap;
}

/* ========== FOOTER ========== */
.site-footer {
  background-color: #1e2530;
  color: #fff;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-menu {
  flex: 1;
}
.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
}
.footer-menu li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 14px;
  background-color: #E60020;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.footer-menu a:hover {
  text-decoration: underline;
}

.footer-map {
  flex: 1;
  min-width: 250px;
}

/* ========== コピーライト（ページ最下部） ========== */
.footer-bottom {
  background-color: #E60020;
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  padding: 20px;
}



/* ========== スマホ（〜767px） ========== */
@media screen and (max-width: 767px) {

  .header-top {
    display: none !important;
  }

  .header-top.hidden {
    display: none !important;
  }

  .container {
    width: 90%;
  }
  .nav-pc {
    display: none;
  }
  .hamburger{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    width:24px;
    height:18px;
    cursor:pointer;
    z-index:1001;
    position:relative;
  }
  .section-heading {
    text-align: left;
    margin-bottom: 10px;
    padding: 0 5px;
  }
  .section-title {
    font-size: 28px;
  }
  .section-subtitle {
    font-size: 16px;
  }
  .hero {
    height: 80vh;
    padding: 80px 20px;
    background-position: center top;
  }
  .hero-content {
    bottom: 40px;
    transform: translate(-50%, -50%);
    text-align: center;
    margin: 0;
    width: 90%;
    left:50%;
  }

  .hero-title {
    white-space: nowrap; /* 改行させない */
    font-size: clamp(28px, 6vw, 48px);
    font-weight: bold;
    margin-bottom: 20px;
  }

  .hero-subtext {
    display: none;
  }
  .hero-buttons {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .btn {
    justify-content: center;
    width: 100%;
  }
  .service-item {
    flex-direction: column;
    align-items: center;
    
  }
  .service-item.reverse {
    flex-direction: column;
  }
  .service-panel {
    width: 90%;
    padding: 16px;
    text-align: center;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
  }
  .service-panel p {
    display: none;
  }
  .service-header {
    margin: 0;
  }
  .service-header h3 {
    white-space: nowrap;
  }
  .service-image {
    position: relative;
    width: 90%;

  }
  .service-image img {
    width: 100%;
    height: auto;
  }
  .service-image .btn {
    display: inline-flex;
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 180px;
    height: 50px;
    font-size: 14px;
    z-index: 2;
  }
  .service-panel .btn {
    display: none;
  }

  .review-card:nth-child(n+3) {
    display: none;
  }

  .review-cards {
    flex-direction: column;
    gap: 20px;
  }

  .review-card {
    width: 100%;
  }

  .news {
    padding:0 15px;
    padding-bottom: 20px;
  }

  /*コンタクト*/
  .contact-cards {
    flex-direction: column;
  }
  .contact-card {
    width: 100%;
  }
  .tel-number {
    font-size: 20px;
  }
  .form-label {
    font-size: 18px;
  }


  /*フッターメニュー*/
  .footer-menu {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-map iframe {
    height: 250px;
  }


  .footer-bottom {
    font-size: 12px;
    padding: 16px;
  }
  
  /*レビュー一覧のグリッド*/
  .reviews-grid {
    grid-template-columns: 1fr; /* スマホは1列 */
  }
}

/* ========== タブレット（768px〜1024px） ========== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .nav-pc {
    display: none;
  }
  .hamburger{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    width:24px;
    height:18px;
    cursor:pointer;
    z-index:1001;
    position:relative;
  }
  .section-heading {
    text-align: left;
    margin: 0 auto;
    padding: 0;
  }

  .service-item {
    width: 48%;
    flex-direction: column !important;
    align-items: center;
  }
  .service-panel {
    width: 100%;
    padding: 16px;
    text-align: center;
  }
  .service-panel p {
    display: none;
  }
  .service-image {
    position: relative;
    width: 100%;

  }
  .service-image .btn {
    display: inline-flex;
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 180px;
    height: 50px;
    font-size: 14px;
    z-index: 2;
  }
  .service-panel .btn {
    display: none;
  }
  .service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr); /* タブレットは3列 */
  }

}


/* 共通フォントサイズに clamp() を用いて統一 */
.section-title {
  font-size: clamp(28px, 5vw, 40px);
}
.section-subtitle {
  font-size: clamp(14px, 2.5vw, 18px);
}

.service-header .service-num {
  font-size: clamp(28px, 8vw, 60px);
}
.service-header h3 {
  font-size: clamp(18px, 4vw, 28px);
  white-space: nowrap;
}

.service-panel p {
  font-size: 15px;
  line-height: 1.7;
}

/* レビューセクションの文字サイズ統一 */
.review-content h3 {
  font-size: clamp(14px, 3vw, 16px);
}
.review-content p {
  font-size: 14px;
}

/* NEWS セクション */
.news-title {
  font-size: clamp(14px, 4vw, 18px);
}

/* ボタン */
.btn {
  font-size: clamp(14px, 4vw, 18px);
  white-space: nowrap;
}

/* 電話とフォームのテキストサイズ補正 */
.tel-number {
  font-size: clamp(16px, 4vw, 24px);
  white-space: nowrap;
}
.form-label {
  font-size: clamp(16px, 4vw, 20px);
  white-space: nowrap;
}

/*固定ページ・投稿ページ*/

.page-content {
  padding: 30px 20px;
}


.page-body {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.post-meta {
  text-align: center;
  margin-bottom: 10px;
}

.post-date {
  color: #E60020;
  font-weight: bold;
  margin-right: 10px;
}

.post-tag {
  display: inline-block;
  background: #f2f2f2;
  color: #666;
  font-size: 0.8rem;
  border-radius: 5px;
  padding: 3px 8px;
  margin-left: 5px;
}

/*お客様の声一覧*/
.page-title {
  font-size: 2rem;
  text-align: center;
  font-weight: bold;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ← 3列に変更 */
  gap: 40px;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;

}

.review-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.review-image img {
  width: 100%;
  height: auto;
  display: block;
}

.review-content {
  padding: 15px;
}

.review-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.review-title a {
  text-decoration: none;
  color: #333;
}

.review-excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 12px;
  background: #eee;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
}

/* ===== お客様の声（アーカイブ）専用のレイアウト調整 ===== */

/* お客様の声一覧 - PC */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCは3列 */
  gap: 40px;
  -webkit-line-clamp: 1;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* タブレット: 3列 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* スマホ: 1列 */
@media screen and (max-width: 767px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* タイトル・抜粋を1行に制御 */
  .review-title a,
  .review-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    white-space: normal;
    min-height: 1.5em;
  }
}

/* ==========新着記事========== */
#single-news .news-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  margin-top:50px;
}

#single-news .news-main {
  background: #fff;
  padding: 24px;
}

#single-news .news-head .news-date {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}
#single-news .news-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
}
#single-news .news-sep {
  border: none;
  border-top: 1px solid #ccc;
  margin: 12px 0 24px;
}

#single-news .news-thumb img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 24px;
}

#single-news .news-content {
  font-size: 16px;
  line-height: 1.9;
}
#single-news .news-content h2 {
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 28px 0 12px;
  font-weight: 700;
}
#single-news .news-content p { margin: 0 0 1.2em; }

#single-news .news-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}
#single-news .news-nav-prev a,
#single-news .news-nav-next a {
  color: #1e2530;
  text-decoration: none;
  font-size: 14px;
}
#single-news .news-nav .btn { padding: 12px 18px; }

/* Sidebar */
#single-news .news-sidebar .sb-block + .sb-block { margin-top: 40px; }
#single-news .news-sidebar .sb-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 14px;
  position: relative;
  background: #ffffff;
  padding:20px;
}

/* Categories */
#single-news .sb-cats { list-style: none; padding: 0; margin: 0; }
#single-news .sb-cats li { margin: 8px 0; }
#single-news .sb-cats a {
  color: #222; text-decoration: none;
  display: inline-flex; align-items: baseline; gap: .4em;
}
#single-news .sb-cats a::before {
  content: "→"; font-size: 12px; opacity: .6;
}

/* Recent posts */
#single-news .sb-recent { list-style: none; padding: 0; margin: 0; }
#single-news .sb-recent-item + .sb-recent-item { margin-top: 14px; }
#single-news .sb-recent-link { display: grid; grid-template-columns: 72px 1fr; gap: 12px; text-decoration: none; color: inherit; }
#single-news .sb-recent-thumb img,
#single-news .sb-recent-thumb .no-thumb {
  width: 72px; height: 72px; object-fit: cover; background:#eee; display:block;
}
#single-news .sb-recent-date { font-size: 12px; color: #666; }
#single-news .sb-recent-title { font-size: 14px; line-height: 1.4; }

/* Responsive */
@media (max-width: 1024px) {
  #single-news .news-wrap { grid-template-columns: 1fr; }
  #single-news .news-sidebar { order: 2; }
  #single-news .news-main { order: 1; }
  #single-news .news-nav { grid-template-columns: 1fr; text-align: center; }
  #single-news .news-nav-prev, #single-news .news-nav-next { order: 2; }
  #single-news .news-nav .btn { order: 1; justify-self: center; }
}

/* ===== single-news 2カラム強制 ===== */
#single-news .news-wrap{
  display: grid !important;              /* ← 最優先でグリッドに */
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 40px;
  align-items: start;
  margin-top:50px;
}

/* メイン・サイドの基本 */
#single-news .news-main{
  background:#ffffff;
  padding:24px; 
}

#single-news .news-sidebar{
  width:100%;
  background:#ffffff;
  padding:24px;
}

/* 1024px以下で1カラムに */
@media (max-width:1024px){
  #single-news .news-wrap{
    grid-template-columns: 1fr !important;
  }
}

/* スクロールボタン */

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #E60020;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.back-to-top::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: rotate(45deg);
  margin-bottom: -4px;
}

.back-to-top:hover {
  opacity: 0.8;
}

/* ===== SERVICE スクロールアニメーション ===== */
.service-item {
  opacity: 0;
  transform: translateY(20px);            /* モバイル既定: 下から */
  transition: transform .8s ease, opacity .8s ease;
  will-change: transform, opacity;
}

.service-item.slide-from-left {            /* PC/Tab: 左から */
  transform: translateX(-40px);
}
.service-item.slide-from-right {           /* PC/Tab: 右から */
  transform: translateX(40px);
}

.service-item.inview {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* 動きが苦手なユーザー配慮 */
@media (prefers-reduced-motion: reduce) {
  .service-item,
  .service-item.inview {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* 768px以上は左右スライドを有効化 */
@media screen and (min-width: 768px) {
  .service-item {
    transform: none; /* 方向はJSが付けるクラスで指定 */
  }
}

/* レビューの続きが表示されない対応*/
/* 続きを見るボタン（スマホのみ表示） */
#show-more-reviews {
  display: none;
}

@media screen and (max-width: 767px) {
  /* 3件目以降を通常は隠す */
  .review-card:nth-child(n+3) { display: none; }

  /* expanded が付いたらすべて表示 */
  .reviews-grid.expanded .review-card:nth-child(n+3) {
    display: flex !important;   /* カードのdisplayに合わせてflex */
  }

  #show-more-reviews {
    display: inline-flex;
    margin: 20px auto 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 48px;
    font-weight: bold;
    background: #1e2530;
    color: #fff;
    border: 0;
    cursor: pointer;
  }
}

/* タブレット以上ではボタン非表示（全部見せる） */
@media screen and (min-width: 768px) {
  #show-more-reviews { display: none !important; }
}


/*固定ページのアイキャッチ表示*/
.page-hero {
  position: relative;
  width: 100%;
  height: clamp(180px, 35vw, 350px); /* スマホは小さく、PCは最大350px */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;   /* 縦方向中央 */
  justify-content: center; /* 横方向中央 */
  text-align: center;
  padding: 0 20px;       /* 横の余白確保（文字が端にくっつかないように） */
}

.page-hero .page-title {
  color: #fff;
  font-size: clamp(20px, 5vw, 36px); /* デバイスに応じてサイズ調整 */
  font-weight: bold;
  line-height: 1.4;
  z-index: 1;
}

/* お客様の声（個別／一覧）のみヘッダー高さぶん下げる */
#review-single,
#reviews-archive {
  padding-top: var(--header-offset);
}

@media screen and (max-width: 767px) {
#review-single,
#reviews-archive {
  padding-top: 5px;
}
}
