@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
*/

/* Google Fonts読み込み */
@import url("https://fonts.googleapis.com/css2?family=Klee+One:wght@400;600&display=swap");

/************************************
** iTeen経堂駅前校カスタムデザイン
************************************/

/* カラーシステム（70:25:5配色比率） */
:root {
  /* ベースカラー（70%）- 清潔感のある白とライトグレー */
  --base-primary: #ffffff;
  --base-secondary: #f8fafc;
  --base-tertiary: #f1f5f9;
  --base-quaternary: #e2e8f0;
  
  /* メインカラー（25%）- 親しみやすいブルー系 */
  --main-primary: #3b82f6;
  --main-secondary: #1d4ed8;
  --main-tertiary: #dbeafe;
  --main-quaternary: #eff6ff;
  
  /* アクセントカラー（5%）- 活気のあるオレンジ系 */
  --accent-primary: #f97316;
  --accent-secondary: #ea580c;
  --accent-tertiary: #fed7aa;
  
  /* テキストカラー */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-inverse: #ffffff;
  
  /* フォントサイズ */
  --font-size: 16px;
}

/* 基本フォント設定 */
body {
  font-family: 'Klee One', cursive, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--text-primary);
  background-color: var(--base-primary);
  overflow-x: hidden;
}

/* 横スクロール防止 */
html {
  overflow-x: hidden;
  width: 100%;
}

* {
  box-sizing: border-box;
}

/* コンテナの横幅制限 */
.hero-content,
.tech-logos {
  max-width: 100%;
  overflow: hidden;
}

.hero-content {
  width: 100%;
  box-sizing: border-box;
}

#home > div {
  box-sizing: border-box;
  width: 100%;
}

/* 技術ロゴの横幅制限 */
.tech-logos {
  width: 100%;
  flex-wrap: nowrap;
}

.tech-logo-item {
  flex-shrink: 1;
  min-width: 0;
}

.tech-logo-item div {
  max-width: 12vw !important;
  max-height: 12vw !important;
  width: 100% !important;
  height: auto !important;
}

.tech-logo-item.character-item div {
  max-width: 15vw !important;
  max-height: 15vw !important;
}

