/*
Theme Name: Y's Portfolio
Theme URI: https://www.ys.portfolio.net/
Description: ゆきのりのポートフォリオ
Version: 1.0.0
Author: NAHO YUKINORI
Author URI: https://www.ys.portfolio.net/
*/



@charset "UTF-8";

html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  font-family: "Noto Sans", sans-serif;
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
img {
  max-width: 100%;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sec-title {
  font-size: 2.2rem;
}
.read-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  white-space: nowrap;
}
.read-more p {
  font-size: 1.3rem;
}
.read-more-btn {
  background-color: #000;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  width: 2rem;
  aspect-ratio: 1 / 0.866;
  transition: transform 0.2s ease;
}
.read-more-btn:hover {
  transform: rotate(360deg);
}
.read-more-btn a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
}

/* -----------------------------
ヘッダー
----------------------------- */
#site-title {
  margin: 20px;  
  font-size: 3rem;
  font-weight: bold;
}
#site-title a {
  color: #000;
}
#contact-btn {
  background-color: #000;
  clip-path: polygon(
    calc(0% + 12px) 0%, 
    calc(100% - 12px) 0%, 
    100% 50%, 
    calc(100% - 12px) 100%, 
    calc(0% + 12px) 100%, 
    0% 50%);
  width: 170px;
  height: 37px;
  position: fixed;
  top: 34px;
  right: 100px;
  z-index: 1001;
}
#contact-btn a {
  font-size: 1.1rem;
  display: inline-block;
  color: #fff;
}
#hamburger {
  width: 50px;
  cursor: pointer;
  position: fixed;
  top: 34px;
  right: 27px;
  z-index: 1001;
}
#hamburger span {
  display: block;
  height: 3px;
  width: 50px;
  background: #000;
  margin: 6px 0;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}
/* activeがついたとき */
#hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
#hamburger.active span:nth-child(2) {
  opacity: 0;
}
#hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.overlay {
  position: fixed;
  inset: 0;
  background: #c0c1c4;
  opacity: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

/* activeがついたときだけ表示 */
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* メニュー本体 */
.overlay-menu {
  background: #fff;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  width: 500px;
  aspect-ratio: 1 / 0.866;
  display: flex;
  justify-content: center;
  align-items: center;
}
.overlay-menu ul li {
  margin-bottom: 20px;
}
.overlay-menu ul li a {
  text-decoration: none;
  color: #000;
  font-size: 1.4rem;
  border-bottom: 1px solid #c0c1c4; 
  display: inline-block;
}
.overlay-menu ul li a:hover {
  border-bottom: solid 1px #000;
}
.menu-contact {
  display: none;
}

/* -----------------------------
メインビジュアル
----------------------------- */
#mainvisual {
  animation: slide-in-bottom 2s forwards;
  margin-bottom: 100px;
  position: relative;
}
@keyframes slide-in-bottom {
  0% {
    transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.main-copy {
  position: absolute;
  top: -1.5%;
  left: 20%;
}

:root {
  --hex-width: calc((130vw - 30px) / 3);
  --gap-x: calc((var(--hex-width) / 2) + 40px);
  --offset-x: calc((var(--hex-width) / 2) + (var(--gap-x) / 2));
}
#honeycomb {
  display: grid;
  grid-template-columns: repeat(2, var(--hex-width));
  column-gap: var(--gap-x);
  width: 130vw;
  transform: translateX(-20vw);
  margin-top: 5%;
  position: relative;
}
.hexagon {
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  width: 100%;
  aspect-ratio: 1 / 0.866;
}
.hexagon.row2,
.hexagon.row4 {
  transform: translateX(var(--offset-x));
  margin-top: calc(-0.5 * var(--hex-width) * 0.866 + 10px);
}
.hexagon.row3 {
  margin-top: calc(-0.5 * var(--hex-width) * 0.866 + 10px);
}

.gif {
  display: flex;
  justify-content: center;
  align-items: flex-end;  
  width: 100%;
  height: 100%;
}
.hexagon-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}
.hexagon-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.hexagon:not(:nth-child(2)) .hexagon-inner {
  opacity: 0.8;
}

