/*
Theme Name: Panolabo Modern
Description: WordPress臭さを排除したモダンなテーマ。AI時代の新しいシステム会社のサイトデモとして作成。
Author: Panolabo LLC
Version: 1.0.0
*/

/* リセット & ベース */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Google Fontsの読み込みはheader.phpで行う */
body {
    font-family: "Noto Sans JP", "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.8;
    color: #333;
    background: #fff;
    font-weight: 400;
    letter-spacing: 0.05em;
    font-feature-settings: "palt" 1;
    overflow-x: hidden;
}

/* 常に動く背景要素 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(78, 205, 196, 0.02) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wave {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* モダンなスタイル */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", "Noto Sans JP", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    line-height: 1.3;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

/* メッセージセクション */
.message-section {
    padding: 5rem 0;
}

.message-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    margin-bottom: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.message-card:hover::before {
    left: 100%;
}

.message-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4);
}

.message-card h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 500;
    line-height: 1.5;
    font-family: "Noto Sans JP", sans-serif;
}

.message-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.message-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin: 1.5rem 0 2rem 0;
}

.message-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.message-button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* プロダクトセクション */
.products-section {
    padding: 5rem 0;
    background: #f8fafc;
}

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

.product-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    background-clip: padding-box;
    animation: float 8s ease-in-out infinite;
}

.product-card:nth-child(2n) {
    animation-delay: 2s;
}

.product-card:nth-child(3n) {
    animation-delay: 4s;
}

.product-card:nth-child(4n) {
    animation-delay: 6s;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    z-index: -1;
    transform: scale(1.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px) rotateY(5deg) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    border-color: transparent;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: "Noto Sans JP", sans-serif;
}

.product-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
}

.product-card strong {
    font-weight: 600;
    color: #333;
}

/* ヘッダー & ハンバーガーメニュー */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.3));
    animation-play-state: paused;
}

.logo-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-family: "Noto Sans JP", sans-serif;
    white-space: nowrap;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-tagline {
    opacity: 1;
}

.desktop-menu {
    display: none;
}

.desktop-menu .nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
}

.desktop-menu .nav-menu li {
    position: relative;
}

.desktop-menu .nav-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.desktop-menu .nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.desktop-menu .nav-menu a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.desktop-menu .nav-menu a:hover::before {
    left: 100%;
}

/* ハンバーガーボタン */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 50px;
    height: 40px;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hamburger span {
    width: 100%;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* モバイルメニューオーバーレイ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    backdrop-filter: blur(20px);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 2rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.close-menu {
    font-size: 2rem;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.mobile-menu {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 2rem;
}

.mobile-nav-menu li {
    margin-bottom: 0.8rem;
}

.mobile-nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.mobile-nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.mobile-nav-menu a:hover::before {
    left: 100%;
}

.mobile-nav-menu a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(15px) scale(1.02);
}

.menu-icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    display: inline-block;
    animation: pulse 3s ease-in-out infinite;
}

.mobile-nav-menu li:nth-child(1) .menu-icon { animation-delay: 0s; }
.mobile-nav-menu li:nth-child(2) .menu-icon { animation-delay: 0.5s; }
.mobile-nav-menu li:nth-child(3) .menu-icon { animation-delay: 1s; }
.mobile-nav-menu li:nth-child(4) .menu-icon { animation-delay: 1.5s; }
.mobile-nav-menu li:nth-child(5) .menu-icon { animation-delay: 2s; }

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ */
/* PCでもハンバーガーメニューを使用 */
.hamburger {
    display: flex;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .message-card {
        padding: 2rem;
    }
    
    .message-card h2 {
        font-size: 2rem;
    }
    
    .logo-tagline {
        display: none;
    }
}

@media (max-width: 1024px) {
    .logo-tagline {
        font-size: 0.8rem;
    }
    
    /* ヒーローカードのレスポンシブ対応 */
    .hero .hero-content > div:last-child {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 768px) {
    /* ヒーローカードをモバイルで1列に */
    .hero .hero-content > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* ナビゲーションメニューのスタイル */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ドロップダウンメニュー */
.menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    min-width: 200px;
    z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    list-style: none;
}

.sub-menu a {
    color: #333 !important;
    padding: 0.8rem 1.2rem;
    display: block;
    border-radius: 0;
    font-size: 0.9rem;
}

.sub-menu a:hover {
    background: #f8fafc;
    color: #667eea !important;
    transform: none;
}

/* モバイルメニューのスタイル */
.mobile-nav-menu {
    list-style: none;
    padding: 0;
}

.mobile-nav-menu li {
    margin-bottom: 0.5rem;
}

.mobile-nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-icon {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.menu-section {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.8rem 1.2rem 0.4rem;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0.3rem;
    margin-top: 0.5rem;
}

/* デスクトップメニューの隠し表示（画面サイズによる） */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
}