/* 公開サイトの見た目はそのまま。クライアント要望の差分だけ。 */

@media (max-width: 766px) {
  .intro {
    height: auto;
    max-height: none;
    padding-bottom: 48px;
  }

  .intro::before {
    -webkit-mask: radial-gradient(circle at 100% 100%, transparent 40vw, black 40vw);
    mask: radial-gradient(circle at 100% 100%, transparent 40vw, black 40vw);
  }

  .intro__english-title-box {
    position: relative;
    bottom: auto;
    margin-top: 32px;
  }
}

.front-products__note,
.products-list__note {
  margin-top: 12px;
  line-height: 1.8;
}

.front-products__note a,
.products-list__note a {
  text-decoration: underline;
}

.front-sakado {
  padding: clamp(3rem, 2rem + 3vw, 5rem) 0;
}

.front-sakado__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.front-sakado__link {
  position: relative;
  display: block;
  container-type: inline-size;
}

.front-sakado__link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 500;
}

.front-sakado__btn {
  position: absolute;
  left: 4.7%;
  top: 80.4%;
  width: 21.2%;
  height: 10.8%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4em;
  padding: 0 0.7em 0 0.85em;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: #262626;
  color: #fff;
  font-size: 1.35cqi;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.front-sakado__go {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  background: currentColor;
  -webkit-mask: url("../img/icon/arrow.svg") center / contain no-repeat;
  mask: url("../img/icon/arrow.svg") center / contain no-repeat;
  transform: rotate(45deg);
  transition: transform 0.2s ease-in-out;
}

.front-sakado__link:hover .front-sakado__btn,
.front-sakado__link:focus-visible .front-sakado__btn {
  background: #fff;
  color: #111;
}

.front-sakado__link:hover .front-sakado__go,
.front-sakado__link:focus-visible .front-sakado__go {
  transform: translateX(-0.55em) rotate(0deg);
}

@media (min-width: 767px) {
  .front-sakado__list {
    grid-template-columns: 1fr 1fr;
  }
}

.delivery-search__filters {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 767px) {
  .delivery-search__filters {
    grid-template-columns: 1fr 1fr;
  }
}

.products-works {
  padding: 48px 0 0;
}

.products-works__list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.products-works__list a {
  text-decoration: underline;
}

.front-delivery-board,
.front-used-board {
  margin: 0;
  padding-top: clamp(3rem, 2rem + 2vw, 4.5rem);
  padding-bottom: 0;
}

.front-board__head {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "title" "lead" "more";
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.front-board__title {
  grid-area: title;
  margin-bottom: 0;
}

.front-board__lead {
  grid-area: lead;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}

.front-board__tail {
  display: block;
}

.front-board__more {
  grid-area: more;
  justify-self: start;
  align-self: center;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  max-width: 100%;
  min-height: 2.75rem;
  margin: 0.25rem 0 0;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.front-board__more:hover,
.front-board__more:focus-visible {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.front-board__more-icon,
.front-delivery-board__arrow,
.front-delivery-board__more > span,
.front-used-board__more > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("../img/icon/arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  transform: rotate(45deg);
  transition: transform 0.2s ease-in-out;
}

.front-board__more:hover .front-board__more-icon,
.front-board__more:focus-visible .front-board__more-icon,
.front-delivery-board__feature:hover .front-delivery-board__more > span,
.front-delivery-board__feature:focus-visible .front-delivery-board__more > span,
.front-delivery-board__row:hover .front-delivery-board__arrow,
.front-delivery-board__row:focus-visible .front-delivery-board__arrow,
.front-used-board__link:hover .front-used-board__more > span,
.front-used-board__link:focus-visible .front-used-board__more > span {
  transform: translateX(4px) rotate(45deg);
}

.front-delivery-board__arrow {
  justify-self: end;
  align-self: center;
}

.front-delivery-board__board {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.front-delivery-board__feature {
  position: relative;
  display: block;
  min-height: 12rem;
  aspect-ratio: 16 / 9;
  max-height: 22rem;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.front-delivery-board__feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}

.front-delivery-board__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.front-delivery-board__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.front-delivery-board__date {
  font-size: 14px;
  line-height: 1.4;
}

.front-delivery-board__title {
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.front-delivery-board__feature .front-delivery-board__title {
  font-size: 18px;
  -webkit-line-clamp: 3;
}

.front-delivery-board__row .front-delivery-board__title {
  font-size: 16px;
  -webkit-line-clamp: 2;
}

.front-delivery-board__more,
.front-used-board__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 14px;
  line-height: 1;
}

.front-delivery-board__side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.front-delivery-board__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 6.5rem;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.front-delivery-board__row:hover,
.front-delivery-board__row:focus-visible {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.7);
}

.front-delivery-board__photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
}

.front-delivery-board__photo img,
.front-used-board__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}

.front-delivery-board__feature:hover img,
.front-delivery-board__feature:focus-visible img,
.front-delivery-board__row:hover img,
.front-delivery-board__row:focus-visible img,
.front-used-board__link:hover img,
.front-used-board__link:focus-visible img {
  transform: scale(1.04);
}

.front-delivery-board__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.front-used-board__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.front-used-board__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-color: #161616;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease-in-out;
}

.front-used-board__link:hover,
.front-used-board__link:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
}

