/* =============================================================
 * Solution page
 * Mobile first (~ 767px) / PC layout from 768px
 * ============================================================= */

@keyframes pulsation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes fuwafuwa {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px);
  }
}

.gPankuzu_inner {
  margin: 0 auto;
}

.solution {
  width: 100%;
  overflow-x: hidden;
  padding-top: 35px;
}
.solution :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote) {
  margin: 0;
}
.solution :where(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}
.solution :where(img, picture, svg, video) {
  display: block;
  max-width: 100%;
  height: auto;
}
.solution :where(*, *::before, *::after) {
  box-sizing: border-box;
}

/* -----------------------------------------------------------
 * Shared: contact icon (inline SVG)
 * Colors are controlled via CSS custom properties so each button
 * can override them on :hover without swapping the SVG.
 * ----------------------------------------------------------- */
.contact-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.contact-icon__bg {
  fill: var(--contact-icon-bg, var(--color-gray-200));
  transition: fill 0.15s ease;
}

.contact-icon__arrow {
  stroke: var(--contact-icon-arrow, var(--color-white));
  transition: stroke 0.15s ease;
}

/* -----------------------------------------------------------
 * Hero
 * ----------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  line-height: 0;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1400px;
  margin: 0 auto;
}

.hero__badge {
  display: none;
}

/* -----------------------------------------------------------
 * Lead
 * ----------------------------------------------------------- */
.lead {
  padding: 40px 20px 60px;
  max-width: 1080px;
  margin: 0 auto;
}

.lead__title {
  color: var(--color-light-green);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
}

.lead__text {
  color: var(--color-foreground);
  font-size: 14px;
  font-weight: 300;
}

/* -----------------------------------------------------------
 * Products
 * ----------------------------------------------------------- */
.products {
  padding: 0px 20px 120px;
  max-width: 1080px;
  margin: 0 auto;
}

.products__title {
  position: relative;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-foreground);
  padding-left: 30px;
  padding-right: 20px;
  padding-bottom: 16px;
  margin-bottom: 32px;
  margin-left: -20px;
  margin-right: -20px;
  border-bottom: 1px solid var(--color-gray-200);
}

.products__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - 8px);
  transform: translateY(-50%);
  width: 10px;
  height: 36px;
  background-image: linear-gradient(
    to right,
    var(--color-green) 0,
    var(--color-green) 2px,
    transparent 2px,
    transparent 4px,
    var(--color-light-green) 4px,
    var(--color-light-green) 6px,
    transparent 6px,
    transparent 8px,
    var(--color-orange) 8px,
    var(--color-orange) 10px
  );
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-card__band {
  background-color: var(--color-light-green);
  padding: 16px;
}

.product-card__name {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.product-card__image {
  display: block;
  height: auto;
  margin: 0 auto;
}

.product-card__desc {
  padding: 16px;
  background-color: var(--color-gray-100);
  font-size: 14px;
  color: var(--color-foreground);
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  align-self: center;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--color-gray-200);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-foreground);
  background-color: var(--color-white);
  transition: background-color 0.15s ease;
  line-height: 1;
}

.product-card__btn:hover {
  background-color: color-mix(in srgb, var(--color-light-green) 15%, transparent);
  border-color: var(--color-light-green);
}

.product-card__btn-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

@media (min-width: 640px) {
  body[data-page="solution"] {
    min-width: unset;
  }
}

/* -----------------------------------------------------------
 * PC (>= 768px)
 * ----------------------------------------------------------- */
@media (min-width: 768px) {
  /* .intro_list_item と同じ構造:
     .hero__badge (= .intro_list_item) > a (= バッジ円)
                                      > .hero__badge__marker (= .intro_list_marker) > img */
  .hero__badge {
    display: block;
    position: absolute;
    /* a (112x112) と marker (96x96, 中央配置) の中心を元の marker 位置
       right:35%, bottom:15% に揃えるため (112-96)/2 = 8px 内側へ */
    right: calc(35% - 8px);
    bottom: calc(15% - 8px);
    font-size: 16px;
    font-weight: bold;
  }

  .hero__badge > a {
    text-decoration: none;
    background-color: var(--color-light-green);
    color: var(--color-white);
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.04em;
    opacity: 0;
    transition-duration: 0.3s;
    transition-property: opacity, visibility;
  }

  .hero__badge > a:hover {
    opacity: 1;
  }

  .hero__badge > a::before,
  .hero__badge > a::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
    animation: pulsation 2s linear infinite;
  }

  .hero__badge > a::after {
    animation-delay: 1s;
  }

  .hero__badge__marker {
    width: 96px;
    height: 96px;
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(5px 5px 6px rgba(0, 0, 0, 0.3));
    bottom: 0;
    right: 0;
    margin: auto;
    pointer-events: none;
    transition-duration: 0.3s;
    transition-property: opacity;
  }

  .hero__badge > a:hover + .hero__badge__marker {
    opacity: 0;
  }

  .hero__badge__marker > img {
    display: block;
    width: 100%;
    height: auto;
    animation-name: fuwafuwa;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
  }

  .lead {
    padding: 56px 20px 40px;
  }
  .lead__title {
    font-size: 32px;
    margin-bottom: 20px;
  }
  .lead__text {
    font-size: 20px;
  }

  .products {
    padding: 16px 20px 56px;
  }
  .products__title {
    font-size: 32px;
    padding-left: 24px;
    margin-left: 0;
    margin-right: 0;
  }

  .products__grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-card__band {
    padding: 24px;
  }
  .product-card__name {
    font-size: 20px;
  }
  .product-card__desc {
    font-size: 16px;
  }
  .product-card__btn {
    font-size: 16px;
  }
  .product-card__body > picture {
    height: 280px;
  }

  .contact-icon {
    width: 20px;
    height: 20px;
  }
}
