﻿/* レイアウト */
main {
  padding: 8px;
}

aside {
  padding: 0 8px 8px 8px;
}

header{
  border-bottom: solid 1px #d8d0c3;
  padding: 8px 8px 2px 8px;
}

header section{
  display: flex;
  position: relative;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 0 auto;
}

section{
  max-width: 920px;
  margin: 0 auto;
}

.two-columns{
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
}

.two-columns main{
  order: 2;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: 676px;
}

.two-columns aside{
  order: 1;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 260px;
}

@media screen and (max-width: 767px) {
  .two-columns{
    display: block;
  }
}
/* レイアウト */
/* 全体 */
header h1{
  display: inline-block;
  padding: 0;
  margin: 0;
  vertical-align: bottom;
  width: 160px;
  max-width: 45%;
}
header h1 img{
  width: 100%;
}
header nav{
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 0 auto;
  max-width: 55%;
}

header nav .works{
  background-color: #31a5a5;
}
header nav .blog{
  background-color: #F57FB0;
}

header nav ul{
  font-size: 0;
}

header nav ul li{
  display: inline-block;
  padding: 4px;
  line-height: 18px;
  width: 104px;
  max-width: 50%;
  text-align: center;
  vertical-align: middle;
  color: #fff;
  border-radius: 16px;
  font-size: 16px;
}
@media screen and (max-width: 380px) {
  header nav ul li{
    font-size: 15px;
  }
}
@media screen and (max-width: 350px) {
  header nav ul li{
    font-size: 14px;
  }
}

@media screen and (max-width: 335px) {
  header nav ul li{
    font-size: 13px;
  }
}
@media screen and (max-width: 320px) {
  header nav ul li{
    font-size: 12px;
  }
}
@media screen and (max-width: 310px) {
  header nav ul li{
    font-size: 11px;
  }
}
header nav a,
header nav a:link,
header nav a:visited,
header nav a:active,
header nav a:hover{
  color: #FFF;
  display: inline-block;
  width: 100%;
}

header nav #works-menu + label{
  position: relative;
  display: inline-block;
  padding: 0 12px 0 0;
  width: 100%;
}

header nav #works-menu + label::before,
header nav #works-menu + label::after{
  position: absolute;
  right: 8px;
  top: 3px;
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  transition: 0.2s;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
}

header nav #works-menu + label::before{
  border-left: solid 1.5px #fff;
}

header nav #works-menu + label::after{
  border-bottom: solid 1.5px #fff;
}

header nav #works-menu:checked + label::before{
  top: 6px;
  transition: 0.2s;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
}

header nav #works-menu:checked + label::after{
  top: 6px;
  transition: 0.2s;
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  -ms-transform: rotate(-135deg);
}

header nav li #works-menu{
  display: none;
}
header nav li ol{
  display: block;
  visibility: hidden;
  right: -8px;
  position: absolute;
  padding: 8px 7px;
  width: 400px;
  max-width: 100vw;
  font-size: 0;
  text-align: left;
  z-index: 1;
  opacity: 0;
  transition: 0.3s;
}

header nav li #works-menu:checked + label + ol{
  visibility: visible;
  opacity: 1;
  transition: 0.3s;
}

header nav li ol li{
  display: inline-block;
  position: relative;
  padding: 0;
  text-align: left;
  width: 200px;
  max-width: 50%;
  border-left: solid 1px #fff;
  border-bottom: solid 1px #fff;
  border-radius: 0;
  font-size: 16px;
}

header nav li ol li:nth-child(even){
  border-right: solid 1px #fff;
}

header nav li ol li:nth-last-child(2)::after{
  content: "";
  position: absolute;
  bottom: 0;
  right: -1px;
  border-right: solid 1px #fff;
  height: 35px;
}

header nav li ol a,
header nav li ol a:link,
header nav li ol a:visited,
header nav li ol a:active
{
  padding: 8px;
  display: block;
  color: #fff;
  background-color: #13017C;
}
header nav li ol a:hover,
header nav li ol label:hover{
  opacity: 0.8;
  transition-duration: 0.1s;
}

header nav li ol li.close {
  padding: 4px 0 0 0;
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  border: none;
}

header nav li ol li.close label {
  width: 50%;
  display: inline-block;
  padding: 4px;
  background-color: #e8ebf1;
  font-size: 12px;
  color: #000;
  border: solid 1px #d8d0c3;
}

section h2{
  position: relative;
  padding: 0 0 2px 20px;
  margin: 16px 0 8px 0;
  line-height: 18px;
  font-size: 18px;
}

