/*
Theme Name: 愛彩ペイント Modern
Theme URI: https://www.aisai-paint.com
Author: 川合住宅設備株式会社
Author URI: https://www.aisai-paint.com
Description: 愛彩ペイントのモダンでレスポンシブなWordPressテーマ。Tailwind CSSを使用。
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: aisai-modern
*/

/* カスタムカラー */
:root {
  --color-primary: #ffe518;
  /* メインカラー: 鮮やかな黄色 */
  --color-secondary: #005bb0;
  /* サブカラー: 深い青 */
  --color-accent: #f2bc00;
  /* アクセント: 濃い黄色 */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-light-bg: #f8f9fa;
  --color-border: #e0e0e0;
}

/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-bg);
}

/* 全画面幅のコンテナ（余白なし） */
.full-width {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* bxSlider カスタムスタイル */
.bx-wrapper {
  margin: 0 auto !important;
}

.bx-wrapper .bx-viewport {
  box-shadow: none !important;
  border: none !important;
  left: 0;
}

.bx-wrapper .bx-controls-direction a {
  width: 50px !important;
  height: 50px !important;
  z-index: 9999;
}

.bx-wrapper .bx-prev {
  left: 20px;
}

.bx-wrapper .bx-next {
  right: 20px;
}

.bx-wrapper .bx-pager {
  padding-top: 20px;
}

.bx-wrapper .bx-pager-item a {
  background: #ddd;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.bx-wrapper .bx-pager-item a.active {
  background: var(--color-primary);
}

/* 画像フレーム */
.pic_frame {
  box-shadow: 0 0 0 1px #29241e inset;
  margin-bottom: 3%;
  border: none;
  position: relative;
  height: 0;
  padding-bottom: 75%;
  overflow: hidden;
}

.pic_frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pic_frame2 {
  padding-top: 1px;
  box-shadow: 0 0 0 4px #fff inset;
  margin-bottom: 3%;
  border: none;
}

/* ホバーエフェクト */
a:hover img {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* レスポンシブ画像 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* clearfix */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* カスタムボタンスタイル */
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* セクション共通スタイル */
.section {
  padding: 60px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }
}

/* Google Maps レスポンシブ */
.ggmap {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.ggmap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Google Maps レスポンシブ */
.map-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ========================================
   モダンデザインスタイル
   ======================================== */

/* タイポグラフィ */
h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-secondary);
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* ヒーローセクション */
.hero-section {
  width: 100%;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  background-color: #f8f9fa;
}

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  max-width: 600px;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 229, 24, 0.3);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 229, 24, 0.4);
}

/* 特徴カードスタイル */
.features-section {
  width: 100%;
  padding: 5rem 0;
  background-color: var(--color-light-bg);
}

.features-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.feature-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: var(--color-secondary);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  border-top-right-radius: 12px;
}

.feature-card:hover {
  box-shadow: 0 8px 25px rgba(0, 91, 176, 0.15);
  transform: translateY(-5px);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--color-secondary);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.feature-description {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* サービスカード */
.services-section {
  width: 100%;
  padding: 5rem 0;
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.service-card {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(255, 229, 24, 0.2);
  transform: translateY(-5px);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 3rem 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-cta {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }

  .features-section,
  .services-section {
    padding: 3rem 0;
  }

  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}