/* NAV BACK BUTTON */
.nav-back {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--border);
  padding: 0.3rem 0.8rem;
  transition: all .15s;
}

.nav-back::before {
  content: '←';
}

.nav-back:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  gap: 0.8rem;
}

/* DETAIL HERO */
.detail-hero {
  padding: 9rem 2.5rem 5rem;
  border-bottom: 2.5px solid var(--border);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: end;
}

.detail-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.25rem 0.7rem;
  margin-bottom: 1rem;
  animation: fadeUp .6s ease .1s both;
}

.detail-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  animation: fadeUp .6s ease .2s both;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  animation: fadeUp .6s ease .35s both;
  margin-top: 1.5rem;
}

.meta-item-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.meta-item-val {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.tech-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  border: 2px solid var(--border);
  padding: 0.2rem 0.55rem;
  background: var(--bg);
}

/* OVERVIEW */
.detail-overview-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  border-top: 2.5px solid var(--border);
  border-bottom: 2.5px solid var(--border);
  margin-top: 4.4rem;
}

.detail-main-img {
  margin: 0;
  aspect-ratio: unset;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2.5px solid var(--border);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
  cursor: none;
}

.detail-main-img::after {
  content: 'もっとくわしく';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: white;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity .3s ease, background .3s ease;
  pointer-events: none;
  z-index: 2;
}

.detail-main-img:hover::after {
  opacity: 1;
  background: rgba(126, 125, 128, 0.55);
}

.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.img-placeholder-label {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.3rem 0.7rem;
}

.detail-overview-wrap .content-section {
  padding: 3rem;
  margin-bottom: 0;
  border-bottom: none;
  min-height: 400px;
}

@media (max-width: 768px) {
  .detail-overview-wrap {
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }

  .detail-main-img {
    aspect-ratio: 16/9;
    min-height: unset;
    border-right: none;
    border-bottom: 2.5px solid var(--border);
  }

  .detail-main-img img {
    position: static;
    width: 100%;
    height: 100%;
  }

  .detail-overview-wrap .content-section {
    padding: 2rem 1.2rem;
    min-height: unset;
  }
}

/* CONTENT SECTION */
.detail-content {
  padding: 5rem 2.5rem 0 2.5rem;
}

.content-section {
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 2.5px solid var(--border);
}

.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.content-section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  padding: 0.2rem 0.6rem;
  margin-bottom: 1rem;
}

.content-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.content-text {
  font-size: 0.92rem;
  line-height: 2.1;
  color: var(--text-sub);
  max-width: 680px;
}

.content-text+.content-text {
  margin-top: 1.2rem;
}

@media (max-width: 768px) {
  .detail-content {
    padding: 3rem 1.2rem;
  }
}

/* LINK BUTTON */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  border: 2.5px solid var(--accent);
  transition: all .15s;
}

.link-btn:hover {
  background: transparent;
  color: var(--accent);
}

/* BACKGROUND LIST */
.background-list {
  margin-top: 2rem;
  border: 2.5px solid var(--border);
}

.background-row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  border-bottom: 1.5px solid var(--border);
}

.background-row:last-child {
  border-bottom: none;
}

.background-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 1.3rem 1.5rem;
  border-right: 2.5px solid var(--border);
  display: flex;
  align-items: center;
}

.background-text {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-sub);
  padding: 1.3rem 1.8rem;
}

@media (max-width: 768px) {
  .background-row {
    grid-template-columns: 1fr;
  }

  .background-label {
    border-right: none;
    border-bottom: 1.5px solid var(--border);
    padding: 0.8rem 1.2rem;
  }

  .background-text {
    padding: 0.8rem 1.2rem;
  }
}

/* PHASE TIMELINE */
.phase-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border: 2.5px solid var(--border);
}

.phase-item {
  padding: 2rem 1.5rem;
  border-right: 2.5px solid var(--border);
  position: relative;
}

.phase-item:last-child {
  border-right: none;
}

.phase-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.phase-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.phase-desc {
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-sub);
}

.phase-img {
  width: 100%;
  aspect-ratio: 4/3;
  margin: 0.75rem 0;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  overflow: hidden;
  cursor: none;
  position: relative;
}

.phase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: none;
  pointer-events: none;
}

@media (max-width: 768px) {
  .phase-img {
    aspect-ratio: 3/2;
  }
}

.phase-img:not(:has(img[src])) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-img:not(:has(img))::after {
  content: 'No Image';
  position: absolute;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 1;
  background: none;
  bottom: auto;
  right: auto;
}

