/*
Theme Name: Portfolio Theme
Theme URI: 
Author: 
Author URI: 
Description: シンプルでモダンなポートフォリオ用WordPressテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portfolio-theme
*/

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ヘッダー */
.site-header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* メニュー */
.nav-menu-container {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #007bff;
}

/* メニュートグルボタン */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero-content.visible h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    color: #666;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.hero-content.visible p {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s, background 0.3s ease;
}

.hero-content.visible .cta-button {
    opacity: 1;
    transform: translateY(0);
}

.cta-button:hover {
    background: #0056b3;
}

/* 自己紹介セクション */
.about {
    padding: 5rem 1rem;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text {
    padding: 2rem;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 作品セクション */
.works {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.works h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

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

.work-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.work-item img {
    width: 100%;
    height: auto;
    display: block;
}

.work-item h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
}

.work-item p {
    padding: 0 1rem 1rem;
    color: #666;
}

/* 連絡先セクション */
.contact {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.contact-item i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.contact-item p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #0056b3;
}

.contact-item span {
    font-size: 1.1rem;
    color: #333;
}

/* 感謝のメッセージ */
.thanks-message {
    text-align: center;
    padding: 4rem 1rem;
    background: #f8f9fa;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.thanks-message.visible {
    opacity: 0.8;
    visibility: visible;
}

.thanks-message p {
    font-size: 1.5rem;
    color: #333;
    font-weight: 500;
}

/* フッター */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}

/* ページトップボタン */
.page-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.page-top:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    transform: translateY(-2px);
}

.page-top.visible {
    opacity: 0.8;
    visibility: visible;
}

.page-top.visible:hover {
    opacity: 1;
}

/* モバイルメニュー */
@media (max-width: 768px) {
    .nav-menu-container {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
    }

    .nav-menu-container.is-active {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .nav-menu li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
        width: 100%;
        text-align: center;
    }

    .nav-menu-container.is-active .nav-menu li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
        display: block;
        text-decoration: none;
        color: #333;
        font-weight: 500;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
    }

    .menu-toggle-line {
        display: block;
        width: 25px;
        height: 2px;
        background: #333;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .menu-toggle.is-active .menu-toggle-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.is-active .menu-toggle-line:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .menu-toggle-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .page-top {
        right: 15px;
        bottom: 15px;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}