@charset "UTF-8";

.detail-hero .breadcrumb {
  margin-bottom: 54px;
}
.detail-hero-inner,
.design-point-inner,
.deliverables-inner,
.project-info-inner {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
}
.detail-hero-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 70px;
  align-items: center;
}

.detail-hero-copy h1 {
  margin-bottom: 14px;
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: .08em;
}

.detail-tag {
  display: inline-flex;
  min-width: 150px;
  height: 28px;
  margin-bottom: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d1ca;
  font-size: 12px;
  font-weight: 700;
}

.detail-lead {
  margin-bottom: 34px;
  font-size: 14px;
  font-weight: 600;
  line-height: 2.1;
}

.detail-meta-list {
  margin: 0 0 34px;
}

.detail-meta-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
}

.detail-meta-list dt {
  color: #6d655f;
}

.detail-meta-list dd {
  margin: 0;
}

.detail-back {
  min-width: 170px;
  justify-content: space-between;
}


.design-point {
  padding: 64px 0;
  background: #f7f2ef;
}

.design-point-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: center;
}

.point-heading {
  padding-right: 56px;
  border-right: 1px solid #d8d1ca;
}

.point-heading h2 {
  margin-bottom: 28px;
  font-size: 30px;
}

.point-heading p:last-child {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 2;
}

.point-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 58px;
}

.point-item {
  text-align: center;
}

.point-item img {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.point-item h3 {
  margin-bottom: 16px;
  font-size: 16px;
}

.point-item p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.9;
}

.deliverables {
  padding: 76px 0 62px;
  background: #fff;
}

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

.center-heading h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 22px;
  font-size: 34px;
}

.center-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 300px;
  max-width: 100%;
  height: 1px;
  background: #1f1f1f;
  transform: translateX(-50%);
}

.deliverable-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.deliverable-item h3 {
  margin-bottom: 22px;
  text-align: center;
  font-size: 15px;
}

.deliverable-item a {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f6f3f1;
  box-shadow: 0 8px 18px rgba(31,31,31,.08);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

.deliverable-item a:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(31,31,31,.12);
}

.deliverable-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.deliverable-stack {
  display: grid;
  gap: 22px;
}

.deliverable-note {
  margin: 42px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.project-info {
  padding: 58px 0;
  background: #f7f2ef;
  margin-bottom: 100px;
}

.project-info-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 70px;
  align-items: start;
}

.project-title {
  padding-right: 48px;
  border-right: 1px solid #d8d1ca;
}

.project-title h2 {
  font-size: 30px;
}

.project-info-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px;
}

.project-info-list dt {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
}

.project-info-list dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.9;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.image-modal.is-open {
  display: block;
}

.image-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(31,31,31,.72);
  backdrop-filter: blur(4px);
}

.image-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(980px, calc(100% - 48px));
  max-height: calc(100vh - 80px);
  padding: 18px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.image-modal-content img {
  width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
}

.image-modal-close {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: rgba(31,31,31,.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.image-modal-content.is-long {
  width: min(760px, calc(100% - 48px));
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  cursor: auto;
}

.image-modal-content.is-long img {
  display: block;
  width: 100%;
  max-height: none;
  height: auto;
}

@media (max-width: 1080px) {
  .detail-hero-layout {
    grid-template-columns: 320px 1fr;
    gap: 40px;
  }

  .design-point-inner,
  .project-info-inner {
    grid-template-columns: 240px 1fr;
    gap: 46px;
  }

  .deliverable-grid {
    gap: 26px;
  }
}

@media (max-width: 768px) {
  .detail-hero {
    padding: 88px 0 58px;
  }

  .detail-hero-inner,
  .design-point-inner,
  .deliverables-inner,
  .project-info-inner {
    width: calc(100% - 40px);
  }

  .detail-hero-layout,
  .design-point-inner,
  .project-info-inner {
    grid-template-columns: 1fr;
  }

  .detail-hero-copy h1 {
    font-size: 30px;
  }

  .detail-hero-visual img {
    height: auto;
    min-height: 0;
  }

  .point-heading,
  .project-title {
    padding-right: 0;
    border-right: none;
  }

  .point-list,
  .project-info-list {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .deliverable-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}
.long-page-preview {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #f7f3ef;
}

.long-page-preview img {
  width: 100%;
  height: auto;
}

.long-page-preview::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    #fff
  );
  pointer-events: none;
}
.image-modal-content.is-long {
  overflow-y: auto;
  cursor: auto;
}

.image-modal-content.is-long img {
  max-height: none;
  height: auto;
  cursor: default;
}
.detail-hero {

  /* デフォルト画像（指定がない場合に表示される） */
  --hero-image: url("../img/ecpagegallery/ecpagegallery-top.jpg");

  min-height: clamp(620px, 95vh, 920px);
  padding-top: 92px;

  background:
    linear-gradient(
      90deg,
    rgba(247,242,239,.72) 0%,
    rgba(247,242,239,.35) 40%,
    rgba(247,242,239,0) 70%
    ),
    var(--hero-image);

  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;

}
.product-page-preview {
  display: block;
  background: transparent;
  box-shadow: none;
}

.product-page-window {
  position: relative;
  display: block;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #f7f3ef;
  border: 1px solid #e5ddd7;
  box-shadow: 0 12px 28px rgba(31,31,31,.08);
}

.product-page-window img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.product-page-window::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(247,243,239,0),
    #f7f3ef
  );
  pointer-events: none;
}
