@charset "UTF-8";

/* ========================================
   Design tokens
======================================== */
:root {
  --color-blue: #3788cb;
  --color-blue-dark: #176cb0;
  --color-navy: #082746;
  --color-orange: #f7a51a;
  --color-sky: #dceef8;
  --color-sky-light: #f1f9fc;
  --color-white: #ffffff;
  --color-text: #20242b;
  --color-line: #b8d8eb;
  --shadow-card: 5px 5px 0 rgba(55, 136, 203, .55);
}

/* ========================================
   Base
======================================== */
html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  color: var(--color-text);
  font-family: "Noto Sans Japanese", "M PLUS 1p", "メイリオ", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  background: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.none {
  display: none;
}

#wrapper {
  width: 100%;
  position: relative;
}

#wrapper.fixed {
  position: fixed;
}

/* ========================================
   Hero
======================================== */
.hero {
  padding: 122px 32px 66px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, .95) 0 120px, transparent 121px),
    linear-gradient(180deg, #ffffff 0%, var(--color-sky-light) 100%);
  
  background: var(--color-sky-light);
}

.hero::after {
  content: "";
  width: 46%;
  height: 180px;
  position: absolute;
  right: -4%;
  bottom: -92px;
  border-radius: 50%;
  background: rgba(204, 233, 248, .65);
}

.hero-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(400px, .9fr);
  gap: 42px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  position: relative;
}

.hero-audience {
  margin: 0;
  padding: 6px 28px;
  position: absolute;
  top: -28px;
  right: 0;
  color: var(--color-white);
  background: var(--color-blue);
  border-radius: 5px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .04em;
}

.hero-title {
  --hero-title-height: clamp(94px, 10vw, 145px);
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  color: var(--color-blue);
  font-weight: 400;
  line-height: 1;
}

.hero-ai {
  height: var(--hero-title-height);
  display: flex;
  align-items: center;
  color: var(--color-orange);
  font-family: Arial, sans-serif;
  font-size: var(--hero-title-height);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0em;
}

.hero-title-line {
  width: 8px;
  height: 118px;
  background: var(--color-orange);
}

.hero-title-text {
  height: var(--hero-title-height);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 0.9;
  white-space: nowrap;
}

.hero-title-text small {
  font-family: Arial, sans-serif;
  font-size: clamp(13px, 1.5vw, 20px);
  font-weight: 400;
  letter-spacing: .12em;
}

.hero-catch {
  margin: 0 0 18px;
  color: var(--color-blue);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: .02em;
}

.hero-description {
  max-width: 720px;
  margin: 0;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 2;
}

.hero-visual {
  align-self: end;
}

.hero-visual img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 14px 20px rgba(8, 39, 70, .08));
}

/* ========================================
   Shared sections
======================================== */
section.column {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 20px;
  position: relative;
}

.section-en {
  margin: 0 0 2px;
  color: var(--color-blue);
  font-family: Arial, sans-serif;
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: .1em;
}

section.column > h1 {
  margin: 0 0 26px;
  padding-left: 18px;
  position: relative;
  color: var(--color-blue);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.35;
}

section.column > h1::before {
  content: "";
  width: 8px;
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  border-radius: 3px;
  background: var(--color-blue);
}

.section-lead {
  margin: -14px 0 42px;
  font-size: 17px;
}

section.column p {
  font-size: 17px;
}

/* ========================================
   Consultation categories
======================================== */
#section02 {
  width: 100%;
  max-width: none;
  padding-right: max(30px, calc((100% - 1180px) / 2 + 20px));
  padding-left: max(30px, calc((100% - 1180px) / 2 + 20px));
  background: var(--color-sky-light);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 2px solid #d4e6f1;
  border-radius: 17px;
  box-shadow: var(--shadow-card);
}

.category-header {
  min-height: 116px;
  padding: 18px 20px 6px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-sky);
}

.category-icon {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
}

.category h2 {
  margin: 2px 0 0;
  color: var(--color-blue);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.15;
}

.category h2 small {
  margin-top: 8px;
  display: block;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .08em;
}

.category-illust {
  width: 100%;
  height: 155px;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  background: var(--color-sky);
}

