:root {
  color: #252525;
  background: #fff;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-synthesis: none;
  --hero-background: #fff;
  --hero-background-rgb: 255, 255, 255;
  --glass-fill-top: rgba(255, 255, 255, .72);
  --glass-fill-bottom: rgba(242, 242, 247, .52);
  --glass-edge: rgba(255, 255, 255, .88);
  --glass-shadow: rgba(0, 0, 0, .11);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--hero-background);
}

button,
a {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #252525;
  outline-offset: 4px;
}

.lockmemo-page {
  position: relative;
  min-height: max(761px, 100svh);
  overflow: hidden;
  background: var(--hero-background);
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  z-index: -3;
  top: -73.59%;
  left: -15.14%;
  width: 160.04%;
  max-width: none;
  height: 201.84%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.desktop-glass {
  position: absolute;
  z-index: -2;
  inset: 0 auto 0 0;
  width: min(640px, 44.45vw);
  background: rgba(var(--hero-background-rgb), .53);
  backdrop-filter: blur(5.35px);
}

.mobile-fade {
  display: none;
}

.menu-button {
  position: absolute;
  z-index: 5;
  top: 30px;
  left: 28px;
  width: 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  background:
    linear-gradient(145deg, var(--glass-fill-top), var(--glass-fill-bottom));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .96),
    inset 0 -1px 1px rgba(255, 255, 255, .34),
    0 1px 2px rgba(0, 0, 0, .08),
    0 9px 24px var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(65%) brightness(1.12);
  backdrop-filter: blur(24px) saturate(65%) brightness(1.12);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.menu-button::before,
.social-links a::before {
  position: absolute;
  z-index: 0;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 14%, rgba(255, 255, 255, .8), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .36), transparent 48%);
  opacity: .72;
  pointer-events: none;
  content: "";
}

.menu-button:hover {
  transform: scale(1.04);
  box-shadow:
    inset 0 1px 1px #fff,
    inset 0 -1px 1px rgba(255, 255, 255, .4),
    0 1px 2px rgba(0, 0, 0, .08),
    0 12px 28px rgba(0, 0, 0, .14);
}

.menu-button img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.site-menu {
  position: absolute;
  z-index: 4;
  top: 94px;
  left: 28px;
  display: grid;
  width: 190px;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(37, 37, 37, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 36px rgba(37, 37, 37, .14);
  backdrop-filter: blur(12px);
}

.site-menu[hidden] {
  display: none;
}

.site-menu a {
  padding: 9px 11px;
  border-radius: 8px;
  color: #252525;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.site-menu a:hover {
  background: rgba(var(--hero-background-rgb), .65);
}

.hero-content {
  position: relative;
  width: min(640px, 44.45vw);
  min-height: max(761px, 100svh);
  text-align: center;
}

.app-icon {
  position: absolute;
  top: 89px;
  left: 50%;
  width: 146px;
  height: 146px;
  border-radius: 32.5px;
  background: #fff;
  box-shadow: 0 .38px 10.84px rgba(119, 34, 34, .24);
  object-fit: cover;
  transform: translateX(-50%);
}

.content-stack {
  position: absolute;
  top: 259px;
  left: 50%;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  transform: translateX(-50%);
}

h1 {
  width: 100%;
  margin: 0;
  color: #252525;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
}

h1 span,
h1 small {
  display: block;
}

h1 span {
  font-size: 48px;
}

h1 small {
  font-size: 36px;
  font-weight: 700;
}

.app-store-badge {
  display: flex;
  width: 200px;
  height: 67px;
  align-items: center;
  padding: 8px 10px;
  border: 1.5px solid #a6a6a6;
  border-radius: 7px;
  background: #000;
  color: #fff;
  text-decoration: none;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}

.app-store-badge:hover {
  box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
  transform: translateY(-2px);
}

.app-store-badge:active {
  transform: scale(.98);
}

.app-store-badge > img {
  width: 34px;
  height: 40px;
  flex: 0 0 auto;
}

.app-store-badge > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin-left: 13px;
  line-height: 1;
}

