:root {
  --text-color: #212529;
  --bg-color: #fff;
  --link-color: #1473e6;
  --footer-color: #fff;
  --footer-bg-color: #222;
  --footer-child-nav-link-color: #ddd;
  --submit-color: #fff;
  --submit-bg-color: rgb(109, 165, 180);
  --submit-hover-color: #fff;
  --submit-hover-bg-color: #629bab;
}

/* @media only screen and (max-width: 2100px) {
html {
  font-size: .785vw;
}
} */

/* article {
  text-align: left;
} */

/* .container {
  padding: 0 6.4rem;
  margin: 0 auto;
  max-width: 130rem;
  position: relative;
} */

/* ------------------ general ------------------ */
a:hover,
a:active,
a:visited,
a:focus {
  text-decoration: none;
  color: var(--text-color, #212529);
}

/* ------------------ header ------------------ */
.header {
  margin-top: 4vh;
  margin-bottom: 4vh;
}
@media (min-width: 1024px) {
  .header {
    margin-top: 260px;
    margin-bottom: 360px;
  }
}

/* ------------------ footer ------------------ */
/* b2b.cssからコピー */
.menu-bar {
  width: 100%;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
}
.menu {
  display: flex;
  background: rgba(255, 255, 255, 100);
  text-align: center;
  align-items: center;
  position: relative;
}
.menu-right {
  display: inline-flex;
  text-align: center;
  align-items: center;
}
.menu-bar p {
  margin: 0;
  padding: 0;
}
.menu-bar ul {
  display: inline-flex;
  text-align: center;
  align-items: center;
  list-style: none;
  color: #fff;
  margin: 0 0 0 30px;
  padding: 0;
}
.menu-bar ul li {
  margin: 0 3px;
  padding: 10px 0;
  position: relative;
}
.menu-bar .logo {
  width: 240px;
  border: none;
  margin: 0;
  padding: 0;
}
.menu a {
  color: #212529;
  text-decoration: none;
  padding: 10px 20px;
}
.menu a:hover {
  text-decoration: none;
}
.menu .active::before {
  content: "   ";
  border-top: 5px solid #1473e6;
  position: absolute;
  top: 0;
  width: 70%;
  text-align: center;
  left: 50%;
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
}
.menu-bar .button {
  margin: 0 5px;
  padding: 10px 20px;
  font-size: 14px;
}
.menu-right p {
  margin: 0 30px;
  line-height: 1.4;
}
.menu-right .tel {
  font-weight: 600;
}
.menu-right .small {
  font-size: 80%;
}
footer {
  background: #222222;
  color: #fff;
  padding: 2rem 0 1rem;
}
footer .menu {
  background: transparent;
}
footer .menu a {
  color: #fff;
}
footer .menu .active::before {
  display: none;
}
.footer-copyright {
  display: block;
  color: var(--footer-child-nav-link-color);
  font-size: 0.8rem;
  text-align: center;
  width: 100%;
  margin: 0;
  padding: 2rem 0 0;
}
@media (max-width: 639px) {
  .menu-bar {
    padding: 0;
  }
  .menu {
    width: 100%;
    height: 50px;
  }
  .menu-bar a {
    padding: 0;
    color: #fff;
    background-color: #383838;
  }
  .menu-bar .menu > a {
    background-color: transparent;
  }
  .menu-right {
    display: none;
  }
  .menu .active::before {
    display: none;
  }
  footer .menu-bar {
    flex-wrap: wrap;
  }
  footer .menu {
    width: 100%;
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column-reverse; /* 追加 */
  }
  footer .menu-bar a {
    background-color: transparent;
  }
  footer .menu-bar .menu > a {
    flex-basis: 100%;
  }
  footer .menu-bar .menu ul {
    flex-basis: 100%;
    flex-wrap: wrap;
    margin: 20px 30px;
    justify-content: center;
  }
  footer .menu-bar .menu ul li {
    flex-basis: 40%;
    text-align: center;
  }
}
/* ------------------ section general ------------------ */
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 0;
  /* padding: 60px 0; */
}
section p {
  font-size: 1.2rem;
}
@media (min-width: 1024px) {
  section {
    /* padding: 160px 0; */
    margin-bottom: 120px;
    width: 100%;
  }
  section p {
    font-size: 1.2rem;
  }
}

/* section h2 {
  font-size: 1rem;
} */
section h2 {
  font-family: "Open Sans Condensed", "Helvetica Neue", Helvetica, Arial;
  font-weight: bold;
  font-size: 54px;
  /* -webkit-transform: scaleX(1.1);
  transform: scaleX(1.1);
  -webkit-transform-origin: left center;
  transform-origin: left center; */
  text-align: center;
  margin-bottom: 55px;
}

section h3 {
  font-size: 37px;
}
section h4 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}
section h4:not(:first-child) {
  margin-top: 50px;
}
h4 + p {
  margin-bottom: 10px;
}
.centered-text {
  text-align: center;
}

/* ------------------ about ------------------ */


