/* =============================================
   Top Page — SP/Tablet Components

   PC sections: styled by top-studio.css (data-s-*)
   SP/Tablet sections: BEM classes styled here
   Display toggles: handled by top-studio.css media queries
   ============================================= */


/* ===== Display Toggle Overrides =====
   Studio CSS handles most display toggles via media queries.
   These overrides cover desktop where studio CSS doesn't set
   display:none for SP sections (they were sf-hidden originally). */

@media screen and (min-width: 1141px) {
  .sd[data-s-aa2aa950-a60f-425c-937f-e7d986b82f2a],
  .sd[data-s-204a0638-21d5-4a5a-8a18-8b44c90da950],
  .sd[data-s-67579ec9-085b-417b-94fc-f938fc6304c4],
  .sd[data-s-ebdeeaaa-5ff5-4ae4-8487-645218a2bebb],
  .sd[data-s-5696b195-0ece-4a40-9d8d-e6f04b4e900f],
  .sd[data-s-f391e7cd-e9d2-455a-a559-9f58767b56b2],
  .sd[data-s-7c16b0af-794f-4020-9b8d-606128a5d9ee],
  .sd[data-s-1d7971c7-c3b9-4e23-b170-b36a5248c4de] {
    display: none;
  }
  /* Hide SP-only text variants in PC service/about sections */
  .sd[data-s-952df27b-4b6c-4569-9c13-2acf3e081b92],
  .sd[data-s-0ef8c751-ed3d-49da-97ff-4ecc3a99ba77] {
    display: none;
  }
}

/* Mobile about section needs column direction (studio CSS has no flex-direction) */
@media screen and (max-width: 480px) {
  .sd[data-s-ebdeeaaa-5ff5-4ae4-8487-645218a2bebb] {
    flex-direction: column !important;
    width: 100% !important;
  }
  /* Mobile IR/Company section: column stack */
  .sd[data-s-1d7971c7-c3b9-4e23-b170-b36a5248c4de] {
    flex-direction: column !important;
  }
  /* Override studio .appear opacity — no IntersectionObserver JS in theme */
  .sd[data-s-204a0638-21d5-4a5a-8a18-8b44c90da950].appear {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Recruit sections: studio CSS has no flex-direction */
  .sd[data-s-f391e7cd-e9d2-455a-a559-9f58767b56b2] {
    flex-direction: column !important;
  }
}


/* =============================================================
   SERVICE SP COMPONENT
   Used in both tablet (aa2aa950) and mobile (204a0638) sections
   ============================================================= */

.service-sp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  padding: 0 30px;
  box-sizing: border-box;
}

.service-sp__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.service-sp__title-img {
  width: 355px;
  max-width: 355px;
  height: auto;
  display: block;
}

.service-sp__subtitle-img {
  width: 300px;
  max-width: 300px;
  height: auto;
  display: block;
}

.service-sp__text {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 2;
  color: #000;
}

.service-sp__hero {
  width: 280px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Service SP CTA --- */
.service-sp__cta {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #bebebe;
  padding: 7px 15px 6px 15px;
  text-decoration: none;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 20px;
}

.service-sp__cta-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 5;
}

