@charset "UTF-8";

.solution-inner{
  max-width: 1100px;
  margin: 0 auto;
}

@media screen and (min-width: 769px){
  .solution-inner{
    padding:0 30px;
  }
}


.files{
  width:100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-items: center;
}

.files .file-main{
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
  z-index: 1;
}

.file-main.is-file-active{
  z-index: 2;
}

.files .file-main:nth-child(1) {
  background: #70a1ff;
  /* スカイブルー */
}

.files .file-main:nth-child(2) {
  background: #55ad9b;
  /* アクアミント */
}

.files .file-main:nth-child(3) {
  background: #ff6b6b;;
}

.files .file-main:nth-child(4) {
  display: none;
  pointer-events: none;
  background: #ffcc00;
  /* サンセットゴールド */
}

.files .file-main::before{
  content: "";
  color:#fff;
  position: absolute;
  width:85px;
  height: 40px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 700;
  background: inherit;
  top:-39px;
  border-radius: 8px 8px 0 0;
  z-index: 100;
    /* 圧倒的に高い数値にする */
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 3px 3px 5px rgba(0 ,0,0,0.5);
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.file-main:nth-child(1)::before{
  content: "腰痛";
  left: 10px;
}

.file-main:nth-child(2)::before {
  content: "肩こり";
  left: 100px;
}

.file-main:nth-child(3)::before {
  content: "頭痛";
  left: 190px;
}

.file-main:nth-child(4)::before {
  content: "トク技";
  left: 280px;
}

@media screen  and (min-width: 769px){
  .files .file-main::before {
      width: 100px;
  }

    .file-main:nth-child(2)::before {
      left: 115px;
    }
  
    .file-main:nth-child(3)::before {
      left: 220px;
    }
  
    .file-main:nth-child(4)::before {
      left: 325px;
    }
}




.files .file-main.file-none:hover::before{
  transform: scale(1.2);
  height: 60px;
  top:-59px;
  transition: all 0.4s ease-in-out;
}

/* grid-item */
.file{
  display: grid;
  grid-template-columns: repeat(2 , minmax(0px ,1fr));
  padding:30px 24px;
  gap:12px;
  box-sizing: border-box;
}

@media screen and (min-width: 769px){
  .file{
    grid-template-columns:repeat(3,minmax(0px,1fr));
  }
}

.file-data {
  width:100%;
  height: auto;
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  /* 影を少し深く */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-data img{
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.file-subtitle,
.interim-box2{
  display: block;
  padding: 8px 8px 0 8px;
  text-align: center;
  min-height: 2.8em;
}

.file-subtitle h3{
  color:#ffffff;
  font-size: 1.0em;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.interim-box{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  overflow: hidden;
}

/* 各項目のタイトル */
.files-text-area{
  padding: 30px 24px 0;
  width: 100%;
}

.files-text-area h2{
 color:#ffffff;
 font-size: 2.0em;
 font-weight: 600;
 text-align: left;
 line-height: 1.0;
 text-shadow: 2px 2px 5px rgba(0 ,0,0,0.5);
 position: relative;
 display: inline-block;
}

@media screen and (min-width:769px) {
  .files-text-area{
    font-size: 2.4em;
    font-weight: 700;
  }
}

.files-text-area h2::after{
  content:"";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom:-12px;
  left: 0;
  background:linear-gradient(to right, #ffffff 20% , rgba(255,255,255,0.3) 20%);
  border-radius: 2px;
}

/* pagination */
/* 「もっと見る」ボタン専用のスタイル */
.pagination {
  display: flex;
  justify-content: flex-end;
  /* 右寄せ（中央なら center） */
  align-items: flex-end;
  /* ボタンを枠内の下端に固定 */

  /* 🚩 記事がなくてもスペースを確保するための設定 */
  height: 100px;
  /* ボタンの高さ＋余白。必要に応じて調整してください */
  padding: 0 24px 30px;
  box-sizing: border-box;
  /* パディングを含めた高さ計算 */
}

.arrow-next {
  color: #ffffff;
  line-height: 1.0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  font-size: 1.4em;
  font-weight: 700;
  padding: 12px 24px;
  border: #ffffff solid 1px;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;

  /* グラデーション設定：下から上に黒を上げる */
  background: linear-gradient(to top, #000000 50%, transparent 50%);
  background-size: 100% 200%;
  background-position: 0 0;
  transition: all 0.4s ease;
}

.arrow-next:hover {
  transform: translate(-8px, -8px);
  background-position: 0 100%;
  /* 背景を上に引き上げる */

  /* 立体的な影 */
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 1);
  color: #ffffff;
}

/* file内のアニメーション */
.file-contents{
  opacity: 0;
    transform: scale(1.2) translateY(-8px);
    pointer-events: none;
}

.is-file-active .file-contents{
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: all 0.8s ease;
  pointer-events: all;
} 

.file-contents img{
  transition: all 0.4s ease;
}

.hover-in{
  transition: all 0.4s ease;
  transform: scale(1.1);
}