/* 
 * mazi-studio - Personal Website
 * Theme: IT-focused with adventure game elements (Zelda-inspired)
 */

/* メインスタイルシート - 分割されたスタイルをインポート */

/* 基本スタイル */
@import url('sections/base.css');

/* ヘッダーとフッター */
@import url('sections/header-footer.css');

/* IT／AIの学習探求（Labo）セクション */
@import url('sections/labo.css');

/* プログラム作品（PGM）セクション */
@import url('sections/pgm.css');

/* 活動（Act）セクション */
@import url('sections/act.css');

/* レスポンシブデザイン */
@import url('sections/responsive.css');


/* メインコンテンツ */
main {
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 2rem;
}

.home-content section {
    max-width: var(--container-width);
    margin: 0 auto 1rem;
    padding: 0 10px;
}

.welcome-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.welcome-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.welcome-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* セクションスタイル */
section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.section-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 冒険ボタン - ゼルダ風 */
.adventure-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 0.6rem 1.2rem; /* パディングを減らす */
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem; /* フォントサイズを小さく */
    margin-top: 0.8rem; /* 上マージンを減らす */
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(60, 143, 94, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 193, 7, 0.3); /* 金色のボーダー追加 */
}

.adventure-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.adventure-btn:hover {
    color: var(--light-text);
    box-shadow: 0 6px 20px rgba(60, 143, 94, 0.4);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.adventure-btn:hover::before {
    left: 100%;
}

/* セクション別スタイル */
.about-preview .section-content::before {
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.labo-preview .section-content::before {
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}

.pgm-preview .section-content::before {
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
}

.act-preview .section-content::before {
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
}

/* セクションに空色のグラデーションを追加 */
.section-content {
    background: linear-gradient(to bottom right, #ffffff, #f0f9fc);
}

/* 冒険的な装飾パーティクル */
.adventure-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    .hero {
        height: 50vh;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logo {
        margin-bottom: 1rem;
    }
    
    .footer-menu {
        margin-top: 1rem;
    }
}

/* ===== セクション共通スタイル ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 0px;
}

/* ===== 僕について（About）セクション ===== */
.about-section h1,
.labo-section h1,
.pgm-section h1,
.act-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1.2rem;
}

.about-section h1::after,
.labo-section h1::after,
.pgm-section h1::after,
.act-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.about-intro,
.labo-intro,
.pgm-intro,
.act-intro {
    margin-bottom: 2rem;
}

.about-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.profile-placeholder {
    width: 200px;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    border: 3px solid var(--primary-color);
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.skills-section,
.contact-section {
    margin-top: 3rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    margin-bottom: 1rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-label {
    font-weight: 500;
    margin-right: 0.5rem;
    min-width: 80px;
}

/* ===== IT／AIの学習探求（Labo）セクション ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.ai-icon::before,
.web-icon::before,
.game-icon::before {
    content: '';
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.ai-icon::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5-9h10v2H7z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5-9h10v2H7z"/></svg>');
}

.web-icon::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/></svg>');
}

.game-icon::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4-3c-.83 0-1.5-.67-1.5-1.5S18.67 9 19.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4-3c-.83 0-1.5-.67-1.5-1.5S18.67 9 19.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"/></svg>');
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.category-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.category-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.research-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.research-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.research-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.research-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.research-info {
    flex: 1;
    min-width: 300px;
}

.research-date {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.research-image {
    flex: 0 0 200px;
}

.image-placeholder {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== プログラム作品（PGM）セクション ===== */
.works-filter {
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.filter-btn {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.work-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.work-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-image:hover .work-overlay {
    opacity: 1;
}

.view-details {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.work-image:hover .view-details {
    transform: translateY(0);
}

.work-info {
    padding: 1.5rem;
}

.work-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.work-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: rgba(69, 183, 164, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

/* ===== 活動（Act）セクション ===== */
.activities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.activity-category {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--secondary-color);
    position: relative;
}

.activity-list ul {
    list-style-type: none;
    padding: 0;
}

.activity-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.activity-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .about-intro,
    .research-content {
        flex-direction: column;
    }
    
    .profile-image,
    .research-image {
        margin: 0 auto 1.5rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .activities-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }
    
    .icon-bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0;
        background-color: var(--primary-color);
        transition: all 0.3s ease;
    }
    
    .main-nav .menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--header-bg);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .main-nav .menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .main-nav .menu li {
        margin: 0;
        text-align: center;
        padding: 0.8rem 0;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-text {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-menu li {
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 300px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .section-content {
        padding: 1.5rem;
    }
}
