/* 
 * ポートフォリオサイト スタイルシート
 * デザインコンセプト: 白ベースのモダンな印象に黒に近い紺をメインカラーとした洗練されたデザイン
 */

/* ベース設定 */
:root {
    --primary-color: #0a1c2e;    /* ディープネイビーブルー */
    --secondary-color: #1d1d1f;  /* ほぼブラック */
    --accent-color: #757575;     /* シルバー/ライトグレー */
    --highlight-color: #3498db;  /* 控えめな強調色 - 青 */
    --white: #ffffff;
    --light-gray: #f5f5f7;
    --gray: #d2d2d7;
    --dark-gray: #333333;
    --text-color: #333333;
    --background-color: #ffffff;
    --timeline-color: #eaeaea;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--highlight-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--highlight-color);
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

/* アバウトセクション - 新デザイン */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

/* プロフィールカード */
.profile-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}

.profile-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-content {
    padding: 25px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.profile-title {
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.profile-divider {
    height: 1px;
    background-color: var(--gray);
    margin: 20px 0;
}

.profile-attributes {
    display: flex;
    flex-direction: column;
    margin: 0; /* 余白をリセット */
}

.attribute {
    display: flex;
    align-items: flex-start; /* 上揃えに変更 */
    gap: 12px; /* 間隔を少し調整 */
    margin-bottom: 15px; /* 属性間の余白を追加 */
}

.attribute-icon {
    width: 38px;
    height: 38px;
    background-color: var(--light-gray);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* 微妙な影を追加 */
    margin-top: 2px; /* アイコンの位置を微調整 */
}

.attribute-text {
    display: flex;
    flex-direction: column;
    flex: 1; /* 追加: 親要素の幅いっぱいに広げる */
}

.attribute-label {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.attribute-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    word-break: break-word; /* 追加: 長いテキストが折り返されるようにする */
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--primary-color);
    transition: var(--transition);
    border: 1px solid var(--gray);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* 詳細情報カード */
.detail-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
}

.detail-content {
    padding: 30px;
}

.detail-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.bio-text {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.detail-divider {
    height: 1px;
    background-color: var(--gray);
    margin: 30px 0;
}

/* パーソナリティセクション - 新デザイン */
.personality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.personality-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.personality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.personality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--highlight-color), var(--primary-color));
    z-index: 2;
}

.personality-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--gray);
}

.personality-icon {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.personality-subtitle {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.personality-content {
    padding: 25px;
}

/* MBTI スタイル */
.mbti-type {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.mbti-letters {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 10px;
}

.mbti-title {
    font-size: 1rem;
    color: var(--accent-color);
    background-color: var(--light-gray);
    padding: 3px 10px;
    border-radius: 20px;
}

.mbti-traits {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    padding: 5px;
    background: linear-gradient(to right, rgba(255,255,255,0.5), rgba(245,245,247,0.5));
    border-radius: 10px;
}

.mbti-trait {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.trait-letter {
    font-weight: 700;
    color: var(--primary-color);
    width: 25px;
    text-align: center;
    font-size: 1.1rem;
}

.trait-bar {
    flex: 1;
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    margin: 0 10px;
    overflow: hidden;
}

.trait-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--highlight-color), #74b9ff);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.trait-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.2)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.trait-percent {
    font-size: 0.9rem;
    color: var(--highlight-color);
    font-weight: 700;
    width: 40px;
    text-align: right;
    margin-right: 10px;
}

.trait-name {
    font-size: 0.9rem;
    color: var(--text-color);
    width: 60px;
}

.mbti-animation {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    padding: 10px;
    transition: var(--transition);
}

.mbti-animation:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.mbti-gif {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* ストレングスファインダー スタイル */
.strengths-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strength-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--gray);
}

.strength-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.strength-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    align-self: flex-start;
}

.strength-desc {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* レスポンシブデザイン */
@media screen and (max-width: 992px) {
    .personality-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* レスポンシブデザイン */
@media screen and (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .personality-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 576px) {
    .detail-content {
        padding: 20px;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ヘッダー */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
    padding: 10px 0; /* 15pxから10pxに縮小 */
    transition: var(--transition);
}

#header.scrolled {
    padding: 5px 0; /* 10pxから5pxに縮小 */
    background-color: rgba(10, 28, 46, 0.95); /* 紺色の背景（やや透過）*/
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white); /* 白色に変更 */
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo a img {
    height: 70px; /* 100pxから70pxに縮小 */
    width: auto;
    /* ヘッダーのロゴは元の色のままにする */
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    color: var(--white); /* 白色に変更 */
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white); /* 白色に変更 */
    margin: 5px 0;
    transition: var(--transition);
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
}

/* ヒーローセクションのキャンバス背景 */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,28,46,0.92) 0%, rgba(10,28,46,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero h2 {
    font-size: 2rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 25px;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .lead {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--white);
    line-height: 1.4;
    font-weight: 300;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-message {
    position: relative;
    display: inline-block;
}

.hero-message::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--white);
    opacity: 0.7;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* アバウトセクション */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.personality {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.personality h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.personality-traits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.trait h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.trait p {
    margin-bottom: 5px;
}

.trait ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.trait ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--highlight-color);
    font-size: 1.4rem;
}