.phase-img::after {
  content: 'クリックで拡大';
  position: absolute;
  bottom: 0.4rem;
  right: 0.5rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: white;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.2rem 0.5rem;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.phase-img:hover::after {
  opacity: 1;
}

/* ══════════════════════════════════════════
   PHASE MODAL（企画書拡大用）
══════════════════════════════════════════ */
.phase-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.phase-modal.open {
  opacity: 1;
  pointer-events: all;
}

.phase-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.phase-modal-inner {
  position: relative;
  z-index: 1;
  width: min(90vw, 960px);
  max-width: calc(85vh * 4 / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.phase-modal-img-wrap {
  width: 100%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--border);
  background: var(--surface2);
  overflow: hidden;
}

.phase-modal-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 閉じるボタン */
.phase-modal-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 36px;
  height: 36px;
  background: var(--bg);
  color: var(--text);
  border: 2.5px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: none;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-modal-close:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* 前後ボタン：PC では左右に絶対配置 */
.phase-modal-prev,
.phase-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--bg);
  color: var(--text);
  border: 2.5px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: none;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-modal-prev {
  left: -1.5rem;
}

.phase-modal-next {
  right: -1.5rem;
}

.phase-modal-prev:hover,
.phase-modal-next:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* btnsラッパー：PC では非表示 */
.phase-modal-btns {
  display: none;
}

/* キャプション */
.phase-modal-caption {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phase-modal-caption span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
}

.phase-modal-img-desc {
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* スマホ：ボタンを画像の下に移動 */
@media (max-width: 768px) {
  .phase-modal-close {
    top: -2.5rem;
    right: 0;
  }

  .phase-modal-inner {
    width: 90vw;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  /* PC の左右ボタンを非表示にして btns を使う */
  .phase-modal-prev,
  .phase-modal-next {
    display: none;
  }

  .phase-modal-btns {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .phase-modal-btns button {
    width: 60px;
    height: 48px;
    background: var(--bg);
    color: var(--text);
    border: 2.5px solid var(--border);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: none;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .phase-modal-btns button:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
  }
}

/* ══════════════════════════════════════════
   MAIN IMAGE MODAL
══════════════════════════════════════════ */
.main-img-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  overflow-y: auto;
}

.main-img-modal.open {
  opacity: 1;
  pointer-events: all;
}

.main-img-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.main-img-modal-inner {
  position: relative;
  z-index: 1;
  width: min(90vw, 860px);
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 70vh;
  justify-content: center;
}

.main-img-modal-inner .phase-modal-close {
  position: relative;
  top: auto;
  right: auto;
  align-self: flex-end;
  margin-bottom: 0.75rem;
}

.main-img-modal-imgs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.main-img-modal-imgs img {
  width: 100%;
  height: auto;
  display: block;
  border: 2.5px solid var(--border);
}

.main-img-modal.phase-mode .main-img-modal-imgs img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.main-img-modal-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  align-self: flex-start;
  margin-bottom: 0.5rem;
}

.main-img-modal.phase-mode .main-img-modal-label {
  position: relative;
  align-self: flex-start;
  margin-bottom: 0.5rem;
}

.phase-modal-img-label {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.3rem;
}

.main-img-modal-prev,
.main-img-modal-next {
  position: fixed;
  top: 50vh;
  transform: translateY(-50%);
  z-index: 1002;
  width: 44px;
  height: 60px;
  background: var(--bg);
  color: var(--text);
  border: 2.5px solid var(--border);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all .15s;
}

.main-img-modal-prev {
  left: 10rem;
}

.main-img-modal-next {
  right: 10rem;
}

.main-img-modal-prev:hover,
.main-img-modal-next:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.main-img-modal:not(.phase-mode) .main-img-modal-prev,
.main-img-modal:not(.phase-mode) .main-img-modal-next {
  display: none;
}

.main-img-modal-btns {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {

  .main-img-modal-prev,
  .main-img-modal-next {
    position: static;
    transform: none;
    width: 60px;
    height: 48px;
  }

  .main-img-modal-inner {
    flex-direction: column;
    align-items: center;
  }
}

/* MAIN IMAGE HINT */
.main-img-hint {
  display: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: right;
  max-width: 100%;
  padding-right: 1rem;
  margin-top: 0.6rem;
}

@media (max-width: 768px) {
  .main-img-hint {
    display: block;
  }
}

/* ══════════════════════════════════════════
   PLANNING SLIDES
══════════════════════════════════════════ */
.planning-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  margin-top: 2rem;
  border: 2.5px solid var(--border);
}

.planning-index {
  border-right: 2.5px solid var(--border);
  overflow-y: auto;
}

.planning-index-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1.5px solid var(--border);
  cursor: none;
  transition: background .15s;
  position: relative;
}

.planning-index-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background .15s;
}

.planning-index-item:hover {
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
}

.planning-index-item.active {
  background: color-mix(in srgb, var(--accent) 20%, var(--bg));
}

.planning-index-item.active::before {
  background: var(--accent);
}

.planning-index-num {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  flex-shrink: 0;
}

.planning-index-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .planning-index {
    display: none;
  }

  .planning-wrap {
    grid-template-columns: 1fr;
  }
}

.planning-preview {
  position: relative;
  display: flex;
  flex-direction: column;
}

