/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #00aedb;
  --green: #00a878;
  --yellow: #ffde2a;
  --white: #ffffff;
  --navy: #04499a;
  --navy-rgb: 4, 73, 154; /* отдельная переменная с RGB */
  --light-bg: #e8f4f8;
  --text: #2d2d2d;
  --nav-h: 80px;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  display: none;
}

body {
  scrollbar-width: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--text);
  overflow-x: hidden;
}

/* ===== SCROLL OFFSET FOR STICKY NAV ===== */
[id] {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

/* ===== SECTION ANIMATIONS ===== */
.section-anim {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.section-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s,
    opacity 0.2s;
}
.btn:hover {
  transform: scale(1.02);
  opacity: 0.88;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--blue);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-hero {
  width: 15vw;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 16px 24px;
  transition:
    background 0.3s,
    padding 0.3s,
    box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 24px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.nav.scrolled .nav-bar {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}
.nav-bar {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 60px;
  border: 1.5px solid #ececec;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  padding: 6px 20px 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 85px;
  justify-content: space-between;
}
.nav-right {
  display: flex;
  align-items: center;
}
.nav-right .menuBtn {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-right .menuBtn img {
  width: 195px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 0 14px 0 4px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 250px;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  flex: 1;
  justify-content: center;
  gap: 20px;
  padding-right: 40px;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 50px;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: rgba(var(--navy-rgb), 0.55);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 999;
  padding: 16px 20px 24px;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}
.mobile-menu-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu-links {
  width: 100vw;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.5vh;
}
.mobile-menu a {
  text-decoration: none;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  transition: opacity 0.15s;
}
.mobile-menu a:hover {
  opacity: 0.7;
}
.mobile-menu .btn {
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 0 40px;
}
.hero .yelloCircle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22.2vw;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
}
.hero-mobile-bg {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

/* Centered stage — button at 70% from top */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 77svh;
  gap: 24px;
}

.hero-scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255);
  font-size: 0.8vw;
  font-weight: 700;
  letter-spacing: 0.15em;
  z-index: 3;
}
.hero-scroll-line {
  width: 2px;
  height: 5vh;
  background: rgba(255, 255, 255, 1);
  transform-origin: top;
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  60% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ===== SECTIONS COMMON ===== */
section {
  padding: 80px 20px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-divider {
  width: 48px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 40px;
}

/* ===== ABOUT ===== */
#about {
  background: var(--light-bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 174, 219, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 174, 219, 0.16);
}

.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.about-audience {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 32px;
  border-left: 5px solid var(--blue);
  box-shadow: 0 4px 20px rgba(0, 174, 219, 0.07);
}
.about-audience p {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
}
.about-audience strong {
  color: var(--blue);
}

/* ===== CONDITIONS ===== */
#conditions {
  background: var(--white);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.condition-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--light-bg);
  border-radius: 16px;
  padding: 24px 28px;
  transition: transform 0.2s;
}
.condition-card:hover {
  transform: translateY(-2px);
}
.condition-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.condition-info {
  flex: 1;
}
.condition-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}
.condition-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.condition-sub {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.conditions-note {
  margin-top: 24px;
  font-size: 13px;
  color: #777;
  text-align: center;
}

/* ===== FLOW ===== */
#flow {
  background: var(--light-bg);
}

.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -1px;
  width: calc(100% - 56px);
  height: 3px;
  background: var(--blue);
  left: calc(50% + 28px);
  z-index: 0;
}

.flow-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 174, 219, 0.35);
}
.flow-num .num-circle {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.flow-step p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  padding: 0 8px;
}

/* ===== COMPANY ===== */
#company {
  background: var(--navy);
  color: var(--white);
}
#company .section-title {
  color: var(--white);
}
#company .section-label {
  color: var(--blue);
}

.company-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.company-anniversary {
  font-size: clamp(64px, 10vw, 100px);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
}
.company-anniversary span {
  font-size: clamp(22px, 3.5vw, 32px);
}

