:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #17191f;
  --muted: #6f7480;
  --line: rgba(23, 25, 31, 0.1);
  --blue: #1677ee;
  --blue-hover: #0866d3;
  --orange: #ff781f;
  --showcase-gap: 32px;
  --font-cn: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  --page: min(1160px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  background: var(--background);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: color 200ms ease, background-color 200ms ease;
}

a,
button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  min-height: 88px;
  padding: 0 clamp(24px, 3.2vw, 48px);
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  border: 1px solid var(--line);
  border-radius: 10px;
}

.site-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-nav > a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 520;
  text-decoration: none;
}

.site-nav > a:hover {
  color: var(--text);
}

.language-picker {
  --language-control-height: 36px;
  --language-control-padding: 13px;
  --language-control-font-size: 0.82rem;

  display: inline-grid;
  align-items: center;
  grid-template-areas: "language-control";
}

.language-picker::after {
  display: flex;
  min-height: var(--language-control-height);
  padding-inline: var(--language-control-padding);
  border: 1px solid transparent;
  align-items: center;
  content: attr(data-language-value);
  font-size: var(--language-control-font-size);
  font-weight: 520;
  grid-area: language-control;
  visibility: hidden;
  white-space: pre;
}

.language-picker select {
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: var(--language-control-height);
  padding-inline: var(--language-control-padding);
  border: 1px solid var(--line);
  border-radius: 999px;
  appearance: none;
  color: var(--text);
  background: #f5f6f8;
  cursor: pointer;
  font: inherit;
  font-size: var(--language-control-font-size);
  font-weight: 520;
  grid-area: language-control;
  outline: none;
  text-align: center;
  text-align-last: center;
}

.language-picker select:hover {
  background: #eef0f3;
}

.language-picker select:focus-visible {
  outline: 3px solid rgba(22, 119, 238, 0.22);
  outline-offset: 2px;
}

main {
  width: 100%;
}

.hero {
  display: grid;
  width: var(--page);
  min-height: calc(100svh - 144px);
  margin: 0 auto;
  padding: 28px 0 0;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--showcase-gap);
  align-items: center;
  justify-items: center;
  text-align: center;
}

.site-footer {
  display: grid;
  min-height: 0;
  padding: var(--showcase-gap) 24px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  place-items: center;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.13;
  white-space: nowrap;
  animation: rise 560ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

html[lang="en"] .hero-copy {
  max-width: 1000px;
}

html[lang="en"] .hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 4.25rem);
  white-space: normal;
}

html[lang="ja"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

html[lang="ko"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}

html[lang="ja"] .hero-copy,
html[lang="ko"] .hero-copy {
  max-width: 920px;
}

html[lang="ja"] .hero h1,
html[lang="ko"] .hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  white-space: normal;
}

.hero-accent {
  color: var(--orange);
}

