/* ベースのhtmlとbody */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  color: #ffffff;
  font-family: 'Zen Old Mincho', 'Hiragino Kaku Gothic ProN', Meiryo, serif;
  position: relative;
  z-index: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}


/* 背景固定レイヤー（アドレスバーも縮む対応） */
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    #0d0322 0%,
    #091130 30%,
    #352f63 65%,
    #6d5879 85%,
    #bfa4b0 100%
  );
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Safariで安定する指定 */
  pointer-events: none;
}

/* 明朝体をすべての要素に */
body, html,
h1, h2, h3, h4, h5, h6,
p, span, div, label, input, textarea, button, a {
  font-family: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
}

/* 星のアニメーション用レイヤー */
.sky {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.curved-star {
  position: absolute;
  width: 120px;
  height: 1px;
  background: linear-gradient(to left, white, transparent); /* ←これで尾が右側！ */
  opacity: 0.4;
  filter: blur(0.5px);
  transform-origin: right center; /* ←進行方向が左なので、右を軸にする！ */
  z-index: 0;
}

.bgm-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;         /* ← 固定サイズにする（調整可） */
  height: 40px;
  display: flex;        /* ← 中央揃え */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0.8;
  transition: opacity 0.3s;
  background: none;     /* 念のため背景なし */
  padding: 0;
}

.bgm-icon img {
  max-width: 80%;       /* 枠内で揃える（調整可） */
  max-height: 80%;
  display: block;
}

.bgm-icon:hover {
  opacity: 1;
}

/* ここまでコピペ */

.profile-wrapper {
  max-width: 1000px;
  margin: 10vh auto 5vh;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04); /* 透け感キープ */
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  box-shadow: 0 0 10px rgba(18, 12, 34, 0.2);
  position: relative;     /* ←これが重要！ */
  z-index: 1;             /* ←これも！ */
}


/* スマホ対応：小さい画面では横と下に余白を追加 */
@media screen and (max-width: 768px) {
  .profile-wrapper {
    margin: 8vh 1rem 10vh;  /* 上下に余白、左右に1rem */
    padding: 1.5rem;
  }
}


.profile-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
  filter: drop-shadow(2px 2px 1.5px rgb(0, 0, 0));
}

.profile-left img {
  width: 250px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.profile-right {
  text-align: left;
  max-width: 500px;
}
@media screen and (max-width: 767px) {
  .profile-right {
    text-align: center;
    margin: 0 auto;
  }
}


.profile-right h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 5px #ccc);
}

.profile-right p {
  margin: 0.8rem 0;
  font-size: 1.1rem;
  filter: drop-shadow(1px 1px 1px black);
}

.divider {
  margin: 2rem auto;
  width: 70%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.6), transparent);
}

.sub-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 1px #353041) drop-shadow(0 0 10px #9891b0);
}

.sns-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;    /* ← 中央に集める！ */
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}


