/* ========== リセット・ベース ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #fafafa;
}

/* ========== ヘッダー ========== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
}

/* ========== ハンバーガーメニュー ========== */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========== ナビゲーション ========== */
.nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(255, 255, 255, 0.98);
}

.nav.open {
    max-height: 300px;
}

.nav ul {
    list-style: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 12px;
}

.nav ul li {
    border-bottom: 1px solid #eee;
}

.nav ul li:last-child {
    border-bottom: none;
}

.nav ul li a {
    display: block;
    padding: 12px 0;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav ul li a:hover {
    color: #3498db;
}

/* ========== ヒーローセクション ========== */
.hero {
    margin-top: 60px;
    height: 50vh;
    min-height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

/* ========== セクション共通 ========== */
.section {
    padding: 60px 20px;
}

.section-alt {
    background: #f0f4f8;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-body {
    max-width: 800px;
    margin: 0 auto;
}

.section-body p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.9;
}

/* ========== Profile ========== */
.profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.profile-table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-collapse: collapse;
    text-align: left;
}

.profile-table th,
.profile-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.profile-table th {
    width: 100px;
    color: #667eea;
    font-weight: 600;
}

.profile-text {
    margin-top: 28px;
    text-align: left;
}

.profile-text p {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.9;
}

/* ========== 経歴リスト ========== */
.career-list {
    list-style: none;
    padding: 0;
}

.career-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    line-height: 1.7;
}

.career-list li:last-child {
    border-bottom: none;
}

.career-year {
    display: inline-block;
    min-width: 80px;
    font-weight: 600;
    color: #667eea;
    margin-right: 12px;
}

/* ========== 写真ギャラリー ========== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.photo-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    background: #e0e0e0;
    transition: transform 0.3s ease;
}

.photo-gallery img:hover {
    transform: scale(1.03);
}

/* ========== プロフィール写真 ========== */
.profile-photo {
    margin-bottom: 20px;
}

.profile-photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    background: #e0e0e0;
    border: 4px solid #667eea;
}

/* ========== Like (タブ切り替え) ========== */
.like-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 8px 20px;
    border: 2px solid #667eea;
    background: #fff;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: #667eea;
    color: #fff;
}

.tab-content {
    display: none;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* ========== Access ========== */
.access-info {
    margin-bottom: 20px;
}

.access-info p {
    font-size: 0.95rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    display: block;
}

/* ========== フッター ========== */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.scroll-top {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-size: 0.85rem;
}

.scroll-top:hover {
    opacity: 1;
}

/* ========== スクロールアニメーション ========== */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== レスポンシブ ========== */
@media (max-width: 600px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .profile-table th,
    .profile-table td {
        padding: 8px 10px;
        font-size: 0.88rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-gallery img {
        height: 140px;
    }
}

/* ========== ミュージックプレイヤー ========== */
.music-player {
    margin-top: 1.5rem;
    text-align: center;
}

.music-label {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.music-player audio {
    width: 100%;
    max-width: 400px;
}
