/*
Theme Name: SHO FUJITA
*/

/* ====================================
common
==================================== */
:root {
  /* --main-color: #FF4F21; */
  --main-color: #8490A2;
  --sub-color: #FF4F21;
  --main-object-color: #555555;
}
html {
  font-size: 14px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, YuGothic, 'Yu Gothic', 游ゴシック体, '游ゴシック', 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'MS ゴシック', 'MS Gothic', sans-serif;
  background-color: #FCFCFC;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.to_top {
  display: none;
}
#bottom_fixed {
  margin-top: auto;
}
.preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

/* ====================================
loading
==================================== */
.loading {
  width: 100vw;
  height: 100vh;
  transition: all 1s;
  background-color: #FFF;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
}
.loading.is_active {
  opacity: 0;
  visibility: hidden;
}
.loading_animation {
  width: 100vw;
  height: 100vh;
  transition: all 1s;
  background-color: #FCFCFC;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}
.loading_animation.is_active {
  opacity: 1;
  visibility: visible;
}
.loading_img {
  width: 180px;
  height: auto;
}

/* ====================================
header
==================================== */
header {
  text-align: center;
}
#logo {
  margin: 35px 0 40px;
  width: 120px;
  height: auto;
}

/* ====================================
nav
==================================== */
#nav {
  margin-bottom: 40px;
}
#nav ul {
  display: flex;
  justify-content: center;
}
#nav li {
  margin: 0 10px;
  font-size: 13px;
}
#nav li a {
  text-align: center;
  color: #E0E0E0;
  display: block;
  width: 76px;
  height: auto;
  padding: 8px 0;
  border-radius: 30px;
  border: 1px solid #E0E0E0;
}
#nav li a.nav_active,
#nav li a.nav_select:hover {
  color: #FFF; 
  background-color: var(--main-color);
  border: 1px solid var(--main-color);
}
#nav li a.nav_select {
  transition-property: background-color, color, border-color;
  transition-duration: .3s;
}

/* ====================================
main
==================================== */
/*work*/
#work_list li,
#note_list li {
  max-width: 270px;
  margin: 0 auto 35px;
}
#work_list li:last-child,
#note_list li:last-child {
  margin-bottom: 50px;
}
#work_list img,
#work_detail img,
#note_list img,
#note_detail img {
  border: 1px solid #E0E0E0;
}
#work_list img,
#note_list img {
  width: 270px;
  height: 270px;
  object-fit: cover;
}
#work_detail,
#note_detail {
  width: 95%;
  margin: 0 auto;
}
#work_detail img {
  max-width: 100%;
  height: auto;
  margin: 0 auto 35px;
}
.work_title {
  text-align: right;
  font-size: 12px;
  font-weight: 200;
  margin-bottom: 65px;
}
.return_sp {
  text-align: center;
  display: inline-block;
  margin-bottom: 50px;
}
.return_pc {
  display: none;
}
/*note*/
.post_date {
  text-align: right;
  margin-top: 10px;
  font-weight: 300;
}
#note_detail img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 35px;
}
#note_detail p {
  margin-bottom: 35px;
  line-height: 1.8;
  font-weight: 300;
  font-size: 12px;
}
#note_detail p a {
  color: var(--sub-color);
}
.post_info {
  margin-bottom: 45px;
  text-align: right;
}
.post_info li {
  display: inline-block;
  font-weight: 200;
}
.post_info li:first-child {
  display: inline-block;
}
.post_info li:first-child:after {
  content: "｜";
}
/*prev next*/
.prev_next_area {
  margin-bottom: 65px;
  font-weight: 300;
}
.nav-links {
  display: flex;
}
.nav-previous,
.nav-next {
  width: 50%;
  text-align: center;
  cursor: pointer;
  background-size: auto auto;
  background-repeat: no-repeat;
}
.nav-previous a,
.nav-next a {
  display: table;
  height: 40px;
  width: 100%;
}
.note_prev,
.note_next {
  display: table-cell;
  vertical-align: middle;
  height: 40px;
}
.nav-previous {
  border-right: 1px solid #CECECE;
  background-image: url("images/prev_sp_1.svg");
  background-position: top 15px left 5px;
}
.nav-next {
  background-image: url("images/next_sp_1.svg");
  background-position: top 15px right 5px;
}
.nav-links.only_next {
  justify-content: flex-end;
}
.nav-links.only_next .nav-next {
  border-left: 1px solid #CECECE;
}
#note_detail p::selection,
#contact p::selection,
#contact li::selection {
  background-color: var(--main-color);
  color: #FFF;
}
/*contact*/
#contact {
  max-width: 270px;
  margin: 0 auto;
}
#contact img {
  max-width: 100%;
  height: auto;
  margin: 0 auto 35px;
}
#contact p {
  line-height: 1.5;
  margin-bottom: 35px;
}
#contact p,
#contact ul {
  font-weight: 200;
  font-size: 12px;
}
#contact ul {
  margin-bottom: 75px;
}
#contact li:last-child {
  margin-top: 10px;
}

