/*
Theme Name: My Portfolio
Author: Maruyama Akane
Description: Portfolio用テーマ
Version: 1.0
*/

:root {
  --light-color: rgb(255 254 247);
  --green0: rgb(222, 251, 91);
  --green1: rgb(10, 178, 130);
  --green2: rgb(13 148 136);
  --green3: rgb(15 118 110);
  --yellow: rgb(251, 255, 165);
  --pink: rgb(245, 84, 111);
}
body {
  font-feature-settings: "palt";
  color: #666;  
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.125rem;
  font-style: normal;
  cursor: url('img/pointer-yellow.png') 16 16, auto;
}
/*
a {
  cursor: url('img/pointer-yellow.png') 16 16, auto;
}
*/

h1.pf, h1.wp-block-heading,
h2.pf, h2.wp-block-heading, 
h3.pf, h3.wp-block-heading,
h4.pf, h4.wp-block-heading,
h5.pf h5.wp-block-heading {
  font-weight: 500;
  color: var(--green1);
  line-height: 1.5;
}
h1.pf, h1.wp-block-heading {
  font-size: 1.6rem; 
  margin-bottom:.8rem;
}
h1.pf span {
  display: inline-block;
  margin-right:.8em;
}
h2.pf, h2.wp-block-heading {
  font-size: 1.4rem;
  margin-bottom:.6rem;
}
h3.pf, h3.wp-block-heading {
  font-size: 1.4rem;
  margin-bottom:0.4rem;
}
h4.pf, h4.wp-block-heading {
  font-size: 1.4rem;
}
a:hover {
  background-color: var(--yellow);
  color: var(--pink);
}
section {
  position: relative;
}
img {
  width: 100%;
}
.image {
  text-align: center;
  font-size:.75em;
  color: #999;
  font-style: oblique;
  padding:2rem;
}
.image img {
  padding-bottom:.5rem;
  max-width: 500px;
  margin: auto;
}
.flex_box {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}


/*----------------------
  top 
------------------------*/
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
  url('https://www.webcreatorbox.com/sample/images/dot.gif');
  background-blend-mode: overlay;
  background-repeat: repeat, no-repeat;
  background-position: auto, center ;
  background-size: auto, cover;
  z-index: -2;
  opacity: 0.1;
}
body.home::before {
  background-image: 
  url('https://www.webcreatorbox.com/sample/images/dot.gif'), 
  url('img/forest_01_gpt.webp');
  opacity: 1;
}
body.home::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 20, 0.3);
  z-index: -1;
}

.home .hero {
  color: var(--green3);
  margin-top: 1rem;
	margin-bottom: 1rem;
  padding: 1rem 2rem;
  display: block;
  background: linear-gradient(0.25turn,transparent 0%, rgba(255, 254, 247, 0.6)  10%, rgba(255, 254, 247, 0.7) 50%,  rgba(255, 254, 247, 0.6) 90%, transparent 100%);
  border-radius: 24px 0 24px 0;
  text-align: center;
}
.hero h1 {
  line-height: 1.2;
  font-size: 1.8rem;
  margin-bottom: .4em;
  text-shadow: 0px 0px 10px #fff;
}
.hero-sub {
  display: inline;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0 .5em;
  background: #fff;
  line-height: 1.8;
}

.top-sec {
  position:relative; 
  z-index:1;
}
.sec-content {
  padding: 2rem 2rem 2rem 2rem;
  background-color: rgb(255 254 247 / 95%);
  height:100%;
  border-radius: 24px;
}
.sec-outer {
  position: absolute;
  left: -.5rem;
  top: -.5rem;
  z-index: -1;
  width: calc(100% + 1rem);
  height:calc(100% + 1rem);
  background-color: var(--green0);
  transition: clip-path .3s cubic-bezier(.19, 1, .22, 1);
  clip-path: inset(.5rem round 24px);
  border-radius: 24px;
}
.top-sec:hover .sec-outer{
  transition: clip-path .3s cubic-bezier(.19, 1, .22, 1) .01s;
  clip-path: inset(0px 0px 0px 0px);
}
.sub {
  text-align: center;
  color:var(--green3);
  font-size: 1.3rem;
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: 2px; 
  margin-bottom: 1.05em;
  position: relative;
  z-index: 1;
}
.top-sec:hover .sub,
.top-sec#resume:hover .sub, .top-sec#site:hover .sub {
  color: var(--pink);
}
.top-sec:hover .sub::before {
  content:"";
  position: absolute;
  height:1.5em;
  width:6em;
  bottom:0em;
  left:50%;
  transform: translateX(-50%);
  background-color: var(--yellow);
  z-index: -1;
}
.top-sec ul {
  padding-left: 1.5rem;
}
.top-sec li {
  position: relative;
}
.top-sec li::before {
  content:"-";
  position: absolute;
  left: -1rem;
  color: var(--green1);
}