.company-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  margin-bottom: 16px;
}

.company-mission {
  border-left: 4px solid var(--yellow);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 12px 12px 0;
}
.company-mission p {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.company-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.map-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  outline: 1px solid rgba(255, 255, 255, 0.15);
  outline-offset: -1px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.map {
  display: block;
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: calc(100% + 60px);
  border: 0;
}

.company-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}
.stat-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
}
.stat-box .num {
  font-size: 24px;
  font-weight: 900;
  color: var(--yellow);
}
.stat-box .lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

/* ===== FAQ ===== */
#faq {
  background: var(--white);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1.5px solid #e6eef2;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: var(--blue);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  transition: background 0.15s;
}
.faq-question:hover {
  background: var(--light-bg);
}

.faq-q-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-question span {
  flex: 1;
}
.faq-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform 0.3s,
    background 0.2s;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background: var(--blue);
}
.faq-arrow svg {
  width: 14px;
  height: 14px;
}
.faq-item.open .faq-arrow svg path {
  stroke: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 24px 24px 24px;
  border-top: 1px solid #edf2f5;
}
.faq-item.open .faq-answer-inner {
  padding-top: 18px;
}
.faq-a-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-answer p {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  padding-top: 4px;
}

/* ===== CTA ===== */
#apply {
  background: var(--blue);
  text-align: center;
  padding: 100px 20px;
}
.cta-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.5;
}
.cta-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.cta-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 20px;
}
.apply-form {
  max-width: 480px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.form-field label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.form-field input {
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.form-field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.form-field input:focus {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.22);
}
.privacy-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.privacy-label a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}
.privacy-label a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.9);
}
.privacy-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--yellow);
  cursor: pointer;
  flex-shrink: 0;
}
.apply-form .btn {
  width: 100%;
  margin-top: 4px;
}
.apply-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-success {
  font-size: 14px;
  color: #d4f5d4;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
}
.form-error {
  font-size: 14px;
  color: #ffd4d4;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
}
.cta-divider {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin: 20px 0 16px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
}
footer strong {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1200px) {
  .nav {
    width: 100vw;
  }
}

@media (max-width: 1180px) {
  .nav-links {
    display: none;
  }
  .nav-right .menuBtn {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-logo img {
    width: 180px;
  }
  .nav-bar {
    height: 69px;
  }
  section {
    padding: 60px 16px;
  }

  /* Nav */
  .nav {
    padding: 20px 16px;
  }

  /* Hero */
  .hero {
    padding: 0 16px;
  }

  /* About cards */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Conditions */
  .conditions-grid {
    grid-template-columns: 1fr;
  }

  /* Flow */
  .flow-steps {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .flow-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
    padding: 0 0 28px;
  }
  .flow-step:not(:last-child)::after {
    width: 3px;
    height: calc(100% - 56px);
    top: 56px;
    left: 26px;
    right: auto;
    background: var(--blue);
  }
  .flow-num {
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .flow-step-body {
    flex: 1;
    padding-top: 12px;
  }
  .flow-step h3 {
    margin-bottom: 4px;
  }
  .flow-step p {
    padding: 0;
  }

  /* Company */
  .company-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .company-visual {
    order: -1;
  }
  .company-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* FAQ */
  .faq-question {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .company-stats {
    grid-template-columns: 1fr;
  }
}
@media (orientation: portrait) {
  .hero-bg {
    display: none;
  }
  .hero-mobile-bg {
    display: block;
  }
  .hero .yelloCircle {
    width: 60vw;
  }
  .btn-hero {
    width: 70vw;
  }
  .hero-stage {
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: 13svh;
  }
  .hero-scroll {
    display: flex;
    position: absolute;
    right: -20px;
    bottom: -2%;
    left: auto;
    flex-direction: row-reverse;
  }
  .hero-scroll span {
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center center;
    font-size: 14px;
    margin-left: -15px;
  }
  .hero-scroll .hero-scroll-line {
    height: 10.5vh;
  }
}
