@charset "utf-8";

/* =====================================
共通項目
===================================== */
* {
  box-sizing: border-box;
}

/* ページ全体の背景 */
body {
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #272727;
  background-color: #fffef8;
}

/* リンク */
a {
  display: block;
  color: #272727;
  text-decoration: none;
}

/* リスト：階層に応じてマーカー変更 */
ul {
  list-style-type: disc;
}
ul ul {
  list-style-type: circle; /* 入れ子は白丸 */
  margin-left: 1em;
}
ul ul ul {
  list-style-type: square; /* さらに深い階層は四角 */
  margin-right: 2em;
}
ul li {
  display: list-item;
  line-height: 1.5;
}

/* 画像 */
img {
  width: 100%;
  vertical-align: top;
}

/* 段落 */
p {
  text-align: justify;
}

/* ボタン */
button {
  border: none;
  background-color: transparent;
}

/* コンテンツの幅 */
.container {
  width: 1300px;
  margin: 0 auto;
  overflow-x: hidden; /*横スクロールの防止*/
}

/* 各セクションのマージンボトム */
.section-bottom {
  margin-bottom: 100px;
}

/* ナビゲーション、大見出しの共通点 */
.nav-list,
.heading {
  font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  font-size: 6.25rem;
}
.heading {
  margin-bottom: 20px;
  line-height: 1em; /*勝手につく余白を除去*/
}
.heading-sub {
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 2rem;
  font-weight: normal;
}

/* もっと見るボタン */
.more-btn a{
  background-color: #272727;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  width: 260px;
  padding: 15px;
  font-size: 1.2rem;
  color: #ffffff;
  transition: 0.3s ease-in-out;
}
.more-btn a:hover,
.more-btn a:focus {
  background-color: #cac8c5;
  color: #272727;
}
.more-btn a::after {
  content: '';
  width: 5px;
  height: 5px;
  border-top: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: 50%;
  right: 20px;
  transition: 0.3 ease-in-out;
}
.more-btn a:hover:after,
.more-btn a:focus::after {
  border-color: #272727;
}

/* 各セクションのリストスタイルタイプを非表 */
.nav-list,
.works-list,
.works-category,
.blog-list,
.footer-menu {
    list-style-type: none;
    margin-left: 0;
}

/* =====================================
ヘッダー
===================================== */
header {
  width: 100%;
  height: 89px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  background-color: #ece8e8;
}

.header-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.logo a img {
  display: block;
  max-width: 436px;
}
.logo a,
.nav-list__item a {
  display: block;
  border: 2px solid #ece8e8;
}
.logo a:hover,
.logo a:focus {
  border: 2px solid #272727;
  border-radius: 5px;
}
.nav-list {
  display: flex;
  gap: 20px;
  font-size: 2.1875rem;
}
.nav-list__item a:hover,
.nav-list__item a:focus {
  border-bottom: 2px solid #272727;
}

/* =====================================
メインビジュアル
===================================== */
.mv-box {
  width: 100%;
  margin-top: 140px;
  position: relative;
}
.mv-box__photo {
  position: relative;
  right: 5%;
  display: block;
  margin-left: auto;
  width: 975px;
  height: 734px;
  object-fit: cover;
  z-index: 10;
  border-radius: 50% 50% 50% 70%/50% 50% 70% 60%;
}
.mv-box__title {
  position: absolute;
  top: 50%;
  left: 5%;
  z-index: 20;
  width: 50%;
}
/* FirefoxのCSSハック */
_:lang(x)::-moz-placeholder, .mv-box__title {
  position: absolute;
  top: 49%;
  left: 10%;
  z-index: 20;
  width: 50%;
}

/* =====================================
私について
===================================== */
.about-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.about-box__outline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
}
.about-box__subheading {
  text-align: center;
  font-size: 1.75rem;
  font-weight: normal;
}
.about-box__text {
  font-size: 1.2rem;
}

