/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  color: #1e2939;
  background: #fff;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ===== Variables ===== */
:root {
  --blue: #002f7c;
  --navy: #003366;
  --orange: #ff6b35;
  --amber: #ffb74d;
  --green: #328200;
  --gray-bg: #f5f5f5;
  --text-dark: #1e2939;
  --text-mid: #4a5565;
  --text-body: #364153;
}

/* ===== Utility ===== */
.br-sp {
  display: none;
}
@media (max-width: 500px) {
  .br-sp {
    display: block;
  }
}
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 120px;
}
@media (max-width: 1100px) {
  .container {
    padding: 0 60px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.section-title-wrap h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.3;
}
.section-divider {
  width: 80px;
  height: 2px;
  background: var(--blue);
  opacity: 0.4;
  border-radius: 2px;
}
.section-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-mid);
}
@media (max-width: 768px) {
  .section-title-wrap h2 {
    font-size: 28px;
  }
}

/* ===== BTN styles ===== */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 3px solid var(--blue);
  border-radius: 48px;
  padding: 14px 30px;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}
.btn-outline .arrow {
  width: 14px;
  height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  width: 220px;
}
.btn-orange:hover {
  opacity: 0.85;
}
.btn-white-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
  white-space: nowrap;
  width: 220px;
}
.btn-white-blue:hover {
  opacity: 0.85;
}

/* ===== HEADER ===== */
.header {
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
}
.header-inner {
  max-width: 1280px;
  height: clamp(56px, 8vw, 100px);
  margin: 0 auto;
  padding: 0 120px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.header-logo {
  width: clamp(36px, 6vw, 72px);
  flex-shrink: 0;
}
.header-logo img {
  width: 100%;
}
.header-title {
  flex: 1;
  font-size: clamp(8px, 1.6vw, 19px);
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: 0.05em;
  color: #595757;
  min-width: 0;
  white-space: nowrap;
}
.header-title strong {
  display: block;
  font-size: clamp(9px, 2vw, 23px);
  font-weight: 500;
  white-space: nowrap;
}
.header-btn-wrap a {
  display: block;
  border: 1px solid var(--blue);
  border-radius: 3em;
  background-color: #fff;
  font-size: clamp(11px, 1.4vw, 18px);
  font-weight: 500;
  padding: clamp(6px, 1vw, 14px) 2em;
  text-decoration: none;
  color: inherit;
  width: clamp(110px, 20vw, 280px);
  position: relative;
  white-space: nowrap;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.header-btn-wrap a::after {
  content: "";
  display: block;
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--blue);
}
.header-btn-wrap a:hover {
  background: var(--blue);
  color: #fff;
}
.header-btn-wrap a:hover::after {
  border-left-color: #fff;
}
@media (max-width: 1100px) {
  .header-inner {
    padding: 0 60px;
  }
}
@media (max-width: 900px) {
  .header-inner {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }
}
@media (max-width: 600px) {
  .header-btn-wrap a::after {
    display: none;
  }
  .header-btn-wrap a {
    padding-left: 0.6em;
    padding-right: 0.6em;
  }
}

/* ===== MV ===== */
.mv {
  position: relative;
  width: 100%;
  min-height: 640px;
  overflow: hidden;
  padding: 60px 0 80px;
}
.mv-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.mv-bg img.mv-img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  position: absolute;
  top: -5%;
  left: 0;
}
.mv-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 80px;
  height: 100%;
}
.mv-label-wrap {
  position: relative;
  width: min(65%, 840px);
  align-self: flex-start;
  flex-shrink: 0;
  margin-left: min(4.4%, 56px);
}
.mv-label-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.mv-title {
  position: relative;
  z-index: 1;
  display: block;
  padding: 16px 8%;
  font-size: clamp(14px, 3vw, 36px);
  font-weight: 900;
  color: #0b2c5f;
  letter-spacing: 0.1em;
  line-height: 1.2;
  opacity: 0.9;
  white-space: nowrap;
}
.mv-contents {
  width: min(55%, 800px);
  align-self: flex-start;
  margin-left: min(4.4%, 56px);
  flex-shrink: 0;
}
.mv-text-sub {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1.8;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(0, 0, 0, 0.7);
}
.mv-bottom-row {
  display: flex;
  gap: clamp(16px, 10vw, 180px);
  align-items: flex-end;
  width: 100%;
  padding: 0 min(4.4%, 56px);
}
.mv-text-main {
  background: rgba(0, 47, 124, 0.9);
  padding: 28px 40px;
  white-space: nowrap;
}
.mv-text-main .ai-text {
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 900;
  color: var(--amber);
  letter-spacing: 6px;
}
.mv-text-main .ja-text {
  font-size: clamp(20px, 2.8vw, 40px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 4px;
}
.mv-cta {
  flex-shrink: 0;
}
.mv-cta .btn-outline {
  font-size: clamp(14px, 1.6vw, 20px);
  padding: clamp(10px, 1.2vw, 16px) clamp(20px, 2.5vw, 32px);
}
@media (max-width: 1100px) {
  .mv-inner {
    padding: 0 60px;
  }
}
@media (max-width: 900px) {
  .mv {
    min-height: 520px;
    padding: 40px 0 40px;
  }
  .mv-inner {
    gap: 60px;
  }
  .mv-contents {
    width: min(65%, 700px);
  }
  .mv-text-main {
    padding: 18px 20px;
  }
}
@media (max-width: 700px) {
  .mv {
    min-height: unset;
    padding: 60px 0 32px;
  }
  .mv-inner {
    gap: 40px;
    padding: 0 20px;
  }
  .mv-label-wrap {
    width: 85%;
    margin-left: 0;
  }
  .mv-title {
    white-space: normal;
    font-size: clamp(14px, 4vw, 36px);
  }
  .mv-contents {
    align-self: stretch;
    width: 100%;
    margin-left: 0;
    padding: 0;
  }
  .mv-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
  }
  .mv-cta {
    padding-right: 0;
  }
}

