/*************************************

共通

**************************************/
html,
body {
  font-family: 'Noto Sans JP', sans-serif; 
  margin: 0;
  line-height: 2em;
  font-weight: 500;
  scroll-behavior: smooth;
}

.content {
  padding: 48px 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.break {
  display: inline-block;
}

/**********************************

  下層ページfv

***********************************/

.article #fv {
  width: 100%;
  height: 250px;
  position: relative;
}

.article #fv hgroup {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1200px);
  padding-left: 16px;
  box-sizing: border-box;
}

.article #fv hgroup h1 {
  font-size: clamp(16px, 5vw, 24px);
  color: white;
  text-shadow: 0 5px 10px rgba(1, 0, 136, 1);
  margin: 0;
  font-weight: 500;
}

div.fv hgroup p,
#fv hgroup p {
  color: white;
  font-size: clamp(32px, 10vw, 80px);
  background: linear-gradient(to right,#010088, #0000FB);
  width: fit-content;
  font-family: 'outfit', sans-serif;
  font-weight: bold; 
  margin: 0;
  padding: 0 8px;
  display: block;
  line-height: 1em;
}


.article #fv hgroup .inner {
  display: inline-block;
  padding: 4px 8px;
  margin: 4px 0;
  background: linear-gradient(to right, #010088, #0000FB);
  width: fit-content;
}

@media(min-width: 640px) {
  .article #fv {
    height: 400px;
  }
}

@media(min-width: 810px) {
  .article.civil #fv hgroup .inner {
    background: none;
  }

  .article.civil #fv hgroup p {
    background: linear-gradient(to right, #010088, #0000FB);
  }
}

/*********************************

下層ページ　ページ内ナビ

**********************************/

.article ul.navi {
  background: #01009D;
  margin: 0;
  padding: 16px 0;
  text-align: center;
}

.article .navi li {
  list-style: none;
  width: fit-content;
  display: inline-block;
}

.article .navi li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 8px 48px 8px 32px;
  position: relative;
  width: fit-content;
}

.article .navi li a::before {
  position: absolute;
  content: '';
  width: 10px;
  height: 10px;
  right: 0;
  top: 50%;
  transform: translate(-50%);
  clip-path: polygon(0 0, 100% 0, 50% 70%);
  background: white;
  transition: .2s;
}

.article .navi li:hover a::before {
  top: 70%;
}

/*********************************

見出し

*********************************/

hgroup.basic-l {
  margin: 32px 0;
}

hgroup.basic-l p {
  color: #0000FB;
  position: relative;
  padding-left: 16px;
  font-weight: 500;
  margin: 0;
}

hgroup.basic-l p::before {
  position: absolute;
  content: '';
  width: 8px;
  height: 8px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: #0000FB;
}

hgroup.basic-l h2 {
  margin: 0;
  font-size: clamp(28px,6vw, 32px);
  font-weight: 500;
  line-height: 1.5em;
}

hgroup.basic-c {
  margin: 32px 0;
}

hgroup.basic-c p {
  color: #0000FB;
  padding-top: 8px;
  position: relative;
  text-align: center;
  width: fit-content;
  margin: 0 auto;
}

hgroup.basic-c p::before {
  position: absolute;
  content: '';
  width: 8px;
  height: 8px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #0000FB;
}

hgroup.basic-c h2 {
  text-align: center;
  margin: 0;
  font-size: clamp(28px,8vw, 40px);
  font-weight: 500;
  line-height: 1.5em;
}

/********************************

  ボタン

********************************/

.btn-1 {
  display: block;
  background: white;
  border: solid 2px white;
  color: #010088;
  font-weight: 500;
  width: min(90%, 300px);
  position: relative;
  text-decoration: none;
  text-align: left;
  padding: 16px 32px;
  box-sizing: border-box;
  margin: 16px auto;
  transition: .2s;
}

.btn-1:hover {
  background: #010088;
  color: white;
}

.btn-1::before {
  position: absolute;
  content: '';
  width: 24px;
  aspect-ratio: 200/170;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background-image: url(b-arw.png);
  background-repeat: no-repeat;
  background-size: contain;
  transition: .2s;
}

.btn-1:hover::before {
  right: 16px;
  background-image: url(w-arw.png);
}

/*********************************

    recruit

**********************************/

#recruit {
  padding: 48px 18px;
}

#recruit hgroup.basic-c p {
  color: white;
}

#recruit hgroup.basic-c p::before {
  background: white;
}

#recruit hgroup.basic-c h2 {
  color: white;
}

#recruit ul.job {
  padding: 0;
}

