@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --primary: #16325c; /* 青みを強めた信頼のネイビー */
  --secondary: #0ea5e9; /* カリフォルニア・スカイブルー */
  --secondary-light: #f0f9ff;
  --accent: #f59e0b; /* サンシャイン・ゴールド */
  --bg: #ffffff; /* 抜けるような白 */
  --beach-sand: #fdfbf7;
  --wood: #d4a373;
  --glass: rgba(255, 255, 255, 0.7);
  --surface: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.1); /* 少しだけ濃くして輪郭を出します */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 30px 60px -15px rgba(15, 23, 42, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.6;
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 3rem;
  font-weight: 700;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 5px;
  background: var(--accent);
  margin: 1.5rem auto 0;
  border-radius: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 42px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 100px;
  transition: var(--transition);
  box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.3);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.5);
  filter: brightness(1.1);
}
.btn::after {
  content: '→';
  transition: var(--transition);
  transform: translateX(-5px);
  opacity: 0;
}
.btn:hover::after {
  transform: translateX(0);
  opacity: 1;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
  padding: 12px 30px;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Header */
header {
  background: linear-gradient(135deg, #1e3a8a 0%, #16325c 100%);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.logo img {
  height: 40px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a:not(.btn) {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
  position: relative;
  font-size: 0.95rem;
}
.nav-links a:not(.btn):hover {
  color: #fff;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-links a:not(.btn):hover::after {
  width: 100%;
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  transition: var(--transition);
  border-radius: 3px;
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 120px;
  background: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  z-index: 1;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-content {
  flex: 1;
  z-index: 10; /* 最前面へ */
  position: relative;
  animation: fadeUp 1s ease both;
}
.hero-content h1 {
  font-size: 3rem;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.05em;
}
.hero-content h1 span {
  color: var(--secondary);
}
.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image {
  flex: 1;
  position: relative;
  animation: fadeLeft 1s ease 0.3s both;
  height: 450px; /* 固定高さを指定して安定させます */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
}
.hero-image img:nth-child(1) {
  animation: heroFade1 18s infinite;
}
.hero-image img:nth-child(2) {
  animation: heroFade2 18s infinite;
}
.hero-image img:nth-child(3) {
  animation: heroFade3 18s infinite;
}

@keyframes heroFade1 {
  0%, 28% { opacity: 1; visibility: visible; }
  33%, 95% { opacity: 0; visibility: hidden; }
  100% { opacity: 1; visibility: visible; }
}
@keyframes heroFade2 {
  0%, 28% { opacity: 0; visibility: hidden; }
  33%, 61% { opacity: 1; visibility: visible; }
  66%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes heroFade3 {
  0%, 61% { opacity: 0; visibility: hidden; }
  66%, 95% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  border-radius: 20px;
  z-index: 1;
  opacity: 0.15;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--surface);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.feature-card {
  background: var(--surface);
  padding: 60px 40px;
  border-radius: 40px; /* 大胆な角丸で親しみやすさを */
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05); /* 繊細な縁取り */
  position: relative;
}
.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--secondary-light);
  color: var(--secondary);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 30px;
}
.feature-card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.feature-card p {
  color: var(--text-muted);
}

/* Message Section */
.message {
  padding: 140px 0;
  background: var(--beach-sand);
  position: relative;
  overflow: hidden;
}
.message-inner {
  display: flex;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.message-image {
  flex: 0 0 280px; /* 爽やかに存在感を出すサイズ */
  position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(255, 251, 235, 0.8) 0%, rgba(255, 255, 255, 0) 70%); /* 背後からの柔らかな光 */
  border-radius: 30px;
}
.message-image img {
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 12px solid white; /* 白い極太フレームでリゾート感を */
  width: 100%;
  transform: rotate(-2deg); /* わずかに傾けて「風」を感じさせる遊び心 */
  transition: var(--transition);
  filter: contrast(1.1) brightness(0); /* 人物を真っ黒（シルエット）にする */
  opacity: 0.85; /* 少し透過させて背景の光と馴染ませる */
}
.message-image img:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: var(--shadow-lg);
  filter: contrast(1.1) brightness(0.1); /* ホバーでわずかに表情が見えるような演出 */
}
.message-content {
  flex: 1;
}
.message-content .section-title {
  text-align: left;
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 2.6rem;
}
.message-text .catchphrase {
  border-left: none;
  border-top: 4px solid var(--secondary);
  background: white;
  padding: 30px;
  color: var(--secondary);
  font-weight: 800;
  font-size: 1.4rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin: 40px 0;
}
.message-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-main);
}
.message-text p {
  margin-bottom: 1.5rem;
}
.message-text .catchphrase {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  border-left: 5px solid var(--accent);
  padding: 15px 0 15px 25px;
  margin: 2.5rem 0;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 0 12px 12px 0;
}
.message-text .signature {
  text-align: right;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
  font-size: 1.1rem;
}