/* 動画エリアの横幅制限 */
.hero-right {
  max-width: 45vw !important;
  width: 100% !important;
  transform: none !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.hero-right * {
  box-sizing: border-box !important;
}

.hero-right > div {
  max-width: 100% !important;
  width: 100% !important;
}

.hero-right iframe,
.hero-right div[style*="aspect-ratio"] {
  max-width: 100% !important;
  width: 100% !important;
}

/* バッジがはみ出さないように */
.hero-right div[style*="position: absolute"] {
  max-width: none !important;
}

/* 小さい画面では動画を90%幅に */
@media screen and (max-width: 834px) {
  .hero-right {
    max-width: 90vw !important;
  }
}

/* 画像の最大幅制限 */
img {
  max-width: 100%;
  height: auto;
}

/* セクション全体の横幅制限 */
section {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ヘッダーカスタマイズ */
.header-container {
  background: var(--base-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* メインコンテンツエリア */
.main {
  background: var(--base-secondary);
}

/* アニメーション効果 */
@keyframes bounce-subtle {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-1px);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ボタンスタイル */
.iteen-btn-primary {
  background: linear-gradient(to right, var(--main-primary), var(--main-secondary));
  color: var(--text-inverse);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-family: 'Klee One', cursive, sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.iteen-btn-primary:hover {
  background: linear-gradient(to right, var(--main-secondary), var(--main-primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  color: var(--text-inverse);
  text-decoration: none;
}

.iteen-btn-accent {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  color: var(--text-inverse);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-family: 'Klee One', cursive, sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.iteen-btn-accent:hover {
  background: linear-gradient(to right, var(--accent-secondary), var(--accent-primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  color: var(--text-inverse);
  text-decoration: none;
}

/* セクション共通スタイル */
.iteen-section {
  padding: 4rem 0;
  background: var(--base-secondary);
}

.iteen-section:nth-child(even) {
  background: var(--base-primary);
}

.iteen-section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--main-primary);
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Klee One', cursive, sans-serif;
}

/* ヒーローセクション */
.iteen-hero {
  background: linear-gradient(135deg, var(--base-secondary) 0%, var(--main-quaternary) 100%);
  padding: 6rem 0;
  text-align: center;
}

.iteen-hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--main-primary);
  margin-bottom: 2rem;
  line-height: 1.2;
  font-family: 'Klee One', cursive, sans-serif;
  animation: fade-in-up 1s ease-out;
}

.iteen-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  animation: fade-in-up 1s ease-out 0.2s both;
}

.iteen-hero-cta {
  animation: fade-in-up 1s ease-out 0.4s both;
}

/* カード系コンポーネント */
.iteen-card {
  background: var(--base-primary);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--base-quaternary);
}

.iteen-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* FAQ スタイル */
.iteen-faq-item {
  background: var(--base-primary);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--base-quaternary);
}

.iteen-faq-question {
  background: var(--main-tertiary);
  color: var(--main-primary);
  padding: 1rem;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  border-radius: 0.5rem 0.5rem 0 0;
  transition: all 0.3s ease;
}

.iteen-faq-question:hover {
  background: var(--main-secondary);
  color: var(--text-inverse);
}

.iteen-faq-answer {
  padding: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
}

/* FAQ モバイル対応 */
@media screen and (max-width: 768px) {
  .iteen-faq-question {
    font-size: 1.125rem !important;
    padding: 1.25rem !important;
    line-height: 1.5;
  }

  .iteen-faq-answer {
    font-size: 1rem !important;
    padding: 1.25rem !important;
    line-height: 1.6;
  }
}

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

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

/*834px以下*/
@media screen and (max-width: 834px){
  /* セクション全体のパディング調整 */
  #home > div {
    padding: 2rem 1rem !important;
  }

  /* オンライン授業セクションのレスポンシブ対応 */
  #online-lesson .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  #online-lesson h2 {
    font-size: 2rem !important;
  }

  #online-lesson .main-card {
    padding: 2rem !important;
  }

  #online-lesson .main-card .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* ヒーローセクションのレスポンシブ対応 */
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* 動画エリアのレスポンシブ対応 */
  .hero-right {
    padding-right: 0 !important;
    margin: 0 auto !important;
  }

  /* 学習技術ロゴのレスポンシブ対応 */
  .tech-logos {
    flex-wrap: nowrap !important;
    gap: 1rem !important;
  }

  .tech-logo-item div {
    max-width: 10vw !important;
    max-height: 10vw !important;
  }

  .tech-logo-item.character-item div {
    max-width: 12vw !important;
    max-height: 12vw !important;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  /* オンライン授業セクションのモバイル対応 */
  #online-lesson {
    padding: 3rem 0 !important;
  }

  #online-lesson h2 {
    font-size: 1.75rem !important;
  }

  #online-lesson p {
    font-size: 1rem !important;
  }

  #online-lesson .main-card {
    padding: 1.5rem !important;
  }

  #online-lesson .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  #online-lesson .cta-button {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
  }

  /* ヒーローセクションのモバイル対応 */
  .hero-stats {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  /* バッジの位置調整（モバイル） */
  .hero-right div[style*="position: absolute"] {
    left: -7rem !important;
    z-index: 100 !important;
  }

  /* 背景装飾を非表示（モバイル） */
  .hero-right div[style*="rotate(3deg)"] {
    display: none !important;
  }

  /* 動画エリアのオーバーフロー調整 */
  .hero-right {
    overflow: visible !important;
  }

  .hero-right > div {
    overflow: visible !important;
  }

  .hero-right > div > div {
    overflow: visible !important;
  }

  .hero-content {
    overflow: visible !important;
  }

  #home {
    overflow: visible !important;
  }

  #home > div {
    overflow: visible !important;
  }

  /* 学習技術ロゴのモバイル対応 */
  .tech-logos {
    gap: 0.2rem !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
  }

  .tech-logo-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  .tech-logo-item div {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    min-width: 150px !important;
    height: auto !important;
    min-height: 150px !important;
    aspect-ratio: 1 / 1 !important;
  }

  .tech-logo-item.character-item {
    flex: 1.2 1 0 !important;
  }
}

/************************************
** オンライン授業セクション専用アニメーション
************************************/

/* フェードインアップアニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スケールインアニメーション */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* スライドインアップアニメーション */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スライドイン左アニメーション */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* スライドイン右アニメーション */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* フェードインアニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* チェックマークポップアニメーション */
@keyframes checkmarkPop {
  from {
    opacity: 0;
    transform: scale(0) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

/* パルスグローアニメーション */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 5px var(--accent-primary);
  }
  50% {
    box-shadow: 0 0 20px var(--accent-primary), 0 0 30px var(--accent-primary);
  }
}

/* バウンスインアニメーション */
@keyframes bounceIn {
  from {
    opacity: 0;
    transform: scale(0.3) translateY(30px);
  }
  50% {
    transform: scale(1.05) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* CTAパルスアニメーション */
@keyframes ctaPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
  }
}

/* バウンスアニメーション */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* フロートアニメーション */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* グラデーションシフトアニメーション */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* バッジ用の特別なバウンシングアニメーション */
@keyframes badgeBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-8px) scale(1.05);
  }
  60% {
    transform: translateY(-4px) scale(1.02);
  }
}

