/*
Theme Name: portfolio0629
Author: SHOGO MORITA
Description: もりたのポートフォリオ
Version: 1.0.0
Text Domain: my portfolio
*/

@charset "utf-8";

html {
  font-size: 100%;
}

:root {
  --black: rgb(18, 15, 15);
  --blue: rgb(98, 98, 181);
}

body {
  margin: 0 auto;
  background-color: #f4f4f4;
  text-align: center;
  font-family: "Epilogue", sans-serif;
}

a {
  text-decoration: none;
  color: var(--black);
}

.container {
  margin: 0 auto;
  position: relative;
}

.mainview {
  position: fixed;
  width: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  z-index: -1;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  z-index: 10;
  padding: 50px;
  width: 100%;
}

.headerLogo {
  width: 5vw;
  border-radius: 50%;
  padding: 5px;
  border: 2px solid var(--black);
}

.navi {
  display: flex;
  gap: 50px;
}

.navi a {
  color: #666;
  font-weight: bold;
  letter-spacing: 0.05rem;
  font-size: 1.5rem;
}

.top {
  position: relative;
  height: 150vh;
}

.topTitle {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  line-height: 2;
}

.topTitle h1 {
  text-wrap: nowrap;
  font-size: 2.2rem;
  letter-spacing: 0.4rem;
  font-weight: 600;
  text-shadow: 0px 0px 1px rgb(20, 19, 19);
  line-height: 1.5;
}

.topTitle h3 {
  text-wrap: nowrap;
  letter-spacing: 0.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  text-shadow: 0px 0px 1px rgb(20, 19, 19);
}

.title {
  display: inline-block;
  border-bottom: 2px solid var(--black);
  letter-spacing: 0.2rem;
  margin-bottom: 50px;
  font-size: 2.3rem;
  font-weight: 600;
  text-shadow: 0px 0px 1px rgb(20, 19, 19);
}

.work-container {
  margin-top: 100px;
}

.grid-title {
  margin: 15px 10px 10px 15px;
  text-align: left;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--blue);
}

.grid-text {
  margin-left: 15px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: bold;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  max-width: 1200px;
  margin: 50px auto;
}

.grid-container img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0px 0px 10px rgb(20, 19, 19);
}

.youtube-wrap iframe {
  width: 100%;
  height: 35vh;
  display: block;
  box-shadow: 0px 0px 10px rgb(20, 19, 19);
}

footer {
  text-align: center;
  padding: 50px;
  color: var(--blue);
  margin-top: 100px;
  border-top: 1px solid gray;
}

/* About */
.about-page {
  margin: 0;
  width: 100%;
  height: 100vh;
  position: relative;
}

.profile {
  position: absolute;
  top: 35%;
  left: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 1400px;
  opacity: 0;
  text-align: left;
  animation: fadein 1s ease-out 1s forwards;
}

.profile img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 50px;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--blue);
  margin-bottom: 20px;
}

.profile-description {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--blue);
}

.profile-description span {
  color: rgb(249, 249, 249);
  background-color: var(--blue);
  border-radius: 5px;
  padding: 5px 10px;
}

/* Works */
.works-page {
  margin: 0;
  width: 100%;
  height: 100vh;
  position: relative;
}

/* カルーセルのコンテナ */
.carousel-container {
  position: relative;
  top: 20%;

  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  height: 500px;
  overflow: hidden;
  opacity: 0;
  animation: fadein 1s ease-out 1.5s forwards;
}

/* カルーセル */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

/* カルーセルアイテム */
.carousel-item {
  position: absolute;
  width: 300px; /* 変更可能 */
  height: 250px; /* 変更可能 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transform-style: preserve-3d;
  opacity: 0.3;
  transition: transform 0.5s, opacity 0.5s, z-index 0.5s;
}

/* 画像 */
.carousel-item img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
}

/* テキスト */
.carousel-item p {
  margin-top: 10px;
  font-size: 0.8rem;
  text-align: center;
  color: var(--blue);
  z-index: 20;
  font-weight: 500;
}

/* アクティブなアイテム */
.carousel-item.active {
  opacity: 1;
  transform: scale(1.1);
}

/* ボタンコンテナ */
.button-container {
  display: flex;
  color: #333;
  justify-content: center;
  gap: 45px; /* ボタン間隔 */
  font-size: 20px;
  opacity: 0;
  animation: fadein 1s ease-out 1.5s forwards;
}

.button-container button {
  padding: 15px;
  border-radius: 40px;
  color: white;
  background-color: var(--blue);
  margin-top: 200px;
}

/* Contact */
.contact-page {
  width: 100%;
}