.category-body {
  padding: 24px 22px 26px;
  flex: 1;
}

.category-body h3 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 500;
  white-space: nowrap;
}

.category ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category li {
  padding-left: 1.1em;
  position: relative;
  font-size: 15px;
  line-height: 1.75;
}

.category li::before {
  content: "■";
  position: absolute;
  left: 0;
  font-size: .55em;
  top: .55em;
}

/* ========================================
   Consultation flow
======================================== */
#section03 {
  padding-top: 96px;
  padding-bottom: 96px;
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 60px;
  align-items: center;
}

.flow-list {
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.flow-list li {
  margin: 0 0 16px !important;
  padding: 18px 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  position: relative;
  background: var(--color-sky-light);
  border: 1px solid var(--color-line);
  border-radius: 10px;
}

.flow-list li + li::before {
  content: "↓";
  position: absolute;
  top: -25px;
  left: 40px;
  color: var(--color-blue);
  font-weight: 700;
}

.step-no {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  color: var(--color-white);
  background: var(--color-blue);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.flow-list h2 {
  margin: 0;
  color: var(--color-navy);
  font-size: 19px;
  font-weight: 700;
}

.flow-list p {
  margin: 2px 0 0;
  font-size: 15px !important;
}

.students-illust {
  width: 100%;
  display: block;
  object-fit: contain;
}

/* ========================================
   Usage information
======================================== */
#section04 {
  width: 100%;
  max-width: none;
  padding-right: max(30px, calc((100% - 1180px) / 2 + 20px));
  padding-left: max(30px, calc((100% - 1180px) / 2 + 20px));
  background: var(--color-sky-light);
}

#section04 > .main {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

table {
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--color-blue);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-white);
}

th,
td {
  padding: 17px 22px;
  border-bottom: 1px solid var(--color-line);
  font-size: 16px;
  text-align: left;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  width: 150px;
  color: var(--color-blue-dark);
  background: var(--color-sky);
  font-weight: 700;
  text-align: center;
}

#section04 td a {
  color: var(--color-blue-dark);
  font-weight: 700;
  text-decoration: underline;
}

.contact-box {
  margin-top: 24px;
  padding: 24px 30px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  color: var(--color-white);
  background: var(--color-blue);
  border-radius: 10px;
}

.contact-box h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  text-align: center;
}

.contact-box p {
  margin: 0;
  font-size: 15px !important;
}

.mail-button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 9px 20px;
  color: var(--color-blue-dark) !important;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.mail-button:hover,
.primary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(8, 39, 70, .16);
}

/* ========================================
   Guidelines
======================================== */
#section05 .main {
  max-width: 800px;
  margin: 0 auto;
  padding: 38px;
  background: var(--color-white);
  border: 2px solid var(--color-line);
  border-radius: 10px;
  text-align: center;
  box-shadow: 5px 5px 0 var(--color-sky);
}

#section05 .primary-link {
  margin-top: 20px;
  color: var(--color-white) !important;
  background: var(--color-blue);
  border-color: var(--color-blue);
}

/* ========================================
   FAQ
======================================== */
#section06 {
  width: 100%;
  max-width: none;
  padding-right: max(30px, calc((100% - 1180px) / 2 + 20px));
  padding-left: max(30px, calc((100% - 1180px) / 2 + 20px));
  background: var(--color-sky-light);
}

#section06 > .main {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

#section06 details {
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.question {
  margin: 0;
  padding: 19px 58px 19px 68px;
  position: relative;
  cursor: pointer;
  font-size: 17px !important;
  font-weight: 700;
  list-style: none;
}

.question::-webkit-details-marker {
  display: none;
}

.question::before,
.answer::before {
  position: absolute;
  left: 23px;
  color: var(--color-blue);
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.question::before {
  content: "Q";
  top: 14px;
}

.question::after {
  content: "+";
  position: absolute;
  right: 23px;
  color: var(--color-blue);
  font-size: 25px;
  line-height: 1;
}

details[open] .question::after {
  content: "−";
}

.answer {
  margin: 0;
  padding: 18px 28px 22px 68px;
  position: relative;
  border-top: 1px dashed var(--color-line);
  font-size: 16px !important;
}

.answer::before {
  content: "A";
  top: 13px;
  color: var(--color-orange);
}

/* ========================================
   Training and contact
======================================== */
#section07 .main {
  max-width: 780px;
  margin: 0 auto;
  padding: 26px 30px;
  background: var(--color-sky-light);
}

