body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* ホームページの背景画像 */
.page-profile {
    background-image: url('../image/index/background2.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.0); /* 透過した白色 */
    padding: 10px 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.0);
    z-index: 5;
}

.logo img {
    width: 300px;
    height: 80px;
    max-width: 100%; /* 枠からはみ出さないようにする */
}

/* スマホ用 */
@media (max-width: 768px) {
  .logo img {
    width: auto;
    height: 40px;
  }
}

/************************************
ハンバーガーメニュー
************************************/

/* ハンバーガーメニュー */
.menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background-color: #fa7aa5;
    color: #fff;
    transition: right 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    z-index: 8; /* menu の z-index を8に変更 */
}

/* メニューが開いたとき */
.menu.open {
    right: 0;
}

/* メニューが開いたときの背景を半透明の黒に */
.menu-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 6;
    pointer-events: none;
}

.menu-bg.active {
    opacity: 1;
    pointer-events: auto;
}

/* ハンバーガーボタン */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #fa7aa5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 9; /* z-indexを変更 */
    transition: background-color 0.3s;
}

/* ホバー時の変更（ボタンの背景を白に、三本線をピンクに） */
.hamburger:hover {
    background-color: #fff;
}

.hamburger:hover span {
    background-color: #fa7aa5;
}

/* 三本線 */
.hamburger span {
    display: block;
    height: 3px;
    width: 30px;
    background-color: #fff;
    transition: 0.4s;
}

/* メニューが開いたらハンバーガーを非表示 */
.hamburger.hidden {
    display: none;
}
/* バツボタン（メニューが開いたときのみ表示） */
.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #fa7aa5;
    font-size: 40px;  /* フォントサイズを大きく */
    font-weight: bold;
    border-radius: 20%;  /* 丸くする */
    cursor: pointer;
    display: none; /* 初期状態では非表示 */
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s;
}


.close-btn:hover {
    background-color: #ff9ac2;
}

/* メニューが開いたらバツボタンを表示 */
.menu.open ~ .close-btn {
    display: flex;
}

/* メニューリストのスタイル */
.menu ul {
    list-style-type: none;
    padding: 0;
    margin-top: 80px;
}

.menu li {
    padding: 20px 0;
    border-bottom: 1px solid #fff;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    display: block;
}

/************************************
プロフィール
************************************/

/* プロフィールセクションのレイアウト調整 */
.profile-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 100px auto;
    padding: 20px;
    max-width: 60%; /* 横幅を広げる */
    min-height: 500px;  /* 最低高さを500pxに設定 */
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}


.profile-header {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.profile-header h1 {
    color: #fa7aa5;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.profile-header p {
    color: #fa7aa5;
    font-size: 0.8em;
    margin-top: 0;
}

.profile-content {
    display: flex;
    justify-content: flex-start; /* 画像と自己紹介を横並び */
    gap: 20px;
    width: 100%;
    height: 800px;
}

.charcter_image {
    flex: 0 0 40%; /* 画像の幅を40%に調整 */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 画像が枠からはみ出さないように */
    border-radius: 10px; /* 枠の角を丸くする */
}

/* 画像の設定 */
.charcter_image img {
    width: 100%; /* 画像の幅を親要素に合わせる */
    height: 100%; /* 高さを親要素に合わせる */
    object-fit: cover; /* 画像が枠内に収まるように調整 */
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.0);
    transition: opacity 0.5s ease-in-out; /* フェードイン・フェードアウトのアニメーション */
    position: absolute; /* 画像を絶対位置で重ねる */
    top: 0;
    left: 0;
}

/* 最初の画像（デフォルト） */
.image-default {
    opacity: 1; /* 最初は表示されている */
}

/* ホバー時の画像 */
.image-hover {
    opacity: 0; /* 最初は非表示 */
}

/* カーソルが画像に乗ったときにデフォルト画像を非表示に */
.charcter_image:hover .image-default {
    opacity: 0;
}

/* カーソルが画像に乗ったときにホバー画像を表示 */
.charcter_image:hover .image-hover {
    opacity: 1;
}

.profile-right {
    flex: 1; /* 自己紹介部分の幅を残りのスペースに設定 */
    padding: 20px;
    text-align: left;
}

