/* 変数・基本 */
:root{
  --fv-h: clamp(420px, 62vw, 680px); /* PC高さ */
  --fv-pad: clamp(16px, 2vw, 32px);
  --brand-blue: #1976d2;
  --brand-yellow: #f1ff65;
  --text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.reform-fv {
  position: relative;
  overflow: hidden;
  background: var(--brand-blue);
}
.reform-fv::before{
  content: "";
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height:600px;
  max-width: 600px;
  position: absolute;
  right: 0;
  top: 0;
  background: linear-gradient(45deg,rgba(25,118,210,.0)50%,#1764af 50%,#1976d2 100%);
}
.reform-fv::after{
  content: "";
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height:600px;
  max-width: 600px;
  position: absolute;
  left: 0;
  bottom: 0;
  background: linear-gradient(45deg,#1976d2 0%,#1764af 50%,rgba(25,118,210,.0) 50%);
}
.reform-fv img {
  vertical-align: bottom;
}
.reform-fv picture{
  display: block;
}

.fv__inner {
  position: relative;
  isolation: isolate;
  height: 100%;
  padding: 0 4vw;
  max-width: calc(1320px + 8vw);
  margin: 0 auto;
  z-index: 1;
}

/* CLS対策：スライダーが先にスペース確保 */

.fv__slider{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 92vw;
  margin: 0 auto;
  z-index: 0;
  overflow: hidden;
  height: auto;
}
.fv__slide{
  -webkit-clip-path: polygon(100% 100%, 100% 38%, 34% 0%, 0% 38%, 0% 100%);
  clip-path: polygon( 100% 100%, 100% 38%, 34% 0%, 0% 38%, 0% 100% );
}
.fv__slide picture{
  aspect-ratio: 1 / 1;
}

/* オーバーレイ（視認性を上げるグラデ） */
.fv__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(-45deg, rgba(4, 38, 77, .2) 25%, rgba(4, 38, 77, .4) 25%, rgba(4, 38, 77, .4) 50%, rgba(4, 38, 77, .2) 50%, rgba(4, 38, 77, .2) 75%,rgba(4, 38, 77, .4) 75%,rgba(4, 38, 77, .4) 100%);
  background-size: 8px 8px;
  background-repeat: repeat;
  pointer-events: none;
}

.fv__img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
}

/* 文字レイヤー */
.fv__content{
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
}

.fv__content-description{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.fv__content-description * {
  margin: 0;
}
.fv__catch{
  animation: imageWipe 1s forwards ease-in-out;
}
.fv__sub-title{
  animation: fadeIn 0.5s 1s forwards ease-in;
  opacity: 0;
  color: var(--brand-yellow);
  padding-left: 16vw;
  text-shadow: 2px 2px 4px #000;
  font-size: clamp(18px,5vw,2rem);
}
.fv__links {
  animation: fadeIn 0.5s 1s forwards ease-in;
  opacity: 0;
  padding: 0 4vw;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.btn-reform-fv a{
  background: linear-gradient(to bottom , #f8ff61 50%,#dae854 50%);
  display: flex;
  width: 300px;
  height: 60px;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  font-weight: bold;
  margin: 0 auto;
}
.btn-reform-fv a::after{
  content: "search";
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
}
.fv__links .text-link a{
  color: var(--brand-yellow);
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  text-shadow: 2px 2px 4px #000;
}
.fv__links .text-link a::after{
  content: "chevron_right";
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  text-shadow: 2px 2px 4px #000;
}
.fv__content-image{
  animation: fadeIn 0.5s 1s forwards ease-in;
  opacity: 0;
  text-align: center;
}
.fv__icons{
  animation: fadeInUp 1s 0.5s forwards ease-in;
  opacity: 0;
  margin-top: -1.5rem;
  text-align: center;
}
.fv__icons .reform-icons{
  gap: 0;
  justify-content: center;
}
.fv__icons .reform-icons a{
  width: auto;
  flex-basis: calc(100% / 6);
}
@media screen and (min-width:1024px) {
  section.reform-fv{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .fv__slider{
    position: relative;
    width: 100%;
  }
  .fv__slider picture{
    aspect-ratio: 33 / 17;
  }
  .fv__slide::after {
    background-size: 10px 10px;
  }
  .fv__content{
    position: absolute;
    top: 0;
    left: 4vw;
    width: calc(100% - 8vw);
    display: flex;
    height: 100%;
    padding-top: clamp(1.5rem,3.2vw,4rem);
  }
  .fv__icons{
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
    text-align: center;
  }
  .fv__icons .reform-icons{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  .fv__icons .reform-icons a{
    flex-basis: calc(100% / 12);
  }
  .fv__content-description{
    gap: clamp(1rem,2vw,3rem);
  }
  .fv__sub-title{
    padding-left: 18%;
    font-size: clamp(1.25rem,2vw,2rem);
  }
  .fv__links{
    padding: 0 0 0 18%;
    flex-direction: row;
    gap: clamp(1rem,3vw,2rem);
    align-items: center;
  }
  .btn-reform-fv a{
    font-size: clamp(1rem,1.5vw,21px);
    width: clamp(240px,20vw,300px);
    height: clamp(60px,5vw,80px);
    position: relative;
    overflow: hidden;
  }
  .btn-reform-fv a::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 60px;
      height: 100%;
      background: rgba(255,255,255,.5);
      transform-origin: left;
      transform: skewX(-45deg) translateX(-120px);
    }
  .btn-reform-fv a:hover{
    filter: contrast(1.2);
  }
  .btn-reform-fv a:hover::after{
    transform: skewX(-45deg) translateX(360px);
    transition: all 0.5s;
  }
  .fv__links .text-link a{
    font-size: clamp(1rem,1.5vw,21px);
  }
}

/* prefers-reduced-motion: 自動アニメ抑制 */
@media (prefers-reduced-motion: reduce) {
  .reform-fv .swiper {
    animation: none !important;
  }
}