.contact-section {
  margin-bottom: 80px !important;
  padding: 50px !important;
  color: var(--color-white);
  background: var(--color-blue);
  border-radius: 12px;
}

.contact-section > h1 {
  color: var(--color-white) !important;
}

.contact-section > h1::before {
  background: var(--color-white) !important;
}

.contact-section > .main {
  text-align: center;
}

.contact-section dl {
  max-width: 680px;
  margin: 24px auto 0;
  padding: 22px 26px;
  color: var(--color-text);
  background: var(--color-white);
  border-radius: 8px;
}

.contact-section dt {
  font-weight: 700;
}

.contact-section a {
  color: var(--color-blue-dark);
  font-weight: 700;
  text-decoration: underline;
}

/* ========================================
   Footer
======================================== */
#footer {
  padding: 30px;
  color: var(--color-white);
  background: var(--color-navy);
  text-align: center;
}

#footer .copy {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* ========================================
   Tablet
======================================== */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-copy {
    max-width: 760px;
    margin: 0 auto;
  }

  .hero-visual {
    width: min(660px, 100%);
    margin: 0 auto;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .category {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
  }

  .category-illust {
    height: 230px;
  }

  .flow-layout {
    grid-template-columns: 1fr;
  }

  .students-illust {
    max-width: 700px;
    margin: 0 auto;
    order: -1;
  }
}

/* ========================================
   Mobile
======================================== */
@media (max-width: 649px) {
  .hero {
    padding: 94px 18px 44px;
  }

  .hero-inner {
    gap: 22px;
  }

  .hero-audience {
    padding: 4px 16px;
    top: -18px;
    font-size: 14px;
  }

  .hero-title {
    --hero-title-height: clamp(62px, 19vw, 82px);
    margin-bottom: 28px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
  }

  .hero-ai {
    font-size: var(--hero-title-height);
  }

  .hero-title-line {
    width: 5px;
    height: 62px;
  }

  .hero-title-text {
    gap: 8px;
    font-size: clamp(34px, 11vw, 46px);
  }

  .hero-title-text small {
    font-size: 9px;
    letter-spacing: .06em;
  }

  .hero-catch {
    margin-bottom: 14px;
    font-size: 25px;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-description br {
    display: none;
  }

  section.column {
    width: calc(100% - 24px);
    padding: 68px 12px;
  }

  #section02,
  #section04,
  #section06 {
    width: 100%;
    padding-right: 24px;
    padding-left: 24px;
  }

  section.column > h1 {
    padding-left: 15px;
    font-size: 30px;
  }

  section.column > h1::before {
    width: 6px;
  }

  .section-lead {
    margin-bottom: 32px;
    font-size: 15px;
  }

  .category-header {
    min-height: 90px;
    padding: 15px 17px 4px;
  }

  .category-icon {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .category h2 {
    font-size: 31px;
  }

  .category h2 small {
    margin-top: 4px;
    font-size: 12px;
  }

  .category-illust {
    height: 165px;
  }

  .category-body {
    padding: 20px 18px 22px;
  }

  .category-body h3 {
    font-size: 20px;
  }

  .flow-list li {
    padding: 15px;
    align-items: flex-start;
  }

  .step-no {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .flow-list li + li::before {
    left: 29px;
  }

  th,
  td {
    width: auto;
    padding: 12px 15px;
    display: block;
    white-space: normal;
    text-align: left;
  }

  th {
    border-bottom: 0;
  }

  .contact-box {
    padding: 22px;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  #section05 .main {
    padding: 28px 18px;
  }

  .question {
    padding-right: 45px;
    padding-left: 55px;
  }

  .question::before,
  .answer::before {
    left: 17px;
  }

  .answer {
    padding-left: 55px;
  }

  .contact-section {
    width: calc(100% - 24px) !important;
    padding: 40px 20px !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