.service-sp__cta-inner p {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: #000;
  transition: color 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-sp__cta-arrow {
  width: 10px;
  height: auto;
  transition: opacity 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-sp__cta-arrow-hover {
  position: absolute;
  top: 0;
  right: 4px;
  bottom: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  z-index: 2;
  transition: opacity 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-sp__cta-arrow-hover img {
  width: 10px;
  height: auto;
}

.service-sp__cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #000;
  z-index: 0;
  transition: width 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-sp__cta:hover .service-sp__cta-inner p { color: #fff; }
.service-sp__cta:hover .service-sp__cta-arrow { opacity: 0; }
.service-sp__cta:hover .service-sp__cta-arrow-hover { opacity: 1; }
.service-sp__cta:hover .service-sp__cta-bg { width: 100%; }

/* --- Mobile service adjustments --- */
@media screen and (max-width: 480px) {
  .service-sp {
    padding: 0 20px;
    gap: 20px;
  }
  .service-sp__title-img {
    width: 95%;
  }
  .service-sp__text {
    font-size: 13px;
  }
}


/* =============================================================
   ABOUT TABLET COMPONENT
   2-column layout: text left (50%), image cards right (50%)
   Visible at 768px only
   ============================================================= */

.about-tablet__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 50%;
  padding: 40px 30px;
  box-sizing: border-box;
}

.about-tablet__title {
  display: flex;
  width: 80%;
}

.about-tablet__title-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
}

.about-tablet__body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 2;
  color: #000;
}

/* --- About Tablet CTA --- */
.about-tablet__cta {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #bebebe;
  padding: 7px 15px 6px 15px;
  text-decoration: none;
  overflow: hidden;
  box-sizing: border-box;
}

.about-tablet__cta-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 5;
}