/* Courses Section */
.courses {
  padding: 100px 0;
  background: var(--bg);
}
.courses-intro {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 50px;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.course-card {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary); /* 新しい青色に光る */
}
.course-header {
  padding: 30px;
  background: #fff;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  transition: var(--transition);
}
.course-card:hover .course-header {
  background: var(--secondary-light); /* わずかに背景色が変わる */
}
.course-header img {
  max-height: 50px;
  display: block;
  margin: 0 auto;
  width: auto;
  transition: transform 0.5s ease;
}
.course-card:hover .course-header img {
  transform: scale(1.1); /* ロゴがフワッと拡大 */
}
.course-body {
  padding: 30px;
  flex-grow: 1;
}
.course-body h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 700;
}
.course-body p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
/* Badges */
.course-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 15px;
}
.badge-blue { background: #eff6ff; color: #3b82f6; }
.badge-pink { background: #fdf2f8; color: #db2777; }
.badge-green { background: #f0fdf4; color: #16a34a; }
.header-link {
  display: block;
  position: relative;
  overflow: hidden; /* はみ出した画像を隠す */
  height: 240px;
}
.header-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.course-card:hover .header-link img {
  transform: scale(1.1); /* 画像ズームアップ */
}
.header-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: 0.6s;
}
.course-card:hover .header-link::after {
  left: 150%; /* 光がサッと横切る */
}
.header-link::after {
  content: '▶ 本部サイトへ';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  z-index: 2;
  transition: var(--transition);
}
.header-link:hover .course-header {
  filter: brightness(1.1);
}
.header-link:hover::after {
  color: #fff;
  transform: translateX(2px);
}
.course-header {
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  position: relative;
}
.course-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.05em;
}
.course-price {
  display: inline-block;
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}
.course-price strong {
  font-size: 1.4rem;
}
.course-body {
  padding: 10px 24px 30px;
  flex: 1;
}
.course-body p:first-child {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.course-body p:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Guarantee Section */
.guarantee {
  padding: 100px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #16325c 100%); /* より青く明るいグラデーション */
  color: #fff;
  position: relative;
  overflow: hidden;
}
.guarantee-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}
.guarantee-image {
  flex: 1;
}
.guarantee-image img {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.5);
}
.guarantee-content {
  flex: 1;
}
.guarantee-content h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--secondary);
}
.guarantee-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.8;
}
.guarantee-stats {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-block;
}
.guarantee-stats h4 {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
.guarantee-stats span {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

/* News Section */
.news {
  padding: 100px 0;
  background: var(--bg);
}
.news-list {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 10px;
}
.news-item {
  display: flex;
  align-items: center;
  padding: 30px;
  border-bottom: 1px solid #f1f5f9;
  transition: var(--transition);
  border-radius: 16px;
}
.news-item:last-child {
  border-bottom: none;
}
.news-item:hover {
  background: #f8fafc;
  transform: translateX(10px);
}
.news-date {
  font-weight: 600;
  color: var(--secondary);
  width: 120px;
  flex-shrink: 0;
}
.news-title {
  color: var(--text-main);
  font-weight: 500;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

/* Company / Access Section */
.company {
  padding: 100px 0;
  background: var(--surface);
}
.company-inner {
  display: flex;
  gap: 60px;
}
.company-info {
  flex: 1;
}
.info-row {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.info-row dt {
  width: 120px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.info-row dd {
  flex: 1;
  color: var(--text-main);
}
.tel-link {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  display: inline-block;
  margin-top: 10px;
  transition: var(--transition);
}
.tel-link:hover {
  color: var(--secondary-hover);
  transform: scale(1.05);
}
.company-map {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 350px;
  background: var(--border);
  display: flex;
}
.company-map iframe {
  width: 100%;
  min-height: 350px;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #16325c 100%); /* 背景を少し明るく鮮やかに */
  color: #fff;
  padding: 80px 0 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-info {
  max-width: 400px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-logo img {
  height: 40px;
  border-radius: 4px;
}
.footer-info p {
  opacity: 0.8;
  line-height: 1.8;
}
/* --- Mailform Pro 4 Overlay fix --- */
#mfp_overlay, 
#mfp_overlay_background, 
.mfp_err, 
#mfp_confirm {
  z-index: 10000 !important; /* ヘッダー(1000)を確実に超える */
}
#mfp_confirm_content table {
  width: 100%;
}
#mfp_confirm_content {
  background: white !important;
  color: var(--primary) !important;
  padding: 40px !important;
  border-radius: 40px !important;
}

.footer-links {
  display: flex;
  gap: 60px;
}
.footer-links ul li {
  margin-bottom: 12px;
}
.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
}
/* --- Contact Form Page Styles (Revised for Better Balance) --- */
.contact-page {
  padding: 120px 0 100px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); /* 奥行きを持たせるグラデーション */
}
.contact-container {
  max-width: 900px; /* 少し横幅を広げて安定感を出し */
  margin: 0 auto;
  background: var(--surface);
  padding: 80px;
  border-radius: 24px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.8);
}
.contact-container h1 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 800;
}
.contact-container > p {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* 2カラムレイアウトへの変更 */
.form-group {
  display: flex;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  align-items: flex-start;
}
.form-group:last-of-type {
  border-bottom: none;
}
.form-group label {
  width: 240px; /* ラベルの幅を固定 */
  flex-shrink: 0;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 30px;
}
.form-group label span {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 0;
  font-weight: 700;
}
.form-group label span.required { background: var(--secondary); color: white; }
.form-group label span.optional { background: #e2e8f0; color: #64748b; }

.form-field {
  flex: 1;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-main);
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

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

.checkbox-group, .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 10px 0;
}
.checkbox-item, .radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}
.checkbox-item:hover, .radio-item:hover {
  color: var(--secondary);
}
.checkbox-item input, .radio-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary); /* ブラウザ標準のコントロールに色を付けます */
}

