/* =========================================
   Front Page Styles (間延び防止調整版)
========================================= */

/* フォント強制適用 */
.front-page-wrapper,
.fp-hero__title,
.fp-hero__sub,
.fp-hero__btn,
.fp-title,
.fp-desc,
.fp-card__title,
.fp-card__text,
.fp-news__title,
.fp-cta__title,
.fp-cta__text,
.fp-about__txt h3,
.fp-about__txt p,
.fp-btn {
    font-family: var(--futaba-front-font, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif) !important;
}

/* --- motion --- */
.fade-in-up{
  opacity:0;
  transform:translateY(20px); /* 移動距離も少し短縮 */
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}
.fade-in-up.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* --- shared layout --- */
.front-page-wrapper{ width:100%; }

/* セクションの上下余白を縮小 (86px -> 50px) */
.fp-section{ padding: 50px 20px; }
.fp-inner{
  max-width: var(--container-width);
  margin: 0 auto;
}

/* 見出し周りの余白を縮小 (54px -> 35px) */
.fp-head{
  text-align:center;
  margin-bottom: 35px;
}
.fp-title{
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 6px; /* 10px -> 6px */
  letter-spacing: .06em;
  color:#222;
}
.fp-title span{ color: var(--main-color); }
.fp-desc{
  margin:0;
  font-size:.9rem;
  letter-spacing: .12em;
  color:#777;
}

/* --- slot content section wrapper --- */
.fp-slot{ padding-top: 0; }
.fp-slot .fp-inner{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  padding: 28px 26px;
}
@media (max-width: 768px){ .fp-slot .fp-inner{ padding: 22px 16px; } }
    .fp-news__item--featured{ background: rgba(0,0,0,.04); }


/* =========================================
   1) HERO (Slider Modified)
========================================= */
.fp-hero{
  position:relative;
  width:100%;
  box-sizing: border-box;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: 100vh;
  
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;

  padding-top: var(--header-h);
  overflow: hidden;
  background: #222;
}

/* --- Slider Container (Absolute Background) --- */
.fp-hero-slider{
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
/* Overlay */
.fp-hero-slider::after{
  content: "";
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  background: var(--futaba-front-hero-overlay, linear-gradient(45deg, rgba(0,0,0,.65), rgba(0,0,0,.3)));
  z-index: 2;
  pointer-events: none;
}

/* Single Slide Item */
.fp-hero-slide{
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 2.5s ease;
  z-index: 1;
}
.fp-hero-slide.is-active{
  opacity: 1;
  z-index: 1;
}
/* Zoom Effect */
.fp-hero-slide__img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 6s linear;
}
.fp-hero-slide.is-active .fp-hero-slide__img {
  transform: scale(1);
}

/* PC/SP Switch inside slide */
.fp-hero-bg-pc { display: block; }
.fp-hero-bg-sp { display: none; }
@media (max-width: 768px){
  .fp-hero-bg-pc { display: none; }
  .fp-hero-bg-sp { display: block; }
}

/* --- Hero Content (Foreground) --- */
.fp-hero__content{
  position:relative;
  z-index: 3;
  padding: 18px 18px 40px; /* 下部パディング調整 */
  max-width: 920px;
}

.fp-hero__title{
font-size: clamp(1.5rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 12px; /* 16px -> 12px */
  letter-spacing: .05em;
  text-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.fp-hero__sub{
  margin:0 0 24px; /* 34px -> 24px */
font-size: clamp(0.85rem, 3vw, 1.2rem);
  font-weight: 600;
  opacity:.92;
}

.fp-hero__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 14px 40px; /* パディング微減 */
  border-radius: 999px;
  text-decoration:none;
  font-weight: 800;
  letter-spacing: .06em;
  background: #fff;
  color: var(--main-color);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.fp-hero__btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0,0,0,.28);
  background: var(--main-color);
  color:#fff;
}

.fp-scroll{
  position:absolute;
  left:50%;
  bottom: 20px; /* 26px -> 20px */
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: .28em;
  opacity:.9;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px;
  z-index: 3;
}
.fp-scroll__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  animation: fp-bounce 1.9s infinite;
}
@keyframes fp-bounce{
  0%, 100% { transform: translateY(0); opacity: .9; }
  50%       { transform: translateY(10px); opacity: .55; }
}

