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

/* Tablet related info — visible at 481–768px */
@media screen and (max-width: 768px) {
  .sd[data-s-93b145a8-e95a-4818-95e1-89b36a2a60ee] {
    display: flex !important;
  }
}

/* SP history + SP related info — visible at ≤480px; tablet related: hide */
@media screen and (max-width: 480px) {
  .sd[data-s-93b145a8-e95a-4818-95e1-89b36a2a60ee] {
    display: none !important;
  }
  .sd[data-s-ca2064d5-3061-4afc-9549-3214899c2640],
  .sd[data-s-0a29b0b3-b1c0-485b-ac9b-6478644c6364] {
    display: flex !important;
  }
}

/* ===== SP History Timeline (BEM) ===== */

.profile-sp-history {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
}

.profile-sp-history__header {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-sp-history__label {
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 44px;
  color: #000;
  line-height: 1;
}

.profile-sp-history__sublabel {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  line-height: 1;
}

.profile-sp-history__timeline {
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
}

.profile-sp-history__line {
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background: #bebebe;
  z-index: 0;
}

.profile-sp-history__entries {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-bottom: 80px;
}

.profile-sp-history__entry {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.profile-sp-history__dot-col {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
  flex-shrink: 0;
}

.profile-sp-history__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 5px solid #FF0000;
  background: #fff;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.profile-sp-history__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.profile-sp-history__year {
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #FF0000;
  line-height: 1.2;
}

.profile-sp-history__title {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #000;
  line-height: 1.5;
}

.profile-sp-history__desc {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #000;
  line-height: 2;
}

@media screen and (max-width: 480px) {
  .profile-sp-history__label {
    font-size: 36px;
  }
  .profile-sp-history__title {
    font-size: 20px;
  }
  .profile-sp-history__desc {
    font-size: 14px;
    letter-spacing: 0.02em;
  }
  .profile-sp-history__entries {
    gap: 40px;
  }
}

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

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

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

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

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

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

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

.profile-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;
}

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

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

@media screen and (max-width: 480px) {
  .profile-sp-related__title {
    line-height: 1.4;
  }
  .profile-sp-related__grid {
    gap: 30px;
  }
}
