@charset "UTF-8";

/* ==========================================================================
   Top
   ========================================================================== */
.p-topHero__viewport {
  /* position: sticky;
  top: 0; */
  position: static;
  height: auto;
  overflow: visible;

  @media screen and (min-width: 1024px) {
    height: 100svh;
    overflow: hidden;
  }
}

.p-topHero__track {
  display: block;
  width: auto;
  height: auto;


  @media screen and (min-width: 1024px) {
    display: flex;
    height: 100%;
    width: max-content;
    /* 各パネル幅の合計がそのままトラック幅になる */
    will-change: transform;
  }
}

.p-topHero__main {
  display: block;
  width: auto;
  height: auto;

  @media screen and (min-width: 1024px) {
    display: flex;
    height: 100%;
    width: max-content;
    /* 各パネル幅の合計がそのままトラック幅になる */
    will-change: transform;
  }
}

.p-topHero__panel {
  width: 100%;
  height: auto;
  padding-top: var(--base-padding-top);
  padding-bottom: var(--base-padding-bottom);

  @media screen and (min-width: 1024px) {
    /* padding-top: 5rem; */
    padding-top: calc(var(--vu) * 5.5);
    padding-bottom: var(--base-padding-top);
    width: 100vw;
    min-width: calc(1520px + var(--padding-inline) * 2);
    flex: 0 0 auto;
    height: 100%;
    position: relative;

    .inner {
      max-width: 100%;
      padding-inline: 6.4vw;
    }
  }
}


/* パネルごとの幅はデザイン通りに指定(vw/pxはお好みで) */
.p-topHero__panel--fv {
  padding: 0;
  position: relative;

  @media screen and (min-width: 1024px) {
    min-width: 100vw;
  }
}

@media screen and (min-width: 1024px) {

  .p-topHero__panel--about {
    width: 68vw;
    min-width: 1080px;
    /* width: 76vw;
    min-width: 1120px; */
  }

  .p-topHero__panel--products {
    min-width: 1025px;
    /* max-width: 72vw; */
    /* width: 68vw;
    min-width: 1025px; */
  }

  .p-topHero__panel--contact {
    width: 26vw;
    min-width: 420px;
  }

  .p-topHero__panel--footer {
    min-width: fit-content;
    width: 20vw;
    padding-bottom: 1.5rem;

  }
}

.p-topHero__label {
  font-family: var(--font-en);
  font-size: 1.25em;
  /* font-size: 1.75vw; */
  font-weight: 700;
  display: flex;
  /* gap: 0.5rem; */
  gap: 0.5vw;
  margin-top: 0;
  margin-bottom: 1.25rem;

  @media screen and (min-width: 1024px) {
    /* font-size: 1.75vw; */
    /* gap: 0.5vw; */
    font-size: calc(var(--vu) * 1.75);
    gap: calc(var(--vu) * 0.5);
  }

  span {
    font-weight: 600;
  }
}

.p-topHero__title {
  font-size: 1.875em;
  line-height: calc(44/30);
  font-weight: 700;
  margin-top: 0;

  @media screen and (min-width: 1024px) {
    /* font-size: 2.65vw; */
    font-size: calc(var(--vu) * 2.65);
    line-height: 1.65;

  }

}

.p-topHero__text {
  @media screen and (min-width: 1024px) {
    /* font-size: 1.375vw; */
    font-size: calc(var(--vu) * 1.375);
  }
}

.p-topHero__button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-weight: 500;
  padding: 0.25rem 1.5rem;
  max-width: fit-content;

  @media screen and (min-width: 1024px) {
    /* font-size: 1.375vw; */
    font-size: calc(var(--vu) * 1.375);
  }

  &:hover {
    opacity: 1;
    color: rgb(var(--color-base));
    background-color: rgb(var(--color-primary));
    border-color: rgb(var(--color-primary));
  }
}

