@import url(/old-portfolio/wordpress/wp-content/themes/portfolio/asset/css/destyle.min.css);

html {
  overflow-y: auto;
  scroll-behavior: smooth;
  --text-color: hsl(180, 100%, 15%);
  --dark-color: hsl(180, 100%, 30%);
  --light-color: hsl(180, 100%, 45%);
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-color);
}

h1,
h2,
h3 {
  font-family: "Sedan", "Klee One", serif;
}

.index-header p {
  font-family: "Libre Bodoni", serif;
  font-weight: 700;
}

input,
textarea {
  border: 1px solid var(--dark-color);
}

/*---------- 要素のフェードインアニメーション -----------*/

.add_fade {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.5s;
}

.fade {
  opacity: 1;
  transform: translateY(0);
}

/*---------- ハンバーガーメニュー ----------*/

#drawer {
  display: none;
  width: 50px;
  height: 50px;
  position: fixed;
  top: 23px;
  right: 15px;
  z-index: 5;
}

#drawer::before,
#drawer::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  left: 10px;
  margin-top: -1px;
  border-top: 2px solid hsl(180, 100%, 20%);
  color: hsl(180, 100%, 20%);
  transition: box-shadow 0.1s ease-out, transform 0.1s ease-out 0.15s;
}

#drawer::before {
  box-shadow: 0 -10px, 0 10px;
}

#drawer.open::before {
  box-shadow: 0 0, 0 0;
  transform: rotate(45deg);
}

#drawer.open::after {
  transform: rotate(-45deg);
}

@media (max-width:767px) {
  #drawer {
    display: block;
    z-index: 3;
  }
}

/*---------- ヘッダ ----------*/

header {
  width: 100%;
  height: 6rem;
  position: fixed;
  top: 0;
  left: 0;
  border-bottom: 1px solid var(--dark-color);
  background-color: #fff8;
  backdrop-filter: blur(20px);
  opacity: 1;
  z-index: 1;
  transition: 0.3s;
}

header.opaque {
  border-bottom: 1px solid transparent;
  background-color: transparent;
  opacity: 1;
}

@media (any-hover: hover) {
  header {
    border-bottom: 1px solid transparent;
    background-color: transparent;
    opacity: .1;
  }

  header:hover {
    opacity: 1;
    border-bottom: 1px solid var(--dark-color);
    background-color: #fff4;
  }

  header.opaque:hover {
    border-bottom: 1px solid transparent;
    background-color: transparent;
  }

}

header+* {
  margin-top: 6rem;
}

header a {
  transition: 0.2s;
}

@media (any-hover: hover) {
  header a:hover {
    opacity: .5;
  }
}

h1 {
  position: absolute;
  top: 50%;
  left: 3rem;
  transform: translateY(-50%);
}

h1 span {
  display: block;
}

h1 span.first {
  font-size: 2rem;
}

h1 span.second {
  margin-top: -0.4rem;
  margin-left: 7rem;
  font-size: 1.5rem;
}

header nav.h-nav ul {
  width: fit-content;
  height: 100%;
  position: absolute;
  top: 0;
  right: 3rem;
  display: flex;
  gap: min(2vw, 3rem);
  justify-content: right;
  align-items: center;
}

header nav.sp-nav {
  display: none;
}

header nav.sp-nav {
  width: 100%;
  height: 100vh;
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 2;
}

header nav.sp-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: start;
  position: absolute;
  top: 4rem;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}

header nav.sp-nav a {
  height: fit-content;
  padding: 0;
  line-height: unset;
}

@media (max-width:767px) {

  h1 {
    left: 1rem;
  }

  /* ヘッダーのnav */
  header nav.h-nav {
    display: none;
  }

}


/*---------- ファーストビュー ----------*/

.index-header {
  width: 100%;
  height: 100vh;
  height: 100svh;
  max-height: 1090px;
  margin-top: 0;
  position: relative;
}

.index-header p {
  width: fit-content;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: min(15vw, 12rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--dark-color);
  text-stroke: 1px var(--dark-color);
  text-shadow: calc(min(15vw, 12rem) * 0.083333) calc(min(15vw, 12rem) * 0.083333) hsla(180, 100%, 30%, .3);
}

