@charset "utf-8";
/*-------------------------------------
 基本設定
---------------------------------------*/
:root{
  --metaphor-font-xl: 36px;
  --metaphor-font-lg: 24px;
  --metaphor-font-md: 18px;
  --metaphor-font-nm: 16px;
  --metaphor-font-sm: 14px;
  --metaphor-font-xs: 12px;
}
html:has(#metaphor){
  scroll-behavior: smooth;
}
#metaphor{
  margin-bottom: 4rem;
  line-height: 1.75;
  font-size: var(--metaphor-font-nm);
}
#metaphor img{
  max-width: 100%;
}
#metaphor h1, 
#metaphor h2, 
#metaphor h3, 
#metaphor h4, 
#metaphor h5, 
#metaphor h6{
  line-height: 1.25;
  font-weight: 700;
}
#metaphor h1{
  font-size: calc(var(--metaphor-font-xl) * 1.5);
  margin: 0 0 0 0;
}
#metaphor h2{
  font-size: var(--metaphor-font-xl);
  margin: 1.5rem 0 1rem;
}
#metaphor h3{
  font-size: var(--metaphor-font-lg);
  margin: 1.25rem 0 0.75rem;
}
#metaphor h4{
  font-size: var(--metaphor-font-md);
  margin: 1rem 0 0.5rem;
}
#metaphor h5{
  font-size: var(--metaphor-font-nm);
  margin: 1rem 0 0.5rem;
}
#metaphor h6{
  font-size: var(--metaphor-font-nm);
  margin: 1rem 0 0.5rem;
}
#metaphor p+p{
  margin-top: 1rem;
}
#metaphor section section+section{
  margin-top: 4rem;
}
@media screen and (max-width:767px){
  :root{
    --metaphor-font-xl: 6.72vw;
    --metaphor-font-lg: 5.04vw;
    --metaphor-font-md: 4.48vw;
    --metaphor-font-nm: 3.92vw;
    --metaphor-font-sm: 3.36vw;
    --metaphor-font-xs: 3.36vw;
  }
  #metaphor h1{
    font-size: var(--metaphor-font-xl);
  }
  #metaphor section section+section{
    margin-top: 2rem;
  }
}

/*-------------------------------------
 背景
---------------------------------------*/
#metaphor .bg-parent{
  padding: 8rem 0;
  position: relative;
  clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0);
  overflow: hidden;
}
#metaphor .bg-parent::before{
  content: "";
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}
#metaphor .benefit::before,#metaphor .link::before{
  background: url(../img/metaphor/bg-body.webp) no-repeat 50% 50% / cover;
}
#metaphor .lineup::before{
  background: url(../img/metaphor/bg-lineup.webp) no-repeat 50% 50% / cover;
}
#metaphor .story::before{
  background: url(../img/metaphor/bg-story.webp) no-repeat 50% 50% / cover;
}

/*-------------------------------------
 テキスト設定
---------------------------------------*/
#metaphor:not(a){
  color: #fff;
}
#metaphor h2{
  margin: -2rem 0 2rem;
  text-align: center;
}
#metaphor .text-center{
  text-align: center;
}

/*-------------------------------------
 グリッドシステム内の調整
---------------------------------------*/
#metaphor .grid-container h2:first-of-type,
#metaphor .grid-container h3:first-of-type,
#metaphor .grid-container h4:first-of-type,
#metaphor .grid-container h5:first-of-type,
#metaphor .grid-container h6:first-of-type {
  margin-top: 0;
}
#metaphor .grid-container a{
  max-width: 100%;
}

/*-------------------------------------
 base.cssの上書き
---------------------------------------*/
@media screen and (max-width:767px){
  #metaphor .u-pc-width{
    padding: 0 1rem;
  }
}

/*-------------------------------------
 ボーダー
---------------------------------------*/
#metaphor .border-grunge{
  padding: calc(0.67rem + 3px);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(0.25rem);
  border: solid 1px;
  border-image: url(../img/metaphor/bg-border.webp);
  border-image-width: 172.5px;
  border-image-slice: 172;
}
#metaphor .border-grunge img{
  width: 100%;
}

/*-------------------------------------
 KV
---------------------------------------*/
#metaphor .kv img{
  width: 100%;
}

