@charset "utf-8";

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333333;
  font-size: 15px;
  line-height: 1.8;
  font-family: sans-serif;
}

p,h1,h2,h3,h4,h5,h6 {
  margin-top: 0;
}

img {
  vertical-align: bottom;
}

ul {
  margin: 0;
  padding: 0;
}

a {
  color: #3583aa;
  text-decoration: none;
}

a:visited {
  color: #788d98;
}

a:hover {
  text-decoration: underline;
}

header {
  width: 960px;
  height: 50px;
  margin: 0 auto;
}


.logo {
  float: left;
  margin-top: 20px;
}

.global-nav {
  float: left;
  margin-top: 0px;
 margin-left: 5px;
}

.global-nav li {
  float: left;
  margin: 0px 1px;
  font-size: 20px;
  list-style: none;
  font-family: franklin-gothic-condensed, sans-serif;
font-weight: 600;
font-style: normal;
letter-spacing: 0.05em;
 width: 236px;
 height: 32px;
}

.global-nav li a {
 display: block;
  color: #333333;
 margin-left: 10px;
}

.global-nav .nav_index {background-color: black;}
.global-nav .nav_works {background-color: rgb(255, 241,0);}
.global-nav .nav_about {background-color: rgb(240, 0, 127);}
.global-nav .nav_contact {background-color: rgb(0, 160,233);}


.global-nav .nav_index a {color: #ffffff;}

.global-nav li a:hover {
  opacity: 0.1;
  text-decoration: none;
}


#wrap {
  clear: both;
 background-color: #ffffff;
 min-height: 100vh;
    position: relative;/*←相対位置*/
    padding-bottom: 120px;/*←footerの高さ*/
    box-sizing: border-box;/*←全て含めてmin-height:100vhに*/
}

.content {
  width: 960px;
  margin: 0 auto;
}

#index #wrap {
 background-color: transparent;
 margin-top: 50;
 padding: 0px;
}

#index .content {
 width: 340px; float: right; margin-top: 200px; padding: 18px 20px 0px 24px; background: #ffffff;
 background-color: rgba( 255, 255, 255, 0.9 );
 line-height: 1.5;
}


.main {
 width: 100%;
 margin: 10px;
 float: left;
}

#index {
 background-image: url(../images/Shosaikan.jpg);
 background-repeat: repeat-x;
 background-position: center 60px;
 background-attachment: fixed;
 background-size: 1200px;
}




footer {
 width: 100%;
    background-color: black;
    color: #ffffff;
    text-align: center;
    padding: 12px 0;

 position: fixed;
    bottom: 0; /*下に固定*/
}

footer small {
  font-size: 12px;
}

#index h1 {
 font-size: 50px;
 line-height: 1;
 color: black;
 font-family: franklin-gothic-condensed, sans-serif;
font-weight: 600;
font-style: normal;
 margin-bottom: 200px;
 border: none;
}



.btn a {
 background-color: #009cd3;
 color: #ffffff;
 font-size: 20px;
 font-family: franklin-gothic-condensed, sans-serif;
font-weight: 600;
font-style: normal;
 width: 185px;
 display: block;
 text-align: center;
 line-height: 50px;
 margin-top: 20px;
 border-radius: 5px;
 border: 3px solid #009cd3;
}

.btn a:hover {
 text-decoration: none;
 background-color: #ffffff;
 color: #009cd3;
}


h1 {
 font-family: franklin-gothic-condensed, sans-serif;
font-weight: 600;
font-style: normal;
 font-size: 32px;
 line-height: normal;
 letter-spacing: 0.05em;
 border-bottom: 1px solid #cccccc;
 margin-right: 14px;
}

h2 {
 font-family: franklin-gothic-condensed, sans-serif;
font-weight: 600;
font-style: normal;
 font-size: 24px;
}

h3 {
 font-family: franklin-gothic-condensed, sans-serif;
font-weight: 600;
font-style: italic;
 font-size: 20px;
 letter-spacing: 0.4em;
}

