:root {
  --bg: #f7f9fc;
  --panel: #ffffff;
  --panel-2: #f1f4f9;
  --line: rgba(0, 0, 0, 0.08);
  --text: #1a2433;
  --muted: #5b6b82;
  --accent: #3b6df6;
  --accent-2: #6f93ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

/* =========================
   Header
========================= */

.topbar {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
}

/* =========================
   Logo
========================= */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  height: 28px;
  width: auto;
  display: block;
}

.company-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand:hover .company-name {
  color: var(--accent);
}

@media (max-width: 720px) {

  .logo-icon {
    height: 24px;
  }

  .company-name {
    font-size: 1.1rem;
  }

}

/* =========================
   Navigation
========================= */

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: #ffffff;
  background: var(--accent);
}

.hero {
  padding: 84px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: stretch;
}

.page-hero {
  padding: 74px 0 42px;
}

.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.2;
}

.page-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--accent);
  border: 1px solid rgba(59, 109, 246, 0.16);
  border-radius: 999px;
  background: rgba(59, 109, 246, 0.05);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

.hero h1 span {
  color: var(--accent);
}

.lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
}

.lead strong {
  color: var(--text);
  font-weight: 700;
}

.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(59, 109, 246, 0.18);
}

.button.secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
}

.hero-card,
.card,
.contact-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-card,
.card {
  padding: 26px;
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.metric {
  display: flex;
  align-items: end;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.metric strong {
  font-size: 2.4rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

section {
  padding: 34px 0;
}

.section-emphasis {
  background:
    linear-gradient(180deg, rgba(59, 109, 246, 0.04), rgba(59, 109, 246, 0));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.25;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 820px;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 20px;
}

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

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

.card h3,
.contact-box h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.card p,
.card li,
.table td,
.contact-box p {
  color: var(--muted);
}

.problem-card {
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  opacity: 0.75;
}

.problem-card h3 {
  padding-left: 4px;
}

.service-card {
  min-height: 100%;
}

.service-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  background: rgba(59, 109, 246, 0.08);
  border: 1px solid rgba(59, 109, 246, 0.14);
  font-weight: 700;
}

.center-action {
  margin-top: 28px;
  text-align: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(59, 109, 246, 0.08);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flow-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
}

.flow-item span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.flow-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.flow-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.table-wrap {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  width: 180px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--panel-2);
}

tr:last-child th,
tr:last-child td {
  border-bottom: none;
}

.price-table th {
  width: auto;
}

.price-table thead th {
  color: var(--text);
  background: var(--panel-2);
}

.price-table td:first-child {
  font-weight: 700;
  color: var(--text);
}

.price-table td:nth-child(2) {
  white-space: nowrap;
  color: var(--accent);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-category {
  margin-bottom: 56px;
}

.faq-category h2 {
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 5px solid var(--accent);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.35;
}

.faq-category .faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

/* =========================
   Events
========================= */

.events-section {
  padding: 42px 0;
  background:
    linear-gradient(
      180deg,
      rgba(59, 109, 246, 0.04),
      rgba(59, 109, 246, 0)
    );
}

.events-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.events-scroll::-webkit-scrollbar {
  height: 8px;
}

.events-scroll::-webkit-scrollbar-thumb {
  background: rgba(59, 109, 246, 0.35);
  border-radius: 999px;
}

.events-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
}

.events-scroll .event-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
}

.events-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.event-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.event-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--panel-2);
  overflow: hidden;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-body {
  padding: 22px;
}

.event-category {
  display: inline-block;
  padding: 5px 12px;
  margin: 0 0 12px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.event-date {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.event-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.event-place {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.event-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.event-description {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.event-link {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
}

.events-message {
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

.cycle-section {
  padding: 42px 0;
}

.cycle-image-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

.cycle-image {
  display: inline-block;
  width: 60%;
  max-width: 900px;
  height: auto;
  border-radius: 16px;
}

.contact-box {
  padding: 28px;
}

.contact-section {
  padding-bottom: 70px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.contact-grid h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
}

.contact-grid p {
  color: var(--muted);
}

.contact-check {
  margin-top: 20px;
}

.contact-action {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.contact-action .button {
  width: 100%;
  margin-top: 10px;
}

.notice {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* 過去セミナーのカード背景 */
#past-events .event-card {
  background: #f3f4f6 !important;
  border-color: #d1d5db;
}

/* 画像下の本文エリアも同じグレーにする */
#past-events .event-body {
  background: #f3f4f6 !important;
}

/* 画像がない場合の余白部分対策 */
#past-events .event-image-wrap {
  background: #e5e7eb !important;
}

/* =========================
   Footer
========================= */

.footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}

.footer-container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}

.footer-brand {
  text-align: left;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-logo-icon {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-company-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}

.footer-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.footer-column h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-column a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 720px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-logo-icon {
    height: 24px;
  }

  .footer-company-name {
    font-size: 1.1rem;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .flow-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cycle-image {
    width: 85%;
  }

  .events-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .hero {
    padding: 64px 0 40px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-card,
  .card,
  .contact-box,
  .flow-item,
  .contact-action {
    padding: 22px;
  }

  .events-scroll .event-card {
    flex-basis: 280px;
  }

  th,
  td {
    display: block;
    width: 100%;
  }

  th {
    border-bottom: none;
    padding-bottom: 6px;
  }

  td {
    padding-top: 0;
  }

  .price-table thead {
    display: none;
  }

  .price-table tr {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }

  .price-table tr:last-child {
    border-bottom: none;
  }

  .price-table td {
    display: block;
    border-bottom: none;
    padding: 6px 16px;
  }

  .price-table td:first-child {
    font-size: 1rem;
  }

  .cycle-image {
    width: 95%;
    max-width: none;
    border-radius: 12px;
  }

  .topbar-inner {
    gap: 12px;
    padding: 10px 0;
  }

  .brand {
    gap: 8px;
  }

  .logo-icon {
    height: 22px;
  }
}

/* =========================
   AI Chat - LINE Style
========================= */

.ai-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
}

.ai-chat-button {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

.ai-chat-window {
  display: none;
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #b7d7f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}


.ai-chat-window.open {
  display: block;
}

.ai-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2563eb;
  color: #ffffff;
  padding: 12px 14px;
  font-weight: 700;
}

.ai-chat-close {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.ai-chat-messages {
  height: 320px;
  overflow-y: auto;
  padding: 14px;
}

.user-message {
  max-width: 78%;
  padding: 10px 13px;
  margin-bottom: 10px;
  border-radius: 18px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.user-message {
  background: #ffffff;
  color: #1a2433;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 18px;
  border-top-right-radius: 4px;
  max-width: 80%;
  border: 1px solid #dbe3f0;
  margin-left: auto;
}

.ai-chat-form {
  display: flex;
  background: #ffffff;
  padding: 8px;
  gap: 8px;
}

.ai-chat-form input {
  flex: 1;
  background: #ffffff;
  color: #1a2433;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  padding: 12px 16px;
}

.ai-chat-form input::placeholder {
  color: #94a3b8;
}

.ai-chat-form button {
  border: none;
  background: #2563eb;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.ai-contact-button {
  display: inline-block;
  padding: 10px 16px;
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.ai-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.ai-avatar {
  flex-shrink: 0;
}

.ai-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dbe3f0;
  object-fit: contain;
  padding: 4px;
}

.ai-message {
  background: #ffffff;
  color: #1a2433;
  padding: 12px;
  border-radius: 18px;
  border-top-left-radius: 4px;
  max-width: 80%;
  border: 1px solid #dbe3f0;
  line-height: 1.7;
}