/* ====================================
pagination
==================================== */
#pagination_area {
  margin-bottom: 65px;
}
.pagination_btn_last,
.pagination_btn_first,
.pagination_btn_next,
.pagination_btn_prev,
.pagination_item a,
.pagination_item_current {
  box-sizing: border-box;
  display: block;
  color: var(--main-object-color);
  text-decoration: none;
  text-align: center;
  border-radius: 50%;
  min-width: 2.4em;
  transition: all 0.2s;
  margin: 0 5px;
  padding: 10px;
  font-size: 14px;
}
.pagination_btn_last:hover,
.pagination_btn_first:hover,
.pagination_btn_next:hover,
.pagination_btn_prev:hover,
.pagination_item a:hover {
  color: var(--main-color);
}
.pagination_item_current:hover {
  color: #FFF;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
}
.pagination_list {
  display: none;
}
.pagination_pos {
  order: 2;
  color: var(--main-color);
  margin: 0 1em;
}
.pagination_btn_prev {
  order: 1;
}
.pagination_btn_next {
  order: 3;
}
.pagination_btn_first {
  display: none;
}
.pagination_btn_last {
  display: none;
}

/* ====================================
contact btn
==================================== */
.contact_btn_area {
  display: flex;
  justify-content: center;
  margin-bottom: 75px;
}
.contact_btn a {
  width: 160px;
  height: auto;
  border-radius: 50px;
  display: block;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: var(--main-object-color); 
  border: 1px solid var(--main-object-color);
  transition-property: background-color, color;
  transition-duration: .3s;
}
.contact_btn a:hover {
  color: #FFF; 
  background-color: var(--main-object-color);
}

