/* ==========================================================================
   基本スタイル - 中学受験サイト（CodeCampKIDS風リデザイン）
   ========================================================================== */

/* カラー変数 - 明るく親しみやすい配色 */
:root {
    --main-color: #4A90E2;        /* 明るいブルー */
    --sub-color: #5CB85C;         /* フレッシュグリーン */
    --accent-color: #FF9800;      /* 温かみのあるオレンジ */
    --bg-color: #FFFFFF;
    --text-color: #333333;
    --light-gray: #F8F9FA;
    --border-gray: #E9ECEF;
    --purple: #9C27B0;            /* アクセント用パープル */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", 
                 "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    overflow-x: hidden;
}

/* 画像 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}
.container.hero {
    max-width: 100%;
}
/* ヘッダー */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.psite-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}
.site-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
        background: #0f2950;
}

.site-title a {
/*    color: var(--main-color); */
color:#fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.psite-title a {
/*    color: var(--main-color); */
color:#0f2950;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--sub-color);
}

/* ハンバーガーメニュー */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--main-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-11.5px) rotate(-45deg);
}

/* ナビゲーション */
#nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    padding-top: 100px;
}

#nav.active {
    right: 0;
}

#nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#nav li {
    border-bottom: 1px solid var(--border-gray);
}

#nav a {
    display: block;
    padding: 20px 30px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

#nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--main-color), var(--sub-color));
    opacity: 0.1;
    transition: width 0.3s ease;
    z-index: -1;
}

#nav a:hover::before {
    width: 100%;
}

#nav a:hover {
    color: var(--main-color);
    padding-left: 40px;
}

#nav a.active {
    color: var(--main-color);
    background-color: rgba(74, 144, 226, 0.08);
    border-left: 5px solid var(--main-color);
}

/* オーバーレイ */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* メインコンテンツ */
main {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* 見出しスタイル */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    line-height: 1.4;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}


h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--main-color);
}

/* リンクスタイル */
a {
    color: var(--main-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--sub-color);
}

/* ヒーローセクション */
.hero-content {
    position: relative;
    height: 500px;
    display: block;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
}

.top-page1 {
    background-image: url(../images/top1hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.top-page1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}
.hero-page0 {
    background-image: url(../images/pillar0hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-page0::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}
.hero-page1 {
    background-image: url(../images/pillar1hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-page1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}
.hero-page2 {
    background-image: url(../images/pillar2hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-page2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}
.hero-page3 {
    background-image: url(../images/pillar3hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-page3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}
.hero-page4 {
    background-image: url(../images/pillar4hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-page4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}
.hero-page5 {
    background-image: url(../images/pillar5hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-page5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}
.hero-page6 {
    background-image: url(../images/pillar6hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-page6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}
.hero-page7 {
    background-image: url(../images/pillar7hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-page7::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}
.hero-page8 {
    background-image: url(../images/pillar8hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-page8::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}
.hero-page9 {
    background-image: url(../images/pillar9hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-page9::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}
.hero-page10 {
    background-image: url(../images/pillar10hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-page10::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}
.hero-page11 {
    background-image: url(../images/pillar11hero.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-page11::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 /*   background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(92, 184, 92, 0.7)); */
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--main-color), var(--sub-color));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color), #FF6B6B);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* フッター */
footer {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
}

footer a {
    color: var(--accent-color);
}

footer a:hover {
    color: white;
}

/* 中学受験情報コンテナ */
.cj-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(92, 184, 92, 0.9));
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cj-info-left {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
}

.cj-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    background-image: url(../images/testimage.jpg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cj-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.cj-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cj-name {
    color: white;
    font-size: 16px;
    font-weight: 700;
}

.cj-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 13px;
    opacity: 0.95;
}

.cj-location .separator {
    color: rgba(255, 255, 255, 0.7);
}

.cj-label {
    background-color: white;
    color: var(--main-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }

    .site-title {
        font-size: 20px;
    }

    #nav {
        width: 280px;
    }

    .hero-content {
        height: 400px;
    }
}

    body {
    overflow-x: hidden;
    }

@media (max-width: 480px) {
    body {
        font-size: 14px
    }

    .container {
        padding: 0 15px;
    }

    #nav {
        width: 100%;
    }

    main {
        padding: 20px 0;
    }

    .hero-content {
        height: 300px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 14px;
    }

    .cj-info-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


/* パンくずリスト */
.breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    margin-bottom: 20px;
}

.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 10px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 5px;
    }
}
.breadcrumb {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
}



/* ==========================================================================
   ハンバーガーメニュー横線修正（デスクトップでも表示）
   ========================================================================== */

.hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 32px !important;
    height: 26px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 1001 !important;
    position: relative !important;
}

.hamburger span {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #4A90E2 !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11.5px) rotate(45deg) !important;
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-11.5px) rotate(-45deg) !important;
}