main {
  margin-top: 64px;
}
@media screen and (max-width: 599px) {
  main {
    margin-top: 0;
  }
}

/*------------------------------------
  #TOP
-------------------------------------*/
#TOP {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
	min-height: 580px;
  max-height: 70vh;
}

.fvItem {
  position: relative;
}

#fvItem-3::before,
#fvItem-6::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--White);
  opacity: 0.4;
  z-index: 3;
}
#fvItem-4::before,
#fvItem-5::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--Pink);
  opacity: 0.4;
  z-index: 3;
}

.fvPhoto img {
  position: absolute;
  top: 0;
  left: 0;
}

.fvLogo {
	width:100%;
	height: 100%;
  background: var(--Pink);
}

.fvLogo img {
  object-fit: contain;
}

.fvText {
  background: var(--White);
  border: 0.5rem solid var(--Pink);
}

.fvText > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  width: 90%;
  height: 100%;
}

.fvText h3 {
  line-height: 1.2;
}

.fvText p {
  position: relative;
  margin-top: 1.5rem;
  font-size: 14px;
  line-height: 1.33;
}

.fvText p::before {
  content: "";
  position: absolute;
  display: block;
  top: -1rem;
  width: 100%;
  height: 4px;
  background: var(--Pink);
}



@media screen and (max-width: 1024px) {
  .fvText {
    border-width: 0.3rem;
  }

  .fvText h3 {
    font-size: 1.2rem;
  }

  .fvText p {
    margin-top: 1rem;
    font-size: 12px;
    text-align: justify;
    text-justify: inter-ideograph;
  }

  .fvText p::before {
    top: -0.6rem;
  }
}


@media screen and (max-width: 799px) {
  #TOP {
    max-height: 120vh;
  }

  #fvItem-1::after,
  #fvItem-4::after,
  #fvItem-5::after,
  #fvItem-8::after {
    content: "";
    display: block;
    padding-top: 100%;
  }
  #fvItem-1 {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
  }
  #fvItem-2 {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 3;
    grid-row-end: 5;
  }
  #fvItem-3 {
    grid-column-start: 2;
    grid-column-end: 5;
    grid-row-start: 1;
    grid-row-end: 3;
  }
  #fvItem-4 {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
  }
  #fvItem-5 {
    grid-column-start: 4;
    grid-column-end: 5;
    grid-row-start: 6;
    grid-row-end: 7;
  }
  #fvItem-6 {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 5;
    grid-row-end: 7;
  }
  #fvItem-7 {
    grid-column-start: 2;
    grid-column-end: 5;
    grid-row-start: 3;
    grid-row-end: 5;
  }
  #fvItem-8 {
    grid-column-start: 4;
    grid-column-end: 5;
    grid-row-start: 5;
    grid-row-end: 6;
  }

  .fvLogo {
    overflow: hidden;
  }

  .fvLogo img {
	  position: absolute;
    transform: scale(1.2);
    object-position: center;
  }

  .fvText > div {
    height: calc(100% - 1.2rem * 2);
    margin: 1.2rem auto;
  }
}



@media screen and (max-width: 399px) {
  .fvLogo img {
    transform: scale(1.5);
  }
}





/*------------------------------------
  #NEWPOSTS
-------------------------------------*/
#NEWPOSTS {
  width: 95%;
  max-width: 1400px;
  margin-right: auto;
  margin-left: auto;
}

#newpostsHead {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  padding: 1.5rem 1.5rem 1rem;
  background: var(--Pink);
  border-radius: 3rem 3rem 0 0;
}

#newpostsHead #categoryList {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 4px 1rem;
  margin-left: 2rem;
  color: var(--White);
  background: var(--Pink);
}

#newpostsHead #categoryList li {
  white-space: nowrap;
}

#newpostsHead #categoryList li + li {
  margin-left: 1.5rem;
}

#newpostsHead #categoryList .current {
  font-weight: 600;
}

#NEWPOSTS ul#postsList {
  padding: 1.5rem;
  width: calc( 100% - 1.5rem * 2);
}

