/* General Styles */
:root {
    --primary-color: #8A7BD8;
    --primary-hover: #6E57C6;
    --background-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
    --navbar-bg: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu li a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.9rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.access-counter {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 0.8rem;
    color: #666;
}

/* Main Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid var(--border-color);
}

.header-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Content Section */
.content-section {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: var(--text-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Notice List */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.notice-item {
    padding: 1rem;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

/* Clickable card link style for notices */
.notice-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.notice-card-link:hover .notice-item {
    background-color: #f0f8ff;
}

/* Improve "全て見る" appearance */
.view-all-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
}
.view-all-link:hover {
    background-color: var(--primary-hover);
}

/* Profile Info */
.profile-info p {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.profile-info strong {
    color: var(--primary-color);
}

/* Skills Info */
.skills-info {
    display: grid;
    gap: 1.5rem;
}

.skill-category {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.skill-category h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.skill-category ul {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.skill-category li {
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 2rem;
    border-left: 3px solid var(--primary-color);
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: -2.35rem;
    top: 0.2rem;
    border: 3px solid white;
}

.timeline-year {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 120px;
}

.timeline-text {
    flex: 1;
}

/* Links Info */
.links-info {
    display: grid;
    gap: 1.5rem;
}

.link-category {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.link-category ul {
    list-style: none;
    padding-left: 0;
}

.link-category li {
    margin-bottom: 0.5rem;
}

.link-category a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.link-category a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Interests List */
.interests-list {
    margin-left: 1.5rem;
    line-height: 2;
}

.interests-list li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Contact Info */
.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.contact-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.contact-item a:hover {
    text-decoration: underline;
}

.note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Notice Buttons */
.notice-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.notice-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.notice-button:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

.notice-button:active {
    transform: translateY(0);
}

/* Notice Section (notice.html) */
.notice-section {
    margin-bottom: 2rem;
}

.notice-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-content .notice-item {
    padding: 1rem;
    background-color: #f0f8ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.notice-content .notice-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.notice-content .notice-item ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.notice-content .notice-item ul li {
    margin-bottom: 0.5rem;
}

.notice-content .notice-item.important {
    background-color: #ffe6e6;
    border-left-color: #d9534f;
}

.notice-content .notice-item.important p {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--navbar-bg);
    color: #666;
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        box-shadow: var(--shadow);
        padding: 1rem;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        padding: 0.8rem;
    }

    .header-section h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 0.5rem;
    }

    .timeline-item::before {
        left: -1.35rem;
    }

    .timeline-year {
        min-width: 100px;
        font-size: 0.95rem;
    }

    .access-counter {
        position: static;
        display: block;
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .header-section h1 {
        font-size: 1.5rem;
    }

    .nav-title {
        font-size: 1.2rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .contact-item a {
        word-break: break-word;
    }
}