/*-------------------------------------
 lineup
---------------------------------------*/
#metaphor .model-item{
  padding: 2rem;
  background: rgba(0,0,0,0.2);
  border: solid 1px;
  border-image: url(../img/metaphor/bg-border.webp);
  border-image-width: 172.5px;
  border-image-slice: 172;
  display: flex;
  flex-direction: column;
  gap:1rem;
}
#metaphor .model-item h3{
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  overflow: hidden;
}
#metaphor .model-item th{
  font-weight: 400;
  padding-right: 1rem;
}
#metaphor .model-item .price{
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-weight: 700;
  color: #e74458;
  line-height: 1;
}
#metaphor .model-item .price span{
  font-size: 28px;
}
#metaphor .model-item .button{
  width: calc(100% + 4rem);
  max-width: calc(100% + 4rem);
  margin: 0 -2rem -1rem -2rem;
  aspect-ratio: 676/144;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(../img/metaphor/bg-button.webp) no-repeat 50% 50% / cover;
  position: relative;
}
#metaphor .model-item .button::after{
  position: absolute;
  top: calc(50% - 4px);
  right: 2.5rem;
  width: 0.5rem;
  height: 0.5rem;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-color: #fff;
  content: '';
}
#metaphor .model-item .button:hover{
  filter: brightness(130%);
}

/*-------------------------------------
 benefit
---------------------------------------*/
#metaphor .benefit h3{
  width: 360px;
  height: 71px;
  margin: 0 0 2rem 0;
  padding-left: 2rem;
  aspect-ratio: 360 / 71;
  background: url(../img/metaphor/bg-benefit-title.webp) no-repeat 50% 50% / cover;
  font-size: var(--metaphor-font-xl);
  color: #000;
  display: flex;
  align-items: center;
  font-weight: 700;
}
#metaphor .benefit p{
  font-size: 18px;
}

/*-------------------------------------
 story
---------------------------------------*/
#metaphor .story p{
  font-size: 18px;
  text-shadow: 0 0 0.5em #000;
}
#metaphor .screenshot{
  margin: 4rem 2rem 0 2rem;
}

/*-------------------------------------
 link
---------------------------------------*/
#metaphor .link-button{
  width: 656px;
  height: 185px;
  margin: 0 auto;
  background: url(../img/metaphor/bg-link-button.webp) no-repeat 50% 50% / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  gap:0.5em;
  font-size: 24px;
  font-weight: 700;
}
#metaphor .link-button svg{
  width: 0.8em;
  height: 0.8em;
  fill: #fff;
}
#metaphor .link-button:hover{
  filter: brightness(130%);
}

/*-------------------------------------
 responsive
---------------------------------------*/
@media screen and (max-width:767px){
  /*background*/
  #metaphor .benefit::before,#metaphor .link::before{
    background: url(../img/metaphor/bg-body-sp.webp) no-repeat 50% 50% / cover;
  }
  #metaphor .lineup::before{
    background: url(../img/metaphor/bg-lineup-sp.webp) no-repeat 50% 50% / cover;
  }
  #metaphor .story::before{
    background: url(../img/metaphor/bg-story-sp.webp) no-repeat 50% 50% / cover;
  }
  #metaphor .bg-parent{
    padding: 4rem 0;
  }

  /*text*/
  #metaphor h2{
    margin: -2rem 0 1rem;
  }
  #metaphor h2 img{
    height: 18.8vw;
    width: auto;
  }
  
  /*border*/
  #metaphor .border-grunge{
    padding: calc(0.5rem + 3px);
  }

  /*benefit*/
  #metaphor .benefit h3{
    width: 100%;
    height: auto;
    margin: 0 0 4vw 0px;
    padding-left: 8vw;
    font-size: 6.4vw;
  }
  #metaphor .benefit p{
    font-size: 4.8vw;
  }

  /*story*/
  #metaphor .story p{
    font-size: 4.8vw;
  }
  #metaphor .screenshot{
    margin: 2rem 1rem 0 1rem;
  }

  /*link*/
  #metaphor .link-button{
    width: 100%;
    height: auto;
    aspect-ratio: 690 / 242;
    background: url(../img/metaphor/bg-link-button-sp.webp) no-repeat 50% 50% / cover;
    font-size: 3.92vw;
  }
}