/* Theme Name: MotoyaShigetomi.Portfolio
Theme URI: 
Author: MotoyaShigetomi
Description:ポートフォリオサイトテーマ
Version: 1.0 */

/* CSS変数を定義 */
:root {
  --font-family-base: "Noto Sans JP", sans-serif;
  --color-main: #1d1d1f;
  --color-sub: #86868b;
  --color-bg: #ffffff;
  --color-accent: #4caf50;
  /* 余白を調整 */
  --padding-base: 40px;
  --padding-section: 80px;
}

/* 全体のフォントと背景色を再設定 */
body {
  font-family: var(--font-family-base);
  color: var(--color-main);
  background-color: var(--color-bg);
  /* 行間を広げて読みやすく */
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

/* アンカーリンクの装飾をリセット */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

/* -------------------------------------------
// ヘッダー
// ------------------------------------------- */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.l-header__logo a {
  margin-left: 1px;
}
.l-header__logo a:hover svg path {
  fill: #86868b;
}

/* -------------------------------------------
// ナビゲーション
// ------------------------------------------- */
/* PC用メニューリストのスタイル */
.l-header__nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.l-header__nav a {
  text-decoration: none;
}

.l-header__nav a:hover {
  text-decoration: underline;
}

.l-header__nav a:visited {
  color: #444;
}

/* ハンバーガーメニューの初期設定（PCでは非表示） */
.hamburger-menu {
  display: none;
  cursor: pointer;
}
.hamburger-menu .bar {
  width: 25px;
  height: 3px;
  background-color: var(--color-main);
  margin: 5px 0;
  transition: all 0.3s ease;
}



/* -------------------------------------------
// メインコンテンツのレイアウト
// ------------------------------------------- */
.l-main {
  padding-top: 80px;
}

.l-main section {
  padding: var(--padding-section) var(--padding-base);
}

/* -------------------------------------------
// メインコンテンツのパララックス効果
// ------------------------------------------- */
main {
  position: relative;
  overflow: hidden;
}

.l-main__image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.l-main__image {
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateY(0);
  transition: transform 0.1s ease-out;
}
/* -------------------------------------------
// ヒーローセクション
// ------------------------------------------- */
.p-hero__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.p-hero__intro,
.p-hero__job {
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--color-sub);
}

.p-hero__name {
  font-size: 48px;
  font-weight: bold;
  margin: 30px 0;
}

.p-hero {
  padding: 0;
  background-image: url("images/header.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 85vh;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
}

.p-hero__inner {
  position: relative;
  z-index: 3;
}

/* -------------------------------------------
// Worksセクション
// ------------------------------------------- */
.p-works {
  text-align: center;
}

.p-works__heading {
  margin-bottom: 60px;
  font-size: 32px;
  font-weight: bold;
}

.p-works__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.p-works__item {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.p-works__item:hover {
  transform: translateY(-5px);
}

/* Worksの画像サイズを統一する */
.p-works__item-img img {
  width: 100%;
  height: 250px; /* 画像の高さを固定 */
  object-fit: cover; /* 画像をはみ出させずに表示 */
}

.p-works__item-body {
  padding: 16px;
  text-align: left;
}

.p-works__item-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.p-works__item-category {
  font-size: 14px;
  color: var(--color-sub);
}

/* -------------------------------------------
// 共通ボタン（All Worksなど）
// ------------------------------------------- */
.c-button {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--color-main);
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.c-button:hover {
  background-color: var(--color-main);
  color: var(--color-bg);
}
/* -------------------------------------------
// Aboutセクション
// ------------------------------------------- */
/* Aboutページのコンテナの最大幅を広げる */
.p-page-about__container {
  max-width: 1200px;
  margin: 80px auto;
  padding: var(--padding-base);
}

/* Aboutページのテキストのフォントサイズを調整 */
.p-page-about__text p,
.p-page-about__text ul {
  line-height: 1.8;
  font-size: 18px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

/* キャリアセクションのフォントサイズを調整 */
.p-page-about__career-item .p-page-about__career-text p {
  font-size: 18px;
}

/* Strengthセクションのフォントサイズを調整 */
.p-page-about__strength-text p {
  font-size: 18px;
  letter-spacing: 1px;
}
.p-page-about__skill-category li {
  display: flex;
  align-items: center;
  line-height: 1.6;
  font-size: 18px;
  margin-bottom: 8px;
  padding-left: 0;
}

.p-about {
  text-align: center;
}

.p-about__heading {
  margin-bottom: 60px;
  font-size: 32px;
  font-weight: bold;
}

.p-about__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  margin: 0 auto;
}

.p-page-about__image {
  flex-shrink: 0;
}

.p-page-about__text {
  flex-grow: 1;
}

.p-about__image {
  flex-shrink: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
}

.p-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-about__text {
  text-align: left;
}

.p-about__text h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
}

.p-about__text p {
  margin-bottom: 32px;
}

.p-page-about__heading {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.p-page-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-page-about__text h2 {
  font-size: 28px;
  font-weight: bold;
  margin-top: 80px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-sub);
  padding-bottom: 8px;
}

.p-page-about__text h2:first-of-type {
  margin-top: 100px;
}

.p-page-about__text ul {
  list-style-type: disc;
  padding-left: 20px;
}
/* -------------------------------------------
// Aboutページ - キャリアセクション
// ------------------------------------------- */
.p-page-about__career {
  margin-top: 60px;
}

.p-page-about__career h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
}