.p-topHero__panel--image {
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ==========================================================================
   reveal animation
   ========================================================================== */

.js-reveal {
  position: relative;
  overflow: hidden;
  /* マスクがボックス外へ出て行く分を隠す */
}

.p-topHero__revealMask {
  /* display: none; */
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgb(var(--color-contrast));
  pointer-events: none;
  transform: translateX(100%);
  /* 初期:ボックスの右外で待機 */
  will-change: transform;

  @media screen and (min-width: 1024px) {}
}

.p-topHero__revealMask.has-gray-light-background-color {
  background-color: rgb(var(--color-gray-light));
}

.p-topHero__revealItem {
  display: block;
  /* 初期:右側を100%クリップ=全部非表示 */
  clip-path: inset(0% 100% 0% 0%);
  will-change: clip-path;

  @media screen and (min-width: 1024px) {}
}

img.p-topHero__revealItem {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* 初期状態（JSが効く前のフォールバック） */
.js-reveal .p-topHero__revealMask {
  transform: translateX(0%);
}

/* ==========================================================================
   fv
   ========================================================================== */
.p-topHero__panel--fv {
  aspect-ratio: 780/1688;
  min-height: 100svh;
  overflow: hidden;

  @media screen and (min-width: 768px) {
    aspect-ratio: 4/3;
    min-height: inherit;
  }

  @media screen and (min-width: 1024px) {
    height: auto;
    aspect-ratio: auto;
  }
}

.p-topHero__fv {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;

  .splide__track {
    height: 100%;
  }

  .splide__arrow {
    width: 1.5rem;
    height: 1.5rem;
    opacity: 1;
    background: rgba(var(--color-base), 0);
    border: 1px solid rgb(var(--color-primary));
    transition: background .3s;

    &:hover {
      background: rgb(var(--color-base));

    }

    @media screen and (min-width: 768px) {
      width: 2.5rem;
      height: 2.5rem;
    }

    @media screen and (min-width: 1025px) {
      width: 4vw;
      height: 4vw;
    }

    svg {
      fill: rgb(var(--color-primary));
      height: 1.2em;
      width: 1.2em;

      @media screen and (min-width: 1025px) {
        width: 80%;
        height: 80%;
      }
    }
  }
}

.p-topHero__fvImages {
  width: 100%;
  height: 100%;

  div {
    width: 100%;
    height: 100%;
    display: grid !important;

    img {
      grid-area: 1 / 1;
      transition: opacity .5s, visibility .3s, transform 10s ease-out;
    }

    .color {
      opacity: 0;
      visibility: hidden;
    }
  }

  &:hover {
    .color {
      opacity: 1;
      visibility: visible;
    }

    .mono {
      opacity: 0;
      visibility: hidden;
    }
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 10s ease-out;
  }

  .pc {
    display: none !important;
  }

  @media (min-width: 768px) {
    .pc {
      display: grid !important;
    }

    .sp {
      display: none;
    }
  }

}

.splide__slide.is-active .p-topHero__fvImages img {
  transform: scale(1);
  transition-delay: 0s;
}


.p-topHero__fvCopy {
  display: none;
}

@keyframes scroll-dot {
  from {
    transform: translateY(0);
  }

  5% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  95% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: translateY(120px);

  }
}

@media (min-width: 1024px) {
  @keyframes scroll-dot {
    from {
      transform: translateX(0);
    }

    5% {
      opacity: 1;
    }

    70% {
      opacity: 1;
    }

    95% {
      opacity: 0;
    }

    100% {
      opacity: 0;
      transform: translateX(12vw);
    }
  }
}

.p-topHero__scrollCue {
  font-family: var(--font-en);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgb(var(--color-primary));
  writing-mode: vertical-rl;
  margin: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;

  @media (min-width: 1024px) {
    writing-mode: horizontal-tb;
    /* bottom: 4rem; */
    bottom: 7.5vh;
    right: 0;
    left: auto;
  }

  span {
    /* font-size: 0.875rem; */
    font-size: 1.275vw;
    font-weight: 700;
    text-transform: capitalize;

    @media (min-width: 1024px) {
      /* font-size: 1.275vw; */
      font-size: calc(var(--vu) * 1.275);
    }
  }
}

.p-topHero__scrollLine {
  width: 1px;
  height: 120px;
  margin: 0;
  background-color: rgb(var(--color-primary));
  position: relative;

  @media (min-width: 1024px) {
    margin-block: 0.5rem;
    /* width: 120px;
    height: 1px; */
    width: 12vw;
    height: 0.1vw;
  }

  &::before {
    content: "";
    width: 0.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: rgb(var(--color-primary));
    position: absolute;
    left: -0.25rem;
    top: -0.25rem;
    opacity: 0;
    animation: scroll-dot 2s ease-in-out 0.8s infinite;
    /* 適宜省略 */
    transition: transform .3s;

    @media (min-width: 1024px) {
      left: 0;
      width: 0.75vw;
      top: -0.35vw;

    }
  }
}

.p-topHero__news {
  width: calc(100% - 2rem);
  /* height: 10rem; */
  max-width: 48rem;
  padding: 1rem 3rem;
  overflow: hidden;
  background-color: rgba(var(--color-base), 0.35);
  color: rgb(var(--color-base));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 3;
  clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);

  @media (min-width: 480px) {
    padding: 1rem 3rem 1rem 5rem;
    flex-direction: row;
    align-items: center;
  }

  @media (min-width: 1024px) {
    width: 100%;
    max-width: 58vw;
    /* height: 3.5rem; */
    /* height: 7vh; */
    height: calc(var(--vu) * 3.9);
    padding: 0 3rem 0 5rem;
    /* clip-path: polygon(5vw 0%, 100% 0%, 100% 100%, 0% 100%); */
    clip-path: polygon(calc(var(--vu) * 5) 0%, 100% 0%, 100% 100%, 0% 100%);
  }

  .splide {
    width: 100%;
    margin: 0;
    overflow: hidden;

    @media (min-width: 480px) {
      width: calc(100% - 3.5rem - 2rem);
    }

    @media (min-width: 1024px) {
      /* width: calc(100% - 5vw - 2rem); */
      width: calc(100% - var(--vu) * 5 - 2rem);
      height: 100%;
    }
  }

  .splide__track {
    display: flex;
    align-items: center;
    height: 100%;
  }
}

