
body, h1, h2, h3, p, section {
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  line-height: 1.8;
  color: #222;
}


.hero {
  margin-top: 60px;
}

.hero img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  animation: heroFade 1.5s ease-out forwards;
}

@keyframes heroFade {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}


.full {
  width: 100%;
  padding: 40px 40px;
  box-sizing: border-box;
}


.section-title {
  font-size: 1.6rem;
  border-bottom: 3px solid #1e88e5;
  padding: 0 0 8px 20px;
  margin: 30px 0 15px;
}

.lead {
  max-width: 900px;
}


.card {
  display: flex;
  gap: 20px;
}

.card img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.card h3 {
  margin: 0 0 5px;
  color: #1e88e5;
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card-grid .section-title {
  grid-column: 1 / -1;
}


.image {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 20px 0;
}


.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #1e88e5;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.8;
}


.intro-box {
  background: #f5f7fa;
  padding: 40px 20px;
}

.intro-inner {
  max-width: 1100px;
  margin: 40px auto 0;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  display: flex;
  align-items: stretch;
  gap: 60px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0;
  animation: boxFadeUp 1.2s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes boxFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}


.intro-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro-left .jp {
  font-size: 1.2rem;
  color: #555;
}

.intro-left .en {
  margin-top: 5px;
  font-size: 2.8rem;
  line-height: 1.2;
}


.intro-right {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 14px 28px;
}

.intro-right a {
  color: #1e88e5;
  text-decoration: none;
  font-weight: bold;
  padding-left: 12px;
  border-left: 3px solid #1e88e5;
  transition: opacity 0.2s;
}

.intro-right a:hover {
  opacity: 0.7;
}


.intro-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-center img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  border-radius: 18px;
}


.apply-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.apply-item {
  background: #f5f7fa;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.apply-date {
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 1rem;
}


.timetable-row {
  justify-content: center; 
}


.timetable-row img {
  width: 100%;
  max-width: 320px; 
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.timetable-row.top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 25px;
  justify-items: center; 
}


.timetable-row.bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
  justify-items: center; 
}



@media (max-width: 900px) {
  .apply-list { grid-template-columns: repeat(2, 1fr); }
  .timetable-row.top,
  .timetable-row.bottom { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .intro-inner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .intro-right { grid-template-columns: 1fr; }

  .card { flex-direction: column; }

  .card img {
    width: 100%;
    height: 180px;
  }

  .card-grid { grid-template-columns: 1fr; }

  .full { padding: 30px 20px; }

  .intro-center img { max-height: 260px; }
}

@media (max-width: 500px) {
  .apply-list { grid-template-columns: 1fr; }
  .timetable-row.top,
  .timetable-row.bottom { grid-template-columns: 1fr; }
}

.calendar-section .image {
  max-width: 500px;
  margin: 20px auto;
  display: block;
}
