html, body {
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* 長押しメニュー無効 */
}

canvas#mesh {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  pointer-events: none;
}

.logo {
  width: 300px;
  margin-bottom: 24px;
  margin-top: 64px;
  display: block;
}

.container {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

.container-term {
  z-index: 1;
  margin: 60px auto 20px auto;
  padding: 30px 20px;
  width: 76%;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* ボタンのスタイル */
.cta-button {
  margin-top: 30px;
  display: inline-block;
  padding: 12px 28px;
  background: #515891;  // ボタン背景色
  color: #fff !important;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #68769D;  // ホバーは少し暗くする
  color: #fff !important;
}

.cta-button:visited {
  color: #fff !important;
}

a.cta-button {
  color: #fff !important;
}

a.cta-button:visited {
  color: #fff !important;
}

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 13px;
  color: #0071e3;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: 0.2s ease;
}

.back-btn a {
  color: #515891;
}

.back-btn:hover {
  color: #111 !important;
  background: rgba(0, 0, 0, 0.2);
}

.back-btn:visited {
  color: #333 !important;
}

a.back-btn {
  color: #333 !important;
}

a.back-btn:visited {
  color: #333 !important;
}

a {
  color: #515891 !important;
}

a:visited {
  color: #515891 !important;
}

a:hover {
  color: #68769D !important;
}

header p {
  font-size: 20px;
  line-height: 0.8;
  color: rgba(0, 0, 0, 0.8);
}

.lucky-text {
  color: #68769D;
}

.lucky-text.greatvibes {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.07em;
}

@font-face {
  font-family: 'Great Vibes';
  src: url('/fonts/GreatVibes-Regular.woff2') format('woff2'),
       url('/fonts/GreatVibes-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ZT Nature';
  src: url('/fonts/ZTNature-Bold.woff2') format('woff2'),
       url('/fonts/ZTNature-Bold.otf') format('opentype');
}

.lucky-text.zt {
  font-family: 'ZT Nature', sans-serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: -0.03em;
}

section {
  padding: 80px 20px;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  color: rgba(0, 0, 0, 0.9);
}

section p {
  color: rgba(0, 0, 0, 0.85);
  font-size: 18px;
  line-height: 1.3;
}

.card-text {
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
  max-width: 600px;
  margin: auto;
  font-size: 18px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  width: 100%;
}

.feature {
  flex: 1 1 250px;
  text-align: center;
}

.feature h3 {
  margin-bottom: 10px;
}

.feature p {
  font-size: 16px;
  margin-bottom: 10px;
  color: rgba(0, 0, 0, 0.7);
}

.feature p2 {
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}

.screenshot,
.reviews {
  text-align: center;
  background: #f5f5f7;
  width: 100%;
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  border-radius: 20px;
}

/* タイトルと説明文 */
.screenshot h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.screenshot p {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
}

/* 画像を横並びにする */
.screenshots-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px; /* 画像の間隔 */
  flex-wrap: wrap;
  max-width: 100%;
}

/* 各画像の枠 */
.screenshot-item {
  width: 1000px; /* 画像の幅 */
  max-width: 90vw;
  height: auto; /* 画像の高さ */
  overflow: hidden; /* 画像がはみ出さないようにする */
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}

.screenshot-item img {
  width: 100%; /* 枠いっぱいに画像を広げる */
  height: auto;
  display: block;
  /* object-fit: block; /* 画像が枠内に収まるように調整 */
}

.reviews {
  margin-top: 14px;
  background: #fafafa;
  color: rgba(0, 0, 0, 0.85);
  border-radius: 20px;
}

.reviews h2{
  margin-bottom: 60px;
}
  
.review, .callout {
  margin-bottom: 22px;
  color: rgba(0, 0, 0, 0.7);
  font-weight: semi-bold;
}

.callout {
  color: #68769D;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 40px 20px;
  color: #6e6e73;
  font-size: 14px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  margin: 0 12px;
  color: #6e6e73;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

//=====================================
@media (max-width: 700px) {
  .container-term {
    width: 95%;
  }

  header p {
    font-size: 18px;
    line-height: 0.5;
    color: rgba(0, 0, 0, 0.8);
  }
  
  .logo {
    width: 55%;
    margin: 44px auto 20px auto;
    display: block;
  }
  
  section {
    padding: 30px 10px;
  }
  
  .lucky-text.greatvibes {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0.03em;
  }

  .lucky-text.zt {
    font-size: 18px;
  }

  .features {
    gap: 20px;
  }

  .screenshot {
    padding: 30px 20px;
  }

  .screenshot h2 {
    font-size: 20px;
  }
  
  .screenshot p {
    font-size: 16px;
  }

  .reviews {
    padding: 30px 20px;
  }
  
  .reviews h2{
    margin-bottom: 40px;
  }
  
  .review {
    margin-bottom: 26px;
  }

  footer {
    text-align: center;
    padding: 40px 8px;
  }

  .footer-links a {
    margin: 0 8px;
  }

}