/*
Theme Name: アイデアライフ
Theme URI: https://example.com
Author: アイデアライフ
Author URI: https://example.com
Description: 水と電気のトラブル対応会社「アイデアライフ」のオリジナルWordPressテーマ。モダンなデザインとレスポンシブ対応で、お客様に最高のユーザー体験を提供します。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: idealife
Tags: business, responsive, custom-header, custom-menu, featured-images
*/

/* ========================================
   リセットとベーススタイル
======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ========================================
   ヘッダー
======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icons {
  display: flex;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-icon.water {
  color: #3b82f6;
}

.logo-icon.electric {
  color: #eab308;
}

.site-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
}

.site-description {
  font-size: 0.75rem;
  color: #6b7280;
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-navigation a {
  font-weight: 500;
  color: #4b5563;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: #3b82f6;
}

.header-contact {
  text-align: right;
}

.phone-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3b82f6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.business-hours {
  font-size: 0.75rem;
  color: #6b7280;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* モバイルメニュー */
.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  padding: 0.75rem 0;
}

.mobile-menu a {
  display: block;
  font-weight: 500;
  color: #4b5563;
}

/* ========================================
   ヒーローセクション
======================================== */

.hero-section {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #7c3aed 100%);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zm0-10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zm0-10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zM24 34c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zm0-10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zm0-10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zM12 34c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zm0-10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zm0-10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.building-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 3rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.building-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.building-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.building-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #fbbf24;
  color: #1f2937;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 1.125rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #f59e0b;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* ========================================
   セクション共通スタイル
======================================== */

.section {
  padding: 4rem 2rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  color: #1f2937;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: #6b7280;
  margin-bottom: 3rem;
}

.section-description {
  text-align: center;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* ========================================
   お知らせセクション
======================================== */

.news-section {
  background-color: #dbeafe;
}

.news-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: #6b7280;
  white-space: nowrap;
  font-size: 0.875rem;
}

.news-content h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.news-excerpt {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.news-link {
  color: #3b82f6;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.news-link:hover {
  color: #1e40af;
}

/* ========================================
   サービスカード
======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #d1d5db;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-arrow {
  color: #3b82f6;
  transform: translateX(5px);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-icon-wrapper {
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.service-icon-wrapper.water {
  background-color: #dbeafe;
}

.service-icon-wrapper.electric {
  background-color: #fef3c7;
}

.service-icon {
  width: 24px;
  height: 24px;
}

.service-icon.water {
  color: #3b82f6;
}

.service-icon.electric {
  color: #eab308;
}

.service-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
}

.service-description {
  color: #6b7280;
  margin-bottom: 1rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3b82f6;
}

.service-price.electric {
  color: #eab308;
}

.service-category-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* ========================================
   特徴セクション
======================================== */

.features-section {
  background: linear-gradient(135deg, #f9fafb 0%, #dbeafe 100%);
}

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

.feature-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-icon-wrapper {
  padding: 0.75rem;
  background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
  border-radius: 0.5rem;
}

.feature-icon {
  width: 24px;
  height: 24px;
  color: white;
}

.feature-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
}

.feature-description {
  color: #6b7280;
  line-height: 1.8;
}

/* ========================================
   会社紹介セクション
======================================== */

.about-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.about-content p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ========================================
   作業実績セクション
======================================== */

.stats-section {
  background: linear-gradient(135deg, #dbeafe 0%, #e9d5ff 100%);
}

.stats-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-number.blue {
  color: #3b82f6;
}

.stat-number.purple {
  color: #7c3aed;
}

.stat-number.green {
  color: #10b981;
}

.stat-label {
  color: #6b7280;
}

/* ========================================
   施工フローセクション
======================================== */

.steps-container {
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.step-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.step-info {
  flex: 1;
}

.step-label {
  font-size: 0.875rem;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.step-description {
  color: #6b7280;
  line-height: 1.8;
}

/* ========================================
   お問い合わせセクション
======================================== */

.contact-section {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #7c3aed 100%);
  color: white;
  text-align: center;
}

.contact-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
}

.contact-phone {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-phone a {
  color: white;
}

.contact-phone a:hover {
  color: #fbbf24;
}

.line-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #06c755;
  color: white;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 1.125rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.line-button:hover {
  background-color: #05b04b;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* ========================================
   フッター
======================================== */

.site-footer {
  background-color: #1f2937;
  color: white;
  padding: 3rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand p {
  color: #9ca3af;
  margin-bottom: 1rem;
}

.footer-info h4 {
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-info p {
  color: #9ca3af;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: #9ca3af;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: white;
}

.copyright {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* ========================================
   ページネーション
======================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination a {
  background-color: white;
  color: #3b82f6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination a:hover {
  background-color: #3b82f6;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.pagination .current {
  background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pagination .dots {
  background: none;
  box-shadow: none;
  color: #6b7280;
}

/* ========================================
   レスポンシブデザイン
======================================== */

@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .header-contact {
    display: none;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-phone {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .building-types {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .step-content {
    flex-direction: column;
  }
  
  .step-number {
    margin: 0 auto;
  }
}

/* ========================================
   固定ページスタイル
======================================== */

.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1f2937;
  margin: 0;
}

.page-content {
  background-color: white;
  padding: 3rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.page-comments {
  background-color: white;
  padding: 3rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

/* ========================================
   WordPressエディタ対応
======================================== */

.entry-content,
.page-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.entry-content > *,
.page-content > * {
  max-width: 100%;
}

.entry-content p,
.page-content p {
  margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #1f2937;
  line-height: 1.3;
}

.entry-content h1,
.page-content h1 { font-size: 2.5rem; }
.entry-content h2,
.page-content h2 { font-size: 2rem; }
.entry-content h3,
.page-content h3 { font-size: 1.75rem; }
.entry-content h4,
.page-content h4 { font-size: 1.5rem; }
.entry-content h5,
.page-content h5 { font-size: 1.25rem; }
.entry-content h6,
.page-content h6 { font-size: 1.125rem; }

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.entry-content li,
.page-content li {
  margin-bottom: 0.5rem;
}

.entry-content img,
.page-content img {
  height: auto;
  max-width: 100%;
  border-radius: 0.5rem;
}

.entry-content figure,
.page-content figure {
  margin: 2rem 0;
}

.entry-content figcaption,
.page-content figcaption {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.entry-content blockquote,
.page-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4b5563;
}

.entry-content table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.entry-content th,
.entry-content td,
.page-content th,
.page-content td {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.entry-content th,
.page-content th {
  background-color: #f3f4f6;
  font-weight: bold;
}

.entry-content a,
.page-content a {
  color: #3b82f6;
  text-decoration: underline;
}

.entry-content a:hover,
.page-content a:hover {
  color: #1e40af;
}

.wp-block-group {
  margin-bottom: 2rem;
}

.has-text-align-center {
  text-align: center;
}

.has-text-align-left {
  text-align: left;
}

.has-text-align-right {
  text-align: right;
}

.has-large-font-size {
  font-size: 2.25rem;
}

.has-medium-font-size {
  font-size: 1.25rem;
}

.has-small-font-size {
  font-size: 0.875rem;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}



/* ========================================
   フォームスタイル
======================================== */

/* Contact Form 7 対応 */
.wpcf7 {
  margin: 0;
}

.wpcf7-form {
  background-color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wpcf7-form p {
  margin-bottom: 1.5rem;
}

.wpcf7-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
  font-size: 1rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #1f2937;
  background-color: #f9fafb;
  transition: all 0.3s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.wpcf7-form input[type="submit"] {
  background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: auto;
  display: inline-block;
}

.wpcf7-form input[type="submit"]:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}

/* 必須マーク */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-form abbr {
  color: #ef4444;
  text-decoration: none;
  font-weight: bold;
}

/* バリデーションメッセージ */
.wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.wpcf7-validation-errors {
  background-color: #fee2e2;
  border: 2px solid #ef4444;
  color: #991b1b;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.wpcf7-mail-sent-ok {
  background-color: #d1fae5;
  border: 2px solid #10b981;
  color: #065f46;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

/* 一般的なフォームスタイル */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #1f2937;
  background-color: #f9fafb;
  transition: all 0.3s ease;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
  font-size: 1rem;
}

button[type="submit"],
input[type="submit"] {
  background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

button[type="submit"]:hover,
input[type="submit"]:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

button[type="submit"]:active,
input[type="submit"]:active {
  transform: translateY(0);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

/* プレースホルダー */
::placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* チェックボックスとラジオボタン */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
  cursor: pointer;
}

/* セレクトボックス */
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* WordPress標準コメントフォーム */
.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
}

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

.form-submit {
  margin-top: 1rem;
}

/* WordPress検索フォーム */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form label {
  flex: 1;
  margin: 0;
}

.search-form input[type="search"] {
  width: 100%;
  margin: 0;
}

.search-form input[type="submit"] {
  flex-shrink: 0;
  width: auto;
}

