@charset "UTF-8";

:root {
  --corporate-color: #4169e1;
  --service-flow-color: #4D9BC1;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ===== body ===== */

body {
  font-family: "新丸ゴ", "Yu Gothic", "YuGothic", "Arial", "Helvetica", sans-serif;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

ul {
  margin-top: 5px;
}

ol {
  margin-top: 5px;
}

li {
  margin-top: 10px;
  margin-left: 30px;
  padding: auto;
}

/* ===== header ===== */

header {
  position: sticky;
  width: 100%;
  top: 0;
  color: white;
  background-color: var(--corporate-color);
  text-align: center;
  z-index: 10;
}

header hgroup {
  padding-top: 6px;
  padding-bottom: 7px;

}

.company-logo {
  max-width: 150px;
}

header hgroup p {
  font-size: 1.2em;
}

header hgroup a {
  display: block;
  color: white;
  text-decoration: none;
}

.navi ul {
  height: 100%;
  padding: 0.2em 1em;
  background:  #f5f5f5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px auto;
  border-bottom: 2px solid var(--corporate-color);
  font-size: 1.2em;
}

.navi li {
  margin: 0 1em;
  list-style-type: none;
}

.navi a {
  color: #000;
  text-decoration: none; 
}

.navi a:hover {
  text-decoration: underline;
}

/* ===== main ===== */

main {
  margin: 0 auto;
  font-size: 1.125em;
}

main section {
  max-width: 800px;
  margin: -100px auto auto;
  padding: 100px 20px 0;
}

main h2 {
  margin-top: 20px;
}

main h2 + hr {
  height: 3px;
  width: 50%;
  background-color: var(--corporate-color);
  border: none;
}

main p {
  margin-top: 15px;
  line-height: 1.8;
  text-align: justify;
}

#top-image {
  margin: 0 0 1em;
  width: 100%;
  padding: 0;
}

.company-name {
  font-size: 2em;
  line-height: 1.3em;
  font-weight: 500;
}

/* ===== footer ===== */

footer {
  margin-top: 30px;
  background-color: var(--corporate-color);
  text-align: center;
}

footer p {
  color: #fff;
  padding-top: 10px;
  padding-bottom: 10px;  
}

/* ===== service ===== */

#service .list-box {
  position: relative;
  display: inline-block;
  margin: 3.5em 0 0.5em;
  padding: 0 1em 0.5em 0.5em;
  border: solid 2px var(--service-flow-color);
}

#service .list-box span {
  position: absolute;
  top: -30px;
  left: -3px;
  padding: 2px 10px;
  height: 30px;
  line-height: 25px;
  font-size: 17px;
  font-weight: 500;
  background: var(--service-flow-color);
  color: #fff;
  border-radius: 5px 5px 0 0;
}

#service h3 {
  padding: 0.25em 0.5em;
  background: transparent;
  border-left: solid 5px var(--service-flow-color);
  margin-top: 2em;
  margin-bottom: 2em;
}

#service .service-flow {
  padding-left: 0;
}

#service .service-flow > li {
  list-style-type: none;
  position: relative;
  padding-left: 50px;
}

#service .service-flow > li:not(:last-child) {
  padding-bottom: 10px;
}

#service .service-flow > li .flow-icon {
  width: 2em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  border-radius: 100vh;
  display: inline-block;
  background: var(--corporate-color);
  color: #fff;
  position: absolute;
  left: 0;
}

#service .service-flow > li .flow-text {
  line-height: 2em;
  text-align: center;
  border-radius: 100vh;
  display: inline-block;
  background: #fff;
  color: var(--service-flow-color);
  position: absolute;
  left: 0;
  border:3px solid var(--service-flow-color);
  font-weight: 600;
  padding: 0 10px;
}

#service .service-flow > li:not(:last-child)::before {
  content: '';
  background: #c3c3c3;
  width: 4px;
  height: 100%;
  position: absolute;
  top: calc(50% - -30px);
  left: 21px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

#service .service-flow > li dl dt {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--corporate-color);
  margin-left: 5px;
}

#service .service-flow > li dl dd {
  margin-left: 5px;
}

/* ===== about-us ===== */

#about-us h2 {
  margin-top: 50px;
}

#company-info {
  width: 100%;
  margin-top: 1em;
  display: flex;
  flex-direction: column;
}

#company-info div {
  display: flex;
  margin-top: 0.5em;
}

#company-info dt {
  width: 4em;
  font-weight: bold;
  text-align: right;
}

#company-info dd {
  font-weight: normal;
  text-align: left;
  padding-left: 0.5em;
  align-items: top;
  width: calc(100% - 4em);
}

.break {
  display: none;
}

/* ===== cases ===== */

#cases .case {
  position: relative;
  margin: 1.5em 1em 0 1em;
  padding: 1em;
  background: #fffff0;
  border-radius: 20px;
  border: solid 2px #d2691e;
}

#cases .case:first-child {
  margin-top: 3em;
}

#cases .case:last-child {
  margin-bottom: 3em;
}

/* ===== engineers ===== */

#engineers img {
  width: 50%;
  margin-top: 20px;
  margin-bottom: 20px;
}

#engineers li {
  list-style: none;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 1em;
}

/* ====================
Smartphone
==================== */

@media screen and (max-width: 768px) {
  header hgroup h1 {
    font-size: 2em;
  }

  header hgroup p {
    font-size: 1em;
  }

  .navi {
    width: 70%;
    height: auto;
    background-color: #f5f5f5;
    position: fixed;
    top: 0%;
    right: -80%;
    z-index: 20;
    transition: all 0.6s;
  }

  .navi.active {
    right: 0;
  }

  .navi .menu {
    width: 100%;
    height: auto;
    flex-direction: column;
    overflow: auto;
    padding-bottom: 30px;
  }

  .navi .menu li {
    padding: 10px 0;
    margin-left: 0;
  }

  .hamburger {
    width: 50px;
    height: 50px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 30;
  }

  .hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    display: inline-block;
    position: absolute;
    left: 10px;
    transition: all 0.4s;
  }

  .hamburger span:nth-of-type(1) {
    top: 16px; 
  }

  .hamburger span:nth-of-type(2) {
    top: 25px;
  }

  .hamburger span:nth-of-type(3) {
    top: 34px;
  }

  .hamburger.active span:nth-of-type(1) {
    top: 24px;
    transform: rotate(-45deg);
    background-color: var(--corporate-color);
  }

  .hamburger.active span:nth-of-type(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-of-type(3) {
    top: 24px;
    transform: rotate(45deg);
    background-color: var(--corporate-color)
  }

  #top-image {
    margin: 0 0 0.5em;
  }

  .break {
    display: block;
  }

  #engineers img {
    width: 70%;
  }
}