.front-used-board__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #fff;
}

.front-used-board__photo img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.front-used-board__meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem 0.7rem 0.7rem;
}

.front-used-board__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.front-used-board__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  font-size: 14px;
}

@media (min-width: 1181px) {
  .front-board__head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "title lead more";
    gap: 1rem 1.5rem;
  }

  .front-board__lead {
    padding-left: 1.5rem;
    border-left: 3px solid #6c49c4;
    font-size: 18px;
    max-width: 36rem;
  }

  .front-board__rest {
    display: block;
  }

  .front-board__tail {
    display: inline;
  }

  .front-delivery-board__board {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    min-height: 28rem;
  }

  .front-delivery-board__feature {
    grid-row: 1 / span 2;
    aspect-ratio: auto;
    max-height: none;
    height: 100%;
  }

  .front-delivery-board__side {
    display: contents;
  }

  .front-delivery-board__row {
    height: 100%;
    grid-template-columns: 11.5rem minmax(0, 1fr) auto;
  }

  .front-used-board__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* 納入実績の本文。行間、見出し、写真の並び。 */
.single-delivery .delivery__form h2,
.single-delivery .delivery__form h3 {
  text-transform: none;
  text-wrap: wrap;
  font-weight: 700;
  font-synthesis: weight;
  line-height: 1.4;
  color: #000;
}

.single-delivery .delivery__form h2 {
  margin: 2.75rem 0 1.25rem;
  font-size: 28px;
}

.single-delivery .delivery__form h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.65rem;
  background: #6c49c4;
}

.single-delivery .delivery__form h3 {
  margin: 2.15rem 0 0.75rem;
  padding-left: 0.7rem;
  border-left: 3px solid #6c49c4;
  font-size: 22px;
}

.single-delivery .delivery__form p,
.single-delivery .delivery__form li {
  margin: 0 0 1.15rem;
  font-size: 18px;
  line-height: 1.9 !important;
}

.single-delivery .delivery__form li strong {
  font-weight: 700;
  font-synthesis: weight;
}

.single-delivery .delivery__form a {
  font-size: 18px;
  line-height: 1.9;
  color: #6c49c4 !important;
  text-transform: none !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.single-delivery .delivery__form a:hover {
  opacity: 1;
  color: #4c2f96 !important;
}

.products-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.products-cta__img.is-contain {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.single-delivery .delivery-photos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0 1.25rem;
}

.single-delivery .delivery-photos__item.is-span-1 {
  grid-column: span 6;
}

.single-delivery .delivery-photos__item.is-span-2 {
  grid-column: span 3;
}

.single-delivery .delivery-photos__item.is-span-3 {
  grid-column: span 2;
}

.single-delivery .delivery-photos__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f2f2f2;
  cursor: zoom-in;
}

.single-delivery .delivery-photos__item img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none;
}

.single-delivery .delivery__form .wp-block-video {
  margin: 1.75rem 0 2rem;
  padding: 0.4rem;
  background: #1c1c1c;
}

.single-delivery .delivery__form .wp-block-video video,
.single-delivery .delivery__form video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  background: #000;
}

.delivery-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
}

.delivery-photo-modal.is-open,
.delivery-photo-modal.is-closing {
  visibility: visible;
}

.delivery-photo-modal.is-open {
  pointer-events: auto;
}

.delivery-photo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.delivery-photo-modal.is-open .delivery-photo-modal__backdrop {
  opacity: 1;
}

.delivery-photo-modal img {
  position: fixed;
  z-index: 1;
  margin: 0;
  max-width: none;
  max-height: none;
  transform-origin: top left;
}

p {
  font-size: 18px;
}

.layout-style1__box p,
.layout-style1__box li {
  font-size: 18px;
}

.delivery-photo-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease 0.12s;
}

.delivery-photo-modal.is-open .delivery-photo-modal__close {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .delivery-photo-modal__backdrop,
  .delivery-photo-modal__close,
  .delivery-photo-modal img {
    transition: none;
  }
}