.hero-summary {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.9;
  animation: rise 560ms 80ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-actions {
  display: flex;
  margin-top: 24px;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: rise 560ms 150ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 21px;
  border: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 560;
  text-decoration: none;
  transition: transform 170ms ease, background-position 240ms ease, border-color 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #1597ff 0%, #2578f2 48%, #315be8 100%);
  background-size: 140% 140%;
  background-position: 0 50%;
  box-shadow: none;
  overflow: hidden;
}

.button-primary:hover {
  background-position: 100% 50%;
}

.hero-visual {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: auto;
  flex-direction: column;
  align-items: center;
}

.category-icon-strip {
  display: flex;
  width: min(900px, 92vw);
  min-height: 62px;
  margin-bottom: var(--showcase-gap);
  gap: clamp(18px, 3.2vw, 38px);
  align-items: center;
  justify-content: center;
  animation: rise 560ms 210ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.category-icon {
  width: clamp(38px, 4.6vw, 52px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  object-fit: contain;
  opacity: 1;
  transform: translateY(var(--icon-offset, 0)) rotate(var(--icon-angle, 0deg));
  transition: opacity 220ms ease,
    transform 360ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.category-icon.is-changing {
  opacity: 0.72;
  transform: translateY(var(--icon-offset, 0)) rotate(var(--icon-next-angle, 0deg)) scale(0.82);
}

.phone-stage {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 640px;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
}

.phone-stage.is-ready {
  animation: phone-arrive 720ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.phone {
  position: relative;
  flex: 0 0 auto;
  width: min(clamp(185px, 19vw, 240px), calc((100svh - 380px) * 0.48913));
  aspect-ratio: 1470 / 3000;
}

.phone-record {
  z-index: 1;
}

.phone-overview {
  z-index: 2;
  margin-top: 40px;
  margin-left: -15%;
}

.phone-frame,
.phone-screen {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
}

.phone-frame {
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  filter: brightness(0.14) contrast(1.35) saturate(0.25);
}

.phone-screen {
  top: 2.2%;
  left: 5.102041%;
  z-index: 1;
  width: 89.795918%;
  height: 95.6%;
  border-radius: 10.2% / 4.7%;
  background: #f4f4f6;
  object-fit: cover;
}

.editorial-awards {
  display: flex;
  width: min(760px, 94vw);
  margin: var(--showcase-gap) 0 0;
  gap: var(--showcase-gap);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: rise 560ms 320ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.editorial-award {
  display: flex;
  gap: clamp(8px, 1vw, 12px);
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.award-laurel {
  width: clamp(38px, 4.4vw, 52px);
  height: clamp(38px, 4.4vw, 52px);
  flex: 0 0 auto;
  background: var(--text);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.award-laurel-leading {
  mask-image: url("./assets/laurel-leading.png");
  -webkit-mask-image: url("./assets/laurel-leading.png");
}

.award-laurel-trailing {
  mask-image: url("./assets/laurel-trailing.png");
  -webkit-mask-image: url("./assets/laurel-trailing.png");
}

.award-item {
  display: grid;
  gap: 6px;
  line-height: 1.35;
  text-align: center;
}

.award-item strong {
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.award-item span {
  color: #a3a6ad;
  font-size: clamp(0.7rem, 1vw, 0.78rem);
  font-weight: 400;
  white-space: nowrap;
}

.award-item .award-meta {
  display: block;
}

.award-item .award-store {
  color: transparent;
  background: linear-gradient(135deg, #1597ff 0%, #2578f2 48%, #315be8 100%);
  background-clip: text;
  font-weight: 650;
  -webkit-background-clip: text;
}

.editorial-award:hover strong {
  color: var(--blue);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phone-arrive {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  :root {
    --page: min(100% - 32px, 640px);
  }

  .site-header {
    min-height: 72px;
    padding-inline: 16px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav > a {
    font-size: 0.8rem;
  }

  .language-picker {
    --language-control-height: 34px;
    --language-control-padding: 11px;
    --language-control-font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 0;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--showcase-gap);
    text-align: center;
  }

  .hero-summary br {
    display: none;
  }

  .hero h1,
  .hero-summary {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: auto;
  }

  .category-icon-strip {
    width: 100%;
    min-height: 50px;
    margin-bottom: var(--showcase-gap);
    gap: clamp(14px, 5vw, 24px);
  }

  .category-icon {
    width: clamp(34px, 10vw, 42px);
  }

  .category-icon:nth-child(n + 6) {
    display: none;
  }

  .phone {
    width: min(48vw, 230px);
  }

  .phone-overview {
    margin-top: 42px;
    margin-left: -18%;
  }

  .editorial-awards {
    width: 100%;
  }

  .editorial-award {
    gap: 8px;
  }

  .award-laurel {
    width: 36px;
    height: 36px;
  }

  .award-item strong {
    font-size: 1rem;
  }

  .award-item span {
    font-size: 0.7rem;
  }
}

@media (max-width: 460px) {
  .hero {
    padding-top: 38px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .award-item .award-meta,
  .award-item .award-description {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
