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

/* SP CORPORATE ROOTS — visible at ≤768px */
@media screen and (max-width: 768px) {
  .sd[data-s-b497c587-bd57-485f-9563-c08130bae41e] {
    display: flex !important;
  }
}

/* Tablet related info — visible at 481–768px */
@media screen and (max-width: 768px) {
  .sd[data-s-5b65f5d3-7a27-412b-ba7c-08103110b120] {
    display: flex !important;
  }
}
@media screen and (max-width: 480px) {
  .sd[data-s-5b65f5d3-7a27-412b-ba7c-08103110b120] {
    display: none !important;
  }
}

/* SP related info — visible at ≤480px */
@media screen and (max-width: 480px) {
  .sd[data-s-1f4587aa-58ae-47a6-a4f3-6d1710a75f0b] {
    display: flex !important;
  }
}

/* SP 社名の由来 — visible at ≤480px */
@media screen and (max-width: 480px) {
  .sd[data-s-33951799-62cb-4a00-b5e4-b963553e4d54] {
    display: flex !important;
  }
}

/* SP ロゴマークの由来 — visible at ≤480px */
@media screen and (max-width: 480px) {
  .sd[data-s-1082df49-8995-4470-a941-fe8565e86151] {
    display: flex !important;
  }
}

/* SP body text overrides (existing content, override sf-hidden) */
@media screen and (max-width: 1140px) {
  .sd[data-s-5dc0307a-bb9d-494d-a8c8-928acf9bab75],
  .sd[data-s-8db3b4d7-0848-4c55-94f2-d5a1d5ea8933] {
    display: flex !important;
  }
}

/* ===== SP MESSAGE (BEM) ===== */

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

.about-sp-message__photos {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.about-sp-message__photo {
  width: 100%;
  height: auto;
  display: block;
}

.about-sp-message__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 30px;
}

.about-sp-message__header {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

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

.about-sp-message__body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #000;
  line-height: 2;
}

.about-sp-message__signature {
  width: 92%;
  height: auto;
  display: block;
}

@media screen and (max-width: 480px) {
  .about-sp-message__content {
    padding: 0 20px;
  }
  .about-sp-message__label {
    font-size: 36px;
  }
  .about-sp-message__body {
    font-size: 14px;
  }
  .about-sp-message__signature {
    width: 98%;
  }
}

/* ===== SP CORPORATE ROOTS (BEM) ===== */

.about-sp-roots {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.about-sp-roots__header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 30px;
}

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

.about-sp-roots__sublabel {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  line-height: 1;
  margin-bottom: 60px;
}

.about-sp-roots__chapter {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.about-sp-roots__hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  object-position: center top;
}

.about-sp-roots__chapter-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 70px 30px;
}

.about-sp-roots__chapter-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-sp-roots__num {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  line-height: 1;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #ea3323;
}

.about-sp-roots__title {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 28px;
  color: #fff;
  line-height: 1.4;
}

.about-sp-roots__chapter-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.about-sp-roots__text {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #fff;
  line-height: 2;
}
.about-sp-roots__chapter:nth-child(3) .about-sp-roots__title,
.about-sp-roots__chapter:nth-child(3) .about-sp-roots__text {
  color: black;
}

.about-sp-roots__photo {
  width: 100%;
  height: auto;
  display: block;
  max-width: 60%;
  margin: 40px auto 0;

}

@media screen and (max-width: 480px) {
  .about-sp-roots__header {
    padding: 0;
  }
  .about-sp-roots__label {
    font-size: 44px;
    text-align: left;
    justify-content: flex-start;
  }
  .about-sp-roots__chapter-inner {
    padding: 80px 20px;
  }
  .about-sp-roots__title {
    font-size: 24px;
  }
}

/* ===== SP ORIGIN text (BEM) ===== */

.about-sp-origin__title {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #000;
  line-height: 1;
}

.about-sp-origin__body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: normal;
  font-size: 14px;
  color: #000;
  line-height: 2;
}

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

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

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

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

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

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

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

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

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

  .about-sp-roots__num {
    width: 50px;
    height: 50px;
  }
}
