/* ===== タイトル ===== */
/* トップページ専用 */
.title {
  position: absolute;
  top: 6%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.title img {
  display: block;
  max-width: 480px;
  width: 40%;
  height: auto;
}


/* ===== キャラ配置 ===== */
.characters {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6% 18% 0;
  pointer-events: none;
}

.character {
  width: 32%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.4s ease, transform 1.4s ease;
  pointer-events: auto;
  cursor: pointer;
}

.character img {
  width: 100%;
  height: auto;
  display: block;
}

.character:hover {
  filter: brightness(1.05);
}

/* ===== ナビゲーション ===== */
.nav {
  position: absolute;
  bottom: 6%;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 60px;
  font-size: 14px;
  letter-spacing: 0.15em;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.nav a {
  color: #fff;
  text-decoration: none;
  position: relative;
  text-shadow: -1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.4s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* ===== ロード後表示 ===== */
.loaded .title {
  opacity: 1;
}

.loaded .character {
  opacity: 1;
  transform: translateY(0);
}

.loaded .nav {
  opacity: 1;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .characters {
    padding: 20% 6% 0;
  }
  .character {
    width: 44%;
  }
  .nav {
    flex-wrap: wrap;
    gap: 20px 32px;
    padding: 0 10%;
    text-align: center;
  }
  .nav a {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* ===== チャットボタン ===== */
.chat-button {
  position: fixed;
  right: 16px;
  bottom: 18%;
  display: flex;
  gap: 12px;
  z-index: 100;
}

.chat-button a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

/* 上の円形画像 */
.circle-img {
  width: 150px;   
  height: 150px;  
  border-radius: 50%;
  display: block;
  margin-bottom: 6px; 
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.chat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}


/* 下の長方形文字ラベル */
.rect-label {
  background: rgba(255,255,255,0.9);
  color: #000;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}

/* ホバーで控えめ演出 */
.chat-button a:hover .circle-img,
.chat-button a:hover .rect-label {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* レスポンシブ調整 */
@media (max-width: 900px) {
  .circle-img { width: 80px; height: 80px; }
  .rect-label { padding: 8px 14px; font-size: 14px; }
}

/* 欄外ボタンの縦並び化 将来拡張
@media (max-width: 480px) {
  .chat-button {
    flex-direction: column;
  }
}
*/