.trait span {
    font-weight: 700;
    color: var(--primary-color);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* スキルセクション */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.skills-category {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.skills-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(33.333% - 10px);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 1.5rem;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

/* TypeScriptのカスタムアイコン */
.skill-icon.ts-icon {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background-color: #3178c6; /* TypeScriptの公式カラー */
}

/* フロントエンドのアイコン */
.skill-icon.html-icon {
    color: #fff;
    background-color: #E44D26; /* HTMLの公式カラー */
}

.skill-icon.css-icon {
    color: #fff;
    background-color: #264DE4; /* CSSの公式カラー */
}

.skill-icon.js-icon {
    color: #000;
    background-color: #F7DF1E; /* JavaScriptの公式カラー */
}

.skill-icon.react-icon {
    color: #61DAFB;
    background-color: #20232A; /* Reactの公式カラー */
}

/* バックエンドのアイコン */
.skill-icon.ruby-icon {
    color: #fff;
    background-color: #CC342D; /* Rubyの公式カラー */
}

.skill-icon.python-icon {
    color: #fff;
    background-color: #3776AB; /* Pythonの公式カラー */
}

.skill-icon.node-icon {
    color: #fff;
    background-color: #339933; /* Node.jsの公式カラー */
}

.skill-icon.rails-icon {
    color: #fff;
    background-color: #CC0000; /* Railsの公式カラー */
}

.skill-icon.django-icon {
    color: #fff;
    background-color: #092E20; /* Djangoの公式カラー */
}

/* システム/DevOpsのアイコン */
.skill-icon.aws-icon {
    color: #fff;
    background-color: #232F3E; /* AWSの公式カラー */
}

.skill-icon.gcp-icon {
    color: #fff;
    background-color: #4285F4; /* GCPの公式カラー */
}

.skill-icon.k8s-icon {
    color: #fff;
    background-color: #326CE5; /* Kubernetesの公式カラー */
}

.skill-icon.docker-icon {
    color: #fff;
    background-color: #2496ED; /* Dockerの公式カラー */
}

.skill-icon.cicd-icon {
    color: #fff;
    background-color: #40B4E5; /* CI/CDの一般的なカラー */
}

/* 言語/ツールのアイコン */
.skill-icon.cpp-icon {
    color: #fff;
    background-color: #00599C; /* C++の公式カラー */
}

.skill-icon.gas-icon {
    color: #fff;
    background-color: #0F9D58; /* Google Apps Scriptの公式カラー */
}

.skill-icon.ros-icon {
    color: #fff;
    background-color: #22314E; /* ROSの公式カラー */
}

.skill-item p {
    font-size: 0.9rem;
    text-align: center;
}

/* 資格・認定 */
.certifications {
    margin-top: 50px;
}

.certifications h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.certification-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.certification-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.certification-item:hover {
    transform: translateY(-5px);
}

.certification-logo {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    flex-shrink: 0;
}

.certification-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.certification-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.certification-info p {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* 経験セクション */
.timeline {
    margin-bottom: 50px;
}

.timeline h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.timeline-items {
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--timeline-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-start;
    padding: 20px 0;
    position: relative;
    margin-bottom: 20px;
    width: 50%;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--highlight-color);
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: auto;
    right: -8px;
}

.timeline-date {
    position: absolute;
    left: -200px;
    top: 25px;
    width: 150px;
    text-align: right;
    color: var(--accent-color);
    font-weight: 500;
}

.timeline-item:nth-child(even) .timeline-date {
    left: auto;
    right: -200px;
    text-align: left;
}

.timeline-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-left: 30px;
    transition: var(--transition);
    width: calc(100% - 30px);
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 30px;
}

.timeline-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--accent-color);
}

/* 学歴・職歴のカテゴリ表示 */
.timeline-category {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    color: #fff;
    position: absolute;
    top: -10px;
    left: 15px;
}

/* 学歴項目のスタイル */
.timeline-item.education .timeline-dot {
    background-color: #4CAF50; /* 緑色 */
}

.timeline-item.education .timeline-category {
    background-color: #4CAF50;
}

.timeline-item.education .timeline-content {
    border-left: 3px solid #4CAF50;
}

/* 職歴項目のスタイル */
.timeline-item.work .timeline-dot {
    background-color: #3498db; /* 青色 */
}