.app-store-badge small {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 15px;
  white-space: nowrap;
}

.app-store-badge strong {
  font-family: Arial, sans-serif;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -.65px;
  line-height: 31px;
  white-space: nowrap;
}

@keyframes app-store-pulse {
  0%,
  24%,
  100% {
    transform: scale(1);
  }

  12% {
    transform: scale(1.05);
  }
}

.official-sns {
  width: 339px;
}

.official-sns p {
  margin: 0 0 21px;
  color: #000;
  font-size: 26.5px;
  font-weight: 500;
  line-height: 1.5;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.social-links a {
  position: relative;
  display: block;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--glass-fill-top), var(--glass-fill-bottom));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .96),
    inset 0 -1px 1px rgba(255, 255, 255, .34),
    0 1px 2px rgba(0, 0, 0, .08),
    0 9px 24px var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(65%) brightness(1.12);
  backdrop-filter: blur(24px) saturate(65%) brightness(1.12);
  transition: transform .2s ease, box-shadow .2s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 1px #fff,
    inset 0 -1px 1px rgba(255, 255, 255, .4),
    0 1px 2px rgba(0, 0, 0, .08),
    0 12px 28px rgba(0, 0, 0, .14);
}

.menu-button:active,
.social-links a:active {
  transform: scale(.96);
}

.social-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.social-x {
  height: 28px;
}

.social-note {
  width: 27px;
  height: 27px;
}

.social-instagram {
  width: 29px;
  height: 29px;
}

.social-youtube {
  width: 29px;
  height: 22px;
}

@media (max-width: 1024px) {
  .lockmemo-page,
  .hero-content {
    min-height: max(761px, 100svh);
  }

  .hero-photo {
    top: -403px;
    left: calc(50% - 20px);
    width: 1418px;
    height: 945px;
    object-fit: cover;
    transform: translateX(-50%);
  }

  .desktop-glass {
    display: none;
  }

  .mobile-fade {
    position: absolute;
    z-index: -1;
    top: 288px;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    background: linear-gradient(
      to bottom,
      rgba(var(--hero-background-rgb), 0),
      var(--hero-background) 98px,
      var(--hero-background) 100%
    );
  }

  .menu-button {
    top: 25px;
    right: 22px;
    left: auto;
    width: 45px;
    height: 45px;
  }

  .site-menu {
    top: 78px;
    right: 22px;
    left: auto;
  }

  .hero-content {
    width: 100%;
  }

  .app-icon {
    display: none;
  }

  .content-stack {
    top: 391px;
    gap: 30px;
  }

  h1 span {
    font-size: 36px;
    line-height: 1.8;
  }

  h1 small {
    font-size: 24px;
    line-height: 1.8;
  }

  .app-store-badge {
    width: 173px;
    height: 58px;
    padding: 7px 9px;
    border-width: 1.5px;
    border-radius: 9px;
    animation: app-store-pulse 4s ease-in-out infinite;
  }

  .app-store-badge > img {
    width: 29px;
    height: 34px;
  }

  .app-store-badge > span {
    margin-left: 11px;
  }

  .app-store-badge small {
    font-size: 12px;
    line-height: 13px;
  }

  .app-store-badge strong {
    font-size: 26px;
    letter-spacing: -.68px;
    line-height: 27px;
  }

  .official-sns {
    width: 256px;
  }

  .official-sns p {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .social-links a {
    width: 50px;
    height: 50px;
  }

  .social-icon {
    width: 23px;
    height: 23px;
  }

  .social-x {
    height: 21px;
  }

  .social-note {
    width: 21px;
    height: 21px;
  }

  .social-instagram {
    width: 22px;
    height: 22px;
  }

  .social-youtube {
    width: 22px;
    height: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-store-badge {
    animation: none;
  }

  .menu-button,
  .social-links a {
    transition: none;
  }
}