#NEWPOSTS ul#postsList li.post {
  width: calc((100% - 1.5rem * 3) / 4);
}
#NEWPOSTS ul#postsList li.post:not(:nth-of-type(4n + 1)) {
  margin-left: 1.5rem;
}
#NEWPOSTS ul#postsList li.post::nth-of-type(n + 4) {
  margin-top: 2rem;
}



@media screen and (max-width: 1024px) {
  #NEWPOSTS ul#postsList li.post {
    width: calc((100% - 1.5rem * 2) / 3);
  }
  #NEWPOSTS ul#postsList li.post:not(:nth-of-type(4n + 1)) {
    margin-left: 0;
  }
  #NEWPOSTS ul#postsList li.post:not(:nth-of-type(3n + 1)) {
    margin-left: 1.5rem;
  }
  #NEWPOSTS ul#postsList li.post:nth-of-type(n + 4) {
    margin-top: 2rem;
  }
}


@media screen and (max-width: 799px) {
  #NEWPOSTS ul#postsList li.post {
    width: calc((100% - 1.5rem) / 2);
  }
  #NEWPOSTS ul#postsList li.post:not(:nth-of-type(3n + 1)) {
    margin-left: 0;
  }
  #NEWPOSTS ul#postsList li.post:nth-of-type(even) {
    margin-left: 1.5rem;
  }
  #NEWPOSTS ul#postsList li.post:nth-of-type(n + 3) {
    margin-top: 2rem;
  }
}


@media screen and (max-width: 599px) {
  #newpostsHead {
    flex-direction: column;
    align-items: center;
  }

  #newpostsHead #categoryList {
    width: 100%;
    margin-top: 1.5rem;
    margin-left: 0;
  }

  #NEWPOSTS ul#postsList li.post {
    width: 100%;
  }

  #NEWPOSTS ul#postsList li.post:nth-of-type(even) {
    margin-left: 0;
  }
  #NEWPOSTS ul#postsList li.post + li.post {
    margin-top: 2rem;
  }
}




/*------------------------------------
  #SNS
-------------------------------------*/
#SNS {
  padding: 4rem 0 2rem;
  background: var(--Pink);
}

#SNS .secInner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

#snsField {
  width: 100%;
  margin-left: 2rem;
}

#snsFeedField {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

#snsFeedField span {
  white-space: inherit;
} 

.feedBox {
  width: calc((100% - 2rem) / 2);
  background: var(--White);
  border-radius: 1rem;
}

.feedBoxTitle {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1rem 1.5rem 0.8rem;
  color: var(--White);
  border-radius: 1rem 1rem 0 0;
}

.feedBoxTitle h4 {
  z-index: 3;
}

.feedBoxTitle h4 i {
  position: relative;
  margin-right: 0.5rem;
}

#snsFeedField .feedBoxContents {
  position: relative;
  margin: 0.8rem auto;
  width: calc(100% - 0.8rem * 2);
  max-width: 480px;
}

.feedBoxContents::before {
  content: "";
  display: block;
  padding-top: 102%;
}

.feedBoxContents > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.feedBoxContents > p {
  position: absolute;
  top: calc(50% - 1.2rem);
  left: 0;
  width: 100%;
  text-align: center;
}


@media screen and (max-width: 799px) {
  #snsFeedField {
    flex-direction: column;
    width: 90%;
    margin: 0 auto;
  }

  .feedBox {
    width: 100%;
  }
}


