:root {
  --default-font: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

:root {
  --background-color: #ffffff;
  /* Background color for the entire website, including individual sections */
  --default-color: #212529;
  /* Color for headings, subheadings and title throughout the website */
  --accent-color: #c50017;
  /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff;
  /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff;
  /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --site-color: #c50017;
  --base-font-color: #353535;
  --line-color: #cc5514;
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #222222;
  /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff;
  /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff;
  /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #212529;
  /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #c50017;
  /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f2f9f9;
  --surface-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(base-font-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(base-font-color);
  font-family: var(--default-font);
}

/* PHP Email Form Messages
------------------------------*/
.contact-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact-form .loading {
  display: none;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: contact-form-loading 1s linear infinite;
}

@keyframes contact-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--base-font-color);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 14px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: clamp(12px, 4vw, 24px);
  ;
  margin: 0;
  font-weight: 700;
  color: #3b3b3b;
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: rgba(0, 0, 0, 0.9);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: color-mix(in srgb, var(--base-font-color), transparent 20%);
    font-size: 18px;
    padding: 0 2px;
    font-family: var(--default-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--site-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-color);
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--default-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }


  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: white;
  background-color: #0e0e0e;
  font-size: 14px;
  position: relative;
}


.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--background-color), transparent 10%);
}

.footer h3 {
  padding: 4px 0 0 2rem;
  font-size: 1.6rem;
}

.footer .footer-logo {
  line-height: 1;
  max-width: 100px;
}

.footer .footer-conpany {
  display: inline-flex;
  margin-bottom: 1rem;
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--background-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer h3 {
    font-size: 1.2rem;
  }

  .footer .footer-logo {
    line-height: 1;
    max-width: 70px;
  }

  .footer p {
    font-size: 0.8rem;
  }

}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--line-color) transparent var(--line-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--site-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--site-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 92px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 62px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding: 30px 0;
  position: relative;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 15px;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .hero-message {
  position: relative;
  z-index: 3;
  margin-top: 10vh;
}

@media (max-width: 1400px) {
  .hero .hero-message {
    margin-top: 20vh;
  }
}

@media (max-width: 768px) {
  .hero .hero-message {
    position: absolute;
    bottom: 9vh;
    padding-left: 2rem;
  }
}

@media (max-width: 375px) {
  .hero .hero-message {
    position: absolute;
    bottom: 4vh;
    padding-left: 1rem;
  }
}

.hero .hero-catchcopy {
  display: inline-grid;
}

.hero .hero-impact {
  font-size: clamp(4rem, 8vw, 8rem);
  color: var(--line-color);
}

.hero h2 {
  font-size: clamp(3rem, 4vw, 6rem);
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.hero h3 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  text-align: center;
  margin-left: -50px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--site-color), transparent 60%);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.hero .bi-check-lg {
  color: color-mix(in srgb, var(--site-color), transparent 30%);
  font-size: clamp(1rem, 3vw, 4rem);
  padding: 0 clamp(1rem, 2vw, 2rem) 0 0;
  position: relative;
  bottom: clamp(-5px, 2vw, -14px);
}

.hero .hero-point {
  margin-top: clamp(0rem, 3vw, 3rem);
}

.hero .hero-point h4 {
  text-align: left;
  font-weight: bold;
  font-size: clamp(0.8rem, 3vw, 2rem);
  line-height: clamp(1rem, 6vw, 4rem);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
  margin: 5rem 7rem;
}

@media (max-width: 1300px) {
  .about {
    margin: 2rem 2rem;
  }
}


.about .about-title h2 {
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  margin: clamp(0px, 5vw, 2rem) 0;
}

.about .about-title h2 span {
  border-bottom: 2px solid var(--line-color);
  padding: 0 2rem;
}

.about .about-title h3 {
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
}

.about .about-content {
  border-left: 2px solid var(--site-color);
  padding: 3rem 0;
}

@media (max-width: 991px) {
  .about .about-content {
    border-left: none;
    padding: clamp(1rem, 6vw, 2rem) 0;
  }
}

