/* モデラボ — Discussion Moderation Courses */
:root {
  --red: #E53D1B;
  --navy: #121422;
  --charcoal: #262E3C;
  --slate: #4D4F59;
  --silver: #84929E;
  --light-silver: #B2B6C1;
  --off-white: #FCFCFD;
  --whisper: #F2F2F4;
  --white: #ffffff;
  --black: #000000;
  --font-body: "Avenir W01", "Avenir", "Nunito Sans", sans-serif;
  --font-heading: "Lora", serif;
  --font-ui: "Montserrat", sans-serif;
  --container: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.188rem;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── CONTAINER ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo svg { height: 46px; width: auto; }
.header-logo svg .logo-accent { fill: var(--red); }
.header-logo svg .logo-text { fill: var(--white); }

/* ── HAMBURGER ── */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-top: 2px;
}
.hamburger-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── OVERLAY MENU ── */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.menu-overlay-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 900px;
  width: 100%;
  padding: 0 24px;
}
.menu-col h3 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--silver);
  margin-bottom: 20px;
}
.menu-col nav a {
  display: block;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 700;
  transition: color 0.2s;
}
.menu-col nav a:hover { color: var(--red); }
.menu-col address {
  font-style: normal;
  color: var(--light-silver);
  line-height: 1.8;
  font-size: 0.95rem;
}
.menu-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 1.5rem;
}
.menu-social { display: flex; gap: 16px; margin-top: 16px; }
.menu-social a { color: var(--light-silver); font-size: 1.2rem; transition: color 0.2s; }
.menu-social a:hover { color: var(--red); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,20,34,0.96) 55%, rgba(18,20,34,0.6) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px 0;
  max-width: 620px;
  margin-left: auto;
  padding-right: 48px;
}
.hero-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 3.5vw + 1rem, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--red); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--light-silver);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.75;
}
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #c7320f; }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.hero-image-col {
  position: relative;
  z-index: 2;
  padding: 120px 48px 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-col img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

/* ── SECTION BASE ── */
section { padding: 96px 0; }
.section-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.5rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-title mark {
  background: none;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(90deg, var(--red) 0%, #ff6b4a 100%);
  color: var(--red);
}
.section-lead {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 48px;
}
.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ── FLIP CARDS (about) ── */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.flip-card { perspective: 1000px; height: 240px; }
.flip-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.flip-front {
  background: var(--whisper);
  border: 1px solid #e8e8ec;
}
.flip-front i { font-size: 2.2rem; color: var(--red); margin-bottom: 16px; }
.flip-front h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.flip-back {
  background: var(--navy);
  transform: rotateY(180deg);
}
.flip-back h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.flip-back p { font-size: 0.88rem; color: var(--light-silver); line-height: 1.6; }

/* ── TESTIMONIAL ── */
.testimonial-section { background: var(--whisper); }
.testimonial-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.quote-icon { font-size: 3rem; color: var(--red); margin-bottom: 24px; }
.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--charcoal);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 28px;
}
.testimonial-author .name { font-weight: 700; color: var(--navy); display: block; }
.testimonial-author .org {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--silver);
}

/* ── COURSES / HOVER BOXES ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.hover-box {
  background: var(--whisper);
  border: 1px solid #e8e8ec;
  border-radius: 8px;
  padding: 36px 28px;
  transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
  cursor: default;
}
.hover-box:hover {
  background: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(18,20,34,0.2);
}
.hover-box i { font-size: 2rem; color: var(--red); margin-bottom: 16px; display: block; }
.hover-box h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; transition: color 0.3s; }
.hover-box:hover h3 { color: var(--white); }
.hover-box hr { border: none; border-top: 2px solid var(--red); width: 40px; margin-bottom: 14px; }
.hover-box p { font-size: 0.9rem; color: var(--slate); line-height: 1.6; transition: color 0.3s; }
.hover-box:hover p { color: var(--light-silver); }
.hover-box ul { font-size: 0.85rem; color: var(--slate); transition: color 0.3s; }
.hover-box:hover ul { color: var(--light-silver); }
.hover-box ul li { padding: 4px 0; }
.hover-box ul li::before { content: '— '; color: var(--red); }

/* ── LOGO / STATS STRIP ── */
.stats-strip { background: var(--navy); padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--red);
  display: block;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--light-silver);
  margin-top: 6px;
}

