/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #fefefe;
}

a {
  color: #2b7a78;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #17bebb;
}

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

/* ===== Header / Navigation ===== */
.site-header {
  background: linear-gradient(135deg, #3aafa9, #2b7a78);
  color: #fff;
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.site-logo span {
  font-weight: 300;
  font-size: 0.85rem;
  margin-left: 0.5rem;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.nav-links a {
  color: #e0f7f5;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom: 2px solid #feffff;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #e0f7f5 0%, #f4f9f4 50%, #fff7e6 100%);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.hero h1 {
  font-size: 2.4rem;
  color: #2b7a78;
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: #e8a838;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 1.8rem;
  color: #2b7a78;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #e8a838;
  border-radius: 2px;
}

.section-title.center {
  text-align: center;
}

.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Phase Cards ===== */
.phase-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.phase-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  border-top: 5px solid transparent;
}

.phase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.13);
}

.phase-card.phase-r1 { border-top-color: #3aafa9; }
.phase-card.phase-r2 { border-top-color: #e8a838; }
.phase-card.phase-c1 { border-top-color: #e85d75; }
.phase-card.phase-c2 { border-top-color: #6c63ff; }

.phase-card .phase-icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
}

.phase-card h3 {
  font-size: 1.15rem;
  color: #2b7a78;
  margin-bottom: 0.5rem;
}

.phase-card p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.6;
}

/* ===== Content Blocks ===== */
.content-block {
  margin-bottom: 2.5rem;
}

.content-block p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #444;
}

.content-block h3 {
  font-size: 1.3rem;
  color: #2b7a78;
  margin-bottom: 0.6rem;
  margin-top: 1.5rem;
}

/* ===== Info Box ===== */
.info-box {
  background: #f0faf9;
  border-left: 5px solid #3aafa9;
  padding: 1.2rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
}

.info-box.warn {
  background: #fff8ec;
  border-left-color: #e8a838;
}

.info-box.note {
  background: #f3f0ff;
  border-left-color: #6c63ff;
}

/* ===== Chat Bubbles (Sample Phrases) ===== */
.chat-container {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 1rem 1.3rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
}

.chat-bubble.facilitator {
  background: #e0f7f5;
  color: #2b5f5e;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.facilitator::before {
  content: '🧑‍⚕️ ファシリテーター';
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2b7a78;
  margin-bottom: 0.3rem;
}

.chat-bubble.learner {
  background: #fff7e6;
  color: #6b5a2e;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.learner::before {
  content: '👨‍🎓 学習者';
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 0.3rem;
}

/* ===== Theory Pillars ===== */
.theory-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.pillar {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-left: 5px solid #3aafa9;
}

.pillar:nth-child(2) { border-left-color: #e8a838; }
.pillar:nth-child(3) { border-left-color: #e85d75; }

.pillar h3 {
  font-size: 1.1rem;
  color: #2b7a78;
  margin-bottom: 0.6rem;
}

.pillar p {
  font-size: 0.93rem;
  color: #555;
}

/* ===== Table ===== */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.styled-table th {
  background: #3aafa9;
  color: #fff;
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
}

.styled-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.styled-table tr:nth-child(even) {
  background: #f7fafa;
}

/* ===== Reference List ===== */
.ref-list {
  list-style: none;
  counter-reset: ref;
}

.ref-list li {
  counter-increment: ref;
  padding: 0.8rem 0 0.8rem 2.5rem;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
  color: #555;
  position: relative;
}

.ref-list li::before {
  content: counter(ref) '.';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #3aafa9;
}

/* ===== Footer ===== */
.site-footer {
  background: #2b7a78;
  color: #d0efed;
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  font-size: 0.88rem;
}

.site-footer a {
  color: #e0f7f5;
}

/* ===== CTA Button ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.25s, transform 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: #3aafa9;
  color: #fff;
}

.btn-primary:hover {
  background: #2b7a78;
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #e8a838;
  color: #fff;
}

.btn-secondary:hover {
  background: #d4952e;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Phase Detail Section ===== */
.phase-detail {
  margin-bottom: 3rem;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.phase-detail .phase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
}

.phase-badge.r1 { background: #3aafa9; }
.phase-badge.r2 { background: #e8a838; }
.phase-badge.c1 { background: #e85d75; }
.phase-badge.c2 { background: #6c63ff; }

.phase-detail h2 {
  font-size: 1.5rem;
  color: #333;
}

.phase-detail h4 {
  font-size: 1.05rem;
  color: #2b7a78;
  margin: 1.2rem 0 0.5rem;
}

.phase-detail p, .phase-detail li {
  font-size: 0.97rem;
  color: #444;
  margin-bottom: 0.6rem;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  padding: 1rem 0 0;
}

.breadcrumb a {
  color: #2b7a78;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2b7a78;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .phase-cards {
    grid-template-columns: 1fr;
  }

  .theory-pillars {
    grid-template-columns: 1fr;
  }

  .phase-detail {
    padding: 1.2rem;
  }

  .chat-bubble {
    max-width: 95%;
  }

  .container {
    padding: 1.5rem 1rem;
  }
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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