.timeline-item.work .timeline-category {
    background-color: #3498db;
}

.timeline-item.work .timeline-content {
    border-left: 3px solid #3498db;
}

/* 実績項目のスタイル */
.timeline-item.achievement .timeline-dot {
    background-color: #f39c12; /* オレンジ色 */
}

.timeline-item.achievement .timeline-category {
    background-color: #f39c12;
}

.timeline-item.achievement .timeline-content {
    border-left: 3px solid #f39c12;
}

.timeline-image {
    margin-top: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
}

/* 実績セクション - 統一カードデザイン */
.achievements-section {
    margin: 50px 0;
}

.achievements-title {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 1.5rem;
    text-align: center;
    position: relative;
}

.achievements-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--highlight-color);
}

/* 統一カードグリッドレイアウト */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* 実績カードスタイル */
.achievement-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* カードメディア領域 */
.achievement-card-media {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.achievement-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.achievement-card:hover .achievement-card-media img {
    transform: scale(1.05);
}

/* 画像なしカードのアイコン表示 */
.achievement-card.no-image .achievement-card-media {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
}

.achievement-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.8rem;
    box-shadow: var(--shadow);
}

/* バッジ表示 */
.achievement-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    color: var(--white);
    background-color: var(--highlight-color);
    z-index: 2;
}

