/**
 * Personal Stylist HP - スタイルシート
 * 
 * 概要: Komine Style Studio LPのカスタムCSS
 * 主な機能:
 * - レスポンシブデザイン（メディアクエリ対応）
 * - カスタムカラースキーム（ピンク・ゴールドテーマ）
 * - スムーズなアニメーション
 * - アクセシビリティ対応
 * 
 * カラースキーム:
 * - Primary: #E91E8C (ピンク)
 * - Accent: #D4AF37 (ゴールド)
 * - Background: 白、ピンクグラデーション
 */

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

:root {
  /* カラー定義 */
  --primary: #E91E8C;
  --primary-hover: #d11a7d;
  --accent: #D4AF37;
  --accent-light: rgba(212, 175, 55, 0.2);
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --section-bg-pink: #ffe8f3;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --black: #000000;
  
  /* スペーシング */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* フォントサイズ */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* その他 */
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Zen Maru Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   共通コンポーネント
   ======================================== */

/* コンテナ */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

/* IntersectionObserver 用フェードイン */
.reveal {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 2s ease,
    transform 2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.5s ease;
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 30, 140, 0.4);
}

.btn-outline {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 10px rgba(233, 30, 140, 0.1);
}

.btn-outline:hover {
  background-color: rgba(233, 30, 140, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 140, 0.2);
}

.btn-lg {
  padding: 1.5rem 2rem;
  font-size: var(--text-lg);
}

.btn-full {
  width: 100%;
}

/* カード */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--pink-100);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.card-header {
  padding: var(--spacing-xl);
}

.card-content {
  padding: var(--spacing-xl);
  padding-top: 0;
  flex: 1;
}

.card-footer {
  padding: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  margin-top: auto;
}

.card-title {
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--gray-600);
  line-height: 1.625;
}

/* セクションヘッダー */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--gray-800);
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--spacing-md);
}

.section-description {
  font-size: var(--text-base);
  color: var(--gray-600);
  max-width: 42rem;
  margin: 0 auto;
}

/* ========================================
   ナビゲーション
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* ヘッダーロゴを最前面に */
  transition: var(--transition);
  background-color: transparent;
}

.nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.nav-logo {
  cursor: pointer;
  transition: opacity 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1100;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-logo-img {
  height: 2.5rem;
  width: auto;
  position: relative;
  z-index: 1100;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

/* SNSリッチメニュー（デスクトップ） */
.nav-sns {
  position: relative;
}

.nav-sns-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--white);
  border: 2px solid var(--pink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  min-width: 14rem;
  display: none;
}

.nav-sns:hover .nav-sns-dropdown,
.nav-sns:focus-within .nav-sns-dropdown {
  display: block;
}

.nav-sns-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--gray-700);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-sns-item:hover {
  background-color: var(--pink-50);
  color: var(--primary);
  transform: translateX(2px);
}

