/* 共通 */

@charset UTF-8;

html,body,h1,h2,h3,div,p,span,img,a,ul,li,table,tr,th,td,dl,dt,dd,article {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  color: #253044;
  font-family: 'Roboto','Noto Sans JP', sans-serif;;
  font-size: 16px;
  line-height: 1.7em;
  list-style: none;
  text-align: left;
  vertical-align: baseline;
}

p .text_b {
    background: linear-gradient(transparent 50%,rgb(168, 214, 231) 40%);
    font-weight: bold;
}

a {
  cursor: pointer;
  text-decoration: none;
}
a:hover {
  opacity: .5;
}

img {
  width: 100%;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

.span1 {
  color: #ff626d;
}

.sp {
  display: none;
}
.pc {
  display: block;
}
/* header */

header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  line-height: 1.2em;
}

header h1 {
  width: 20%;
  max-width: 400px;
  padding: 5px 0 0;
}

nav {
  width: 55%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3%;
}

nav ul {
  width: 36%;
  display: flex;
  justify-content: space-between;
}
nav ul li {
  width: 56%;
}
nav ul li:nth-child(2) {
  width: 28%;
}
nav ul li a {
  display: flex;
  gap: 2%;
}
nav ul li a p {
  font-size: min(1.3vw, 1.13rem);
}
nav ul li a:before {
  width: 25px;
  content: '';
  background: url('../img/header/ico_price.png') no-repeat;
  background-size: contain;
}
nav ul li:nth-child(2) a:before {
  background: url('../img/header/ico_info.png') no-repeat;
  background-size: contain;
}

nav .tel p {
  text-align: center;
}
nav .tel p:nth-child(2) {
  font-size: min(2.6vw, 2.5rem);
  line-height: 1;
}
nav .tel p:nth-child(2) span {
  font-size: 1.4rem;
  color: #253044;
}

nav .contact {
  width: 25%;
  max-width: 400px;
  background: #4087c7;
  position: relative;
  overflow: hidden;
}
nav .contact:hover {
  opacity: .8;
}
nav .contact:after {
  width: 30px;
  height: 20px;
  background: #ffee58;
  content: '';

  position: absolute;
  right: 0;
  bottom: 0;
  transform-origin: right top 0;
  transform: rotate(-45deg);
}
nav .contact a {
  padding: 40px 20px;
  display: block;
}
nav .contact a p {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: min(1.5vw, 1.4rem);
  gap: 3%;
  justify-content: center;
  line-height: 1;
}
nav .contact a p:before {
  width: 12%;
  content: url('../img/header/ico_contact.svg');
}

@media (max-width: 1920px) {
  section.mv > div:first-child h1 {
    font-size: min(2.4vw, 3rem);
  }
  nav {
    width: 76%;
  }
}


@media (max-width: 1280px) {
  html,body,h1,h2,h3,div,p,span,a,ul,li,table,tr,th,td,dl,dt,dd,article {
    font-size: 14px;
  }
  nav {
    width: 80%;
  }
}

@media (max-width: 768px) {

  html,body,h1,h2,h3,div,p,span,a,ul,li,table,tr,th,td,dl,dt,dd,article {
    font-size: 14px;
  }
  .sp {
    display: block;
  }
  .pc {
    display: none;
  }
  header {
    align-items: stretch;
  }

  header > * {
    font-size: 0.8rem;
  }
  header h1 {
    width: 45%;
    max-width: 250px;
  }
  nav {
    width: 55%;
    justify-content: end;
  }
  nav ul {
    width: 66%;
    height: 100%;
  }
  nav ul li,
  nav ul li:nth-child(2) {
    width: 55%;
    padding: 4vw 0;
    display: flex;
    height: 100%;
  }
  nav ul li:nth-child(2) {
    width: 45%;
  }
  nav ul li a {
    align-items: center;
    flex-direction: column;
    flex-grow: 1;
    font-size: 0.8rem;
    gap: 6px 0;
    justify-content: center;
    text-align: center;
  }
  nav ul li a p {
    flex-grow: 1;
    font-size: 0.8rem;
    line-height: 1;
    text-align: center;
  }

  nav ul li a:before {
    height: 26px;
  }
  nav .tel {
    display: none;
  }
  nav .contact {
    width: 30%;
    height: 100%;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
  }
  nav .contact a {
    padding: 10px 2px 16px;
  }
  nav .contact a p {
    flex-grow: 1;
    font-size: 0.72rem;
    letter-spacing: -0.1em;
    flex-direction: column;
    text-align: center;
  }
  nav .contact a p:before {
    width: 40%;
    margin: 0 auto;
  }