/* ========================================
   てこすく - プログラミング個別指導
   スタイルシート
======================================== */

/* リセット & 基本設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #ff6b6b;
  --primary-dark: #ee5a5a;
  --primary-light: #ffb4b4;
  --secondary: #4ecdc4;
  --accent: #ffe66d;
  --dark: #2d3436;
  --gray: #636e72;
  --light-gray: #b2bec3;
  --background: #fafafa;
  --white: #ffffff;
  --pink-bg: #fff0f0;
  --blue-bg: #f0f8ff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--dark);
  background-color: var(--background);
}

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

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ヒーローセクション */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink-bg) 0%, var(--white) 50%, var(--blue-bg) 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 20px;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero .highlight {
  color: var(--primary);
  position: relative;
}

.hero .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 15px;
  background: var(--accent);
  z-index: -1;
  opacity: 0.6;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--gray);
  margin-bottom: 15px;
}

.hero-description {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 30px;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
}

.circle-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  top: 10%;
  left: -100px;
  animation: float 6s ease-in-out infinite;
}

.circle-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  top: 60%;
  right: -50px;
  animation: float 8s ease-in-out infinite reverse;
}

.circle-3 {
  width: 150px;
  height: 150px;
  background: var(--accent);
  bottom: 10%;
  left: 20%;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5);
}

.btn-full {
  width: 100%;
}

/* セクション共通 */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 50px;
}

/* 講師について */
.about {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-placeholder {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--pink-bg), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.about-text .motto {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 20px;
}

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

.about-list li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: var(--gray);
}

.about-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* お悩みセクション */
.problems {
  background: var(--white);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.problem-card {
  background: var(--pink-bg);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.problem-card p {
  color: var(--dark);
  font-weight: 500;
  line-height: 1.6;
}

.problem-note {
  display: block;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--primary-light);
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.5;
}

.problems-solution {
  text-align: center;
}

.solution-arrow {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.solution-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}

.highlight-text {
  color: var(--primary);
}

/* メリットセクション */
.benefits {
  background: linear-gradient(180deg, var(--blue-bg) 0%, var(--white) 100%);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.benefit-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

.benefit-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-light);
  position: absolute;
  top: 20px;
  right: 30px;
  opacity: 0.5;
}

.benefit-card h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.benefit-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* 授業の流れ */
.lesson {
  background: var(--background);
}

.lesson-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.lesson-step {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 250px;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-content h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.step-content p {
  color: var(--gray);
  font-size: 0.9rem;
}

.lesson-arrow {
  font-size: 2rem;
  color: var(--primary-light);
  padding-top: 50px;
}

.lesson-examples {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.lesson-examples h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 25px;
}

.examples-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.example-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.example-icon {
  font-size: 2.5rem;
}

.example-item span:last-child {
  color: var(--gray);
  font-size: 0.95rem;
}

/* 保護者の声 */
.voices {
  background: var(--white);
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.voice-card {
  background: var(--background);
  padding: 30px;
  border-radius: var(--radius-lg);
  position: relative;
}

.voice-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-light);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
}

.voice-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.voice-icon {
  font-size: 2rem;
}

.voice-name {
  font-size: 0.9rem;
  color: var(--gray);
}

.voice-text {
  color: var(--dark);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.voices-note {
  text-align: center;
  color: var(--light-gray);
}

/* FAQ */
.faq {
  background: linear-gradient(180deg, var(--background) 0%, var(--blue-bg) 100%);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--background);
}

.q-mark {
  width: 35px;
  height: 35px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-question p {
  font-weight: 500;
  color: var(--dark);
}

.faq-answer {
  display: flex;
  gap: 15px;
  padding: 0 25px 20px;
  padding-left: 75px;
}

.a-mark {
  width: 35px;
  height: 35px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-answer p {
  color: var(--gray);
  line-height: 1.8;
}

/* 料金 */
.price {
  background: linear-gradient(180deg, var(--background) 0%, var(--pink-bg) 100%);
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.price-card.popular {
  border: 3px solid var(--primary);
}

.popular-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--primary);
  color: var(--white);
  padding: 5px 40px;
  font-size: 0.85rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.price-header {
  background: linear-gradient(135deg, var(--pink-bg), var(--primary-light));
  padding: 30px;
  text-align: center;
}

.price-header h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.age-range {
  color: var(--gray);
  font-size: 0.9rem;
}

.price-body {
  padding: 30px;
  text-align: center;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.price-amount .yen {
  font-size: 1.2rem;
  vertical-align: top;
}

.price-amount .per {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
}

.price-amount.consultation {
  font-size: 1.8rem;
  color: var(--secondary);
}

.price-time {
  font-size: 1.2rem;
  color: var(--gray);
  font-weight: 500;
}

.price-features {
  list-style: none;
  text-align: left;
}

.price-features li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  color: var(--gray);
  border-bottom: 1px solid var(--background);
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-size: 0.8rem;
}

.schedule-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--white);
  padding: 25px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 0 auto;
}

.notice-icon {
  font-size: 2.5rem;
}

.notice-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.notice-text p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* 特徴 */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--background);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.feature-card small {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--light-gray);
}

/* お問い合わせ */
.contact {
  background: linear-gradient(180deg, var(--background) 0%, var(--blue-bg) 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-content.contact-centered {
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-icon {
  font-size: 2rem;
  background: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.info-item h4 {
  color: var(--dark);
  margin-bottom: 5px;
}

.info-item p {
  color: var(--gray);
}

.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--dark);
}

.required {
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 15px;
  border: 2px solid var(--background);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Instagram CTA */
.instagram-cta {
  background: var(--white);
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.instagram-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--white);
}

.instagram-cta h3 {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.instagram-cta p {
  color: var(--gray);
  margin-bottom: 25px;
  max-width: 300px;
}

.btn-instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(220, 39, 67, 0.5);
}

/* フッター */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo p {
  color: var(--light-gray);
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  color: var(--light-gray);
  font-size: 0.9rem;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .lesson-arrow {
    display: none;
  }

  .lesson-step {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .header .container {
    height: 60px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--background);
  }

  .nav a::after {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-width: 300px;
    margin: 0 auto;
  }

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

  .benefit-card {
    padding: 30px;
  }

  .benefit-number {
    font-size: 2rem;
    top: 15px;
    right: 20px;
  }

  .lesson-flow {
    gap: 15px;
  }

  .lesson-step {
    min-width: 100%;
    padding: 25px;
  }

  .price-cards {
    grid-template-columns: 1fr;
  }

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

  .faq-answer {
    padding-left: 25px;
    flex-direction: column;
  }

  .contact-content,
  .contact-content.contact-centered {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

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

  .btn {
    padding: 12px 30px;
    font-size: 0.95rem;
  }

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

  .contact-form-wrapper {
    padding: 25px;
  }

  .instagram-cta {
    padding: 35px 25px;
  }

  .schedule-notice {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* レスポンシブ改行 */
.br-pc {
  display: inline;
}

.br-sp {
  display: none;
}

@media (max-width: 768px) {
  .br-pc {
    display: none;
  }

  .br-sp {
    display: inline;
  }
}
