/* =============================================
   Service page — responsive overrides
   Loaded AFTER service-studio.css
   ============================================= */

/* CTA arrow rotation */
.sd[data-s-4da9cd17-26e1-4891-88e0-1688ecb3a948],
.sd[data-s-872ac7b8-c27e-43b0-90f5-6a769c357017] {
  transform: rotate(-45deg);
}

/* Filter result heading */
.filter-result {
  text-align: center;
  padding: 60px 20px 0;
}
.filter-result__text {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}
@media screen and (max-width: 480px) {
  .filter-result {
    padding: 40px 16px 0;
  }
  .filter-result__text {
    font-size: 16px;
  }
}


/* ===========================================
   Display toggle — override sf-hidden
   =========================================== */

/* Tablet grid: show at 480-768px */
@media screen and (max-width: 768px) {
  .sd[data-s-5d3b4eee-3248-4f5b-9e2d-aba9736ff0e6] {
    display: flex !important;
  }
}
@media screen and (max-width: 480px) {
  .sd[data-s-5d3b4eee-3248-4f5b-9e2d-aba9736ff0e6] {
    display: none !important;
  }
}

/* Mobile list: show at <=480px */
@media screen and (max-width: 480px) {
  .sd[data-s-54310144-896c-4ae6-9768-6cf634946068] {
    display: flex !important;
    margin: 60px 0 90px 0;
    width: 100%;
    max-width: 100%;
  }
}
/* SP description (inside 80ed1190): show at <=1140px */
@media screen and (max-width: 1140px) {
  .sd[data-s-34b0ba8a-4ce8-471c-8b34-86c35c885c4b] {
    display: flex !important;
  }
}

/* keyword_sp: show at <=480px */
@media screen and (max-width: 480px) {
  #keyword_sp.sd[data-s-3b49ff74-bd5a-48ce-b6bd-5ecf71ffc468] {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    margin: 0 20px;
    padding: 40px 20px 30px 20px;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
  }
}


/* ===========================================
   Tablet grid (480-768px)
   =========================================== */

.service-tablet-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 0;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 30px;
  width: calc(100% - 60px);
}

.service-tablet-grid__item {
  flex: none;
  width: calc(50% - 20px);
  list-style: none;
}

.service-tablet-grid__link {
  display: block;
  position: relative;
  border: 1px solid #a0a0a0;
  padding: 12px 28px 11px 28px;
  overflow: hidden;
  text-decoration: none;
}

.service-tablet-grid__img {
  display: block;
  width: 100%;
  height: auto;
}

.service-tablet-grid__hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-tablet-grid__link:hover .service-tablet-grid__hover {
  opacity: 1;
}


/* ===========================================
   Mobile service cards (<=480px)
   =========================================== */

.service-sp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
  max-width: 100%;
}

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

.service-sp-card__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  margin: 0 20px;
  width: calc(100% - 40px);
}

.service-sp-card__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.service-sp-card__img {
  width: 100%;
  height: auto;
  display: block;
}

.service-sp-card__desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 2.0;
  color: #333;
  width: 100%;
}

.service-sp-card__desc h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 1em 0 0.5em;
}

.service-sp-card__desc p {
  margin: 0 0 0.5em;
}

/* Tag pills */
.service-sp-card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
}

.service-sp-card__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  border-radius: 100px;
  padding: 8px 16px;
}

.service-sp-card__tag span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1.0;
  color: #000;
}

/* CTA button */
.service-sp-card__cta {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  border: 1px solid #a0a0a0;
  padding: 7px 0 6px 0;
  text-decoration: none;
  overflow: hidden;
  box-sizing: border-box;
}

.service-sp-card__cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 5;
}

.service-sp-card__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-card__cta-arrow {
  width: 10px;
  height: auto;
  transition: opacity 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-sp-card__cta-arrow-hover {
  position: absolute;
  top: 0;
  right: 20px;
  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-card__cta-arrow-hover img {
  width: 10px;
  height: auto;
}

.service-sp-card__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);
}

/* CTA hover */
.service-sp-card__cta:hover .service-sp-card__cta-inner p {
  color: #fff;
}

.service-sp-card__cta:hover .service-sp-card__cta-arrow {
  opacity: 0;
}

.service-sp-card__cta:hover .service-sp-card__cta-arrow-hover {
  opacity: 1;
}

.service-sp-card__cta:hover .service-sp-card__cta-bg {
  width: 100%;
}

/* Divider */
.service-sp-card__divider {
  height: 1px;
  background: #bebebe;
  margin: 0 20px;
  width: calc(100% - 40px);
}

/* Hide last divider */
.service-sp-card:last-child .service-sp-card__divider {
  display: none;
}


/* ===========================================
   keyword_sp — mobile keyword filter
   =========================================== */

.keyword-sp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.keyword-sp__title {
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.keyword-sp__accordions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Accordion */
.accordion {
  background: #515354;
  width: 100%;
}

.accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 3px 15px 15px;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.accordion__labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  flex: 1;
  color: inherit;
}

.accordion__label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.0;
}

.accordion__sub {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.accordion__icon {
  position: relative;
  margin-right: 8px;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.accordion__icon-add,
.accordion__icon-remove {
  color: #fff;
  font-size: 30px;
  position: absolute;
  top: 0;
  left: 0;
}

.accordion__icon-remove {
  opacity: 0;
}

/* Open state */
.accordion.is-open .accordion__icon-add {
  opacity: 0;
}

.accordion.is-open .accordion__icon-remove {
  opacity: 1;
}

.accordion__content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 400ms ease, opacity 300ms ease;
}

.accordion.is-open .accordion__content {
  max-height: 1000px;
  opacity: 1;
}

.accordion__content-inner {
  padding: 6px 12px 32px 12px;
}

/* Keyword tags */
.keyword-sp__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 11px;
}

.keyword-sp__tags li {
  list-style: none;
}

.keyword-sp__tags .tag-filter {
  display: inline-block;
  padding: 7px 15px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 20px;
  color: #000;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.keyword-sp__tags .tag-filter:hover,
.keyword-sp__tags .tag-filter:active {
  background: rgba(255, 255, 255, 0.85);
}

.keyword-sp__tags .tag-filter.is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* Clear filter */
.keyword-sp__clear {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.keyword-sp__clear .tag-clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.keyword-sp__clear .tag-clear:hover {
  opacity: 0.5;
}

.keyword-sp__clear img {
  width: 13px;
  height: auto;
}


/* ===========================================
   Tag filter — button reset & active state
   =========================================== */

/* PC tag buttons: reset <button> to inherit studio CSS look */
.tag-filter {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
  text-decoration: none;
}

/* PC tag active state */
.tag-filter.is-active {
  background: #000 !important;
  color: #fff !important;
}

.tag-filter.is-active .text {
  color: #fff !important;
}

/* PC tag group headings */
.tag-group-heading {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 12px 0 0 0;
}

.tag-group-heading:first-child {
  margin-top: 0;
}

.tag-group-heading__text {
  font-size: 14px;
  color: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

/* PC clear button: reset <button> to match original <a> */
.tag-clear {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
  text-decoration: none;
}