.index-header p span {
  display: block;
}

.index-header p .second {
  margin-left: min(50vw, 48rem);
}

.index-header .scroll-allow {
  display: none;
  width: 8rem;
  position: absolute;
  bottom: 5rem;
  right: clamp(-2rem, calc(8.58369vw - 132px), 3rem);
  padding-bottom: 0.6rem;
  text-align: right;
  letter-spacing: 1px;
  transform: rotate(-90deg);
}

.index-header .scroll-allow::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1rem;
  transform: skewX(-45deg);
  border-left: 3px solid var(--dark-color);
  border-bottom: 2px solid var(--dark-color);
}

@media (max-width:767px) {

  .index-header p {
    transform: translate(-53%, -50%);
    text-shadow: calc(min(15vw, 12rem) * 0.1) calc(min(15vw, 12rem) * 0.1) hsla(180, 100%, 30%, .3);
  }

  .index-header p .second {}

  .index-header .scroll-allow {
    right: -2rem;
  }
}

/*---------- メイン・コンテンツ共通 ----------*/

.container {
  width: clamp(730px, 80vw, 1600px);
  margin: 0 auto;
  padding: 0 1.5rem;
  /* background-color: #fffd; */
}

.index-main section {
  padding-block: 4rem 6rem;
}

.container h2 {
  position: relative;
  font-size: 7rem;
  margin-bottom: 2rem;
}

.container h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.container :is(p, li) {
  line-height: 1.5;
}

.container p:not(:has(+ p)) {
  margin-bottom: 2rem;
}

div a.button {
  display: block;
  width: fit-content;
  margin: auto;
  padding: 1rem 1.25rem;
  border: 1px solid var(--dark-color);
  background-color: var(--dark-color);
  color: #fff;
  transition: 0.2s;
}

@media (any-hover: hover) {
  div a.button:hover {
    background-color: #fff;
    color: var(--text-color);
    opacity: 1;
  }
}

@media (max-width:767px) {
  .container {
    width: 95%;
  }

  .index-main section {
    padding-top: 6.5rem;
  }

  .container h2 {
    font-size: min(16vw, 7rem);
  }
}


/*---------- About ----------*/

#about {
  .about-intro-grid {
    display: grid;
    grid-template-columns: repeat(2, min(350px, 30vw));
    align-items: center;
    gap: 100px;
    width: fit-content;
    margin: auto;

    .about-text {
      height: fit-content;
      order: 1;
      text-align: center;

      ul {
        margin-bottom: 2rem;
      }
    }

    .about-image {
      order: 2;

      img {
        max-width: 100%;
        border-radius: 12px;
      }
    }
  }

  .about-grid {
    display: flex;
    justify-content: space-around;
    margin-block: 4rem;

    &::after {
      content: "";
      display: block;
      width: 1px;
      background-color: var(--dark-color);
      order: 2;
    }

    .about-web {
      order: 1;
    }

    .about-music {
      order: 3;

      h3 {
        padding-top: calc(1em + 1em * 0.15);
      }
    }

    :is(.about-web, .about-music) {
      width: calc(50% - 20px);
      padding: 2rem;

      h3 {
        height: calc(3em + 3em * 0.15);
        margin-bottom: 2em;
        font-size: min(calc(3.2vw + 4px), 3.5rem);
        text-align: center;
      }

      p {
        margin: 0;
        text-align: start;
      }
    }
  }
}

@media (max-width:949px) {
  #about {
    .about-intro-grid {
      display: flex;
      flex-direction: column-reverse;
      gap: 2rem;
    }

    .about-grid {
      flex-direction: column;
      margin-block: 4rem;

      :is(.about-web, .about-music) {
        width: 100%;
        padding: 2rem 0;

        h3 {
          height: fit-content;
          margin-bottom: 3rem;
          font-size: min(10vw, 3.5rem);
        }

        p {
          text-align: start;
        }
      }

      .about-music h3 {
        padding: 0;
      }
    }
  }
}

/*---------- Music ----------*/

