* {
  box-sizing: border-box;
}

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

body {
  background: #fff;
  color: #222;
  font-family: Arial, Helvetica, "Microsoft JhengHei", "PingFang TC", sans-serif;
}

.line-header {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 360px;
  border-bottom: 3px solid #444;
}

.line-logo {
  display: block;
  width: 80px;
  height: auto;
}

.page {
  min-height: calc(100vh - 85px);
  display: flex;
  justify-content: center;
  padding: 76px 20px 40px;
}

.friend-card {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.open-line-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 42px;
  margin: 0 0 30px;
  padding: 0 24px;
  border-radius: 3px;
  background: #00c300;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.open-line-button:hover,
.open-line-button:focus-visible {
  background: #00b400;
}

.qr-frame {
  width: 315px;
  height: 315px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d0d0;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}

.qr-frame:focus-visible {
  outline: 2px solid #00c300;
  outline-offset: 4px;
}

.qr-code {
  display: block;
  width: 240px;
  height: 240px;
  image-rendering: pixelated;
}

h1 {
  margin: 0 0 23px;
  color: #222;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

p {
  margin: 0 0 31px;
  color: #9a9a9a;
  font-size: 16px;
  line-height: 1.5;
}

.learn-link {
  color: #00e;
  font-size: 16px;
}

@media (max-width: 560px) {
  .line-header {
    height: 72px;
    padding-left: 20px;
  }

  .line-logo {
    width: 76px;
  }

  .page {
    min-height: calc(100vh - 72px);
    padding-top: 42px;
  }

  .qr-frame {
    width: min(315px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .qr-code {
    width: 76%;
    height: auto;
  }
}