/* ===== MESSAGE ===== */
.message {
  position: relative;
  padding: 100px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  overflow: hidden;
}
.message-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.message-heading,
.message-body,
.message-btn-wrap {
  position: relative;
  z-index: 1;
}
.message-heading {
  font-size: clamp(20px, 2.8vw, 38px);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 4px;
  text-align: center;
  line-height: 1.3;
  opacity: 0.9;
}
.message-heading .ai-big {
  font-size: clamp(28px, 4.2vw, 62px);
  color: var(--blue);
}
.message-body {
  max-width: 900px;
  text-align: center;
  line-height: 1.9;
}
.message-body p {
  font-size: clamp(14px, 1.5vw, 22px);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 1px;
}
.message-body .highlight-green {
  color: var(--green);
  font-size: clamp(18px, 2.5vw, 40px);
}
.message-body .highlight-amber {
  color: var(--amber);
  font-size: clamp(18px, 2.5vw, 40px);
}
.message-body .highlight-amber-sm {
  color: var(--amber);
  font-size: clamp(18px, 2.5vw, 40px);
}
.message-btn-wrap {
  display: flex;
  justify-content: center;
}
.message .btn-outline {
  font-size: clamp(14px, 1.6vw, 20px);
  padding: clamp(10px, 1.2vw, 16px) clamp(20px, 2.5vw, 32px);
  border-width: 3px;
}
@media (max-width: 768px) {
  .message {
    padding: 60px 20px;
    gap: 40px;
  }
  .message-img {
    width: 80%;
    right: auto;
    bottom: auto;
  }
  .message .btn-outline {
    font-size: 18px;
    padding: 14px 28px;
  }
}

/* ===== RECOMMEND ===== */
.recommend {
  background: var(--gray-bg);
  padding: 100px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}
.recommend-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 752px;
}
.recommend-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.08);
}
.recommend-num {
  background: var(--blue);
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  width: 80px;
  min-width: 80px;
  min-height: 70px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.recommend-text {
  padding: 0 24px;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .recommend {
    padding: 60px 20px;
    gap: 40px;
  }
  .recommend-num {
    width: 60px;
    min-width: 60px;
    min-height: 60px;
    font-size: 26px;
  }

  .recommend-item {
    min-height: 60px;
  }
  .recommend-text {
    font-size: 16px;
    padding: 12px 16px;
  }
}

/* ===== COURSE ===== */
.course {
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.course .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}
.course-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  width: 100%;
}
.course-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.15);
  width: 100%;
  overflow: hidden;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
}
.course-card-header {
  background: var(--blue);
  padding: 20px 24px;
}
.course-card-header h3 {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
}
.course-card-body {
  padding: 28px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.course-card-label {
  font-size: 15px;
  color: var(--text-body);
  font-weight: 400;
  margin-bottom: 8px;
}
.course-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.course-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.5;
}
.course-card-list li::before {
  content: "•";
  color: var(--blue);
  font-size: 16px;
  line-height: 1.5;
  flex-shrink: 0;
}
.course-card-btn {
  display: block;
  width: 100%;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  padding: 14px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.course-card-btn:hover {
  opacity: 0.85;
}
@media (max-width: 900px) {
  .course {
    padding: 80px 0;
  }
  .course-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .course {
    padding: 60px 0;
  }
}

/* ===== FLOW ===== */
.flow {
  background: var(--gray-bg);
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}
.flow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  width: 100%;
  margin-top: 20px;
}
.flow-connector {
  position: absolute;
  top: 44px;
  height: 2px;
  background: var(--blue);
  opacity: 0.2;
  pointer-events: none;
}
.flow-connector.left {
  left: calc(33.33% - 20px);
  width: calc(33.33% - 20px);
}
.flow-connector.right {
  left: calc(66.66% - 20px);
  width: calc(33.33% - 20px);
}
.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  height: 100%;
}

.flow-icon {
  width: 90px;
  height: 90px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.flow-icon .bi {
  font-size: 50px;
  color: #ffffff;
  line-height: 1;
}
.flow-content {
  background: #fff;
  width: 100%;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-radius: 4px;
  flex: 1;
}
.flow-step-badge {
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.flow-step-badge span {
  font-size: 12px;
}
.flow-step-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--blue);
  text-align: center;
}
.flow-step-sub {
  font-size: 15px;
  color: var(--text-mid);
  text-align: center;
}
@media (max-width: 768px) {
  .flow {
    padding: 60px 0;
    gap: 48px;
  }
  .flow-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .flow-connector {
    display: none;
  }
}

/* ===== CTA ===== */
.cta {
  background: var(--blue);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.cta-text-main {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.7;
}
.cta-text-sub {
  font-size: clamp(14px, 1.5vw, 18px);
  color: #fff;
  text-align: center;
  opacity: 0.9;
  line-height: 1.7;
}
.cta-btns {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 600px) {
  .cta {
    padding: 60px 20px;
    gap: 32px;
  }
  .cta-btns {
    gap: 20px;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  padding: 28px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-links {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-links a:hover {
  opacity: 1;
}
.footer-copy {
  font-size: 14px;
  color: #fff;
  opacity: 0.9;
  font-weight: 700;
}
@media (max-width: 600px) {
  .footer {
    padding: 24px 20px;
  }
  .footer-links {
    gap: 12px;
  }
  .footer-copy {
    margin-top: 12px;
  }
  .footer-links a {
    font-size: 11px;
  }
  .footer-copy {
    font-size: 11px;
  }
}

/* ===== Scroll animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
