/* テンプレート38: IT/テック風カード型グリッド */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #1e293b;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    min-height: 100vh;
}

/* ヘッダー（メガメニュー風） */
.site-header {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #075985 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(3, 105, 161, 0.4);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    padding: 18px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

.global-nav > ul > li {
    position: relative;
}

.global-nav > ul > li > a {
    display: block;
    padding: 20px 18px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.global-nav > ul > li > a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ドロップダウン */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.global-nav > ul > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu a:last-child { border-bottom: none; }

.dropdown-menu a:hover {
    background: #f0f9ff;
    color: #0284c7;
    padding-left: 25px;
}

/* ハンバーガー */
.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); top: 10px; }

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #0284c7 0%, #075985 100%);
    padding: 100px 30px;
    transition: right 0.4s;
    z-index: 999;
}

.mobile-nav.open { right: 0; }
.mobile-nav ul { list-style: none; }
.mobile-nav a {
    display: block;
    padding: 15px 0;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
    padding: 80px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

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

/* メインコンテンツ */
.main-content {
    padding: 60px 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0369a1;
    text-align: center;
    margin-bottom: 40px;
}

/* カードグリッド */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(3, 105, 161, 0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(3, 105, 161, 0.2);
}

.card-image {
    height: 180px;
    overflow: hidden;
}

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

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

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    color: #0284c7;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.card-link:hover {
    color: #0369a1;
    transform: translateX(5px);
}

.card-link::after {
    content: ' →';
}

/* テキストセクション */
.content-box {
    background: #fff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(3, 105, 161, 0.08);
    margin-bottom: 40px;
}

.content-box h2 {
    font-size: 1.5rem;
    color: #0369a1;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0ea5e9;
}

.content-box p {
    color: #475569;
    margin-bottom: 15px;
}

/* フッター */
.site-footer {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
    padding: 50px 30px;
    color: rgba(255,255,255,0.8);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.footer-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-nav a:hover { color: #fff; }

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* トップへ戻る */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(3, 105, 161, 0.4);
    transition: all 0.3s;
    z-index: 998;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* サイトマップ */
.sitemap-list {
    list-style: none;
    padding: 0;
}

.sitemap-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.sitemap-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #0284c7;
}

.sitemap-list a {
    color: #0369a1;
    text-decoration: none;
}

.sitemap-list a:hover { color: #0ea5e9; }

/* レスポンシブ */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .global-nav { display: none; }
    .hamburger { display: block; }
    .mobile-nav { display: block; }
    
    .hero-title { font-size: 1.8rem; }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .content-box { padding: 30px 25px; }
    
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