.contact-submit {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #f1f5f9;
}
.contact-submit .btn {
  padding: 20px 80px;
  font-size: 1.25rem;
  width: auto;
  min-width: 320px;
  border-radius: 50px; /* 角を丸めてよりモダンな印象に */
}

/* Mailform Pro adjustments */
.mfp_err { color: #e11d48; font-size: 0.85rem; margin-top: 8px; font-weight: 600; }

@media (max-width: 991px) {
  .header-inner { height: 70px; }
  .logo { font-size: 1.2rem; }
  .logo img { height: 32px; }
  
  .nav-links {
    display: none; /* Hide default nav */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 30px;
    gap: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-links.active {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  .nav-links a:not(.btn) {
    color: #fff;
    font-size: 1.4rem;
  }
  
  /* Mobile Button Sizes */
  .header-inner .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    box-shadow: none;
  }

  .menu-toggle { display: flex; }
  .menu-toggle.active span { background: #fff; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

  .hero { padding: 120px 0 60px; text-align: center; }
  .hero-inner { display: block !important; text-align: center !important; }
  .hero-content { margin-bottom: 40px !important; }
  .hero-image { 
    display: block !important; 
    width: 100% !important; 
    height: 320px !important; 
    position: relative !important; 
    margin: 40px auto !important; 
    padding: 0 !important;
    opacity: 1 !important; 
    visibility: visible !important; 
    overflow: hidden !important;
    z-index: 5 !important;
  }
  .hero-image img {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 1; /* アニメーションで制御されるがデフォルトを1に */
    visibility: visible !important;
  }
  .hero-image img:nth-child(1) { z-index: 6 !important; }

  .section-title { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 40px 20px; }

  .message-inner { flex-direction: column; gap: 40px; }
  .message-image { flex: 0 0 auto; width: 200px; margin: 0 auto; }
  .message-content .section-title { text-align: center; font-size: 1.8rem; }
  .message-text { font-size: 1rem; }
  .message-text .catchphrase { font-size: 1.1rem; padding: 20px; }

  .courses-grid { grid-template-columns: 1fr; }
  .guarantee-inner { flex-direction: column; text-align: center; gap: 40px; }
  .guarantee-content h2 { font-size: 1.8rem; }
  .guarantee-stats span { font-size: 2.8rem; }

  .company-inner { flex-direction: column; gap: 40px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-links { flex-direction: column; gap: 30px; text-align: center; }
  
  /* Contact Form Spacing for Mobile */
  .contact-container { padding: 40px 20px !important; }
  .contact-container h1 { font-size: 2rem !important; } /* 見出しをスマホサイズに */
  .form-group { display: flex !important; flex-direction: column !important; align-items: stretch !important; padding-bottom: 25px !important; margin-bottom: 10px !important; }
  .form-group label { width: 100% !important; padding-right: 0 !important; padding-bottom: 12px !important; justify-content: flex-start !important; }
  .form-field { width: 100% !important; }
  .checkbox-group { gap: 10px !important; width: 100% !important; display: flex !important; flex-direction: column !important; }
  .checkbox-item { font-size: 1rem !important; padding: 12px !important; background: #f8fafc !important; border-radius: 8px !important; width: 100% !important; margin: 0 !important; }
  .form-row { grid-template-columns: 1fr !important; }
  
  /* Table Stack for Mobile (Confirmation Page) */
  .confirm-table th, .confirm-table td { display: block !important; width: 100% !important; text-align: left !important; }
  .confirm-table th { background: #f1f5f9 !important; border-bottom: none !important; padding: 10px 20px !important; }
  .confirm-table td { padding: 15px 20px 30px !important; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  .btn { padding: 16px 32px; width: 100%; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .tel-link { font-size: 1.8rem; }
  .contact-container { padding: 30px 15px; }
  .contact-container h1 { font-size: 1.8rem; }
  .form-group label { font-size: 0.9rem; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