.p-topHero__newsLabel {
  width: 3.5rem;
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 2rem 1rem 0;
  letter-spacing: 0;
  line-height: 1;

  @media (min-width: 480px) {
    margin-block: 0;

  }

  @media (min-width: 1024px) {
    /* width: 5vw;
    font-size: 1.5vw; */
    width: calc(var(--vu) * 5);
    font-size: calc(var(--vu) * 1.5);
  }
}

.p-topHero__newsLink {
  width: 1.25rem;
  height: 1.25rem;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border-radius: 50%;
  border: 1px solid rgb(var(--color-base));
  color: rgb(var(--color-base));
  background-color: rgb(var(--color-primary)/0);
  position: absolute;
  right: 1rem;
  top: 50%;
  translate: 0 -50%;

  &:hover {
    opacity: 1;
    background-color: rgb(var(--color-primary));
    border-color: rgb(var(--color-primary));
  }

  .svgicon {
    width: 0.675rem;
  }

  @media (min-width: 1024px) {
    width: 2vw;
    height: 2vw;

    .svgicon {
      width: 1vw;
    }
  }
}

.p-topHero__news .p-postList {
  flex-direction: row;
  flex-wrap: nowrap;
  height: auto;
  gap: 0;
  /* align-items: center; */
}

.p-topHero__news .p-postList__item {
  margin-right: 1.5rem;
  padding-bottom: 0;
  border-bottom: none;

  .p-postDetail__meta {
    font-size: 0.875rem;

    @media (min-width: 1024px) {
      /* font-size: 1.2vw; */
      font-size: calc(var(--vu) * 1.2);
    }
  }

  .tag {
    color: rgb(var(--color-base));
    border-color: rgb(var(--color-base));
  }

  .p-postDetail__date {
    font-family: var(--font-en);
  }
}

.p-topHero__news .p-postList__link {
  display: flex;
  align-items: flex-start;
  flex-direction: column;

  @media (min-width: 1024px) {
    flex-direction: row;
    align-items: center;

  }
}

.p-topHero__news .p-postList__card {
  padding-right: 0;

  &::after {
    display: none;
  }

  a {
    color: rgb(var(--color-base));
    flex-wrap: nowrap;

    &:hover {
      opacity: 1;
      color: rgb(var(--color-primary));

      .tag {
        color: rgb(var(--color-primary));
        border-color: rgb(var(--color-primary));
      }
    }
  }

  .p-postDetail__title {
    font-size: 0.875rem;
    line-height: 1.6;

    /* margin-top: 0; */
    /* -webkit-line-clamp: 1; */
    @media (min-width: 480px) {
      -webkit-line-clamp: 1;
    }

    @media (min-width: 1024px) {
      /* font-size: 1.25vw; */
      font-size: calc(var(--vu) * 1.25);
      max-width: 54vw;
      /* max-width: 24rem; */
      margin-top: 0;
      margin-left: 0.8em;
    }
  }
}

/* ==========================================================================
   about
   ========================================================================== */
