/* ===== Display Toggle Overrides ===== */

/* Tablet related info — visible at 481–768px */
@media screen and (max-width: 768px) {
  .sd[data-s-2122342a-4f43-45a5-b1ec-154bd65b1b13] {
    display: flex !important;
  }
}

/* SP CEO image + SP related info — visible at ≤480px */
@media screen and (max-width: 480px) {
  .sd[data-s-2122342a-4f43-45a5-b1ec-154bd65b1b13] {
    display: none !important;
  }
  .sd[data-s-f5658692-de08-4eff-9000-9fab716b6f0a],
  .sd[data-s-171e9e69-b6e4-4396-bc78-7fc006fd9ca5] {
    display: flex !important;
  }
}

/* ===== SP/Tablet Related Info (BEM) ===== */

.message-sp-related {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 1320px;
}

.message-sp-related__title {
  margin: 0;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.5;
}

.message-sp-related__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 20px;
  width: 100%;
}

.message-sp-related__card {
  display: block;
  position: relative;
  width: calc(50% - 10px);
  text-decoration: none;
  overflow: hidden;
}

.message-sp-related__card-bg {
  width: 100%;
  height: auto;
  display: block;
}

.message-sp-related__card-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #757879;
}

.message-sp-related__card-label {
  margin: 0;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.message-sp-related__card-arrow {
  width: 13px;
  height: auto;
  flex-shrink: 0;
}

@media screen and (max-width: 480px) {
  .message-sp-related__grid {
    flex-direction: column;
    gap: 40px;
  }
  .message-sp-related__card {
    width: 100%;
  }
  .message-sp-related__card-label {
    font-size: 14px;
  }
  .message-sp-related__card-arrow {
    width: 14px;
  }
  .message-sp-related__card-panel {
    gap: 16px;
  }
}
