/* =====================================
   GLOBAL STYLES
===================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
  box-sizing: border-box;
}

html, body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  height: 100%;
}

/* =====================================
   BACKGROUND（背景）
===================================== */
body {
  position: relative;
  background-color: #fff;
  overflow-x: hidden;
}

/* 背景画像は index.html（homeクラス）専用 */
body.home {
  background-image: url("../img/background-image.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

/* 半透明レイヤー（index.html専用） */
body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: -10;
}

/* =====================================
   HEADER
===================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}


.custom-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo-area img {
  max-width: 420px;
  height: auto;
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  margin: 0;
  padding: 0;
}

.navbar nav a {
  color: #000;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 8px 0;
  transition: 0.3s;
}

.navbar nav a:hover {
  border-bottom: 2px solid #000;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #000;
}

/* =====================================
   RESPONSIVE（スマホ対応）
===================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 24px; /* ← 内側余白を確保 */
  }

  .logo-area img {
    max-width: 200px; /* ← ロゴを小さく */
    height: auto;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: 12px; /* ← ロゴとの間に余白 */
  }

  .navbar nav {
    position: absolute;
    top: 70px; /* ← ヘッダーの高さ分下げる */
    right: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 220px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

  .navbar nav.active {
    display: block;
  }

  .navbar nav ul {
    flex-direction: column;
    padding: 10px 0;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .custom-navbar {
    padding: 12px 24px;
  }

  .custom-navbar nav {
    position: absolute;
    top: 70px;
    right: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 220px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

  .custom-navbar nav.active {
    display: block;
  }

  .custom-navbar nav ul {
    flex-direction: column;
    padding: 10px 0;
    gap: 10px;
  }
}

/* =====================================
   MAIN
===================================== */
main {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  margin-bottom: 60px;
}

main h1 {
  position: relative;
  font-size: 1.8rem;
  color: #222;
  margin: 60px auto 30px;
  padding-left: 20px;
  border-left: 10px solid #111;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* =====================================
   HERO
===================================== */
.hero {
  text-align: center;
  padding: 30px 20px;
  color: #111;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  color: #444;
}

/* =====================================
   LATEST INFO
===================================== */
.latest-info {
  background: #fff;
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.latest-info h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 40px;
  color: #111;
}

.info-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background: #f3f3f3;
}

.info-text {
  flex: 1;
  padding-right: 20px;
  min-width: 250px;
}

.info-text h3 {
  font-size: 1.3rem;
  color: #111;
  margin-bottom: 6px;
}

.info-thumb {
  flex-shrink: 0;
  width: 120px;
}

.info-thumb img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.info-box:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .info-box {
    flex-direction: column;
    text-align: center;
  }
  .info-text {
    padding-right: 0;
    margin-bottom: 15px;
  }
}

/* =====================================
   FOOTER
===================================== */
footer {
  padding: 50px 20px; /* ← 上下余白を確保 */
  background-color: rgba(255,255,255,0.95);
  text-align: center;
  border-top: 1px solid #e5e5e5;
  backdrop-filter: blur(6px);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 15px;
}

.social-icons a {
  font-size: 1.8rem;
  color: #000;
  transition: opacity 0.3s ease;
}

.social-icons a:hover {
  opacity: 0.6;
}

footer p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* =====================================
   FORM
===================================== */
form label {
  color: #333;
}

form .form-control,
form .form-select {
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form .form-control:focus,
form .form-select:focus {
  border-color: #000;
  box-shadow: 0 0 0 0.15rem rgba(0, 0, 0, 0.1);
}

.btn-dark {
  background-color: #000;
  border: none;
}

.btn-dark:hover {
  background-color: #333;
}

/* =====================================
   INSTRUCTOR CARD（講師紹介）
===================================== */
.instructor-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.instructor-img-wrap {
  width: 180px;
  height: 180px;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid #eee;
}

.instructor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.instructor-card:hover .instructor-img {
  transform: scale(1.05);
}

.instructor-card .card-body {
  padding: 20px 25px 30px;
}

.instructor-card .card-title {
  font-weight: 600;
  font-size: 1.2rem;
  color: #111;
}

.instructor-card .text-muted {
  color: #666 !important;
  font-size: 0.95rem;
}

/* =====================================
   INDEX MAIN 背景（トップページ専用）
===================================== */
.home-main {
  background-color: rgba(255, 255, 255, 0.9); /* 半透明でもOK、完全白なら1.0 */
  border-radius: 12px;
  padding: 60px 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  max-width: 1100px;
  margin: 40px auto;
}

/* =====================================
   SMARTPHONE ADJUSTMENTS（768px以下）
===================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 24px; /* ← 余白確保 */
  }

  .logo-area img {
    max-width: 200px; /* ← ロゴをやや小さく */
    height: auto;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: 12px; /* ← ロゴとの間に余白 */
  }

  /* ナビメニュー（ドロップダウン） */
  .navbar nav {
    position: absolute;
    top: 70px;
    right: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 220px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

  .navbar nav.active {
    display: block;
  }

  .navbar nav ul {
    flex-direction: column;
    padding: 10px 0;
    gap: 10px;
  }
}


/* ===== Event Cards ===== */
.event-card {
  border-radius: 16px;
  background: #fff;
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.event-card .card-title i {
  color: #555;
}

.event-card .card-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
}

.event-card .card-footer img {
  transition: transform 0.3s ease;
}

.event-card .card-footer a:hover img {
  transform: scale(1.05);
}