@charset "UTF-8";

/************************************
** init
************************************/
.top #content {
  padding-top: 0;
}
.l-content {
  margin: 0 auto;
}
.fw {
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}
.fw-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: calc(
    var(--container_size, 0px) + var(--swl-pad_container, 0px) * 2
  );
  padding-left: var(--swl-pad_container, 0);
  padding-right: var(--swl-pad_container, 0);
}
.inner-wrap,
.wrap {
  width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}
.pc {
  display: block;
}
.sp {
  display: none;
}
@media screen and (max-width: 480px) {
  .inner-wrap,
  .wrap {
    width: auto;
    padding: 30px 0;
  }
  .sp {
    display: block;
  }
  .pc {
    display: none;
  }
}

/************************************
** information
************************************/
.information {
  .rw {
    padding: 0;
    .items {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      .item {
        .cont {
          padding: 20px 30px;
          color: #222;
          font-size: 20px;
          .title {
            font-size: 24px;
            font-weight: bold;
          }
        }
      }
      .item:nth-child(2) {
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
      }
      .item:nth-child(1) .cont {
        border-top: 8px solid;
        border-image: linear-gradient(to right, #3300ff 0%, #00bcd4 100%) 1;
      }
      .item:nth-child(2) .cont {
        border-top: 8px solid;
        border-image: linear-gradient(to right, #009688 0%, #ffeb3b 100%) 1;
      }
      .item:nth-child(3) .cont {
        border-top: 8px solid;
        border-image: linear-gradient(to right, #ff5722 0%, #ffeb3b 100%) 1;
      }
      .item .iw {
        height: 30vh;
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
    }
  }
}
@media screen and (max-width: 480px) {
  .information {
    .rw {
      .items {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        .item {
          flex: 0 0 330px;
          scroll-snap-align: start;
          opacity: 0.4;
          transform: scale(1.0);
          transition: 0.4s ease;
          &.active {
            opacity: 1;
            transform: scale(1);
          }
          .cont {
            padding: 10px 20px;
            font-size: 12px;
            .title {
              font-size: 16px;
            }
          }
        }
        .item .iw {
          height: 20vh;
        }
      }
    }
  }
}
/************************************
** philosophy
************************************/
.philosophy {
  background: url(https://irohanext.com/wp-content/uploads/2025/11/bg_001.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  /* margin-bottom: 60px; */

  .rw {
    width: 1000px;
    text-align: center;
    margin: 0 auto;
    h2 {
      font-size: 32px;
      margin-bottom: 1em;
    }
    p {
      font-size: 1.3em;
      margin-bottom: 30px;
      span {
        display: block;
        margin-bottom: 0.5em;
      }
    }
    p.p2 {
      font-size: 1.5em;
      font-weight: bold;
    }
  }
}
@media screen and (max-width: 480px) {
  .philosophy {
    margin-bottom: 0;

    .rw {
      width: auto;
      h2 {
        font-size: 24px;
        margin-bottom: 1em;
      }
      p {
        font-size: 1.3em;
        margin-bottom: 30px;
        span {
          display: block;
          margin-bottom: 0.5em;
        }
      }
      p.p2 {
        font-size: 1.5em;
        font-weight: bold;
      }
    }
  }
}
/************************************
** 
************************************/
.heading {
  text-align: center;
  margin-bottom: 2em;
  h2 {
    background: none;
    color: #222;
    font-size: 40px;
  }
}

/************************************
** news
************************************/
.news {
  padding-bottom: 60px;
  .items {
    width: 1000px;
    margin: 0 auto;
    .item {
      display: flex;
      align-items: start;
      border-top: 1px solid #e5e7eb;
      padding-top: 20px;
      padding-bottom: 20px;
      .post-meta {
        display: flex;
        align-items: center;
        width: 30%;
        .post-date {
          margin-right: 32px;
          padding-top: 1px;
          letter-spacing: 0.48px;
          line-height: 1.33;
        }
        .category {
          width: 100px;
          height: 24px;
          margin-right: 20px;
          background: #ff7700;
          text-align: center;
          a {
            color: #fff;
          }
        }
      }
      .post-title {
        width: 70%;
        padding-top: 5px;
        font-size: 13px;
        letter-spacing: 0.52px;
        line-height: 1.31;
        a {
          color: #222;
        }
      }
    }
    &:last-child {
      border-bottom: 1px solid #e5e7eb;
    }
  }
}

@media screen and (max-width: 480px) {
  .news {
    .items {
      width: auto;
      .item {
        flex-direction: column;
        padding-top: 4%;
        padding-bottom: 6%;
        .post-meta {
          width: 100%;
          justify-content: space-between;
          margin-bottom: 10px;
          .post-date {
            margin-right: 32px;
            padding-top: 1px;
            letter-spacing: 0.48px;
            line-height: 1.33;
          }
          .category {
            margin-right: 0;
          }
        }
      }
    }
  }
}

/************************************
** service
************************************/
.service .items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  .item {
    position: relative;
  }
  .item a .iw img {
    transition: all 0.5s ease;
  }
  .item a:hover .iw img {
    transform: scale(1.1);
    transition: all 0.5s ease;
    overflow: hidden;
  }
  .item .iw {
    position: relative;
    width: 100%;
    height: 600px;
    background-size: cover;
    overflow: hidden;
    img {
      width: 100%;
      height:100%;
      object-fit: cover;
    }
  }
  .item .iw:after {
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0) 100%
    );
    z-index: 0;
  }
  .item .cont {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    padding: 60px;
    z-index: 2;
    p {
      color: #fff;
    }
    .title {
      font-size: 2em;
    }
  }
}
@media screen and (max-width: 480px) {
  .service .items {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    .item .iw {
      height: 300px;
      img {
        max-width: 100%;
        height: 100%;
      }
    }
    .item .iw:after {
      background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0) 100%
      );
    }
    .item .cont {
      height: 140px;
      padding: 16px;
      p.desc {
        font-size: 12px;
      }
    }
  }
}

