/* front-page.css: front-page.php 専用 */
.front-page{ background:#fff; }

.fp-section__inner,
.fp-hero__inner,
.fp-cta__inner{
  max-width:1120px;
  margin:0 auto;
  padding:0 16px;
}

.fp-section{ padding:56px 0; }
@media (max-width: 899px){ .fp-section{ padding:40px 0; } }

.fp-section__head{ margin-bottom:18px; }
.fp-section__title{ font-size:26px; margin:0 0 6px; letter-spacing:.02em; }
.fp-section__sub{ margin:0; opacity:.8; line-height:1.7; }
.fp-section__foot{ margin-top:18px; }

/* HERO */
.fp-hero{
  /* デスクトップ：高さはだいたい画面の1/3（=約34vh）。横幅はフル。 */
  min-height: clamp(320px, 60vh, 520px);
  display:flex;
  align-items:center;
  padding:0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.30) 55%, rgba(0,0,0,0) 100%),
    var(--fp-hero-bg, none);
  background-size: cover;
  background-position: center;
}
.fp-hero__inner{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  align-items:center;
  width:100%;
  padding-top: clamp(34px, 4.5vh, 64px);
  padding-bottom: clamp(26px, 3.5vh, 56px);
}
.fp-hero__copy{ color:#fff; }
.fp-hero__eyebrow{ margin:0 0 8px; font-weight:700; opacity:.7; }
.fp-hero__title{ margin:0 0 10px; font-size:38px; line-height:1.15; color:#fff; }
.fp-hero__lead{ margin:0 0 14px; opacity:.85; line-height:1.8; }
.fp-hero__cta{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.fp-hero__badges{ list-style:none; margin:0; padding:0; display:flex; gap:10px; flex-wrap:wrap; }
.fp-hero__badges li{
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255, 0, 0, 0.31);
  font-weight:700;
  font-size:13px;
}
.fp-hero__image{
  width:100%;
  aspect-ratio:4/3;
  border-radius:18px;
  background-size:cover;
  background-position:center;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/* 背景化したので、右側のビジュアルは非表示（必要なら display:block に戻してください） */
.fp-hero__visual{ display:none; }

@media (max-width: 899px){
  .fp-hero{ min-height: clamp(260px, 42vh, 420px); }
  .fp-hero__inner{ grid-template-columns:1fr; }
  .fp-hero__title{ font-size:28px; }
  .fp-hero__image{ aspect-ratio:16/10; }
}

/* Service Cards */
.fp-cards{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}
.fp-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  background:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.04);
  transition:transform .15s ease, box-shadow .15s ease;
}
.fp-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(0,0,0,.08);
}
.fp-card__thumb{
  width:100%;
  aspect-ratio:16/10;
  background-size:cover;
  background-position:center;
}
.fp-card__body{ padding:12px 12px 14px; }
.fp-card__title{ margin:0 0 6px; font-size:16px; }
.fp-card__desc{ margin:0 0 10px; opacity:.8; line-height:1.6; font-size:14px; }
.fp-card__more{ font-weight:800; font-size:14px; }
@media (max-width: 899px){
  .fp-cards{ grid-template-columns:repeat(2, 1fr); gap:12px; }
  .fp-card__title{ font-size:15px; }
}

/* Works */
.fp-works__grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}
.fp-work{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  background:#fff;
}
.fp-work__thumb img{ width:100%; height:auto; display:block; }
.fp-work__noimg{
  width:100%;
  aspect-ratio:16/10;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.04);
  font-weight:800;
  opacity:.6;
}
.fp-work__body{ padding:12px; }
.fp-work__meta{ margin:0 0 6px; font-size:13px; opacity:.7; }
.fp-work__title{ margin:0; font-size:15px; line-height:1.5; }
@media (max-width: 899px){
  .fp-works__grid{ grid-template-columns:repeat(2, 1fr); }
}

/* CTA */
.fp-cta{
  padding:56px 0;
  background:rgba(0,0,0,.04);
}
.fp-cta__inner{
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:22px 16px;
  background:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  text-align:center;
}
.fp-cta__title{ margin:0 0 10px; font-size:24px; }
.fp-cta__lead{ margin:0 0 14px; opacity:.85; line-height:1.8; }
.fp-cta__actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
@media (max-width: 899px){
  .fp-cta{ padding:40px 0; }
  .fp-cta__title{ font-size:20px; }
}

/* スマホ時は少し小さく */
@media (max-width: 768px){
  .fp-hero__title{ font-size: 6vw; 
                              /* 改行を禁止する */
                              white-space: nowrap; 
 }
}