/* 全体の設定 */
:root {
    /* これをやっておくとvar()書けば済む */
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333;
}

html {
    scroll-behavior: smooth;
}

/* 2. メインコンテンツに最小の高さを設定 */
main {
    min-height: 500px;
    /* お好みの高さに調整してください。これにより高さが変わってもレイアウトが安定します */
}

body {
    /*グラデーションしているところ*/
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #16213e 60%, #0f3460 100%);
    color: #e0e0e0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    min-height: 100px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 50px;
    display: flex;
    flex-direction: column;

    /* 黒の50%半透明 */
    background: rgba(0, 0, 0, 0.5);
    /* 背景をぼかす（重要！） */
    backdrop-filter: blur(10px);
    /* Safari対策 */
    -webkit-backdrop-filter: blur(10px);
    /* 角を丸くして柔らかい印象に */
    border-radius: 20px;
    /* 薄い枠線で立体感を出す */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 0px;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: auto;
}

header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 30px;
}

h2 {
    color: #ffffff;
    text-align: center;
    border-bottom: 4px double #ffffff;
    padding-bottom: 5px;
    margin-top: 100px;
}

#greeting {
    display: flex;
    justify-content: center;
}

#profile-header {
    width: 100%;
}

/* プロフィールコンテナ */
#profile-container {
    width: 100%;
}

#profile-container ul {
    display: flex;
    justify-content: center;
    gap: 60px;
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #ffffff;
}

#profile-container li {
    font-size: 18px;
    font-weight: bold;
}

#profile-container a {
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

#profile-container a:hover {
    color: var(--accent-color);
}

/* モバイル時: Slickスライダー用 */
@media (max-width: 768px) {
    #profile-container ul {
        display: block;
    }

    #profile-container li {
        text-align: center;
    }
}

/* Slickドットの色 */
.profile-list .slick-dots li button:before {
    color: #ffffff !important;
}

.profile-list .slick-dots li.slick-active button:before {
    color: var(--accent-color) !important;
}

/* スキルカード（About Me 内） */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.skill-card {
    background: var(--card-bg);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    color: #333;
    border-bottom: 4px solid var(--accent-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/*ホバーさせる*/
.skill-card:hover {
    transform: translateY(-5px);
}

/*Career*/
#career-comment {
    text-align: center;
    margin-bottom: 20px;
}

#career-table {
    width: 100%;
    margin: auto;
    border-collapse: collapse;
}

/* PDFコンテナ */
.pdf-container {
    margin-top: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.pdf-container iframe {
    border-radius: 8px;
    display: block;
}

.pdf-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pdf-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.works-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer {
    text-align: center;
    margin-top: 60px;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* リンク付きスキルカード */
.skill-card-link {
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom-color: #27ae60;
}

.skill-card-link:hover {
    background: #27ae60;
    color: #fff;
    transform: translateY(-5px);
    border-bottom-color: #1e8449;
}

/* チーム紹介ページ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.team-card {
    background: var(--card-bg);
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    border-bottom: 4px solid #27ae60;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
}

/*ホバーさせる*/
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.team-card-link {
    text-decoration: none;
    color: inherit;
}

.team-card-link:hover {
    background: #27ae60;
    border-bottom-color: #1e8449;
}

.team-card-link:hover h2 {
    color: #fff;
}

.back_to_top {
    display: flex;
    justify-content: center;
}

/* 戻るリンク */
.back-link {
    display: inline-block;
    padding: 10px 24px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/*ホバーさせる*/
.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: var(--accent-color);
}

#footer_top {
    text-align: center;
    justify-content: center;
}

#footer_top a {
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

#footer_top a:hover {
    color: var(--accent-color);
}