/* 連続バウンシングアニメーション（無限ループ） */
@keyframes continuousBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* スケールパルスアニメーション */
@keyframes scalePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* シャインエフェクト */
@keyframes shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* ワイグルアニメーション */
@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  50% {
    transform: rotate(-1deg);
  }
  75% {
    transform: rotate(1deg);
  }
}

/* プルスウェーブ効果 */
@keyframes pulseWave {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    transform: scale(1);
  }
}

/* フリップインアニメーション */
@keyframes flipIn {
  0% {
    transform: rotateY(-90deg);
    opacity: 0;
  }
  50% {
    transform: rotateY(-20deg);
    opacity: 0.5;
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

/* ルベリール（成長）エフェクト */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/************************************
** WordPressサイドバー非表示
************************************/
/* フロントページではサイドバーを完全に非表示 */
.home #sidebar,
.home .sidebar,
.home #secondary,
.home .secondary,
.home #primary-sidebar,
.home .primary-sidebar,
.home #complementary,
.home .complementary,
.home .widget-area,
.home #sidebar-1,
.home .sidebar-1,
.home .search-form,
.home .recent-posts {
  display: none !important;
}

/* メインコンテンツエリアを全幅に */
.home #main,
.home .main,
.home #content,
.home .content,
.home #primary,
.home .primary {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* WordPressのデフォルト投稿コンテンツも非表示 */
.home .hentry,
.home .entry,
.home .post,
.home article[id*="post-"],
.home .entry-header,
.home .entry-content,
.home .entry-meta {
  display: none !important;
}

/************************************
** Contact Form 7 スタイル
************************************/

/* Contact Form 7 フォーム全体 */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Contact Form 7 入力フィールド */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="datetime-local"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100% !important;
  padding: 0.75rem !important;
  border: 1px solid var(--base-quaternary) !important;
  border-radius: 0.375rem !important;
  background: var(--base-primary) !important;
  color: var(--text-primary) !important;
  font-family: 'Klee One', cursive, sans-serif !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
}

/* フィールドのフォーカス状態 */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="datetime-local"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none !important;
  border-color: var(--main-primary) !important;
  box-shadow: 0 0 0 3px var(--main-quaternary) !important;
}

/* ラベルスタイル */
.wpcf7-form label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: 'Klee One', cursive, sans-serif;
}

/* 必須マーク */
.wpcf7-form .required {
  color: var(--accent-primary);
}

/* 送信ボタン */
.wpcf7-form input[type="submit"] {
  width: 100% !important;
  padding: 1rem 2rem !important;
  font-size: 1.125rem !important;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary)) !important;
  color: var(--text-inverse) !important;
  border: none !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  font-family: 'Klee One', cursive, sans-serif !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin-top: 1rem !important;
}

/* 送信ボタンのホバー効果 */
.wpcf7-form input[type="submit"]:hover {
  background: linear-gradient(to right, var(--accent-secondary), var(--accent-primary)) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4) !important;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
  color: var(--accent-primary) !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
  font-family: 'Klee One', cursive, sans-serif !important;
}

/* 送信完了・エラーメッセージ */
.wpcf7-mail-sent-ok {
  background: var(--main-quaternary) !important;
  border: 1px solid var(--main-tertiary) !important;
  color: var(--main-primary) !important;
  padding: 1rem !important;
  border-radius: 0.5rem !important;
  margin: 1rem 0 !important;
  font-family: 'Klee One', cursive, sans-serif !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-validation-errors {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
  padding: 1rem !important;
  border-radius: 0.5rem !important;
  margin: 1rem 0 !important;
  font-family: 'Klee One', cursive, sans-serif !important;
}

/* フォームフィールドの行間調整 */
.wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0.5rem;
}

/* テキストエリアの調整 */
.wpcf7-form textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

/* セレクトボックスの矢印カスタマイズ */
.wpcf7-form select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 0.5rem center !important;
  background-repeat: no-repeat !important;
  background-size: 1.5rem 1.5rem !important;
  padding-right: 2.5rem !important;
  appearance: none !important;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .wpcf7-form {
    gap: 1.25rem;
  }

  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form input[type="datetime-local"],
  .wpcf7-form select,
  .wpcf7-form textarea {
    font-size: 16px !important; /* iOS Safari zoom防止 */
  }

  .wpcf7-form input[type="submit"] {
    font-size: 1rem !important;
    padding: 1.25rem !important;
  }
}

/* オンライン授業の特徴バッジのレスポンシブ対応 */
@media screen and (max-width: 768px) {
  .online-features {
    flex-direction: column !important;
    align-items: center !important;
  }

  .online-features span {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Contact Form 7 送信後の自動スクロール用 */
.wpcf7-mail-sent-ok,
.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-validation-errors {
  scroll-margin-top: 100px; /* 固定ヘッダーの高さを考慮 */
}