#portfolio li {
  line-height:2;
}
#portfolio li:hover {
  background-color: var(--yellow);
}
#portfolio li:hover a {
  color: var(--pink);
  display: block;
}
#portfolio .bt-go-works {
  margin-left: .5rem;
  position: relative;
  padding-left:1em;
  font-size:0.9em;
  vertical-align: top;
  color:var(--green1);
}
#portfolio .bt-go-works::before {
  position: absolute;
  left: 0;
  top:0;
  content: '▶';
  color:rgb(245, 84, 111);
  font-size:0.8em;
}

#resume>.sec-content, #site>.sec-content {
  background: linear-gradient(-40deg, #d5ff9d 0%, var(--green2) 30%, var(--green3) 100%);
  color: var(--light-color);
  font-weight: 500;
}
#resume a, #site a {
  font-size:1.2em;
}
#resume a:hover, #site a:hover {
  background-color: unset;
}
#resume .sub, #site .sub {
  color:var(--light-color);
}
#resume .flex_box a {
  display: block;
  text-align: center;
  margin-bottom: 1em;
}

/* js用 
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
*/

/*------------------
  portfolio 
------------------*/


.breadcrumbs ul {
  line-height: 2;
  margin: .5rem 1rem;
  font-size: 0.65em;
  letter-spacing: -0.5px;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 0 .3rem;
}
.breadcrumbs a {
  padding:0em .3em;
  white-space: nowrap;
}
.breadcrumbs ul {
  background: #f6f6f6;
}
.breadcrumbs li:last-child::before {
 content:"|";
 padding: 0 .3em;
}

.wrap {
  padding: 0 1rem 1rem;
}
/*portfolio 背景*/
.pf-bg {
  background-color: #fff;
  border-radius: 24px;
  padding: 1rem;
}
h1.pf {
  margin-bottom: .5em;
  line-height: 1.2;
}

/*ギャラリー PCとSPで表示を分ける*/
.col-gallery .rl-gallery-container:first-child {
	display: none;
}

/* 説明 */
.work-point, .work-order {
  padding-left: 2rem;
  margin-bottom: 2rem;
}
.work-point li, .work-order li {
  margin-top:.8rem;
}
.work-point li {
  list-style-type:disc;
  font-size: 1.1em;
}
.work-point li span {
  border-bottom: 3px solid var(--green0);
  font-weight: 500;
}
.work-order li {
  list-style-type: decimal;
}
.work-order span {
  font-weight: 700;
  display: block;
}

/* イメージ
.work-img-content {
  padding: 1rem;
  overflow: hidden; はみ出し防止 
}
.work-img-content img {
  width: 100%;
  height: auto;
  transition: transform 0.2s ease;
  box-shadow: 2px 2px 8px #1a2a1a34;
}
.work-img-content:hover img {
  transform: scale(1.1);
}
.modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal img {
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
 */

@media screen and (min-width:640px) { 

}


@media screen and (min-width:820px) { 
  .sp {
    display: none;
  }
  .flex_box {
    flex-direction: row;
  }
  #resume .flex_box a {
    width: 100%;
  }
  .home .wrap { padding: 2rem; }
  .home .hero {
    margin-top: 2rem;
    margin-bottom: 0;
  }
  .breadcrumbs ul {
    font-size: 0.8em;
    letter-spacing: unset;
    justify-content: flex-end;
  }
  .breadcrumbs ul {
    background: unset;
  }
  .breadcrumbs li {
    background: #f6f6f6;
  }
  .breadcrumbs a {
    padding:0em .7em;
  }
  .breadcrumbs li:last-child::after {
    content: none;
  }
  .pf-bg {
    padding: 2rem;
  }
  h1.pf, h1.wp-block-heading {
    margin-bottom: calc(1.6rem - 20px);
    font-size: 2rem;
  }
  .page-template-template-portfolio h1.pf {
    margin-left: 20px;
  }
  .col-gallery,
  .col-brochure {
    position: relative;
  }
  .col-gallery::before,
  .col-brochure::before {
    content:"";
    position: absolute;
    width: 1px;
    height: calc( 100% - 40px );
    background-color: #ddd;
    top: 20px;
    right: -1em;
  }
  .col-description  {
    padding: 20px;
  }

/*ギャラリー PCとSPで表示を分ける*/
  .col-gallery .rl-gallery-container:first-child {
	  display: block;
  }
  .col-gallery .rl-gallery-container:last-child {
	  display: none;
  }
  /*
  .work-img-content {
    width: 50%;
  }
  .work-dis {
    width:50%;
  }
  .work-img-list {
    width:50%;
  }
  */
}