#music {

  .video-list {
    display: grid;
    grid-template-columns: repeat(3, calc(100% / 3 - 2rem));
    justify-content: center;
    justify-items: center;
    column-gap: 3rem;
    row-gap: 4rem;
    margin-bottom: 3rem;

    figure {
      text-align: center;

      a{
        text-decoration: underline solid 1px;
        transition: 0.25s;
      }

      iframe,img {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
      }

      figcaption {
        margin-top: 1.5rem;
        text-align: start;
        line-height: 1.5;
      }
    }
  }
}

@media (any-hover: hover) {
  #music .video-list figure {

    a:hover {
      opacity: 0.5;
    }
  }
}


@media (max-width:767px) {
  #music .video-list {
    grid-template-columns: 100%;
    row-gap: 3rem;
  }
}

/*---------- Web ----------*/

#web {

  .site-list {
    display: grid;
    grid-template-columns: repeat(3, calc(100% / 3 - 2rem));
    justify-content: center;
    justify-items: center;
    column-gap: 3rem;
    row-gap: 4rem;
    margin-bottom: 3rem;

    figure {
      text-align: center;


      img {
        max-width: 100%;
        border: 1px solid var(--dark-color);
        transition: 0.2s;
      }
    }

    figcaption {
      margin-top: 1.5rem;
      text-align: start;
      line-height: 1.5;

      a {
        text-align: start;
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-color: var(--text-color);
      }
    }
  }
}

@media (any-hover: hover) {
  #web .site-list figure img:hover {
    opacity: .5;
  }

  #web .site-list figcaption a:hover {
    opacity: 0.5;
  }
}


@media (max-width:767px) {
  #web .site-list {
    grid-template-columns: 100%;
    row-gap: 3rem;
  }
}

/*---------- Design ----------*/
/* works-site と works-banner でCSSが同じままならクラス名を変更して一括指定でも良いかも。 */

#design .design-list {
  display: grid;
  grid-template-columns: repeat(3, calc(100% / 3 - 2rem));
  justify-content: center;
  justify-items: center;
  align-items: center;
  column-gap: 3rem;
  row-gap: 4rem;
  margin-bottom: 3rem;
}

#design .design-list figure {
  text-align: center;
}

#design .design-list figure img {
  max-width: min(100%, 300px);
  transition: opacity 0.2s;
}

@media (any-hover: hover) {
  #design .design-list figure img:hover {
    opacity: .5;
  }
}

#design .design-list figcaption {
  margin-top: 1.5rem;
  line-height: 1.5;
}

@media (max-width:767px) {
  #design .design-list {
    grid-template-columns: 100%;
    row-gap: 3rem;
  }
}

/*---------- Blog ----------*/

#blog {
  .recent-post-list {
    display: grid;
    grid-template-columns: repeat(3, calc(100% / 3 - 2rem));
    justify-content: center;
    justify-items: center;
    align-items: center;
    column-gap: 3rem;
    row-gap: 4rem;
    margin-bottom: 3rem;

    .recent-post {
      width: 100%;
      /* height: 5.5rem; */
      position: relative;
      padding: 1rem;
      border: 1px solid var(--dark-color);
      border-radius: 15px;

      a {
        color: var(--dark-color);
        transition: opacity 0.2s;
      }

      @media (any-hover: hover) {
        a:hover {
          opacity: .5;
        }
      }

      .post-title {
        font-size: 1.25rem;
        margin-bottom: 2rem;
      }

      .post-info {
        text-align: right;
        line-height: 1.75;
      }
    }
  }
}

@media (max-width:767px) {
  #blog .recent-post-list {
    grid-template-columns: 100%;
    row-gap: 3rem;
  }
}


/*---------- Contact ----------*/


.mail-form form {
  width: 100%;
  margin: auto;
}

.mail-form p {
  width: 80%;
  margin: 2rem auto 0;
  position: relative;
}

.mail-form :is(input[type=text], input[type=email], textarea) {
  width: 100%;
  padding: 1px 3px 1px;
  resize: none;
}

.mail-form .submit-button p {
  width: fit-content;
  margin: auto;
  text-align: center;
}

