/* プロフィールページ専用スタイル: グラスモーフィズムとアニメーション */

html,body {
    background:repeating-linear-gradient(to bottom,transparent,transparent calc(50vmin / 3),#322E7B calc(50vmin / 3),#322E7B calc(50vmin / 3 + 2px)),
    repeating-linear-gradient(to right,transparent,transparent calc(50vmin / 3),#322E7B calc(50vmin / 3),#322E7B calc(50vmin / 3 + 2px)) #050949;
    overflow-y:auto;
    scroll-padding-top:calc(9vh + 6em);
}

/* レイアウト */
.profile-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 5vmin 5vmin 5vmin 5vmin; /* header(9vh)に被らないようにする */
    min-height: 100vh;
    box-sizing: border-box;
}

/* メインのカード型 - すりガラス風 */
.profile-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    border-radius: 3vmin;
    width: 100%;
    max-width: 650px;
    padding: 5vmin;
    color: #F9FAFC; /* ベースのテキスト色 */
    text-align: center;
    animation: fadeIn 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ユーザーアイコン */
.profile-icon {
    width: 25vmin;
    height: 25vmin;
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    object-fit: contain; /* 横長の画像も表示しやすいようにcontain */
    background: rgba(0,0,0,0.2); /* 画像が透明だった場合の背景 */
    border: 4px solid #F9FAFC;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 2vmin;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    cursor: pointer;
}

.profile-icon:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* 名前と自己紹介 */
.profile-name {
    font-size: 5vmin;
    font-weight: bold;
    margin: 0;
    color: #F9FAFC;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.1em;
}

.profile-bio {
    font-size: 2.2vmin;
    line-height: 1.8;
    margin: 3vmin 0;
    color: #F9FAFC;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* セクション（プレイスタイルなど） */
.profile-section {
    text-align: left;
    background: rgba(255, 255, 255, 0.15);
    padding: 3vmin;
    border-radius: 2vmin;
    margin-top: 3vmin;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s, transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.profile-section:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.profile-section h3 {
    margin-top: 0;
    color: #F9FAFC;
    font-size: 2.8vmin;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 1vmin;
    margin-bottom: 2vmin;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.profile-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-section li {
    margin-bottom: 1.2vmin;
    font-size: 2.2vmin;
    color: #F9FAFC;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.profile-section li::before {
    content: "✦";
    color: #304E72;
    margin-right: 1.5vmin;
    font-size: 2.5vmin;
    text-shadow: none;
}

/* 強調用バッジ */
.highlight {
    font-weight: bold;
    color: #304E72;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.3vmin 1.2vmin;
    border-radius: 1vmin;
    margin-right: 1.5vmin;
    font-size: 1.8vmin;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* リンクボタン */
.profile-links {
    display: flex;
    justify-content: center;
    gap: 3vmin;
    margin-top: 4vmin;
    flex-wrap: wrap;
}

.profile-link {
    display: inline-block;
    padding: 1.5vmin 4vmin;
    background: rgba(70, 99, 152, 0.85);
    backdrop-filter: blur(5px);
    color: #F9FAFC !important;
    border-radius: 4vmin;
    font-size: 2.2vmin;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-link:hover {
    background: #304E72;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.profile-link:active {
    transform: translateY(0) scale(0.98);
}

/* モバイル向けレスポンシブ調整 */
@media (max-width: 768px) {
    .profile-name { font-size: 7vmin; }
    .profile-bio { font-size: 4vmin; }
    .profile-section h3 { font-size: 5.5vmin; }
    .profile-section li { font-size: 3.8vmin; }
    .profile-section li::before { font-size: 4vmin; }
    .highlight { font-size: 3.2vmin; padding: 0.5vmin 1.5vmin; margin-right: 2vmin; }
    .profile-link { font-size: 4vmin; padding: 2.5vmin 6vmin; }
    .profile-icon { width: 35vmin; height: 35vmin; }
}

/* PC等大画面の文字サイズ固定化 (vminに過剰依存しない) */
@media (min-width: 1024px) {
    .profile-name { font-size: 32px; }
    .profile-bio { font-size: 16px; }
    .profile-section h3 { font-size: 22px; }
    .profile-section li { font-size: 16px; margin-bottom: 8px; }
    .profile-section li::before { font-size: 18px; }
    .highlight { font-size: 14px; padding: 2px 8px; margin-right: 12px; }
    .profile-link { font-size: 16px; padding: 12px 28px; }
}
