.design-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ヒーローセクション */
.design-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.design-hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.design-hero-title {
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.1em;
  margin: 0;
}

/* メインコンテンツラッパー */
.design-content-wrapper {
  max-width: var(--container-width-standard);
  margin: 0 auto;
  padding: 0 2rem;
  flex: 1;
}

/* イントロテキスト */
.design-intro {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #fff;
}

/* サービスグリッド */
.design-services {
  padding: 0 0;
}

.design-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.design-service-item {
  display: flex;
  flex-direction: column;
  padding: 10px 40px;
  position: relative;
  width: 100%;
}

/* 右側の縦線（3列目以外） */
.design-service-item:not(:nth-child(3n))::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 2%;
  width: 1px;
  background-color: #e0e0e0;
}

.design-service-image {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.design-service-image img {
  max-width: 80%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.design-service-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
  line-height: 1.4;
  text-align: center;
}

.design-service-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin: 0;
  text-align: center;
}

/* 2カラムセクション */
.design-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 0;
  align-items: center;
}

.design-feature.reverse {
  direction: rtl;
}

.design-feature.reverse > * {
  direction: ltr;
}

.feature-image {
  width: 100%;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e0e0e0;
}

.feature-content {
  padding: 0 20px;
}

.design-feature-title {
  position: relative;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: normal;
  color: #333;
  padding-bottom: 8px;
}

.design-feature-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5px; /* 左を少し削る */
  width: 15%; /* 線の長さ（右を短く） */
  border-bottom: 4px solid #e0e0e0;
}

.feature-text:last-child {
  margin-bottom: 0;
}

.design-feature-under-title {
  font-size: 1.2rem;
  text-align: center;
  font-weight: 400;
}


/* CTAボタン */
.design-cta {
  text-align: center;
  padding: 4rem 0;
}

/* ========================================
   CategoryList - 制作物例セクション
   ======================================== */
.category-list-section {
  padding: 60px 0;
  background-color: #fff;
}

.category-list-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.category-list-main-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
  text-align: center;
  margin: 0;
  padding: 0 30px;
  background-color: #fff;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.category-list-box {
  border: 1px solid #AAA;
  padding: 50px 40px 40px;
  position: relative;
  margin-top: 20px;
}

.category-row {
  display: grid;
  grid-template-columns: 180px 10px 1fr;
  gap: 30px;
  align-items: start;
  padding: 25px 0;
  border-bottom: 1px solid #e0e0e0;
}

.category-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.category-row:first-child {
  padding-top: 0;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  padding-top: 5px;
}

.category-divider {
  width: 1px;
  height: 100%;
  background-color: #e0e0e0;
  min-height: 40px;
}

.category-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 30px;
}

.category-item {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .design-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 縦線を2列用に調整 */
  .design-service-item:not(:nth-child(3n))::after {
    display: none;
  }

  .design-service-item:not(:nth-child(2n))::after {
    display: block;
  }

  /* 横線を2列用に調整 */
  .design-service-item:nth-child(1)::before,
  .design-service-item:nth-child(2)::before,
  .design-service-item:nth-child(3)::before {
    display: none;
  }

  .design-service-item:nth-child(1)::before,
  .design-service-item:nth-child(2)::before,
  .design-service-item:nth-child(3)::before,
  .design-service-item:nth-child(4)::before {
    display: block;
  }
}

@media (max-width: 768px) {
  .design-hero-title {
    font-size: 2rem;
    left: 5%;
  }
  .design-hero-image {
    filter: blur(4px) brightness(1.05);
    transform: scale(1.05); /* 端のボケ防止 */
  }

  .design-content-wrapper {
    padding: 0 1rem;
  }

  .design-intro {
    padding: 2rem 1rem;
  }

  .intro-title {
    font-size: 1.5rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  .design-services-grid {
    grid-template-columns: 1fr;
  }

  .design-service-item {
    padding: 30px 20px;
  }

  /* 縦線を全て非表示 */
  .design-service-item::after {
    display: none;
  }

  /* 横線を全て表示（最後以外） */
  .design-service-item:nth-child(1)::before,
  .design-service-item:nth-child(2)::before,
  .design-service-item:nth-child(3)::before,
  .design-service-item:nth-child(4)::before {
    display: none;
  }

  .design-service-item::before {
    display: block;
    left: 10%;
    right: 10%;
  }

  .design-service-item:last-child::before {
    display: none;
  }

  .design-service-title {
    font-size: 1.1rem;
  }

  .design-service-description {
    font-size: 0.9rem;
  }

  .design-feature {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
  }

  .design-feature.reverse {
    direction: ltr;
  }

  .feature-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .feature-text {
    font-size: 0.9rem;
  }

  .feature-content {
    padding: 0;
  }

  .design-cta {
    padding: 3rem 0;
  }

  .cta-button {
    padding: 1rem 3rem;
    font-size: 1rem;
  }

  /* CategoryList レスポンシブ */
  .category-list-section {
    padding: 40px 0;
  }

  .category-list-wrapper {
    padding: 0 1rem;
  }

  .category-list-main-title {
    font-size: 1.2rem;
    padding: 0 20px;
    top: -18px;
  }

  .category-list-box {
    padding: 40px 20px 20px;
  }

  .category-row {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px 0;
  }

  .category-title {
    font-size: 1rem;
    padding-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
  }

  .category-divider {
    display: none;
  }

  .category-items {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .category-item {
    font-size: 0.85rem;
  }
}
