/* テンプレート29: コーラル＋ピーチ系 - 温かみのある配色 */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700&display=swap');

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

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #5d4037;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e1 50%, #ffecd2 100%);
    min-height: 100vh;
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 左サイドバー */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #ff6b6b 0%, #ee5a5a 50%, #d63031 100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 40px 0;
    box-shadow: 4px 0 25px rgba(255, 107, 107, 0.3);
}

.sidebar-logo {
    text-align: center;
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 25px;
}

.logo-main {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.logo-sub {
    display: block;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-top: 5px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav a {
    display: block;
    padding: 15px 30px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.15);
    border-left-color: #ffeaa7;
    color: #fff;
}

/* メインコンテンツ */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-box {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf8 100%);
    border-radius: 20px;
    padding: 55px 65px;
    box-shadow: 0 10px 40px rgba(214, 48, 49, 0.1);
    border: 2px solid #ffb8b8;
    flex: 1;
}

.content-box h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #d63031;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 3px solid #ff6b6b;
}

/* 画像float */
.content-with-image {
    overflow: hidden;
}

.float-image {
    float: right;
    width: 320px;
    margin: 0 0 25px 35px;
}

.float-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.25);
    border: 3px solid #ffa07a;
}

.text-wrap p,
.text-section p {
    margin-bottom: 18px;
    color: #5d4037;
}

.text-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ee5a5a;
    margin: 30px 0 18px;
    padding-left: 15px;
    border-left: 4px solid #ff6b6b;
}

/* フッター */
.site-footer {
    background: linear-gradient(135deg, #d63031 0%, #b71c1c 100%);
    margin-top: 40px;
    border-radius: 15px;
    padding: 35px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: rgba(255,255,255,0.1);
}

.footer-nav a:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.copyright {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    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: #ff6b6b;
}

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

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

/* レスポンシブ */
@media (max-width: 900px) {
    .float-image {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 25px 0;
    }
    
    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 15px;
    }
    
    .sidebar-nav a {
        padding: 10px 15px;
        font-size: 0.85rem;
        border-left: none;
    }
    
    .layout-wrapper {
        flex-direction: column;
    }
    
    .main-content {
        margin-left: 0;
        padding: 30px 20px;
    }
    
    .content-box {
        padding: 35px 28px;
    }
    
    .float-image {
        float: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 25px;
    }
}

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

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

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

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

/* タブ */
.tabs { margin: 30px 0; }
.tab-btns { display: flex; gap: 10px; margin-bottom: 20px; }
.tab-btn {
    padding: 12px 25px;
    background: #ffb8b8;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    color: #d63031;
    font-weight: 500;
    transition: all 0.3s;
}
.tab-btn.active, .tab-btn:hover {
    background: #d63031;
    color: #fff;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* モバイルメニュー */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 45px;
    height: 45px;
    background: #d63031;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s ease;
    }
    .sidebar.mobile-open { transform: translateX(0); }
    body.sidebar-open { overflow: hidden; }
}