/************************************
** reason
************************************/
.reason {
  margin-bottom: 60px;
  .wrap{
    width:calc(100vw - 10%);
  }
  .heading {
    margin-bottom: 60px;
    text-align: center;
    h2 {
      /* 必要に応じてフォントサイズ指定 */
    }
    span {
      position: relative;
      display: inline-block;
      &::before {
        content: "";
        position: absolute;
        bottom: -16px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 1px;
        background: var(--heading-bar-color);
      }
    }
  }

  .items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    .item {
      position:relative;
      .iw {
        position:relative;
        img {
          width: 100%;
          aspect-ratio: 16/12;
          object-fit: cover;
          display: block; /* 画像下の余白対策 */
          border-radius:20px;
        }
      }
      .iw:after {
        display: block;
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background:  rgba(0, 0, 0, 0.3);
        border-radius:20px;
        z-index: 0;
      }
      .cont {
        position:absolute;
        top:70%;
        left:50%;
        transform:translateX(-50%);
        width:90%;
        height:25%;
        border:3px solid #fff;
        border-radius:20px;
        backdrop-filter: blur(8px);        
        padding:0px 20px;
        .box p{
          font-size:24px;
          font-weight:bold;
          text-align:center;
          line-height:1.8;
        }
        .box .p1{
          color:#cbfb06;
          .attention{
            font-size:12px;
            color:#d8d8d8;
          }
        }
        .box .p2{
          color:#fff;
          font-size:18px;
          line-height:1.3;
          .attention{
            font-size:12px;
            color:#d8d8d8;
          }
        }
      }
    }
  }
}

/* スマホ対応 */
@media screen and (max-width: 480px) {
  .reason {
    margin-bottom: 30px;
    .heading {
      margin-bottom: 40px;
      h2 {
        font-size: 24px;
      }
    }
    .items {
      grid-template-columns: repeat(1, 1fr);
      .item{
          .iw img {
            height: auto;
            aspect-ratio: 16/16;
          }
          .cont {
            padding:0 10px;
          .box .p1{
          font-size:18px;
            .attention{
          font-size:12px;
          color:#d8d8d8;
            }
          }
          .box .p2{
          color:#fff;
          font-size: 14px;
          line-height:1.3;
          } 
      } 
          }
      }
    }
  }
}


/************************************
** nayami
************************************/
/* コンポーネント内で完結するように変数を定義 */
.nayami {
  --border-color: #ccc;
  --border-color-mobile: #ddd;
  --accent-color: #ff0000;
  --heading-bar-color: #000000;
  --bg-color: #ffffff;

  margin-bottom: 60px;

  .heading {
    margin-bottom: 60px;
    text-align: center;

    h2 {
      /* 必要に応じてフォントサイズ指定 */
    }

    span {
      position: relative;
      display: inline-block;

      &::before {
        content: "";
        position: absolute;
        bottom: -16px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 1px;
        background: var(--heading-bar-color);
      }
    }
  }

  .items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    /* 【重要】Grid Gapテクニックによる格子状ボーダー */
    /* 親要素の背景色を線の色にする */
    background-color: var(--border-color);
    border: 1px solid var(--border-color); /* 外枠 */
    gap: 1px; /* 隙間＝線の太さ */

    .item {
      background-color: var(--bg-color); /* コンテンツ背景で塗りつぶす */
      display: flex;
      flex-direction: column;
      height: auto; /* 固定の高さ指定を削除（自動伸縮） */

      .iw {
        width: 100%;

        img {
          width: 100%;
          /* height: 240px; */
          aspect-ratio: 16/9;
          object-fit: cover;
          display: block; /* 画像下の余白対策 */
        }
      }

      .cont {
        padding: 10px 20px;
        height: 85px;
        font-size: 20px;
        flex-grow: 1;

        /* 内容が少なくても高さを埋める */

        .p1 span {
          color: var(--accent-color);
        }
      }
    }
  }
}

/* スマホ対応 */
@media screen and (max-width: 480px) {
  .nayami {
    margin-bottom: 30px;

    .heading {
      margin-bottom: 40px;
      h2 {
        font-size: 24px;
      }
    }

    .items {
      /* 列数を2に変更するだけ。ボーダー処理の記述は一切不要 */
      grid-template-columns: repeat(2, 1fr);

      /* スマホ用の線の色へ上書き */
      background-color: var(--border-color-mobile);
      border-color: var(--border-color-mobile);

      .item {
        .iw img {
          height: auto;
          aspect-ratio: 16/9;
        }

        .cont {
          height: 56px;
          padding: 5px 10px;
          font-size: 14px;
        }
      }
    }
  }
}
/************************************
** change temporarily
************************************/
.service .heading {
  display: none;
}
