@layer base {
  /* tenasap-header */
  .tenasap-header .logo {
    width: 104px;
    height: 108px;
    border-bottom-right-radius: 55px;
  }
  .tenasap-header .logo .link {
    padding: 17px 22px 27px 13px;
  }
  @media (min-width: 768px) {
    .tenasap-header .logo {
      width: 196px;
      height: 196px;
      border-bottom-right-radius: 100px;
    }
    .tenasap-header .logo .link {
      padding: 32px 41px 50px 32px;
    }
  }
  .tenasap-header .inner {
    padding-left: 104px;
  }
  @media (min-width: 768px) {
    .tenasap-header .inner {
      padding-left: 212px;
    }
  }

  /* button-link */
  .button-link {
    border-color: #1166ca;
    color: #1166ca;
  }

  .main {
    overflow: hidden;
    padding-top: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--gap-xxxl);
    background: #fcfcfc;
  }
  @media (min-width: 768px) {
    .main {
      padding-bottom: var(--gap-xxxxl);
    }
  }
  .menu-open .header .inner {
    background-color: unset;
  }
  @media (min-width: 768px) {
  }

  @keyframes slideAnime {
    0% {
      opacity: 0;
      z-index: 10;
      transform: scale(1);
    }

    5% {
      opacity: 1;
    }

    95% {
      opacity: 1;
    }

    100% {
      opacity: 0;
      z-index: 1;
      transform: scale(1.3);
    }
  }

  /* MacのChromeでのチラつき防止用（スケール変化なし） */
  @keyframes slideAnime-no-scale {
    0% {
      opacity: 0;
      z-index: 10;
    }

    5% {
      opacity: 1;
    }

    95% {
      opacity: 1;
    }

    100% {
      opacity: 0;
      z-index: 1;
    }
  }

  /* MacのChromeの時だけ、アニメーション名を上書きする */
  .is-mac-chrome .fv .slide .picture {
    animation-name: slideAnime-no-scale;
  }
  /*
  * fv
  */
  .fv {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: auto;
    min-height: 390px;
    max-height: 600px;
    height: 108vw;
    gap: 55px;
    background: linear-gradient(132deg, #0c99f2 1.43%, #1d6dc8 28.25%) no-repeat
      left top / 100%;
    padding: 0 0 min(56px, 11.11vw) min(136px, calc(var(--content-spacing) * 2));
  }
  .fv .slide {
    display: block;
    position: absolute;
    top: 0;
    left: min(56px, var(--content-spacing));
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
  }
  .fv .slide .picture {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 1;
    animation: slideAnime 20s infinite;
  }
  .fv .slide .picture.picture1 {
  }
  .fv .slide .picture.picture2 {
    animation-delay: 5s;
  }
  .fv .slide .picture.picture3 {
    animation-delay: 10s;
  }
  .fv .slide .picture.picture4 {
    animation-delay: 15s;
  }
  .fv .slide .picture .img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
  }
  .fv .title {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
  .fv .title span {
    background: #fff;
    padding-inline: 8px;
    color: var(--text-color);
    letter-spacing: 1px;
    font-size: clamp(22px, 6.11vw, 54px);
    font-weight: var(--weight-bold);
    text-align: left;
  }
  .fv .title span.sub-title {
    margin-bottom: 4px;
    font-size: clamp(16px, 4.44vw, 32px);
  }
  .fv .badge {
    position: relative;
    z-index: 1;
    width: 190px;
    height: 94px;
  }
  .fv .badge .img {
    width: 100%;
    height: auto;
  }
  @media (min-width: 768px) {
    .fv .badge {
      width: 257px;
      height: 107px;
    }
    .fv {
      max-height: 100vh;
      height: 600px;
      gap: 55px;
      padding-top: 140px;
    }
    .fv .title {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: var(--gap-md);
    }
    .fv .title span {
      background: #fff;
      padding-inline: 16px;
      color: var(--text-color);
    }
    .fv .title span.sub-title {
      margin-bottom: 12px;
      font-size: 32px;
    }
  }

  /* section */
  .section {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xl);
  }
  .section .error {
    width: 100%;
    display: block;
    text-align: center;
    grid-column: 4 span;
    padding-block: var(--p-xl);
  }
  @media (min-width: 768px) {
    .section {
      padding-inline: var(--content-spacing);
    }
  }

  /* section-introduction */
  .section-introduction {
    display: block;
    background: #fff;
    padding: 0 0 var(--p-xxxl);
  }
  .section-introduction .title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px var(--content-spacing) 32px;
    background: linear-gradient(to top, #fff 70px, #1d6dc8 70px) no-repeat left
      top / 100%;
  }
  .section-introduction .title span {
    color: var(--text-contrast-color);
    font-size: clamp(18px, 3.6vw, 24px);
    font-weight: var(--weight-bold);
    text-align: left;
    line-height: var(--line-height-lg);
  }
  .section-introduction .title::after {
    content: '';
    display: block;
    width: 100%;
    height: 200px;
    margin-top: 32px;
    background: url(../image/home_introduction_img_sp.jpg) no-repeat center
      center / cover;
  }
  .section-introduction .content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--gap-xl);
    padding: 0 var(--content-spacing);
  }
  .section-introduction .content .text {
    line-height: var(--line-height-lg);
  }
  @media (min-width: 768px) {
    .section-introduction {
      padding: 0 0 var(--p-xxxl);
    }
  }
  @media (min-width: 900px) {
    .section-introduction .title {
      padding: 56px var(--content-spacing) 56px
        calc(var(--content-spacing) + min(30%, 456px) + 24px);
      background: linear-gradient(to top, #fff 30px, #1d6dc8 30px) no-repeat
        left top / 100%;
    }
    .section-introduction .title::after {
      position: absolute;
      top: 56px;
      left: var(--content-spacing);
      max-width: 456px;
      width: 30%;
      height: auto;
      aspect-ratio: 684 / 566;
      margin-top: 0;
      background: url(../image/home_introduction_img_pc.jpg) no-repeat center
        center / cover;
    }
    .section-introduction .content {
      padding: 0 var(--content-spacing) 0
        calc(var(--content-spacing) + min(30%, 456px) + 24px);
    }
    .section-introduction .button-link {
      margin-inline: 0;
    }
  }

  /* section-links */
  .section-links {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 32px;
    padding: 40px var(--content-spacing);
    background: #efefef;
  }
  .section-links .link {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 160px;
    border-radius: 4px;
    text-decoration: none;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
  }
  .section-links .link .title {
    position: relative;
    display: block;
    width: 100%;
    padding: 8px;
    border-radius: 0 0 4px 4px;
    background: rgba(72, 72, 72, 0.8);
    color: #fff;
    font-size: 18px;
    font-weight: var(--weight-bold);
    text-align: center;
    z-index: 1;
  }
  .section-links .link .image {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    transform: scale(1);
    transition: 0.3s;
  }
  .section-links .link .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .section-links .link:hover {
    opacity: 0.9;
  }
  .section-links .link:hover .image {
    transform: scale(1.1);
  }
  @media (min-width: 520px) {
    .section-links {
      grid-template-columns: repeat(2, 1fr);
    }
    .section-links .link .title {
      padding: 16px;
    }
  }
  @media (min-width: 900px) {
    .section-links {
      grid-template-columns: repeat(4, 1fr);
    }
    .section-links .link {
      position: relative;
      display: flex;
      align-items: flex-end;
      width: 100%;
      height: auto;
      min-height: 160px;
      aspect-ratio: 256 / 212;
      border-radius: 4px;
      text-decoration: none;
      overflow: hidden;
      background: #fff;
      transition: 0.3s;
    }
  }

  /* section-corner */
  .section-corner .corner-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
    padding-top: 80px;
  }
  .section-corner .corner-wrapper .title {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding-inline: var(--content-spacing);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
  }
  .section-corner .corner-wrapper .title .cornerIcon {
    display: none;
  }
  .section-corner .corner-wrapper .title::before {
    content: '';
    width: 40px;
    height: 40px;
    background: url(../image/home_corner_icon.svg) no-repeat center center /
      contain;
  }
  @media (min-width: 768px) {
    .section-corner .corner-wrapper .title {
      padding: 0;
    }
  }

  /* section-news */
  .section-news .corner-wrapper .title {
    margin-inline: var(--content-spacing);
    padding-left: 15px;
    border-left: 3px solid #1d6dc8;
  }
  .section-news .corner-wrapper .title::before {
    content: none;
  }
  @media (min-width: 768px) {
    .section-corner .corner-wrapper .title {
      margin-inline: 0;
    }
  }

  .section-news .posts {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    padding-inline: var(--p-lg);
    margin-inline: var(--content-spacing);
  }
  .section-news .posts .post-news {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    padding-block: var(--p-lg);
    border-top: 1px solid var(--border-color);
  }
  .section-news .posts .post-news:nth-child(1) {
    border: none;
  }
  .section-news .posts .post-news .heading {
    order: 2;
    font-size: var(--font-size-lg);
    line-height: var(--line-height-md);
    text-align: left;
    color: var(--text-color);
    font-weight: var(--weight-normal);
  }
  .section-news .posts .post-news .heading .link {
    color: var(--text-color);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }
  .section-news .posts .post-news .heading .link:hover {
    color: var(--main-color);
  }
  .section-news .posts .post-news .time {
    order: 1;
    color: var(--text-sub-color);
    display: flex;
    align-items: center;
  }
  .section-news .posts .post-news .new::after {
    content: 'NEW';
    font-size: var(--text-xs);
    color: var(--text-contrast-color);
    line-height: var(--line-height-md);
    background-color: var(--new-color);
    padding-inline: 10px;
    margin-left: 10px;
    border-radius: 8px;
  }
  .section-news .post-nothing {
    padding-block: var(--p-xl);
    text-align: center;
    font-size: var(--text-sm);
  }
  @media (min-width: 768px) {
    .section-news .posts {
      position: relative;
      padding-top: var(--p-xl);
      padding-bottom: var(--p-xl);
      padding-left: var(--p-xl);
      padding-right: var(--p-xl);
      background: var(--contents-bg-color);
      gap: var(--gap-lg);
      margin-inline-start: 0;
      margin-inline-end: 0;
    }
    .section-news .posts .post-news {
      padding-top: 0;
      padding-bottom: 0;
      align-items: center;
      border: none;
      display: flex;
      flex-direction: row;
    }
    .section-news .posts .post-news .heading {
      width: calc(100% - 160px - var(--gap-md));
    }
    .section-news .posts .post-news .time {
      width: 160px;
    }
    .section-news .button-link {
      margin-top: 20px;
    }
    .section-news .post-nothing {
      padding-block: 0;
      font-size: var(--text-md);
    }
  }
}