.p-topHero__panel--about {
  color: rgb(var(--color-base));
  position: relative;
  padding-bottom: var(--base-padding-top);
  /* @media screen and (min-width: 1024px) {
    position: static;
  } */

  &::before {
    content: "";
    display: block;
    width: 100%;
    height: 120%;
    /* height: fit-content; */
    background: url(../img/bg-top.jpg) no-repeat center center / cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;

    @media screen and (min-width: 1024px) {
      width: 120vw;
      height: 100vh;
      padding-bottom: var(--base-padding-bottom);
      min-width: 1520px;
      min-height: 100%;
    }
  }

  &::after {
    content: "";
    display: none;
    width: 100%;
    height: 25%;
    /* background-image: linear-gradient(to top, #fff 20%, transparent); */
    background-image: linear-gradient(to top, transparent 26%, rgba(0, 0, 0, 0.4) 72%, transparent);
    position: absolute;
    z-index: 1;
    bottom: -12%;

    @media screen and (min-width: 1024px) {
      width: 50vw;
      height: 100vh;
      background-image: linear-gradient(to right, transparent 26%, rgba(0, 0, 0, 0.4) 72%, transparent);
      top: 0;
      right: -14vw;
      /* width: 50vw;
      height: 100vh;
      opacity: 0;
      background-image: linear-gradient(to left, #fff 20%, transparent);
      top: 0;
      right: -44vw; */
    }
  }

  .cad {
    width: 80%;
    aspect-ratio: 428 / 303;
    background: url(../img/top-about-cad.svg) no-repeat center center / auto 100%;
    position: absolute;
    bottom: -3%;
    right: 0;
    z-index: 3;

    @media screen and (min-width: 768px) {
      bottom: -9%;
    }

    @media screen and (min-width: 1024px) {
      width: auto;
      height: 44vh;
      bottom: 6vh;
      right: -19vw;
    }

    @media screen and (min-width: 1400px) {
      right: -30vw;
    }
  }

  .inner {
    position: relative;
    z-index: 3;

    @media screen and (min-width: 1024px) {
      column-gap: 3.5rem;
      display: grid;
      grid-template-columns: 44vw 40vw;
    }

    @media screen and (min-width: 1280px) {
      column-gap: 4vw;
      grid-template-columns: 34vw 25vw;
    }
  }

  @media screen and (min-width: 1024px) {

    .p-topHero__textArea {
      /* flex-basis: 32rem; */
      /* flex-basis: calc(40vw - 3.5rem); */
      width: 100%;
      grid-column: 1/2;
      grid-row: 1;
    }

    .p-topHero__title {
      margin-bottom: 1.5rem;
    }


  }

  .p-topHero__panel--image {
    margin-block: 2.5rem;
    aspect-ratio: 360/560;
    /* max-width: 22.5rem;
    max-height: 35rem; */
    /* max-width: calc(28.5vw - 3.5rem); */
    max-height: 75vh;
    /* max-width: 30vw; */
    margin-left: auto;
    overflow: hidden;
    width: 100%;
    grid-column: 2/3;
    grid-row: 1;

    @media screen and (min-width: 1024px) {
      margin-block: 0;
    }
  }

  .p-topHero__button {
    color: rgb(var(--color-base));

    @media screen and (min-width: 1024px) {
      margin-top: 2.5rem;
    }
  }
}



/* ==========================================================================
   p-topHero__panel--dieCasting
   ========================================================================== */
.p-topHero__panel--dieCasting {
  background-image: linear-gradient(to bottom, transparent, #fff 15%);
  /* background-color: #fff; */
  position: relative;
  z-index: 3;
  overflow: hidden;

  @media screen and (min-width: 1024px) {
    background-image: linear-gradient(to right, transparent, #fff 15%);

    .inner {
      display: flex;
      /* gap: 2.5rem; */
    }

    .flex {
      column-gap: 2.5rem;
      width: 50%;
    }

    .p-topHero__title {
      margin-bottom: 1.5rem;
    }
  }

  .p-topHero__caption {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0;

    @media screen and (min-width: 1024px) {
      margin-top: 1.5rem;
    }
  }

  .p-topHero__textArea {
    flex-basis: 20rem;

    .p-topHero__panel--image {
      margin: 2.25rem auto 0 0;
      aspect-ratio: 225 / 320;
      max-width: 12rem;
      max-height: 20rem;
      overflow: hidden;

      @media screen and (min-width: 1024px) {
        margin: 2.25rem -6em 0 auto;
      }
    }
  }

  .p-topHero__panel--imageContainer {
    max-width: 20rem;
    margin-right: 0;
    margin-left: auto;
    margin-block: 2.5rem;

    @media screen and (min-width: 1024px) {
      max-width: 18.5rem;
      margin-bottom: 0;
    }
  }


  .p-topHero__panel--image {
    aspect-ratio: 296/506;
    width: 100%;
    max-height: 32rem;
    overflow: hidden;

    @media screen and (min-width: 1024px) {
      margin-block: 0;
    }
  }


}


.p-dieCastingSlides {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-block: 2.5rem;

  @media screen and (min-width: 1024px) {
    flex-direction: row;
    width: 50%;
    padding-left: 4rem;
    height: 100vh;
    margin-top: -5rem;
    margin-inline: 0;
    margin-bottom: 0;
  }
}

.p-dieCastingSlides__item {
  display: flex;
  align-items: center;
  flex-direction: column-reverse;
  gap: 1rem;

  @media screen and (min-width: 1024px) {
    flex-direction: row;
    width: calc(50% - 1rem);
    height: 100%;
    margin-inline: 0;
  }
}

.p-dieCastingSlider {
  /* スライド1枚分の表示幅 */
  width: 16.5rem;

  .splide__track {
    overflow: visible;

    &::before {
      content: "";
      display: block;
      width: 100%;
      height: 110%;
      background-color: rgb(var(--color-gray-light));
      border-radius: 100vmax;
      margin-left: 3%;
      position: absolute;
      top: 50%;
      left: 50%;
      translate: -50% -50%;
      z-index: -1;
      /* opacity: 0;
        visibility: hidden;
        transition: opacity .3s; */
    }
  }

  .splide__list {
    margin-inline: auto !important;
    /* gap: 2.5rem; */

  }
}


.p-dieCastingSlides__item:has(#js-dieCastingSliderValve) {
  flex-direction: column;

  @media screen and (min-width: 1024px) {
    flex-direction: row;
  }
}

#js-dieCastingSliderValve.p-dieCastingSlider {
  /* スライド1枚分の表示幅 */
  width: 12rem;

  @media screen and (min-width: 1024px) {
    width: 10.25rem;
  }
}

#js-dieCastingSliderValve.p-dieCastingSlider {
  & .splide__track {
    &::before {
      @media screen and (min-width: 1024px) {
        width: 115%;
        margin-left: 0;
      }
    }
  }
}

