@charset "utf-8";

.gnav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-left: 1rem;
}

.gnavlogo {
  height: auto;
  max-width: 372px;
  width: 100%;
}

.gnavmenu {
  display: flex;
  list-style: none;
}

.gnavmenu a {
  display: block;
  padding: 2rem 1.5rem;
}

.gnavmenu .contact a {
  background-color: #f3131e;
  color: #fff;
  padding: 2rem 3rem;
}

.fixed {
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 10px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

@media screen and (max-width: 1280px) {
  .gnavlogo {
    max-width: 186px;
  }
  .gnavmenu {
    align-items: center;
    flex-direction: column;
    height: 100%;
    justify-content: center;
  }

  .gnavmenu li {
    text-align: center;
    width: 100%;
  }

  .gnavmenu a {
    padding: 1rem;
  }

  .gnavmenu .contact a {
    background-color: #f3131e;
    border-radius: 0.5rem;
    margin: 1rem;
    padding: 1rem;
  }
}

.teaser {
  margin-top: 0;
}

.teaser-unit {
  align-items: center;
  display: flex;
  gap: 5rem;
}

.teaser-unit .teaser-movie {
  width: 64%;
}

.teaser-unit .teaser-movie video {
  height: auto;
  width: 100%;
}

.teaser-unit .teaser-copy {
  text-wrap: nowrap;
  width: 36%;
}

.teaser-unit .teaser-copy p:first-of-type {
  margin-top: 1rem;
}

.scroll-downs {
  align-items: center;
  display: flex;
  margin-top: 2rem;
}

.scroll-downs span {
  margin-left: 1rem;
}

.mousey {
  width: 3px;
  padding: 10px 15px;
  height: 35px;
  border: 1px solid #000;
  border-radius: 25px;
  opacity: 0.75;
  box-sizing: content-box;
}
.scroller {
  width: 3px;
  height: 10px;
  border-radius: 25%;
  background-color: #000;
  animation-name: scroll;
  animation-duration: 2.2s;
  animation-timing-function: cubic-bezier(0.15, 0.41, 0.69, 0.94);
  animation-iteration-count: infinite;
}
@keyframes scroll {
  0% {
    opacity: 0;
  }
  10% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(15px);
    opacity: 0;
  }
}

@media screen and (max-width: 1024px) {
  .teaser-unit {
    align-items: initial;
    flex-direction: column-reverse;
    gap: 0;
  }

  .teaser-unit .teaser-movie,
  .teaser-unit .teaser-copy {
    width: 100%;
  }

  .teaser-unit .teaser-copy {
    padding: 4rem 2rem;
    padding-bottom: 0;
    text-wrap: initial;
  }

  .teaser-unit .teaser-copy p br {
    display: none;
  }
}

.concept {
  display: flex;
  gap: 2.5em;
}

.concept.reverse {
  align-items: center;
  flex-direction: row-reverse;
}

.concept-text {
  width: 22.5em;
}

.concept-text p {
  margin-top: 1rem;
}

.concept-outside {
  flex: 1;
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  width: calc(100% - 22.5em);
}

.reverse .concept-outside {
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  padding-left: 2.5rem;
  text-align: right;
}

.reverse .concept-text {
  width: 40%;
}

.reverse .concept-text h2::before {
  content: none;
}

.concept-plant {
  margin-left: auto;
  margin-right: 0;
  max-width: 1000px;
}

.concept-plant img {
  aspect-ratio: 16 / 9;
  border-radius: 0.5em;
  object-fit: cover;
  width: 100%;
}

.concept-plant .custom-dots-class {
  display: flex;
  gap: 1rem;
  margin-top: 2rem !important;
}

.concept-plant .custom-dots-class > div {
  position: relative;
}

.concept-plant .custom-dots-class > div.active::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 50%;
  margin-left: -0.5rem;
  border: 0.5rem solid transparent;
  border-bottom: 0.5rem solid #000000;
}

.concept-plant .custom-dots-class > div.active img {
  border: 2px solid #000000;
  outline-offset: -2px;
}

.concept-carousel ul {
  list-style: none;
}

.concept-carousel a {
  display: block;
  padding-right: 3rem;
}

.concept-carousel a > :not(:nth-child(1)) {
  margin-top: 0.75rem;
}

.concept-carousel a img {
  border-radius: 0.5rem;
}

.concept-carousel a h3 {
  font-size: clamp(1.25rem, 0.9375rem + 0.5vw, 1.25rem);
}

.concept-carousel a p {
  color: rgba(0, 0, 0, 0.5);
  font-size: clamp(0.875rem, 0.65625rem + 0.35vw, 0.875rem);
  line-height: 150%;
}

@media screen and (max-width: 1024px) {
  .concept-plant .custom-dots-class {
    margin-top: 1rem !important;
  }
}