/* -----------------------------
制作実績
----------------------------- */
#works {
  padding-top: 100px;
  margin-bottom: 100px;
}

	@keyframes infinity-scroll-left {
from {
  transform: translateX(0);
}
  to {
  transform: translateX(-50%);
}
}
.scroll-infinity {
  overflow: hidden;
  margin-top: 80px;
}
.scroll-infinity__wrap {
  display: flex;
  overflow: hidden;
  width: 100%;
}
.scroll-infinity__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  width: max-content;
}
.scroll-infinity__list--left {
  animation: infinity-scroll-left 80s infinite linear;
}
.scroll-infinity__item {
  width: calc(100vw / 2.5);
  flex-shrink: 0;
}
.thumb {
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.scroll-infinity__item a {
  display: block;
  color: #000;
}
.scroll-infinity__item p {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.scroll-infinity__wrap:hover .scroll-infinity__list--left {
  animation-play-state: paused;
}
.scroll-infinity__item:hover img {
  transform: scale(1.1); 
}

/* -----------------------------
サービス
----------------------------- */
#service {
  padding-top: 100px;
  margin-bottom: 100px;
  position: relative;
}
#service-background {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow: hidden; 
  width: 100%;
  margin-top: 75px;
}
#service-background .hexagon {
  background-color: #c0c1c4;
  opacity: 0.2;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  aspect-ratio: 1 / 0.866;
  width: 100%;
}
#service-background .hexagon-wrapper:nth-child(1) {
  width: 35%;
  margin-top: 20%;
}
#service-background .hexagon-wrapper:nth-child(2) {
  width: 45%;
}
#service-background .hexagon-wrapper:nth-child(3) {
  width: 15%;
  transform: translateY(55%);
}
#service-content {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 22%;
  gap: 5%;
  margin-left: 100px;
}
#service-content .hexagon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 20%;
  position: relative;
}
#service-content .hexagon-wrapper::after {
  content: "";
  width: 1.5px;
  height: 130px;
  background-color: #000;
  position: absolute;
  left: 25%;
  top: 100%;
}
#service-content .hexagon-wrapper:nth-child(1),
#service-content .hexagon-wrapper:nth-child(3) {
  transform: translateY(77%);
}

#service-content .hexagon {
  display: block;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  aspect-ratio: 1 / 0.866;
  width: 100%;
}
#service-content .hexagon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#service-content .service-text {
  width: 50%;
  font-size: 0.8rem;
  position: absolute;
  top: calc(100% + 10px); 
  left: 30%;
}

/* -----------------------------
ブログ
----------------------------- */
#blog {
  padding-top: 100px;
  margin-bottom: 100px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
#blog .sec-head {
  width: 20%;
}
#blog-content {
  width: 70%;
}
#blog-content li {
  margin-bottom: 30px;
}
.blog-item {
  color: #000;
}
.date {
  font-size: 0.7rem;
  margin-bottom: 8px;
}
.blog-text {
  border-bottom: solid 1px #c0c1c4;
  padding-bottom: 10px;
}
/* -----------------------------
プロフィール
----------------------------- */
#profile {
  padding-top: 100px;
  margin-bottom: 100px;
}
#profile-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5%;
  margin-top: 50px;
}
.profile-img {
  position: relative;
  width: 45%;
  aspect-ratio: 1 / 0.866;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  overflow: hidden;
}
.profile-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* -----------------------------
フッター
----------------------------- */
#footer {
  border-top: solid 1px #c0c1c4;
  padding: 100px 0 50px 0;
}
.copyright {
  font-size: 0.8rem;
  text-align: center;
}

/* -----------------------------
制作実績ページ
----------------------------- */
#works-content {
  margin-top: 100px;
  margin-bottom: 100px;
}
#works-wrapper {
  margin-top: 50px;
}
#works-content .item-content {
  background-color: #e4e5e7;
  width: 93%;
  padding: 34px 30px;
  position: relative;
  transform: translate(3.5%, -20%);
}
.works-item a {
  color: #000;
}
.work-category {
  background-color: #000;
  color: #fff;
  padding: 5px 10px;
  position: absolute;
  top: 0;
  left: 0;
}
.work-title {
  font-size: 1.2rem;
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid #000;
  display: inline-block;
}
.tags {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #6a6a6c;
}
.works-item img {
  transition: transform 0.4s ease;
}
.works-item img:hover {
  transform: scale(1.03);
}
#works-page {
  margin-top: 100px;
}
#works-page .item-content {
  margin: 50px auto 100px auto;
  max-width: 80%;
  display: flex;
  flex-direction: column;
}
#works-page .work-title {
  font-size: 1.5rem;
  width: fit-content; 
}
.works-page-category {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 5px 10px;
  margin-top: 50px;
  width: fit-content; 
}
#works-page .tags {
  font-size: 1rem;
  margin-top: 50px;
}
.works-page-text {
  margin-top: 50px;
}
/* -----------------------------
固定ページ（お問い合わせ）
----------------------------- */
.page-content {
  margin-top: 100px;
  padding-bottom: 100px;
}
.page-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-content h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}
.page-text {
  font-size: 1rem;
  line-height: 1.8;
}
#contact {
  margin-top: 100px;
}
#contact .wpcf7-form {
  margin: 80px auto 100px auto;
  max-width: 80%;
}
#contact label {
  font-size: 1.2rem;
  font-weight: bold;
  display: block;
  margin-top: 80px;
}
#contact .must {
  color: red;
  font-size: 0.8rem;
  margin-left: 5px;
}
#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact textarea {
  width: 100%;
  padding: 30px;
  font-size: 1rem;
  border: none;
  background-color: #e4e5e7;
  box-sizing: border-box;
}
#contact input[type="submit"] {
  font-size: 1.2rem;
  width: 100%;
  text-align: center;
  background-color: #000;
  color: #fff;
  margin-top: 80px;
  padding: 50px;
  border: none;
  cursor: pointer;
}