/* section-swiper */
.section-swiper .scube-typeA-pagenation,
.section-swiper .scube-typeB-pagenation {
  margin-top: 10px;
  text-align: center;
}
@media (min-width: 900px) {
  .section-swiper {
    padding-inline: var(--content-spacing);
  }
  .section-swiper .scube-typeA-pagenation,
  .section-swiper .scube-typeB-pagenation {
    display: none;
  }
}

/* scube-typeA */
.scube-typeA {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap-md);
  width: 160%;
  transform: translateX(calc(calc(100% - 135%) / 2));
}
.scube-typeA .item {
  display: grid;
  grid-template-rows: auto 61px 1fr;
  position: relative;
  border: 1px solid var(--border-color);
  background: var(--contents-bg-color);
}
.scube-typeA .item:hover {
  border-color: var(--main-color);
}
.scube-typeA .item:hover .pic {
  opacity: 0.7;
}
.scube-typeA .pic.stage-negotiation {
  position: relative;
}
.scube-typeA .pic.stage-negotiation::after {
  content: '商談中';
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 80px;
  height: 20px;
  background: #e0af1b;
  border-radius: 8px;
  color: var(--text-contrast-color);
  font-size: var(--text-sm);
  line-height: 1.3;
  text-align: center;
  translate: -50% -50%;
}
.scube-typeA .pic img {
  width: 100%;
  aspect-ratio: 1;
  -o-object-fit: cover;
  object-fit: cover;
}
.scube-typeA .industry {
  background: #eaeaea;
  padding: 8px;
  color: #222;
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  line-height: 22.5px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 12px;
  overflow: hidden;
}
.scube-typeA .industry-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.scube-typeA .industry-item img {
  width: 30px;
  height: auto;
}