.p-dieCastingSlide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;

  /* &::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgb(var(--color-gray-light));
    border-radius: 100vmax;
    margin-left: 3%;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
  } */

  &.is-active::before {
    opacity: 1;
    visibility: visible;
  }
}

/* 列ごとに基準値だけ差し替える */
.p-dieCastingSlider--device {
  --image-h-min: 240px;
  --image-h-max: 400px;
  --image-h: calc(var(--vu) * 27.8);
  /* PC用 */
}

.p-dieCastingSlider--valve {
  --image-h-min: 160px;
  --image-h-max: 250px;
  --image-h: calc(var(--vu) * 17.4);
  /* PC用 */
}

#js-dieCastingSliderDevice .p-dieCastingSlide__figure {
  max-width: 260px;
  aspect-ratio: 260/400;

  @media screen and (min-width: 1024px) {
    aspect-ratio: auto;
  }

}

#js-dieCastingSliderValve .p-dieCastingSlide__figure {
  max-width: 250px;
  aspect-ratio: 260/400;

  @media screen and (min-width: 1024px) {
    aspect-ratio: auto;
  }
}

.p-dieCastingSlide__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.p-dieCastingSlide__image {
  width: auto !important;
  /* --image-h-min ← 高さ380pxのときの画像サイズ(仮) */
  /* --image-h-max ← 高さ780pxのときの画像サイズ(仮) */
  max-height: clamp(var(--image-h-min),
      calc(var(--image-h-min) + (var(--image-h-max) - var(--image-h-min)) * ((100vh - 380px) / 400px)),
      var(--image-h-max));

  @media screen and (min-width: 1024px) {
    /* max-height: clamp(var(--image-h-min), calc(... 100vh - 380px ...), var(--image-h-max)); */
    max-height: var(--image-h);
  }

  margin: auto;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  object-fit: contain !important;
  transition: opacity .3s;
}



.p-dieCastingSlide__image.off {
  opacity: 1;
  visibility: visible;
}

.splide__slide.is-active .p-dieCastingSlide__image.on {
  opacity: 1;
  visibility: visible;
}

.splide__slide.is-active .p-dieCastingSlide__image.off {
  opacity: 0;
  visibility: hidden;
}