@media screen and (max-width: 760px) {
  .container {
    padding: 0 20px;
  }
  .sec-title {
    font-size: 1.7rem;
  }
  .read-more p {
    font-size: 1rem;
  }
  .read-more-btn {
    width: 1rem;
  }
  .read-more-btn a {
    font-size: 0.7rem;
  }
  /* -----------------------------
  ヘッダー
  ----------------------------- */
  #site-title {
    font-size: 2rem;
  }
  #contact-btn {
    display: none;
  }
  #hamburger {
    top: 24px;
    right: 30px;
  }
  #hamburger span {
    width: 40px;
  }
  .menu-contact {
    display: block;
  }
  .overlay-menu {
    width: 400px;
  }
  .overlay-menu ul li a {
    font-size: 1.2rem;
  }

  /* -----------------------------
  メインビジュアル
  ----------------------------- */
  #mainvisual {
    margin: 0 auto 80px auto;
  }
  #honeycomb {
    width: 100vw;
    transform: none;
    grid-template-columns: 57.5vw 57.5vw;
    gap: 0;
    justify-content: center; 
    width: auto;
  }
  .hexagon.row2,
  .hexagon.row3,
  .hexagon.row4 {
    transform: none;
    margin: 0;
  }
  #mainvisual .hexagon:nth-child(odd) {
    transform: translate(20px, 50%);
  }
  #mainvisual .hexagon:nth-child(even) {
    transform: translateX(-20px);
  }
  .gif img {
    width: 32%;
    height: auto;
  }
  .main-copy {
    font-size: 0.75rem;
    top: 7.5%;
    left: 50%;
  }
  .hexagon:nth-child(7),
  .hexagon:nth-child(8) {
    display: none;
  }

  /* -----------------------------
  制作実績
  ----------------------------- */
  #works {
    padding-top: 80px;
    margin-bottom: 80px;
  }
  .scroll-infinity {
    margin-top: 0;
  }
  .scroll-infinity__item {
    width: calc(100vw / 0.9);
  }


  /* -----------------------------
  サービス
  ----------------------------- */
  #service {
    padding-top: 20px;
    margin-bottom: 80px;
  }
  #service-background {
    flex-direction: column;
    margin: 0;
  }
  #service-background .hexagon-wrapper:nth-child(1) {
  width: 80%;
  margin: 0;
  transform: translate(215px, 30px);
  }
  #service-background .hexagon-wrapper:nth-child(2) {
  width: 90%;
  transform: translate(-80px, 20px);
  } 
  #service-background .hexagon-wrapper:nth-child(3) {
    display: none;
  }
  #service-content {
    top: 100px;
    margin-left: 0;
    flex-direction: column;
  }
  #service-content .hexagon-wrapper {
    flex-direction: row;
    width: 100%;
  }
  #service-content .hexagon-wrapper::after {
    display: none;
  }
  #service-content .hexagon-wrapper:nth-child(1),
  #service-content .hexagon-wrapper:nth-child(3) {
    transform: none;
  }
  #service-content .hexagon {
    clip-path: none;
    width: 50%;
    padding: 10px 20px;
    text-align: center;
  }
  #service-content .service-text {
    position: relative;
    top: 0;
    left: 0;
    width: 50%;
    padding-right: 20px;
  }

  /* -----------------------------
  ブログ
  ----------------------------- */
  #blog {
    padding-top: 20px;
    margin-bottom: 80px;
    flex-direction: column;
  }
  #blog .sec-head {
  width: 100%;
  }
  #blog-content {
  width: 100%;
  margin-top: 30px;
  }
  /* -----------------------------
  プロフィール
  ----------------------------- */
  #profile {
  padding-top: 20px;
  margin-bottom: 80px;
  }
  #profile-flex {
    flex-direction: column;
    align-items: center;
  }
  .profile-img {
    width: 80%;
  }
  .profile-text {
    width: 80%;
    margin-top: 20px;
  }

  /* -----------------------------
  制作実績ページ
  ----------------------------- */
  #works-content {
    margin-top: 70px;
    margin-bottom: 70px;
  }
  #works-content .item-content {
    padding: 20px;
  }
  .work-title {
    font-size: 1.1rem;
  }
  #works-page .work-title {
    font-size: 1.1rem;
  }
}