html {
  scroll-behavior: smooth;
}

:root {
  --primary: #FFFF00;
  --secondary: #BDE3FF;
  --bg-gray: #F0F0F0;
  --bg-white: #ffffff;
  --text-dark: #000000;
  --text-muted: #333333;
  --accent-red: #ff0000;
  --border-thick: 3px solid #000000;
  --shadow-hard: 5px 5px 0px #000000;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-content-width: 1280px;
  /* PC Width as requested */
}

/* Scroll Offset for Sharp Jumps */
section {
  scroll-margin-top: 80px;
}

/* モバイル専用改行: PC表示では非表示 */
.sp-br {
  display: none;
}

/* Sticky Navigation */
.main-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 2px solid #000;
  padding: 15px 0;
}

.nav-lp-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Ensure exact vertical alignment */
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo .logo-text {
  font-weight: 950;
  font-size: 1.2rem;
  letter-spacing: -0.05em;
  color: #000;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.nav-links li a:hover {
  color: #666;
}

.nav-links li a.nav-cta {
  background: var(--primary);
  padding: 8px 15px;
  border: 2px solid #000;
  box-shadow: 3px 3px 0px #000;
}

.nav-links li a.nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000;
  color: #000;
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #000;
  transition: all 0.3s ease;
  transform-origin: left center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    font-size: 1.5rem;
    font-weight: 900;
  }

  .main-nav {
    padding: 15px 0;
  }

  .nav-logo {
    z-index: 1001;
  }

  .nav-lp-container {
    align-items: center;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-gray);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Container for standard width */
.lp-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Grid Background Pattern */
.grid-bg {
  background-image:
    linear-gradient(#e0e0e0 1px, transparent 1px),
    linear-gradient(90deg, #e0e0e0 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Base Sections */
section {
  padding: 80px 0;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.lp-section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
  background: var(--bg-white);
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 30px;
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
  position: relative;
  transform: rotate(-1deg);
  z-index: 5;
}

/* Hero Section Refinement */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--bg-white);
  overflow: hidden;
  padding: 0;
  /* Removed all padding to allow content to reach edges */
  border-bottom: var(--border-thick);
}

.hero-full-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  z-index: 1;
}

/* Decorative Background Elements (Flyer Style) */
.decor-plane {
  position: absolute;
  background: var(--secondary);
  opacity: 0.3;
  z-index: 2;
  transform: skew(-20deg);
}

.decor-sparkle {
  position: absolute;
  background: var(--secondary);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  width: 40px;
  height: 40px;
  z-index: 2;
  opacity: 0.8;
}

.decor-circle {
  position: absolute;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 20;
  /* High enough to be above background, but below speech bubble */
  width: 100%;
}

.hero-full-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  z-index: 1;
}

.side-label {
  position: absolute;
  right: -100px;
  top: 40%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary);
  -webkit-text-stroke: 1px #000;
  opacity: 0.4;
  z-index: 3;
  pointer-events: none;
}

.hero-container {
  min-height: inherit;
  position: relative;
  z-index: 10;
  display: flex;
  /* Necessary to keep centering simple */
  align-items: center;
}

.hero-badge {
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 20px;
  display: inline-block;
  background: var(--secondary);
  color: #000;
  padding: 5px 15px;
  border-radius: 20px;
}