/* =====================================
制作物＆ブログ
===================================== */
.works-list,
.blog-list {
  margin-bottom: 35px;
}
.works-list__item a,
.blog-list__item a {
  width: 100%;
  border: 2px solid #fffef8;
}
.works-list__images {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.works-list__item a:hover,
.works-list__item a:focus,
.blog-list__item a:hover,
.blog-list__item a:focus {
  border: 2px solid #272727;
}
.works-list__title {
  font-size: 1.5625rem;
  margin: 5px 0;
}
.works-category {
  display: flex;
}
.works-category li:not(:last-child)::after{
  content: "|";
  padding: 0 5px;
}
.blog-list__title,
.category-name,
.blog-list_time {
  margin-top: 10px;
}
.category-name {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style-type: none;
}
.category-name li {
  padding: 7px;
  background-color: #fc6c85;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.9rem;
}
.blog-list_time {
  display: flex;
  gap: 3px;
}
.material-symbols-outlined {
  font-size: 20px;
  line-height: 1.5em
}

/* =====================================
フッター
===================================== */
footer {
  background-color: #ECE8E8;
  padding: 30px 0;
}
.footer-logo img {
  display: block;
  margin:  0 auto;
  width: 436px;
}
.footer-menu {
  display: flex;
  justify-content: center;
  font-size: 1.2rem;
  margin: 50px auto;
}
.footer-menu li {
  width: 240px;
  text-align: center;
  border-left: 1px solid #272727;
  padding: 0 10px;
}
.footer-menu li:focus,
.footer-menu li:hover {
  background-color: #cac8c5;
}
.footer-menu li:last-of-type {
  border-right: 1px solid #272727;
}
.copywriter {
  display: block;
  text-align: center;
}

/* =====================================
ページトップに戻るボタン
===================================== */
#pagetop {
  position: fixed;
  bottom: 3%;
  right: 3%;
  width: 70px;
  height: 70px;
  text-align: center;
  padding: 15px;
  background-color: #272727;
  z-index: 10;
  transition: all .3s ease;
}
#pagetop:hover {
  background-color: #585b5b;
}
#pagetop img {
  width: 30px;
  height: 30px;
}

/* =====================================
ブレークポイント1310px以下
===================================== */
@media screen and (max-width: 1315px) {
   /* コンテンツ幅 */
   .container {
    width: 90%;
  }

  /* メインビジュアル */
  .mv-box__photo {
    width: 60%;
    height: 500px;
  }
}

/* =====================================
ブレークポイント1200px以下
===================================== */
@media screen and (max-width: 1200px) {
  /* 各セクションのマージンボトム */
  .section-bottom {
    margin-bottom: 60px;
  }

  /* ナビゲーション */
  .nav-box {
    display: none;
  }

  /* 制作物 */
  .works-list__title {
    font-size: 1.3rem;
  }

  /* フッター */
  .footer-menu {
    flex-direction: column;
    margin: 50px auto 100px auto;
  }
  .footer-menu li {
    width: calc(100%);
    border-left: none;
    border-bottom: 1px dashed #272727;
  }
  .footer-menu li:first-of-type {
    border-top:  1px dashed #272727;
  }
  .footer-menu li a {
    padding: 10px;
  }
  .footer-menu li:last-of-type {
    border-right: none;
  }

  /* ページトップに戻るボタン */
  #pagetop {
    right: 5%;
    bottom: 1%;
    width: 50px;
    height: 50px;
    padding: 10px;
  }
  #pagetop img {
    width: 25px;
    height: 25px;
  }
}

/* =====================================
ブレークポイント980px以下
===================================== */
@media screen and (max-width: 980px) {
  /* 大見出し */
  .heading {
    font-size: 5rem;
  }
  .heading-sub {
    font-size: 1.5625rem;
  }

  /* メインビジュアル */
  .mv-box__photo {
    width: 80%;
    height: auto;
  }
  _:lang(x)::-moz-placeholder, .mv-box__title {
    left: 5%;
  }

  /* 私について */
  .about-box {
    grid-template-columns: 1fr;
  }

  /* 制作物 */
  .works-list {
    grid-template-columns: 1fr 1fr;
  }
  .works-list__images {
    height: 330px;
  }

  /* ブログ */
  .blog-list {
    grid-template-columns: 1fr;
  }
}

/* =====================================
ブレークポイント572px以下
===================================== */
@media screen and (max-width: 572px) {
  /* ロゴマーク */
  .logo,
  .footer-logo img {
    width: 100%;
  }
  .logo a img {
    width: 80%;
  }

  /* 大見出し */
  .heading {
    font-size: 3.125rem;
    margin-bottom: 15px;
  }
  
  /* メインビジュアル */
  .mv-box__title {
    width: 70%;
    top: 40%;
  }

  /* 私について */
  .about-box__subheading {
    font-size: 1.5rem;
  }
  .about-box__text {
    font-size: 1rem;
  }

   /* 制作物 */
   .works-list {
    grid-template-columns: 1fr;
  }
  .works-list__images {
    height: 50vw;
  }

  /* ページトップに戻るボタン */
  #pagetop {
    bottom: 2%;
  }
}