.cf {
  padding-top: 200px;
}

.wpcf7 {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 20px 0 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wpcf7 .form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.wpcf7 .submit-group {
  display: flex;
  justify-content: center;
  margin: 10px;
}

.wpcf7 .btn-primary {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  display: flex;
}

.wpcf7 .btn-primary:hover {
  background-color: #0056b3;
}

@keyframes fadein {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  /* about */
  .profile img {
    width: 150px;
    height: 150px;
  }

  .profile-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .profile-description {
    font-size: 1rem;
    line-height: 2.2;
  }

  /* contact */
  .left-contact,
  .right-contact {
    font-size: 50px;
    letter-spacing: 0.2rem;
  }

  .carousel-item {
    width: 250px;
    height: 200px;
  }

  /* footer */
  .list {
    gap: 40px;
  }

  .nav {
    font-size: 1.3rem;
  }
}

/* gsap */
.news-list {
  margin: 0 auto;
  padding: 200px 20px;
  max-width: 1200px;
}

.news-item {
  border-bottom: 1px solid #ccc;
  background-color: #fff;
  padding: 50px;
}

.news-item h2 {
  font-size: 24px;
}

.news-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 1rem;
}

.post-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 200px;
}
.post-item {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 10px;
  transition: 0.3s;
}
.thumbnail img {
  width: 100%;
  height: auto;
}
.post-title {
  font-size: 1.3rem;
  margin: 10px 0;
}
.post-excerpt {
  color: #555;
}

@media screen and (max-width: 480px) {
  /* about */
  .profile {
    flex-direction: column;
  }

  .profile img {
    width: 150px;
    height: 150px;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .profile-name {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
  }

  .profile-description {
    font-size: 0.8rem;
    line-height: 2.2;
  }

  /* works */
  .carousel-container {
    height: 300px;
  }

  .carousel-item {
    width: 200px;
    height: 150px;
  }

  .button-container {
    margin-bottom: 100px;
    top: -50%;
  }

  /* contact */
  .left-contact,
  .right-contact {
    font-size: 30px;
    letter-spacing: 0.5rem;
  }

  .wpcf7 {
    max-width: 400px;
  }

  /* footer */
  .list {
    margin-top: 200px;
    gap: 20px;
  }

  .nav {
    font-size: 1.1rem;
  }
}

/* single.php */
/* 見出しごとの追加余白 */
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
  margin-top: 2em;
  /* margin-bottom: 1em; */
}

.single .entry-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* 段落調整 */
/* .single .entry-content p {
  line-height: 1.5;
  margin-bottom: 1.5em;
} */

/* 画像も下にスペース */
.single .entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
}

/* リストの余白 */
.single .entry-content ul,
.single .entry-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.single article {
  margin: 0px auto;
  padding: 50px;
  max-width: 1000px;
  background-color: #f9f9f9;
  text-align: left; /* ← これが左揃えのポイント */
  overflow: hidden; 
}

.single .entry-title {
  text-align: left; /* タイトルも左寄せ */
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #555;
  font-weight: 800;
  border-bottom: #555 1px solid;
  display: inline-block;
}

.single .entry-content {
  text-align: left; /* 本文も左寄せ */
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
}


/* スマホ対応 */
@media (max-width: 768px) {
  .fancy-text {
    font-size: 2rem;
  }

  .single article {
    padding: 20px 10px;
  }
}

/* caategory */
/* 全体ラッパー */
.content-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

/* 投稿一覧 */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

/* 各投稿 */
.post-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.post-item:hover {
  transform: translateY(-4px);
}

/* サムネイル */
.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

/* タイトル */
.post-title {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 1rem;
  color: #333;
  margin: 0;
}

/* 全体ラッパー */
.content-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

/* 投稿一覧 */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* 各投稿 */
.post-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.post-item:hover {
  transform: translateY(-4px);
}

/* サムネイル */
.post-thumbnail img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* タイトル */
.post-title {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 1rem;
  color: #333;
  margin: 0;
}


@media screen and (max-width: 890px) {
  .topTitle h3 {
    text-wrap: wrap;
  }
}

@media screen and (max-width: 768px) {
  .headerLogo {
    width: 10vw;
    border-radius: 50%;
    border: 2px solid var(--black);
  }

  .header-container {
    padding: 50px 20px;
  }

  .mainview {
    width: 80vw;
  }

  .navi {
    display: flex;
    gap: 20px;
  }

  .topTitle h3 {
    text-wrap: wrap;
  }

  .grid-container {
    grid-template-columns: 1fr;
    margin: 0 50px;
  }
}
