@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* ==========================================
   💎 AI Pricing Section — ガラス風モダン
   背景：流れる光 × 透明感カード
========================================== */

.ai-pricing-section {
  position: relative;
  padding: 5rem 1rem;
  overflow: hidden;
  background: linear-gradient(-45deg, #f8f9fb, #eef1f8, #f5f7fa, #f9f9ff);
  background-size: 400% 400%;
  animation: gradientFlow 12s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === タイトル === */
.ai-pricing-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: #111;
  margin-bottom: 3rem;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* === グリッド === */
.ai-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* === カード共通 === */
.ai-card {
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ai-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* === カード内テキスト === */
.ai-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}
.ai-card-sub {
  color: #555;
  margin-bottom: 1rem;
}
.ai-card-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.5rem;
}
.ai-card-price span {
  font-size: 1rem;
  color: #666;
}

/* === 機能リスト === */
.ai-card-features {
  text-align: left;
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 0;
}
.ai-card-features li {
  margin-bottom: 0.5rem;
  color: #333;
  position: relative;
  padding-left: 1.5rem;
}
.ai-card-features li::before {
  content: "✔";
  color: #6d5dfc;
  position: absolute;
  left: 0;
}

.ai-card-service {
  text-align: left;
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 0;
}
.ai-card-service li {
  margin-bottom: 0.5rem;
  color: #333;
  position: relative;
  padding-left: 1.5rem;
}
.ai-card-service li::before {
  content: "";
  color: #6d5dfc;
  position: absolute;
  left: 0;
}

/* === ボタン === */
.ai-card-btn {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #6d5dfc, #3a8ef6);
  color: white;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.ai-card-btn:hover {
  background: linear-gradient(90deg, #3a8ef6, #6d5dfc);
  box-shadow: 0 0 15px rgba(106, 93, 252, 0.4);
}

/* === プラン差 === */
.ai-card.free {
  border: 1px solid rgba(160, 160, 160, 0.3);
}
.ai-card.pro {
  border: 1px solid rgba(106, 93, 252, 0.5);
}

/* ==========================================
   📱 スマホ最適化 (〜640px)
========================================== */
@media screen and (max-width: 640px) {
  .ai-pricing-section {
    padding: 3rem 1rem;
    background-attachment: fixed;
  }
  .ai-pricing-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  .ai-pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ai-card {
    padding: 1.8rem 1.5rem;
    border-radius: 16px;
  }
  .ai-card-title {
    font-size: 1.4rem;
  }
  .ai-card-price {
    font-size: 2rem;
  }
  .ai-card-btn {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 12px;
  }
}

/* ==========================================
   📲 タブレット（〜834px）
========================================== */
@media screen and (max-width: 834px) {
  .ai-pricing-title {
    font-size: 1.8rem;
  }
  .ai-card {
    padding: 2rem;
  }
  .ai-card-price {
    font-size: 2.2rem;
  }
  .ai-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ボタン縦並び・カード幅いっぱい */
.ai-card-btn-wrap {
  display: flex;
  flex-direction: column; /* 縦並び */
  gap: 0.8rem; /* ボタン間の余白 */
  margin-top: 1.5rem; /* カード本文との余白 */
}

/* 盾型ボタン */
.ai-card-btn {
  display: block;
  text-align: center;
  width: 100%; /* カード幅いっぱいに広げる */
  background: linear-gradient(90deg, #6d5dfc, #3a8ef6);
  color: white;
  font-weight: 600;
  border-radius: 12px; /* 角丸で盾っぽく */
  padding: 1rem 0; /* 上下パディング大きめでボリューム感 */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.ai-card-btn:hover {
  background: linear-gradient(90deg, #3a8ef6, #6d5dfc);
  box-shadow: 0 0 15px rgba(106, 93, 252, 0.4);
  transform: translateY(-2px);
}

/* ==========================================
   AIサービス プラン — コンパクト版
   ガラス風モダン × 流れる光アニメ対応
========================================== */

.ai-card-compact {
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85); /* 若干白強め */
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 300px;
  margin: 0 auto;
}

.ai-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* タイトル */
.ai-card-compact-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.25rem;
}

/* サブタイトル */
.ai-card-compact-sub {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.8rem;
}

/* 価格 */
.ai-card-compact-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.6rem;
}
.ai-card-compact-price span {
  font-size: 0.9rem;
  color: #666;
}

/* ボタンラップ */
.ai-card-compact-btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ボタン */
.ai-card-compact-btn {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #6d5dfc, #3a8ef6);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(106, 93, 252, 0.25);
}
.ai-card-compact-btn:hover {
  background: linear-gradient(90deg, #3a8ef6, #6d5dfc);
  box-shadow: 0 0 12px rgba(106, 93, 252, 0.4);
}

/* プランごとの個性 */
.ai-card-compact.pro {
  border: 1px solid rgba(106, 93, 252, 0.4);
}
.ai-card-compact.free {
  border: 1px solid rgba(160, 160, 160, 0.3);
}

/* 背景用アニメーション（親要素に適用） */
.ai-card-compact-section {
  position: relative;
  padding: 2rem 1rem;
  overflow: hidden;
  background: linear-gradient(-45deg, #ffffff, #f9fafb, #f8f8ff, #f5f5f7);
  background-size: 400% 400%;
  animation: aiGradientFlow 12s ease infinite;
}
@keyframes aiGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* スマホ対応 */
@media screen and (max-width: 640px) {
  .ai-card-compact {
    padding: 1.5rem 1rem;
    border-radius: 14px;
  }
  .ai-card-compact-title {
    font-size: 1.2rem;
  }
  .ai-card-compact-sub {
    font-size: 0.9rem;
  }
  .ai-card-compact-price {
    font-size: 1.5rem;
  }
  .ai-card-compact-btn {
    font-size: 0.95rem;
    padding: 0.65rem 0.8rem;
  }
}
