.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 30px; /* 写真とテキストの間のスペース */
}
.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #004DFF; /* 青色の枠 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 影（おしゃれに） */
    margin-top: 100px;
}
.profile-text {
    max-width: 400px;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.name {
  margin-bottom: 4px; /* デフォルトより小さめ */
}

.research {
    margin-top: 0;
}

/* PC時 */
@media screen and (min-width: 767px) {
/*ウィンドウ幅が767px以上の場合に適用*/
    /* SNSリンクを中央寄せに */
.sns-links {
    margin-top: -30px;
}

.sns-links a {
    margin: 0 10px;
    font-size: 28px;
}
}

@media (max-width: 768px) { /*以下スマホ対応*/
  /* プロフィール写真とテキストを縦並びに */
.profile-section {
display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 15px; /* ← ここを30pxから15pxなどに縮める */
}

.profile-photo {
    margin-top: 100px;
    width: 150px;
    height: 150px;
}

.profile-text {
    max-width: 90%;
    font-size: 15px;
}

  /* SNSリンクを中央寄せに */
.sns-links {
    margin-left: 0;
    margin-top: 20px;
    text-align: center;
}

.sns-links a {
    margin: 0 10px;
    font-size: 28px;
}

  /* グリッドを1列に */
.grid-container {
    grid-template-columns: 1fr;
    padding: 10px;
}

.grid-item {
    font-size: 15px;
}
.allContents {
    display: flex;
    flex-direction: column; /* スマホでは縦並びにする例 */
    align-items: center;
}

.menu-item a {
    font-size: 14px;
    line-height: 1.4;
}

.header-title {
text-align: center;
  margin-top: -10px; /* 上下に10px移動 */
  margin-left: auto; /* 左右に10px移動 */
}

header::before { /*横線*/
content: "";
position: absolute;
  left: 0px; /* 左右にずらす */
  bottom: 20px; /* 上下にずらす */
  width: calc(100% - 10px); /* 左にずらした分縮める */
  height: 5px;  /* 線の大きさ */
background-color: #004DFF;
}
header::after { /*縦線*/
content: "";
position: absolute;
top: 0;
  left: 20px; /* 左右にずらす */
  width: 5px; /* 線の大きさ */
height: 100%;
background-color: #004DFF;
}

.nav{   /*ナビゲーション設定*/
margin-left: auto;
margin-right: auto;
margin-top: -20px;
}

nav ul{
display: table;
margin: 0 auto;
padding: 0 ;
width: 100%;
text-align: center;
}
nav li{
display: table-cell;
min-width: 50px;
}
nav a{
display: block;
width: 100%;
text-decoration: none;
color: #555;
padding-bottom: 5px;
}
nav li.current{
border-top: 3px solid #004DFF;
}
nav li:hover{
color: #E7DA66;
border-top: 3px solid #00ff62;
}
.menu-item {
list-style: none;
display: inline-block;
padding: 10px;
}
}