@media screen and (max-width: 599px) {
  #SNS .secInner {
    flex-direction: column;
    align-items: center;
  }
  
  #snsField {
    margin-top: 2rem;
    margin-left: 0;
  }

  #snsFeedField { 
    width: 95%;
  }

  .feedBoxContents.cff-wrapper::before {
    padding-top: 120%;
  }
}



  /*------------------------------------
    instagram
  -------------------------------------*/
  #instagramFeedBox .feedBoxTitle {
    position: relative;
    background: transparent linear-gradient(282deg, #FB487D 0%, #4866E8 100%) 0% 0% no-repeat padding-box;
    overflow: hidden;
  }
  
  #instagramFeedBox .feedBoxTitle::before {
    content: "";
    position: absolute;
    left: -145%;
    bottom: -95%;
    width: 300%;
    height: 200%;
    background: transparent radial-gradient(closest-side at 40% 46%, #FFD734 0%, #FF9D77 32%, #FFA07400 100%) 0% 0%;
    z-index: 0;
  }

  #sb_instagram {
    padding: 0 !important;
    overflow-y: scroll;
  }

  /*------------------------------------
    facebook
  -------------------------------------*/
  #facebookFeedBox {
    margin-left: 2rem;
  }

  #facebookFeedBox .feedBoxTitle {
    background: #335A9F;
  }
  
  .uiScaledImageContainer._2zfr {
    width: 100% !important;
  }

  .fb-page,
  .fb-page > span,
  .fb-page > span > iframe {
    width: 100%;
    max-width: 480px;
    height: 100% !important;
  }


  @media screen and (max-width: 799px) {
    #facebookFeedBox {
      margin-top: 2rem;
      margin-left: 0;
    }
  }



/*------------------------------------
  SNSリンクボタン
-------------------------------------*/
ul#snsMenu {
  width: fit-content;
  margin-top: 4rem;
  margin-left: auto;
}

ul#snsMenu li a {
  position: relative;
  display: flex;
  align-items: center;
  width: 200px;
  height: 40px;
  line-height: 40px;
  background: var(--White);
  border-radius: 9999px;
}
ul#snsMenu li.twitter a {
  color: var(--TWITTER);
}
ul#snsMenu li.line a {
  margin-top: 0.75rem;
  color: var(--LINE);
}
  ul#snsMenu li a:hover {
    opacity: 1;
  }

ul#snsMenu li a::before {
  position: relative;
  font-family: "Font Awesome 5 Brands";
  font-weight: 400;
  z-index: 2;
}
ul#snsMenu li.twitter a::before {
  content: "\f099";
  margin-right: 0.8rem;
  margin-left: 1rem;
  color: var(--White);
  font-size: 24px;
}
ul#snsMenu li.line a::before {
  content: "\f3c0";
  margin-right: calc(0.8rem - 4px);
  margin-left: calc(1rem - 6px);
  width: 34px;
  color: var(--LINE);
  font-size: 40px;
  line-height: 28px;
  background: radial-gradient(circle at center, var(--White), var(--White) 60%, var(--LINE) 60%, var(--LINE) 100%);
  border-radius: 6px;
}

ul#snsMenu li a span {
  position: relative;
  display: inline-block;
  vertical-align: center;
  line-height: 40px;
  z-index: 2;
  transition: color 0.3s ease-in-out;
}
  ul#snsMenu li a:hover span {
    color: var(--White);
  }

ul#snsMenu li a::after {
  content: "";
  position: absolute;
  display: block;
  width: 24%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 9999px 0 0 9999px;
  z-index: 1;
  transition: 
    width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
}
ul#snsMenu li.twitter a::after {
  background: var(--TWITTER);
}
ul#snsMenu li.line a::after {
  background: var(--LINE);
}
  ul#snsMenu li a:hover::after {
    width: 100%;
    border-radius: 9999px;
  }


@media screen and (max-width: 599px) {
  ul#snsMenu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  ul#snsMenu li a {
    width: 48px;
    justify-content: center;
  }
  ul#snsMenu li.twitter a {
    background: var(--TWITTER);
  }
  ul#snsMenu li.line a {
    margin-top: 0;
    margin-left: 0.75rem;
    background: var(--LINE);
  }
  
  ul#snsMenu li a:hover {
    opacity: 0.6;
  }

  ul#snsMenu li.twitter a::before,
  ul#snsMenu li.line a::before {
    margin: 0;
  }

  ul#snsMenu li a span {
    display: none;
  }

  ul#snsMenu li a::after {
    content: unset;
  }
}