section h2::before,
section h2::after {
  position: absolute;
  content: '';
  border-radius: 100%
}

section h2::before {
  top: 0px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: rgba(19, 0, 124, 1);
}

section h2::after {
  top: 8px;
  left: 8px;
  width: 10px;
  height: 10px;
  background: rgba(245, 127, 176, 1);
}

footer{
  padding: 8px;
  background: #d8d0c3;
  color: #F57FB0;
  font-weight: bold;
}

footer small,
footer address{
  display: block;
  text-align: center;
  font-style: normal;
}

footer a:link,
footer a:visited,
footer a:active {
  color: #F57FB0;
  text-decoration: underline;
}

footer a:hover {
  color: #FB0F0C;
}
/* 全体 */
/* TOPページ */
.lede h2{
  display: none;
}

ol.works-list{
  padding: 0;
  margin: 0 -2px;
  list-style: none;
  font-size: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 0px;
}

.works-list li{
  display: inline-block;
  display: grid;
  position: relative;
  padding: 0 2px 4px 2px;
}

.works-list li p{
  position: absolute;
  bottom: 0px;
  background-color: rgba(255,255,255,0.8);
  padding: 2px 2px 4px 4px;
  font-size: 14px;
  width: 100%;
  line-height: 15px;
}

.works-list li img{
  width: 100%;
  transition-duration: 0.3s;
}

.works-list li img:hover {
  filter: opacity(0.8);
  transition-duration: 0.1s;
}

.new {
  padding: 0;
	margin: 8px auto;
  border: solid 1px #d8d0c3;
  border-radius: 4px;
	height: 120px;
	width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.new_feed{
  padding: 8px;
  margin: 0;
  list-style: none;
}

.new_feed li{
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* TOPページ */
/* ワークス */
p.img img{
  margin: 8px auto;
}

ol.imgbox{
  margin: 8px -8px;
  padding: 0;
  list-style: none;
  font-size: 0;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  }

ol.imgbox li{
  display: inline-block;
  margin-left: 8px;
}
ol.imgbox li:last-child{
  margin-right: 8px;
}

ol.imgbox li a{
  display: block;
  overflow: hidden;
}

ol.imgbox li a img{
  transition-duration: 0.3s;
  height: 120px;
}

@media screen and (max-width: 768px) {
  ol.imgbox li a img{
    height: 90px;
  }
}

ol.imgbox li a img:hover{
  transform: scale(1.1);
  transition-duration: 0.2s;
  opacity: 0.8;
}

table {
  margin: 8px auto 0 auto;
  border-collapse: collapse;
  border-spacing: 0;
  border-top: solid 1px #d8d0c3;
  border-bottom: solid 1px #d8d0c3;
  width: 100%;
  max-width: 400px;
}

tr{
  border-bottom: dotted 1px #d8d0c3;
}

th,
td{
  padding: 0 0 0 8px;
  font-size: 14px;
  vertical-align: bottom;
  height: 26px;
}


th{
  text-align: left;
  width: 40%;
  background-color: #e8ebf1;
}

td{
  width: 60%;
}
th sup,
td sup{
  font-size: 10px;
}

.works-tag h2{
  margin: -1px 0 0 0;
  padding: 2px 2px 2px 8px;
  font-size: 14px;
  color: #FFF;
  background-color: #449989;
  border: solid 1px #449989;
  border-bottom: dotted 1px #FFF;
  border-radius: 8px 8px 0 0;
}

.works-tag h2::before,
.works-tag h2::after{
  content: none;
}

.works-tag nav{
  margin: 0 auto;
  list-style: none;
  border: solid 1px #449989;
  border-radius: 0  0 8px 8px;
}

.works-tag ol{
  padding: 2px;
  margin: 0;
  font-size: 0;
}

.works-tag li{
  display: inline-block;
  margin: 2px;
}

.works-tag li a{
  display: inline-block;
  padding: 2px 4px;
  border: solid 1px #449989;
  color: #449989;
  border-radius: 4px;
  min-width: 64px;
  font-size: 14px;
  text-align: center;
  vertical-align: bottom;
}

.works-tag li a.active{
  border: solid 1px #d8d0c3;
  color: #d8d0c3;
  pointer-events: none;
}

.works-tag li a:hover{
  border: solid 1px #FB0F0C;
  color: #FB0F0C;
  font-weight: bold;
}
/* ワークス */
/* ブログ */
iframe,
.pict,
.thumb{
  margin: 0 auto;
}

#navigation{
  padding: 8px;
}

#navigation ul{
  font-size: 12px;
}

