/* テンプレート28: ディープブルー系グラデーション - 企業サイト風 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

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

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

/* ヘッダー */
.site-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    box-shadow: 0 4px 20px rgba(26, 35, 126, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    padding: 20px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

.global-nav a {
    display: block;
    padding: 22px 16px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.global-nav a:hover,
.global-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-bottom-color: #7986cb;
}

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

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

.content-box {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 16px;
    padding: 60px 70px;
    box-shadow: 0 10px 40px rgba(26, 35, 126, 0.15);
    border-top: 5px solid #3949ab;
}

.content-box h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #c5cae9;
}

.single-image {
    text-align: center;
    margin: 35px 0;
}

.single-image img {
    max-width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.2);
}

.text-section {
    margin-bottom: 35px;
}

.text-section:last-child {
    margin-bottom: 0;
}

.text-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #283593;
    margin-bottom: 18px;
    padding: 12px 20px;
    background: linear-gradient(90deg, #e8eaf6 0%, transparent 100%);
    border-left: 4px solid #3949ab;
    border-radius: 0 8px 8px 0;
}

.text-section p {
    margin-bottom: 18px;
    color: #37474f;
}

/* フッター */
.site-footer {
    background: linear-gradient(135deg, #1a237e 0%, #0d1442 100%);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 40px 30px;
}

.site-footer p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

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

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

.sitemap-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #3949ab;
    font-size: 0.7rem;
}

.sitemap-list a {
    color: #283593;
    text-decoration: none;
    transition: color 0.3s;
}

.sitemap-list a:hover {
    color: #7986cb;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .logo {
        padding: 10px 0;
    }
    
    .global-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .global-nav a {
        padding: 12px 10px;
        font-size: 0.8rem;
    }
    
    .content-box {
        padding: 40px 28px;
    }
    
    .content-box h1 {
        font-size: 1.6rem;
    }
}

/* ========================================
   アニメーション追加
======================================== */

/* ヘッダースクロール変化 */
.site-header {
    transition: all 0.4s ease;
}

.site-header.scrolled {
    padding: 0;
    box-shadow: 0 4px 30px rgba(26, 35, 126, 0.5);
}

.site-header.scrolled .logo {
    font-size: 1.2rem;
}

.site-header.scrolled .global-nav a {
    padding: 18px 14px;
}

/* フェードイン */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.2s; }
.fade-in.delay-2 { transition-delay: 0.4s; }

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

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

.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: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a237e 0%, #283593 100%);
    padding: 100px 30px 40px;
    transition: right 0.4s ease;
    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);
    transition: all 0.3s;
}

.mobile-nav a:hover { padding-left: 10px; color: #fff; }

body.menu-open { overflow: hidden; }

/* トップへ戻るボタン */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3949ab 0%, #1a237e 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(26, 35, 126, 0.4);
    transition: all 0.3s;
    z-index: 998;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 35, 126, 0.6);
}

/* アコーディオン */
.accordion { margin: 30px 0; }

.accordion-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 3px 15px rgba(26, 35, 126, 0.08);
    overflow: hidden;
    border-left: 4px solid #3949ab;
}

.accordion-header {
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #1a237e;
    transition: all 0.3s;
}

.accordion-header:hover { background: #e8eaf6; }

.accordion-icon {
    width: 18px;
    height: 18px;
    position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: #3949ab;
    transition: all 0.3s;
}

.accordion-icon::before { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }
.accordion-icon::after { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }

.accordion-item.active .accordion-icon::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }

.accordion-content {
    display: none;
    padding: 0 22px 18px;
    color: #555;
}

/* ホバーエフェクト */
.global-nav a.hover-effect {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .global-nav { display: none; }
    .hamburger { display: block; }
    .mobile-nav { display: block; }
}