.concept-point {
  text-align: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 8rem 0;
  position: relative;
}

.concept-point .title-mf {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  max-width: 1280px;
  padding: 0 2.5rem;
}

.bg-fixed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0); /* 上下左右距離ゼロ */
  z-index: -1;
}

.bg-fixed::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/bkg-anniversary02.jpg") no-repeat;
  background-size: cover;
  background-position: top center;
}

.concept-infog {
  align-items: center;
  display: flex;
  margin: 0 auto;
  margin-top: 3.5rem;
  max-width: 1080px;
  padding: 0 2.5rem;
}

.concept-infog-monodukuri,
.concept-infog-kankyou {
  flex: 1;
  width: 100%;
}

.concept-infog-monodukuri a,
.concept-infog-kankyou a {
  aspect-ratio: 1 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.concept-infog-monodukuri a {
  background-image: url("../images/onestop-01.svg");
}

.concept-infog-time {
  max-width: 64px;
  width: 100%;
}

.concept-infog-kankyou a {
  background-image: url("../images/onestop-02.svg");
}

.concept-infog-monodukuri span,
.concept-infog-kankyou span {
  color: #ffffff;
  display: block;
  line-height: 175%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
}

.concept-infog-monodukuri span.title-bold,
.concept-infog-kankyou span.title-bold {
  margin-top: 1.5rem;
}

.concept-infog-monodukuri span:last-child,
.concept-infog-kankyou span:last-child {
  border-top: 1px solid #ffffff;
  padding-top: 0.5rem;
}

@media screen and (max-width: 769px) {
  .concept-infog {
    flex-direction: column;
  }
}

@media screen and (max-width: 1024px) {
  .concept,
  .concept.reverse {
    align-items: initial;
    flex-direction: column;
  }

  .concept-text,
  .concept-outside,
  .reverse .concept-text,
  .reverse .concept-outside {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    width: 100%;
  }

  .reverse .concept-text h2::before {
    content: "";
  }
}

.top-message {
  align-items: center;
  display: flex;
  column-gap: 4rem;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  max-width: 994px;
}

.top-message p {
  margin-top: 1rem;
}

.top-message p:first-of-type {
  margin-top: 3.5rem;
}

.top-message .ceo-name {
  text-align: right;
}

.top-message .anniversary {
  margin-top: 3rem;
}

@media screen and (max-width: 1024px) {
  .top-message {
    flex-direction: column;
  }
}

.casestudy .title {
  margin-top: 3rem;
}

.casestudy-lists {
  display: grid;
  gap: 1.5rem 1.5rem;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.casestudy-lists li {
  align-items: center;
  border: 1px solid rgba(243, 19, 30, 0.2);
  border-radius: 0.5rem;
  column-gap: 1rem;
  display: flex;
  padding: 1rem;
}

.casestudy-lists li:nth-child(8n-7),
.casestudy-lists li:nth-child(8n-6),
.casestudy-lists li:nth-child(8n-5),
.casestudy-lists li:nth-child(8n-4) {
  border: none;
  background-color: rgba(243, 19, 30, 0.1);
}

@media screen and (max-width: 1024px) {
  .casestudy-lists {
    grid-template-columns: repeat(2, 1fr);
  }

  .casestudy-lists li {
    column-gap: 0.5rem;
    padding: 0.75rem;
  }

  .casestudy-lists li img {
    width: 24px;
  }
}

.stats-chart {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.stats-chart div {
  flex: 1;
  max-width: 390px;
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .stats-chart {
    align-items: center;
    flex-direction: column;
  }
}

.top-news {
  align-items: flex-start;
  column-gap: 11.25rem;
  display: flex;
}

.top-news ul {
  display: flex;
  flex-direction: column;
  flex: 1;
  list-style: none;
  row-gap: 1rem;
}

.top-news ul li {
  align-items: flex-start;
  column-gap: 1rem;
  display: flex;
}

.top-news ul li :not(.title-badge) {
  line-height: 175%;
}

@media screen and (max-width: 1024px) {
  .top-news {
    flex-direction: column;
    row-gap: 3rem;
  }

  .top-news ul {
    row-gap: 2rem;
  }

  .top-news ul li {
    flex-wrap: wrap;
  }

  .top-news ul li > a {
    margin-top: 0.5rem;
    width: 100%;
  }
}

.footer-contact {
  background-color: #000;
  color: #fff;
  margin-top: 0;
  padding: 7.5rem 0;
}

.footer-contact h2 {
  color: #fff;
}

.footer-contact h2::before {
  background-color: #fff;
}

.footer-contact h2 .title-badge {
  border: 1px solid #fff;
}

.footer-contact .title-nomal {
  margin-top: 3rem;
}

.footer-contact-lists {
  column-gap: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin-top: 5rem;
  row-gap: 1.5rem;
}

.footer-contact-lists a {
  align-items: center;
  display: flex;
  font-size: 1.25rem;
  height: 100%;
  justify-content: center;
  line-height: 150%;
  margin-top: 0;
  text-align: center;
  width: 100%;
}

@media screen and (max-width: 1024px) {
  .footer-contact-lists {
    grid-template-columns: repeat(1, 1fr);
  }

  .footer-contact-lists a {
    font-size: 1rem;
  }
}

.footer {
  padding-top: 7.5rem;
}

.footer .footer-logo {
  max-width: 260px;
}

.footer .footer-info {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  line-height: 175%;
  margin-top: 3rem;
}

.footer .footer-info ul {
  list-style: none;
  text-align: right;
}

.copyright {
  font-size: 10px;
  padding: 4rem 0;
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .footer .footer-info {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer .footer-info ul {
    text-align: left;
  }
}

/*
 * 下層ページ
 */

/* 会社案内 - colp */
.concept-lists,
.value-lists {
  list-style: none;
}

.concept-lists li,
.value-lists li {
  background-color: rgba(243, 19, 30, 0.1);
  line-height: 175%;
  padding: 2rem;
}

.concept-lists li,
.value-lists li {
  background-image: url("../images/corp/img-concept01.png");
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 0.5rem;
}

.concept-lists li:nth-child(2) {
  background-image: url("../images/corp/img-concept02.png");
}

.concept-lists li:nth-child(3) {
  background-image: url("../images/corp/img-concept03.png");
}

.value-lists li:nth-child(1) {
  background-image: url("../images/corp/img-value01.png");
}

.value-lists li:nth-child(2) {
  background-image: url("../images/corp/img-value02.png");
}

.value-lists li:nth-child(3) {
  background-image: url("../images/corp/img-value03.png");
}

.concept-lists li span,
.value-lists li span {
  color: rgba(243, 19, 30, 0.3);
  display: block;
  font-size: 1.75em;
  margin-bottom: 1rem;
}

.gmap {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 5rem;
}

.gmap iframe {
  aspect-ratio: 16 / 9;
  max-height: 675px;
  width: 100%;
}

/* プラント - plant */
.plant-point {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: space-between;
}

.plant-point > * {
  width: calc(50% - 3rem);
}

.plant-point > h3 {
  align-items: center;
  display: flex;
  margin-top: -1em;
}

.plant-point p + p {
  margin-top: 1em;
}

.plant-point .plant-lists {
  color: #f3131e;
  font-weight: 500;
  list-style: none;
  margin-top: 3rem;
}

.plant-point .plant-lists li + li {
  margin-top: 2rem;
}

.plant-point .plant-lists li span {
  color: initial;
  display: block;
  font-weight: 400;
  line-height: 175%;
  margin-left: 1rem;
  margin-top: 1rem;
}

.plant-point span.before-after {
  display: block;
  font-weight: 500;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.plant-works {
  margin: 3rem auto 7.5rem auto;
  width: 100%;
}

.plant-works .item {
  margin-bottom: 1rem; /* 縦方向の間隔 */
  width: calc(25% - 0.75rem); /* 4列：間隔を考慮 */
}

.plant-works .item img {
  border-radius: 0.5rem;
}

@media screen and (max-width: 1024px) {
  .plant-point {
    flex-direction: column;
  }

  .plant-point > * {
    width: 100%;
  }

  .plant-point > h3 {
    margin-top: 0;
  }

  .plant-works .item {
    width: calc(50% - 0.5rem); /* 2列：間隔を考慮 */
  }
}

/* 製品案内 - product */
.product-nav {
  display: flex;
  font-size: 0.875rem;
  font-weight: 500;
  gap: 3rem;
  justify-content: center;
  list-style: none;
  text-align: center;
}

@media screen and (max-width: 769px) {
  .product-nav {
    gap: 0.5rem;
    margin-left: auto;
    margin-right: calc(50% - 50vw);
    overflow-x: auto; /* 横スクロールを有効化 */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* iOSのスムーズスクロール */
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefoxのスクロールバー非表示 */
    white-space: nowrap;
  }

  /* スクロールバーを非表示 */
  .product-nav::-webkit-scrollbar {
    display: none;
  }

  /* スクロール時に左端から開始 */
  .product-nav:has(li:first-child) {
    justify-content: flex-start;
  }

  /* アイテムのスタイル */
  .product-nav li {
    flex: 0 0 auto; /* 横幅を適切に設定 */
    font-size: 10px;
    max-width: 104px;
    scroll-snap-align: start;
    width: 100%;
  }
}

.product-nav span {
  display: block;
  line-height: 125%;
  margin-top: 1em;
}

.aside-nav .title-bold,
.aside-nav .title-bold span,
.banner-nav .title-bold,
.banner-nav .title-bold span {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.aside-nav .product-nav,
.banner-nav .banne-unit {
  margin-top: 2rem;
}

.banner-nav {
  background-color: #fff;
}

.banner-nav img {
  margin: 0 auto;
}

.banner-nav .banne-unit {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.banner-nav .banne-unit a {
  flex: 1;
}

@media screen and (max-width: 769px) {
  .banner-nav .banne-unit {
    flex-direction: column;
  }
}

.products-list section {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 7.5rem 0;
}

.products-list section:nth-of-type(odd) {
  background-color: #f2f2f2;
}

.products-list section + section {
  margin-top: 0;
}

.products-list section .unit-column {
  align-items: center;
  text-align: center;
}

.products-list section .unit-column h3 span {
  display: block;
  margin-bottom: 1rem;
}

.products-list section .unit-column a {
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
}

.products-list section.onext {
  background-color: #000;
  color: #fff;
}

.products-list section.onext .unit-content h3 {
  color: #fff;
}

.products-list section.onext .unit-content img {
  margin-left: auto;
  margin-right: auto;
  max-height: 2rem;
}

.products-view img {
  margin-left: auto;
  margin-right: auto;
}

.tabs {
  margin: 0 auto;
  margin-bottom: 7.5rem;
  width: 100%;
}

.tab_item {
  width: calc(100% / 3);
  padding: 1rem;
  border-bottom: 3px solid rgba(243, 19, 30, 0.1);
  background-color: rgba(243, 19, 30, 0.1);
  text-align: center;
  display: block;
  float: left;
  transition: all 0.2s ease;
}

.tab_item:hover {
  opacity: 0.75;
}

/* ラジオボタンを非表示 */
.tabs input[type="radio"] {
  display: none;
}

/* タブ切り替えのコンテンツ */
.tab_content {
  display: none;
  padding-top: 1.5rem;
  clear: both;
  overflow: hidden;
}

/* 選択されたタブのスタイル */
.tabs input:checked + .tab_item {
  background-color: #f3131e;
  color: #fff;
}

/* 全ての .tab_content を非表示 */
.tab_content {
  display: none;
}

/* 選択されたタブに対応するコンテンツを表示 */
.tabs input:checked ~ .tab_content[data-tab] {
  display: none;
}

.tabs input:checked[data-tab-target="all"] ~ .tab_content[data-tab="all"],
.tabs input:checked[data-tab-target="programming"] ~ .tab_content[data-tab="programming"],
.tabs input:checked[data-tab-target="design"] ~ .tab_content[data-tab="design"] {
  display: block;
}

.tab_content_description {
  padding: 0 0.5rem;
}

.products-feature ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  list-style: none;
  margin-top: 1.5rem;
}

.products-feature ul li > :not(:nth-child(1)) {
  margin-top: 0.75rem;
}

.products-feature ul h5,
.products-feature ul p {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-bottom: 0;
}

.products-feature ul img {
  border-radius: 0.5rem;
}

.products-feature ul h5 {
  font-size: clamp(1.125rem, 0.9375rem + 0.5vw, 1.125rem);
  min-height: 3em;
}

.products-feature ul p {
  color: rgba(0, 0, 0, 0.5);
  font-size: clamp(0.875rem, 0.65625rem + 0.35vw, 0.875rem);
  line-height: 150%;
}

.products-feature ul .title-bold span {
  display: block;
  font-size: 1rem;
}

.products-applications {
  margin-top: 4rem;
}

.products-applications ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin-top: 1.5rem;
  max-width: 768px;
}

.products-applications ul li {
  border: 1px solid #000;
  border-radius: 999rem;
  padding: 0.75rem 1rem;
}

.products-applications ul li:last-child {
  border: 1px solid transparent;
}

.products-applications ul li:not(:last-child):after {
  content: "の選別";
  margin-right: 0.25rem;
}

.link-lists {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-top: 1.5rem;
}

.link-lists .btn {
  margin-top: 0;
}

@media screen and (max-width: 1024px) {
  .products-feature ul {
    grid-template-columns: repeat(1, 1fr);
  }

  .tab_item {
    width: calc(100% / 2);
  }

  .link-lists {
    flex-direction: column;
  }
}

/* 採用情報 */
.recruit-balloon {
  background: #000;
  border-radius: 999em;
  color: #ffffff;
  display: inline-block;
  padding: 0.5em 2em;
  position: relative;
}

.recruit-balloon:before {
  border: 0.5rem solid transparent;
  border-top: 0.5rem solid #000;
  content: "";
  left: 50%;
  margin-left: -0.5rem;
  position: absolute;
  top: 100%;
}

.recruit-balloon p {
  margin: 0;
  padding: 0;
}

.case-lists {
  list-style: none;
}

.case-lists li {
  align-items: center;
  background-color: rgba(243, 19, 30, 0.1);
  border-radius: 0.5rem;
  column-gap: 0.25rem;
  display: flex;
  line-height: 175%;
  padding: 2rem;
}

.case-lists li img {
  max-width: 100px;
}

.corp-infographics {
  gap: 3rem;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.corp-infographics li {
  background-color: rgba(243, 19, 30, 0.1);
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 2rem 1rem;
  text-align: center;
  width: calc((100% - 6rem) / 3);
}

.corp-infographics li img {
  margin-left: auto;
  margin-right: auto;
  max-width: 120px;
  width: 100%;
}

.corp-infographics li p {
  line-height: 1;
  margin-top: 0.75rem;
}

.corp-infographics li p > span {
  color: rgba(243, 19, 30, 0.8);
  display: block;
  font-weight: 800;
  margin-top: 0.5rem;
}

.tiktok {
  text-align: center;
}

.tiktok strong {
  font-weight: 400;
}

.tiktok a {
  display: inline-block;
  margin-top: 1rem;
}

.tiktok a img {
  width: 100%;
}

.recruit-ideal {
  list-style: none;
}

.recruit-ideal li {
  font-feature-settings: "palt" 1;
  -webkit-font-feature-settings: "palt" 1;
  font-size: clamp(1.3125rem, 0.9375rem + 0.75vw, 1.5rem);
  font-weight: 400;
  line-height: 175%;
}

.recruit-ideal li + li {
  margin-top: 4rem;
}

.checkmark {
  position: relative;
  padding-left: 2em; /* フォントサイズに基づく余白 */
  font-size: clamp(0.875rem, 0.625rem + 0.5vw, 1rem);
  font-weight: 500;
  line-height: 1; /* フォントサイズと同じ高さにする */
  margin-bottom: 2em;
  display: block;
}

.checkmark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.5em; /* フォントサイズに基づく四角形の幅 */
  height: 1.5em; /* フォントサイズに基づく四角形の高さ */
  border: 0.125em solid currentColor; /* フォントサイズに比例、文字色と連動 */
  border-radius: 0.25em; /* フォントサイズに比例して角を丸くする */
  background-color: #fff;
  transform: translateY(-50%);
  box-sizing: border-box;
}

.checkmark::after {
  content: "";
  position: absolute;
  left: 0.5em;
  top: 50%;
  width: 0.5em; /* チェックマークの幅 */
  height: 1em; /* チェックマークの高さ */
  border: solid currentColor; /* 文字色と連動 */
  border-width: 0 0.2em 0.2em 0; /* 斜線部分の太さ */
  transform: translateY(-50%) rotate(45deg);
  box-sizing: border-box;
}

.voice {
  column-gap: 2rem;
  display: flex;
  flex-wrap: wrap;
  row-gap: 3.5rem;
}

.voice-unit {
  flex: 1;
  margin-top: 0;
  max-width: calc(50% - 2rem);
}

.staff-card {
  text-align: center;
  margin-bottom: 3.5rem;
}

.staff-img {
  position: relative;
  border-radius: 999em; /* 丸くする */
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-height: 120px;
  max-width: 120px;
  padding: 7px; /* 外側のボーダー幅 */
  background: linear-gradient(45deg, rgba(243, 19, 30, 0.3), rgba(243, 19, 30, 0.1)); /* 外側のグラデーション */
}

.staff-img::before {
  content: "";
  position: absolute;
  top: 3px; /* 外側ボーダーの幅 */
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 999em;
  background: white; /* 内側の白い線 */
  z-index: 1; /* 画像の下に行かないように調整 */
}

.staff-img img {
  display: block;
  position: relative;
  border-radius: 999em;
  z-index: 2; /* 擬似要素の上に画像を表示 */
  width: 100%; /* 画像サイズ調整 */
  height: auto;
}

.staff-card .title-bold {
  margin-top: 0.5rem;
}

.staff-card .title-bold span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1;
  margin-top: 0.25rem;
}

.accordion-group + .accordion-group {
  margin-top: 1rem;
}

.accordion-006 {
  background-color: rgba(243, 19, 30, 0.1);
  border-radius: 0.5rem;
}

.accordion-006 + .accordion-006 {
  margin-top: 1rem;
}

.accordion-006 summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1.5em 2em;
  color: #333333;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  line-height: 150%;
}

.accordion-006 summary::-webkit-details-marker {
  display: none;
}

.accordion-006 summary::after {
  position: relative;
  top: 0.1em;
  transform: rotate(45deg);
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-bottom: 3px solid #f3131e;
  border-right: 3px solid #f3131e;
  content: "";
  transition: transform 0.3s;
  flex-shrink: 0;
}

.accordion-006[open] summary::after {
  transform: rotate(225deg);
}

.accordion-006 > summary + * {
  opacity: 0;
  margin: 0;
  padding: 0.5em 2em 1.5em;
  color: #333333;
}

.accordion-006[open] > summary + * {
  opacity: 1;
}

.timeline {
  display: grid;
  grid-template-columns: 7.5ch 1fr;
  padding: 0.5em 2em 1.5em;
}

.timeline .timeline-date {
  padding: 1rem;
  padding-left: 0;
}

.timeline .timeline-content {
  border-left: 2px solid #f3131e;
  padding: 1rem;
  padding-right: 0;
}

.timeline .timeline-content span {
  display: block;
  font-weight: 500;
  position: relative;
}

.timeline .timeline-content span::before {
  background-color: #f3131e;
  border-radius: 0.5rem;
  content: "";
  display: block;
  height: 1rem;
  left: calc(-1.5rem - 1px);
  position: absolute;
  width: 1rem;
}

.timeline > :nth-child(1),
.timeline > :nth-child(2) {
  padding-top: 0;
}

.timeline > :nth-last-child(1),
.timeline > :nth-last-child(2) {
  padding-bottom: 0;
}

@media screen and (max-width: 1024px) {
  .corp-infographics {
    flex-direction: column;
  }
  .corp-infographics li {
    width: 100%;
  }

  .voice {
    flex-direction: column;
  }
}

@media screen and (max-width: 769px) {
  .voice-unit {
    max-width: 100%;
  }
}

/* お問い合わせ */
.contact-form form > div {
  align-items: center;
  gap: 1rem;
  display: flex;
  line-height: 175%;
}

.contact-form form > div:not(:first-child) {
  margin-top: 2rem;
}

.contact-form form > div > * {
  flex: 1;
}

.contact-form form > div > label,
.contact-form form > div > span {
  max-width: 10rem;
}

.contact-form input:-webkit-autofill {
  box-shadow: 0 0 0px 1000px #f2f2f2 inset;
}

.contact-form form input[type="text"],
.contact-form form input[type="email"],
.contact-form form input[type="tel"],
.contact-form form textarea {
  background-color: #f2f2f2;
  border: 0;
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

.contact-form .btn {
  margin-left: auto;
  margin-right: auto;
  max-width: 576px;
  width: 100%;
}

.contact-form input.error-field:-webkit-autofill {
  box-shadow: 0 0 0px 1000px #ffcccc inset;
}
.error-field {
  background-color: #ffcccc !important; /* エラー時の背景色 */
}

#error {
  color: red;
  font-weight: bold;
  margin-top: 10px;
}
#loading {
  color: blue;
}

@media screen and (max-width: 1024px) {
  .contact-form form > div {
    align-items: initial;
    flex-direction: column;
  }

  .contact-form form > div > label,
  .contact-form form > div > span {
    max-width: initial;
    width: 100%;
  }
}

.news-post {
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
  padding-bottom: 7.5rem;
}

.privacy-policy {
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
  padding-bottom: 7.5rem;
}

.privacy-policy ul {
  list-style: inside;
}

.privacy-policy ul li {
  line-height: 175%;
}

.privacy-policy .btn {
  margin-top: 1rem;
}

.inview.fadeup {
  opacity: 0;
  transition-duration: 0.8s;
  transform: translateY(40px);
}

.inview.fadeup.active {
  opacity: 1;
  transform: translateY(0px);
}

.solutions.customize .customize-teaser {
  background-color: #f3131e;
  background-image: url("../images/solutions/customize-blueprint-w.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 0;
}

.solutions.customize .customize-teaser .unit {
  background-image: url("../images/solutions/customize-bkgicon01.png"), url("../images/solutions/customize-bkgicon02.png");
  background-position: left center, right center;
  background-repeat: no-repeat, no-repeat;
  background-size: 15% auto, 15% auto;
  max-width: 1080px;
}

.solutions.customize .customize-teaser .title-ff,
.solutions.customize .customize-teaser .title-mf {
  color: #fff;
  font-weight: 325;
  text-align: center;
}

.solutions.customize .customize-teaser .title-ff {
  font-size: clamp(1.75rem, -0.131rem + 3.91vw, 3rem);
  line-height: 1.5;
  padding-bottom: 1em;
  padding-top: 2em;
}

.solutions.customize .customize-teaser .title-mf {
  font-size: clamp(1.094rem, 0.106rem + 2.05vw, 1.75rem);
  display: block;
}

.solutions.customize .customize-teaser .title-mf + .title-mf {
  margin-bottom: 0.5em;
  margin-top: 0.25em;
}

.solutions.customize .customize-teaser img {
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
  width: 100%;
}

@media screen and (max-width: 769px) {
  .solutions.customize .customize-teaser .unit {
    background-size: 25% auto, 25% auto;
    letter-spacing: 0.05em;
    padding: 0 2%;
  }

  .solutions.customize .customize-teaser .title-ff {
    padding-bottom: 0.25em;
  }

  .solutions.customize .customize-teaser img {
    width: 80%;
  }
}

.customize-fukidashi {
  border-bottom: 3px solid #333;
  color: #333;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 1em;
  position: relative;
  text-align: center;
  width: fit-content;
}

.customize-fukidashi:before {
  background-color: #fff;
  border-right: 3px solid #333;
  content: "";
  height: 20px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) skew(-25deg);
  top: 100%;
  width: 10px;
}

.customize-fukidashi .title-badge.top {
  margin-bottom: 1rem;
}

.customize-fukidashi span:not([class]) {
  display: inline-block;
}

.customize-pointlist {
  display: grid;
  font-size: clamp(1.125rem, 0.875rem + 0.6vw, 1.375rem);
  grid-template-columns: repeat(4, 1fr);
  gap: 5rem;
  list-style: none;
  text-align: center;
}

@media screen and (max-width: 769px) {
  .customize-pointlist {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.customize-cbody {
  text-align: center;
}

.customize-cbody span {
  display: inline-block;
}

.customize-linklists {
  display: flex;
  gap: 3rem;
  justify-content: center;
  list-style: none;
  margin-top: 1.75rem;
}

.customize-linklists .btn {
  margin-top: 0;
  max-width: 100%;
  width: 360px;
}

@media screen and (max-width: 769px) {
  .customize-linklists {
    flex-direction: column;
    gap: 1rem;
  }

  .customize-linklists .btn {
    width: 100%;
  }
}

.customize-casestudy {
  padding-bottom: 3.75rem;
  padding-top: 3.75rem;
  position: relative;
}

.customize-casestudy::before {
  aspect-ratio: 1;
  background-color: rgba(243, 19, 30, 0.1);
  content: "";
  height: 100%;
  left: 50%;
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  z-index: -1;
}

.customize-casestudylists li {
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(1rem, 0.624rem + 0.78vw, 1.25rem);
  gap: 1.5rem;
  justify-content: center;
  list-style: none;
}

.customize-casestudylists li + li {
  margin-top: 1.5rem;
}

.customize-casestudylists li span {
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 999em;
  padding: 1em 2em;
}

@media screen and (max-width: 769px) {
  .customize-casestudylists li {
    gap: 1rem;
  }

  .customize-casestudylists li + li {
    margin-top: 1rem;
  }
}

.customize-steps.unit {
  max-width: 1440px;
}

.customize-stepslists {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem;
  list-style: none;
}

.customize-stepslists li {
  border: 1px solid #000;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  padding-top: 0;
}

.customize-stepslists li h4 {
  font-size: clamp(1rem, 0.624rem + 0.78vw, 1.25rem);
  font-weight: 500;
  text-align: center;
}

.customize-stepslists li h4 span {
  align-items: center;
  background-color: #000;
  color: #fff;
  display: flex;
  height: 3rem;
  justify-content: center;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  width: 3rem;
}

@media screen and (max-width: 769px) {
  .customize-stepslists {
    grid-template-columns: repeat(1, 1fr);
  }

  .customize-stepslists li {
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 1rem;
  }

  .customize-stepslists li h4 {
    width: 100%;
  }

  .customize-stepslists li p {
    width: calc(35% - 0.5rem);
  }

  .customize-stepslists li p + p {
    width: 65%;
  }
}

.customize-voice .accordion-group summary {
  color: #1a1a1a;
  font-size: clamp(1rem, 0.624rem + 0.78vw, 1.25rem);
  font-weight: 400;
}

.customize-voice .accordion-group .customize-voicetext {
  display: flex;
  gap: 2.5rem;
  justify-content: space-between;
}

.customize-voice .accordion-group .customize-voicetext > div:first-child {
  width: calc(25% - 2.5rem);
}

.customize-voice .accordion-group .customize-voicetext > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 75%;
}

.customize-voice .accordion-group .customize-voicetext h4 {
  font-size: clamp(1rem, 0.624rem + 0.78vw, 1.25rem);
  font-weight: 400;
}

.customize-voice .accordion-group .customize-voicetext span {
  display: block;
  font-weight: 600;
}

.customize-voice .accordion-group .customize-voicetext ul {
  line-height: 125%;
  list-style: none;
  margin-top: 0.5rem;
}

.customize-voice .accordion-group .customize-voicetext ul li::before {
  color: #f3131e;
  content: "●";
  margin-right: 0.25rem;
}

.customize-voice .accordion-group .customize-voicetext ul li + li {
  margin-top: 0.5rem;
}

@media screen and (max-width: 769px) {
  .customize-voice .accordion-group .customize-voicetext {
    flex-direction: column;
    gap: 1.75rem;
  }
  .customize-voice .accordion-group .customize-voicetext > div:first-child,
  .customize-voice .accordion-group .customize-voicetext > div:last-child {
    width: 100%;
  }
}

.customize-salespointlists {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  list-style: none;
}

.customize-salespointlists li {
  border: 1px solid #000;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.customize-salespointlists li img {
  max-width: 192px;
  width: 100%;
}

.customize-salespointlists li h4 {
  font-size: clamp(1.125rem, 0.875rem + 0.6vw, 1.375rem);
  font-weight: 400;
}

@media screen and (max-width: 769px) {
  .customize-salespointlists li img {
    width: 40%;
  }

  .customize-salespointlists {
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
  }
}

@media screen and (max-width: 769px) {
  .solutions.customize .marquee {
    overflow: hidden;
  }

  .solutions.customize .marquee {
    width: max-content;
  }

  .solutions.customize .marquee.right {
    animation: marquee-right 20s linear infinite;
  }

  .solutions.customize .marquee.left {
    animation: marquee-left 20s linear infinite;
  }

  @keyframes marquee-right {
    from {
      transform: translateX(0%);
    }
    to {
      transform: translateX(-50%);
    }
  }

  @keyframes marquee-left {
    from {
      transform: translateX(-50%);
    }
    to {
      transform: translateX(0%);
    }
  }
}

/* つくりもの */
.customparts .customparts-kv {
  aspect-ratio: 1920/1080;
  margin: 0 auto;
  width: 100%;
}

.customparts .customparts-kv img {
  height: auto;
  width: 100%;
}

.customparts main > section:first-child img {
  border-radius: 0;
}

.customparts ul {
  list-style: none;
}

.customparts-message {
  text-align: center;
}

.customparts-message > * + * {
  margin-top: 1.25rem;
}

.customparts-message strong {
  font-size: clamp(1.375rem, 1rem + 0.85vw, 1.75rem);
  font-weight: normal;
  line-height: 1.5;
}

.customparts-message strong span {
  display: inline-block;
}

.customparts-nav {
  align-items: center;
  display: flex;
  gap: 1rem 2rem;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
}

.customparts-nav li {
  flex: 1;
  max-width: 378px;
  width: 100%;
}

.customparts-nav li a {
  align-items: center;
  background-color: rgba(0, 162, 255, 0.1);
  border: 1px solid rgba(0, 162, 255, 0.5);
  border-radius: 0.5rem;
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
}

.customparts-nav li a img {
  height: 60px;
  object-fit: cover;
  width: 60px;
}

@media screen and (max-width: 769px) {
  .customparts-nav {
    flex-direction: column;
  }

  .customparts-nav li {
    max-width: 100%;
  }
}

.customparts-lists {
  display: grid;
  gap: 4rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 378px), 1fr));
  line-height: 1.5;
}