.scube-typeA .info {
  background-color: var(--contents-bg-color);
  font-size: var(--text-md);
  padding: var(--p-md);
  overflow: hidden;
}
.scube-typeA .price {
  font-size: var(--text-price);
  font-weight: var(--weight-bold);
  color: var(--price-color);
}
.scube-typeA .price .unit {
  font-size: 0.7em;
}
.scube-typeA .spec {
  font-size: var(--text-sm);
  overflow: hidden;
}
.scube-typeA .spec .rimawari {
  font-weight: var(--weight-bold);
}
.scube-typeA .spec .rimawari .red {
  color: var(--price-color);
}
.scube-typeA .comment {
  display: none;
}
.scube-typeA .link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.swiper-initialized .scube-typeA {
  display: flex;
  width: 100%;
  transform: none;
  gap: initial;
}
.swiper-initialized .scube-typeA .swiper-slide {
  width: 250px;
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .scube-typeA {
    width: 100%;
    transform: none;
    display: grid;
    grid-template-columns: repeat(4, calc((100% - (22px * 3)) / 4));
    gap: 20px 22px;
  }
  .scube-typeA .item .comment {
    display: block;
    font-size: var(--text-sm);
    padding-top: var(--p-md);
    margin-top: var(--p-md);
    border-top: 1px solid var(--border-color);
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    -webkit-line-clamp: 3;
  }
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes skeltonLoading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.skelton-typeA-list {
  display: grid;
  grid-template-areas: 200px 10px 10px 10px;
  gap: var(--gap-md);
  width: calc((100% - 20px) / 1.2);
  margin-inline: auto;
}
.skelton-typeA-list:not(:nth-child(1)) {
  display: none;
}
.skelton-typeA-list .item-image {
  aspect-ratio: 1;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ddd;
}
.skelton-typeA-list .item-image::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  animation: skeltonLoading 1.2s ease-in-out infinite;
}
.skelton-typeA-list .item {
  height: 18px;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ddd;
}
.skelton-typeA-list .item::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  animation: skeltonLoading 1.2s ease-in-out infinite;
}
@media (min-width: 460px) {
  .skelton-typeA-list {
    width: calc((100% - 20px) / 1.8);
  }
}
@media (min-width: 900px) {
  .skelton-typeA-list {
    width: 100%;
    display: grid;
    grid-template-areas: 200px 10px 10px 10px;
    gap: var(--gap-md);
  }
  .skelton-typeA-list:not(:nth-child(1)) {
    display: grid;
  }
}
