/* ----------------------------------------------------------
WEBフォント読み込み設定
-----------------------------------------------------------*/
@import url(https://fonts.googleapis.com/css?family=Lato:400,700);
@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);

/* ----------------------------------------------------------
基本設定
-----------------------------------------------------------*/
* {
  box-sizing: border-box;
}
html {
  font-size: 62.5%; /* 10px = 1rem */
  font-feature-settings: "palt";
  /* カーニング設定 Proportional Alternate Widths（代替プロポーショナル幅）*/
}
body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  font-family: Lato, "Noto Sans JP", sans-serif;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
ul li {
  list-style: none;
}
a {
  text-decoration: none;
}

/* ----------------------------------------------------------
ヘッダー & ナビゲーション
-----------------------------------------------------------*/
.header {
  position: fixed;
  z-index: 10;
  width: 100%;
  margin-inline: auto;
  background-color: #fff;
}
.header__wrapper {
  max-width: 1040px;
  margin-inline: auto;
  padding-block: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
}
.header__logo {
  width: 50%;
}
.header__logo a {
  transition: all 0.3s;
}
.header__logo a:hover {
  opacity: 0.6;
}
.header__logo h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #666;
}
.header__navigation {
  width: 50%;
}
.header__navigation ul {
  display: flex;
  justify-content: space-between;
}
.header__navigation li a {
  font-size: 1.2rem;
  letter-spacing: 0.2rem;
  color: #666;
  transition: all 0.3s;
}
.header__navigation a:hover {
  opacity: 0.6;
}
#toggle-nav {
  display: none;
}

/* ----------------------------------------------------------
メインビジュアル
-----------------------#header------------------------------*/
.mainvisual {
  max-width: 1040px;
  margin-inline: auto;
  padding-block: 7rem 10rem;
}
.mainvisual img {
  width: 100%;
}

/* ----------------------------------------------------------
プロフィール
-----------------------------------------------------------*/
.profile {
  max-width: 1040px;
  margin: auto;
  padding-block: 10rem;
  background-color: #f2f2f2;
  display: flex;
  justify-content: space-around;
}
.profile h2 {
  margin-top: 0;
  font-size: 3rem;
  letter-spacing: 0.2rem;
  font-weight: normal;
  color: #666;
}
.profile h3 {
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  font-weight: normal;
  color: #666;
}
.profile p {
  font-size: 1.4rem;
  color: #666;
}
.profile .text a {
  color: #19adff;
}
.profile .text a:hover {
  opacity: 0.6;
}
.profile__content__left {
  width: 40%;
  margin-inline: 10rem 5rem;
}
.profile__content__right {
  width: 60%;
  margin-inline: 5rem 10rem;
}
.profile__content__right ul li {
  padding-block: 10px;
  display: flex;
  justify-content: flex-start;
}
.profile__content__right .year {
  width: 25%;
  margin-block-start: 0.3rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #666;
}
.profile__content__right .text {
  width: 75%;
  font-size: 1.4rem;
  color: #666;
}

/* ----------------------------------------------------------
ポートフォリオ
-----------------------------------------------------------*/
.portfolio {
  max-width: 1040px;
  margin-inline: auto;
  padding-block: 10rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 横に3つ並べる例 */
  gap: 2rem;
}
.portfolio__item {
  display: flex;
  position: relative;
  margin: 0 auto;
  align-items: center;
}
.portfolio__item a {
  transition: all 0.3s;
}
.portfolio__item a:hover {
  opacity: 0.6;
}
.portfolio__item img {
  width: 100%;
}
.portfolio__item h2 {
  color: #f2f2f2;
  font-size: 1.6rem;
  line-height: 1.6;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
}
.portfolio__item p {
  color: #f2f2f2;
  font-size: 1rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}
.caption {
  position: absolute;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
}
.caption__content {
  padding: 1rem;
  text-align: center;
  color: #fff;
}