.customparts-lists li {
  flex: 1;
}

.customparts-lists dl {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.customparts-lists dl dt {
  font-size: 1.5em;
}

.customparts-lists dl dd:nth-of-type(1) {
  display: inline-block;
  order: -2;
  position: relative;
  z-index: 1;
}

.customparts-lists dl dd:nth-of-type(1)::before {
  aspect-ratio: 1/1;
  background-color: rgba(0, 162, 255, 0.1);
  border: 1px solid rgba(0, 162, 255, 0.5);
  border-radius: 50%;
  content: "";
  height: 56%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  z-index: -1;
}

.customparts-lists dl dd:nth-of-type(1) img {
  margin: 0 auto;
}

.customparts-lists dl dd:nth-of-type(2) {
  order: -1;
}

.customparts-lists dl dd:nth-of-type(2) span {
  background-color: rgba(243, 19, 30, 0.1);
  border-radius: 0.25em;
  font-size: 0.75rem;
  letter-spacing: 0;
  padding: 0.5em 1em;
}

.customparts-lists dl dd:nth-of-type(3) {
  background-color: #f2f2f2;
  padding: 1em;
}

.customparts-lists dl dd:nth-of-type(4) ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.customparts-lists dl dd:nth-of-type(4) ul li {
  border: 1px solid #000;
  border-radius: 999rem;
  flex: initial;
  line-height: 1;
  padding: 0.75rem 2rem;
}

.customparts-lists dl dd:nth-of-type(4) ul li:last-child {
  border: 1px solid transparent;
  padding-left: 0;
  padding-right: 0;
}