.mail-form .submit-button input[type=submit] {
  margin: auto;
  padding: 0.5rem 2rem;
  background-color: var(--dark-color);
  color: #fff;
}

@media (any-hover: hover) {
  .mail-form .submit-button input[type=submit] {
    background-color: transparent;
    color: inherit;
    transition: 0.2s;
  }

  .mail-form .submit-button input[type=submit]:hover {
    background-color: var(--dark-color);
    color: #fff;
  }
}


.mail-form .submit-button span {
  display: block;
  margin: 1rem auto 0;
}

.wpcf7 form .wpcf7-response-output {
  width: fit-content;
  margin: auto;
}

@media (max-width: 767px) {
  .mail-form td :is(input, textarea) {
    width: min(100%, 500px);

  }
}

/*---------- 送信完了モーダルウィンドウ ----------*/

/* 本来の送信メッセージは非表示にする */
.wpcf7 form.sent .wpcf7-response-output {
  display: none;
}

/* モーダルウィンドウを作成する */
#wpcf7-modal {
  visibility: hidden;
  display: flex;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#wpcf7-modal__bg {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, .5);
  z-index: -1;
}

#wpcf7-modal__wrap {
  background-color: #ffffff;
  border-radius: 10px;
  width: fit-content;
  padding: 20px;
  text-align: center;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(25px);
  transition: 0.5s;
}

#modal-close {
  width: fit-content;
  height: auto;
  margin: 2rem auto 0.3rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--dark-color);
  color: var(--dark-color);
  transition: 0.2s;
}

#modal-close:hover {
  background-color: var(--dark-color);
  color: #fff;
}

#wpcf7-modal.appear {
  visibility: visible;

  #wpcf7-modal__wrap {
    opacity: 1;
    transform: translateY(0);
  }
}

/*---------- page-about.php ----------*/

#profile {

  h3 {
    position: relative;
    width: fit-content;
    margin-block: 4rem 1.5rem;
    padding-bottom: 3px;


    &::after {
      content: "";
      display: block;
      width: calc(100% + 3rem);
      height: 2px;
      position: absolute;
      bottom: 0;
      left: 0;
      background-image: linear-gradient(to right, var(--dark-color), transparent);
    }
  }

  ul {
    margin-bottom: 2rem;
    margin-left: 1rem;
  }

  li {
    list-style-type: disc;
  }

  .change_button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 5rem;

    div {
      width: 20rem;
      padding-block: 0.75rem;
      border: 1px solid var(--dark-color);
      text-align: center;
      transition: 0.3s;

      &.selected {
        background-color: var(--dark-color);
        color: #fff;
      }

      @media (any-hover:hover) {
        &:hover {
          background-color: var(--dark-color);
          color: #fff;
        }
      }
    }
  }

  #profile-area {
    display: flex;
    flex-direction: column;
    min-height: 50vh;

    .web {
      display: block;
    }

    .music {
      display: block;
    }
  }
}


/*---------- archive-web.php ----------*/

#works-web .site-list p {
  margin-bottom: 0;
}

/*---------- archive.php  ----------*/

#blog-archive .recent-post-list {
  margin-bottom: 3rem;
}

/*---------- sidebar.php ----------*/

[class$=columns] .aside-column {
  position: sticky;
  top: 6.5rem;
  height: fit-content;
}

.single-columns .aside-column {
  margin-top: 10rem;
}

.aside-column [class$=list] {
  margin-bottom: 3rem;
}

.aside-column [class$=list] li {
  padding: 0 0.25rem 0.25rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--dark-color);
}

/*---------- single.php(記事ページ) ----------*/

#blog-single h2 {
  font-size: 3.5rem;
}

article.single-content {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--dark-color);
}

article.single-content p {
  line-height: 1.75;
  margin-block: 1.5rem;
}

.article-column :is(h2, h3) {
  position: relative;
  width: fit-content;
  padding-bottom: 3px;
}

.article-column :is(h2, h3)::after {
  content: "";
  display: block;
  width: calc(100% + 3rem);
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(to right, var(--dark-color), transparent);
}

.article-column h4 {
  font-weight: bold;
}

.prev-next {
  width: 100%;
  height: fit-content;
  margin-block: 3rem;
}

