/* ==========================================================
   Schoole Inc. — Corporate Site
   Concept: 静謐な品格（Quiet Authority）
   Ink Navy × Logo Gold × Warm Paper / Mincho Editorial
   ========================================================== */

:root {
  --ink: #0A1422;
  --ink-2: #0E1B2E;
  --paper: #F6F4EF;
  --paper-2: #EFECE3;
  --gold: #F1B91A;
  --gold-deep: #C49A1F;
  --text: #22252B;
  --text-soft: #5C5F66;
  --line: rgba(10, 20, 34, 0.14);
  --line-light: rgba(246, 244, 239, 0.22);
  --serif: 'Shippori Mincho', 'Yu Mincho', serif;
  --en: 'Marcellus', serif;
  --sans: 'Zen Kaku Gothic New', 'Yu Gothic', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--gold); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only { display: none; }
@media (max-width: 767px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}

/* ---------- 共通ラベル・見出し ---------- */

.en-label {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--gold-deep);
  margin-bottom: 22px;
}
.en-label.is-gold { color: var(--gold); }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 56px;
}
.section-title.is-white { color: var(--paper); }

.lead {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 2.3;
  letter-spacing: 0.04em;
}
.lead + .lead { margin-top: 1.2em; }

/* ---------- ヘッダー ---------- */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
#site-header.is-scrolled {
  background: rgba(10, 20, 34, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-light);
}

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

.brand-logo { height: 46px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-desktop a {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--paper);
  position: relative;
  padding: 6px 0;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-desktop a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-desktop .nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 9px 22px;
  transition: background 0.35s ease, color 0.35s ease;
}
.nav-desktop .nav-cta::after { display: none; }
.nav-desktop .nav-cta:hover { background: var(--gold); color: var(--ink); }

#menu-btn {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
#menu-btn span {
  position: absolute;
  left: 10px;
  width: 24px; height: 1px;
  background: var(--paper);
  transition: transform 0.35s ease, top 0.35s ease;
}
#menu-btn span:nth-child(1) { top: 18px; }
#menu-btn span:nth-child(2) { top: 26px; }
#menu-btn.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
#menu-btn.is-open span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

#mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--ink);
  border-top: 1px solid var(--line-light);
  padding: 18px 28px 30px;
}
#mobile-nav.is-open { display: flex; }
#mobile-nav a {
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.16em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(246, 244, 239, 0.08);
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  #menu-btn { display: block; }
  .brand-logo { height: 38px; }
  .header-inner { height: 64px; padding: 0 20px; }
}

/* ---------- ヒーロー ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 20, 34, 0.86) 0%, rgba(10, 20, 34, 0.62) 46%, rgba(10, 20, 34, 0.30) 100%),
    linear-gradient(to top, rgba(10, 20, 34, 0.55) 0%, rgba(10, 20, 34, 0) 36%);
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.hero-label {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 30px;
}
.hero-rule {
  width: 72px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 42px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.7;
  letter-spacing: 0.1em;
}
.hero-em { color: #fff; }
.hero-sub {
  margin-top: 40px;
  font-size: 15px;
  line-height: 2.4;
  letter-spacing: 0.08em;
  color: rgba(246, 244, 239, 0.82);
  font-weight: 300;
}
.hero-scroll {
  position: absolute;
  right: 38px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-scroll span {
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(246, 244, 239, 0.6);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 84px;
  background: rgba(246, 244, 239, 0.25);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: scrollDrop 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scrollDrop {
  0%   { top: -40%; }
  100% { top: 110%; }
}
@media (max-width: 767px) {
  .hero-scroll { right: 22px; }
  .hero-content { padding-top: 96px; }
  .hero h1 {
    font-size: 27px;
    letter-spacing: 0.06em;
    line-height: 1.95;
  }
  .hero-sub { font-size: 13.5px; letter-spacing: 0.05em; }
  .hero-label { font-size: 11px; letter-spacing: 0.4em; }
}

/* ヒーロー読み込み時のステージング */
.load-1, .load-2, .load-3, .load-4, .load-5 {
  opacity: 0;
  transform: translateY(26px);
  animation: loadUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.load-1 { animation-delay: 0.25s; }
.load-2 { animation-delay: 0.45s; }
.load-3 { animation-delay: 0.65s; }
.load-4 { animation-delay: 0.95s; }
.load-5 { animation-delay: 1.5s; }
@keyframes loadUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- スクロールリビール ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- PHILOSOPHY ---------- */

.philosophy {
  padding: 140px 0;
  background: var(--paper);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-text h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 40px;
}
.split-photo {
  position: relative;
}
.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split-photo::after {
  content: '';
  position: absolute;
  top: 22px; left: 22px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold);
  z-index: -1;
}
@media (max-width: 900px) {
  .philosophy { padding: 96px 0; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .split-photo { margin-right: 22px; }
}

/* ---------- SERVICES ---------- */

.services {
  padding: 140px 0 60px;
  background: var(--paper-2);
}
.service-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 88px;
}
.service-row.is-reverse { grid-template-columns: 1.15fr 0.85fr; }
.service-row.is-reverse .service-photo { order: 2; }
.service-row.is-reverse .service-body { order: 1; }

