/* ============ base style ============ */
@charset "UTF-8" ;

* {
  margin: 0;
  padding: 0;
}

html, body {
	height: 100% ;
  font-size : 90% ;
	font-family:"ＭＳ Ｐゴシック", Osaka, "ヒラギノ角ゴ Pro W3" ;
	line-height : 1.4 ;
}

body {
  background-color: rgb(255, 255, 255) ;
}

a:link { color: rgb(0, 0, 0) ; }
a:visited { color: rgb(0, 0, 0) ; }
a:hover { color: rgb(84, 92, 94) ; }

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

#wrapper {
	height: 100% ;
	width : 100% ;
	position:relative ;
	margin : 0px auto 0px ;
	background-color: rgb(255, 255, 255) ;
}


/* ============ navi menu ============ */
#navi, #navi * {
  font: 100% bold Verdana,sans-serif;
}

ul#navi li a {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
ul#navi li a::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #000000;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
ul#navi li a:hover::after {
  bottom: -4px;
  opacity: 1;
  visibility: visible;
}


/* ============ header ============ */
header #topicons {
font-size: 100% ;
color: rgb(223, 223, 223);
background-color: rgb(245, 245, 245);
border-bottom: solid 1px rgb(229, 229, 229);

-js-display: flex ;
display: -webkit-box ;
display: -webkit-flex ;
display: -ms-flexbox ;
display: flex ;
-webkit-box-align: center ;
-webkit-align-items: center ;
-ms-flex-align: center ;
align-items: center ;

justify-content: flex-end ;

padding: 8px 20px 3px ;
}

header #topicons a {
font-size: 100% ;
font-weight: bold ;
text-decoration: none ;
color: rgb(23, 23, 23) ;
padding-left: 10px ;
}

header #topicons a:hover {
text-decoration: underline ;
color: rgb(23, 23, 23) ;
}

header #area {
  -js-display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start; /*space-between;*/
  -ms-flex-pack: start;
  justify-content: flex-start; /*space-between;*/
  padding: 5px 20px 15px;
}

ul {
  -js-display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  margin-left: 20px; /*↑header部分の『justify-content』"が『space-start』の場合に設定 */
}

ul li {
  margin-top: 10px;
  margin-right: 20px;
}

.imgHeadLogo {

}

img.headLogo {
  width: 170px ;
  height: 68px ;
}

hr {
   border-width: 1px 0px 0px 0px; /* 太さ */
   border-style: solid; /* 線種 */
   border-color: rgb(229, 229, 229);   /* 線色 */
   height: 1px;         /* 高さ(※古いIE用) */
}

/* ============ top page index ============ */
main #topidx .logoTop {
  padding-top: 180px ;
  text-align: center;
}

main #topidx img {
  width: 500px ;
  height: 200px ;
}

main #topidx .msgTop {
  padding-top: 20px ;
  padding-bottom: 30px ;
  text-align: center ;
}


/* ============ client ============ */
.client {
  box-shadow: 0 0 3px #aaa;
}

.client h1 {
  font-weight: bold;
  text-align: center;
  font-size: 1.2rem;
  padding: 1px;
}

.client p {
  padding: 3px;
}

.client img {
  width: 100% ;
  height: 250px ;
  object-fit: cover ;
  object-position:100% 0%;

  /* エフェクト */
  cursor: pointer;
  transition-duration: 0.3s;

}

.client:hover img{
  /* 透かしエフェクト */
  opacity: 0.6;
  transition-duration: 0.3s;

}
/* ============ clientInfo ============ */
.clientInfo h1 {
  font-weight: bold;
  text-align: left;
  font-size: 2.3rem;
  border-bottom: solid 3px red ;
  padding: 3px;
}

.clientInfo h2 {
  font-weight: bold;
  text-align: left;
  font-size: 1.8rem;
  padding: 3px;
}

.clientInfo h3 {
  font-weight: normal;
  text-align: left;
  font-size: 1.0rem;
  padding-top: 15px;
  padding-bottom: 3px;
}

.clientInfo p {
  padding-top: : 3px ;
  padding-bottom: 15px ;
}

/* 写真フェイドあり( imagefade.js ) */
#photo {
  background-color: rgb(245, 245, 245);
  padding: 10px ;

  height: 700px;
  overflow: hidden;
  position: relative;
}

#photo img {
  width: 100% ;
  object-fit: cover ;
  object-position:100% 0%;
  text-align: center;

  position: absolute;
}

/* 写真フェイドなしの通常表示 */
.centerpic {
  background-color: rgb(245, 245, 245);
  padding: 10px ;
}

.centerpic img {
  width: 100% ;
  object-fit: cover ;
  object-position:100% 0%;
  text-align: center;
}

.contact {
  text-align: right;
  padding: 50px 30px ;
}
.contact .title {
  padding: 0px 5px ;
  color: #ffffff;
  background-color: rgb(145, 145, 145);
}

.contact p {
  padding: 5px 3px ;
}

/* ============ リンク画像のエフェクト ============ */
img_wrap{
  border: 1px solid #ddd;
  width: 300px;
  height: 226px;
  margin: 0 auto;
  overflow: hidden;
}
.img_wrap img{
  width: 100%;
  cursor: pointer;
  transition-duration: 0.3s;
}
.img_wrap:hover img{
  opacity: 0.6;
  transition-duration: 0.3s;
}

/* ============ YouTubeサイズ調整 ============ */
.video {
position: relative;
width: 100% ;
padding-bottom: 56.25%;
}

.video iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}

footer {
  padding: 10px;
}


/* ============ Flexbox ============ */
main #fbox {
  -js-display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 15px 10px 10px;
}

main #fbox div.client {
  width: calc(25.0% - 10px);
  margin: 5px;
}

main #fbox div.clientInfo {
  width: calc(50.0% - 10px);
  margin: 5px;
}

address {
  font-size : 50% ;
  font-style : normal ;
  text-align: center;
}

@media (max-width: 500px) {

    html, body {
      font-size : 80% ;
    	line-height : 1.4 ;
    }

    #wrapper {
    	width : 100% ;
    }

    header #area {
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -webkit-flex-direction: column;
      -ms-flex-direction: column;
      flex-direction: column;
      -webkit-box-align: center;
      -webkit-align-items: center;
      -ms-flex-align: center;
      -ms-grid-row-align: center;
      align-items: center;
      padding: 5px;
    }

    main #topidx .logoTop {
      padding-top: 100px ;
      text-align: center;
    }

    main #topidx img {
      width: 300px ;
      height: 120px ;
    }

    main #fbox div.client, main #fbox div.clientInfo {
      width: calc(100% - 2px);
      margin: 1px;
    }

    .client h1 {
      font-weight: bold;
      text-align: center;
      font-size: 1.2rem;
      padding: 1px;
    }

      .clientInfo h1 {
      font-weight: bold;
      text-align: left;
      font-size: 1.5rem;
      border-bottom: solid 3px red ;
      padding: 3px;
    }

    .clientInfo h2 {
      font-weight: bold;
      text-align: left;
      font-size: 1.2rem;
      padding: 3px;
    }

    .clientInfo h3 {
      font-weight: normal;
      text-align: left;
      font-size: 0.7rem;
      padding-top: 15px;
      padding-bottom: 3px;
    }

    #photo {
      background-color: rgb(245, 245, 245);
      padding: 10px ;
      height: 330px;
      overflow: hidden;
      position: relative;
    }

}

@media (max-width: 900px) {

    #photo {
      background-color: rgb(245, 245, 245);
      padding: 10px ;
      height: 380px;
      overflow: hidden;
      position: relative;
    }
}
