/**
 * Hayaoポートフォリオサイト - メインスタイルシート
 * ポップでカラフルなデザイン
 */

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

/* CSS変数（PHPから動的に設定される） */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --background-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f0f0f0;
    --gray-medium: #666;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* 基本スタイル */
body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ヘッダー */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-image {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ナビゲーション */
.main-nav {
    display: flex;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.nav-item.current .nav-link {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.nav-link i {
    font-size: 1.2rem;
}

/* メインコンテンツ */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 180px);
}

/* HOMEページヒーローセクション */
.home-hero {
    position: relative;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.1) 0%, 
        rgba(78, 205, 196, 0.1) 100%);
}

.hero-animation {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-image-wrapper {
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.hero-image {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.primary-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

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

.secondary-button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* 浮遊シェイプ */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float-random 20s infinite ease-in-out;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    top: 70%;
    right: 10%;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    top: 50%;
    left: 5%;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    bottom: 20%;
    right: 30%;
}

.shape-5 {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    top: 20%;
    right: 20%;
}

/* フッター - センタリング強化版 */
.site-footer {
    background: var(--white);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem;
    margin: 0 auto 1rem auto !important;
    width: auto !important;
}

.social-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) rotate(5deg);
}

.social-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* Font Awesome版のSNSアイコンスタイル */
.social-link i {
    font-size: 20px;
    color: white;
}

.social-link.social-instagram {
    background: #E4405F;
    border-radius: 50%;
}

.social-link.social-instagram:hover {
    background: #C13584;
}

.social-link.social-facebook {
    background: #1877F2;
    border-radius: 50%;
}

.social-link.social-facebook:hover {
    background: #166FE5;
}

.social-link.social-twitter {
    background: #1DA1F2;
    border-radius: 50%;
}

.social-link.social-twitter:hover {
    background: #1A91DA;
}

.copyright {
    color: var(--gray-medium);
    font-size: 0.9rem;
    text-align: center !important;
    margin: 0 !important;
}

/* アニメーション */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-random {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(40px, 10px) rotate(270deg);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 1 !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .nav-list {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        max-width: 300px;
    }
    
    .hero-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .shape {
        opacity: 0.2;
    }
    
    .shape-1, .shape-3, .shape-5 {
        width: 50px;
        height: 50px;
    }
    
    .shape-2, .shape-4 {
        width: 80px;
        height: 80px;
    }
    
    /* フッターのレスポンシブ */
    .social-links {
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-top: 70px;
    }
    
    .home-hero {
        height: calc(100vh - 70px);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .hero-button {
        width: 100%;
    }
}