
/* Style for PCs */
@media screen and (min-width: 1025px) {

/* PCではモバイルメニューボタンを使用しない */
.menubn {
  display: none;
}

/* Header */
.site-header {
  width:100%;
  height: 120px;
  display: block;
  position: fixed;
  top:0px;
  left:0px;
  z-index:15000; 
  transition: .4s all;
}
.site-header .site-logo {
  width:400px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top:20px;
  left:50%;
  transform: translateX(-50%);
  z-index:15500;
  backdrop-filter: blur(10px);
  transition: .4s all;
}
.site-header .site-logo a {
  width:100%;
  height: 100px;
  display: block;
  text-indent: -9999px;
  background-image: url(../img/logo_b.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% auto;
}


/* Header(active) */
.site-header.site_active {
  width:100%;
  height: 100px;
  display: block;
  position: fixed;
  top:0px;
  left:0px;
  z-index:15000;
background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}
.site-header.site_active .site-logo {
  width:400px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top:0px;
  left:3%;
  transform: translateX(0%);
  z-index:15500;
  backdrop-filter: blur(0px);
}
.site-header.site_active .site-logo a {
  width:100%;
  height: 100px;
  display: block;
  text-indent: -9999px;
  background-image: url(../img/logo_b.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% auto;
}



/* GlobalMenu */
.globalmenu {
  width: 100%;
  height: auto;
  display: block;
  position: fixed;
  top: 130px;
  left: 0;
  z-index: 16000;

  /* allをやめる */
  transition:
    top .4s ease,
    width .4s ease;
}

.globalmenu ul {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;

  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);

  /* gapなどのレイアウト系はtransitionしない */
  transition:
    background-color .4s ease,
    backdrop-filter .4s ease;
}

.globalmenu ul li {
  flex: 0 0 calc((100% - 20px * 5) / 6);
  margin: 0;

  /* 削除 */
  /* transition: .4s all; */
}

.globalmenu ul li a {
  width: 100%;
  height: auto;
  display: block;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 40px;
  color: var(--color-black);
  margin: 0;

  background-image: url(../img/icons/box_1st.webp);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 0 1px;

  transition:
    color .4s ease,
    background-size .4s ease;
}

.globalmenu ul li a:hover {
  color: var(--color-1st);
  background-size: 100% 1px;
}


/* GlobalMenu (active) */
.globalmenu.site_active {
  width: 60%;
  height: 100px;
  display: block;
  position: fixed;
  top: 0;
  left: auto;
  right: 0;
  z-index: 16000;
}

.globalmenu.site_active ul {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;

  background-color: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0);
}

.globalmenu.site_active ul li {
  flex: 0 0 calc(100% / 4);
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.globalmenu.site_active ul li a {
  width: 100%;
  height: auto;
  display: block;
  line-height: 40px;
}


/* Footer */
.site-footer {
  width:100%;
  height:auto;
  display: block;
}
.site-footer .ftbody {
  width:100%;
  max-width:1600px;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  margin:0 auto;
  padding:50px 5%;
}
.site-footer .ftinfo {
  width: 47.5%;
  height: auto;
  display: block;
}
.site-footer .ftinfo h2 {
  width: 300px;
  height: auto;
  display: block;
  font-size:16px;
  font-weight: 400;
  line-height: 1em;
  text-align: center;
  padding-top:50px;
  background-image: url(../img/logo_b.webp);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 300px auto;
  margin:0 0 1em 0;
}
.site-footer .ftinfo p {
  font-size:12px;
  line-height: 2em;
  color:var(--color-black);
  margin:0 0 0 0;
}

.site-footer .ftmenu {
  width: 47.5%;
  height: auto;
  display: block;
}

.site-footer .ftbody ul {
  width:100%;
  height:auto;
  display:flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.site-footer .ftbody ul li {
  font-size:12px;
  text-align: left;
  line-height: 1.5em;
  margin:0 1em;
}
.site-footer .ftbody ul li a {
  width: 100%;
  height: auto;
  display: block;
  padding:0.5em 0;
  color:var(--color-black);
  text-decoration: none;
}
.site-footer .ftbody ul li a:hover {
  color:var(--color-black);
  text-decoration: underline;
}

.site-footer p.ftcopy {
  width: 100%;
  height: auto;
  display: block;
  text-align: right;
  font-size:10px;
  font-family: var(--font-en);
  line-height: 1em;
  padding:2em 1em 0;
  margin:0;
  color:var(--color-black);
}

}


/* Style for iPad Pro */
@media screen and (min-width: 769px) and (max-width: 1024px) {


/* Header */
.site-header {
width:100%;
height: 80px;
display: block;
position: fixed;
top:0px;
left:0px;
z-index:15000;
background-color: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
}
.site-header .site-logo {
width:300px;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top:10px;
left:3%;
transform: translateX(0%);
z-index:15500;
}
.site-header .site-logo a {
width:100%;
height: 60px;
display: block;
text-indent: -9999px;
background-image: url(../img/logo_b.webp);
background-repeat: no-repeat;
background-position: center center;
background-size: 100% auto;
}


/* GlobalMenu */
/* Menu botton*/
.menubn {
display: block;
position: fixed;
z-index: 21500;
right: 15px;
top: 20px;
width: 50px;
height: 50px;
cursor: pointer;
text-align: center;
transition: .4s all;
}

.menubn.site_active {
display: block;
position: fixed;
z-index: 21500;
right: 2%;
top: 15px;
width: 50px;
height: 50px;
cursor: pointer;
text-align: center;
}

.menubn span {
display: block;
position: absolute;
width: 40px;
height: 1px;
left: 6px;
background: var(--color-black);
-webkit-transition: 0.3s ease-in-out;
-moz-transition: 0.3s ease-in-out;
transition: 0.3s ease-in-out;
}

.menubn span:nth-child(1) {
top: 10px;
}

.menubn span:nth-child(2) {
top: 20px;
}

.menubn span:nth-child(3) {
top: 30px;
}

/* ナビ開いてる時のボタン */
.menubn.mactive span:nth-child(1) {
top: 16px;
left: 6px;
background: var(--color-white);
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
transform: rotate(-45deg);
}

.menubn.mactive span:nth-child(2),
.menubn.mactive span:nth-child(3) {
top: 16px;
background: var(--color-white);
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);
}

nav.globalmenu {
position: fixed;
z-index: 20000;
top:  -100%;
left:0;
color: var(--color-white);
background: rgba(16, 61, 130, 0.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
width: 100%;
height: 100%;
min-height: 100%;
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
transition: .4s all;
}

nav.globalmenu ul {
width: 100%;
height: auto;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 0 3%;
}

nav.globalmenu ul li {
width:48%;
height: auto;
display: block;
list-style-type: none;
margin:0 1% 1%;
font-size: 12px;
line-height: 1em;
text-align: center;
transition: .4s all;
border-radius: 5px;
box-shadow:0px 5px 10px rgba(0,0,0,0.1);
}

nav.globalmenu ul li:last-child {
border-bottom: none;
}

nav.globalmenu ul li a {
width: 100%;
height: auto;
display: block;
text-decoration: none;
color: var(--color-black);
padding:60px 0px 15px 0;
border-radius: 5px;
background-color: rgba(255, 255, 255, 1);
background-repeat: no-repeat;
background-position: center 10px;
background-size: auto 45px;
transition: .4s all;
}

nav.globalmenu ul li a:hover {
color:var(--color-1st);
background-color:rgba(240, 240, 240, 0.9);
}

/* このクラスを、jQueryで付与・削除する */
nav.globalmenu.mactive {
opacity: 1;
top:0;
}



/* Footer */
.site-footer {
  width:100%;
  height:auto;
  display: block;
}
.site-footer .ftbody {
  width:100%;
  max-width:1600px;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  margin:0 auto;
  padding:50px 5%;
}
.site-footer .ftinfo {
  width: 47.5%;
  height: auto;
  display: block;
}
.site-footer .ftinfo h2 {
  width: 300px;
  height: auto;
  display: block;
  font-size:16px;
  font-weight: 400;
  line-height: 1em;
  text-align: center;
  padding-top:50px;
  background-image: url(../img/logo_b.webp);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 300px auto;
  margin:0 0 1em 0;
}
.site-footer .ftinfo p {
  font-size:12px;
  line-height: 2em;
  color:var(--color-black);
  margin:0 0 0 0;
}

.site-footer .ftmenu {
  width: 47.5%;
  height: auto;
  display: block;
}

.site-footer .ftbody ul {
  width:100%;
  height:auto;
  display:flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.site-footer .ftbody ul li {
  font-size:12px;
  text-align: left;
  line-height: 1.5em;
  margin:0 1em;
}
.site-footer .ftbody ul li a {
  width: 100%;
  height: auto;
  display: block;
  padding:0.5em 0;
  color:var(--color-black);
  text-decoration: none;
}
.site-footer .ftbody ul li a:hover {
  color:var(--color-black);
  text-decoration: underline;
}

.site-footer p.ftcopy {
  width: 100%;
  height: auto;
  display: block;
  text-align: right;
  font-size:10px;
  font-family: var(--font-en);
  line-height: 1em;
  padding:2em 1em 0;
  margin:0;
  color:var(--color-black);
}


}

/* Style for Smartphone */
@media screen and (max-width: 768px) {


/* Header */
.site-header {
width:100%;
height: 80px;
display: block;
position: fixed;
top:0px;
left:0px;
z-index:15000;
background-color: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
}
.site-header .site-logo {
width:250px;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top:0;
left:50%;
transform: translateX(-50%);
z-index:15500;
}
.site-header .site-logo a {
width:100%;
height: 80px;
display: block;
text-indent: -9999px;
background-image: url(../img/logo_b.webp);
background-repeat: no-repeat;
background-position: center center;
background-size: 100% auto;
}


/* GlobalMenu */
/* Menu botton*/
.menubn {
display: block;
position: fixed;
z-index: 21500;
right: 10px;
top: 15px;
width: 50px;
height: 50px;
cursor: pointer;
text-align: center;
transition: .4s all;
}

.menubn.site_active {
display: block;
position: fixed;
z-index: 21500;
right: 2%;
top: 15px;
width: 50px;
height: 50px;
cursor: pointer;
text-align: center;
}

.menubn span {
display: block;
position: absolute;
width: 40px;
height: 1px;
left: 6px;
background: var(--color-black);
-webkit-transition: 0.3s ease-in-out;
-moz-transition: 0.3s ease-in-out;
transition: 0.3s ease-in-out;
}

.menubn span:nth-child(1) {
top: 10px;
}

.menubn span:nth-child(2) {
top: 20px;
}

.menubn span:nth-child(3) {
top: 30px;
}

/* ナビ開いてる時のボタン */
.menubn.mactive span:nth-child(1) {
top: 16px;
left: 6px;
background: var(--color-black);
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
transform: rotate(-45deg);
}

.menubn.mactive span:nth-child(2),
.menubn.mactive span:nth-child(3) {
top: 16px;
background: var(--color-black);
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);
}

nav.globalmenu {
position: fixed;
z-index: 20000;
top:  -100%;
left:0;
color: var(--color-black);
background: rgba(255, 255, 255, 0.5);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
width: 100%;
height: 100%;
min-height: 100%;
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
transition: .4s all;
}

nav.globalmenu ul {
width: 100%;
height: auto;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 0 3%;
}

nav.globalmenu ul li {
width:48%;
height: auto;
display: block;
list-style-type: none;
margin:0 1% 1%;
font-size: 12px;
line-height: 1em;
text-align: center;
transition: .4s all;
border-radius: 5px;
box-shadow:0px 5px 10px rgba(0,0,0,0.1);
}

nav.globalmenu ul li:last-child {
border-bottom: none;
}

nav.globalmenu ul li a {
width: 100%;
height: auto;
display: block;
text-decoration: none;
color: var(--color-black);
padding:60px 0px 15px 0;
border-radius: 5px;
background-color: rgba(255, 255, 255, 1);
background-repeat: no-repeat;
background-position: center 10px;
background-size: auto 45px;
transition: .4s all;
}

nav.globalmenu ul li a:hover {
color:var(--color-1st);
background-color:rgba(240, 240, 240, 0.9);
}

/* このクラスを、jQueryで付与・削除する */
nav.globalmenu.mactive {
opacity: 1;
top:0;
}

.icm-production {background-image: url(../img/icons/icm-production.webp);}
.icm-reform {background-image: url(../img/icons/icm-reform.webp);}
.icm-casestudies {background-image: url(../img/icons/icm-casestudies.webp);}
.icm-works {background-image: url(../img/icons/icm-works.webp);}
.icm-webnotes {background-image: url(../img/icons/icm-webnotes.webp);}
.icm-outline {background-image: url(../img/icons/icm-outline.webp);}


/* Footer */
.site-footer {
  width:100%;
  height:auto;
  display: block;
}
.site-footer .ftbody {
  width:100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  margin:0 auto;
  padding:50px 5%;
}
.site-footer .ftinfo {
  width:100%;
  height: auto;
  display: block;
  padding-bottom: 30px;
  border-bottom: 1px dotted var(--color-999);
  margin-bottom: 30px;
}
.site-footer .ftinfo h2 {
  width: 300px;
  height: auto;
  display: block;
  font-size:16px;
  font-weight: 400;
  line-height: 1em;
  text-align: center;
  padding-top:50px;
  background-image: url(../img/logo_b.webp);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 300px auto;
  margin:0 auto 1em auto;
}
.site-footer .ftinfo p {
  font-size:14px;
  line-height: 2em;
  color:var(--color-black);
  margin:0 0 0 0;
}

.site-footer .ftmenu {
  width:100%;
  height: auto;
  display: block;
}

.site-footer .ftbody ul {
  width:100%;
  height:auto;
  display:flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.site-footer .ftbody ul li {
  width: 100%;
  height: auto;
  display: block;
  font-size:14px;
  text-align: left;
  line-height: 1.5em;
  margin:0 1em 5px;
}
.site-footer .ftbody ul li a {
  width: 100%;
  height: auto;
  display: block;
  padding:0.75em 0.5em;
  color:var(--color-black);
  text-decoration: none;
  background-color: var(--color-white);
  background-image: url(../img/icons/ic-ar_h_b.webp);
  background-repeat: no-repeat;
  background-position: 96% center;
  background-size: auto 12px;
}
.site-footer .ftbody ul li a:hover {
  color:var(--color-black);
  text-decoration: underline;
}

.site-footer p.ftcopy {
  width: 100%;
  height: auto;
  display: block;
  text-align: center;
  font-size:10px;
  font-family: var(--font-en);
  line-height: 1em;
  padding:2em 1em 0;
  margin:0;
  color:var(--color-black);
}


}




/* Header utility */
.menubn {
  padding: 0;
  border: 0;
  background: transparent;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30000;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* WordPress管理バー表示時 */
@media screen and (min-width: 783px) {
  .admin-bar .site-header,
  .admin-bar .site-header.site_active { top: 32px; }
  .admin-bar .globalmenu.site_active { top: 32px; }
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
