/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
/*google fonts*/
@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);


:root{
  --base-color: #f1f0f2;
  --main-color: #1b2a83;
  --accent-color1: #f9e24c;
  --accent-color2: #6695d0;
}


html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  font-family: Helvetica, Helvetica Neue, "游ゴシック", YuGothic, 'Noto Sans JP', sans-serif!important;

  height: -webkit-fill-available;

}


body{
  background-color: var(--base-color);
  font-family: Helvetica, Helvetica Neue, "游ゴシック", YuGothic, 'Noto Sans JP',sans-serif!important;

  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

.title-fadein{
  animation: FadeIn 1s ease 0.5s 1 normal;
  animation-fill-mode:both;
}
@keyframes FadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}



.logo-type{
  line-height: 40px;
  margin-left: 5px;
  font-size: 20px;
}


.navbar-add{
  background-color:var(--base-color);
  z-index:999;
}

.menu{
  margin: 0 0 0 auto;
  display: flex;
  flex-flow: row;
  justify-content: center;
  font-weight: bold;
  color: var(--main-color);
}
.menu-item:hover{
  color: var(--accent-color1);
}

.menu-item{
  margin-left: 10px;
  margin-right: 10px;
  text-decoration: none;
  color: var(--main-color);
  transition: color 0.3s;
  cursor: pointer;
}
@media screen and (max-width: 500px) {
  .menu-item{
    margin-left: 5px;
    margin-right: 5px;
    font-size: 13px;
    text-decoration: none;
    color: var(--main-color);
    transition: color 0.3s;
    cursor: pointer;
  }
}

#top-background{
  height: calc(100vh - 82px);
  width:100vw;
}

.top-area{
  position: absolute;
  top: 40vh;
  left: 10vw;
  color: var(--main-color)
}

.top-title{
  font-size: 100px;
  line-height: 1em;
}

.top-subtitle{
  font-size: 30px;
  line-height: 1.4em;
  font-weight: bold;
}

@media screen and (max-width: 600px) {
  .top-area{
    position: absolute;
    top: 40vh;
    left: 5vw;
    color: var(--main-color)
  }

  .top-subtitle{
    font-size: 20px;
    line-height: 1.4em;
    font-weight: bold;
  }
}


.footer{
  position: relative;
  width: 100vw;
  height: 60px;
  background-color: var(--accent-color2);
}

.copy-right{
  position: absolute;
  font-size: 12px;
  width: 100vw;
  bottom: 10px;
  text-align: center;
}

/*arrow animation*/
.scrolldown4{
  /*描画位置※位置は適宜調整してください*/
  position:absolute;
  bottom:1%;
  right:50%;
  margin-bottom: 50px;
  /*矢印の動き1秒かけて永遠にループ*/
  animation: arrowmove 1s ease-in-out infinite;
  cursor: pointer;
}

/*下からの距離が変化して全体が下→上→下に動く*/
@keyframes arrowmove{
  0%{bottom:1%;}
  50%{bottom:3%;}
  100%{bottom:1%;}
}

/*Scrollテキストの描写*/
.scrolldown4 span{
  /*描画位置*/
  position: absolute;
  left:-20px;
  bottom:10px;
  /*テキストの形状*/
  color: var(--main-color) !important;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  /*縦書き設定*/
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}

/* 矢印の描写 */
.scrolldown4:before {
  content: "";
  /*描画位置*/
  position: absolute;
  bottom: 0;
  right: -6px;
  /*矢印の形状*/
  width: 1px;
  height: 20px;
  background: var(--main-color) !important;
  transform: skewX(-31deg);
}

.scrolldown4:after{
  content:"";
  /*描画位置*/
  position: absolute;
  bottom:0;
  right:0;
  /*矢印の形状*/
  width:1px;
  height: 50px;
  background: var(--main-color) !important;
}


.full-slide{
  height: calc(100vh);
  width: 100vw;
}

#about-slide1{
  background-color: var(--base-color);
}

#solution-slide1{
  background-color: white;
}

#contact-background{
  background-color: white;
}
#projects-background{
  background-color: var(--base-color);
}

.midashi{
  padding-top: 82px;
  text-align: center;
  font-weight: bold;
  font-size: 45px;
  color: var(--main-color);
  line-height: 1.2em;
}
.midashi-sub{
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  color: var(--main-color);
  line-height: 1em;
}
.midashi-2{
  text-align: center;
  font-weight: bold;
  font-size: 35px;
  color: var(--main-color);
  line-height: 1.2em;
  margin-bottom: 50px;
}
.midashi-3{
  text-align: center;
  font-weight: bold;
  font-size: 30px;
  color: var(--main-color);
  line-height: 1.2em;
  margin-bottom: 50px;
}
@media screen and (max-width: 800px) {
  .midashi-2{
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    color: var(--main-color);
    line-height: 1.2em;

    margin-bottom: 40px;
  }
  .midashi-3{
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    color: var(--main-color);
    line-height: 1.2em;
    margin-bottom: 50px;
  }
}



.main-text{
  margin-top: 100px;
  width: 50vw;
  margin-left: 25vw;
  margin-right: 25vw;
  margin-bottom: 50px;

  font-size: 18px;
  font-weight: bold;
  line-height: 2em;
}

@media screen and (max-width: 600px) {
  .main-text{
    margin-top: 60px;
    width: 75vw;
    margin-left: 12.5vw;
    margin-right: 12.5vw;
    margin-bottom: 40px;

    font-size: 16px;
    font-weight: bold;
    line-height: 2em;
  }

}

.paragraph{
  margin-bottom: 15px;
}


.contact-iframe{
  margin-top: 40px;
  margin-left: 12.5vw;
  margin-right: 12.5vw;
  width: 75vw;
  height: 70vh;
}


.video-1{
  width: 100%;
}

.event-info-title-custom{
  background-color: white!important;
  color: var(--main-color);
}
.event-info-custom{
  background-color: var(--base-color)!important;
}
.project-container{
  margin-top: 20px;
  margin-bottom: 50px;
  margin-left: 10vw;
  margin-right: 10vw;
  width: 80vw;
}

.project-item-margin{
  margin-top: 50px!important;
}

.project-img{
  width: 100%;
}

.project-caption{
  margin-top: 10px;
  text-align: center;
  font-size: 16px;
}

.button-center{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
}
.button-main {
  font-weight: bold;
  font-size: 18px;
  color: var(--main-color);
  letter-spacing: 0.1em;
  background-color: var(--base-color);
  border-radius: 40px;
  border: solid 1.5px var(--main-color);
  width: 300px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all  0.2s ease;
}
.button-main:hover {
  transform: scale(1.05);
  background-color: var(--main-color);
}
.-button-link, .button-link:link, .button-link:visited, .button-link:active {
  color: var(--main-color)!important;
  text-decoration: none;
  cursor: pointer;

  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all  0.3s ease;
}
.button-link:hover{
  color: var(--accent-color1)!important;
}

.margin-bottom-100{
  margin-bottom: 100px;
}

.border-black{
  border: 1px solid var(--main-color);
}
