:root {
    --primary-color: #003366;
    --secondary-color: #007BFF;
    --accent-color: #FFC107;
    --text-color: #333333;
    --bg-color: #F8F9FA;
    --white-color: #FFFFFF;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --ikebukuro-color: #FFC107;
    --meguro-color: #00a0e9;
    --kashiwanoha-color: #84cc16;
    --mita-color: #65BABC;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    margin: 0;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(2rem, 5vw, 2.8rem);
}

section {
    padding: 100px 0;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 100px;
    width: auto;
  }

/* Hero */

.hero {
    position: relative;
    background-image: url(../img/beyondia_top_header.png);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 120px 0;
    min-height: 700px;
    color: #fff;
    text-align: center;
  }

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(125, 121, 118, 0.38);
    z-index: 1;
  }
  
.hero .container {
    position: relative;
    z-index: 2;
  }


.hero h1 {
    font-size: clamp(1.3rem, 6vw, 4rem);
    margin-bottom: 20px;
    color: var(--white-color);
    font-weight: 700;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Philosophy */
.philosophy {
    background-color: #EDF0F5;
}

.section-title {
    text-align: center;
    padding: 4rem 1rem;
    background-color: #EDF0F5;
  }
  
.en-title {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    color: #165494;
    margin-bottom: 0.5rem;
  }
  
.jp-subtitle {
    font-size: 1.25rem;
    color: #333;
    font-weight: 600;
  }

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.philosophy-card {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.philosophy-card h3 {
    font-size: 1.5rem;
    color: #333333;
    margin-bottom: 15px;
}

.philosophy-card {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-card p {
    font-size: px;
    line-height: 1.8;
    letter-spacing: 0.05em;
}  
  
.en-tag {
    font-family: 'Poppins', cursive;
    font-weight: 600;
    font-size: 1.5rem;
    color: #1E5A9f;
    text-align: left;
    align-self: flex-start;
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    font-family: 'Pacifico', cursive;
  }
  
.en-tag::before {
    content: "";
    position: absolute;
    background-color: #e7d3bb;
    width: 60px;
    height: 60px;
    top: -5px;
    left: -10px;
    z-index: -1;
    border-radius: 2px;
  }



/* Schools */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
  }

.school-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    background-color: var(--white-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.school-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.school-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.school-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

.school-card-content p {
    margin: 0 0 25px 0;
    flex-grow: 1;
    color: #555;
}

.school-logo-wrapper {
    max-width: 5000px;
    margin: 0 auto 1rem;
}
  
.school-logo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.schools-title{
    margin-bottom: 100px;
}

/* Button */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-ikebukuro {
    background: linear-gradient(12deg, var(--ikebukuro-color), #f5d619);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
    color: var(--primary-color);
}
.btn-ikebukuro:hover {
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.5);
}

.btn-meguro {
    background: linear-gradient(45deg, var(--meguro-color), #009fe8);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
    color: var(--white-color);
}
.btn-meguro:hover {
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.5);
}

.btn-kashiwanoha {
    background: linear-gradient(45deg, var(--kashiwanoha-color), #90b954);
    box-shadow: 0 4px 10px rgba(132, 204, 22, 0.4);
    color: var(--white-color);
}
.btn-kashiwanoha:hover {
    box-shadow: 0 6px 15px rgba(132, 204, 22, 0.5);
}

.btn-mita {
    background: linear-gradient(45deg, var(--mita-color), #66bbbd);
    box-shadow: 0 4px 10px rgba(31, 201, 204, 0.4);
    color: var(--white-color);
}
.btn-mita:hover {
    box-shadow: 0 6px 15px rgba(31, 201, 204, 0.4);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}


/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    .header {
        padding: 10px 0;
    }

    .logo img {
        height: 75px;
        margin-top: 10px;
      }
/* Responsive_Hero */
    .hero {
        background-position: center top;
        padding: 80px 0;
        min-height: 400px;
      }
    
      .hero .container {
        padding: 40px 20px;
      }
    
      .hero h1 {
        font-size: 1.8rem;
      }
    
      .hero p {
        font-size: 1rem;
      }    
}