.about .about-content h3 {
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.about .about-content h3 span {
  padding: clamp(5px, 6vw, 14px);
  padding-left: clamp(0px, 5vw, 22px);
}

.about .about-description {
  margin-top: 20px;
  padding: 0.6rem 0;
  line-height: clamp(2rem, 4vw, 2.6rem);
  font-size: clamp(1rem, 4vw, 1.2rem);
}


@media (max-width: 375px) {
  .about .about-title h2 {
    font-size: 1.6rem;
  }

  .about .about-content h3 {
    font-size: 2.4rem;
  }

  .about .about-content h3 span {
    padding: 3px;
  }
}

.about .about-image {
  margin-top: clamp(1rem, 4vw, 5rem);
}


/*--------------------------------------------------------------
# Flows Section
--------------------------------------------------------------*/
.flows .flow-wrap {
  padding: 0 clamp(2rem, 4vw, 7rem);
}


.flows .card {
  background-color: white;
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 40px;
  margin: -1px;
  border-radius: 0;
}

.flows .flow-title {
  display: grid;
  margin-bottom: 20px;
}

.flows .card .card-number {
  font-weight: 400;
  padding-right: 1rem;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
}

.flows .card h4 {
  font-size: clamp(1.4rem, 8vw, 2.2rem);
  font-weight: 400;
  padding: 0;
  margin-bottom: 0;
}

.flows .flow-description {
  margin-bottom: clamp(0px, 4vw, 20px);
}

@media (min-width: 1300px) {
  .flows .flow-description {
    min-height: 110px;
  }
}

@media (max-width: 799px) {
  .flows .card .card-number {
    font-size: clamp(1.6rem, 4vw, 2rem);
    padding-right: 0.6rem;
  }

  .flows .card h4 {
    font-size: clamp(1.3rem, 8vw, 1.8rem);
  }
}

@media (max-width: 375px) {
  .flows .card h4 {
    font-size: 1.4rem;
  }
}



.flows .card p {
  font-size: clamp(0.8rem, 4vw, 1.1rem);
  margin: 0;
  padding: 0 0 0 5px;
}

.flows .arrow {
  position: relative;
  display: inline-block;
  height: 1px;
  margin-top: 14.5px;
  border-radius: 9999px;
  background-color: var(--site-color);
}

.flows .arrow::before {
  content: "";
  position: absolute;
  top: calc(50% - 1.5px);
  right: 0px;
  width: 32px;
  height: 1px;
  border-radius: 9999px;
  background-color: var(--site-color);
  transform: rotate(30deg);
  transform-origin: calc(100% - 1.5px) 50%;
}

/*--------------------------------------------------------------
# Curriculums Section
--------------------------------------------------------------*/
.curriculums .curriculum-item {
  padding: clamp(0px, 4vw, 40px) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.curriculums .curriculum-title {
  padding: clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 90px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-orientation: upright;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
}

@media (max-width: 991px) {
  .curriculums .curriculum-item {
    padding: clamp(2rem, 4vw, 3rem) clamp(0px, 1vw, 40px);
  }

  .curriculums .curriculum-title {
    text-orientation: unset;
    -ms-writing-mode: unset;
    writing-mode: unset;
    text-align: center;
  }
}

.curriculums .curriculum-item h4 {
  font-size: clamp(1.2rem, 4vw, 1.2rem);
  line-height: 26px;
  font-weight: 500;
  padding-left: 10px;
}

.curriculums .curriculum-item h4 span.curriculum-subject {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--default-color), transparent 60%);
  text-decoration-thickness: 2px;
}

.curriculums .curriculum-item h4 span.part {
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  margin-bottom: clamp(0px, 4vw, 10px);
  display: block;
}


.curriculums .curriculum-item ol {
  font-size: clamp(0.8rem, 4vw, 1rem);
  display: table;
  margin: 0;
  padding: clamp(0.8rem, 4vw, 1rem) 0 0 0.8rem;
}

/* リストスタイルを数字として指定 */
.curriculums .curriculum-item ol li {
  list-style-type: decimal;
  margin: 0;
  padding: 0;
  display: table-row;
  counter-increment: table-ol;
}

/* リストスタイルのカウンター項目を指定（table-olは任意の文字列） */
.curriculums .curriculum-item ol li:before {
  content: counter(table-ol) ".";
  display: table-cell;
  padding-right: 0.6em;
  text-align: right;
  font-weight: 500;
}

/* リストアイテムの下部余白を指定 */
.curriculums .curriculum-item ol li:after {
  content: "";
  display: block;
  margin-bottom: 0.6em;
}

/* 最後のリストアイテム下部の不要な余白を無くす指定 */
.curriculums .curriculum-item ol li:last-of-type:after {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Q&A Section
--------------------------------------------------------------*/
.qa .section-title h2 {
  letter-spacing: 0.4rem;
}

.qa .qa-container .qa-item {
  background-color: white;
  position: relative;
  padding: 1.2rem clamp(1.6rem, 4vw, 3rem) 1.6rem;
  margin-bottom: 15px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 5px;
  overflow: hidden;
}

.qa .qa-container .qa-item:last-child {
  margin-bottom: 0;
}

.qa .qa-container .qa-item .qa-icon {
  font-size: clamp(0.8rem, 6vw, 1.8rem);
  min-width: 45px;
  margin-bottom: 0;
}

.qa .qa-container .qa-item .qa-question {
  color: color-mix(in srgb, var(--site-color), transparent 30%);
}

.qa .qa-container h3 {
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  margin-bottom: 0;
  padding-top: 10px;
}

@media (max-width: 991px) {
  .qa .qa-container h3 {
    padding-top: 6px;
  }

  .qa .qa-container .qa-answer p {
    margin-top: -4px;
  }
}

.qa .qa-container .qa-answer {
  margin-top: 1.2rem;
}

.qa .qa-container .qa-answer .qa-icon {
  margin-top: -8px;
}

.qa .qa-container .qa-answer p {
  font-size: clamp(0.8rem, 6vw, 1rem);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .contact-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  /* box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1); */
}

.contact .privacy-policy {
  padding: 1rem;
  max-height: 35vh;
  overflow-y: scroll;
  border: 1px solid rgb(198, 198, 198);
}

.contact .privacy-policy p,
.contact .privacy-policy ul {
  font-size: clamp(0.8rem, 3vw, 1rem);
}

.contact .privacy-policy ul {
  padding-left: 0.6rem;
  list-style: none;
}

.contact .agree-btn-form {
  margin: 3rem 0;
  font-size: clamp(0.9rem, 3vw, 1rem);
}

.contact .agree-btn {
  border-color: gray;
  width: 20px;
  height: 20px;
}


@media (max-width: 575px) {
  .contact .contact-form {
    padding: 20px;
  }
}

.contact .contact-form input[type=text],
.contact .contact-form input[type=email],
.contact .contact-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .contact-form input[type=text]:focus,
.contact .contact-form input[type=email]:focus,
.contact .contact-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .contact-form input[type=text]::placeholder,
.contact .contact-form input[type=email]::placeholder,
.contact .contact-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .contact-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--line-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .contact-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--line-color), transparent 25%);
}