/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}


/* Page Container */
.page-container {
    min-height: 100vh;
    background-color: #ffffff;
}

/* Header Styles */
.site-header {
    background: linear-gradient(to right, #ff7426, #f4783a);
    position: relative;
    overflow: hidden;
    min-height: 20vh;
}

.header-background {
    position: absolute;
    inset: 0;
}

.circle-decoration {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.circle-1 {
    top: 2.5rem;
    right: 2.5rem;
    width: 24rem;
    height: 24rem;
}

.circle-2 {
    top: 5rem;
    right: 8rem;
    width: 16rem;
    height: 16rem;
    border-color: rgba(255, 255, 255, 0.1);
}

.main-navigation {
    position: relative;
    z-index: 10;
    padding: 2rem 1.5rem 1rem;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    color: white;
}

.site-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    font-family: 'Roboto', sans-serif;
}

.site-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.nav-menu {
    display: none;
    gap: 3rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    padding: 0.5rem 0;
    font-weight: 600;
    font-size: 1.125rem;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link-active {
    border-bottom: 2px solid white;
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === スライドショーエリア === */
.slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlide 15s infinite;
}

/* 各スライド画像 */
.slide1 {
  background-image: url("<?php echo get_template_directory_uri(); ?>/images/hero/slide1.jpg");
  animation-delay: 0s;
}
.slide2 {
  background-image: url("<?php echo get_template_directory_uri(); ?>/images/hero/slide2.jpg");
  animation-delay: 5s;
}
.slide3 {
  background-image: url("<?php echo get_template_directory_uri(); ?>/images/hero/slide3.jpg");
  animation-delay: 10s;
}

/* フェードアニメーション */
@keyframes fadeSlide {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

/* === オーバーレイ === */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(39, 88, 148, 0.6),
    #ff7426
  );
  z-index: 1;
}

/* === コンテンツ === */
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  width: 100%;
  padding: 2rem;
  text-align: left;
}

.hero-content {
  max-width: 36rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title-accent {
  color: #ffda7a;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.4rem; }
  .hero-description { font-size: 1.1rem; }
}

@media (max-width: 640px) {
  .hero-section { height: 60vh; }
  .hero-title { font-size: 2rem; }
  .hero-description { font-size: 1rem; }
}

/* Search Container */
.search-container {
    margin-bottom: 2rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 3rem;
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 35rem;
}

.search-icon {
    color: #0F335E;
    margin-left: 1.5rem;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 0;
    font-size: 1.25rem;
    color: #0F335E;
    font-weight: 500;
}

.search-input::placeholder {
    color: #0F335E;
    opacity: 0.7;
}

.search-button {
    background: #275894;
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 3rem;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #1e4b7a;
    transform: translateY(-1px);
}

/* Hero Image */
.hero-image {
    display: none;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 25rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.decoration-item {
    position: absolute;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #275894;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.decoration-1 {
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.decoration-2 {
    bottom: 20%;
    left: 10%;
    animation-delay: 1s;
}

.decoration-3 {
    top: 60%;
    right: 5%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}





/* Features Section */
.features-section {
    padding: 4rem 1.5rem;
    background: #f8fafc;
}

.features-container {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}


.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center; /* 横方向中央 */
  align-items: center;     /* 縦方向中央 */
}


.feature-img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #275894;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #666;
    font-size: 0.9rem;
}

/* Courses Gallery Section */

.course-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #050c26;
    margin-bottom: 1rem;

}

.courses-gallery-section {
    padding: 4rem 1.5rem;
}

.courses-container {
    max-width: 80rem;
    margin: 0 auto;
    margin-bottom: 15px;
}


.course-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    min-height: 12rem;
}

.course-image-item.large {
    min-height: 20rem;
}

.course-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-image-item:hover img {
    transform: scale(1.05);
}

.course-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    color: white;
}

.course-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.course-overlay h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.course-image-grid {
  display: grid;
  grid-template-columns: 1fr; /* モバイルでは1列 */
  gap: 1rem;
}

@media (min-width: 640px) {
  .course-image-grid {
    grid-template-columns: repeat(2, 1fr); /* タブレットでは2列 */
  }
}