.hero-description {
  font-size: 1.4rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-tel {
  font-size: 1.1rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #000;
  padding: 10px 20px;
}

.side-label {
  position: absolute;
  right: -100px;
  top: 40%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary);
  -webkit-text-stroke: 1px #000;
  opacity: 0.4;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 20px;
  line-height: 1.1;
  word-break: keep-all;
  filter: drop-shadow(2px 2px 0px #fff);
}

.hero h1 .highlight {
  background: var(--primary);
  padding: 0 5px;
  display: inline-block;
  /* Changed from inline to prevent weird wrapping backgrounds */
  white-space: nowrap;
}

/* Character Placement (Adjusted for Overlap) */
.mirai-lp-container {
  height: 100%;
  width: 45%;
  z-index: 10;
  /* Put character on top of text highlight if needed */
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  position: relative;
  margin-right: 80px;
  /* Move character and speech bubble 40px to the left */
}

.mirai-img {
  display: block;
  height: 95%;
  width: auto;
  max-width: none;
  object-fit: contain;
  animation: float 5s ease-in-out infinite;
  transform-origin: bottom center;
  margin-left: 20px;
  margin-bottom: 0 !important;
  /* Improved sizing for production */
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

/* Speech Bubble - Comic Style */
.speech-bubble {
  position: absolute;
  top: 10%;
  right: 60%;
  background: #ffffff;
  color: #000;
  padding: 15px 25px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 1.4rem;
  border: 4px solid #000;
  box-shadow: 6px 6px 0px #000;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transform: rotate(-8deg);
  pointer-events: auto;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -25px;
  right: 30px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 25px solid transparent;
  border-top: 25px solid #000;
  transform: rotate(-10deg);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 32px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 22px solid transparent;
  border-top: 22px solid #ffffff;
  transform: rotate(-10deg);
}

/* Buttons */
.lp-btn {
  display: inline-block;
  padding: 20px 40px;
  font-weight: 900;
  font-size: 1.1rem;
  text-decoration: none;
  border: var(--border-thick);
  box-shadow: 6px 6px 0px #000;
  transition: all 0.1s ease;
  background: var(--primary);
  color: #000;
}

.lp-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px #000;
}

/* Cards & Content */
.lp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.lp-card {
  background: var(--bg-white);
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
  padding: 30px;
  position: relative;
  transition: transform 0.2s ease;
}

.lp-card:hover {
  transform: translateY(-5px);
}


/* Curriculum Vertical Layout */
.curriculum-vertical {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 650px;
  margin: 0 auto;
}

.curriculum-item {
  background: var(--bg-white);
  border: var(--border-thick);
  border-radius: 12px;
  padding: 20px 30px 20px 60px;
  /* Adjusted padding to accommodate top-left circle overlap */
  font-weight: 950;
  font-size: 1.2rem;
  /* Reduced font size from 1.5rem */
  display: flex;
  align-items: center;
  box-shadow: 8px 8px 0px #000;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: 30px;
  /* Slightly increased margin for overlap space */
  min-height: 60px;
  /* Ensure enough height to match the bigger star */
}

.curriculum-item:nth-child(even),
.curriculum-item:nth-child(odd) {
  transform: none;
  margin-left: 0;
  margin-right: 0;
}

.curriculum-item:hover {
  transform: translate(-3px, -3px) rotate(0deg) scale(1.02);
  box-shadow: 12px 12px 0px #000;
  z-index: 10;
}

.curriculum-item .num {
  position: absolute;
  left: -25px;
  /* Position circle to overlap top-left corner */
  top: -20px;
  width: 65px;
  /* Balanced size for circular badge */
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border: 3px solid #000;
  border-radius: 50%;
  color: #000;
  font-weight: 950;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 4px 4px 0px #000;
  z-index: 10;
}

.lp-card-blue {
  background-color: var(--secondary);
}

/* Curriculum Character Accent */
.curriculum-mirai-accent {
  position: absolute;
  left: 120px;
  bottom: -80px;
  height: 360px;
  z-index: 20;
  /* Increased to stay in front */
  pointer-events: none;
}

.curriculum-note-wrapper {
  text-align: center;
  margin-top: 40px;
}

.curriculum-note {
  font-weight: 900;
  display: inline-block;
}

@media (max-width: 1100px) {
  .curriculum-mirai-accent {
    height: 250px;
    /* Resize earlier to prevent overlap */
    left: 40px;
    bottom: -60px;
  }
}

/* Pricing Table */
.pricing-lp-container {
  background: var(--bg-white);
  border: var(--border-thick);
  box-shadow: 10px 10px 0px #000;
  padding: 40px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.pricing-lp-cards {
  display: none;
  /* Hidden by default on desktop */
}

.lp-pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

.lp-pricing-table th,
.lp-pricing-table td {
  padding: 15px;
  border: 1px solid #000;
  text-align: center;
}

.highlight-row {
  background: var(--primary);
}

.price-tag {
  font-size: 2rem;
  font-weight: 950;
  color: var(--accent-red);
}

.price-tag.small {
  font-size: 1.5rem;
}

/* Pricing Cards Mobile Styles */
.pricing-lp-card {
  background: var(--bg-white);
  border: var(--border-thick);
  box-shadow: 6px 6px 0px #000;
  margin-bottom: 25px;
  overflow: hidden;
}

.pricing-lp-card .lp-card-header {
  background: #eee;
  padding: 10px 20px;
  font-weight: 950;
  font-size: 1.1rem;
  border-bottom: 2px solid #000;
  text-align: center;
}

.pricing-lp-card.highlighted {
  border-color: #000;
  box-shadow: 8px 8px 0px var(--primary);
}

.pricing-lp-card.highlighted .lp-card-header {
  background: var(--primary);
}

.pricing-lp-card .lp-card-body {
  padding: 20px;
}

.pricing-lp-card .item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 5px;
}

.pricing-lp-card .lp-card-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  background: #f0f0f0;
  padding: 10px;
  font-weight: 950;
}

