@charset "UTF-8";

html {
  font-size: 100%;
}
body {
  color: #121212;
  font-family: 'Noto Sans JP', sans-serif;
}
a {
  color: #121212;
  text-decoration: none;
}
img {
  max-width: 100%;
  vertical-align: bottom;
}
li {
  list-style: none;
}

/* サイドメニューの横幅分だけ左にmarginをとる */
.container {
  margin-left: 300px;
}
/* コンテンツ幅を設定するための共通クラス */
.wrapper {
  max-width: 1300px;
  padding: 80px 20px;
}
.site-title {
  width: 200px;
  line-height: 1px;
  margin-bottom: 30px;
}
.site-title a {
  display: block;
}
/*
セクションタイトル用の共通クラス
両サイドの線は疑似要素で作成して、Flexboxで横並びに配置
※beforeが左の線、afterが右の線
*/
.sec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.75rem;
  margin-bottom: 60px;
  text-align: center;
}
.sec-title::before,
.sec-title::after {
  border-top: 1px solid;
  content: "";
  width: 28%;
}

/*-------------------------------------------
ヘッダー
-------------------------------------------*/
#header {
  width: 300px;
  height: 100%;
  background-color: #fff;
  padding: 40px 50px 30px 45px;
  position: fixed;
  top: 0;
  /* 画面の高さが低くてメニューが隠れてしまった場合に、縦スクロールが出るよう設定 */
  overflow-y: auto;
}
#header .nav-menu {
  margin-bottom: 60px;
}
#header li {
  font-size: 0.875rem;
  padding: 8px 0;
}

/*-------------------------------------------
見出し
-------------------------------------------*/
h2{
  margin:20px 0px 20px 0px;
  font-size: 2em;
  font-family: serif;
}


/*-------------------------------------------
アーティクル
-------------------------------------------*/
article{
  margin-bottom:50px;
}
/*-------------------------------------------
キャラ
-------------------------------------------*/
/* 背景に黒の透過を設定 */
#feature {
  color: #fff;
  padding-bottom: 80px;
}
#feature .chara {
  position:relative;
  display: flex;
  justify-content: space-between;
}

/* #feature .chara li{
  width: 30%;
  border:solid 1px #fff;
  border-radius: 50%;
} */
#feature .chara li a img{
  border-radius: 50%;  /* 角丸半径を50%にする(=円形にする) */
    width:  280px;       /* ※縦横を同値に */
    height: 280px;       /* ※縦横を同値に */
    border:solid #fff 2px;
    object-fit: cover;
}
#feature .chara .name{
  color: #fff;
    text-align: center;
}

/* レスポンシブに対応した可変サイズの円を作成する場合は、
widthに100%を設定して、paddingで上下を50%に設定
今回は円の中にテキストが入っているのと、枠線をつけているため、
50%から上下それぞれテキストの高さ（10px）とボーダー（1px）をマイナスしている
※テキストの高さは、ディベロッパーツールで20pxと確認できるため、
上下で分割してそれぞれ10pxとなる。 */
#feature .chara li a {
  width: 100%;
  border-radius: 50%;
  color: #fff;
  display: block;
  margin-bottom: 15px;
  text-align: center;
  position: relative;
  /* ホバー時用の要素を隠すために設定 */
  overflow: hidden;
}

/*
ホバー時のスライドを疑似要素で作成
「left: -100%;」で左側に隠しておく
*/
#feature .chara li a::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: #fff;
  position: absolute;
  top: 0;
  left: -100%;
  opacity: 0.3;
  transition: 0.5s;
}
/* ホバー時に「left: 0;」を設定して右に移動させる */
#feature .chara li a:hover::before {
  left: 0;
}
#feature .chara-name{
  position: absolute;
  padding:160px 100px 0;
}

/*-------------------------------------------
フッター
-------------------------------------------*/
#footer {
    background-color: #121212;
    color: #fff;
    padding: 20px 0;
  }
  #footer .menu {
    display: flex;
    justify-content: center;
    margin: 30px 0 60px 0;
  }
  #footer .menu li {
    border-right: solid 1px #fff;
    font-size: 0.875rem;
    padding: 0 20px;
  }
  #footer .menu li:last-child {
    border-right: none;
  }
  #footer .menu li a {
    color: #fff;
  }
  #footer .copyright {
    font-size: 0.75rem;
    text-align: center;
  }

  /*-------------------------------------------
SP
-------------------------------------------*/
@media screen and (max-width: 960px) {
    .container {
      margin-left: 0;
    }
    .wrapper {
      padding: 60px 20px;
    }
    .site-title {
      width: 180px;
      margin-bottom: 0;
      position: relative;
      left: 18px;
      top: 10px;
    }
    /*-------------------------------------------
  ヘッダー
  -------------------------------------------*/
  #header {
    width: 100%;
    height: 72px;
    padding: 0;
    z-index: 10;
  }
  /*
  ハンバーガーメニュー
  ※ハンバーガーメニューの説明は他の課題と重複するため割愛
  */
  #navi {
    width: 300px;
    background: #fff;
    padding: 25px;
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    opacity: 0;
    overflow-y: auto;
    transition: 0.5s;
    z-index: 20;
  }
  .open #navi {
    left: 0;
    opacity: 1;
  }
  #navi ul.nav-menu {
    margin-bottom: 30px;
  }
  #navi ul li {
    padding: 10px 0;
  }
  .hamburger {
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: fixed;
    top: 22px;
    right: 18px;
    transition: 0.5s;
    z-index: 20;
  }
  .hamburger span {
    width: 30px;
    height: 2px;
    background-color: #121212;
    border-radius: 4px;
    display: block;
    position: absolute;
    left: 0;
    transition: 0.5s;
  }
  .hamburger span:nth-child(1) {
    top: 4px;
  }
  .hamburger span:nth-child(2) {
    top: 14px;
  }
  .hamburger span:nth-child(3) {
    bottom: 4px;
  }
  .open .hamburger span {
    background-color: #fff;
  }
  .open .hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(-315deg);
  }
  .open .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .open .hamburger span:nth-child(3) {
    transform: translateY(-10px) rotate(315deg);
  }
  #mask {
    display: none;
    transition: 0.5s;
  }
  .open #mask {
    width: 100%;
    height: 100%;
    background-color: #000;
    cursor: pointer;
    display: block;
    opacity: 0.8;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
  }

  /*-------------------------------------------
見出し
-------------------------------------------*/
h2{
  margin:20px 0px 20px 0px;
  font-size: 1.2em;
  font-family: serif;
}
  /*-------------------------------------------
アーティクル
-------------------------------------------*/
main {
  margin-top: 50px;
}
article{
  flex-direction: column;
}

/* キャラパディング */
.item{
  margin:0 auto;
}

/*-------------------------------------------
  キャラ
  -------------------------------------------*/
  #feature {
    padding-bottom: 60px;
  }
  .chara{
    flex-direction: column;
  }
  #feature li{
    display:block;
    margin-bottom:0px;
  }
  #feature li .name{
    margin:10px 0 30px 0;
  }
  #feature .chara li a::before{
    display: none;
  }
  #feature .chara li a{
    margin:0 auto;
    width: 50%;
  }

  #feature .chara li a {
    width:100%;
  }
/*-------------------------------------------
  フッター
  -------------------------------------------*/
  #footer .menu {
    flex-wrap: wrap;
  }
  #footer .menu li {
    margin-bottom: 10px;
  }
}  