/* リセットCSSの基本 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007BFF;
    /* メインカラー */
    --accent-color: #FFC107;
    /* アクセントカラー */
    --text-color: #333;
    --bg-color: #F8F9FA;
    --font-base: 'Noto Sans JP', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --transition-duration: 0.5s;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    background-color: white;
    line-height: 1.6;
    /* 遷移アニメーション設定 */
    transition: background-color var(--transition-duration) ease;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* === ヘッダー/ナビゲーション === */
header {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* === メインコンテンツエリア (遷移アニメーションのターゲット) === */
#main-content {
    min-height: calc(100vh - 150px);
    /* フッターを考慮した最小高さ */
    transition: opacity var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;
}

/* ページ離脱時のアニメーション */
.fade-out {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    pointer-events: none;
    /* アニメーション中はクリックを無効化 */
}

/* === ヒーローセクション === */
.section-hero {
    display: flex;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    align-items: center;
    gap: 40px;
}

.hero-text-container {
    flex: 2;
}

.hero-image-placeholder {
    background-image: url('../pic/top.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 1;
    background-color: #eee;
    /* 仮のプレースホルダー */
    min-height: 300px;
    border-radius: 8px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight-text {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* 初期ロード時のアニメーション */
.fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 実績概要セクション === */
.section-summary {
    background-color: var(--bg-color);
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 40px;
}

.project-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.project-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    flex: 1;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-description {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* --- projects.html専用スタイル --- */

.page-content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    opacity: 1;
    /* 初期状態 */
    transition: opacity var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* ナビゲーション - 現在地表示 */
.nav-link.current-page,
.nav-link.is-active {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

/* カテゴリタイトル */
.category-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 5px;
    margin-top: 50px;
    margin-bottom: 30px;
}

.category-note {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
}

/* プロジェクトアイテム */
.project-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.project-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.project-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.project-desc {
    margin-bottom: 15px;
}

.project-tech {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.detail-link {
    font-weight: 600;
}

/* レスポンシブ対応 (モバイル向け) */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .project-item {
        padding: 15px;
    }
}

/* --- about.html専用スタイル --- */

.about-section {
    padding: 30px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.about-section:last-of-type {
    border-bottom: none;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* === プロフィール === */
.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.profile-image-container {
    flex-shrink: 0;
    width: 200px;
}

.profile-image-placeholder {
    width: 200px;
    height: 200px;
    background-image: url('../pic/about.png');
    background-size: cover;       /* 画像が枠いっぱいに広がるように */
    background-position: center;  /* 画像の中央を表示 */
    background-repeat: no-repeat; /* 画像を繰り返さない */
    background-color: #ddd;
    border-radius: 50%;
    /* 丸い画像 */
    border: 5px solid var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.profile-text {
    flex-grow: 1;
}

.profile-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* === 学業の背景 === */
.academic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.academic-item {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 6px;
    border-top: 4px solid var(--primary-color);
}

.academic-item h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 10px;
}

/* === 今後の展望 === */
.outlook-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.cta-links {
    display: flex;
    gap: 15px;
}

.secondary-cta {
    background-color: #6c757d;
    color: white;
}

.secondary-cta:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image-container {
        margin-bottom: 20px;
    }

    .academic-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        font-size: 1.5rem;
    }
}

/* --- contact.html専用スタイル --- */

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding-top: 20px;
}

.contact-form-section,
.contact-info-section {
    padding: 20px;
    border-radius: 8px;
    background-color: var(--bg-color);
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 25px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button.cta-button {
    width: 100%;
}

/* 連絡先情報 */
.info-group {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #ccc;
}

.info-group:last-child {
    border-bottom: none;
}

.info-group h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.info-link {
    font-weight: 600;
    word-break: break-all;
}

.note {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 3px;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* --- project-detail.html専用スタイル --- */

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.detail-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

/* プロジェクトのハイライトボックス */
.highlight-box {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 5px solid var(--accent-color);
}

.highlight-box h3 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.tech-stack-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.tech-stack-list li {
    font-size: 1rem;
}

/* プロジェクト詳細セクション */
.detail-section {
    margin-bottom: 50px;
}

.detail-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.system-design-point {
    background-color: #f7f7ff;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.system-design-point h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.point-list {
    list-style-type: '→ ';
    padding-left: 20px;
}

.point-list li {
    margin-bottom: 8px;
}


/* 機能一覧グリッド */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.feature-item {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
    border-bottom: 2px dotted var(--primary-color);
    padding-bottom: 5px;
}

.feature-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .detail-title {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* === フッター === */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #eee;
}

/* --- skills.html専用スタイル --- */
.skills-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.skill-item {
    background-color: #F8F9FA;
    padding: 25px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.skill-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.skill-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.skills-cta {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.skills-cta p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}


/* About ページ - 資格 */
.qualifications-section {
    padding-bottom: 20px;
}

.qualifications-list {
    list-style-type: none;
    padding-left: 0;
}

.qualifications-list li {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
    /* 項目間のマージンを調整 */
}

/* 資格名のスタイル */
.qualifications-list li strong {
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    font-weight: 600;
    display: block;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* 認定者情報のスタイル */
.qual-issuer {
    display: block;
    font-size: 0.95rem;
    padding-left: 1.5em;
    color: #333;
    line-height: 1.7;
}

#thank-you-message {
    display: none;
    padding: 2em;
    background-color: #f4f4f4;
    border-radius: 8px;
    text-align: center;
}

#thank-you-message h3 {
    margin-top: 0;
    color: #2c3e50;
}