#recruit ul.job li {
  list-style: none;
  padding: 32px 8px;
  text-align: center;
  background: rgba(1,0,157, .7);
  margin: 16px auto;
}

#recruit ul.job li h3 {
  color: white;
}

#recruit:has(ul li:nth-of-type(1) .btn-1:hover) {
  background-image:  linear-gradient(rgba(1,0,136,.6), rgba(1,0,136,.6)), url(works/civil-engineering/civil_fv.jpg);
  background-blend-mode: multiply;
}

#recruit:has(ul li:nth-of-type(2) .btn-1:hover) {
  background-image:  linear-gradient(rgba(1,0,136,.6), rgba(1,0,136,.6)), url(works/architecture/archi_fv.jpg);
  background-blend-mode: multiply;
}

@media(min-width: 640px) {
  #recruit ul.job {
      display: flex;
      justify-content: space-around;
      max-width: 1000px;
      margin: 0 auto;
  }

  #recruit ul.job li {
      width: 45%;
      box-sizing: border-box;
  }
}

/********************************

	ハンバーガー関係

********************************/

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(to bottom, rgba(255,255,255,100) 30%, rgba(255,255,255,60%) 80%, rgba(122,86,86,0) 100%);
  z-index: 9999;
}

.ham-box {
  display: flex;
  justify-content: space-between;
  padding: 0.5em;
  height: auto;
  align-items: center;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-img {
  position: relative;
  z-index: 900;
  margin: 0.5em;
  box-sizing: border-box;
  width: 40px;
}

.img1 {
  position: relative;
  z-index: 1000;
  width: auto;
  max-height: 80px;
  flex-grow: 0;
}

.img2 {
  position: relative;
  z-index: 1000;
  width: 100px;
  flex-grow: 0;
}

.header-img {
  display: flex;
  align-items: center;
  justify-content: start;
  flex-flow: row nowrap;
  width: 100%;
}

#head-top {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#head-top .logo p {
  color: black;
  min-width: 160px;
  font-size: 1.25em;
  margin: 0;
}

#head-top .logo p.sub {
  font-size: 14px;
  color: #010088;
  font-weight: bold;
  line-height: 1em;
}

/********** スマホ関係 **********/
.hamburger_btn {
  background-color: #010088;
  height: 65px;
  width: 65px;
  color: white;
  position: relative;
  z-index: 1000;
  margin-left: auto;
  margin-right: 8px;
}

.hamburger_btn span {
  display: block;
  background-color: white;
  width: 32px;
  height: 2px;
  transition: transform .3s, opacity .3s;
  margin: 0 auto;
  position: absolute;
  left: 17px;
}

header.menuopen .hamburger_btn span {
  background-color: white;
}

.hamburger_btn span:nth-child(1) {
  top: 13px;
}

.hamburger_btn span:nth-child(2) {
  top: 23px;
}

.hamburger_btn span:nth-child(3) {
  top: 33px;
}

.hamburger_btn p {
  font-size: 10px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 0 12px;
  line-height: 1em;
}

.menu {
  transform: translateX(100%);
  transition: all 1s;
  background-image: url(gold-back.png);
  background-size: cover;
  background-repeat: no-repeat;
  position: fixed;
  z-index: 900;
  top: 0;
  right: 0;
  width: 90%;
  gap: 1em;
  height: 100vh;
  overflow-y: scroll;
  background: rgba(255,255,255,.95);
}