.planning-preview-img {
  aspect-ratio: unset;
  flex: 1;
  position: relative;
  overflow: hidden;
  background: none;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planning-preview-img .slide-bg {
  position: absolute;
  inset: 0;
}

.planning-preview-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  display: block;
}

@media (max-width: 768px) {
  .planning-wrap {
    grid-template-columns: 1fr;
    min-height: 70vw;
  }
}

@media (max-width: 768px) {
  .planning-preview-img {
    height: 80vw;
  }
}

.planning-preview-num {
  font-size: 5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 0;
}

.planning-preview-hint {
  position: absolute;
  bottom: 0.6rem;
  right: 0.7rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.5rem;
  opacity: 0;
  transition: opacity .2s;
  z-index: 2;
}

.planning-preview-img:hover .planning-preview-hint {
  opacity: 1;
}

.planning-preview-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-top: 2.5px solid var(--border);
  background: var(--accent);
  gap: 1rem;
}

.planning-preview-counter {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--bg);
}

.planning-preview-btns {
  display: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 64px;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: none;
  transition: background .15s, width .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--accent);
  width: 56px;
}

#planningPrev {
  left: 0;
  border-radius: 0 4px 4px 0;
}

#planningNext {
  right: 0;
  border-radius: 4px 0 0 4px;
}

/* OUTCOMES */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.outcome-card {
  padding: 1.5rem;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  border: 2.5px solid var(--border);
}

.outcome-icon {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.outcome-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.outcome-desc {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-sub);
}

.outcome-section {
  position: relative;
}

.outcome-section::before {
  content: '';
  position: absolute;
  left: -120px;
  top: -50px;
  width: 350px;
  height: 100%;
  opacity: 0.8;
  background-image: url('../img/hr/hr_decorate_3.svg');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 350px auto;
  pointer-events: none;
  z-index: 0;
}

.outcome-section>* {
  position: relative;
  z-index: 1;
}

.outcome-section-ys {
  position: relative;
}

.outcome-section-ys::before {
  content: '';
  position: absolute;
  left: -120px;
  top: -50px;
  width: 350px;
  height: 100%;
  opacity: 0.8;
  background-image: url('../img/ys/ys_decorate_2.svg');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 350px auto;
  pointer-events: none;
  z-index: 0;
}

.outcome-section-ys>* {
  position: relative;
  z-index: 1;
}


/* WORK NAV */
.work-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2.5px solid var(--border);
}

.work-nav-item {
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  display: flex;
  flex-direction: column;
}

.work-nav-item:first-child {
  border-right: 2.5px solid var(--border);
}

.work-nav-item:hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
}

.work-nav-dir {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.work-nav-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 768px) {
  .work-nav {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .work-nav-item:first-child {
    border-right: none;
    order: 2;
  }

  .work-nav-item:last-child {
    border-bottom: 2.5px solid var(--border);
    order: 1;
  }
}

/* PROCESS HEADER */
.process-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.process-header-text {
  flex: 1;
  margin-bottom: 2rem;
}

.process-header-text .content-section-title {
  margin-bottom: 0.5rem;
}

.process-header-decorate {
  flex-shrink: 0;
  width: 80px;
  margin-right: 1rem;
}

.process-header-decorate img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .process-header-decorate {
    width: 60px;
  }
}

.work-fd .process-header-decorate,
.process-header-decorate--fd {
  margin-right: 4rem;
}

.work-fd .process-header-decorate img,
.process-header-decorate--fd img {
  width: 120px;
}

.work-ep .process-header-decorate,
.process-header-decorate--ep {
  margin-right: 12rem;
}

.work-ep .process-header-decorate img,
.process-header-decorate--ep img {
  width: 250px;
}

@media (max-width: 768px) {
  .work-ep .process-header-decorate,
  .process-header-decorate--ep {
    margin-right: 5rem;
  }
}

@media (max-width: 768px) {

  .work-ep .process-header-decorate img,
  .process-header-decorate--ep img {
    width: 130px;
  }
}

/* DECORATE */
.work-hr_decorate {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.work-hr_decorate img {
  width: 160px;
  height: auto;
  display: block;
}

.work-fd .work-hr_decorate {
  justify-content: space-between;
  align-items: flex-end;
  overflow: hidden;
}

.work-fd .work-hr_decorate img:first-child {
  width: 250px;
}

.work-fd .work-hr_decorate img:last-child {
  width: 120px;
  margin-right: 3rem;
}

.work-ep .work-hr_decorate {
  justify-content: space-between;
  align-items: flex-end;
  overflow: hidden;
}

.work-ep .work-hr_decorate img:first-child {
  width: 140px;
  margin-left: 1rem;
}

.work-ep .work-hr_decorate img:last-child {
  width: 80px;
  margin-right: 3rem;
}

/* DETAIL HERO（スマホ） */
@media (max-width: 768px) {
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 7rem 1.2rem 3rem;
  }

  .detail-main-img {
    margin: 0 1.2rem;
  }
}