.sns-button-with-desc {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.2rem;
  border-radius: 15px;
  backdrop-filter: blur(6px);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 0.95rem;
  line-height: 1.4;
  filter: drop-shadow(0 0 1px #ffffff);
  box-shadow: 0 0 5px rgba(94, 93, 107, 0.2);
  width: 100%;
  max-width: 230px;  /* ← こっちに幅を固定する */
}

.sns-button-with-desc:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.sns-button-with-desc strong {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.sns-button-with-desc span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.sns-button-with-desc img.sns-icon {
  width: 40px;
  height: auto;
  margin-bottom: 0.8rem;
  filter: drop-shadow(2px 2px 1.5px rgb(0, 0, 0));
}


/* スマホ対応 */
@media screen and (max-width: 768px) {
  .sns-grid {
    grid-template-columns: 1fr;
  }

  .sns-button-with-desc {
    max-width: 90%;
  }
}

.activity-note {
  text-align: center;
  font-size: 1.1rem;
  color: #ddd;
  margin-top: 1.5rem;
  line-height: 1.6;
  filter: drop-shadow(2px 2px 1.5px rgb(0, 0, 0));
}

.section-title {
  position: relative;
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  filter: drop-shadow(0 0 1px #353041) drop-shadow(0 0 10px #9891b0);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 220vw; /* ← ここを25vw→28vwくらいに拡大（様子見て調整OK） */
  max-width: 300px; /* ← 最大幅も少しアップしてもいいかも */
  height: 2px;
  background: linear-gradient(to right, transparent, #fff, transparent);
  transform: translateX(-50%);
  opacity: 0.7;
}

.noctina-subtext-inline {
  font-size: 1.1rem;
  color: #ffffff;
  margin-top: 0.4em;
  text-align: center;
  font-weight: normal;
  letter-spacing: 0.05em;
  filter: drop-shadow(0 0 1px #353041) drop-shadow(0 0 1px #9891b0);
}

/* フッター */

.noctina-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  padding: 16px 6px 4px; /* ← ここだけ少し減らして高さを抑える */
  margin-top: 40px;
  backdrop-filter: blur(8px);
  width: 100%;
  box-sizing: border-box;
}

.noctina-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2px; /* ← 線の太さはそのまま */
  width: 50%;
  background: linear-gradient(to right, transparent, #ffffffaa, transparent);
  opacity: 0.8;
}




.footer-content {
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px 40px;
  margin-bottom: 14px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border-bottom: 1px dashed transparent;
  transition: border-bottom 0.3s ease;
}

.footer-links a:hover {
  border-bottom: 1px dashed #ffffff;
}

.sns-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.sns-icons img {
  width: 28px;
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}

.sns-icons img:hover {
  transform: scale(1.2);
  opacity: 0.85;
}

@media (max-width: 600px) {
  .footer-links {
    gap: 16px 24px;
    font-size: 0.95rem;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sns-icons {
    gap: 16px;
  }
}


/* SNSアイコン */
.sns-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.sns-icons img {
  width: 28px;
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}

.sns-icons img:hover {
  transform: scale(1.2);
  opacity: 0.85;
}

/* モバイル調整 */
@media (max-width: 600px) {
  .footer-links {
    gap: 16px 20px;
    font-size: 0.95rem;
  }

  .sns-icons {
    gap: 16px;
  }
}

.sns-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2vh;
  margin-bottom: 1.5vh; /* 下にほんの少し空ける（調整しやすい単位） */
}

.sns-links a {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.95rem;
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sns-links a:hover {
  opacity: 1;
  transform: scale(1.05);
}

.sns-links a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sns-links a:hover img {
  transform: scale(1.1);
}

@media screen and (max-width: 600px) {
  .sns-links {
    gap: 0.8rem; /* さらに詰める */
    flex-wrap: wrap;
  }

  .sns-links a {
    font-size: 0.75rem;     /* テキストを少し小さく */
    gap: 0.3em;              /* 画像とテキストの隙間を狭く */
  }

  .sns-links a img {
    width: 18px;
    height: 18px;
  }
}

img {
    -webkit-user-drag: none;         /* Safariでのドラッグ防止 */
    -webkit-touch-callout: none;     /* iOS長押しメニュー防止 */
    user-select: none;               /* テキスト選択禁止 */
    pointer-events: auto;            /* hoverイベントを許可するなら必要 */
  }


  

.profile-message {
  position: relative;
  font-size: 1.2rem;
  color: #ffffff;
  margin-top: 1.5rem;
  line-height: 1.6;
  text-align: center;
  padding: 1rem;
  filter: drop-shadow(0 0 2px #7570a9) drop-shadow(0 0 10px #9891b0);

  margin: auto;
  max-width: 60%;
  margin-bottom: 10vh;
  z-index: 1;
}

/* 小さめ・中央に集まる光 */
.profile-message::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; /* ← PC用に少し小さめに調整 */
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(130, 157, 255, 0.528) 0%,
    rgba(247, 247, 255, 0.048) 40%,
    transparent 70%
  );
  animation: softGlow 5s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
  filter: blur(20px);
  opacity: 0.85;
}


/* ホワ〜と揺れる光のアニメーション */
@keyframes softGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@media screen and (max-width: 767px) {
  .profile-message::before {
    width: 100%;
    height: 100%;
  }

  .profile-message {
    font-size: 1rem; /* ← スマホの文字少し小さく */
  }
}

@media screen and (min-width: 768px) {
  .profile-message::before {
    width: 100%;
    height: 100%;
    background: radial-gradient(
      circle at center,
      rgba(130, 157, 255, 0.528)  0%,
      rgba(180, 180, 255, 0.15) 25%,
      transparent 40%
    );
    background-size: 280px 280px;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(25px);
    opacity: 1; /* ← 明るさを上げる */
  }
}



@media screen and (max-width: 600px) {
  .profile-message::before {
    width: 100%;
    height: 100%;
    background: radial-gradient(
      circle at center,
      rgba(130, 157, 255, 0.528)  0%,
      rgba(180, 180, 255, 0.15) 25%,
      transparent 40%
    );
    background-size: 280px 280px;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(25px);
    opacity: 1; /* ← 明るさを上げる */
  }
}




@media screen and (min-width: 768px) {
  .profile-card + .profile-message {
    max-width: 700px;
    margin: 2rem auto 3rem;
  }
}

@media screen and (max-width: 600px) {
  .profile-message {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}



@media screen and (min-width: 768px) {
  .sp-only {
    display: none;
  }
}