/* 全体スタイルのリセット */
/* 全体スタイルのリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* 本文の基本設定 */
body {
    font-family: "Playfair Display", serif;
    text-align: center;
    color: #333;
    background-color: #c5c5c5;
    overflow-x: hidden;
}

/* タイトルとセクションスタイル */
h1 {
    transform: scale(2);
    font-size: 3rem;
    padding-top: 150px;
    padding-bottom: 100px;
}

h2 {
    transform: scale(1.5);
    font-size: 2rem;
    padding-top: 30px;
    margin-bottom: 30px;
}

.add-space {
    font-size: 2rem;
    padding-bottom: 100px;
}

.copyright-text {
    padding: 30px;
    opacity: 0.5;
}

.gray-section {
    background-color: #c5c5c5;
    color: black;
}

.black-section {
    background-color: rgb(46, 46, 46);
    color: white;
}

/* 左上に固定する丸いタブメニューのスタイル */
.fixed-tab-l {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    background-color: #333;
    border-radius: 15px;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 個別のリンク要素のスタイル */
.fixed-tab-l a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s ease;
}

/* ホバー時の背景色と角丸 */
.fixed-tab-l a:hover {
    color: #70ba63;
}

/* 右上に固定する丸いタブメニューのスタイル */
.fixed-tab-r {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    background-color: #333;
    border-radius: 15px;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 個別のリンク要素のスタイル */
.fixed-tab-r a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s ease;
}

/* ホバー時の背景色と角丸 */
.fixed-tab-r a:hover {
    color: #70ba63;
    border-radius: 10px;
    /* 角を丸くする */
}

/* 画像のスタイル */
.head-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* 文字と画像を横並びに配置するコンテナ */
.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.profile-area {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: left;
    margin-left: 10vw;
}

.profile-box {
    background-color: #fff;
    padding: 10px;
    align-self: flex-start;
    width: 30vw;
    height: 10vh;
}

.profile-box p,
h3 {
    text-align: left;
}

/* 追加：プロフィールのテキストエリア用スタイル */
.profile-text-area {
    position: relative;
    z-index: 2;
    width: 45vw;
    height: 70vh;
    overflow-y: auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-left: 5vw;
    /* フォントを見やすくするための調整 */
    font-family: 'Noto Sans JP', sans-serif;
    /* 日本語対応のゴシック体フォント例 */
    line-height: 1.7;
    /* 行間を少し広げる */
    font-size: 1rem;
    /* 少し大きくする */
    color: #333;
    /* 文字色を少し濃くする */
}

.profile-text-area h3 {
    margin-bottom: 15px;
    color: #444;
    font-size: 1.2rem;
    /* h3のフォントサイズも調整 */
}

.profile-text-area p {
    margin-bottom: 8px;
}

.profile-image {
    width: 30vw;
    height: auto;
    border-radius: 30%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5vh;
    gap: 2.5vw;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    width: 25vw;
    height: 14vw;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: block;
}

.gallery-item img {
    width: 100%;
    /* 25vwから変更 */
    height: 100%;
    /* 高さを100%に設定 */
    object-fit: cover;
    position: absolute;
    /* 絶対配置を追加 */
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.image-description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    /* 画像の前面に表示 */
}

/* マウスホバー時の説明表示 */
.gallery-item:hover .image-description {
    opacity: 1;
}

/* ホバー時に画像が少し拡大される */
.gallery-item:hover img {
    transform: scale(1.1);
}