@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --dark: #000;
  --light: #fff;
  --primary: #E8372D;
  --accent: #F6D623;

  --primary-light: #F0F2FF;
  --primary-hover: #DC0957;
  --transition: all 0.25s cubic-bezier(.39, 0, .17, .99);
  --header: #fff;
  --main-gradient: linear-gradient(98.34deg, #3D0470 0%, #92026D 56.39%);
  --menu-text: #494949;
  --section-title: 24px;
  --offset: 20px;
  --radius: 30px;
  --section-offset: 60px;

  --text_color: rgba(0, 0, 0, 0.85);
  --text_color_muted: rgba(0, 0, 0, 0.6);
  --text_color_muted_invert: rgba(255, 255, 255, 0.6);

  --icon_color: rgba(0, 0, 0, 0.9);
}

@font-face {
  font-style: normal;
  font-weight: normal;
  font-family: "icomoon";

  font-display: block;
  src: url("icomoon.woff2") format("woff2");
}

[class^="icon-"],
[class*=" icon-"],
.nav-mobile-btn,
[data-role="dropdown"] span::after {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  line-height: 1;
  font-family: "icomoon";
  text-transform: none;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  speak: none;
}

[id*="google-cache-hdr"] + div {
    height: 100%;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #fff;
}

ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: currentColor;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  font-weight: 400;
}

p {
  margin-bottom: 20px;
}
p:last-child {
  margin-bottom: 0;
}

h3 {
  margin-bottom: 20px;
}

section {
  padding: 60px 0;
  border-top: 1px solid var(--dark);
}

html {
  scroll-behavior: smooth;
}

body {
  font: 400 14px/1.5 'Noto Sans JP', Arial, sans-serif;
  color: var(--text_color);
  background-color: var(--light);
}

.wrapper {
  position: relative;
  overflow-x: hidden;
}

.center {
  width: 100%;
  max-width: 1180px;
  padding: 0 10px;
  margin: 0 auto;
}


.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 10px;
  font-size: 14px;
  font-weight: 500;
  height: 50px;
  min-width: 140px;
  color: var(--light);
  border: 1px solid var(--dark);
  background-color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--light);
  color: var(--dark);
}


/*** Main ***/
.main-container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
}

/* Header */
.header {
  background: var(--header);
  border: 1px solid #000;
  color: #fff;
  padding: 10px 0;
  z-index: 12;
}

.header .center {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo img {
  background-color: transparent;
  width: 100%;
}

.nav-mobile-btn {
  width: 30px;
  height: 30px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 11;
}
.nav-mobile-btn::after {
  content: "\e97d";
  font-size: 30px;
}
.show-menu .nav-mobile-btn::after {
  content: "\e933";
}

/* Navigation */
.nav {
  transition: var(--transition);
  z-index: 10;
  color: var(--menu-text);
  line-height: 1.67;
  font-size: 18px;
}

.nav-item span {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
}

.nav-item-dropdown a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text_color);
}
.nav-item-dropdown a:hover {
  color: var(--primary);
}
.nav-item-dropdown .current-page {
  color: var(--primary);
}


/*** Main-section ***/
.main-section .center {
  padding: 0;
}

.photo-item {
  position: relative;
}

.photo-item img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.slogan-title {
  font-weight: 400;
  color: var(--dark);
}
.slogan-description {
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
}


/* Content sectiion */
.section-title {
  font-size: var(--section-title);
  line-height: 1.45;
  margin-bottom: 20px;
}
.text-section .section-title {
  text-align: center;
}

.text-section .center {
  max-width: 865px;
  text-align: center;
}

.service-section .center {
  border: 1px solid var(--dark);
  text-align: left !important;
}

.invert-color {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.9);
}
.invert-color .section-title {
  color: var(--light);
}

.article-image img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--dark);
  box-shadow: calc(var(--article-image-border-width) * -1) var(--article-image-border-width) 0 var(--dark);
}
.article-reverse .article-image img {
  box-shadow: var(--article-image-border-width) var(--article-image-border-width) 0 var(--dark);
}

.content-section .center {
  display: grid;
  grid-gap: 40px;
  align-items: center;
  text-align: center;
}
.content-section img {
  border: 1px solid #000;
}

.admonition-block {
  border: 1px solid #000;
  padding: 20px;
}
.admonition-block .btn-block {
  margin: 20px 0 0;
}
.admonition-block .btn {
  width: 100%;
  max-width: 300px;
}