/* ====================================
footer
==================================== */
footer {
  height: 72px;
  background-color: #8490A2;
  color: #FCFCFC;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

/* ====================================
widget
==================================== */
.widget_area {
  margin-bottom: 75px;
  padding: 0 50px;
}
.widget_wrapper {
  max-width: 270px;
  margin: 0 auto;
}
.widget_wrapper + .widget_wrapper {
  margin-top: 25px;
}
.screen-reader-text {
  display: none;
}
.wp-block-categories-dropdown select,
.wp-block-archives-dropdown select {
  border: 1px solid #c5c5c5;
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  color: #a5a5a5;
  cursor: pointer;
  background-image: url("images/arrow_down_1.svg");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: auto auto;
}

/* ====================================
スクリーンサイズが520px以上の場合に適用
==================================== */

@media (min-width: 520px) {
  .pagination_list {
    order: 2;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .pagination_item {
    margin: 0 5px;
  }
  .pagination_item_current {
    background: var(--main-color);
    color: #FFF;
    font-weight: bold;
  }
  .pagination_pos {
    display: none;
  }
}

/* ====================================
スクリーンサイズが1000px以上の場合に適用
==================================== */
@media screen and (min-width: 1000px) {

  /* ==========================
  common
  ========================== */
  html {
    font-size: 16px;
  }
  .to_top_btn {
    stroke: var(--main-object-color);
    transition: stroke .3s ease-in-out;
    
  }
  .to_top:hover .to_top_btn {
    stroke: var(--sub-color);
  }
  .to_top.is_show {
    opacity: 1;
    pointer-events: auto;
  }
  .to_top {
    display: inline-block;
    z-index: 5000;
    position: fixed;
    bottom: 120px;
    right: 50px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    pointer-events: none;
  }

  /* ==========================
  loading
  ========================== */
  .loading_img {
    width: 300px;
  }

  /* ==========================
  header
  ========================== */
  #logo {
    margin: 56px 0;
    width: 198px;
  }

  /* ==========================
  nav
  ========================== */
  #nav {
    margin-bottom: 56px;
  }
  #nav li {
    margin: 0 15px;
    font-size: 17px;
  }
  #nav li a {
    width: 111px;
    height: auto;
    padding: 10px 0;
    border-radius: 30px;
  }

  /* ==========================
  main
  ========================== */
  /*work*/
  #work_list {
    width: 1000px;
    margin: 0 auto;
  }
  #work_list img {
    width: 300px;
    height: 300px;
  }
  #work_list ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 auto;
  }
  #work_list ul::after {
    content: "";
    display: block;
    width: 30%;
  }
  #work_list li {
    max-width: 30%;
    margin: 0 0 50px;
  }
  #work_list li:last-child,
  #note_list li:last-child {
    margin-bottom: 56px;
  }
  #work_detail {
    max-width: 1000px;
  }
  #work_detail .wp-block-image {
    text-align: center;
  }
  #work_detail .vertical {
    max-width: 580px;
  }
  .work_title {
    font-size: 19px;
    margin-bottom: 80px;
  }
  .return_sp {
    display: none;
  }
  .return_pc {
    display: inline-block;
    z-index: 1500;
    position: fixed;
    bottom: 220px;
    right: 50px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
  }
  .return_pc.is_show {
    opacity: 1;
    pointer-events: auto;
  }
  .return_pc .return_pc_btn {
    stroke: var(--main-object-color);
    transition-property: stroke;
    transition-duration: .3s;
  }
  .return_pc:hover .return_pc_btn {
    stroke: var(--sub-color);
  }
  /*note*/
  #note_list {
    margin: 0 auto;
  }
  #note_list li {
    max-width: 470px;
    margin: 0 auto 50px;
  }
  #note_list img {
    width: 470px;
    height: 470px;
  }
  .post_date {
    margin-top: 15px;
    font-size: 16px;
  }
  #note_detail {
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
  }
  #note_detail .vertical {
    max-width: 580px;
    display: block;
    margin: 0 auto 35px;
  }
  #note_detail p {
    font-size: 14px;
  }
  #note_detail p a {
    transition: color .3s ease-in-out;
  }
  #note_detail p a:hover {
    color: #c5c5c5;
  }
  .post_info {
    margin-bottom: 75px;
  }
  /*prev next*/
  .prev_next_area {
    width: 420px;
    margin: 0 auto 80px;
  }
  .nav-previous,
  .nav-next {
    text-align: left;
    line-height: 1.5;
    font-size: 16px;
    transition: background-image .3s ease-in-out;
  }
  .nav-previous a,
  .nav-next a {
    padding: 0;
    height: 50px;
    text-align: center;
  }
  .nav-previous a {
    padding-left: 20px;
  }
  .nav-next a {
    padding-right: 20px;
  }
  .note_prev,
  .note_next {
    height: 50px;
  }
  .nav-previous {
    background-image: url("images/prev_pc_1.svg");
    background-position: top 19px left 12px;
  }
  .nav-previous:hover {
    background-image: url("images/prev_pc_2.svg");
  }
  .nav-next {
    justify-content: end;
    background-image: url("images/next_pc_1.svg");
    background-position: top 19px  right 12px;
  }
  .nav-next:hover {
    background-image: url("images/next_pc_2.svg");
  }
  /*contact*/
  #contact {
    max-width: 470px;
  }
  #contact img {
    max-width: 100%;
    margin-bottom: 40px;
  }
  #contact p {
    line-height: 2;
    margin-bottom: 35px;
  }
  #contact p,
  #contact ul {
    font-size: 14px;
  }
  #contact ul {
    margin-bottom: 90px;
  }
  #contact li:last-child {
    margin-top: 15px;
  }

  /* ==========================
  pagination
  ========================== */
  #pagination_area {
    margin-bottom: 80px;
  }
  .pagination_btn_last,
  .pagination_btn_first,
  .pagination_btn_next,
  .pagination_btn_prev,
  .pagination_item a,
  .pagination_item_current {
    min-width: 2.3em;
    font-size: 16px;
  }
  .pagination .pagination_list {
    order: 3;
  }
  .pagination .pagination_btn_prev {
    order: 2;
  }
  .pagination .pagination_btn_next {
    order: 4;
  }
  .pagination .pagination_btn_first {
    order: 1;
    display: block;
  }
  .pagination .pagination_btn_last {
    order: 5;
    display: block;
  }

  /* ==========================
  contact btn
  ========================== */
  .contact_btn_area {
    margin-bottom: 90px;
  }
  .contact_btn a {
    width: 186px;
    border-radius: 50px;
    padding: 14px 0;
    font-size: 16px;
  }

  /* ==========================
  footer
  ========================== */
  footer {
    height: 80px;
    font-size: 14px;
  }

  /* ====================================
  widget
  ==================================== */
  .widget_area {
    margin-bottom: 90px;
    padding: 0;
  }
  .widget_wrapper {
    max-width: 340px;
  }
  .widget_wrapper + .widget_wrapper {
    margin-top: 30px;
  }
  .wp-block-categories-dropdown select,
  .wp-block-archives-dropdown select {
    padding: 16px;
    transition: background-image 0.3s ease-in-out;
  }
  .wp-block-categories-dropdown:hover select,
  .wp-block-archives-dropdown:hover select {
    background-image: url("images/arrow_down_2.svg");
  }

}