.pricing-lp-card .lp-card-total-row .val {
  font-size: 1.5rem;
}

.pricing-lp-card .lp-card-footer {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-lp-card .disc {
  background: #000;
  color: #fff;
  padding: 5px 10px;
  font-weight: 950;
  font-size: 0.9rem;
}

.pricing-lp-card .disc.best {
  background: var(--accent-red);
}

.pricing-lp-card .per-person {
  font-weight: 950;
  font-size: 1rem;
}

/* Instructor Profile */
.profile-flex {
  display: flex;
  gap: 40px;
  background: #fff;
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
  padding: 40px;
  align-items: center;
}

.profile-img {
  width: 240px;
  height: 240px;
  border: var(--border-thick);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oval-badge-yellow {
  background: var(--primary);
  border: 2px solid #000;
  padding: 5px 15px;
  font-weight: 900;
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 5px;
  margin-right: 10px;
}

.lecturer-records {
  margin-top: 25px;
  background: #eee;
  padding: 15px;
  border-left: 5px solid #000;
}

.lecturer-records h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lecturer-records ul {
  list-style: none;
  padding-left: 0;
}

.lecturer-records ul li {
  font-weight: 700;
  margin-bottom: 5px;
  position: relative;
  padding-left: 15px;
}

.lecturer-records ul li::before {
  content: '●';
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

/* FAQ Section */
.faq-lp-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: var(--border-thick);
  box-shadow: 6px 6px 0px #000;
  margin-bottom: 25px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.faq-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px #000;
}

.faq-question {
  background: #eee;
  padding: 20px 25px;
  font-weight: 950;
  font-size: 1.2rem;
  border-bottom: 2px solid #000;
  display: flex;
  align-items: center;
  gap: 15px;
}

.q-icon {
  background: var(--primary);
  color: #000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  border: 2px solid #000;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.faq-answer {
  padding: 20px 25px;
  font-weight: 700;
  line-height: 1.6;
  background: #fff;
}

/* Responsive */
/* Responsive */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 4rem;
  }

  .mirai-lp-container {
    margin-right: 40px;
  }
}

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

  .mirai-lp-container {
    width: 45%;
    margin-right: 20px;
  }

  .speech-bubble {
    font-size: 1.2rem;
    padding: 12px 20px;
  }

  /* Move side label inside for tablets */
  .side-label {
    right: 10px !important;
    font-size: 4.5rem !important;
    opacity: 0.2 !important;
  }
}

