/* styles.css */

body {
  margin: 0;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  background: linear-gradient(135deg, #f7f9ff, #eef3ff);
  color: #333;
  text-align: center;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

header {
  padding: 40px 20px 20px;
}

h1, p {
  text-align: center;
  margin-top: 20px;
}

h1 {
  font-size: clamp(26px, 6vw, 50px); /* 画面幅に応じて自動調整 */
  font-weight: bold;
  color: #f5e6ff;
  letter-spacing: 4px;
  font-family: "Yu Gothic", sans-serif;
  text-shadow:
    0 0 5px #c77dff,
    0 0 10px #c77dff,
    0 0 20px #a855f7,
    0 0 40px #7e22ce,
    0 0 80px #7e22ce;
  margin: 0;
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
}

h2 {
  text-align: center;
}

.profile {
  background-color: #f8f8f8;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin: 20px auto;
  max-width: 600px;
  text-align: center;
}

.profile p {
  margin: 8px 0;
  line-height: 1.6;
}

/* ボタンコンテナ */
#button-group-container {
  padding: 12px;
  width: 100%;
  max-width: 100%;
}

/* ボタングリッド */
#buttons-container {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 auto;
  width: 100%;
}

/* タブレット幅で3列 */
@media (min-width: 600px) {
  #buttons-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* デスクトップ幅で4列 */
@media (min-width: 900px) {
  #buttons-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ボタンのスタイル（統一） */
.play-button {
  padding: 12px 10px;
  font-size: clamp(14px, 4vw, 16px); /* 画面幅に応じて文字サイズ調整 */
  background-color: #434365;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-height: 52px;
  white-space: normal;
  word-break: break-word;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ボタンのホバー時のスタイル */
.play-button:hover {
  background-color: #a17acc;
}

/* スマホでのアクティブ状態（ホバーが無い代わり） */
.play-button:active {
  background-color: #a17acc;
  transform: scale(0.98);
}

/* 非常に小さい画面 */
@media (max-width: 400px) {
  .play-button {
    font-size: 13px;
    padding: 10px 8px;
    min-height: 48px;
  }
}

.footer {
  margin-top: 50px;
  text-align: center;
  padding: 20px;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.sns-links a {
  text-decoration: none;
  color: white;
  background: #444;
  padding: 10px 20px;
  border-radius: 30px;
  transition: 0.3s;
  font-weight: bold;
}

.sns-links a:hover {
  background: #ff4d6d;
  transform: translateY(-3px);
}

.source-link {
  margin-top: 10px;
  font-size: 0.9em;
}

/* バージョン情報 */
.version-info p {
  margin: 0;
  margin-top: 0;
  font-size: 12px;
}
