@import url("/mega-menu.css");
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1e293b;
  background: #f3f5fa;
}

.site-header {
  background: #fff;
  border-top: 4px solid #7f1d1d;
}

.top-bar {
  height: 38px;
  padding: 0 11%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.top-bar a {
  color: #333;
  text-decoration: none;
}

.search-icon {
  font-size: 28px;
  color: #2563eb;
}

.main-nav {
  height: 92px;
  padding: 0 11%;
  display: flex;
  align-items: center;
  gap: 46px;
  border-bottom: 1px solid #e5e7eb;
}

.logo {
  width: 120px;
  height: 80px;
  background: #0f1b7a;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo span {
  font-size: 26px;
}

.main-nav nav {
  display: flex;
  gap: 48px;
}

.main-nav nav a {
  text-decoration: none;
  color: #1e3a5f;
  font-size: 18px;
  font-weight: bold;
}

.main-nav nav a:hover {
  color: #b91c1c;
}

.hero {
  height: 620px;
  position: relative;
  background-image: url("png/miraiNihongo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 42, 0.52);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  text-align: center;
  color: white;
  z-index: 2;
}

.hero h1 {
  font-size: 82px;
  margin: 0;
  letter-spacing: 5px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}

.hero p {
  font-size: 30px;
  font-weight: 600;
  margin: 16px 0 42px;
  color: #f1f5f9;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.read-more {
  display: inline-block;
  min-width: 220px;
  padding: 14px 34px;
  border: 1px solid white;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.25);
}

.slide-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 62px;
  height: 62px;
  border: 2px solid rgba(255,255,255,0.7);
  background: rgba(15, 23, 42, 0.35);
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.slide-btn.left {
  left: 48px;
}

.slide-btn.right {
  right: 48px;
}

.news {
  padding: 70px 10%;
  text-align: center;
}

.news h2,
.contents h2 {
  font-size: 58px;
  margin: 0 0 45px;
  color: #000;
  letter-spacing: 2px;
}

.news h3 {
  font-size: 24px;
  margin: 36px 0 24px;
}

.notice-box {
  background: white;
  text-align: left;
  padding: 28px 50px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.notice-box p {
  font-size: 18px;
  font-weight: bold;
}
.news-list {
  max-width: 1500px;
  margin: 0 auto;
}
.news-row:nth-child(odd) {
  background: #dfe3ee;
}

.news-row:nth-child(even) {
  background: #eef1f7;
}

.bottom {
  margin-top: 42px;
  color: #333;
  border-color: #333;
  background: transparent;
}

.contents {
  padding: 70px 10%;
  background: white;
  text-align: center;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.content-card {
  padding: 34px 24px;
  background: #f8fafc;
  border-top: 5px solid #0f1b7a;
  text-align: left;
}

.content-card h3 {
  color: #0f1b7a;
  font-size: 24px;
}

footer {
  padding: 30px;
  text-align: center;
  background: #0f1b7a;
  color: white;
}
.news-row {
  display: grid;
  grid-template-columns: 190px 180px 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 42px;
  text-align: left;
}
.news-row .date {
  font-size: 18px;
  color: #334155;
}

.news-row .category {
  width: 170px;
  height: 26px;
  border: 1px solid #64748b;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 15px;
  padding: 0;
}

.news-row .text {
  font-size: 18px;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .top-bar {
    padding: 0 20px;
  }

  .main-nav {
    height: auto;
    padding: 20px;
    flex-direction: column;
  }

  .main-nav nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .hero {
    height: 460px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 20px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
}
.support-banner {
  background: #fffdf5;
  padding: 14px 4%;
  border-bottom: 1px solid #fde68a;
}

.support-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 12px 24px;
  border: 1px solid #facc15;
  border-radius: 16px;
  background: #fff7d6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 20px;
  font-weight: 900;
  color: #0f274a;
}

.support-inner .jp {
  color: #0f1b7a;
}

.support-inner .vn {
  color: #dc2626;
}

.support-inner .message {
  font-size: 18px;
}

.hero-new-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.hero-small {
  font-size: 28px;
  font-weight: 900;
  color: #0f274a;
  margin: 0 0 16px;
}

.hero-new h1 {
  font-size: 72px;
  line-height: 1;
  margin: 0 0 24px;
  color: #0f274a;
  letter-spacing: 3px;
  font-weight: 900;
  white-space: nowrap;
}
.teacher-support-box {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 28px;
  border: 3px solid #1d4ed8;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
}

.teacher-support-box span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  white-space: nowrap;
}
.teacher-support-box .fi{
  width: 36px;
  height: 26px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.jp-label {
  color: #0f1b7a;
}

.vn-label {
  color: #dc2626;
}

.teacher-support-box b {
  font-size: 28px;
  color: #0f274a;
}

.teacher-support-box .vn {
  color: #dc2626;
}

.hero-desc {
  font-size: 24px;
  font-weight: 700;
  color: #0f274a;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 22px;
}

.hero-btn {
  min-width: 220px;
  height: 62px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
}

.hero-btn.primary {
  background: #155dfc;
  color: white;
}

.hero-btn.secondary {
  background: white;
  color: #155dfc;
  border: 2px solid #155dfc;
}

.hero-new {
  min-height: 680px;
  padding: 90px 7% 120px;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.78) 0%,
      rgba(255,255,255,0.48) 28%,
      rgba(255,255,255,0.12) 48%,
      rgba(255,255,255,0.00) 100%
    ),
    url("/png/teacher-support.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}
.feature-strip {
  width: 86%;
  margin: -60px auto 70px;
  background: white;
  border-radius: 18px;
  padding: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  position: relative;
  z-index: 5;
}

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-right: 1px solid #e5e7eb;
  padding-right: 20px;
}

.feature-item:last-child {
  border-right: none;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 34px;
  flex-shrink: 0;
}

.feature-icon.blue {
  background: #dbeafe;
}

.feature-icon.pink {
  background: #ffe4e6;
  color: #e11d48;
}

.feature-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.feature-icon.orange {
  background: #ffedd5;
  color: #f97316;
}

.feature-item h3 {
  margin: 0 0 10px;
  color: #0f1b7a;
  font-size: 18px;
}

.feature-item p {
  margin: 0;
  color: #0f274a;
  font-weight: 600;
  line-height: 1.7;
}
.jp,
.vn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fi {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
@media (max-width: 1000px) {
  .hero-new {
    min-height: 560px;
    padding: 70px 6%;
    background-position: center right;
  }

  .hero-new h1 {
    font-size: 48px;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
  }
}
/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .page-scale {
    width: 1440px;
    transform: scale(calc(100vw / 1440));
    transform-origin: top left;
  }
}