/* ============================================
   凛学舎 - Rin Gakusha
   Black #111 + Red #C41E3A editorial design
   ============================================ */

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

:root {
  --bg: #FAFAFA;
  --surface: #fff;
  --surface2: #F5F5F5;
  --text: #111111;
  --text-light: #555555;
  --red: #C41E3A;
  --red-dark: #9B1830;
  --black: #111111;
  --font: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Meiryo', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ── Sample Banner ── */
.sample-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--red);
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 7px 16px;
  z-index: 99999;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 16px 0;
  transition: all .4s;
}

.header.scrolled {
  background: rgba(250,250,250,.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  padding: 12px 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0;
}

.logo-text {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 3px;
  color: var(--black);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color .3s;
  letter-spacing: 1px;
}

.nav a:hover {
  color: var(--red);
}

.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 10px 24px;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  transition: background .3s !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  position: relative;
  z-index: 10000;
}

.hamburger span {
  width: 28px;
  height: 1.5px;
  background: var(--black);
  transition: .4s;
  display: block;
}

.hamburger.active span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.hamburger.active span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: .4s;
    z-index: 9999;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { font-size: 1.1rem; letter-spacing: 2px; }
  .header-inner { padding: 0 20px; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 160px 40px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '凛';
  position: absolute;
  right: -5%;
  bottom: -10%;
  font-size: clamp(200px, 40vw, 500px);
  font-weight: 900;
  color: rgba(0,0,0,.03);
  line-height: 1;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-tagline {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  color: var(--red);
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp .8s .3s forwards;
}

.hero-title {
  margin-bottom: 32px;
}

.hero-title-line {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1.35;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(40px);
}

.hero-title-line:nth-child(1) { animation: splitReveal .8s .5s forwards; }
.hero-title-line:nth-child(2) { animation: splitReveal .8s .7s forwards; }

.hero-line {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 28px;
  transform: scaleX(0);
  animation: lineGrow .6s .9s forwards;
}

.hero-desc {
  font-size: clamp(.88rem, 1.2vw, 1rem);
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp .8s 1.1s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s 1.3s forwards;
}

@media (max-width: 768px) {
  .hero { padding: 140px 20px 80px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 700;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  letter-spacing: 1px;
  transition: all .3s;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,30,58,.25);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.btn-ghost:hover {
  background: var(--black);
  color: #fff;
}

.btn-full {
  width: 100%;
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--black);
  padding: 48px 0;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  display: inline;
}

.stat-unit {
  font-size: .9rem;
  color: var(--red);
  font-weight: 700;
  margin-left: 2px;
}

.stat-label {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
  letter-spacing: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}

@media (max-width: 600px) {
  .stats-inner { gap: 24px; }
  .stat-divider { display: none; }
  .stat-num { font-size: 2rem; }
}

/* ── Sections ── */
.section {
  padding: 110px 0;
}

.section-dark {
  background: var(--surface2);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-num {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 2px;
  opacity: .08;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--black);
  letter-spacing: 4px;
}

.section-redline {
  width: 40px;
  height: 3px;
  background: var(--red);
  margin: 16px auto 0;
}

.section-sub {
  font-size: .88rem;
  color: var(--text-light);
  margin-top: 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}

/* ── Philosophy ── */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

.philosophy-lead {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
  line-height: 1.8;
  margin-bottom: 28px;
  color: var(--black);
}

.philosophy-body {
  font-size: .92rem;
  color: var(--text-light);
  line-height: 2.2;
  margin-bottom: 20px;
}

.philosophy-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-card {
  padding: 28px;
  border-left: 3px solid var(--red);
  background: var(--surface);
}

.value-num {
  display: block;
  font-size: .75rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.value-card p {
  font-size: .84rem;
  color: var(--text-light);
  line-height: 1.9;
}

@media (max-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Quote Break ── */
.quote-break {
  background: var(--black);
  padding: 80px 0;
  text-align: center;
}

.quote-text {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 2;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.quote-text::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--red);
}

.quote-cite {
  display: block;
  font-style: normal;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin-top: 24px;
  letter-spacing: 3px;
}

/* ── Course Cards ── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  transition: all .4s;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
}

.course-header {
  padding: 32px 28px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.course-label {
  display: block;
  font-size: .7rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.course-header h3 {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.course-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--black);
}

.price-unit {
  font-size: .8rem;
  color: var(--text-light);
}

.course-body {
  padding: 28px;
}

.course-body p {
  font-size: .84rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 20px;
}

.course-features {
  list-style: none;
}

.course-features li {
  font-size: .82rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
  padding-left: 16px;
  position: relative;
}

.course-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1.5px;
  background: var(--red);
}

@media (max-width: 900px) {
  .course-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ── Results ── */
.results-showcase {
  margin-bottom: 40px;
}

.result-year {
  text-align: center;
  margin-bottom: 32px;
}

.result-year-label {
  display: inline-block;
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 6px;
}

.result-schools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.result-school {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.06);
  padding: 24px 20px;
  text-align: center;
  transition: all .3s;
}

.result-school:hover {
  border-color: var(--red);
}

.school-name {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.school-count {
  display: block;
  font-size: .8rem;
  color: var(--red);
  font-weight: 700;
}

.results-note {
  text-align: center;
  margin-bottom: 64px;
}

.results-note p {
  font-size: .78rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .result-schools {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Voices ── */
.voices-header {
  text-align: center;
  margin-bottom: 36px;
}

.voices-title {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--black);
  display: inline-block;
  position: relative;
}

.voices-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--red);
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.voice-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.06);
  padding: 32px;
  transition: all .3s;
}

