/* ==========================================================================
   1. Base Styles (Smartphone Vertical)
   ========================================================================== */
.test-sustainability-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 15px;
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #333;
  text-align: left;
}

.test-main-title {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 25px;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #333;
  padding-bottom: 12px;
}

/* SDGs Intro Section */
.test-sdgs-intro {
  margin-bottom: 40px;
  text-align: center;
  background: #f9f9f9;
  padding: 30px 15px;
  border-radius: 8px;
}

.test-intro-title {
  font-size: 1.35rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #111;
}

.test-intro-text {
  max-width: 750px;
  margin: 0 auto 20px auto;
  line-height: 1.8;
  color: #444;
}

.test-intro-img-wrap {
  max-width: 500px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.test-intro-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* SDGs Targets Loop Section */
.test-sdgs-targets {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.test-target-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 30px;
}

.test-target-item.is-last {
  border-bottom: none;
  padding-bottom: 10px;
}

/* Target Body */
.test-target-body {
  width: 100%;
}

.test-target-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.test-target-badge {
  color: #fff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.test-target-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

.test-target-text {
  line-height: 1.7;
  color: #444;
  margin: 0;
}

/* Target Media */
.test-target-media {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.test-target-img-wrap {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.test-target-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Brands Area (Goal 11) */
.test-target-brands {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.brand-badge {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-badge img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   2. Landscape Mode (Short Screens)
   ========================================================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .test-sustainability-container {
    padding: 30px 20px;
  }
  .test-sdgs-targets {
    gap: 30px;
  }
  .test-target-item {
    flex-direction: row;
    gap: 25px;
  }
  .test-target-body {
    flex: 1;
    min-width: 250px;
  }
  .test-target-media {
    width: 280px;
  }
}

/* ==========================================================================
   3. Tablet Styles
   ========================================================================== */
@media screen and (min-width: 768px) and (min-height: 501px) {
  .test-sustainability-container {
    padding: 50px 30px;
  }
  .test-target-item {
    flex-direction: row;
    gap: 30px;
  }
  .test-target-body {
    flex: 1;
    min-width: 320px;
  }
  .test-target-media {
    width: 320px;
  }
}

/* ==========================================================================
   4. Desktop Styles
   ========================================================================== */
@media screen and (min-width: 1024px) and (min-height: 501px) {
  .test-sustainability-container {
    padding: 60px 20px;
  }
  .test-main-title {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
  }
  .test-sdgs-intro {
    padding: 40px 20px;
  }
  .test-intro-title {
    font-size: 1.5rem;
  }
  .test-sdgs-targets {
    gap: 50px;
  }
  .test-target-item {
    padding-bottom: 40px;
  }

  .test-target-media {
    width: 380px; /* 320pxから380pxに拡張してロゴの表示領域を確保 */
  }
}