header .entry-btn,
footer .entry-btn {
  display: block;
  width: min(80%, 300px);
  padding: 16px;
  color: white;
  background: linear-gradient(to right, #010088, #0000C9);
  text-decoration: none;
  font-size: 1em;
  text-align: center;
  line-height: 1.2em;
  margin: 16px auto;
  box-sizing: border-box;
  border: solid 2px transparent;
}

header .entry-btn:hover,
footer .entry-btn:hover {
  border: solid 2px #0000C9;
  color: #0000C9;
  background: white;
}

header .entry-btn span {
  display: block;
  font-size: 0.75em;
  line-height: 1em;
  width: 100%;
  gap: 1em;
}

/*-------------------------------

ハンバーガーボタン押された後の動き

-------------------------------*/
.menuopen .menu {
  transform: translateX(0%);
}

.hamburger_btn .addspan:nth-child(1){
  margin-top: 10px;
  transform: rotate(45deg);
}

.hamburger_btn .addspan:nth-child(2){
  display: none;
}

.hamburger_btn .addspan:nth-child(3){
  margin-top: -10px;
  margin-bottom: 10px;
  transform: rotate(-45deg);
}

/********** ハンバーガーメニュー内のデザイン **********/
.head_nav {
  padding: 0;
  max-width: 400px;
  margin: 6em auto 0;
  margin-top: 6em;
  max-width: 600px;
}

.head_nav li {
  list-style: none;
  font-weight: 800;
  font-size: 18px;
}

.head_nav li a {
  text-decoration: none;
  padding: 12px 10px;
  color: #2A2A2A;
  transition: .2s;
  display: block;
}

.head_nav li a:hover {
  color: #0000FB;
}

.head_nav li ul li {
  position: relative;
}

.head_nav .samebtn li::before {
  position: absolute;
  content: '';
  width: 8px;
  aspect-ratio: 1/1;
  top: 50%;
  left: -16px;
  transform: translateY(-50%);
  background: #0000FB;
}

.head_nav li ul li::before {
  top: 17%;
}

.head_nav li:nth-child(3) {
  position: relative;
  left: -38px;
}

.head_nav .evbtn {
  display: none;
}

/********** PC関係  640pxからグロナビに切り替わる**********/  
@media(min-width:868px) {

  .hamburger_btn {
    display: none;
  }

  .menu {
    transform: translateY(0%);
    transition: all 1s;
    background-image: none;
    position: static;
    z-index: 900;
    width: 100%;
    height: 65%;
    gap: 1em;
    overflow-y: visible;
    background: none;
  }

  .inner {
    display: flex;
    justify-content: right;
    align-items: center;
  }

  .head_nav {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    max-width: none;
  }

  .head_nav li:nth-child(3) {
    left: 0;
  }

  .head_nav .evbtn {
    display: block;
  }

  .head_nav li {
    font-size: 1em;
    position: relative;
  }

  .head_nav li a {
    padding: 8px 10px;
  }

  .head_nav .opbtn {
    position: absolute;
    top: 2.5em;
    left: -38px;
    margin: 0;
    width: 13em;
    display: none;
    color: white;
    z-index: 9999;
  }

  .head_nav li ul li::before {
    display: none;
  }

  .head_nav li:hover ul,
  .head_nav li.active ul {
    display: block;
  }

  .head_nav li ul li a {
    color: white;
  }

  .head_nav li ul li:hover a {
    color: #cacaff;
  }

  .head_nav li ul li {
    background: #0000C9;
  }

  .ham-box {
    justify-content: space-between;
  }

  .header-img {
    width: fit-content;
  }

  header .entry-btn {
    width: 150px;
    margin: 0 16px;
    min-width: 150px;
  }
}

@media(min-width:1280px) {
  .ham-box {
    margin: 0 auto;
  }
}

/*****************************************

  フッター

******************************************/

footer {
  padding: 6em 18px 2em;
  border-bottom: solid 16px #0000C9;
  position: relative;
}

footer::before {
  position: absolute;
  content: '';
  width: 90%;
  height: 2px;
  background: #0000C9;
  top: 3em;
  left: 50%;
  transform: translateX(-50%);
}

footer .c-name img {
  width: 30%;
  display: block;
}

footer #head-top p {
  color: black;
  font-size: clamp(1.25em,3vw,2em);
}

footer ul {
  padding: 0;
  margin: 16px auto;
  width: 12em;
}

footer ul li {
  list-style: none;
}

footer ul li a:hover {
  color: #0000C9;
}

footer ul li a {
  text-decoration: none;
  color: #2A2A2A;
  padding: 8px 0;
  display: block;
  font-weight: bold;
  width: 11em;
}

footer ul li ul {
  padding: 0;
  margin: 0;
}

footer ul li ul li {
  position: relative;
  padding-left: 2em;
}

footer ul li ul li::before {
  position: absolute;
  content: '';
  width: 10px;
  height: 2px;
  top: 50%;
  left: 1em;
  transform: translateY(-50%);
  background: #010088;
}


footer .entry-btn {
  margin: 0;
}

.copyright {
  color: #0000C9;
  text-align: center;
  margin-top: 3em;
}

@media(min-width: 600px) {
  footer {
    padding-bottom: 0;
  }

  footer .inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
  }

  footer .c-name {
    width: 40%;
    box-sizing: border-box;
    max-width: 300px;
    min-width: 25em;
  }

  footer ul {
    box-sizing: border-box;
    margin: 0;
  }

  footer .copyright {
    margin-top: 6em;
  }
}

@media(min-width: 768px) {
  footer div.ul-wrp {
    display: flex;
    justify-content: right;
  }

  footer ul li ul li {
    padding-left: 1em;
  }

  footer ul li ul li::before {
    left: 0;
  }
}