.about-tablet__cta-inner p {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: #000;
  transition: color 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.about-tablet__cta-arrow {
  width: 10px;
  height: auto;
  transition: opacity 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.about-tablet__cta-arrow-hover {
  position: absolute;
  top: 0;
  right: 15px;
  bottom: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  z-index: 2;
  transition: opacity 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.about-tablet__cta-arrow-hover img {
  width: 10px;
  height: auto;
}

.about-tablet__cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #000;
  z-index: 0;
  transition: width 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.about-tablet__cta:hover .about-tablet__cta-inner p { color: #fff; }
.about-tablet__cta:hover .about-tablet__cta-arrow { opacity: 0; }
.about-tablet__cta:hover .about-tablet__cta-arrow-hover { opacity: 1; }
.about-tablet__cta:hover .about-tablet__cta-bg { width: 100%; }

/* --- About Tablet Image Cards --- */
.about-tablet__cards {
  display: flex;
  flex-direction: column;
  width: 50%;
}

.about-tablet__card {
  position: relative;
  width: 100%;
  height: 273px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.about-tablet__card--philosophy {
  background-image: url('../img/top/pseudo-bg-0_1_0_9_.webp');
}

.about-tablet__card--vision {
  background-image: url('../img/top/pseudo-bg-1_1_0_9_.webp');
}

.about-tablet__card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  height: 100%;
  justify-content: flex-end;
  box-sizing: border-box;
}

.about-tablet__card-label {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: #fff;
}

.about-tablet__card-line {
  width: 85%;
  height: auto;
  display: block;
}

.about-tablet__card--vision .about-tablet__card-line {
  width: 96%;
}


/* =============================================================
   ABOUT SP COMPONENT (Mobile ≤480px)
   Stacked: content → philosophy card → vision card
   ============================================================= */

.about-sp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  padding: 80px 20px 40px 20px;
  box-sizing: border-box;
}

.about-sp__title {
  display: flex;
  justify-content: center;
  width: 80%;
}

.about-sp__title-img {
  width: 100%;
  /* max-width: 250px; */
  height: auto;
  display: block;
}

.about-sp__body-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.about-sp__text {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 2;
  color: #000;
}

/* --- About SP CTA --- */
.about-sp__cta {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #bebebe;
  padding: 7px 15px 6px 15px;
  text-decoration: none;
  overflow: hidden;
  box-sizing: border-box;
}

.about-sp__cta-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 5;
}

.about-sp__cta-inner p {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: #000;
  transition: color 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.about-sp__cta-arrow {
  width: 10px;
  height: auto;
  transition: opacity 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.about-sp__cta-arrow-hover {
  position: absolute;
  top: 0;
  right: 4px;
  bottom: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  z-index: 2;
  transition: opacity 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.about-sp__cta-arrow-hover img {
  width: 10px;
  height: auto;
}

.about-sp__cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #000;
  z-index: 0;
  transition: width 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.about-sp__cta:hover .about-sp__cta-inner p { color: #fff; }
.about-sp__cta:hover .about-sp__cta-arrow { opacity: 0; }
.about-sp__cta:hover .about-sp__cta-arrow-hover { opacity: 1; }
.about-sp__cta:hover .about-sp__cta-bg { width: 100%; }

/* --- About SP Image Cards --- */
.about-sp__card {
  position: relative;
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.about-sp__card--philosophy {
  background-image: url('../img/top/pseudo-bg-0_1_0_9_.webp');
}

.about-sp__card--vision {
  background-image: url('../img/top/pseudo-bg-1_1_0_9_.webp');
}

.about-sp__card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  height: 100%;
  justify-content: flex-end;
  box-sizing: border-box;
}

.about-sp__card-label {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: #fff;
}

.about-sp__card-line {
  width: 84%;
  height: auto;
  display: block;
}

.about-sp__card--vision .about-sp__card-line {
  width: 93%;
}


/* =============================================================
   RECRUIT SP COMPONENT
   Faithful to refs/top_mobile.html structure
   Used in f391e7cd (480px) and 7c16b0af (320px) sections
   Root <a> styled by studio CSS (bg:#3a3a3a, display:flex, width:100%)
   flex-direction:column added via override above
   ============================================================= */

/* --- Top photo row --- */
.recruit-sp__photos-top {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  margin: 30px 0 0 0;
}

.recruit-sp__photo-cell {
  display: flex;
  align-items: center;
  width: calc(50% - 30px);
}

.recruit-sp__photo-cell--left {
  margin-left: 30px;
  justify-content: flex-start;
}

.recruit-sp__photo-cell--right {
  margin-right: 30px;
  justify-content: flex-end;
}

.recruit-sp__photo {
  width: 48%;
  height: auto;
  display: block;
}

/* --- Content column --- */
.recruit-sp__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.recruit-sp__logo {
  width: 35px;
  height: auto;
}

.recruit-sp__text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.recruit-sp__title {
  width: 80%;
  height: auto;
}

.recruit-sp__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.recruit-sp__subtitle {
  /* width: 75%; */
  width: 270px;
  height: auto;
}

.recruit-sp__cta-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.recruit-sp__cta-text {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: #fff;
  text-align: center;
}

.recruit-sp__arrow-wrap {
  padding: 0 0 3px 0;
}

.recruit-sp__arrow {
  width: 12px;
  height: auto;
  flex-shrink: 0;
}

/* --- Bottom photo strip (staggered collage) --- */
.recruit-sp__photos-bottom {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin: 0 0 20px 0;
}

.recruit-sp__photo-strip {
  height: auto;
  display: block;
  object-fit: contain;
  position: relative;
}

.recruit-sp__photo-strip:nth-child(1) { width: calc(24% - 20px); margin: 22px 20px 75px 0; }
.recruit-sp__photo-strip:nth-child(2) { width: calc(26% - 20px); margin: 40px 20px 10px 0; }
.recruit-sp__photo-strip:nth-child(3) { width: calc(25% - 20px); margin: 40px 0 0 20px; }
.recruit-sp__photo-strip:nth-child(4) { width: calc(23% - 20px); margin: 20px 0 50px 20px; }


/* =============================================================
   IR/COMPANY SP COMPONENT
   Mobile ≤480px, full-width cards with background images
   ============================================================= */

.ir-sp__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  width: 100%;
  height: 220px;
  padding: 20px;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.ir-sp__card--ir {
  background-image: url('../img/top/pseudo-bg-2_0_13_4.webp');
}

.ir-sp__card--company {
  background-image: url('../img/top/pseudo-bg-2_1_13_d.webp');
}

.ir-sp__card-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.ir-sp__card-text {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #fff;
}

.ir-sp__card-arrow {
  height: 14px;
  width: auto;
}