.p-dieCastingSlide__name {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.875em;
  line-height: 1.5;
  color: rgb(var(--color-primary));
  text-align: center;
  margin: 0 auto;
  letter-spacing: 0;

  a {
    color: rgb(var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-inline: 1rem;
    background-color: rgb(var(--color-primary)/0);
    border-radius: 100vmax;


    &::after {
      content: "";
      display: inline-block;
      width: 1em;
      height: 1em;
      color: rgb(var(--color-base));
      background: rgb(var(--color-primary)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgb(255,255,255)' viewBox='0 0 8.024 8.024'%3E%3Cpath d='M9487.363,433.629h-1V425.6h1Z' transform='translate(-9482.849 -425.605)'/%3E%3Cpath d='M.5,8.024h-1V0h1' transform='translate(8.024 4.015) rotate(90)'/%3E%3C/svg%3E") no-repeat center center / 8px auto;
      border-radius: 50%;
      transition: background-color .3s;
    }

    &:hover {
      opacity: 1;
      color: rgb(var(--color-base));
      background-color: rgb(var(--color-primary));

      &::after {
        color: rgb(var(--color-primary));
        background: rgb(var(--color-base)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgb(222, 59, 0)' viewBox='0 0 8.024 8.024'%3E%3Cpath d='M9487.363,433.629h-1V425.6h1Z' transform='translate(-9482.849 -425.605)'/%3E%3Cpath d='M.5,8.024h-1V0h1' transform='translate(8.024 4.015) rotate(90)'/%3E%3C/svg%3E") no-repeat center center / 8px auto;

      }
    }
  }
}

/* 縦方向の軸ラベル(Vacuum device / valve) */
.p-dieCastingSlider__nav {
  display: flex;
  align-items: center;
  gap: 1rem;

  @media screen and (min-width: 1024px) {
    flex-direction: column;
  }
}

.p-dieCastingSlider__axisLabel {
  color: rgb(var(--color-primary));
  margin: 0;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0;

  @media screen and (min-width: 1024px) {
    writing-mode: vertical-rl;
  }
}

.p-dieCastingSlider__arrow {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(var(--color-primary));
  border-radius: 50%;
  background: none;
  color: rgb(var(--color-primary));
  cursor: pointer;
}

.p-dieCastingSlider__arrow--prev {
  .svgicon {
    transform: rotate(180deg);

    @media screen and (min-width: 1024px) {
      transform: rotate(-90deg);
    }
  }
}

.p-dieCastingSlider__arrow--next {
  .svgicon {
    @media screen and (min-width: 1024px) {
      /* transform: rotate(90deg); */
      transform: rotate(90deg);
    }
  }
}

.p-dieCastingSlides__plus {
  width: 4rem;
  height: 4rem;
  /* font-size: 2rem; */
  color: rgb(var(--color-primary));
  margin: 0;

  @media screen and (min-width: 1024px) {
    transform: translateX(-0.5rem);
  }

  img {
    width: 100%;
    height: 100%;
  }
}


/* ==========================================================================
   p-topHero__panel--products
   ========================================================================== */
.p-topHero__panel--products {
  /* background-color: rgb(var(--color-gray-dark)); */
  /* color: rgb(var(--color-base)); */
  /* background: url(../img/bg.jpg) no-repeat center center / cover; */
  /* background:
    linear-gradient(to top, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, 0.45) 100%),
    url('../img/bg.jpg') no-repeat center center / cover; */
  background: url('../img/bg.jpg') no-repeat center center / cover;

  @media screen and (min-width: 768px) {
    padding-bottom: 0;
  }

  @media screen and (min-width: 1024px) {
    padding: 0;
    /* background:
      linear-gradient(to left, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, 0.45) 100%),
      url('../img/bg.jpg') no-repeat center center / cover; */

  }

  .inner {
    display: flex;
    flex-direction: column;
    /* padding-inline: 0; */

    @media screen and (min-width: 1024px) {
      flex-direction: row;
      height: 100%;
      padding-right: 0;
      padding-left: 10em;
    }
  }

  .p-topHero__textArea {
    @media screen and (min-width: 1024px) {
      /* width: fit-content; */
      width: 25%;
      padding-top: 5rem;
      /* position: absolute; */
      z-index: 3;
    }
  }
}


/* ==========================================================================
   商品アコーディオン全体
   ========================================================================== */
.p-productAccordion {
  width: 100vw;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0 calc(50% - 50vw);
  list-style: none;
  --acc-w: calc(var(--vu) * 8.33);
  /* 120px相当 */
  --acc-line: calc(var(--vu) * 6.67);
  /* 96px相当 */
  --acc-icon: calc(var(--vu) * 4.44);
  /* 64px相当 */
  --acc-pb: calc(var(--vu) * 1.67);
  /* 24px相当 */

  @media screen and (min-width: 1024px) {
    width: fit-content;
    /* width: 75%; */
    height: 100vh;
    /* フォールバック */
    height: 100svh;
    /* 画面の高さいっぱい(モバイルのアドレスバーの出入りで変わらない) */
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin: 0 0 0 auto;
  }
}

.p-productAccordion__item {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  overflow: hidden;
  /* background: rgb(0 0 0 / 0.3); */
  transition: width 0.4s ease;
  width: 100%;
  flex-wrap: wrap;

  @media screen and (min-width: 1024px) {
    flex-wrap: nowrap;
    height: 100%;
    /* --w-min: 60px;
    --w-max: 120px;
    width: 120px; */
    /* 380px〜780pxの間で --h-min → --h-max へ線形に変化する共通の計算式 400px = 780 - 380 */
    /* width: clamp(var(--w-min),
        calc(var(--w-min) + (var(--w-max) - var(--w-min)) * ((100vh - 380px) / 400px)),
        var(--w-max)); */
    width: var(--acc-w);

  }



  &:not(:last-of-type) {
    border-bottom: 1px solid rgb(var(--color-base));

    @media screen and (min-width: 1024px) {
      border-bottom: none;
      border-right: 1px solid rgb(var(--color-base));

    }
  }
}

/* アクティブ時:展開 */
.p-productAccordion__item.is-active {
  width: auto;
  --w-min: 60px;
  --w-max: 120px;

  @media screen and (min-width: 1024px) {
    max-width: calc(100% - var(--acc-w) * 2);
    /* max-width: calc(100% - (clamp(var(--w-min),
            calc(var(--w-min) + (var(--w-max) - var(--w-min)) * ((100vh - 380px) / 400px)),
            var(--w-max)) * 2)); */
  }
}

/* ==========================================================================
   テキスト・操作エリア(.p-productAccordion__label)
   ========================================================================== */
.p-productAccordion__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  height: 100%;
  /* color: rgb(var(--color-base)); */
  width: 100%;
  padding-block: 1rem;
  padding-right: 1rem;


  @media screen and (min-width: 1024px) {
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0 1rem 1.5rem;
    /* 展開時も、このラベル帯の幅自体は維持する */
    /* width: 120px; */

    /* --pb-min: 12px;
    --pb-max: 24px;
    padding-bottom: clamp(var(--pb-min),
        calc(var(--pb-min) + (var(--pb-max) - var(--pb-min)) * ((100vh - 380px) / 400px)),
        var(--pb-max)); */
    /* --w-min: 60px;
    --w-max: 120px; */
    /* 380px〜780pxの間で --h-min → --h-max へ線形に変化する共通の計算式 400px = 780 - 380 */
    /* width: clamp(var(--w-min),
        calc(var(--w-min) + (var(--w-max) - var(--w-min)) * ((100vh - 380px) / 400px)),
        var(--w-max)); */
    width: var(--acc-w);
    padding-bottom: var(--acc-pb);
  }

  /* ラベル上部の装飾ライン */
  &::before {
    content: "";
    flex-shrink: 0;
    width: 3.5rem;
    /* min-height: 5rem; */
    height: 1px;
    margin-right: 1em;
    background: rgb(var(--color-contrast));

    @media screen and (min-width: 1024px) {
      margin-right: 0;
      margin-bottom: 1em;
      width: 1px;
      height: var(--acc-line);
      /* --h-min: 56px;
      --h-max: 96px; */
      /* 380px〜780pxの間で --h-min → --h-max へ線形に変化する共通の計算式 400px = 780 - 380 */
      /* height: clamp(var(--h-min),
          calc(var(--h-min) + (var(--h-max) - var(--h-min)) * ((100vh - 380px) / 400px)),
          var(--h-max)); */
    }
  }
}

.p-productAccordion__name {
  font-size: 1.25rem;
  font-weight: 700;
  /* line-height: 1.6; */
  letter-spacing: 0;
  display: flex;
  align-items: center;
  margin: 0;

  --fs-min: 16px;
  --fs-max: 20px;
  /* 380px〜780pxの間で --h-min → --h-max へ線形に変化する共通の計算式 400px = 780 - 380 */
  font-size: clamp(var(--fs-min),
      calc(var(--fs-min) + (var(--fs-max) - var(--fs-min)) * ((100vh - 380px) / 400px)),
      var(--fs-max));

  @media screen and (min-width: 1024px) {
    --fs-min: 12px;
    --fs-max: 20px;
    margin: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    /* 英数字は1文字ずつ横向きのまま縦に流す(初期値だが明示) */
    /* font-size: 1.8vw; */
    font-size: calc(var(--vu) * 1.8);
  }
}

.p-productAccordion__nameEn {
  display: block;
  margin-left: 0.75em;
  font-family: var(--font-en);
  font-weight: 300;

  @media screen and (min-width: 1024px) {
    margin-left: 0;
    margin-top: 0.75em;
    font-size: 0.8em;
  }
}

.p-productAccordion__model {
  font-family: var(--font-en);
  font-size: 3.875rem;
  font-weight: 700;
  line-height: 1;
  color: rgb(var(--color-primary));
  margin: 0 1rem 0 auto;

  --fs-min: 36px;
  --fs-max: 60px;
  /* 380px〜780pxの間で --h-min → --h-max へ線形に変化する共通の計算式 400px = 780 - 380 */
  font-size: clamp(var(--fs-min),
  calc(var(--fs-min) + (var(--fs-max) - var(--fs-min)) * ((100vh - 380px) / 400px)),
  var(--fs-max));

  @media screen and (min-width: 1024px) {
    --fs-min: 16px;
    --fs-max: 60px;
    writing-mode: vertical-rl;
    margin: auto 0 1rem 0;
    /* font-size: 4vw; */
    font-size: calc(var(--vu) * 4);
  }
}

/* ==========================================================================
   アイコン共通(linkToggle内の.icon)
   ========================================================================== */
.p-productAccordion__link .icon,
.p-productAccordion__toggle .icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  aspect-ratio: 1;
  margin-top: auto;
  border-radius: 50%;

  @media screen and (min-width: 1024px) {
    /* --w-min: 32px;
    --w-max: 64px; */
    /* 380px〜780pxの間で --h-min → --h-max へ線形に変化する共通の計算式 400px = 780 - 380 */
    /* width: clamp(var(--w-min),
        calc(var(--w-min) + (var(--w-max) - var(--w-min)) * ((100vh - 380px) / 400px)),
        var(--w-max)); */
    width: var(--acc-icon);
  }
}

.p-productAccordion__link .svgicon {
  width: 1.125rem;
  height: 1.125rem;

  @media screen and (min-width: 1024px) {
    width: 1.25rem;
    height: 1.25rem;

  }
}

.p-productAccordion__toggle .svgicon {
  width: 1.25rem;
  height: 1.25rem;
  display: none;

  @media screen and (min-width: 1024px) {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* ==========================================================================
   アクティブ時:実リンク(矢印+Detail)
   ========================================================================== */
.p-productAccordion__link {
  display: none;
  /* 初期値:非アクティブでは非表示 */
  flex-direction: column;
  align-items: center;
  color: rgb(var(--color-primary));
  text-decoration: none;
  width: 4.5rem;

  @media screen and (min-width: 1024px) {
    width: auto;
  }

  &:hover {
    opacity: 1;
  }
}

.p-productAccordion__link .icon,
.p-productAccordion__toggle .icon {
  border: 1px solid rgb(var(--color-primary));

  &:hover {
    opacity: 1;
  }
}

.p-productAccordion__toggle:hover .icon {
  color: rgb(var(--color-gray-light));
  background-color: rgb(var(--color-primary));
}

.p-productAccordion__link .icon {
  background-color: rgb(var(--color-primary));
  color: rgb(var(--color-gray-light));
  transition: background-color .3s, color .3s;
}

.p-productAccordion__linkLabel,
.p-productAccordion__toggleLabel {
  margin-top: 0.25rem;
  font-size: 0.875em;
  font-weight: 500;
  font-family: var(--font-en);
  line-height: 1.2;
  --fs-min: 10px;
  --fs-max: 14px;
  /* 380px〜780pxの間で --h-min → --h-max へ線形に変化する共通の計算式 400px = 780 - 380 */
  font-size: clamp(var(--fs-min),
      calc(var(--fs-min) + (var(--fs-max) - var(--fs-min)) * ((100vh - 380px) / 400px)),
      var(--fs-max));

  @media screen and (min-width: 1024px) {
    /* PCは--vu基準(上のclampはSP用に残す) */
    font-size: calc(var(--vu) * 0.97);
  }

  @media screen and (max-height: 400px) {
    margin-top: 0.5rem;
    display: none;
  }
}

.p-productAccordion__item.is-active .p-productAccordion__link {
  display: flex;
}

/* ==========================================================================
   非アクティブ時:展開ボタン(+View more)
   ========================================================================== */
.p-productAccordion__toggle {
  display: flex;
  /* 初期値:非アクティブで表示 */
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  color: rgb(var(--color-primary));
  cursor: pointer;
  width: 4.5rem;

  @media screen and (min-width: 1024px) {
    width: auto;
  }

  &:hover {

    .icon::before,
    .icon::after {
      background-color: rgb(var(--color-gray-light));

    }
  }
}

.p-productAccordion__toggle .icon {
  position: relative;

  &::before,
  &::after {
    content: "";
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: rgb(var(--color-primary));
    position: absolute;
    transition: background-color .3s;
  }

  &::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  &::after {
    transform: rotate(90deg);
  }

}

.p-productAccordion__item.is-active .p-productAccordion__toggle {
  display: none;
}

/* ==========================================================================
   画像(アクティブ時のみ表示)
   ========================================================================== */
.p-productAccordion__image {
  /* display: none; */
  width: 100%;
  opacity: 0;
  visibility: hidden;
  align-items: flex-end;
  flex: 1 0 auto;
  height: 0;
  margin: 0;
  max-width: 580px;
  transition: height .4s, opacity .4s;
  overflow: hidden;

  @media screen and (min-width: 1024px) {
    width: 0;
    height: 100%;
    transition: width .4s, opacity .4s;
  }

  .p-productAccordion__img.on {
    opacity: 0;
    visibility: hidden;
  }

}

.p-productAccordion__image[data-product="device"] {
  @media screen and (min-width: 1024px) {
    padding-right: 1.5em;
  }
}



.p-productAccordion__image_inner {
  display: grid;
  width: 100%;
  height: 100%;
  max-height: 50vh;
  min-height: 300px;

  @media screen and (min-width: 1024px) {
    max-height: 100%;
      min-height: inherit;

  }

  &:hover {
    .p-productAccordion__img.on {
      opacity: 1;
      visibility: visible;
    }

    .p-productAccordion__img.off {
      opacity: 0;
      visibility: hidden;
    }
  }
}

.p-productAccordion__image_inner div {
  grid-area: 1 / 1;
  /* 2枚を同じセルに重ねる(DOM順で後ろの mono が上) */
  width: 100%;
  height: 100%;
  max-height: 50vh;
  min-height: 300px;

  @media screen and (min-width: 1024px) {
    min-height: inherit;
    max-height: 100%;
  }
}


.p-productAccordion__item.is-active .p-productAccordion__image {
  /* display: block; */
  /* width: auto; */
  /* --w-min: 60px;
  --w-max: 120px; */

  display: flex;
  height: 100%;
  max-width: 100%;
  opacity: 1;
  visibility: visible;
  max-height: 50vh;
  min-height: 300px;

  @media screen and (min-width: 1024px) {
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
      min-height: inherit;
    max-height: 100vh;
    /* max-width: calc(100% - clamp(var(--w-min),
          calc(var(--w-min) + (var(--w-max) - var(--w-min)) * ((100vh - 380px) / 400px)),
          var(--w-max))); */
    max-width: calc(100% - var(--acc-w));
  }
}

.p-productAccordion__image img {
  width: 100%;
  height: 100%;
  object-position: bottom;
  object-fit: contain;
  margin-top: auto;
  margin-bottom: 0;
  transition: opacity .5s, visibility .3s;

  @media screen and (min-width:1024px) {
    width: auto;
    max-height: 100vh;
  }
}