@media screen and (min-width: 1400px) {
  .side-label {
    right: -80px;
    /* Move it outside only if there's enough screen space */
  }
}

@media (max-width: 768px) {

  /* Tablet horizontal refinement for 768px range */
  .hero {
    min-height: auto;
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1.1rem !important;
    margin-bottom: 30px !important;
  }

  .hero-content {
    max-width: 60% !important;
    margin-bottom: 0;
  }

  /* Show vertical side label but keep it subtle and inside */
  .side-label {
    display: block !important;
    right: 0px !important;
    top: 50% !important;
    font-size: 3.5rem !important;
    opacity: 0.15 !important;
  }

  /* Keep horizontal stack for larger tablets / landscape */
  .lp-container[style*="display: flex"] {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .mirai-lp-container {
    position: relative;
    width: 40% !important;
    height: auto !important;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }

  .mirai-img {
    position: relative;
    bottom: 0;
    right: 0;
    height: 320px !important;
    width: auto !important;
    max-height: none;
    margin: 0 !important;
  }

  .speech-bubble {
    position: absolute !important;
    top: 5%;
    right: 50%;
    left: auto;
    font-size: 1rem;
    padding: 10px 15px;
    white-space: nowrap;
    max-width: none;
    z-index: 150;
  }

  .profile-flex {
    flex-direction: column;
    text-align: left;
  }

  .lp-section-title {
    font-size: 1.8rem;
  }

  .pricing-lp-container {
    display: none;
  }

  .pricing-lp-cards {
    display: block;
  }

  /* FAQ Mobile adjustments */
  .faq-question {
    font-size: 1.1rem;
    padding: 15px;
    gap: 10px;
  }

  .q-icon {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .faq-answer {
    padding: 15px;
    font-size: 0.95rem;
  }

  /* Curriculum Character for Tablet - triggered after 1100px */
  .curriculum-mirai-accent {
    height: 180px;
    left: 20px;
    bottom: -40px;
    transform: none;
  }
}

@media (max-width: 599px) {

  /* モバイル専用改行を表示、PC専用改行を非表示 */
  .sp-br {
    display: block !important;
  }

  .pc-br {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 30px 0 10px;
    /* 人物用のスペースを考慮しつつ余白を大幅に削減（負のパディングは無効なため10pxに調整） */
  }

  /* ヒーローエリアのコンテナ幅を広げる */
  .hero .lp-container {
    padding: 0 10px !important;
    max-width: 100% !important;
  }

  /* 縦書き「企業研修」を人物の背景に表示 */
  .side-label {
    display: block !important;
    right: 10px !important;
    font-size: 2.5rem !important;
    opacity: 0.2 !important;
    top: auto !important;
    bottom: 80px !important;
    z-index: 15 !important;
    transform: translateY(0) !important;
  }

  .hero-content {
    text-align: center;
    width: 70% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 水色バッジを1行で中央揃え */
  .hero-content>div:first-child {
    white-space: nowrap !important;
    font-size: 1.19rem !important;
    display: inline-block !important;
  }

  /* Ensure vertical stack for mobile */
  .hero .lp-container[style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero h1 {
    font-size: 2rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  .hero p {
    font-size: 1rem !important;
    margin-top: 60px !important;
    margin-bottom: 30px !important;
    max-width: 100% !important;
    margin-left: -10px;
    margin-right: auto;
    text-align: left;
    white-space: normal;
  }

  /* ボタンコンテナを左寄せ */
  .hero .hero-content>div[style*="display: flex"] {
    justify-content: flex-start !important;
    margin-left: -10px;
    margin-bottom: 50px;
    /* ボタンを下げた分、下の余白を詰める（60->50）ことで人物の位置を維持 */
  }

  /* ボタンを1行に */
  .hero .lp-btn {
    width: auto !important;
    padding: 15px 20px !important;
    font-size: 0.9rem !important;
    text-align: center;
    margin-bottom: 10px;
    white-space: nowrap !important;
  }

  /* TELの調整 */
  .hero .hero-content div[style*="font-size: 1.1rem"] {
    width: 55% !important;
    font-size: 0.85rem !important;
    padding: 8px !important;
    text-align: center;
  }

  /* 人物を拡大（右下を固定し左上に10px拡大） */
  .mirai-lp-container {
    position: absolute !important;
    bottom: -10px !important;
    right: -5px !important;
    height: 340px !important;
    width: 200px !important;
    z-index: 20;
  }

  .mirai-img {
    height: 320px !important;
    width: auto !important;
    margin: 0 !important;
  }

  .speech-bubble {
    top: 10px !important;
    right: 30px !important;
    left: auto !important;
    font-size: 0.7rem !important;
    padding: 5px 10px !important;
    width: max-content !important;
    max-width: 140px !important;
    white-space: nowrap !important;
    box-shadow: 2px 2px 0px #000 !important;
    border-width: 2px !important;
  }

  /* 吹き出しの三角部分：位置を本体に合わせて微調整 */
  .speech-bubble::before {
    content: "";
    position: absolute;
    bottom: -12px !important;
    /* PC版の半分強のサイズに固定 */
    right: 30px !important;
    /* 本体が広がった分、少し右へ（相対位置調整） */
    border-width: 12px 12px 0 0 !important;
    /* 太い縁取り用 */
    border-style: solid !important;
    border-color: #000 transparent transparent transparent !important;
    transform: rotate(-10deg) !important;
    z-index: -1 !important;
  }

  .speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -7px !important;
    /* 黒の上に重なる位置をミリ単位で調整 */
    right: 33px !important;
    /* 本体が広がった分、少し右へ（相対位置調整） */
    border-width: 9px 9px 0 0 !important;
    /* 白い中身用 */
    border-style: solid !important;
    border-color: #fff transparent transparent transparent !important;
    transform: rotate(-10deg) !important;
    z-index: 1 !important;
  }

  .curriculum-item {
    font-size: 1.1rem !important;
    padding: 25px 15px 15px 45px !important;
    margin-left: 20px !important;
    margin-right: 0 !important;
    margin-bottom: 25px !important;
    box-shadow: 5px 5px 0px #000 !important;
    min-height: 50px !important;
  }

  .curriculum-item .num {
    width: 50px !important;
    height: 50px !important;
    left: -20px !important;
    top: -15px !important;
    font-size: 1.5rem !important;
    border-width: 2px !important;
    box-shadow: 3px 3px 0px #000 !important;
  }

  /* Curriculum Character for Mobile */
  .curriculum-mirai-accent {
    height: 200px;
    /* Increased to approx 1.5x (from 130px) */
    left: 0;
    bottom: -80px;
    /* Aligned with section border (matches padding-bottom) */
  }

  .curriculum-note {
    display: block;
    width: auto;
    margin: 0;
    text-align: left;
    padding-left: 110px;
    /* Position to the right of the character */
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

.oval-badge {
  background: var(--secondary);
  border: 2px solid #000;
  padding: 5px 20px;
  font-weight: 950;
  font-size: 0.85rem;
  border-radius: 50px;
  box-shadow: 2px 2px 0px #000;
}

/* Phone Call Links Styling */
.tel-link {
  text-decoration: none;
  color: inherit;
  pointer-events: none;
  /* Disable by default (Desktop) */
  cursor: default;
}

@media (max-width: 1024px) {
  .tel-link {
    pointer-events: auto;
    /* Enable for Mobile/Tablet */
    cursor: pointer;
  }
}

/* --- Reskilling Subsidy Simulator Styles --- */
.sim-wrapper {
  scroll-margin-top: 100px;
  max-width: 800px;
  margin: 60px auto;
  background: var(--bg-white);
  border: var(--border-thick);
  box-shadow: 10px 10px 0px #000;
  border-radius: 20px;
  overflow: hidden;
  font-family: var(--font-main);
  position: relative;
  z-index: 10;
  color: #000;
}

.sim-header {
  background: #000;
  color: #fff;
  padding: 30px;
  text-align: center;
  border-bottom: var(--border-thick);
}

.sim-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--primary) !important;
  letter-spacing: 0.05em;
  font-weight: 950;
}

.sim-header p {
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.9;
  color: #fff;
}

.sim-content {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background-color: #fff;
}

@media (max-width: 768px) {
  .sim-content {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 30px;
  }
}

.sim-inputs {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sim-label {
  display: block;
  font-weight: 950;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #000;
}

.sim-toggle {
  display: flex;
  background: #f0f0f0;
  padding: 5px;
  border: var(--border-thick);
  border-radius: 12px;
  box-shadow: 4px 4px 0px #000;
}

.sim-toggle button {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  font-weight: 950;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.95rem;
  color: #000;
}

.sim-toggle button.active {
  background: var(--primary);
  box-shadow: 2px 2px 0px #000;
}

.sim-select {
  width: 100%;
  padding: 15px;
  border: var(--border-thick);
  border-radius: 12px;
  font-weight: 900;
  background: #fff;
  font-size: 1.1rem;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' 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 15px center;
  background-size: 1.2em;
  color: #000;
}

.sim-cost-preview {
  background: var(--secondary);
  border: var(--border-thick);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 4px 4px 0px #000;
}

.sim-cost-preview .label {
  display: block;
  font-size: 0.8rem;
  font-weight: 950;
  color: #000;
  margin-bottom: 5px;
  opacity: 0.7;
}

.sim-cost-preview .price {
  font-size: 1.8rem;
  font-weight: 950;
  color: #000;
}

.sim-results {
  background: #fff;
  border: var(--border-thick);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 8px 8px 0px #000;
}

.sim-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #000;
  padding-bottom: 10px;
}

.sim-line-item .label {
  color: #555;
  font-size: 0.9rem;
  font-weight: 900;
}

.sim-line-item .val {
  font-weight: 950;
  font-size: 1.1rem;
  color: #000;
}

.sim-subsidy-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-subsidy-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 900;
  color: #c62828;
}

.sim-result-box {
  padding: 12px 20px;
  border-radius: 15px;
  border: var(--border-thick);
  text-align: center;
  line-height: 1.2;
}

.sim-box-subsidy {
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #2e7d32;
}

.sim-box-subsidy .label {
  font-size: 0.85rem;
  font-weight: 950;
}

.sim-box-subsidy .price {
  font-size: 1.8rem;
  font-weight: 950;
}

.sim-box-net {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 6px 6px 0px #000;
  transform: rotate(-1deg);
}

.sim-box-net .label {
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sim-box-net .price {
  font-size: 2.2rem;
  font-weight: 950;
  color: #fff !important;
  margin-top: 5px;
}

.sim-box-hourly {
  background: #000;
  color: #fff;
  border-top: 6px solid var(--primary);
  margin-top: 10px;
}

.sim-box-hourly .label {
  font-size: 0.85rem;
  font-weight: 950;
  opacity: 0.9;
  color: #fff;
}

.sim-box-hourly .price {
  font-size: 2.2rem;
  font-weight: 950;
  color: var(--primary) !important;
  margin-top: 5px;
}

.sim-footer-note {
  background: #fff8e1;
  border: var(--border-thick);
  padding: 20px;
  margin-top: 40px;
  font-size: 0.85rem;
  border-radius: 12px;
  line-height: 1.6;
  font-weight: 700;
  color: #000;
}

.sim-footer-note .title {
  display: block;
  font-weight: 950;
  text-decoration: underline;
  margin-bottom: 10px;
}

.sim-footer-note ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.sim-footer-note li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
}

.sim-footer-note li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--accent-red);
}