.prev-next .prev {
  float: left;
  text-align: left;
}

.prev-next .next {
  float: right;
  text-align: right;
}

@media (max-width: 767px) {
  .prev-next .next {
    float: left;
    text-align: left;
    margin-top: 1rem;
  }
}

.prev-next::after {
  content: "";
  display: block;
  clear: both;
}


/*---------- single-design.php ----------*/

#design-single {
  h2 {
    font-size: 3.5rem;
  }

  .gallery {
    display: flex;
    justify-content: center;
    gap: 1rem;

    figure {
      width: calc(25% - calc(3rem / 4));
      margin: auto;
      text-align: center;

      img {
        max-width: 100%;
      }

      figcaption {
        text-align: center;
        margin-top: 1rem;
      }
    }
  }

  @media (max-width: 767px) {
    .gallery {
      flex-direction: column;

      figure {
        width: 100%;
      }
    }
  }
}


/*---------- category.php(ブログアーカイブ) ----------*/
#blog-archive,
#blog-single {
  .blog-grid {
    display: grid;
    grid-template-columns: 1fr max(20%, 180px);
    gap: 1rem;
    justify-content: space-between;
    align-content: start;
    margin-bottom: 3rem;
  }

  .blog-grid a:not(.button) {
    color: var(--dark-color);
    transition: 0.2s;
  }

  @media (any-hover: hover) {
    .blog-grid a:hover {
      opacity: .5;
    }
  }

  .recent-post-list {
    margin-bottom: 3rem;

    a {
      color: var(--dark-color);
    }

    @media (any-hover: hover) {
      a:hover {
        opacity: .5;
      }
    }

    .recent-post {
      height: 5.5rem;
      position: relative;
      padding: 0.5rem 1rem;
      border-bottom: 1px solid var(--dark-color);
    }

    .recent-post .post-title {
      font-size: 1.25rem;
      padding-block: 0.375rem;
    }

    .recent-post .post-info {
      display: flex;
      flex-direction: row;
      gap: 0.5rem;
      position: absolute;
      bottom: 0;
      right: 0;
      padding-block: 0.5rem;
      text-align: right;
    }

    .category-list li {
      padding: 0.5rem 1rem;
      border-bottom: 1px solid var(--dark-color);
    }
  }

  @media (max-width:767px) {
    .blog-grid {
      display: block;
      width: 100%;
    }


    .recent-post-list {

      .recent-post {
        height: fit-content;
      }

      .recent-post .post-info {
        position: static;
        flex-direction: column;
        gap: 0;
      }
    }
  }
}


/*---------- フッター ----------*/

footer {
  margin-top: 6rem;
}

footer .f-nav ul {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-bottom: 3rem;
}

@media (any-hover: hover) {
  footer .f-nav a {
    transition: 0.2s;
  }

  footer .f-nav a:hover {
    opacity: .5;
  }
}

footer p {
  text-align: center;
  margin-bottom: 8px;
}

@media (max-width:767px) {

  footer {
    margin-top: 6rem;
    border-top: 1px solid var(--dark-color);
  }

  footer .f-nav ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    margin-left: 1rem;
  }

}

/*---------- トップに戻るボタン ----------*/

#to-top {
  width: 60px;
  height: 60px;
  background-color: var(--dark-color);
  background-clip: padding-box;
  border: 6px double var(--dark-color);
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  transition: 0.2s;
  opacity: 0;
  visibility: hidden;
}

#to-top::after {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translate(-50%, -25%) rotate(45deg);
  z-index: -1;
  transition: 0.2s;
}

@media (any-hover: hover) {
  #to-top:hover {
    background-color: #fff;
  }


  #to-top:hover::after {
    border-top: 2px solid var(--dark-color);
    border-left: 2px solid var(--dark-color);
  }
}

#to-top a {
  display: block;
  width: 100%;
  height: 100%;
}

#to-top.opaque {
  opacity: 1;
  visibility: visible;
}

@media (max-width:767px) {
  #to-top {
    width: 50px;
    height: 50px;
    bottom: 1.5rem;
    right: 1rem;
  }
}