@charset "UTF-8";
@import url("grid.css");

:root { /* 色変更 */
    --base-color: #333333;
    --link-color: #454545;
    --linkhover-color: #ffffff;
    --border-color: #cccccc;
    --white-color: #ffffff;
}
img {
	max-width:100%;
	height: auto;/*高さ自動*/
	image-rendering: -webkit-optimize-contrast;
}
a {
    display:block;
    color: var(--link-color);
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
}
a img:hover {
	opacity: 0.8;
}
.underline {
	border-bottom: 3px solid var(--base-color);
	padding-bottom: 0.5rem;
}
.center {
	text-align: center;
}

/*ヘッダー ナビ関連まとめ
-------------------------------------*/
header {
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 10000;
	height: 50px;
}
nav {
	display: flex;
    justify-content: flex-end;	
	color: var(--base-color);
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
}
nav li {
    display: block;
    flex: 0 0 15%;
}
nav li a {
    text-decoration: none;
    text-align: center;
	font-size: 2.3rem;
	padding: 0 1rem;
}
nav a:hover {
	color: var(--linkhover-color);
}
@media screen and (min-width: 768px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
#open,#close  {
    position: absolute;
    top: 28px;
    right: 12px;
}
nav {
	margin-top: 7.0rem;
    justify-content: center;
    background: var(--white-color);
}
nav ul {
	flex-direction: column;
	margin-top: 2.0rem;
}
nav li {
	padding-top: 0;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 0;
}
nav li a {
	font-size: 2.5rem;
	padding: 1rem 0 0.5rem 0;
}
nav a:hover {
	color: var(--link-color);
}
/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url(../img/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
#close  {
    display: block;
    background: url(../img/button02.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}

/*メイン画像
-------------------------------------*/
.top {
	margin: 27rem 0;
}
.top .mainlogo {
	width: 100px;
	height: 100px;
	display: block;
	margin: 0 auto 15px;
	background: url(../img/mainlogo.png) 0 / 100px 100px no-repeat;
}
.top .mainlogo:hover{
	background: url(../img/mainlogo02.png) 0 / 100px 100px no-repeat;
}
.top h1 {
	text-align: center;
	color: var(--base-color);
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0;
}

/*キャッチタイトル
-------------------------------------*/
h2.catch {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
    color: var(--link-color);
	margin: 50px 0 50px;
}
h2.catch:before,
h2.catch:after {
	content: '';
	width: 30px;
	height: 3px;
	background-color: var(--link-color);
}
h2.catch:before {
	margin-right: 10px;
}
h2.catch:after {
	margin-left: 10px;
}
h2.tx01{
	font-size: 4rem;
}
h3.catch{
    margin: 0;
    position: relative;
    font-weight: normal;
    display: inline-block;
    padding-top: 10px;
    padding-left: 23px;
    padding-bottom: 20px;
    color: var(--link-color);
}
h3.catch:before {
    content: '';
    background-color: var(--white-color);
    display: block;
    position: absolute;
    left: 0;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    top: 0;
    z-index: -1;
}
h3.catch02{
    color: var(--link-color);
	margin-top: 25px;
}
/*ABOUT
-------------------------------------*/
.about_box {
    background: var(--white-color);
	padding: 30px 20px 40px;
}
.about_tx{
	margin-top: 10px;
	text-align: center;
}
.about_tx02{
	margin: 10px 50px 0;
}
/*SKILL
-------------------------------------*/
.skill_box {
	margin: 30px 350px;
}
.list01 ul {
  padding: 0.3em 0;
  list-style-type: none;
  border: none;
}
.list01 ul li {
  position:relative;
  padding: 0.3em 0 0.3em 1.8em;
  line-height: 1.5;
}
.list01 ul li::after,
.list01 ul li::before {
  content: '';
  position: absolute;
}
.list01 ul li::after {
  left: -0.2em;
  top: 5px;
  width: 20px;
  height: 20px;
  background-color: var(--border-color);
  border-radius: 50%;
}
.list01 ul li::before {
  z-index: 2;
  left: 3px;
  top: 13px;
  width: 4px;
  height: 4px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
/*WORK
-------------------------------------*/
.catchimg {
	border-radius: 10px;
	border: 1px solid var(--white-color);
	transition: all 0.6s ease 0s;
}
.catchimg:hover {
	cursor: pointer;
	transform: scale(1.1, 1.1);
}
.catchtop {
	border-radius: 10px;
}
.detail {
	margin: 0 150px;
}

/*フッター
-------------------------------------*/
footer {
    padding: 2rem 0;
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
}
.copyright a {
    color: var(--base-color);
    text-decoration: none;
	display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background: var(--link-color);
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
    border-radius: 30px;
}
#pagetop a:hover {
    background: var(--linkhover-color:);
}
/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;	
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: var(--link-color);
}

@media screen and (max-width: 768px){
/*メイン画像
-------------------------------------*/
.top {
	margin: 20rem 0 15rem;
}
/*ABOUT
-------------------------------------*/
.about_tx{
	margin: 0 50px;
}
.about_tx02{
	margin: 30px 0;
}
/*SKILL
-------------------------------------*/
.skill_box {
	margin: 50px 70px;
}
/*WORK
-------------------------------------*/
.detail {
	margin: 0 10px;
}
}