ul.section-list {
  margin-bottom: 20px !important;
  padding-left: 1.5em !important;
  list-style: none !important;
}

ul.section-list li::before {
  content: "✓ " !important;
  margin-right: 0.5em !important;
}

/* Links */
.links-section .section-title {
  text-align: center;
}

.links-list {
  display: flex;
  flex-wrap: wrap;
  grid-gap: var(--offset);
  justify-content: center;
}

/* Footer */
.footer {
  padding: var(--offset) 0;
  background-color: var(--dark);
  text-align: center;
  color: var(--text_color_muted_invert);
}
.footer a {
  color: var(--light);
  text-decoration: underline;
}
.footer a:hover {
  text-decoration: none;
}
.footer .center {
  display: grid;
  gap: var(--offset);
  justify-content: center;
}

.footer-logo {
  display: block;
  margin: 0 auto;
  background-color: transparent;
}

.footer-text {
  font-size: 14px;
  line-height: 20px;
}

.footer-links-block {
  display: flex;
  flex-direction: column;
}
.footer-links-block li {
  margin-bottom: 30px;
}
.footer-links-block li:last-child {
  margin-bottom: 0;
}

.footer-links-block a {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.footer-copyright {
  font-size: 12px;
}

.footer-external-link {
  color: var(--text_color_muted_invert) !important;
  text-decoration: none !important;
}

/* Overlay block */
.overlay-block {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
}

.show-menu .overlay-block,
.overlay-block.active {
  display: block;
}

@media (max-width:767px) {
  .article-image img {
    width: 100%;
  }
}
@media (max-width:991px) {
  :root {
    --article-image-border-width: 10px;
  }
  
  .center {
    padding: 0 20px;
  }

  .header-logo img {
    max-height: 30px;
  }
  
  .main-content-block .btn-block {
    margin-top: 20px;
  }

  /* Navigation */
  .show-menu section,
  .show-menu .footer {
    display: none;
  }
  
  .show-menu .wrapper {
    overflow-x: visible;
  }
  
  .nav {
    position: absolute;
    top: 52px;
    left: -1px;
    right: -1px;
    height: 100%;
    transform: translateX(100%);
    padding: 20px 10px 30px;
    opacity: 0;
    visibility: hidden;
    background: var(--light);
    border-top: 1px solid #000;
  }
  .show-menu .nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(0%);
  }
  .nav-item span {
    display: block;
    margin: 10px 0;
    line-height: 20px;
  }
  
  .nav-item-join {
    margin-top: var(--offset);
  }
  .nav-item-join .btn {
    width: 100%;
  }
  
  .main-content-block {
    padding: 20px;
  }
  .main-content-block .btn {
    width: 100%;
  }
  
  .slogan-title {
    margin-bottom: 10px;
    font-size: 34px;
    line-height: 40px;
    color: var(--dark);
    text-align: center;
  }
  
  .photo-block {
    border: 1px solid var(--dark);
    border-top: none;
  }
  
  /* Content section */
  .article-section .center {
    display: grid;
  }
  
  .article-col:first-child {
    margin-bottom: 20px;
  }
  
  .content-section {
    margin-top: 30px;
    padding-top: 0;
  }
  .content-section img {
    margin: -30px auto 0;
  }
  
  .text-section.service-section {
    padding-bottom: 0;
  }
  
  .service-section .center {
    margin-left: 10px;
    margin-right: 10px;
    padding: 20px 10px;
    width: auto;
  }
  
  .text-section {
    padding-bottom: 20px;
  }
  .text-section .center {
    padding: 0 10px;
  }
  .text-section.invert-color {
    padding-top: 20px;
  }
  
  .links-list .btn {
    min-width: 130px;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .links-list li {
    width: 100%;
  }
}
@media (min-width: 768px) {
  /* Links */
  .links-list {
    padding-top: 20px;
  }
  .links-list .btn {
    width: auto;
  }
}

@media (min-width: 992px) {

  :root {
    --section-offset: 120px;
    --section-title: 34px;
    --offset: 40px;
    --article-image-border-width: 20px;
  }

  section {
    padding: 120px 0;
  }

  .header {
    height: 70px;
  }
  .header-logo img {
    max-height: 60px;
  }
  
  .main-content-block .btn-block {
    margin-top: 40px;
  }

  .nav-mobile-btn {
    display: none;
  }
  
  .nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;

    grid-gap: 40px;
  }

  .nav-item {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
  }

  [data-role="dropdown"] span::after {
    content: "\e91a";
    color: var(--icon_color);
    position: relative;
    flex-shrink: 0;
    font-size: 24px;
    margin-left: 8px;
    transition: var(--transition);
  }

  .nav-item span {
    display: flex;
    align-items: center;
    line-height: 1.5;
  }
  .active.nav-item span::after {
    transform: rotate(180deg);
  }

  .nav-item-dropdown {
    opacity: 0;
    visibility: hidden;
    padding: 30px 20px;
    display: block;
    width: 100%;
    overflow-y: auto;
    position: absolute;
    top: 36px;
    left: 50%;
    width: 280px;
    background: var(--light);
    border: 1px solid var(--dark);
    transform: translateX(-50%);
    transition: var(--transition);
    z-index: 10;
  }
  .active .nav-item-dropdown {
    visibility: visible;
    -webkit-transform: translateX(-50%) translateY(10px);
    transform: translateX(-50%) translateY(10px);
    opacity: 1;
  }

  /*** Main-section ***/
  .main-section {
    position: relative;
  }
  .main-section .center {
    display: grid;
    grid-template-columns: minmax(55%, 1fr) minmax(40%, 418px);
    grid-gap: 60px;
    align-items: center;
  }

  .photo-block {
    order: 2;
    margin-right: -78%;
    border-left: 1px solid var(--dark);
  }

  .main-content-block {
    padding-left: 10px;
  }
  .main-content-block .btn {
    width: 240px;
  }

  .slogan-title {
    margin-bottom: 40px;
    font-size: 60px;
    line-height: 70px;
    text-align: left;
  }
  .slogan-description {
    text-align: left;
  }
  
  /* Content section */
  .article-section[data-article-img="true"] {
    padding-top: 0;
  }
  .article-section .center {
    display: grid;
    grid-gap: 60px;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .article-section.article-reverse .center {
    grid-template-columns: 1fr auto;
  }
  
  .article-reverse .article-col:first-child {
    order: 2;
  }
  
  
  .article-image img {
    margin-top: -40px;
  }

  .article-section .section-title {
    text-align: left;
  }
  
  .service-section .center {
    padding: 40px;
  }
  
  .invert-color {
    padding: 40px 0;
  }

  .content-section {
    padding: 0;
  }
  .content-section .center {
    max-width: 960px;
    margin: 0 auto;
    grid-gap: 60px;
    grid-template-columns: auto 1fr;
  }
  .content-section img {
    width: 100%;
    max-width: 408px;
    margin: -35px 0;
  }
  
  .admonition-block {
    padding: 40px;
  }
  .admonition-block .btn-block {
    margin: 40px 0 0;
  }
  
  /* Links */
  .links-list {
    padding-top: 20px;
  }
  .links-list .btn {
    min-width: 200px;
  }
  
  /* Footer */
  .footer {
    padding: 40px 0;
  }
  
  .footer-logo {
    margin: 0;
    grid-column: 1 / 2;
  }
  
  .footer-links-block {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    grid-column: 2 / 2;
  }

  .footer-links-block li {
    margin-bottom: 0;
    margin-right: 50px;
  }
  .footer-links-block li:last-child {
    margin-right: 0;
  }

  .footer-content {
    grid-column: 1 / 3;
  }
}

/* iPad styles */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  .main-section .center {
    grid-template-columns: minmax(40%,1fr) minmax(52%,418px);
  }
  .slogan-title {
    font-size: 30px;
    line-height: 40px;
  }
  .photo-block {
    margin-right: 0;
  }
}
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  .main-section .center {
    grid-template-columns: minmax(40%,1fr) minmax(50%,418px);
  }
  .slogan-title {
    font-size: 30px;
    line-height: 40px;
  }
  .photo-block {
    margin-right: 0;
  }
  .main-content-block {
    padding: 5vh 10px;
  }
}
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation: portrait) {
  .article-section .center {
    grid-template-columns: 1fr 1fr;
  }
}
@media only screen and (min-device-width: 1360px) and (max-device-width: 1366px) and (orientation: landscape) {
  .main-section .center {
    max-width: 100%;
    grid-template-columns: minmax(40%,1fr) minmax(48%,418px);
  }
  .main-content-block {
    padding-left: 40px;
  }
  .photo-block {
    margin-right: 0;
  }
}