/* 全体の設定 */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.8;
    background-color: #fdfdfd;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
a { text-decoration: none; }
ul { padding-left: 20px; }

/* ヘッダー */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
header h1 { font-size: 1.4rem; color: #002c5f; font-weight: bold; }
header nav ul { display: flex; list-style: none; padding: 0; margin: 0; }
header nav ul li { margin-left: 25px; }
header nav a { color: #555; font-weight: 600; font-size: 0.95rem; transition: 0.3s; }
header nav a:hover { color: #002c5f; }

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #002c5f 0%, #004e92 100%);
    color: #fff;
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 70px;
}
.hero h2 { font-size: 3rem; margin-bottom: 20px; letter-spacing: 1px; }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; }
.btn {
    background: #fff;
    color: #002c5f;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}
.btn:hover { background: #eee; transform: translateY(-2px); }

/* セクション共通 */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #002c5f;
    position: relative;
    font-weight: bold;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #002c5f;
    margin: 15px auto 0;
}
.bg-light { background: #f4f7f6; }
.bg-dark { background: #002c5f; color: #fff; }

/* プロフィール */
.profile-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: left;
}
.profile-text h3 { margin-top: 0; color: #002c5f; }
.university { color: #004e92; font-weight: bold; margin-bottom: 20px; }
.bio-text p { margin-bottom: 15px; }

/* スキル */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.skill-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.skill-item i { font-size: 2.5rem; color: #004e92; margin-bottom: 15px; display: block; text-align: center; }
.skill-item h3 { margin-bottom: 15px; font-size: 1.2rem; text-align: center; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.skill-list { list-style: none; padding: 0; }
.skill-list li { margin-bottom: 8px; border-bottom: 1px dashed #eee; padding-bottom: 5px; }
.skill-list strong { color: #004e92; }

/* 作品（Works） */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.work-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    transition: 0.3s;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.work-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.badge {
    background: #002c5f;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}
.work-card h3 { margin-top: 5px; color: #333; font-size: 1.3rem; }
.tech-stack { margin: 10px 0; }
.tech-stack span {
    background: #eef4fa;
    color: #004e92;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 5px;
    font-weight: 600;
}
.detail-list { margin-top: 15px; font-size: 0.9rem; color: #555; }

/* 経歴 (History) */
.history-block { margin-bottom: 40px; }
.history-block h3 { border-left: 5px solid #002c5f; padding-left: 15px; color: #333; margin-bottom: 20px; }
.history-item { background: #fff; padding: 20px; margin-bottom: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.history-item h4 { margin: 0 0 10px 0; color: #004e92; }

/* 自己PR & 志望動機 (Long Text) */
.text-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.text-content.text-white { background: transparent; box-shadow: none; color: #fff; padding: 0; }
.text-content h3 { color: #002c5f; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 40px; }
.text-content p { margin-bottom: 20px; text-align: justify; }
.lead { font-weight: bold; font-size: 1.2rem; text-align: center; color: #004e92; margin-bottom: 30px; }

/* Contact Styles */
.contact-area { text-align: center; margin-top: 50px; }
.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}
.btn-outline:hover { background: #fff; color: #002c5f; }
.footer-note { opacity: 0.7; font-size: 0.9rem; margin-top: 20px; }

/* フッター */
footer {
    text-align: center;
    padding: 30px;
    background: #001a38;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

/* リンク化されたカードのスタイル調整 */
.work-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.work-card-link:hover .work-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #002c5f;
}
.work-card-link h3 i {
    color: #004e92;
    opacity: 0.7;
}

/* PDFリストのデザイン */
.pdf-list {
    list-style: none;
    padding: 0;
}
.pdf-list li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}
.pdf-list li:last-child {
    border-bottom: none;
}
.pdf-list a {
    text-decoration: none;
    color: #333;
    display: block;
    transition: 0.2s;
    display: flex;
    align-items: flex-start;
}
.pdf-list a i {
    color: #e74c3c;
    font-size: 1.1em;
    margin-right: 8px;
    margin-top: 3px;
}
.pdf-list a:hover {
    color: #004e92;
    background-color: #f9f9f9;
    padding-left: 5px;
}

/* --- 画像表示用の追加スタイル --- */
.history-image {
    text-align: center; /* 画像を中央寄せ */
    margin-top: 20px;
    margin-bottom: 10px;
}
.history-image img {
    max-width: 100%;    /* スマホで横にはみ出さないように */
    height: auto;       /* 比率を保ったまま縮小 */
    border-radius: 8px; /* 角を少し丸く */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* 影をつけて浮き上がらせる */
    border: 1px solid #eee;
}
.caption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .hero h2 { font-size: 2rem; }
    .skills-grid, .works-grid { grid-template-columns: 1fr; }
    .text-content { padding: 20px; }
}