.nav-sns-item i { font-size: 1rem; }
.nav-sns-item:nth-child(1) i { color: #E4405F; }
.nav-sns-item:nth-child(2) i { color: #FF0000; }
.nav-sns-item:nth-child(3) i { color: #00B900; }

.nav-link {
  color: var(--gray-700);
  font-size: var(--text-base);
  font-weight: 400;
  transition: all 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  position: relative;
}

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

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

.nav-link:hover::after {
  width: 100%;
}

.nav-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-800);
  background: transparent; /* 背景色なし */
  border: none;            /* ピンクのボーダー撤廃 */
  padding: 0.25rem;        /* クリック余白は最小限確保 */
  border-radius: 0;        /* 丸み撤廃 */
  position: relative;
  z-index: 60;
  transition: all 0.3s ease;
}

.nav-mobile-btn.active {
  color: var(--gray-800);   /* アクティブ時も黒系に固定 */
}

.nav-icon {
  width: 28px;
  height: 28px;
}

.nav-icon-close {
  display: none;
}

.nav-mobile-btn.active .nav-icon-menu {
  display: none;
}

.nav-mobile-btn.active .nav-icon-close {
  display: block;
}

.nav-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  transform-origin: top right;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.3s ease;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile-menu.active {
  transform: scale(1);
  opacity: 1;
}

.nav-mobile-content {
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  align-items: center;
}
/* ヘッダー(4rem)と視覚位置を合わせるため上下余白を追加 */
.nav-mobile-content {
  padding-top: calc(4rem + 0.5rem);
  padding-bottom: 1.25rem;
}

/* モバイルSNSリンク */
.nav-mobile-divider {
  height: 1px;
  background-color: var(--pink-200);
  margin: 0.5rem 0 0.375rem;
}

.nav-mobile-sns {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.nav-mobile-link-sns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.75rem 0;
  color: var(--white);
  font-size: var(--text-xl);
}

.nav-mobile-link-sns i { font-size: 2rem; }
.nav-mobile-link-sns:nth-child(1) i { color: #E4405F; }
.nav-mobile-link-sns:nth-child(2) i { color: #FF0000; }
.nav-mobile-link-sns:nth-child(3) i { color: #00B900; }

/* モバイルメニューのSNSはアイコンのみ表示（テキスト非表示） */
.nav-mobile-link-sns span { display: none; }

.nav-mobile-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5rem 0.75rem;
  color: var(--gray-800);
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 0;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
}

.nav-mobile-menu.active .nav-mobile-link {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nav-mobile-menu.active .nav-mobile-link:nth-of-type(1) { 
  transition-delay: 0.2s; 
}
.nav-mobile-menu.active .nav-mobile-link:nth-of-type(2) { 
  transition-delay: 0.3s; 
}
.nav-mobile-menu.active .nav-mobile-link:nth-of-type(3) { 
  transition-delay: 0.4s; 
}
.nav-mobile-menu.active .nav-mobile-link:nth-of-type(4) { 
  transition-delay: 0.5s; 
}
.nav-mobile-menu.active .nav-mobile-link:nth-of-type(5) { 
  transition-delay: 0.6s; 
}
.nav-mobile-menu.active .nav-mobile-link:nth-of-type(6) { 
  transition-delay: 0.7s; 
}
.nav-mobile-menu.active .nav-mobile-link:nth-of-type(7) { 
  transition-delay: 0.8s; 
}

.nav-mobile-menu.active .nav-mobile-link:hover {
  color: var(--primary);
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1756752461877-90ebb73004c5?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxlbGVnYW50JTIwcm9zZXMlMjBwaW5rfGVufDF8fHx8MTc2MDE2ODE0MHww&ixlib=rb-4.1.0&q=80&w=1080');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(233, 30, 140, 0.18) 0%,
    rgba(253, 242, 248, 0.35) 20%,
    rgba(255, 255, 255, 0.7) 55%,
    rgba(255, 255, 255, 0.95) 85%,
    rgba(255, 255, 255, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-badge-text {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--accent-light);
  border: 2px solid var(--accent);
  border-radius: var(--radius-full);
  color: var(--gray-800);
  letter-spacing: 0.05em;
  font-size: var(--text-base);
}

.hero-logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  width: auto;
  height: 150px;
  max-height: 30vh;
}

.hero-text {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: #374151;
  line-height: 1.625;
  padding: 0 1rem;
}

.hero-br {
  display: none;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.hero-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 1s infinite;
}

.hero-arrow-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateX(-50%) translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* ========================================
   コースセクション
   ======================================== */
.profile-section {
  padding: 5rem 0;
  background-color: var(--white);
}

/* SNS直前の純プロフィールはピンクにして接続を整える */
#profile.profile-section {
  background-color: var(--section-bg-pink);
  border-top: 1px solid var(--pink-200);
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* リッチプロフィール */
.profile-rich {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* リッチコンセプト */
.concept-rich {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.concept-hero {
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.concept-lead {
  font-size: 1.375rem;
  color: var(--gray-800);
  line-height: 1.9;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.005em;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .concept-lead { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .concept-lead { font-size: 1.75rem; }
}

.concept-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.concept-feature {
  background-color: var(--white);
  border: 2px solid var(--pink-100);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.concept-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--pink-50);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.concept-title-sm {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-800);
}

.concept-text {
  color: var(--gray-600);
}

.concept-quote {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--gray-700);
  font-style: italic;
}

.concept-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .concept-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profile-left,
.profile-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  background-color: var(--pink-50);
  border: 1px solid var(--pink-200);
  color: var(--gray-700);
  font-size: var(--text-sm);
  font-weight: 600;
}

.chip-accent {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: var(--accent);
}

.profile-note {
  width: 100%;
  color: var(--gray-600);
  font-size: var(--text-sm);
}

.profile-statement p { color: var(--gray-700); }

.experience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.experience-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--gray-700);
}

.exp-bullet {
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--primary);
}

.profile-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 992px) {
  .profile-rich {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.profile-intro p {
  color: var(--gray-700);
  line-height: 1.9;
}

.profile-points {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 1rem;
  color: var(--gray-700);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-notes {
  background-color: var(--pink-50);
  border: 2px solid var(--pink-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.profile-subtitle {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.profile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--gray-700);
}

@media (min-width: 768px) {
  .profile-content {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.courses-section {
  padding: 5rem 0;
  background-color: var(--white);
  border-top: 1px solid #f3f4f6;
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card-icon {
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-duration {
  color: var(--primary);
  font-size: var(--text-sm);
}

.courses-note {
  margin-top: 4rem;
  text-align: center;
  background-color: var(--pink-50);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 2px solid var(--pink-100);
}

.courses-note-title {
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.courses-note-text {
  color: var(--gray-600);
  max-width: 42rem;
  margin: 0 auto;
}

/* ========================================
   プランセクション
   ======================================== */
.plans-section {
  padding: 5rem 0;
  background-color: var(--section-bg-pink);
  border-top: 1px solid var(--pink-200);
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible; /* バッジを上にはみ出して表示するために必要 */
}

.plan-card:hover {
  transform: translateY(-6px);
}

.plan-card-recommended {
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-2xl);
  transform: scale(1.02);
}

.plan-card-recommended:hover {
  transform: scale(1.02) translateY(-6px);
}

.plan-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  z-index: 1; /* バッジを前面に */
}

.plan-card-header {
  text-align: center;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.plan-name {
  font-size: var(--text-2xl);
  margin-bottom: 0.5rem;
  color: var(--gray-800);
}

/* シンプル価格表示（インパクト強化） */
.plan-price {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0.25rem 0 0.75rem;
  text-shadow: 0 2px 0 rgba(233, 30, 140, 0.08);
}

/* 価格のリッチ表示 */
.plan-price-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.plan-price-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.price-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--pink-200);
  border-radius: var(--radius-full);
  background-color: var(--pink-50);
}

.price-old {
  font-size: 1.75rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.price-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(90deg, var(--primary), #ff6aa8);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  box-shadow: var(--shadow-md);
}

.price-new {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

/* 価格の横に付く注記（税抜き等）は価格より小さめに */
.price-new .pay {
  font-size: 0.5em; /* 価格に対して相対的に小さく */
  color: var(--gray-500);
  margin-left: 0.35rem;
  vertical-align: top;
  font-weight: 500;
}

.price-note {
  font-size: var(--text-xs);
  color: var(--gray-500);
}

/* ふわっと出る演出（控えめ） */
.plan-card-recommended .price-new {
  animation: pricePop 800ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

@keyframes pricePop {
  0% { transform: scale(0.9); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

.plan-description {
  color: var(--gray-600);
  font-size: var(--text-sm);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.plan-feature-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* オプションプラン */
.plan-option {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--pink-200);
}

.plan-option-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1rem;
  text-align: center;
}

.plan-option-card {
  background: linear-gradient(to right, var(--pink-50), var(--white));
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-option-card:hover {
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.plan-option-info {
  flex: 1;
}

.plan-option-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.plan-option-desc {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.plan-option-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.plans-note {
  margin-top: 3rem;
  text-align: center;
  color: var(--gray-500);
  font-size: var(--text-sm);
}

/* ========================================
   実績セクション
   ======================================== */
.cases-section {
  padding: 5rem 0;
  background-color: var(--white);
  border-top: 1px solid #f3f4f6;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.case-card {
  overflow: hidden;
}

.case-card .card-content {
  padding-top: var(--spacing-xl);
}

.case-age {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.case-title {
  font-size: var(--text-xl);
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.case-testimonials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-testimonial {
  padding: 1rem;
  border-radius: var(--radius);
}

.case-testimonial-before {
  background-color: var(--gray-50);
}

.case-testimonial-after {
  background-color: var(--pink-50);
  border: 1px solid var(--pink-100);
}

.case-quote-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 0.5rem;
}

.case-testimonial-before .case-quote-icon {
  color: var(--gray-400);
}

.case-testimonial-after .case-quote-icon {
  color: rgba(233, 30, 140, 0.5);
}

.case-testimonial-text {
  font-size: var(--text-sm);
  font-style: italic;
}

.case-testimonial-before .case-testimonial-text {
  color: var(--gray-600);
}

.case-testimonial-after .case-testimonial-text {
  color: var(--gray-700);
}

.case-label {
  color: var(--gray-500);
  margin-right: 0.5rem;
  font-weight: 500;
}

.case-testimonial-after .case-label {
  color: var(--primary);
}

.cases-rating {
  margin-top: 4rem;
  text-align: center;
}

.cases-rating-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(212, 175, 55, 0.1);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-full);
}

.cases-rating-stars {
  color: var(--accent);
  font-size: var(--text-3xl);
}

.cases-rating-text {
  color: var(--gray-700);
  font-weight: 500;
}

/* ========================================
   SNSセクション
   ======================================== */
.sns-section {
  padding: 5rem 0;
  background-color: var(--white);
  border-top: 1px solid #f3f4f6;
}

/* セクションの区切りライン（控えめ） */
main > section {
  position: relative;
}

main > section:not(:first-of-type)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 80rem;
  height: 1px;
  background: transparent;
}

.sns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 50rem;
  margin: 0 auto;
  width: 100%;
  padding: 0; /* 他セクションのグリッドと横幅を揃える */
}

.sns-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background-color: var(--white);
  border: 2px solid var(--pink-100);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  flex-direction: column;
  text-align: center;
}

.sns-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.sns-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.sns-icon i {
  font-size: 1.5rem;
}

.sns-card:nth-child(1) .sns-icon {
  color: #E4405F;
}

.sns-card:nth-child(2) .sns-icon {
  color: #FF0000;
}

.sns-card:nth-child(3) .sns-icon {
  color: #00B900;
}

.sns-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.sns-description {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.sns-handle {
  font-size: var(--text-sm);
  color: var(--primary);
  font-weight: 500;
}

@media (min-width: 768px) {
  .sns-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .sns-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .sns-icon {
    width: 4rem;
    height: 4rem;
  }

  .sns-icon i {
    font-size: 2rem;
  }
}

/* 極小画面で確実に1カラム */
@media (max-width: 30rem) { /* 480px */
  .sns-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact-section {
  padding: 5rem 0;
  background-color: var(--section-bg-pink);
  border-top: 1px solid var(--pink-200);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  justify-content: center; /* justify-center */
  justify-items: center;   /* アイテムも中央に */
}

/* モバイルのカード横はみ出し対策 */
.contact-section .card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.contact-grid,
.contact-form-wrapper,
.contact-line,
.contact-form {
  width: 100%;
  max-width: 100%;
}

.contact-section {
  word-break: break-word;
}

/* モバイルでお問い合わせカード幅を他カードと統一 */
@media (max-width: 30rem) { /* 480px */
  .contact-section .card {
    max-width: 100%; /* モバイルで他カードと同じ幅に */
    margin-left: auto;
    margin-right: auto;
  }
}

/* フォーム単体表示時のセンタリング（LINEカード未表示時の見栄え調整） */
.contact-form-wrapper {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

/* LINEカードが無い場合は常に1カラム中央寄せ（デスクトップ） */
@media (min-width: 1024px) {
  .contact-grid:not(:has(.contact-line)) {
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
  }
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-action-line {
  background-color: #00B900;
  color: #fff;
  border-color: #00B900;
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.contact-action-line:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.contact-action-line i { font-size: 1.125rem; }

.contact-form-center {
  max-width: 50rem;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* reCAPTCHA を送信ボタン上で中央寄せ */
.contact-form .g-recaptcha {
  display: inline-block;
  align-self: center;
  margin: 0.25rem 0 0.25rem;
}

/* 送信ボタン: 2.5分の1幅（=40%）に。モバイルは従来通り全幅 */
@media (min-width: 40rem) {
  .contact-section .contact-form .btn.btn-full.btn-lg[type="submit"] {
    width: 60%;
    align-self: center;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  color: var(--gray-800);
  background-color: var(--white);
  border: 2px solid var(--pink-100);
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.15);
  transform: translateY(-2px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* ========================================
   フッター
   ======================================== */
.footer {
  background: linear-gradient(to right, var(--pink-50), var(--white));
  border-top: 2px solid var(--pink-100);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

/* モバイル: 上段のアバウトは横幅いっぱい（2カラム分） */
.footer-about {
  grid-column: 1 / -1;
}

.footer-logo {
  height: 3rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-about-text {
  color: var(--gray-600);
  font-size: var(--text-sm);
  line-height: 1.625;
}

.footer-links-title {
  font-size: var(--text-lg);
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--gray-600);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--pink-200);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.footer-made-with {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.footer-heart-icon {
  color: var(--primary);
  width: 16px;
  height: 16px;
}

/* ========================================
   トースト通知
   ======================================== */
.toast {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

#toastMessage {
  margin: 0;
  font-size: var(--text-base);
}

/* ========================================
   メディアクエリ - タブレット (768px以上)
   ======================================== */
@media (min-width: 48rem) {
  /* ナビゲーション */
  .nav-content {
    height: 6rem;
  }
  
  .nav-logo-img {
    height: 4.5rem;
  }
  
  .nav-links {
    display: flex;
  }
  
  .nav-mobile-btn {
    display: none;
  }
  
  .nav-mobile-menu {
    display: none !important;
  }
  
  /* ヒーロー */
  .hero-logo-img {
    height: 240px;
    max-height: 50vh;
  }
  
  .hero-text {
    font-size: 1.875rem;
  }
  
  .hero-br {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: row;
  }
  
  /* フッター */
  .footer-logo {
    height: 6rem;
  }
  
  /* コース */
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* プラン */
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .plan-option-card {
    flex-direction: row;
  }
  
  /* 実績 */
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* お問い合わせ */
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* フッター */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-bottom-content {
    flex-direction: row;
  }
  
  /* セクションタイトル */
  .section-title {
    font-size: var(--text-5xl);
  }
}

/* ========================================
   メディアクエリ - デスクトップ (1024px以上)
   ======================================== */
@media (min-width: 64rem) {
  /* コンテナ */
  .container {
    padding: 0 2rem;
  }
  
  /* フッター: 4カラム */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* お問い合わせ */
  .contact-form-center {
    max-width: 56rem;
  }
}

/* ========================================
   アクセシビリティ
   ======================================== */
/* prefers-reduced-motionは無効化（フェードインを確実に動作させるため） */

/* フォーカスアウトライン */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* スクリーンリーダー用テキスト */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ページ先頭へ戻るボタン */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #fff 0%, #ffe8f3 100%);
  color: var(--primary);
  box-shadow: 0 12px 24px rgba(233, 30, 140, 0.25), 0 6px 12px rgba(233, 30, 140, 0.15);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  z-index: 1200;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 40rem) {
  .to-top {
    right: 1.25rem; /* 角から離してタップしやすく */
    bottom: 1.25rem; /* 角から離してタップしやすく */
    width: 44px;
    height: 44px;
  }
}

/* to-top: インタラクション */
.to-top:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 28px rgba(233, 30, 140, 0.3), 0 8px 16px rgba(233, 30, 140, 0.2);
}

.to-top:active {
  transform: translateY(0) scale(0.98);
}

.to-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.18), 0 12px 24px rgba(233, 30, 140, 0.25);
}

/* to-top 内のアイコン（SVG/テキスト）サイズ統一 */
.to-top svg {
  width: 22px;
  height: 22px;
}

.to-top:hover {
  background: linear-gradient(135deg, #fff 0%, #ffd3e7 100%);
}
/* ========================================
   モバイル全体のスペーシング最適化 (<= 640px)
   ======================================== */
@media (max-width: 40rem) {
  /* セクション上下余白を少し詰める */
  .profile-section,
  .courses-section,
  .plans-section,
  .cases-section,
  .contact-section,
  .sns-section {
    padding: 3.5rem 0;
  }

  /* セクション見出し下の間隔を控えめに */
  .section-header {
    margin-bottom: var(--spacing-xl);
  }

  /* グリッド/リストのギャップを詰める */
  .courses-grid,
  .plans-grid,
  .cases-grid,
  .concept-feature-grid {
    gap: 1rem;
  }

  /* カード内のパディングをやや減らす */
  .card-header {
    padding: 1rem;
  }
  .card-content {
    padding: 1rem;
    padding-top: 0.5rem;
  }
  .card-footer {
    padding: 1rem;
    padding-top: 0.75rem;
  }

  /* ヒーローの下マージンを軽く */
  .hero-text {
    margin-bottom: 2rem;
  }

  /* ボタンの余白を少しだけコンパクトに */
  .btn {
    padding: 0.6rem 1.25rem;
  }
  .btn-lg {
    padding: 1.1rem 1.5rem;
  }

  /* フッターの間隔を詰める */
  .footer-grid {
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }
  .footer-bottom {
    padding-top: 1.25rem;
  }
}