.service-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: 100%;
}
.service-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-photo:hover img { transform: scale(1.04); }

.service-no {
  font-family: var(--en);
  font-size: 84px;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-deep);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.85;
}
.service-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 24px;
}
.service-desc {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.service-list li {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--text);
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.service-list li:first-child { border-top: 1px solid var(--line); }
.service-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--gold-deep);
}
@media (max-width: 900px) {
  .services { padding: 96px 0 30px; }
  .service-row { grid-template-columns: 1fr; gap: 36px; padding-bottom: 72px; }
  .service-row.is-reverse .service-photo { order: 0; }
  .service-row.is-reverse .service-body { order: 1; }
}

/* ---------- APPROACH ---------- */

.approach {
  padding: 140px 0;
  background: var(--paper);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  position: relative;
  padding-top: 26px;
}
/* タイムラインの基線 */
.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--gold-deep) 0%, rgba(196, 154, 31, 0.25) 100%);
}
.step { position: relative; }
/* 基線上のダイヤ型ノード */
.step::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border: 1px solid var(--gold-deep);
  transform: rotate(45deg);
  z-index: 2;
}
/* ステップ間の矢羽 */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 23px;
  right: -23px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--gold-deep);
  border-right: 1px solid var(--gold-deep);
  transform: rotate(45deg);
  z-index: 2;
}
/* カードに半分かかる浮き数字 */
.step-no {
  font-family: var(--en);
  font-size: 88px;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-deep);
  line-height: 1;
  opacity: 0.9;
  position: relative;
  z-index: 3;
  margin: 24px 0 -40px 26px;
  pointer-events: none;
}
.step-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 64px 34px 40px;
  height: 100%;
  position: relative;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.55s ease;
}
/* カード右下の金コーナー */
.step-card::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 26px;
  height: 26px;
  border-right: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  opacity: 0.55;
  transition: opacity 0.55s ease, width 0.55s ease, height 0.55s ease;
}
.step:hover .step-card {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(10, 20, 34, 0.10);
  border-color: rgba(196, 154, 31, 0.45);
}
.step:hover .step-card::after {
  opacity: 1;
  width: 34px;
  height: 34px;
}
.step-en {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.step-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 18px;
}
.step-desc {
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}
@media (max-width: 900px) {
  .approach { padding: 96px 0; }
  .steps {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 0;
    padding-left: 22px;
  }
  /* モバイルは左の縦ライン */
  .steps::before {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(to bottom, var(--gold-deep) 0%, rgba(196, 154, 31, 0.25) 100%);
  }
  .step::before {
    top: 36px;
    left: -26px;
  }
  .step:not(:last-child)::after {
    top: auto;
    bottom: -30px;
    left: -25px;
    right: auto;
    transform: rotate(135deg);
  }
  .step-no { font-size: 68px; margin: 0 0 -30px 20px; }
  .step-card { padding: 48px 24px 34px; }
}

/* ---------- STATEMENT ---------- */

.statement {
  position: relative;
  padding: 170px 0;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}
.statement-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}
.statement .container { position: relative; }
.statement-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 0.14em;
  line-height: 2;
  margin-bottom: 26px;
}
.statement-sub {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(246, 244, 239, 0.72);
}
@media (max-width: 700px) {
  .statement { padding: 120px 0; }
}

/* ---------- COMPANY ---------- */

.company {
  padding: 140px 0;
  background: var(--paper-2);
}
.company-table {
  border-top: 1px solid var(--line);
  max-width: 860px;
}
.company-table > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 22px 8px;
}
.company-table dt {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.company-table dd {
  font-size: 14.5px;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}
@media (max-width: 700px) {
  .company { padding: 96px 0; }
  .company-table > div { grid-template-columns: 1fr; gap: 6px; padding: 18px 4px; }
}

/* ---------- CONTACT ---------- */

.contact {
  position: relative;
  padding: 150px 0;
  background: var(--ink-2);
  text-align: center;
}
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 70px;
  background: var(--gold);
}
.contact .en-label { margin-bottom: 26px; }
.contact .section-title { margin-bottom: 26px; }
.contact-lead {
  color: rgba(246, 244, 239, 0.7);
  font-size: 14.5px;
  letter-spacing: 0.08em;
  margin-bottom: 52px;
  font-weight: 300;
}
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.btn-gold, .btn-line {
  display: inline-block;
  min-width: 280px;
  padding: 19px 38px;
  font-size: 14px;
  letter-spacing: 0.16em;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: #fff; }
.btn-line {
  border: 1px solid rgba(246, 244, 239, 0.4);
  color: var(--paper);
}
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 700px) {
  .contact { padding: 110px 0; }
  .btn-gold, .btn-line { width: 100%; }
}

/* ---------- FOOTER ---------- */

.footer {
  background: var(--ink);
  padding: 44px 0;
  border-top: 1px solid var(--line-light);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-logo { height: 40px; width: auto; }
.footer p {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(246, 244, 239, 0.55);
}
@media (max-width: 700px) {
  .footer-inner { flex-direction: column; }
}