.voice-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}

.voice-text {
  font-size: .86rem;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 20px;
  position: relative;
  padding-top: 20px;
}

.voice-text::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 0;
  font-size: 2.5rem;
  color: var(--red);
  opacity: .3;
  line-height: 1;
}

.voice-meta {
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 16px;
}

.voice-meta strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
}

.voice-meta span {
  font-size: .75rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .voices-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Director ── */
.director-block {
  max-width: 800px;
  margin: 0 auto;
}

.director-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.director-icon {
  width: 72px;
  height: 72px;
  background: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  flex-shrink: 0;
}

.director-info h3 {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.director-title {
  display: block;
  font-size: .8rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.director-career {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.director-career span {
  font-size: .75rem;
  color: var(--text-light);
  padding: 4px 12px;
  border: 1px solid rgba(0,0,0,.1);
}

.director-message p {
  font-size: .92rem;
  color: var(--text-light);
  line-height: 2.2;
  margin-bottom: 16px;
}

.director-message p:nth-child(2) {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
}

.director-message p:last-child {
  font-weight: 700;
  color: var(--red);
  margin-top: 24px;
}

/* ── Admission ── */
.admission-content {
  max-width: 800px;
  margin: 0 auto;
}

.admission-steps {
  margin-bottom: 48px;
}

.admission-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  align-items: flex-start;
}

.step-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--black);
  opacity: .1;
  line-height: 1;
  min-width: 56px;
  padding-top: 4px;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.step-content p {
  font-size: .86rem;
  color: var(--text-light);
  line-height: 1.9;
}

.admission-notice {
  background: var(--surface);
  border-left: 3px solid var(--red);
  padding: 32px;
}

.admission-notice h3 {
  font-size: .95rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.admission-notice p {
  font-size: .86rem;
  color: var(--text-light);
  line-height: 2;
}

/* ── FAQ ── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  transition: color .3s;
}

.faq-q:hover { color: var(--red); }

.faq-label {
  font-weight: 900;
  color: var(--red);
  font-size: 1rem;
  min-width: 28px;
  flex-shrink: 0;
}

.faq-label-a {
  color: var(--text-light);
}

.faq-q h3 {
  flex: 1;
  font-size: .92rem;
  font-weight: 700;
}

.faq-toggle {
  font-size: 1.3rem;
  color: var(--red);
  transition: transform .3s;
  flex-shrink: 0;
  font-weight: 300;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  display: flex;
  gap: 16px;
  padding: 0;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 22px;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-a p {
  font-size: .86rem;
  color: var(--text-light);
  line-height: 2;
}

/* ── Contact ── */
.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info-block {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.contact-tel {
  margin-bottom: 12px;
}

.contact-tel-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 3px;
  margin-right: 8px;
}

.contact-tel-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--black);
  letter-spacing: 2px;
}

.contact-hours p {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.8;
}

.contact-address {
  margin-top: 16px;
}

.contact-address p {
  font-size: .82rem;
  color: var(--text-light);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,.1);
  font-size: .88rem;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--red);
}

/* ── Footer ── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,.5);
  padding: 64px 0 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: .8rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.footer-address {
  font-size: .78rem;
  line-height: 1.8;
}

.footer-links h4 {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: .8rem;
  transition: color .3s;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 20px 40px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: .72rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .footer-bottom { padding: 20px 20px 0; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splitReveal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Counter animation */
.stat-num {
  transition: none;
}
