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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #0a0a0a;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

#app {
  min-height: 100vh;
  background: url("../assets/img/bg.png") no-repeat 0 0;
  background-size: 100% 100%;
}

.app-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.home {
  width: 100%;
  min-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.top {
  width: min(100vw, 600px);
  height: min(16vw, 96px);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
}

.top-logo {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-logo-link {
  position: absolute;
  left: 0;
  top: 0;
  width: 87%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.top-service {
  position: absolute;
  right: 1.25%;
  top: 12%;
  width: 11%;
  height: 76%;
  z-index: 2;
  cursor: pointer;
}

.top-logo-link:active,
.top-service:active {
  opacity: 0.85;
}

.logo-img {
  width: 100%;
  height: min(16vw, 96px);
  object-fit: contain;
}

.content {
  width: min(100vw, 600px);
  margin: 0 auto;
}

.top-spacer {
  width: 100%;
  height: min(16vw, 96px);
}

.banner {
  display: block;
  width: 100%;
  padding-top: min(2.667vw, 16px);
  transition: opacity 0.15s ease;
}

.banner:active {
  opacity: 0.92;
}

.banner img {
  width: 100%;
}

.site-list {
  margin-top: min(5.333vw, 32px);
  padding: 0 min(2.667vw, 16px);
}

.site-item {
  display: block;
  width: 100%;
  height: min(16vw, 96px);
  margin-top: min(2.667vw, 16px);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.site-item:first-child {
  margin-top: 0;
}

.site-item:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.site-img {
  width: 100%;
  height: min(16vw, 96px);
  object-fit: contain;
}

.sort-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: min(5.333vw, 32px);
  padding: 0 min(1.333vw, 8px);
}

.sort-item {
  width: min(13.333vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.15s ease;
}

.sort-item:active {
  opacity: 0.85;
}

.sort-img {
  width: min(10.667vw, 64px);
  height: min(10.667vw, 64px);
  border-radius: 50%;
  object-fit: cover;
}

.sort-name {
  margin-top: min(0.8vw, 4.8px);
  color: #999;
  font-size: min(3.2vw, 14px);
  line-height: 1.2;
}

.bottom-box {
  display: block;
  width: 100%;
  margin-top: min(5.333vw, 32px);
  transition: opacity 0.15s ease;
}

.bottom-box:active {
  opacity: 0.92;
}

.bottom-img {
  width: 100%;
  height: auto;
}

.bottom-spacer {
  width: 100%;
  height: min(10.667vw, 64px);
}

@media (min-width: 601px) {
  body:not(.is-pc-blocked) {
    display: flex;
    justify-content: center;
  }
}

.pc-block {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f5f5f5;
}

body.is-pc-blocked .pc-block {
  display: flex;
}

body.is-pc-blocked #app {
  display: none;
}

.pc-block__panel {
  width: 100%;
  max-width: 520px;
  padding: 48px 32px;
  text-align: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pc-block__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #d93025;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 64px;
}

.pc-block__title {
  color: #333;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 2px;
}