.profile-right h2 {
    color: #fa7aa5;
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.profile-right p {
    color: #333;
    margin-left: 50px;
    font-size: 1.1em;
    line-height: 1.6;
}

/************************************
全体レイアウト
************************************/
/* 全体レイアウト */
.main-section {
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    align-items: center; /* 中央揃え */
    justify-content: flex-start; /* 上揃え */
    margin: 100px auto;
    padding: 20px;
    max-width: 60%; /* 横幅を1000pxに設定 */
    min-height: 500px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* ヘッダーのスタイル */
.main-section h1 {
    color: #fa7aa5;
    font-size: 2.5em;
}
/* ヘッダーのスタイル */
.main-section p {
    color: #fa7aa5;
    font-size: 0.8em;
    margin-bottom: 15px; /* 下の要素との間隔 */
}

/* ツイートセクションと右側のコンテンツを横並び */
.twitter-header {
    display: flex; /* 横並び */
    justify-content: space-between; /* 左右に配置 */
    gap: 20px; /* 横の間隔 */
    width: 100%;
    margin-bottom: 20px; /* タイトルとコンテンツ間の隙間 */
}

/* Twitterの表示セクション */
.twitter-section{
    flex: 1 1 40%; /* 40%の幅を取る */
    max-width: 45%; /* 最大幅を45%に設定 */
    box-sizing: border-box;
    text-align: center;
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Twitter埋め込み全体のスタイル */
.twitter-frame {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

/*Twitterフォローボタン*/
.link-twitter {
    text-align: center;
    background-color: #fa7aa5; /*通常時の背景色*/
    color: #fff; /*文字色*/
    padding: 0px 20px;
    border-radius: 10px;
    font-size: 1.2em;
    margin-top: 5%;
    margin-bottom: 2%;
    transition: background-color 0.3s ease, transform 0.2s ease; /*変化をなめらかに*/
}


/*リンクのテキストのスタイル */
.link-twitter a {
    text-align: center;
    text-decoration: none;
    color: #fff;
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 7.5px 0px;
}

.link-twitter:hover {
    background-color: #d14875;
    transform: scale(1.05);
}

/* 右側の紹介文エリア */
.content-right {
    flex: 1 1 55%; /* 右側はより広く設定 */
    max-width: 55%;
    box-sizing: border-box;
}

/* 右側のタイトル */
.content-right h3 {
    text-align: center;
    color: #fa7aa5;
    padding: 10px;
    border-radius: 10px;
    font-size: 2.0em;
    margin-bottom: 15px;
}

/* 各情報ボックス */
.info-box {
    margin-bottom: 20px;
    margin-left: 8%;
    border-radius: 5px;
    width: 80%;
}

/* 右側のボックスの h2 スタイル */
.info-box h2 {
    background-color: #e45b89;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 15px;
    font-size: 1.8em;
    margin-bottom: 10px;
}

/* 画像を枠内に収める */
.info-box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 10px;
}

.info-box p {
    color: #4d4d4d;
    padding: 5px;
    margin: 20px auto;
    font-size: 1.1em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  /* プロフィールセクション */
  .profile-content {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .charcter_image,
  .profile-right {
    width: 100%;
    padding: 0 10px;
  }

  .charcter_image {
    position: relative;
    height: auto;
    margin-bottom: 20px;
  }

  .charcter_image img {
    position: static;
    width: 100%;
    height: auto;
  }

  .image-hover {
    display: none;
  }

  .charcter_image:hover .image-default {
    opacity: 1 !important;
  }

  .profile-right h2 {
    text-align: center;
  }

  .profile-right p {
    margin-left: 0;
    text-align: left;
  }

  /* メインセクション */
  .main-section {
    flex-direction: column;
  }

  /* カード表示の左右余白調整 */
  .profile-box,
  .main-section {
    max-width: 90%;
    padding: 10px;
    box-sizing: border-box;
  }

  /* Twitterとタグエリアを縦並び、順序入れ替え */
  .twitter-header {
    flex-direction: column;
    align-items: center;
  }

  .content-right {
    order: -1;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .twitter-section {
    flex: 1 1 90%; /* 40%の幅を取る */
    max-width: 100%; /* 最大幅を45%に設定 */
    box-sizing: border-box;
    text-align: center;
    /* padding: 10px 20px; */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  }

}


@font-face {
    font-family: 'keinann';
     src: url('../fonts/keinann.ttf') format('truetype');
}

.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-up-section {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-up-section.visible {
    opacity: 1;
    transform: translateY(0);
   } 