/* ===========================
   LP風レイアウト（type_c）CSS
   パス: assets/css/service-lp.css
   =========================== */

/* ===========================
   Base
   =========================== */
.work-detail {
  width: 100%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.work-detail *,
.work-detail *::before,
.work-detail *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===========================
   Hero Section
   =========================== */
.work-hero {
  width: 100%;
  background-color: #ffffff;
}

.work-hero__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 30px;
  min-height: 600px;
}

.work-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-shrink: 0;
}

.work-hero__tag {
  height: 30px;
  padding: 0 24px;
  background-color: #0870ca;
  border-radius: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.work-hero__tag span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  font-family: "Inter", sans-serif;
}

.work-hero__title {
  color: #0870ca;
  font-size: 56px;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.2;
  white-space: nowrap;
}

.work-hero__subtitle {
  color: #0870ca;
  font-size: 38px;
  font-weight: 300;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.2;
  white-space: nowrap;
}

.work-hero__image {
  width: 471px;
  height: 481px;
  flex-shrink: 0;
}

.work-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-hero__image-placeholder {
  width: 100%;
  height: 100%;
  background-color: #d9d9d9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.work-hero__image-placeholder span {
  color: #000000;
  font-size: 94.71px;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
}

/* ===========================
   Meta Bar
   =========================== */
.work-meta {
  width: 100%;
  background-color: #0870ca;
}

