/*
Theme Name: Hiiro-HP-Theme
Theme URI:
Author: Hiiro
Author URI:
Description: 灰彩工房。のWordPressテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: <http://www.gnu.org/licenses/gpl-2.0.html>
Text Domain: hiiro-hp
*/

/* WEBフォントの定義 */
@font-face {
  font-family: "Corporate Logo";
  src: url("fonts/Corporate-Logo-Medium-ver3.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Corporate Logo";
  src: url("fonts/Corporate-Logo-Bold-ver3.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark-gray: #303133;
  --light-gray: #e8e8e8;
  --gray: #bcbcbc;
  --logo-blue: #4a90e2;
  --logo-gray: #adacbc;
  --logo-blue: #52a1ff;
  --logo-purple: #9068f2;
  --logo-red: #dd8c8c;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Corporate Logo", "Montserrat", sans-serif;
  color: var(--dark-gray);
  background-color: var(--light-gray);
  line-height: 1.6;
}

/* プライマリーナビゲーション */
.primary-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ヘッダーのスタイル */
.header {
  position: relative;
  height: 40vh;
  overflow: hidden;
  background: var(--logo-gray);
}

.front_header {
  height: 100vh;
}

.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
}

.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.profile-icon {
  width: 500px;
  height: auto;
  margin-bottom: 2rem;
  opacity: 0;
  filter: blur(10px);
  animation: fadeInBlur 2s ease forwards;
}

.site-branding {
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}


/* サイトタイトルの基本スタイル */
.site-title {
  font-family: "Montserrat", "Corporate Logo", sans-serif;
  font-size: 1.5rem;
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: bold;
}

.primary-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  color: var(--dark-gray);
  text-decoration: none;
  font-family: "Montserrat", "Corporate Logo", sans-serif;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.primary-menu a:hover {
  color: var(--gray);
}

/* ヘッダー内のナビゲーションの背景を透明に */
.header .primary-nav,
.header .primary-nav.scrolled,
.header .primary-nav.light-section,
.header .primary-nav.dark-section {
  background-color: transparent;
  box-shadow: none;
}

.header .primary-nav .site-title,
.header .primary-nav.scrolled .site-title,
.header .primary-nav.light-section .site-title,
.header .primary-nav.dark-section .site-title,
.header .primary-nav .primary-menu a,
.header .primary-nav.scrolled .primary-menu a,
.header .primary-nav.light-section .primary-menu a,
.header .primary-nav.dark-section .primary-menu a {
  color: var(--dark-gray);
}

/* ヘッダー外のナビゲーションスタイル */
.primary-nav:not(.header .primary-nav).scrolled {
  background-color: rgba(48, 49, 51, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.primary-nav:not(.header .primary-nav).scrolled .site-title,
.primary-nav:not(.header .primary-nav).scrolled .primary-menu a {
  color: var(--light-gray);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header-content {
    padding: 0.5rem 1rem;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .primary-menu {
    gap: 1rem;
  }

  .primary-menu a {
    font-size: 0.9rem;
  }
}

/* フロントページのヘッダー背景 */
.home .header {
  background: var(--logo-gray);
}

/* メディアクエリでSP背景画像を設定 */
@media (max-width: 768px) {
  .home .header.has-background-sp {
    height: 100vh;
    background: linear-gradient(135deg, white, #7a7a7a);
  }
}

/* PC背景画像の設定 */
@media (min-width: 769px) {
  .home .header.has-background-pc {
    background: linear-gradient(135deg, white, #7a7a7a);
  }
}

/* ヘッダーコンテンツのz-indexを上げて、煙の上に表示 */
.header-content h1 {
  padding-left: 0.7em;
}

.header-content .furigana {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-bottom: 1.5rem;
  opacity: 0.8;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* フェードイン&ブラーアニメーション */
@keyframes fadeInBlur {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* 螺旋要素のスタイル */
.spiral {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  animation: spiralUp 4s linear;
  transform-origin: center;
  --rise-angle: 0deg;  /* デフォルト値 */
}

@keyframes spiralUp {
  0% {
    transform: scale(1) translateY(100vh);
    opacity: 0;
  }
  25% {
    transform: scale(0.9) translateY(60vh);
    opacity: 0.8;
  }
  50% {
    transform: scale(0.8) translateY(40vh);
  }
  75% {
    transform: scale(0.6) translateY(20vh);
  }
  100% {
    transform: scale(0) translateY(-100px);
    opacity: 0;
  }
}

/* 波紋のコンテナ */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 波紋の要素 */
.ripple {
  position: absolute;
  border-radius: 50%;
  animation: rippleEffect 2s linear;
  transform: scale(0);
  opacity: 0;
}

@keyframes rippleEffect {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* セクションのスタイル */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* セクションの背景色を交互に変更 */
#about {
  background-color: var(--light-gray);
}

#services {
  background-color: var(--dark-gray);
  color: var(--light-gray);
}

#portfolio {
  background-color: var(--light-gray);
}

#skills {
  background-color: var(--dark-gray);
  color: var(--light-gray);
}

#handmade {
  background-color: var(--light-gray);
}

/* コンテンツのスタイルを調整 */
.handmade-content {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.handmade-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.handmade-buttons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex-direction: row;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  justify-content: center;
}

.handmade-btn,
.contact-btn {
  background: var(--dark-gray);
  color: var(--light-gray);
  border: 1px solid var(--dark-gray);
  padding: 1rem 3rem;
  border-radius: 5px;
  font-family: "Montserrat", "Corporate Logo", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: block;
  margin: 2rem 0;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.handmade-btn::before,
.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.handmade-btn:hover,
.contact-btn:hover {
  background: var(--gray);
  color: var(--dark-gray);
  border: 1px solid var(--dark-gray);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.handmade-btn:hover::before,
.contact-btn:hover::before {
  left: 100%;
}

.handmade-btn:active,
.contact-btn:active {
  transform: translateY(0);
}

.gallery-item {
  background-color: var(--light-gray);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.gallery-item.visible {
  transform: translateY(0);
  opacity: 1;
}

.gallery-image {
  width: 100%;
  height: 200px;
  background: var(--gray);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 5px;
  margin-bottom: 0;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* スクロールアニメーション用のスタイル */
@keyframes parallax {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

#handmade::before {
  animation: parallax 20s infinite linear;
  background-size: 400% 400%;
}

#contact {
  background-color: var(--gray);
  color: var(--dark-gray);
  max-width: inherit;
}

/* セクションの最大幅を調整 */
.section > * {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* セクション間の区切り線 */
.section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray), transparent);
}

/* セクション間の区切り線 */
#contact.section::after {
  background: linear-gradient(to right, transparent, var(--light-gray), transparent);
}

/* スクロールアニメーション用のスタイル */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.section-title {
  font-size: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  font-family: "Montserrat", "Corporate Logo", sans-serif;
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--logo-gray), var(--logo-blue), var(--logo-purple));
}

/* サービスカードのスタイル */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--dark-gray);
  color: var(--light-gray);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card h3 {
  font-family: "Montserrat", "Corporate Logo", sans-serif;
  margin-bottom: 7px;
}

.service-card ul {
  list-style: none;
}

/* スキルセクションのスタイル */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--dark-gray);
  color: var(--light-gray);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.skill-category h3 {
  font-family: "Montserrat", "Corporate Logo", sans-serif;
  margin-bottom: 7px;
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .header-content{
    width: 100%;
  }
  
  .profile-icon {
    width: 90%;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ポートフォリオギャラリー */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-section .portfolio-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
  padding: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: scale(1.05);
}

/* ポートフォリオアイテムのスタイル */
.portfolio-link {
  text-decoration: none;
  color: var(--dark-gray);
  display: block;
}

.portfolio-content {
  position: relative;
  background: var(--dark-gray);
  color: var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: var(--transition);
}

.portfolio-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-info h3 {
  margin-bottom: 0.5rem;
  color: var(--light-gray);
}

.portfolio-info .category {
  color: var(--logo-blue);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.portfolio-info .description {
  font-size: 0.9rem;
  opacity: 0.8;
}

.portfolio-info .category,
.service-card h3,
.skill-category h3 {
  font-family: "Montserrat", "Corporate Logo", sans-serif;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-item:hover .portfolio-content {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* AI作品用の特別なスタイル */
.portfolio-item:last-child .portfolio-content {
  background: linear-gradient(45deg, var(--dark-gray), var(--logo-blue));
}

.portfolio-item:last-child .portfolio-image {
  /* グラデーションオーバーレイを追加 */
  position: relative;
}

.portfolio-item:last-child .portfolio-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--gray), 0.3),
    rgba(var(--logo-blue), 0.3)
  );
  z-index: 1;
}