/* カードコンテンツ領域 */
.achievement-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.achievement-date {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.achievement-date i {
    margin-right: 5px;
    color: var(--highlight-color);
}

.achievement-title {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.achievement-description {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.achievement-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 0;
}

.achievement-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.achievement-link:hover {
    color: var(--highlight-color);
}

.achievement-link:hover i {
    transform: translateX(3px);
}

/* レスポンシブデザイン */
@media screen and (max-width: 992px) {
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .achievement-card-media {
        height: 160px;
    }
}

@media screen and (max-width: 576px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-card-media {
        height: 200px;
    }
}

/* プロジェクトセクション */
.project-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-image {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 0;
}

.project-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.project-item:hover .project-image img {
    transform: scale(1.03);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links a i {
    margin-right: 5px;
}

.project-links a:hover {
    color: var(--highlight-color);
}

/* メディアセクション */
.media {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow-x: hidden;
    position: relative;
}

.media::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, rgba(26, 58, 82, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.section-subtitle {
    text-align: center;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: -10px;
    margin-bottom: 40px;
    font-weight: 400;
}

/* フィーチャーコンテンツ */
.featured-media {
    margin-bottom: 50px;
}

.featured-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--highlight-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.featured-thumbnail {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-card:hover .featured-thumbnail img {
    transform: scale(1.05);
}

.featured-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    min-width: 80px;
    height: 80px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--highlight-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.featured-card:hover .featured-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--highlight-color);
    color: var(--white);
}

.featured-play-btn span {
    font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
}

.featured-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.featured-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-info p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.featured-link:hover {
    background: var(--highlight-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* メディアカテゴリータブ */
.media-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    background: var(--white);
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.category-tab .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.category-tab.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* ギャラリー */
.media-gallery-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.media-gallery {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 60px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.media-gallery::-webkit-scrollbar {
    display: none;
}

/* メディアカード */
.media-card {
    flex: 0 0 340px;
    height: 420px;
    perspective: 1000px;
    position: relative;
}

.media-card.hidden {
    display: none;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.media-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
}

.card-back-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-back-content h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.card-back-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.stat i {
    color: var(--highlight-color);
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--highlight-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: center;
}

.card-action:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.3);
}

.card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a52 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-header i {
    font-size: 1.2rem;
}

.media-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-thumbnail {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.media-card:hover .card-thumbnail img {
    transform: scale(1.1);
}

.overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.media-card:hover .overlay-icon {
    background: var(--highlight-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.card-content {
    padding: 20px;
}

.card-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-content p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* カードタイプ別スタイル */
.youtube-card .overlay-icon {
    background: rgba(255, 0, 0, 0.9);
}

.podcast-card .overlay-icon {
    background: rgba(29, 185, 84, 0.9);
}

.presentation-card .overlay-icon {
    background: rgba(100, 65, 165, 0.9);
}

.article-card .overlay-icon {
    background: rgba(41, 98, 255, 0.9);
}

/* ソーシャルメディアカード */
.social-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
}

.social-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon-wrapper i {
    font-size: 2rem;
    color: var(--white);
}

.media-card:hover .social-icon-wrapper {
    transform: scale(1.1);
    background: var(--highlight-color);
}

.note-card .social-icon-wrapper {
    background: #41C9B4;
}

.zenn-card .social-icon-wrapper {
    background: #3EA8FF;
}

.qiita-card .social-icon-wrapper {
    background: #55C500;
}

/* ギャラリーナビゲーション */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev {
    left: 10px;
}

.gallery-nav-next {
    right: 10px;
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-nav:disabled:hover {
    background: var(--white);
    color: inherit;
    transform: translateY(-50%);
}

/* スクロールインジケーター */
.scroll-indicator {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.scroll-track {
    width: 200px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.scroll-thumb {
    height: 100%;
    background: var(--highlight-color);
    border-radius: 2px;
    width: 50px;
    position: absolute;
    left: 0;
    transition: left 0.3s ease;
}

/* リンクプレビュー関連スタイル */
.media-thumbnail.link-preview {
    position: relative;
    /* オーバーレイを追加して外部サイトであることを示す */
}

.media-thumbnail.link-preview::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0) 60%);
    z-index: 2;
}

.media-thumbnail.link-preview::after {
    content: "";
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 3;
    opacity: 0.8;
}

.media-item:hover .media-thumbnail.link-preview::after {
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0.8;
    transition: var(--transition);
    z-index: 3; /* OGPオーバーレイの上に表示 */
}

.media-item:hover .play-icon {
    opacity: 1;
    background-color: var(--highlight-color);
}

.media-info {
    padding: 15px;
}

.media-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.media-info p {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Follow Me セクション */
.follow-me-section {
    margin-top: 60px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.follow-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.follow-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.social-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.social-platform {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-platform:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--highlight-color);
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    margin-right: 16px;
    flex-shrink: 0;
}

.note-platform .platform-icon {
    background: #41C9B4;
}

.zenn-platform .platform-icon {
    background: #3EA8FF;
}

.qiita-platform .platform-icon {
    background: #55C500;
}

.platform-info {
    flex: 1;
    text-align: left;
}

.platform-info h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 600;
}

.platform-info p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.platform-stats {
    display: inline-block;
    background: var(--light-gray);
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.platform-arrow {
    color: var(--accent-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-platform:hover .platform-arrow {
    color: var(--highlight-color);
    transform: translateX(3px);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .social-platforms {
        grid-template-columns: 1fr;
    }
    
    .follow-title {
        font-size: 1.5rem;
    }
    
    .follow-subtitle {
        font-size: 1rem;
    }
}

/* コンタクトセクション */
.contact {
    background-color: var(--light-gray);
}

.contact-lead {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-item i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.social-item:hover {
    color: var(--highlight-color);
    transform: translateY(-5px);
}

/* コンタクトフォーム */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* フッター */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0; /* 30pxから20pxに縮小 */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* 左側のコンテンツ */
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.footer-logo a img {
    height: 35px; /* 50pxから35pxに縮小 */
    width: auto;
    filter: brightness(0) invert(1); /* 画像を白色に変換 */
}

.copyright {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 10px;
}

/* コンタクト部分 */
.footer-contact {
    text-align: right;
}

.footer-contact h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.footer-contact h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--highlight-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--highlight-color);
    transform: translateY(-3px);
}

/* レスポンシブデザイン */
@media screen and (max-width: 1024px) {
    .timeline-date {
        left: -180px;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        right: -180px;
    }
    
    /* フィーチャーコンテンツ */
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .featured-thumbnail {
        height: 300px;
    }
    
    .featured-info {
        padding: 30px;
    }
}

@media screen and (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .timeline-items::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
    }
    
    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
        right: auto;
    }
    
    .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 50px;
        right: auto;
        text-align: left;
        position: relative;
        top: 0;
        margin-bottom: 10px;
        width: auto;
    }
    
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        width: calc(100% - 50px);
    }
    
    /* 学歴・職歴・実績のカテゴリ表示（モバイル対応） */
    .timeline-category {
        top: -10px;
        left: 10px;
    }
    
    .timeline-item.education .timeline-content,
    .timeline-item.work .timeline-content,
    .timeline-item.achievement .timeline-content {
        padding-top: 25px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--primary-color); /* 紺色に変更 */
        flex-direction: column;
        align-items: center;
        padding: 50px 0;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .project-items {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        padding: 15px 15px 0;
    }
    
    .achievement-card-media {
        height: 160px;
    }
    
    /* Media & Publicationsのレスポンシブ対応 */
    .featured-badge {
        top: 16px;
        right: 16px;
        font-size: 0.75rem;
    }
    
    .featured-info h3 {
        font-size: 1.5rem;
    }
    
    .featured-info p {
        font-size: 1rem;
    }
    
    .media-categories {
        gap: 8px;
    }
    
    .category-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .media-card {
        flex: 0 0 280px;
        height: 380px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .skill-item {
        width: calc(50% - 10px);
    }
    
    .certification-items {
        grid-template-columns: 1fr;
    }
    
    .media-categories {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        padding: 10px 10px 0;
    }
    
    .project-content {
        padding: 20px 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
