@charset "utf-8";

:root {
  --base: #252525;
  --primary: #6294CE;
  --primary-light: #E6F1FF;
  --secondary: #59CEDE;
  --pink: #E5454E;
  --orange: #F05A19;
  --gray: #666;
  --border: #999;
}


/* ------heading------ */
h1 {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  letter-spacing: .15rem;
}

h1 .h1-en {
  font-weight: 500;
  font-size: 18px;
  padding-left: 12px;
  position: relative;
  margin-bottom: 8px;
}

h1 .h1-en::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  position: absolute;
  left: 0;
  top: calc(50% - 6px)
}

h1 .h1-en::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  position: absolute;
  left: 0;
  top: calc(50% + 2px)
}

h1 .h1-ja {
  font-weight: bold;
  font-size: 30px;
}

h2 {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: 30px;
  padding-left: 18px;
  font-weight: bold;
  font-size: 24px;
  position: relative;
}

h2::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  position: absolute;
  left: 0;
  top: 0;
}

h2::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  position: absolute;
  left: 8px;
  top: -8px;
}

@media (min-width: 1024px) {
  h1 {
    margin-bottom: 80px;
  }

  h1 .h1-en {
    font-size: 20px;
    margin-bottom: 20px;
  }

  h1 .h1-ja {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
    margin-bottom: 48px;
  }
}

.pagetitle-inner {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 100px 40px 60px 40px;
}

.content {
  margin: auto;
  padding: 64px 24px;
  max-width: 960px;
}

.content>section:not(:last-of-type) {
  margin-bottom: 64px;
}

@media (min-width: 1024px) {
  .content {
    margin: auto;
    padding: 120px 0;
  }

  .content>section:not(:last-of-type) {
    margin-bottom: 80px;
  }
}


/* ------about------ */
.sub-about .pagetitle {
  background: url(../img/about_bg.webp);
}

.message-inner {
  background-color: var(--primary-light);
  border-radius: 24px;
  padding: 30px;
  max-width: 960px;
}

.message-inner p {
  margin-bottom: 8px;
  line-height: 1.75;
}

.ceo-name {
  display: block;
  width: 223px;
  margin: 8px auto 0 auto;
}

.company-list {
  border-top: 1px solid var(--border);
}

.company-list li {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  padding: 16px 8px;
}

.company-list-label {
  color: var(--gray);
  font-size: 14px;
  font-weight: bold;
  padding-bottom: 4px;
}

.company-list-text a {
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .message-inner {
    padding: 60px;
  }

  .ceo-name {
    display: block;
    margin: -40px 0 0 auto;
  }

  .company-list li {
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 20px;
  }

  .company-list-label {
    font-size: 16px;
    width: 200px;
  }

  .company-list-text {
    flex-grow: 1;
  }
}


/* ------contact------ */
.sub-contact .pagetitle {
  background: url(../img/contact_bg.png);
}

.contact-bg {
  background-color: var(--primary-light);
  max-width: none;
}

.contact-lead {
  width: 100%;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .contact-lead {
    margin-bottom: 60px;
  }

  .sub-contact .form-group {
    justify-content: center;
  }

  .form-error {
    padding-left: 420px;
  }
}

@media (min-width: 1200px) {
  .contact-lead {
    text-align: center;
  }
}


/* ------blog&info------ */
.sub-blog .pagetitle,
.sub-info .pagetitle {
  background: url(../img/info_bg.png);
}

.blog-item {
  border-bottom: 1px solid var(--border);
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.blog-item-date {
  font-size: 12px;
  color: var(--gray);
}

.blog-item-title {
  font-weight: bold;
}

.h1-blog-date {
  font-size: 12px;
  color: var(--gray);
  padding-bottom: 12px;
}

.h1-blog-title {
  font-weight: bold;
  font-size: 24px;
}

.blog-text a {
  color: var(--primary);
  text-decoration: underline;
}

.blog-text p {
  margin-bottom: 8px;
}

.blog-backbtn {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .blog-item {
    flex-direction: row;
    align-items: center;
    padding: 16px;
  }

  .blog-item-date {
    width: 120px;
  }
}