/* ----------------------------------------------------------
フッター
-----------------------------------------------------------*/
.footer {
  max-width: 1040px;
  margin-inline: auto;
  padding-bottom: 10%;
}
.footer__name {
  font-size: 1.6rem;
  color: #666;
}
.footer__mail {
  font-size: 1.2rem;
  color: #666;
}
.footer__copyright {
  font-size: 1.2rem;
  color: #666;
}
.footer a {
  color: #666;
}
.footer a:hover {
  opacity: 0.6;
}
.footer ul {
  display: flex;
  justify-content: space-between;
  width: 10%;
}
.footer ul li a {
  font-size: 2rem;
  letter-spacing: 15px;
  color: #666;
  transition: all 0.3s;
}
.footer ul li a:hover {
  opacity: 0.6;
}

/* ----------------------------------------------------------
作品詳細ページ
-----------------------------------------------------------*/
.work__detail {
  max-width: 1040px;
  margin: auto;
  padding-block: 10rem;
  display: flex;
  justify-content: space-between;
}
.work__image {
  margin: 0;
  width: 60%;
}
.work__image img {
  width: 100%;
  margin-block-end: 1rem;
  vertical-align: bottom;
}
.work__image img:last-child {
  margin-block-end: 0;
}
.detail__content {
  margin: 0;
  width: 38%;
  height: auto;
  background-color: #f2f2f2;
  padding: 3%;
  align-self: flex-start;
}
.detail__content ul li {
  margin-block-end: 2.4rem;
}
.detail__content h2 {
  font-size: 2.4rem;
  letter-spacing: 0.1rem;
  font-weight: normal;
  color: #666;
}
.detail__content h3 {
  margin-block-end: -1.4rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #666;
}
.detail__content p {
  font-size: 16px;
  color: #666;
}

/* 作品詳細内リンクボタン */
.btn {
  display: inline-block;
  margin-block: 4rem;
  padding-block: 1rem;
  padding-inline: 2rem;
  background-color: #666;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.1rem;
  color: #fff;
  transition: all 0.3s;
}
.btn:hover,
.btn:focus {
  background-color: #222;
}

/* ----------------------------------------------------------
メディアクエリ設定
-----------------------------------------------------------*/
@media (width < 1040px) {
  .header__wrapper,
  .profile,
  .portfolio,
  .footer,
  .work__detail {
    grid-template-columns: repeat(2, 1fr);
    padding-inline: 2rem;
  }
  .profile__content__left {
    width: 90%;
    margin-inline: 2rem;
  }
  .profile__content__right {
    width: 90%;
    margin-inline: 2rem;
  }
}

@media (width < 760px) {
  .header__wrapper,
  .profile,
  .portfolio,
  .footer,
  .work__detail {
    padding-inline: 2rem;
  }
  .mainvisual img {
    height: 100vh;
    object-fit: cover;
  }
  .profile {
    flex-direction: column;
  }
  .portfolio {
    grid-template-columns: 1fr;
  }
  .header__logo {
    width: 90%;
  }
  .header__navigation {
    width: 10%;
  }
  /* 作賓詳細ページ */
  .work__detail {
    margin-inline: auto;
    flex-direction: column;
  }
  .work__image {
    margin: 0;
    width: 100%;
  }
  .detail__content {
    margin: 0;
    width: 100%;
    height: auto;
    background-color: #f2f2f2;
    padding: 3%;
    align-self: flex-start;
  }
}

/* ----------------------------------------------------------
トグルメニュー
-----------------------------------------------------------*/
@media (width < 760px) {
  #toggle-nav {
    display: none;
  }
  #toggle-nav:checked ~ .toggle div {
    background: #fff;
  }
  #toggle-nav:checked ~ .toggle div:nth-of-type(1) {
    margin-block-start: 1.2rem;
  }
  #toggle-nav:checked ~ .toggle div:nth-of-type(2) {
    margin-block-start: -2rem;
  }
  #toggle-nav:checked ~ .navigation {
    opacity: 1;
    visibility: visible;
  }
  .toggle {
    position: absolute;
    z-index: 10;
    top: 32%;
    right: 0;
    width: 32px;
    margin: 0;
    padding: 0;
    cursor: pointer;
  }
  .toggle div {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
    transition: 0.5s;
  }
  .toggle div:nth-of-type(2) {
    margin: 0.4rem 0;
  }

  /* ナビゲーション＆背景 */
  .navigation {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }
  .header__navigation {
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .header__navigation ul {
    flex-direction: column;
  }
  .header__navigation ul li a {
    font-size: 1.6rem;
    line-height: 4;
  }
  .header__navigation ul li a {
    color: #fff;
  }
}