.p-page-about__career-item {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  border-left: 2px solid var(--color-sub);
  padding-left: 20px;
}

.p-page-about__career-date {
  font-weight: bold;
  flex-shrink: 0;
  width: 180px;
}

.p-page-about__career-text {
  line-height: 1.6;
}
/* 画像を横並びにするためのコンテナ */
.p-page-about__career-images {
  display: flex;
  gap: 15px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* 画像を囲むラッパー（各画像） */
.p-page-about__image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

/* 2枚並びの画像設定 */
.p-page-about__career-images.two-columns .p-page-about__image-wrapper {
  flex-basis: calc(50% - 8px);
}

/* 3枚並びの画像設定 */
.p-page-about__career-images.three-columns .p-page-about__image-wrapper {
  flex-basis: calc(33.333% - 10.667px);
}

/* 画像自体の調整 */
.p-page-about__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
/* 表彰状画像のスタイル */
.p-page-about__award-image {
  margin-top: 16px;
  margin-bottom: 16px;
  text-align: left;
  width: 300px;
  height: auto;
  display: block;
  margin: 16px auto;
}

/* -------------------------------------------
// Strengthセクション
// ------------------------------------------- */
.p-page-about__strength-container {
  display: flex;
  gap: 32px;
  margin-top: 60px;
}

.p-page-about__strength-header {
  flex-basis: calc(33.333% - 21.333px);
}

.p-page-about__strength-header img {
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.p-page-about__strength-heading {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.p-page-about__strength-text p {
  font-size: 18px;
  line-height: 1.6;
}

.p-page-about__private-images {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  margin-bottom: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.p-page-about__private-images img {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
/* -------------------------------------------
// Aboutページ - スキルセクション
// ------------------------------------------- */
.p-page-about__skill {
  margin-top: 10px;
}

.p-page-about__skill-category {
  margin-bottom: 30px;
}

.p-page-about__skill-category h3 {
  font-size: 19px;
  font-weight: bold;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.p-page-about__skill-category ul {
  list-style: none;
  padding-left: 0;
}

.p-page-about__skill-category li img {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}
/* -------------------------------------------
// フッター
// ------------------------------------------- */

.l-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 40px;
  background-color: #000;
  color: #fff;
}

.l-footer__nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 20px;
}

.l-footer__nav a:last-child {
  color: #000;
}

.l-footer__contact-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.l-footer__contact-link {
  color: #000;
  background-color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
}

.l-footer__contact-link:hover {
  opacity: 0.8;
}

.l-footer__nav a:hover {
  text-decoration: underline;
}

.l-footer__contact-link:hover {
  background-color: #f0f0f0;
}

.l-footer__copyright {
  font-size: 10px;
  text-align: center;
  width: 100%;
  margin-top: 10px;
}

/* -------------------------------------------
お問い合わせフォーム全体
// ------------------------------------------- */
.wpcf7-form {
  max-width: 600px;
  margin: 10% auto;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ラベル（氏名、メールアドレスなど） */
.wpcf7-form label {
  display: block;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

/* テキスト入力欄とテキストエリア */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 8px;
  font-size: 16px;
  font-family: inherit;
}

.wpcf7-form textarea {
  height: 150px;
  resize: vertical;
}

/* 入力欄のフォーカス時のスタイル */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  outline: none;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: #0056b3;
}

.form-title.required,
.form-title.optional {
  display: flex;
  align-items: center;
}

.form-title.required::after {
  content: "必須";
  background-color: #f89090;
  padding: 3px 8px;
  margin-left: 5px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.form-title.optional::after {
  content: "任意";
  background-color: #d4d5d6;
  padding: 3px 8px;
  margin-left: 5px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* /single-works.phpのstyle/ */
.site-main {
  max-width: 960px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ポートフォリオ画像用のスタイル */
.portfolio-image-container {
  width: 100%;
  max-width: 960px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.portfolio-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.entry-title {
  font-size: 2.5em;
  color: #2c3e50;
  margin: 0;
}

.entry-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
}

.entry-content p {
  margin-bottom: 1em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {

    /* PC用メニューリストを非表示にする */
  .l-header__nav ul {
    display: none;
  }

    .p-hero__name {
    font-size: 29px; 
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -250px; 
    width: 250px;
    height: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: start;
    padding: 80px 20px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex; 
  }
  .nav-links {
  justify-content: center;
}

.nav-links li {
  margin: 20px 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links a {
  font-size: 20px;
  font-weight: bold;
}

  .p-works__list{
    display: block;
  }

  .nav-links.active {
    right: 0; /* スライドイン */
  }
  .nav-links.active li {
  opacity: 1;
  transform: translateX(0);
}
.nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
.nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
.nav-links.active li:nth-child(3) { transition-delay: 0.3s; }

  .hamburger-menu {
    display: block;
    cursor: pointer;
    z-index: 1100;
  }
	

  .l-header__nav .nav-links {
    display: flex;
  }

  /* 全体的なコンテナの余白を調整 */
  .p-page-about__container {
    padding: 0 16px;
  }
	
	  .p-about__content {
    flex-direction: column; /* 要素を縦並びに */
    gap: 40px;
    align-items: center;
  }

  /* セクションごとの余白を調整 */
  .p-page-about__text h2 {
    font-size: 24px;
    margin-top: 50px;
    margin-bottom: 12px;
  }
  
  .p-page-about__text h2:first-of-type {
    margin-top: 50px;
  }
  
  /* キャリアセクション */
  .p-page-about__career-item {
    flex-direction: column; /* 縦並びにする */
    gap: 8px; /* 縦の余白を調整 */
    padding-left: 16px; /* 縦のボーダーに合わせて調整 */
  }

  .p-page-about__career-date {
    width: auto; /* 幅を自動調整 */
  }
  
  .p-page-about__career-text p {
    font-size: 16px;
  }
  
  /* 画像のレイアウトを調整 */
  .p-page-about__career-images.two-columns .p-page-about__image-wrapper {
    flex-basis: calc(50% - 4px); /* 2枚並びの調整 */
  }

  .p-page-about__career-images.three-columns .p-page-about__image-wrapper {
    flex-basis: calc(50% - 4px); /* 3枚並びを2枚並びに変更 */
  }
  
  .p-page-about__image-wrapper {
    height: 150px; /* 画像の高さを調整 */
  }

  /* Strengthセクション */
  .p-page-about__strength-container {
    flex-direction: column; /* 縦並びにする */
    gap: 40px;
    margin-top: 40px;
  }
  
  .p-page-about__strength-header {
    flex-basis: auto; /* 幅を自動調整 */
  }
  
  .p-page-about__strength-header img {
    width: 80px; /* アイコンのサイズを調整 */
    margin-bottom: 8px;
  }
  
  .p-page-about__strength-text p {
    font-size: 16px;
  }
  
  /* スキルセクション */
  .p-page-about__skill-category h3 {
    font-size: 17px;
  }
  
  .p-page-about__skill-category li {
    font-size: 16px;
  }
  
  /* プライベートセクション */
  .p-page-about__private-images {
    gap: 16px;
  }
  
  .p-page-about__private-images img {
    max-width: 150px; /* 画像の最大幅を調整 */
  }

    .l-footer__nav {
    display: flex;
    flex-direction: column; /* 要素を縦に並べる */
    text-align: center;
    gap: 20px;
    padding: 60px 20px; /* パディングを調整 */
  }
  
  .l-footer__nav a {
  text-decoration: none;
}

.l-footer__nav a:hover {
  text-decoration: underline;
}

}

/* --- オーバーレイ --- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}


.overlay.active {
  opacity: 1;
  visibility: visible;
}
  .site-main {
    margin: 10px;
    padding: 15px;
  }

  .entry-title {
    font-size: 2em;
  }

  .entry-content {
    font-size: 1em;
  }
  .p-hero {
    height: 100vh; /* 画面いっぱいに表示 */
  }

  .p-hero__name {
    font-size: 35px; 
  }

  .p-hero__job {
    font-size: 14px;
    position: relative;
    top:-20px;
  }
  /* Worksセクションのコンテンツ幅を広げる */
  .works__inner {
    /* Worksセクションのコンテンツを囲む要素 */
    max-width: 700px; /* 例: タブレットに合わせた最大幅 */
    margin: 0 auto; /* 中央寄せ */
    padding: 0 20px; /* 左右の余白を調整 */
  }

  /* 作品カードのレイアウトを3列にする */
  .works__list {
    /* 作品カードを格納するFlexbox/Gridコンテナ */
    display: grid; /* またはFlexbox */
    grid-template-columns: repeat(3, 1fr); /* 3列にする場合 */
    gap: 20px; /* カード間の隙間 */
  }



  .l-footer__nav {
    flex-direction: column;
    gap: 30px;
    margin-left: 0;
  }

  .l-footer__contact-area {
    width: 100%; /* ボタンを横幅いっぱいに広げる */
    justify-content: center;
  }

  .l-footer__contact-link {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .p-works__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 390px) {
  /* 全体の余白調整 */
  body {
    padding: 0 16px;
  }
  .l-main section {
    padding: var(--padding-section) 16px;
  }
  /* ヘッダーの余白調整 */
  .l-header {
    padding: 16px;
  }
  /* ヒーローセクションの文字サイズ */
  .p-hero__name {
    font-size: 32px;
  }
  /* Worksセクションの調整 */
  .p-works__item-img img {
    height: 200px;
  }
}

@media (max-width: 375px) {
  .site-main {
    margin: 5px;
    padding: 10px;
  }

  .entry-title {
    font-size: 1.8em;
  }

  .p-about__content {
    flex-direction:column;
  }
}

/* -------------------------------------------
// ナビゲーション
// ------------------------------------------- */
/* PC用メニューリストのスタイル */
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.l-header__nav a {
  text-decoration: none;
}

.l-header__nav a:hover {
  text-decoration: underline;
}

.l-header__nav a:visited {
  color: #444;
}

.hamburger-menu .bar {
  width: 25px;
  height: 3px;
  background-color: var(--color-main);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger-menu .bar {
  transition: transform 0.4s ease, opacity 0.3s ease;
  transform-origin: center;
}


/* ハンバーガーメニューのアニメーション */
.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
