/* ============================================================
   CSS Variables & Reset
   ============================================================ */
:root {
  --bg:          #E0F2F1;
  --bg-dark:     #B2DFDB;
  --primary:     #00796B;
  --primary-dk:  #004D40;
  --accent:      #FF7043;
  --accent-hov:  #E64A19;
  --white:       #ffffff;
  --off-white:   #FAFAFA;
  --light-gray:  #F5F7F6;
  --text:        #2d3748;
  --text-light:  #718096;
  --border:      #e2e8f0;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
  --shadow:      0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 30px rgba(0,0,0,0.14);
  --radius:      16px;
  --radius-sm:   8px;
  --transition:  0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 112.5%; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.85;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ============================================================
   Typography
   ============================================================ */
h1 { font-size: clamp(2rem, 5vw, 3.4rem);     font-weight: 700; line-height: 1.35; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1.4;  }
h3 { font-size: clamp(1.1rem, 2.6vw, 1.4rem);  font-weight: 700; line-height: 1.5;  }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.sp-br { display: none; }

.section-title {
  color: var(--primary-dk);
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-lead {
  color: var(--text-light);
  margin-top: 14px;
  font-size: 0.95rem;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);     }
}

@keyframes ecgDraw {
  to { stroke-dashoffset: 0; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Header
   ============================================================ */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
  width: 100%;
  max-width: none;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  gap: 4px;
}

nav ul li a {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

nav ul li a:hover {
  background: var(--bg);
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   Hero / Key Visual
   ============================================================ */
.hero {
  width: 100%;
  aspect-ratio: 1920 / 750;
  background: linear-gradient(135deg, #33a896 0%, #42bfac 55%, #6fcec0 100%);
  background-image: url('../img/img-mv-pc.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-dots {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 64px 80px 80px 16px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  flex: 1;
  color: var(--white);
  animation: fadeInUp 0.9s ease 0.15s both;
}

/* Hero badge + title layout */
.hero-title-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hero-badge {
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--primary-dk);
  border: 3px solid rgba(255,255,255,0.55);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  margin-top: -70px;
  position: relative;
  flex-shrink: 0;
}

/* 矢印：右下向き(↘)、バッジ右下に重ねる */
.hero-badge::after {
  content: '';
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 0;
  height: 0;
  border-bottom: 26px solid var(--white);
  border-left: 26px solid transparent;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

.hero-badge span {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.hero-title-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
}

.hero-title-body .hero-subtitle-line,
.hero-title-body h1 {
  display: block;
  width: 100%;
}

.hero-subtitle-line {
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: none;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero-text h1 {
  color: #1a1a1a;
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: none;
}

.hero-visual {
  flex: 0 0 320px;
  width: 320px;
  animation: fadeInUp 0.9s ease 0.35s both;
}

.hero-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-placeholder-text {
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  text-align: center;
  padding: 12px;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ECG wave at bottom */
.ecg-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  line-height: 0;
}

.ecg-wave svg {
  width: 100%;
  height: 64px;
}

.ecg-path {
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: ecgDraw 3.2s linear 0.6s forwards;
}

/* ============================================================
   Lead / Intro Band
   ============================================================ */
.lead-band {
  background: #78b379;
  padding: 40px 0;
}

.lead-band p {
  color: rgba(255,255,255,0.97);
  font-size: 1.02rem;
  font-weight: 500;
  text-align: center;
  line-height: 2.1;
  max-width: 820px;
  margin: 0 auto;
}

/* ============================================================
   Seminar Cards
   ============================================================ */
.seminar-section { background: var(--bg); }

.seminar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.seminar-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.seminar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Thumbnail */
.card-thumb {
  width: 100%;
  overflow: hidden;
}

.card-thumb a {
  display: block;
  width: 100%;
}

.card-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.card-thumb a:hover img {
  transform: scale(1.03);
}

/* Body */
.card-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-teal    { background: var(--primary);    color: var(--white); }
.badge-orange  { background: var(--accent);     color: var(--white); }
.badge-outline { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }

.card-body h3 {
  color: var(--primary-dk);
  margin-bottom: 6px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.card-subtitle {
  font-size: 0.83rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.5;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 16px;
  flex: 1;
}

.card-target {
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--light-gray);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.card-target strong {
  display: block;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 3px;
}

.btn-cta {
  display: block;
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  padding: 14px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.06em;
  transition: filter var(--transition), transform var(--transition);
  box-shadow: 0 4px 12px rgba(0,121,107,0.3);
}

.btn-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* ============================================================
   Features
   ============================================================ */
.features-section { background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.features-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted, #888);
  text-align: right;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 44px 28px 36px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary-dk), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 16px rgba(0,121,107,0.28);
}

.feature-icon svg { width: 32px; height: 32px; }

.feature-card h3 {
  color: var(--primary-dk);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.85;
}

/* ============================================================
   Voices / Testimonials
   ============================================================ */
.voices-section { background: var(--bg); }

.voices-grid { display: grid; gap: 22px; }

.voice-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.voice-avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--bg-dark);
}

.voice-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.voice-bubble {
  flex: 1;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.voice-bubble::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -10px;
  border: 5px solid transparent;
  border-right-color: var(--white);
}

.voice-bubble h3 a {
  color: inherit;
  text-decoration: underline;
}
.voice-bubble h3 a:hover {
  opacity: 0.75;
}

.voice-bubble h3 {
  font-size: 0.83rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.voice-bubble p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.85;
}

.voice-meta {
  font-size: 0.76rem;
  color: var(--text-light);
  margin-top: 10px;
  text-align: right;
  font-style: italic;
}

/* ============================================================
   Knowledge Section
   ============================================================ */
.knowledge-section { background: var(--white); }

.knowledge-block {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 28px;
}

.knowledge-block h3 {
  color: var(--primary-dk);
  border-left: 4px solid var(--primary);
  padding-left: 14px;
  margin-bottom: 18px;
}

.knowledge-block p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 14px;
}

.knowledge-block dl { display: flex; flex-direction: column; gap: 14px; }

.knowledge-block dt {
  font-weight: 700;
  color: var(--primary-dk);
  font-size: 0.92rem;
}

.knowledge-block dd {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 14px;
  border-left: 2px solid var(--bg-dark);
  margin-top: 4px;
  line-height: 1.85;
}

.knowledge-note {
  margin-top: 16px;
  background: rgba(0,121,107,0.08);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--primary-dk);
  font-weight: 500;
}

/* ============================================================
   Certification / QA Section
   ============================================================ */
.certification-section { background: var(--bg); }

.qa-block {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.qa-q {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 28px;
  background: var(--primary-dk);
}

.qa-lbl-q {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  flex: 0 0 auto;
  line-height: 1.4;
}

.qa-q h3 {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

.qa-a {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px;
}

.qa-lbl-a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  flex: 0 0 auto;
  line-height: 1.4;
}

.qa-a-body p {
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 10px;
}

.qa-a-body p:last-child { margin-bottom: 0; }

.qa-source {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
}
.qa-source a {
  color: var(--primary);
  text-decoration: underline;
}
.qa-source a:hover {
  opacity: 0.75;
}

/* Table */
.table-scroll-outer {
  position: relative;       /* スクロールヒント用の起点 */
}

/* スマホ時：右端にフェードして「続きあり」を示す */
.table-scroll-outer::after {
  content: '';
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.85));
  pointer-events: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  z-index: 1;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOS慣性スクロール */
  margin-top: 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 520px;  /* スマホ幅より大きくしてスライドを強制 */
}

@media (max-width: 768px) {
  /* フレックス子要素がはみ出さないよう min-width:0 を指定 */
  .qa-a-body {
    min-width: 0;
    overflow: hidden;
  }

  /* スクロールヒントのグラデーションを表示 */
  .table-scroll-outer::after {
    display: block;
  }

  /* テーブル内テキストを少し小さくして見やすく */
  thead th,
  tbody td {
    padding: 11px 12px;
    font-size: 0.82rem;
  }
}

caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dk);
}