#navigation ul ul{
  padding: 0 0 0 8px;
}

.pagenavi{
  text-align: center;
}

#navigation ul a{
  font-size: 14px;
}

.pagenavi ul{
  margin: 16px 0;
  font-size: 0;
}

.pagenavi ul li{
  display: inline-block;
  font-size: 16px;
  width: 50%;
  max-width: 164px;
}

.pagenavi ul li:first-child{
  padding-right: 8px;
}

.pagenavi ul li:last-child{
  padding-left: 8px;
}

.pagenavi ul li a{
  position: relative;
  display: inline-block;
  padding: 4px 0;
  border: solid 1px #d8d0c3;
  border-radius: 4px;
  width: 100%;
}

.pagenavi ul li a::before{
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
}

.pagenavi ul li:first-child a::before{
  top: 10px;
  left: 12px;
  border-top: solid 2px #d8d0c3;
  border-left: solid 2px #d8d0c3;
}

.pagenavi ul li:last-child a::before{
  top: 10px;
  right: 12px;
  border-right: solid 2px #d8d0c3;
  border-bottom: solid 2px #d8d0c3;
}

.page_now{
  font-weight: bold;
}

.entry{
  border-bottom: dashed 1px #d8d0c3;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.entry_body{
  padding: 8px 0;
}

.entry_author,
.entry_state,
.comment_author{
  display: block;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: right;
  font-size: 0;
}

.comment_author{
  border-bottom: solid 1px #d8d0c3;
  margin-bottom: 4px;
}

.entry_author li,
.entry_state li,
.comment_author li{
  display: inline-block;
  padding-left: 4px;
  padding-right: 8px;
  border-left: solid 2px #d8d0c3;
  font-size: 16px;
}

.comment_author li{
  border: none;
}

.comment_body{
  margin-bottom: 16px;
}

#comments{
  margin-left: 120px;
}

@media screen and (max-width: 767px) {
  #comments{
    margin-left: 0;
  }
}

.comment_form_text,
.comment_form_textarea{
  position: relative;
  margin-top: 32px;
}

#comment_form input[type='text'],
#comment_form input[type='url'],
#comment_form input[type='email'],
#comment_form textarea{
  padding: 2px;
  border-bottom: solid 1px #d8d0c3;
  width: 100%;
  background-color: #faf9ff;
  transition: 0.3s;
}

#comment_form label {
  position: absolute;
  z-index: -1;
  top: -18px;
  left: 0;
  width: 100%;
  transition: 0.3s;
  color: #d8d0c3;
  font-size: 12px;
}

#comment_form input:focus,
#comment_form textarea:focus{
  border-color: #FB0F0C;
  transition: 0.3s;
}

#comment_form input:focus + label,
#comment_form textarea:focus + label{
  color: #FB0F0C;
  transition: 0.3s;
}


#comment_form .comment_form_submit input[type='submit']{
  display: block;
  margin-left: auto;
  padding: 4px;
  border: solid 1px #d8d0c3;
  width: 100px;
  max-width: 100%;
  border-radius: 4px;
}

#navigation h2{
  display: none;
}

#navigation form{
  height: 30px;
  font-size: 0px;
  margin: 16px 0;
}

#navigation input[type='text']{
  display: inline-block;
  padding: 2px 2px 2px 12px;
  margin: 0;
  width: calc(100% - 64px);
  height: 30px;
  border: solid 1px #d8d0c3;
  background-color: #faf9ff;
  border-radius: 20px 0 0 20px;
  vertical-align: top;
  font-size: 16px;
  transition: 0.3s;
}

#navigation input[type='text']:focus{
  border-color: #FB0F0C;
  transition: 0.3s;
}

#navigation input[type='submit']{
  display: inline-block;
  padding: 2px 8px 2px 2px;
  margin: 0;
  border: solid 1px #d8d0c3;
  border-left: none;
  width: 64px;
  height: 30px;
  border-radius: 0 20px 20px 0;
  background-color: #F0E282;
  vertical-align: top;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
}

#navigation input[type='text']:focus + input[type='submit']{
  border-color: #FB0F0C;
  transition: 0.3s;
}

blockquote{
  background-color: #e8ebf1;
  margin: 0 0 0 8px;
  padding: 4px;
  border-left: solid 4px #13017C;
}
/* ブログ */
