*{
    padding: 0;
    margin: 0;

}

html, body {
  width: 100%;
  overflow-x: hidden; /* 横方向のスクロールを無効化 */
}

h1{
    font-size: 40px;
    margin-bottom: 20px;
}

h2{
    font-size: 36px;
    margin-bottom: 20px;
}

h3{
    font-size: 32px;
    margin-bottom: 20px;
    
}

.container{
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
}

#header-spacer {
  width: 100%;
  height: 80px;
  pointer-events: none;
}

.container404 {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}

.container404 p {
  margin: 0;
  font-family: "游ゴシック", "Yu Gothic", sans-serif;
  font-size: 1.5rem;
  background-color: #fff;
  color: #000;
}

.button-container {
    /* ボタンのコンテナ。親要素のtext-align: centerでボタンも中央寄せされる */
    margin-top: 20px; /* テキストとの間に少し隙間を空ける */
}

.btn-primary {
    /* ボタンの基本的なスタイル */
    display: inline-block; /* text-alignで中央寄せできるようにインラインブロックにする */
    text-decoration: none; /* 下線を消す */
    padding: 10px 25px;
    margin-top: 7.5%;
    margin-bottom: 5%;
    border-radius: 5px;
    font-weight: bold;
    
    /* ボタンの色 (例: シンプルな青) */
    background-color: #e38cfe;
    color: #ffffff;
    border: 1px solid #e38cfe;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #e38cfe;
}

/* ページ全体 */
body {
  margin: 0;
  font-family: "游ゴシック", "Yu Gothic", sans-serif;
  font-size: 1rem;
  background-color: #fff;
  color: #000;
}

/* コンテナ */
.profile-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 60px auto; /* 上下余白 */
  padding: 0 5%;
  align-items: flex-start;
}

/* News h2タイトル */
.container header h2 {
  position: relative;
  display: inline-block;   /* 下線を文字幅に合わせる */
  padding-bottom: 10px;
  font-family: "游ゴシック", "Yu Gothic", sans-serif;
  font-size: 36px;
  font-weight: bold;
  text-align: left;
  margin: 40px 0 60px;     /* 上下の余白 */
  width: auto;             
  max-width: 100%;
}

/* 下線 */
.container header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: #e38cfe;
  border-radius: 2px;
}

/* 下線 */
.container header h2.pj::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: #ff8800;
  border-radius: 2px;
}


/* 左側（画像） */
.profile-left {
  flex: 0 0 400px;
  max-width: 400px;
  margin: 0 40px 0 10px;
}

.profile-left figure {
  margin: 0;
}

.profile-left img {
  width: 100%;
  aspect-ratio: 1/1; /* 正方形を維持 */
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 右側（名前・紹介・SNS） */
.profile-right {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 名前 */
.profile-right h3 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 1rem 0;
}

/* 自己紹介テキスト */
.profile-right p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

/* SNSリンク（縦並び＋YouTube文字付き） */
.profile-sns {
  margin-top: 1rem;
}

.profile-sns ul {
  display: flex;
  flex-direction: column; /* 縦並び */
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各SNSリンク */
.profile-sns ul li a {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* アイコンと文字の間隔 */
  text-decoration: none;
  color: #000;
  font-weight: bold;
  transition: color 0.3s ease;
}

/* SNSアイコン */
.profile-sns ul li a img {
  width: 30px;
  height: auto;
  object-fit: left;
  display: block;
  transition: opacity 0.3s;
}

.profile-sns ul li a:hover img {
  opacity: 1;
}


/* Xリンク文字 */
.profile-sns ul li.x a {
  display: flex;
  align-items: center;
  gap: 1rem; /* アイコンと文字の間隔 */
  text-decoration: none;
}

/* 通常文字 */
.profile-sns ul li.x a .x-text {
  transition: color 0.3s, content 0.3s;
  color: #000; /* 通常色 */
  position: relative;
}

/* ホバー時に文字変更 */
.profile-sns ul li.x a:hover .x-text::after {
  content: "@kuusemi";  /* ホバーで表示する文字 */
  white-space: nowrap;  /* 改行禁止 */
  color: #1DA1F2; /* Xブルー */
  position: absolute;
  left: 0;
  top: 0;
}

/* ホバー時に元の文字を非表示 */
.profile-sns ul li.x a:hover .x-text {
  color: transparent;
}


/* Xリンク文字 */
.profile-sns ul li.youtube a {
  display: flex;
  align-items: center;
  gap: 1rem; /* アイコンと文字の間隔 */
  text-decoration: none;
}

/* 通常文字 */
.profile-sns ul li.youtube a .youtube-text {
  transition: color 0.3s, content 0.3s;
  color: #000; /* 通常色 */
  position: relative;
}


/* ホバー時に文字変更 */
.profile-sns ul li.youtube a:hover .youtube-text::after {
  content: "@kuusemi";  /* ホバーで表示する文字 */
  white-space: nowrap;  /* 改行禁止 */
  color: #ff0000;
  position: absolute;
  left: 0;
  top: 0;
}

/* ホバー時に元の文字を非表示 */
.profile-sns ul li.youtube a:hover .youtube-text {
  color: transparent;
}


.GA4-link {
  position: relative;
  color: #e38cfe;         /* 下線と同系色で統一 */
  font-weight: 500;       /* 少し強調 */
  text-decoration: none;  /* デフォルトの下線を消す */
  transition: color 0.2s; /* ホバー時の色変化 */
}

/* 下線アニメーション（中央から左右に広がる） */
.GA4-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;            /* 文字の少し下に線を引く */
  width: 0;
  height: 1px;
  background-color: #e38cfe;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.GA4-link:hover::after {
  width: 100%; /* 中央から両端に伸びる */
}

/* モバイル対応 */
@media (max-width: 850px) {


    .h2-titele {
        padding-bottom: 50px;
    }

    .profile-container {
        flex-direction: column;
        /* ★ 修正: 全体を中央揃えにするために align-items: center に変更 ★ */
        align-items: center; 
        gap: 1.5rem;
    }

    .profile-left,
    .profile-right {
        max-width: 100%;
        flex: 1;
    }
    
    /* ★ 修正: 画像コンテナの幅とマージンを中央揃え用に調整 ★ */
    .profile-left {
        /* 幅はそのまま維持 */
        flex: 0 0 275px;
        max-width: 275px;
        /* margin: 0 auto; で画像ブロック自体を中央寄せ */
        margin: 0 auto; 
    }

    /* 右側（名前・紹介・SNS） */
    .profile-right {
        /* ここは既に中央寄せの設定があるため維持 */
        align-items: center;
        text-align: center;
    }

    /* SNSリスト */
    .profile-sns ul {
        /* ここも中央寄せの設定があるため維持 */
        align-items: center; 
        gap: 0.8rem;
    }

    /* SNSの各リンク項目を中央に配置するために、幅を制限して margin: auto を適用 */
    /* これがないと、<li>要素が幅一杯に広がり、内部のアイテムが中央になっても、<li>自体は左寄せのままに見える場合があります。 */
    .profile-sns ul li {
        width: fit-content; /* 内容物の幅に合わせる */
        margin: 0 auto;     /* リスト項目自体を中央寄せ */
    }

    /*
      注: .profile-left の元のマージン設定
      margin: 0 40px 0 10px;
      は margin: 0 auto; で完全に上書きされ、画像ブロックが中央に配置されます。
    */
}