@charset "utf-8";

/*
 *
 * Usage: Base layout
 *
 * Name: style.css
 *
 */

/* FONT size
---------------------------------------------------------------------
[ px ]	[ % ]
10px 	83  %		19px 	158 %
11px 	92  %		20px 	167 %
12px 	100 %		21px 	175 %
13px 	108 %		22px 	183 %
14px 	117 %		23px 	192 %
15px 	125 %		24px 	200 %
16px 	133 %		25px 	208 %
17px 	142 %		26px 	217 %
18px 	150 %
---------------------------------------------------------------------*/


/*---------------------------------------------------------------------
PaFe layout
---------------------------------------------------------------------*/

html,
body {
  height: 100%;
}

body {
  background: #fff;
}

#wrapper {
  margin: 0 auto;
  padding: 143px 0;
  position: relative;
}

.font {
  letter-spacing: 0.1em;
}

::selection {
  background: #a0a0a0;
  color: #f0f4f4;
  /* Safari */
}

::-moz-selection {
  background: #a0a0a0;
  color: #f0f4f4;
  /* Firefox */
}

/*---------------------------------------------------------------------
Common parts
---------------------------------------------------------------------*/
/* about */
#about {
  background: #fff;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: 100%;
  display: none;
}

#profile dl, #contact dl,
#profile-s dl,
#contact-s dl {
  float: right;
  width: 100%;
}

#profile dt, #contact dt,
#profile-s dt,
#contact-s dt {
  line-height: 100%;
  font-size: 16px;
  margin-top: 36px;
}

#profile dd,#contact dd,
#contact-s dd,#profile-s dd{
  margin: 0 5px 0 auto;
}


#profile .last, #contact .last, #profile-s .last,
#contact-s .last {
  margin-bottom: 143px;
}

/* header */
#header {}

#logo {
  position: fixed;
  top: 15px;
  left: 3%;
  z-index: 900;
  font-size: 20px;
  font-family: inherit;
  font-weight: 700;
}

#logo img{
  width: 91px;
  margin-bottom: 6px;
}

#btnAbout {
  background: url(../images/ic_arrow-y.gif) no-repeat 100% 50%;
  padding: 0 25px 0 3px;
  position: fixed;
  top: 28px;
  left: 26px;
  cursor: pointer;
}

#btnAbout.open {
  background: url(../images/btn_close.gif) no-repeat 100% 50%;
  padding-right: 25px;
}


/* container */
#container {}

/* articleContainer */
#articleContainer {
  padding-left: 150px;
}

#articleContainer .section {}

#articleContainer .hgroup {
  text-align: right;
  margin-bottom: 20px;
  font-size: 83%;
  background: url(../images/line_title.gif) no-repeat 100% 0;
  padding-top: 15px;
  line-height: 100%;
}

#articleContainer .hgroup h2 {
  font-weight: bold;
  margin-bottom: 5px;
}

#articleContainer .hgroup .cate,
#articleContainer .hgroup .date {
  color: #999;
  margin-bottom: 5px;
  font-family: 'Economica';
  font-size: 108%;
  letter-spacing: 0.1em;
}

#articleContainer .section .article {}

#articleContainer .section .article .works {
  margin-bottom: 55px;
}

#articleContainer .section .article .works img {
  max-width: 660px;
}

#articleContainer .section .article .entry_txt {
  margin: -45px 0 55px 0;
  font-size: 83%;
}


/* pagenate */
.pagenate {
  text-align: center;
  position: relative;
  width: 100%;
}

.pagenate .current,
.pagenate .page {
  display: none;
}

.pagenate .pages {
  display: inline-block;
  padding: 8px 0;
}

.pagenate .previouspostslink,
.pagenate .nextpostslink {
  position: absolute;
  top: 0;
  padding: 8px;
}

.pagenate .previouspostslink {
  left: 40%;
}

.pagenate .nextpostslink {
  right: 40%;
}


/* gnav */
#gnav {
  position: fixed;
  bottom: 31px;
  left: 26px;
}

#gnav li {
  width: 150px;
}

#gnav a {
  width: 100%;
  display: block;
  padding: 4px 0;
  font-weight: 900;
  color: #3F3F3F;
}



/* lnav */
#lnav {
  position: fixed;
  bottom: 40px;
  right: 30px;
}

#lnav #pagetop {
  padding: 0 3px;
  margin-bottom: 24px;
}

#lnav li {
  height: 15px;
}

#lnav li a {
  display: block;
  overflow: hidden;
  height: 0;
  padding-top: 15px;
}

#lnav #btnPrev {
  margin-bottom: 22px;
}

#lnav #btnPrev a {
  background: url(../images/btn_prev.gif) no-repeat 50% 5px;
}

#lnav #btnNext a {
  background: url(../images/btn_next.gif) no-repeat 50% 0;
}

#lnav #btnPrev a:hover {
  background-position: 50% 0;
}

#lnav #btnNext a:hover {
  background-position: 50% 5px;
}

.row{
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 68%;
  margin: 0 auto;
}

.tablinks{
  width: 32vw;
}

.tablinks:not(.active) {
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.tablinks:hover {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.works{
  padding-top: 143px;
  text-align: right;
  margin-right: 40px;
}

.works h2{
  font-size: 30px;
  font-weight: 700;
}

h3{
  font-size: 24px;
  font-weight: 700;
  margin-top: 88px;
}

.video-wrapper h3{
  font-size: 17px;
  font-weight: normal;
  margin-top: 0;
}

.video-wrapper{
  margin-top: 80px;
}

.iframe-wrapper {
  position: relative;
  width: 66%;
  padding: calc(360 / 640 * 66%) 0 0;
  margin: 0 0 0 auto;
}

.iframe-wrapper iframe, .iframe-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#gnav ul {
  display: none;
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease-out;
}

#gnav li:hover>ul {
  display: block;
  overflow: hidden;
  height: auto;
  transition: height 0.3s ease-out;
}

#contact{
  margin-bottom: 300px;
}

@media screen and (max-width: 400px) {

  .row{
    width: 100%;
  }

  .tablinks{
    width: 50vw;
  }

  .iframe-wrapper {
      position: relative;
      width: 90%;
      padding: calc(360 / 640 * 90%) 0 0;
  }

  #logo img{
    width: 140px;
  }

  #logo{
    font-size: 16px;
    font-weight: 500;
  }

  #wrapper{
    padding-top: 200px;
  }

  h1,
  h2,
  h4,
  h5,
  h6{
    font-size: 130%;
  }

  .works{
    margin-right: 8px;
  }

  .works h2{
    padding-bottom: 0;
    font-size: 18px;
  }

  h3{
    font-size: 16px;
    margin-top: 48px;
  }

  .video-wrapper h3 {
    font-size: 14px;
    margin-top: 0;
  }

  .video-wrapper{
    margin-top: 32px;
  }

  #gnav ul {
    display: none;
    overflow: hidden;
    height: auto;
    /* スマートフォンでは高さを自動調整するために必要 */
    transition: height 0.3s ease-out;
  }

  #gnav li:hover>ul,
  #gnav li.active>ul {
    /* タップで表示されたサブメニューに active クラスを付与することで、表示中の状態を示す */
    display: block;
  }
}
