/* ===== 全体共通 ===== */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.8;
  color: #333;
  margin: 0;
  padding: 0;
  background: #fff;
  padding-top: 80px; /* ヘッダー高さに合わせて調整 */
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.main-container {
  padding: 40px 0;
}

/* ===== ヘッダー ===== */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.header-container .logo img {
  max-height: 60px;
}
header nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
header nav a {
  color: #333;
  font-weight: bold;
}
header nav a.active,
header nav a:hover {
  color: #005BAC;
}

/* === ヒーローセクション === */
.hero {
  position: relative;
  background: url('/images/hero-carfilm.jpg') center center / cover no-repeat; /* 施工イメージ写真 */
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* 半透明オーバーレイ */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-main, .btn-cta-sub {
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.btn-cta-main {
  background-color: #005BAC;
  color: #fff;
  border: none;
  transition: background 0.3s;
}

.btn-cta-main:hover {
  background-color: #004080;
  color: #fff;
}

.btn-cta-sub {
  background-color: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid #fff;
  transition: background 0.3s;
}

.btn-cta-sub:hover {
  background-color: rgba(255,255,255,0.4);
  color: #fff;
}
.cta-buttons {
  justify-content: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero { height: 350px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .btn-cta-main, .btn-cta-sub { font-size: 1rem; padding: 10px 20px; }
}


/* ===== 共通セクション見出し ===== */
section {
  padding-top: 80px;
  padding-bottom: 80px;
}

section h2 {
  font-size: 2rem;
  color: #005BAC;
  margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
  padding-left: 15px;
  border-left: 5px solid #005BAC;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 5px;
}

section + section {
  margin-top: 80px;
}

/* ===== カードレイアウト（メリット・お客様の声） ===== */
.film-benefits {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.benefit-card, .voice-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 calc(33% - 20px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.benefit-card:hover, .voice-card:hover {
  transform: translateY(-3px);
}
.benefit-icon {
  font-size: 2rem;
  color: #005BAC;
  margin-bottom: 10px;
}
.benefit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.benefit-card .benefit-image {
  width: 100%;
  max-width: 300px; /* 必要に応じて調整 */
  margin: 10px auto 15px;
  display: block;
  border-radius: 8px;
}

/* ===== 比較表 ===== */
.comparison-table-wrapper {
  overflow-x: auto;
}
.film-comparison {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.film-comparison th, .film-comparison td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  font-size: 0.95rem;
}
.film-comparison thead th {
  background: #005BAC;
  color: #fff;
  font-weight: bold;
}
.film-comparison tbody tr:nth-child(odd) {
  background: #f9f9f9;
}

/* ===== 図・キャプション ===== */
.caption {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-top: 5px;
}

/* ===== グラフエリア ===== */
.graph-box {
  margin: 30px 0;
}
.graph-box canvas {
  max-width: 100%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ===== お客様の声 ===== */
.voices {
  padding: 40px 20px;
}
.voice-card {
  margin-bottom: 20px;
}
.voice-card strong {
  display: block;
  color: #005BAC;
  font-size: 1rem;
  margin-bottom: 10px;
}

/* ===== FAQアコーディオン ===== */
.faq {
  padding: 40px 20px;
}
.faq h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #005BAC;
}
.faq-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item.active {
  border-color: #005BAC;
  box-shadow: 0 0 5px rgba(0,91,172,0.2);
}
.faq-question {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 15px;
  margin: 0;
  background: #f8f9fa;
  cursor: pointer;
  position: relative;
}
.faq-question::after {
  content: '＋';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #666;
}
.faq-item.active .faq-question::after {
  content: '－';
  color: #005BAC;
}
.faq-answer {
  display: none;
  padding: 15px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  display: block;
}
/* FAQ専用：コンパクトなまとまり感 */
.faq .faq-item {
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}
.faq .faq-question {
  font-size: 1.1rem;
  cursor: pointer;
}
.faq .faq-answer {
  font-size: 0.95rem;
  margin-top: 10px;
}

/* === TSER情報ボックス === */
.tser-info {
  background: #f9f9f9;
  border-left: 5px solid #005BAC;
  padding: 20px 25px;
  margin: 40px auto;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 900px;
}

.tser-info p {
  margin: 0;
  color: #333;
}

.tser-info a {
  color: #005BAC;
  font-weight: 600;
  text-decoration: underline;
}

.tser-info a:hover {
  text-decoration: none;
}


/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, #005BAC, #0070D1);
  padding: 40px 20px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  margin-top: 50px;
}
.cta h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-left: none;
  background: none;
  padding: 0;
}
.cta .btn-cta-main {
  background: #fff;
  color: #005BAC;
  font-weight: bold;
  font-size: 1.2rem;
}
.cta .btn-cta-main:hover {
  background: #f1f3f5;
}

/* ===== フッター ===== */
footer {
  background: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
.footer-container ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.footer-container a {
  color: #fff;
  font-size: 0.95rem;
}
.footer-container a:hover {
  text-decoration: underline;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .film-benefits {
    flex-direction: column;
  }
  .benefit-card {
    flex: 1 1 100%;
  }
  section h2 {
    font-size: 1.5rem;
  }
  .film-comparison {
    font-size: 0.85rem;
  }
  .faq-question {
    font-size: 1rem;
  }
  .faq-answer {
    font-size: 0.9rem;
  }
}
/* === search.php専用のsection余白調整 === */
body.page-search{
    padding-top:80px;
}
body.page-search section {
  padding-top: 40px;
  padding-bottom: 40px;
}

body.page-search section + section {
  margin-top: 40px;
}
/* === 固定ヘッダー === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* ナビリンク強調 */
.navbar .nav-link {
  font-weight: 600;
  padding: 10px 15px;
}
.navbar .nav-link:hover {
  color: #005BAC;
}