thead th {
  background: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

tbody td {
  padding: 13px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

tbody tr:nth-child(even) { background: var(--light-gray); }

tbody tr:last-child td {
  background: #E8F5E9;
  font-weight: 700;
  color: var(--primary-dk);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  border-bottom: none;
}

.table-note {
  font-size: 0.77rem;
  color: var(--text-light);
  margin-top: 10px;
}
.table-note a {
  color: var(--primary);
  text-decoration: underline;
}
.table-note a:hover {
  opacity: 0.75;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--primary-dk);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 44px 24px;
  font-size: 0.82rem;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

/* ============================================================
   Responsive — 768px breakpoint
   ============================================================ */
@media (max-width: 768px) {
  .sp-br { display: inline; }

  .hero {
    background-image: url('../img/img-mv-sp.jpg');
    aspect-ratio: 750 / 1080;
    align-items: flex-start;
  }

  .header-inner { height: auto; padding: 12px 16px; flex-wrap: wrap; }

  .hamburger { display: flex; }

  nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }

  nav.open { display: block; }

  nav ul { flex-direction: column; gap: 2px; padding: 8px 0; }

  nav ul li a { display: block; padding: 10px 16px; border-radius: var(--radius-sm); }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 4px 24px 64px;
    gap: 12px;
  }

  .hero-text {
    width: 100%;
  }

  .hero-visual { width: 180px; }

  /* スマホ版：バッジを左端・タイトルをその下でセンタリング */
  .hero-title-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .hero-badge {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    margin-top: 0;
    margin-right: 0;
    padding: 10px;
  }

  /* スマホ版：矢印を右下向き(↘) */
  .hero-badge::after {
    top: auto;
    left: auto;
    transform: none;
    bottom: 7px;
    right: 7px;
    border-top: none;
    border-right: none;
    border-bottom: 10px solid var(--white);
    border-left: 10px solid transparent;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
  }

  .hero-title-body {
    width: 100%;
    text-align: center;
  }

  .hero-badge span { font-size: 0.75rem; }

  .seminar-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }

  .voice-item { flex-direction: column; }

  .voice-bubble { border-radius: var(--radius); }

  .voice-bubble::before { display: none; }

  .knowledge-block { padding: 28px 20px; }

  .qa-q, .qa-a { padding: 18px 20px; }

  .section { padding: 64px 0; }
}

@media (max-width: 768px) {
  .hero-text h1       { white-space: normal; }
  .hero-subtitle-line { white-space: normal; }
}

@media (max-width: 480px) {
  .hero-visual { width: 140px; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-subtitle-line { font-size: 2.2rem; }
  .hero-badge { flex: 0 0 74px; width: 74px; height: 74px; padding: 8px; }
  .hero-badge span { font-size: 0.65rem; }
  .card-body { padding: 18px 20px 22px; }
}