/* ── MEDIA / PORTFOLIO ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.portfolio-item { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4/3; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,20,34,0.7);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--red);
  padding: 72px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.2rem);
  color: var(--white);
  font-weight: 900;
  margin-bottom: 28px;
  max-width: 700px;
  margin-left: auto; margin-right: auto;
  line-height: 1.3;
}
.cta-banner .btn-outline { border-color: var(--white); color: var(--white); }
.cta-banner .btn-outline:hover { background: var(--white); color: var(--red); }

/* ── FINAL CTA SPLIT ── */
.split-cta { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.split-cta-content {
  background: var(--navy);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-cta-content h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.25;
}
.split-cta-content h2 .accent { color: var(--red); }
.split-cta-content p { color: var(--light-silver); margin-bottom: 32px; line-height: 1.75; }
.split-cta-image { position: relative; overflow: hidden; }
.split-cta-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo svg { height: 40px; width: auto; margin-bottom: 20px; }
.footer-logo svg .logo-accent { fill: var(--red); }
.footer-logo svg .logo-text { fill: var(--white); }
.footer-desc { font-size: 0.95rem; color: var(--silver); line-height: 1.75; max-width: 380px; }
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--silver);
  margin-bottom: 18px;
}
.footer-col nav a {
  display: block;
  color: var(--light-silver);
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col nav a:hover { color: var(--red); }
.footer-contact { font-size: 0.9rem; color: var(--light-silver); line-height: 2; }
.footer-contact a:hover { color: var(--red); transition: color 0.2s; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.footer-copy { font-size: 0.85rem; color: var(--silver); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--silver); font-size: 1rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--red); }

/* ── FORM ── */
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--slate);
  margin-bottom: 8px;
  font-weight: 700;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e0e0e6;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--silver); margin-top: 8px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 140px 0 72px;
  text-align: center;
}
.page-hero .section-label { justify-content: center; display: block; }
.page-hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-top: 12px;
}

/* ── INNER CONTENT ── */
.content-section { padding: 80px 0; }
.content-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 14px;
}
.content-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 24px 0 10px;
}
.content-section p { color: var(--slate); margin-bottom: 18px; line-height: 1.8; }
.content-section ul { margin: 14px 0 18px 20px; list-style: disc; }
.content-section ul li { color: var(--slate); margin-bottom: 8px; line-height: 1.7; }
.prose { max-width: 820px; }

/* ── CONTACT INFO BOX ── */
.contact-info-box {
  background: var(--whisper);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  padding: 32px 36px;
  margin-bottom: 48px;
}
.contact-info-box h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.info-line { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; color: var(--slate); font-size: 0.95rem; }
.info-line i { color: var(--red); margin-top: 3px; width: 16px; flex-shrink: 0; }

/* ── ABOUT SPLIT ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-split img { border-radius: 8px; box-shadow: 0 16px 48px rgba(0,0,0,0.12); }

/* ── FAQ ── */
.faq-list { margin-top: 40px; }
.faq-item {
  border-bottom: 1px solid var(--whisper);
  padding: 20px 0;
}
.faq-q {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q i { color: var(--red); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  color: var(--slate);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
}
.faq-item.open .faq-a { max-height: 300px; padding-top: 12px; }

/* ── COOKIES GDPR ── */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--navy);
  color: var(--light-silver);
  padding: 20px 0;
  border-top: 3px solid var(--red);
  display: none;
}
.cookie-bar.show { display: block; }
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text { font-size: 0.9rem; line-height: 1.6; flex: 1; min-width: 260px; }
.cookie-text a { color: var(--red); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept { background: var(--red); color: var(--white); padding: 10px 24px; border: none; border-radius: 4px; font-family: var(--font-ui); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.btn-cookie-accept:hover { background: #c7320f; }
.btn-cookie-decline { background: transparent; color: var(--silver); padding: 10px 16px; border: 1px solid var(--silver); border-radius: 4px; font-family: var(--font-ui); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--silver);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--silver); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--red); }

/* ── SUCCESS / ERROR ── */
.form-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: none;
}
.form-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: none;
}

/* ── UTILITIES ── */
.bg-whisper { background: var(--whisper); }
.bg-navy { background: var(--navy); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image-col { display: none; }
  .hero-content { padding-right: 0; margin-left: 0; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .split-cta { grid-template-columns: 1fr; }
  .split-cta-image { min-height: 320px; }
  .menu-overlay-inner { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .menu-overlay-inner { grid-template-columns: 1fr; }
  .menu-col:nth-child(3) { display: none; }
  .split-cta-content { padding: 48px 24px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-content { padding: 100px 0 60px; }
  .btn-group { flex-direction: column; }
  .btn { justify-content: center; }
  .cookie-inner { flex-direction: column; }
  .footer-bottom { align-items: flex-start; }
}