@media (min-width: 1024px) {
  .course-image-grid {
    grid-template-columns: 2fr 1fr 1fr; /* PCでは 1列目が大きく、右に2列 */
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .course-image-item.large {
    grid-row: span 2; /* 大きいカードを縦に2段分使う */
    min-height: auto; /* 高さは自動に調整 */
  }
}

/* Partnaires Section */
.partnaires-section {
    padding: 2rem 1rem;
    
}

.partnaires-box {
    background: #f8fafc;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    padding: 2rem 1rem;
}


/* Newsletter Section */
.newsletter-section {
    position: relative;
    background: #275894;
    padding: 4rem 1.5rem;
    margin: 4rem 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
}

.newsletter-background {
    position: absolute;
    inset: 0;
}

.newsletter-decorations {
    position: absolute;
    inset: 0;
}

.newsletter-circle-1 {
    top: -5rem;
    left: -5rem;
    width: 15rem;
    height: 15rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.newsletter-circle-2 {
    bottom: -8rem;
    right: -8rem;
    width: 20rem;
    height: 20rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.newsletter-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.newsletter-input {
    padding: 1.5rem;
    border: none;
    border-radius: 3rem;
    font-size: 1.25rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: #acacac;
}

.newsletter-button {
    background: #ff5720;
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 3rem;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.newsletter-button:hover {
    background: #e64a1c;
    transform: translateY(-2px);
}

.newsletter-footer-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

/* Footer */
.site-footer {
    background-color: #ebfff2;
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    color: #606060;
}

.footer-brand .footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #00052e;
    margin-bottom: 1rem;
}

.footer-brand .footer-description {
    line-height: 1.6;
    font-size: 1.2rem;
}

.footer-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00052e;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #606060;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00052e;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid #b7b7b7;
    padding-top: 2rem;
    text-align: center;
    color: #606060;
    font-size: 1.2rem;
}








/* Main Content */
.main-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: space-between;
    
}

.section-indicator {
    width: 0.5rem;
    height: 2rem;
    background-color: #ff7426;
    border-radius: 0.25rem;
}

.section-indicator-blue {
    background-color: #275894;
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #050c26;
}

/* Featured Event */
.featured-event-section {
    margin-bottom: 4rem;
}

.featured-event-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.event-card-layout {
    display: flex;
    flex-direction: column;
}

.event-image-container {
    flex: 1;
}

.event-image {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.event-content {
    flex: 1;
    padding: 2rem;
}

.event-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.event-badge-academic {
    background-color: #dbeafe;
    color: #1e40af;
}

.event-badge-formation {
    background-color: #dcfce7;
    color: #166534;
}

.event-badge-professional {
    background-color: #faf5ff;
    color: #7c3aed;
}

.event-badge-community {
    background-color: #fed7aa;
    color: #ea580c;
}

.event-badge-conference {
    background-color: #fee2e2;
    color: #dc2626;
}

.event-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #050c26;
    margin-bottom: 1rem;
}

.event-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-details {
    margin-bottom: 1.5rem;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.event-icon {
    color: #ff7426;
    width: 1.25rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #ff7426;
    color: white;
}

.btn-primary:hover {
    background-color: #e66218;
}

.btn-outline {
    background-color: transparent;
    color: #ff7426;
    border: 1px solid #ff7426;
    width: 100%;
}

.btn-outline:hover {
    background-color: #ff7426;
    color: white;
}

/* Events Grid */
.all-events-section {
    margin-bottom: 3rem;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.event-card-image {
    position: relative;
}

.event-card-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.event-card-image .event-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
}

.event-card-content {
    padding: 1.5rem;
}

.event-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #050c26;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-description {
    color: #6b7280;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-details {
    margin-bottom: 1rem;
}

.event-card-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.event-card-detail i {
    color: #ff7426;
    width: 1rem;
}

/* Statistics Section */
.statistics-section {
    background-color: #275894;
    border-radius: 1.5rem;
    padding: 3rem;
    color: white;
    margin-bottom: 4rem;
}

.statistics-header {
    text-align: center;
    margin-bottom: 3rem;
}

.statistics-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.statistics-description {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 32rem;
    margin: 0 auto;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

.statistic-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.statistic-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.statistic-label {
    opacity: 0.9;
}

/* mystyle.css または追加CSS */
.wpcf7-submit {
    transition: all 0.3s ease;
}

.wpcf7-submit:hover {
    background-color: #e5671e !important; /* より濃いオレンジ */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }

    .hero-title {
        font-size: 4rem;
    }

    .event-card-layout {
        flex-direction: row;
    }

    .event-image {
        height: 100%;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .statistics-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .statistics-section {
    background-color: #275894;
    border-radius: 1.5rem;
    padding: 3rem;
    color: white;
    margin-bottom: 4rem;
}
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Print Styles */
@media print {
    .nav-menu,
    .btn {
        display: none;
    }
    
    .site-header {
        background: #ff7426 !important;
    }
    
    .statistics-section {
        background: #275894 !important;
    }
}

.bogo-language-switcher a {
    font-size: 16px;
    
}

.bogoflags {
    width: 20px;
}






/* アラビア語表示用のスタイル */
[lang="ar"], [dir="rtl"] {
    font-family: 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', sans-serif;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
}

/* アラビア語フォントの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

.arabic-text {
    font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1em;
    letter-spacing: 0;
}

/* レイアウト調整 */
body:lang(ar) .container,
body:lang(ar) .main-content {
    direction: rtl;
    text-align: right;
}

body:lang(ar) .menu-item {
    margin-right: 0;
    margin-left: 20px;
}

html[lang="ar"] body {
  direction: rtl;
  font-family: 'Noto Naskh Arabic', serif;
}

html[lang="ar"] .nav-menu {
  flex-direction: row-reverse;
}