.work-meta__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.work-meta__item {
  width: 220px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.work-meta__item:first-child {
  padding-left: 0;
  padding-right: 40px;
}

.work-meta__item--wide {
  width: 280px;
}

.work-meta__label {
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.work-meta__value {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
  text-align: center;
}

.work-meta__value--en {
  font-family: "Inter", sans-serif;
}

.work-meta__divider {
  width: 1px;
  height: 48px;
  background-color: #ffffff;
  flex-shrink: 0;
}

/* ===========================
   Spacer
   =========================== */
.work-spacer {
  width: 100%;
  height: 100px;
}

/* ===========================
   Overview Section
   =========================== */
.work-overview {
  width: 100%;
  padding: 120px 0;
}

.work-overview__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 80px;
}

.work-overview__left {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
}

.work-section-label {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
}

.work-section-label__line-wrap {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.work-section-label__line {
  display: block;
  width: 32px;
  height: 2px;
  background-color: #0870ca;
}

.work-section-label__text {
  color: #0870ca;
  font-size: 12px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.work-section-label__heading {
  color: #111111;
  font-size: 36px;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
}

.work-overview__description {
  width: 480px;
  color: #555555;
  font-size: 15px;
  font-weight: 400;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

.work-overview__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
}

/* ===========================
   Cards (Assignment / Compatible content)
   =========================== */
.work-card {
  width: 100%;
  padding: 32px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.work-card--blue {
  background-color: #0870ca;
}

.work-card__header {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.work-card__icon {
  width: 20px;
  height: 20px;
}

.work-card__title {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.work-card__text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

/* ===========================
   Gallery Section
   =========================== */
.work-gallery {
  width: 100%;
  background-color: #ffffff;
  padding: 140px 0;
}

.work-gallery__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
	align-items: flex-start;
}

.work-gallery__item {
  width: 325px;
	height:auto;
  border-radius: 16px;
  box-shadow: 0px 20px 60px 0px rgba(0, 0, 0, 0.13);
}

.work-gallery__item img {
  width: 100%;
  height: auto;
   display: block;
  border-radius: 16px;
}

.work-gallery__item--placeholder {
  background-color: #eeeeee;
  display: flex;
  justify-content: center;
  align-items: center;
}

.work-gallery__item--placeholder span {
  color: #000000;
  font-size: 68.64px;
  font-weight: 400;
  font-family: "Noto Sans JP", sans-serif;
}

/* ===========================
   Other Works Section
   =========================== */
.work-other {
  width: 100%;
  padding: 100px 60px;
}

.work-other__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
}

.work-other__header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.work-other__label {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.work-other__label-line {
  display: block;
  width: 32px;
  height: 2px;
  background-color: #9b6fd6;
}

.work-other__label-text {
  color: #9b6fd6;
  font-size: 12px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.work-other__heading {
  text-align: center;
  color: #111111;
  font-size: 36px;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
}

.work-other__cards {
  width: 100%;
  max-width: 1320px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
}

.work-other__card {
  width: calc((100% - 64px) / 3);
  border-radius: 12px;
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.work-other__card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.12);
}

.work-other__card-thumb {
  width: 100%;
  height: 260px;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.work-other__card-thumb img {
  width: 48px;
  height: 48px;
}

.work-other__card-body {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
}

.work-other__card-tags {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.work-other__card-tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  font-family: "Noto Sans JP", sans-serif;
}

.work-other__card-company {
  color: #111111;
  font-size: 16px;
  font-weight: 900;
  font-family: "Noto Sans JP", sans-serif;
}

.work-other__card-desc {
  color: #777777;
  font-size: 13px;
  font-weight: 400;
  font-family: "Noto Sans JP", sans-serif;
}

/* ===========================
   SP Responsive (max-width: 768px)
   =========================== */
@media screen and (max-width: 768px) {

  /* --- Hero Section --- */
  .work-hero__inner {
    padding: 40px 20px 32px;
    flex-direction: column;
    gap: 32px;
    min-height: auto;
  }

  .work-hero__content {
    gap: 16px;
    width: 100%;
  }

  .work-hero__tag {
    height: 26px;
    padding: 0 16px;
  }

  .work-hero__tag span {
    font-size: 10px;
  }

  .work-hero__title {
    font-size: 28px;
    white-space: normal;
  }

  .work-hero__subtitle {
    font-size: 18px;
    white-space: normal;
  }

  .work-hero__image {
   width: 100%;    /* 横幅を画面いっぱいに */
    height: auto;   /* ★重要：280px固定を解除してautoにする */
    max-width: 250px; /* 大きくなりすぎるのを防ぐ（お好みで調整） */
    margin: 0 auto;
  }
	
	.work-hero__image img {
    width: 100%;    /* 画像を枠いっぱいに広げる */
    height: auto;   /* 縦横比を維持 */
    display: block;
    object-fit: contain; /* 全体を表示 */
  }

  .work-hero__image-placeholder span {
    font-size: 48px;
  }

  /* --- Meta Bar --- */
  .work-meta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 24px 20px;
    gap: 0;
  }

  .work-meta__item {
    width: auto;
    padding: 12px 16px;
    gap: 4px;
  }

  .work-meta__item:first-child {
    padding-left: 16px;
    padding-right: 16px;
  }

  .work-meta__item--wide {
    width: auto;
  }



  .work-meta__item:nth-child(5),
  .work-meta__item:nth-child(7) {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 16px;
  }

  .work-meta__item:nth-child(6),
  .work-meta__item:nth-child(8) {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 16px;
  }

  /* SP版ではgridなのでdividerは非表示 */
  .work-meta__divider {
    display: none;
  }

  .work-meta__label {
    font-size: 10px;
  }

  .work-meta__value {
    font-size: 12px;
  }

  /* --- Spacer --- */
  .work-spacer {
    height: 40px;
  }

  /* --- Overview Section --- */
  .work-overview {
    padding: 40px 0;
  }

  .work-overview__inner {
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
  }

  .work-overview__left {
    width: 100%;
    gap: 24px;
  }

  .work-section-label__heading {
    font-size: 24px;
  }

  .work-overview__description {
    width: 100%;
    font-size: 14px;
  }

  .work-overview__right {
    width: 100%;
    gap: 16px;
  }

  /* --- Cards --- */
  .work-card {
    padding: 24px;
    gap: 12px;
  }

  .work-card__text {
    font-size: 13px;
  }

  /* --- Gallery Section --- */
  .work-gallery {
    padding: 30px 0;
  }

  .work-gallery__inner {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
  }

  .work-gallery__item {
    width: 100%;
    height: auto;
  }

  /* SP版では3枚目を非表示（Figmaデザインに合わせて2枚表示） */

  .work-gallery__item--placeholder span {
    font-size: 40px;
  }

  /* --- Other Works Section --- */
  .work-other {
    padding: 48px 20px;
  }

  .work-other__inner {
    gap: 32px;
  }

  .work-other__heading {
    font-size: 24px;
  }

  .work-other__cards {
    flex-direction: column;
    gap: 20px;
  }

  .work-other__card {
    width: 100%;
  }

  .work-other__card-thumb {
    height: 200px;
  }
}