h4 {
 font-family: franklin-gothic-condensed, sans-serif;
font-weight: 600;
font-style: normal;
 font-size: 28px;
 line-height: normal;
 letter-spacing: 0.05em;
 border-bottom: 1px solid #cccccc;
 margin-right: 14px;
}


.icon:before {
 content: "";
 padding-right: 10px;
 border-left: 7px solid darkgoldenrod;
}

#about .profile-txt {
 float: left;
}

#about .profile-txt span {
 font-weight: bold;
}

#about .profile-image {
 width: 200px;
 margin: 0px;
}

.clearfix:after {
 content: "";
 display: block;
 clear: both;
}

section {
 margin-bottom: 50px;
}


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


.sidebar {
 width: 200px;
 margin: 0 10px 0 30px;
 float: right;
 font-family: franklin-gothic-condensed, sans-serif;
font-weight: 600;
font-style: normal;
}

a img:hover {
 opacity: 0.5;
}

.sidebar h2 {
 margin-bottom: 10px;
}

.sidebar ul {
 font-size: 16px;
 margin-left: 20px;
}

.sidebar ul a {
 color: #333333;
}

#works .works-box {float: left; width: 300px; height: 300px; margin: 10px; text-align: center; }

figcaption {text-align: center; font-size: 13px; line-height: 1.5; margin-bottom: 10px;}

#works .main p {text-align: left; font-size: 14px; line-height: 1.6;}

#works .others {margin: 0px 0px 60px 0px; width: 100%; }

#works .others p {text-align: left; font-size: 13px; line-height: 175%;}

#works img {width: 240px; height: 240px; object-fit: contain; margin-bottom: 10px;}

#works .others {float: left; }


#works-gallery .works-box {float: left; width: 460px; height: 420px; margin: 3px; text-align: center; }

#works-gallery .main p {text-align: left; font-size: 14px; line-height: 1.5;}

#works-gallery img {width: 450px; height: 350px; object-fit: contain; margin-bottom: 10px;}


#works-gallery .mihiraki {display: block; width: 100%; text-align: center; margin: 20px 0px; border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc;}

#works-gallery .main_photo img {width: 100%; height: auto;}

#works-gallery .img-border {border: 1px #cccccc solid; width: 440px; height: auto;}



@media screen and (max-width:480px){
 /* 画面サイズが480px以下の場合に適用 */
 
 body {
  font-size: 3.5vw;
 }
 
 * {
	float: none;
	position: static;
}
 
img {
	max-width: 100%;
	height: auto;
}
 
 h1 {
  font-size: 7.2vw;
 }
 
 h2 {
  font-size: 6vw;
 }
 
 header {
  width: auto;
  height: 60px;
  margin: 10px 5% 0px;
  padding: 10px;
 }
 
 
 .global-nav {
  float: none;
  text-align: center;
 }
 
 .global-nav li {
  display: inline-block;
  float: none;
  margin-right: 10px;
  margin-bottom: 10px;
  width: auto;
 }
 
 .global-nav li a {margin: 0px 10px;}
 
 #wrap {
  margin-top: 50px;
  padding: 0;
 }
 
 .content {
  width: 100%;
 }
 
 #index {background-size: contain; background-position: center 110px; background-repeat: repeat;}
 
  #index .content {width: 90%; height: 115px; float: none; padding: 12px; margin-top: 98px; margin-left: auto; margin-right: auto; background-color: rgba( 255, 255, 255, 0.95 );}
 
 #index header {background-color: #ffffff; margin: 0; padding: 20px; height: 70px;}
 
 .main {
  float: none;
  width: auto;
  margin: 0 5%;
 }
 
 h2 img {
  max-width: 100%;
 }
 
 #about .profile-image {
 float: none;
  width: 150px;
 margin-bottom: 100px;
}


 #works-gallery .works-box {max-width: 330px; height: auto; margin: 10px auto;}
 #works-gallery  img {max-height: 250px;}
 
 #works-gallery .content {margin-bottom: 60px;}
 
}