/* =========================================
   2) ABOUT
========================================= */
.fp-about{ background: #f4f7f9; }
.fp-about__wrap{ 
  display:flex; 
  align-items:center; 
  gap: 25px; /* 46px -> 30px */ 
}
.fp-about__img{
  flex: 1;
  border-radius: 22px;
  overflow:hidden;
  box-shadow: 18px 18px 0 var(--main-color);
}
.fp-about__img img{ display:block; width:100%; height:auto; }
.fp-about__txt{ flex: 1; }
.fp-about__txt h3{
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.35;
  margin: 0 0 10px; /* 16px -> 12px */
  font-weight: 900;
}
.fp-about__txt p{ 
  margin: 0 0 18px; /* 22px -> 18px */
  color:#555; 
  line-height:1.8; /* 行間も少し詰める */
  white-space: pre-line; 
}
.fp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 30px; /* パディング微減 */
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.22);
  color:#222;
  text-decoration:none;
  font-weight: 800;
  font-size: .92rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.fp-btn:hover{ background:#222; color:#fff; transform: translateY(-1px); }

@media (max-width: 820px){
  .fp-about__wrap{ flex-direction:column; gap: 24px; }
  .fp-about__img{ box-shadow: 10px 10px 0 var(--main-color); }
}

/* =========================================
   3) SERVICE
========================================= */
.fp-service__grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; /* 34px -> 20px */
}
.fp-card{
  background:#fff;
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(0,0,0,.04);
}
.fp-card:hover{ transform: translateY(-4px); box-shadow: 0 22px 48px rgba(0,0,0,.10); }
.fp-card__img{ width:100%; height: 200px; object-fit: cover; background:#eee; }
.fp-card__body{ padding: 22px 20px 24px; /* パディング微減 */ }
.fp-card__title{ margin: 0 0 10px; font-size: 1.15rem; font-weight: 900; color: var(--main-color); }
.fp-card__text{ margin:0; font-size: .92rem; line-height: 1.75; color:#666; white-space: pre-line; }

/* 追加：カード内ボタン */
.fp-card__btn{
  margin-top: 14px; /* 18px -> 14px */
  border-color: rgba(0,0,0,.12);
}

/* =========================================
   4) NEWS (リスト全体を中央配置・上下中央揃え)
========================================= */
.fp-news{ background: #fafafa; }

/* ★修正：リストの幅を制限して画面中央に寄せる */
.fp-news__list{ 
  border-top: 1px solid rgba(0,0,0,.08);
  max-width: 860px; /* 幅を程よく絞って引き締める */
  margin: 0 auto;   /* 左右中央寄せ */
}

.fp-news__item{
  display:flex; 
  align-items: center; /* baselineからcenterに変更（上下中央揃え） */
  gap: 18px;
  padding: 16px 10px; /* 上下パディングを微調整 */
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: background .2s ease, padding-left .2s ease;
}
/* ホバー時の動き */
.fp-news__item:hover{ background: rgba(0,0,0,.03); padding-left: 18px; }

.fp-news__meta{ width: 168px; flex-shrink:0; color:#777; font-size:.92rem; }
.fp-news__cat{
  display:inline-block; margin-left: 8px; font-size: 11px; padding: 2px 8px;
  border-radius: 6px; background: rgba(0,0,0,.78); color:#fff; vertical-align: middle;
}
.fp-news__title{ flex:1; font-weight: 700; }
.fp-news__title a{ color:#222; text-decoration:none; display:block; }
.fp-news__btn{ text-align:center; margin-top: 24px; }

@media (max-width: 640px){
  .fp-news__item{ flex-direction:column; align-items:flex-start; gap: 6px; }
  .fp-news__meta{ width:auto; }
}
/* =========================================
   5) CTA
========================================= */
.fp-cta{
  background: var(--main-color); color:#fff;
  text-align:center; 
  padding: 60px 20px; /* 100px -> 60px */
}
.fp-cta__title{ margin: 0 0 10px; font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 900; }
.fp-cta__text{ margin:0; opacity:.92; }
.fp-cta__btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 16px 54px; /* パディング微減 */
  border-radius: 999px; background:#fff; color: var(--main-color);
  font-weight: 900; text-decoration:none; margin-top: 22px; /* 28px -> 22px */
  transition: transform .2s ease, filter .2s ease; box-shadow: 0 16px 34px rgba(0,0,0,.22);
}
.fp-cta__btn:hover{ transform: translateY(-2px); filter: brightness(.98); }

.fp-anchor{ position:relative; top: -20px; }
