/*全体の設定*/
*, *::before, *::after {
    box-sizing: border-box;
}


html, body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; 
　　width: 100%;
    margin: 0　!impoart;
    padding: 0;
}



.profile-section {
    width: 100%;

    /*背景*/
    background-image: url('../img/profile2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow: hidden;
}

/*中央の白いプロフィールカード*/
.profile-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);/*後ろのレモンをぼかす*/
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 50px 35px;
    margin-top: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    text-align: center;
    color: #1a252f;

    /*初期状態、透明で下に下げておく*/
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.0s ease, transform 1.0s cubic-bezier(0.25, 1, 0.5, 1);
}

/*js*/
.profile-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*丸形アイコン*/
.profile-avatar img {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important; /* スマホでも絶対縮ませない */
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 0, 0, 0.05);
}

/*名前*/
.profile-name {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}


.profile-name .en-name {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.15em;
    margin-top: 5px;
}

.profile-bio p {
    margin: 40px 0 60px 0;
    word-break: keep-all;     /* 単語の途中で切らない */
    overflow-wrap: anywhere;  /* 画面幅に収める */
    line-height: 1.8;
    
    /* ★変更：中央揃えにする */
    text-align: center;  
}

/*スキルエリア/経歴エリア*/
.profile-skills h3,
.profile-work h3 ,
.profile-academic h3{
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(26, 37, 47, 0.1);
    padding-bottom: 8px;
    margin: 20px;

}

.profile-skills,
.profile-work,
.profile-academic{
    margin-bottom: 50px;
}

.work-grid,
.academic-grid {
    list-style: none !important;
    padding: 0 !important;       /* ★最優先で左の40pxを消す */
    margin: 0 !important;        /* ★最優先で外枠の余白を消す */
    width: 100% !important;
    text-align: center !important; /* ★経歴の文字を綺麗に真ん中寄せにする */
}

.skills-grid{
    display: flex;
    flex-direction: column;
    justify-content: center;
　　align-items: center;
    gap: 16px;
    list-style: none;
    padding: 0;
　　width: 100%;
}

.skills-grid li {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(26, 37, 47, 0.05);
    width: 100%;
    max-width: 600px;
　　margin: 0 auto;
}


/*戻るボタン*/
.return {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center; /* 横方向の真ん中に寄せる */
    align-items: center;     /* 縦方向の真ん中に寄せる */
    width: 100%;
}

.return a {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 80px;
    height: 32px;
    border: 1px solid #7f8c8d;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.05em;

    transition: all 0.3s ease;
}

.return a:hover {
    background-color: #7f8c8d;
    color: #ffffff
}


img, 
iframe, 
ins {
    max-width: 100% !important;
    height: auto !important;
}