.portfolio-item.no-click {
  cursor: default;
}

.portfolio-item.no-click .portfolio-content {
  pointer-events: none;
}

/* お問い合わせフォーム */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--dark-gray);
  color: var(--dark-gray);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--dark-gray);
  background-color: var(--gray);
  border-radius: 5px;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--logo-blue);
  outline: none;
}

.footer {
  background-color: var(--light-gray);
  color: var(--dark-gray);
  padding: 1rem;
  text-align: center;
  font-size: 0.7rem;
}

.footer.front-page {
  background-color: var(--gray);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  /* ハンドメイドボタンのスタイル */
  .handmade-buttons {
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    margin-top: 3rem;
  }

  .handmade-btn {
    margin: 0 auto;
    width: 80%;
    text-align: center;
  }
}

/* 送信ボタンのスタイル */
.submit-btn {
  background: var(--gray);
  color: var(--dark-gray);
  border: 1px solid var(--dark-gray);
  padding: 1rem 3rem;
  border-radius: 5px;
  font-family: "Montserrat", "Corporate Logo", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: block;
  margin: 2rem auto 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.submit-btn:hover {
  background: var(--dark-gray);
  color: var(--light-gray);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(0);
}

/* アーカイブページのスタイル */
.archive-content {
  background-color: var(--light-gray);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.post-card {
  background: var(--dark-gray);
  color: var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-content h2 {
  margin-bottom: 1rem;
}

.post-content a {
  color: var(--light-gray);
  text-decoration: none;
}

/* 投稿ページのスタイル */
.single-content {
  background-color: var(--light-gray);
  padding: 2rem;
}

.post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.post-meta {
  color: var(--gray);
  margin: 1rem 0;
}

.post-meta span {
  margin: 0 0.5rem;
}

.post-thumbnail {
  margin-bottom: 2rem;
}

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

.post-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ページネーション */
.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  border-radius: 5px;
  background: var(--dark-gray);
  color: var(--light-gray);
  text-decoration: none;
  transition: var(--transition);
}

.pagination .current {
  background: var(--logo-blue);
}

/* 404ページ */
.error-404 {
  text-align: center;
  padding: 5rem 2rem;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-content p {
  margin-bottom: 2rem;
}

/* 投稿ページとアーカイブページの共通スタイル */
.single-content,
.archive-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 投稿ページの特別なスタイル */
.single-content .featured-image {
  margin: -2rem -2rem 2rem;
  height: 400px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.single-content .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray);
}

.post-meta span {
  margin-right: 1rem;
}

.post-content {
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.page-numbers {
  padding: 0.5rem 1rem;
  background: var(--dark-gray);
  color: var(--light-gray);
  border-radius: 5px;
  text-decoration: none;
  transition: var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--logo-blue);
  transform: translateY(-2px);
}

/* コメントエリア */
.comments-area {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray);
}

.comment-list {
  list-style: none;
}

.comment {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

/* 記事一覧のグリッドレイアウト調整 */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.blog-item {
  background: var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* パンくずリスト */
.breadcrumbs {
  padding: 1rem 2rem;
  background: var(--dark-gray);
  color: var(--light-gray);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--logo-blue);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* 404ページ */
.error-404 {
  text-align: center;
  padding: 4rem 2rem;
}

.error-404 h1 {
  font-size: 4rem;
  color: var(--logo-blue);
  margin-bottom: 1rem;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .single-content,
  .archive-content {
    padding: 1rem;
  }

  .single-content .featured-image {
    height: 250px;
    margin: -1rem -1rem 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
}

#modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

.modal-close {
  position: absolute;
  right: 35px;
  top: 15px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.gallery-image {
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 24px;
  color: #333;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.8);
}

.modal-nav.prev {
  left: 20px;
}

.modal-nav.next {
  right: 20px;
}

.modal-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 3px;
}

/* フォーム全体 */
.wpcf7-form {
  max-width: 600px;
  margin: 0 auto;
}

/* 入力フィールド（テキスト、メール、テキストエリア共通） */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--dark-gray);
  background-color: var(--light-gray);
  border-radius: 5px;
  transition: var(--transition);
}

/* テキストエリア特有のスタイル */
.wpcf7-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* 送信ボタン */
.wpcf7-submit {
  background: var(--gray);
  color: var(--dark-gray);
  border: 1px solid var(--dark-gray);
  padding: 1rem 3rem;
  border-radius: 5px;
  font-family: "Montserrat", "Corporate Logo", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: block;
  margin: 2rem auto 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.wpcf7-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.wpcf7-submit:hover {
  background: var(--dark-gray);
  color: var(--light-gray);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.wpcf7-submit:hover::before {
  left: 100%;
}

.wpcf7-submit:active {
  transform: translateY(0);
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.9rem;
}

.wpcf7 form .wpcf7-response-output {
  margin: 0 0.5rem !important;
}

/* 送信完了・エラーメッセージ */
.wpcf7-response-output {
  color: var(--light-gray);
  padding: 1rem;
  border-radius: 4px;
}

/* 必須マーク */
.wpcf7-form .required {
  color: #dc3545;
  margin-left: 0.3rem;
}

/* ラベル */
.wpcf7-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* フォームグループ */
.wpcf7-form .form-group {
  margin-bottom: 1.5rem;
}

/* Gallery Page Styles */
.gallery-page {
  padding: 2rem 0;
}

.gallery-section {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  padding: 0 2rem;
  border-bottom: 2px solid var(--primary-color);
}

.category-description {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-section {
    margin-bottom: 3rem;
  }
  
  .category-title {
    font-size: 1.5rem;
  }
}

/* ギャラリーページのヘッダーを非表示 */
.page-template-template-gallery .header {
  display: none;
}

/* ギャラリーページのコンテンツ上部の余白を調整 */
.page-template-template-gallery .gallery-page {
  padding-top: 0;
}

/* ギャラリーページの画像ホバー効果 */
.gallery-page .portfolio-image {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-page .portfolio-image:hover {
  transform: scale(1.05);
}

/* カスタムURLがある場合のホバー効果を維持 */
.gallery-page .portfolio-link:hover .portfolio-image {
  transform: scale(1.05);
}

/* クリック不可の場合のスタイル */
.gallery-page .portfolio-item.no-click .portfolio-image {
  cursor: default;
}

.gallery-page .portfolio-item.no-click .portfolio-image:hover {
  transform: none;
}

/* ギャラリーページのヘッダー部分 */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  margin-bottom: 1rem;
}

.category-header .category-title {
  margin: 0;
  padding: 0;
  border: none;
}

.gallery-buttons {
  display: flex;
  gap: 1rem;
}

.gallery-btn {
  background: var(--dark-gray);
  color: var(--light-gray);
  border: 1px solid var(--dark-gray);
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  font-family: "Montserrat", "Corporate Logo", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.gallery-btn:hover {
  background: var(--gray);
  color: var(--dark-gray);
  border: 1px solid var(--dark-gray);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer !important;
}

.gallery-btn:hover::before {
  left: 100%;
}

.gallery-btn:active {
  transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .category-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .gallery-buttons {
    width: 100%;
    justify-content: flex-end;
  }
  
  .gallery-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}