/* ------------------ services ------------------ */
.panels {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.panels .panel {
  flex-basis: 100%;
  margin: 4px;
  padding: 40px 30px;
  background-color: #f6f6f6;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .panels .panel {
    flex-basis: 43%;
    margin: 30px;
  }
}
.panel h3 {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 20px;
}
.panel h3.a {
  text-decoration: none;
  color: var(--text-color, #212529);
}
.panel a.button {
  color: #fff;
  background-color: var(--submit-bg-color, rgb(109, 165, 180));
  border-color: var(--submit-bg-color, rgb(109, 165, 180));
  font-weight: bold;
  /* margin-top:auto; */
  /* margin: 30px 0 0; */
  /* margin-top: 30px; */
}
.panel p {
  margin-bottom: 30px;
}
.panel a.button:last-child {
  margin-top: auto;
}
.panel a.button:not(:last-child) {
  margin-bottom: 20px;
}
.panel a.button:hover,
.panel a.button:focus {
  background-color: var(--submit-hover-bg-color, #629bab);
  border-color: var(--submit-hover-bg-color, #629bab);
}
.panel a.button:active,
.panel a.button:visited {
  background-color: var(--submit-bg-color, rgb(109, 165, 180));
  border-color: var(--submit-bg-color, rgb(109, 165, 180));
}
.panel a.button-disabled,
.panel a.button-disabled:visited,
.panel a.button-disabled:hover,
.panel a.button-disabled:active,
.panel a.button-disabled:focus {
  background-color: #999;
  border-color: #999;
}

/* ------------------ form ------------------ */
input[type="submit"] {
  background-color: var(--submit-bg-color, rgb(109, 165, 180));
  border-color: var(--submit-bg-color, rgb(109, 165, 180));
}
input[type="submit"]:hover {
  background-color: var(--submit-hover-bg-color, #629bab);
  border-color: var(--submit-hover-bg-color, #629bab);
}

/* ------------------ footer ------------------ */


/* ------------------ animation ------------------ */
.ml9 {
  position: relative;
  font-weight: 200;
  font-size: 4.1875em;
  /* font-size: 67.7825px; */
}
.ml9 .text-wrapper {
  position: relative;
  display: inline-block;
  padding-top: 0.2em;
  padding-right: 0.05em;
  padding-bottom: 0.1em;
  overflow: hidden;
}
.ml9 .letters {
  padding: 0 1.2rem;
  margin: 0.3rem 0;
  opacity: 0;
  max-width: 100%;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .ml9 .letters {
    padding: 0 1.2rem;
    margin: 1rem 0;
  }
}
.ml9 .letters a,
.ml9 .letters a:hover,
.ml9 .letters a:active,
.ml9 .letters a:visited,
.ml9 .letters a:focus {
  /* text-decoration: none; */
  color: #000;
}
.ml9 .letters a:hover {
  text-decoration: none;
  border-bottom: none;
  /* color: #000; */
}
.ml9 .letter {
  transform-origin: 50% 100%;
  display: inline-block;
  line-height: 1em;
}
.tags-desktop {
  font-size: 10.75vw;
  letter-spacing: -0.1rem;
  cursor: default;
  line-height: 1.35;
  font-feature-settings: "kern" off;
  -webkit-font-kerning: none;
  font-kerning: none;
}
.tags-container span:lang(ja) {
  font-size: 9.17vw;
}
@media (min-width: 1024px) {
  .tags-desktop {
    /* font-size: 4.75vw; */
    font-size: 6.25vw;
    letter-spacing: -0.36rem;
  }
  .tags-container span:lang(ja) {
    /* font-size: 4.05vw; */
    font-size: 5.05vw;
  }
}
.tags-desktop .is-red {
  color: #db2e20;
}
.tags-desktop .row {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
  margin: 0;
  white-space: nowrap;
  width: 128vw;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .tags-desktop .row {
    justify-content: space-between;
    margin: 1rem 0;
    width: 100%;
  }
}
.tags-desktop .current div,
.tags-desktop .newone div {
  display: inline-block;
  min-width: 0.2em;
}
.background-animation-container {
  position: relative;
}
.background-animation-bg {
  position: absolute;
  top: 0;
  left: 0;
  /* background: red; */
  width: 100%;
  height: 100%;
  /* background-color: #e00; */
  background-color: #333;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
}
.background-animation-text {
  opacity: 0;
}
.background-animation-text-show {
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.16, 1.19, 0.55, 0.96) 0.3s;
}

.background-animation-active {
  /* width: 100%; */
  -webkit-transform-origin: top left;
  -ms-transform-origin: top left;
  transform-origin: top left;
  /* -webkit-transition: -webkit-transform 1.0s cubic-bezier(.16,1.19,.55,.96);
transition: -webkit-transform 1.0s cubic-bezier(.16,1.19,.55,.96); */
  transition: transform 0.4s cubic-bezier(0.16, 1.19, 0.55, 0.96);
  /* transition: transform 1.0s cubic-bezier(.16,1.19,.55,.96), -webkit-transform 1.0s cubic-bezier(.16,1.19,.55,.96); */

  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;

  /* transform: matrix(0, 0, 0, 1, 0, 0);
transform-origin: 100% 50% 0px; */
}
.background-animation-deactive {
  /* width: 100%; */
  -webkit-transform-origin: top left;
  -ms-transform-origin: top left;
  transform-origin: top left;
  /* -webkit-transition: -webkit-transform 1.0s cubic-bezier(.16,1.19,.55,.96) 1.0s;
transition: -webkit-transform 1.0s cubic-bezier(.16,1.19,.55,.96) 1.0s; */
  transition: transform 1s cubic-bezier(0.16, 1.19, 0.55, 0.96);
  /* transition: transform 1.0s cubic-bezier(.16,1.19,.55,.96), -webkit-transform 1.0s cubic-bezier(.16,1.19,.55,.96); */

  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  /* -webkit-transform-origin: right top; */
  transform-origin: right top;

  /* transform: matrix(0, 0, 0, 1, 0, 0);
transform-origin: 100% 50% 0px; */
}
.fadein {
  opacity: 0;
  transform: translate(0, 100px);
  transition: all 1s;
}
.fadein.scrollin {
  opacity: 1;
  transform: translate(0, 0);
}
