/* =========================================================
   web_card.css — Public Empatheme web card page
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

.seed-text-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #003dc7 0%, #003dc7 45%, #7bdaff 100%);
  color: #fff;
  font-family: "Noto Sans JP", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.web-card {
  width: 100%;
  max-width: 393px;
  min-height: 100vh;
  padding: 48px 22px 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.brand {
  display: flex;
  justify-content: center;
  width: 100%;
}

.brand-logo {
  position: relative;
  top: -3px;
  width: 180px;
  max-width: 72%;
  height: auto;
  display: block;
}

.card-shell {
  width: min(100%, 346px);
  min-height: 545px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 20px 42px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

/* Card image */
.card-image-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 306 / 228;
  background: #edede0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card body */
.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
}

.card-copy {
  width: min(100%, 313px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
}

.card-title {
  margin: 0;
  font-family: "Noto Sans", "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
  text-align: center;
}

.card-description {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.seed-text-en,
.seed-text-jp {
  display: none;
}

/* Rhythm Mirror */
.rhythm-mirror-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(100%, 286px);
  padding: 5px 0 0;
}

.rhythm-mirror-button {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s, transform 0.15s;
}

.seed-mascot {
  position: relative;
  top: 10px;
  left: -6px;
  width: 36px;
  height: 32px;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.rhythm-mirror-button:hover {
  opacity: 0.82;
}

.rhythm-mirror-button[data-playing="true"] {
  transform: translateY(-1px);
}

.rhythm-mirror {
  position: relative;
  top: 10px;
  left: -1px;
  width: 100%;
  height: 22px;
  display: block;
}

.rhythm-mirror--multi {
  min-height: 46px;
}

.rhythm-mirror-segment {
  transition: opacity 120ms ease-out;
}

.rhythm-mirror-prompt {
  position: absolute;
  top: -40px;
  left: 28px;
  z-index: 1;
  display: inline-block;
  padding: 10px 25px;
  border-radius: 6px;
  background: rgba(72, 89, 245, 0.85);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
}

.rhythm-mirror-prompt img {
  position: absolute;
  left: 24px;
  bottom: -8px;
  width: 30.632px;
  height: 8px;
  display: block;
}

/* Share */
.share-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: "Roboto Flex", "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 21px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.share-icon {
  width: 42px;
  height: 42px;
  display: block;
}

/* CTA */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-top: 82px;
}

.btn-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 244px;
  min-height: 46px;
  padding: 9px 30px;
  border-radius: 23px;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-cta:hover { opacity: 0.85; }

.btn-cta--primary {
  background: #6170f6;
  color: #fff;
  box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
}

.btn-cta--secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.cta-note {
  margin: 14px 0 40px;
  font-size: 13px;
  font-weight: 500;
  line-height: 21px;
  text-align: center;
}

.line-friend-card {
  position: relative;
  width: min(100%, 289px);
  /* The promo image has 14px of transparent space above its visible box. */
  margin-bottom: 70px;
}

.line-friend-card img {
  display: block;
  width: 100%;
  height: auto;
}

.line-friend-button {
  position: absolute;
  left: 16.8%;
  top: 73.9%;
  width: 66.4%;
  height: 17.4%;
  border-radius: 34px;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.line-friend-button:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.line-friend-button:focus-visible {
  outline: 3px solid #5c68d9;
  outline-offset: 3px;
}

.promo-artwork {
  position: relative;
  width: 100%;
  aspect-ratio: 740 / 1591;
  overflow: hidden;
}

.promo-artwork > img {
  display: block;
  width: 100%;
  height: auto;
}

.promo-store-link {
  position: absolute;
  top: 88.3%;
  width: 35.2%;
  height: 5.3%;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.promo-store-link--ios { left: 12.8%; }
.promo-store-link--android { left: 52.1%; }

.promo-store-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(255, 255, 255, 0.8);
}

.promo-store-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cta-illustration {
  position: absolute;
  left: 92.5px;
  top: -75.6px;
  width: 125.5px;
  height: 79px;
  pointer-events: none;
}

.cta-illustration img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 700px) {
  .web-card {
    padding-top: 48px;
  }
}
