/* テンプレート34: スレートブルー系 - ビジネス風 */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@400;500;600&display=swap');

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

body {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #2c3e50;
    background: linear-gradient(180deg, #ecf0f1 0%, #bdc3c7 50%, #ecf0f1 100%);
    min-height: 100vh;
    padding-top: 70px;
    padding-bottom: 65px;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
    z-index: 1000;
}

.top-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    justify-content: space-between;
    align-items: center;
}

.top-nav .logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    padding: 18px 0;
}

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

.top-nav a {
    display: block;
    padding: 20px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.top-nav a:hover,
.top-nav a.active {
    color: #fff;
    border-bottom-color: #3498db;
}

.main-content {
    padding: 50px 0;
}

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

.content-box {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    padding: 55px 65px;
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.1);
    border-left: 5px solid #3498db;
}

.content-box h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

.text-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #ecf0f1;
}

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

.text-section h2 {
    font-size: 1.3rem;
    color: #34495e;
    margin-bottom: 18px;
    font-weight: 600;
}

.text-section p {
    margin-bottom: 16px;
    color: #5d6d7e;
}

.site-footer {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.site-footer p {
    color: #7f8c8d;
    margin: 0;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    box-shadow: 0 -4px 15px rgba(44, 62, 80, 0.2);
    z-index: 1000;
}

.bottom-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.bottom-nav li {
    flex: 1;
}

.bottom-nav a {
    display: block;
    padding: 16px 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.bottom-nav a:hover {
    color: #fff;
    background: rgba(52, 152, 219, 0.3);
}

.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: #3498db;
}

.sitemap-list a {
    color: #2c3e50;
    text-decoration: none;
}

.sitemap-list a:hover {
    color: #3498db;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
        padding-bottom: 55px;
    }

    .top-nav-inner {
        flex-direction: column;
        padding: 10px 20px;
    }

    .top-nav .logo {
        padding: 8px 0;
    }

    .top-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-nav a {
        padding: 10px 10px;
        font-size: 0.75rem;
    }

    .content-box {
        padding: 35px 25px;
    }

    .bottom-nav a {
        padding: 12px 8px;
        font-size: 0.7rem;
    }
}

/* アニメーション追加 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

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

.top-nav,
.bottom-nav {
    transition: all 0.3s ease;
}

.top-nav.compact {
    padding: 0;
}

.top-nav.compact .logo {
    font-size: 1rem;
}

.bottom-nav.compact {
    padding: 0;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db 0%, #2c3e50 100%);
    z-index: 1001;
    width: 0;
    transition: width 0.1s;
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
    transition: all 0.3s;
    z-index: 998;
}

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