/* ===== service-menu component ===== */

/* --- Display toggles --- */
.service-menu-pc      { display: flex; }
.service-menu-tablet  { display: none; }
.service-menu-sp      { display: none; }

@media screen and (max-width: 768px) {
  .service-menu-pc     { display: none; }
  .service-menu-tablet { display: flex; }
}
@media screen and (max-width: 480px) {
  .service-menu-tablet { display: none; }
  .service-menu-sp     { display: flex; }
}


/* ===== PC (>768px) ===== */

.service-menu-pc {
  justify-content: center;
  width: 100%;
  background:#ebebeb;
}

.service-menu-pc__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 1320px;
  max-width: calc(100% - 120px);
  padding: 60px 0;
}

.service-menu-pc__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
}

.service-menu-pc__line {
  display: block;
  width: 4px;
  height: 38px;
  background: #ff0000;
  flex-shrink: 0;
}

.service-menu-pc__title {
  margin: 0;
  font-family: Lato, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  color: #000;
}

.service-menu-pc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.service-menu-pc__item {
  display: block;
  position: relative;
  overflow: hidden;
}

.service-menu-pc__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 1;
  transform: scale(0, 1);
  transform-origin: center left;
  z-index: 1;
  transition: opacity 420ms cubic-bezier(0.445, 0.05, 0.55, 0.95),
              transform 420ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.service-menu-pc__item:hover .service-menu-pc__overlay {
  opacity: 0.4;
  transform: scale(1, 1);
}

.service-menu-pc__img {
  width: 100%;
  height: auto;
  display: block;
}

.service-menu-pc__cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 12px 28px 11px;
  border: 1px solid #a0a0a0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.service-menu-pc__cta span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: #000;
  position: relative;
  z-index: 1;
  transition: color 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-menu-pc__cta img {
  width: 10px;
  height: auto;
  position: relative;
  z-index: 1;
  transition: filter 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-menu-pc__cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #000;
  transition: width 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-menu-pc__cta:hover::before {
  width: 100%;
}

.service-menu-pc__cta:hover span {
  color: #fff;
}

.service-menu-pc__cta:hover img {
  filter: brightness(0) invert(1);
}


/* ===== Tablet (480–768px) ===== */

.service-menu-tablet {
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 30px;
  box-sizing: border-box;
}

.service-menu-tablet__heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-menu-tablet__line {
  display: block;
  width: 4px;
  height: 38px;
  background: #ff0000;
  flex-shrink: 0;
}

.service-menu-tablet__title {
  margin: 0;
  font-family: Lato, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: #000;
}

.service-menu-tablet__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.service-menu-tablet__menu-link {
  display: block;
  width: calc(50% - 8px);
  position: relative;
  overflow: hidden;
}

.service-menu-tablet__menu-link img {
  width: 100%;
  height: auto;
  display: block;
}

.service-menu-tablet__menu-link::after {
  content: "";
  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-menu-tablet__menu-link:hover::after {
  opacity: 1;
}

.service-menu-tablet__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 28px 11px;
  border: 1px solid #a0a0a0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.service-menu-tablet__cta span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  position: relative;
  z-index: 1;
  transition: color 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-menu-tablet__cta img {
  width: 10px;
  height: auto;
  position: relative;
  z-index: 1;
  transition: filter 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-menu-tablet__cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #000;
  transition: width 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-menu-tablet__cta:hover::before {
  width: 100%;
}

.service-menu-tablet__cta:hover span {
  color: #fff;
}

.service-menu-tablet__cta:hover img {
  filter: brightness(0) invert(1);
}


/* ===== SP (<=480px) ===== */

.service-menu-sp {
  flex-direction: column;
  gap: 28px;
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.service-menu-sp__heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-menu-sp__line {
  display: block;
  width: 4px;
  height: 38px;
  background: #ff0000;
  flex-shrink: 0;
}

.service-menu-sp__title {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: #000;
}

.service-menu-sp__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-menu-sp__menu-link {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.service-menu-sp__menu-link img {
  width: 100%;
  height: auto;
  display: block;
}

.service-menu-sp__menu-link::after {
  content: "";
  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-menu-sp__menu-link:hover::after {
  opacity: 1;
}

.service-menu-sp__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 28px 11px;
  border: 1px solid #a0a0a0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.service-menu-sp__cta span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #000;
  position: relative;
  z-index: 1;
  transition: color 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.service-menu-sp__cta img {
  width: 10px;
  height: auto;
  position: relative;
  z-index: 1;
  transition: filter 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

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

.service-menu-sp__cta:hover::before {
  width: 100%;
}

.service-menu-sp__cta:hover span {
  color: #fff;
}

.service-menu-sp__cta:hover img {
  filter: brightness(0) invert(1);
}
