/* ==========================================================================
   Lyceum Japan — corporate site
   色はロゴ実測値: 炭 #3E3A39 / マゼンタ #D5206D
   ========================================================================== */

:root {
  --ink:        #3E3A39;   /* ロゴ主色（実測） */
  --ink-2:      #6E6B6B;
  --ink-3:      #9E9C9C;
  --accent:     #D5206D;   /* ロゴの実の色（実測） */
  --accent-dk:  #A8164F;
  --paper:      #FFFFFF;
  --paper-2:    #FAF8F7;
  --paper-3:    #F2EFED;
  --line:       #E2DDDA;

  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans:  "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic",
           "Noto Sans JP", system-ui, sans-serif;

  --wrap: 1120px;
  --head: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--head); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 12px 20px; z-index: 999;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--head);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.95); }

.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 13.5px; letter-spacing: .04em; text-decoration: none;
  color: var(--ink); position: relative; padding-block: 6px;
  white-space: nowrap;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 10px 22px !important; border-radius: 2px;
  transition: background .25s;
}
.nav-cta:hover { background: var(--accent); }

.burger { display: none; }

/* ---------------------------------------------------------------- drawer */
.drawer {
  position: fixed; inset: var(--head) 0 0 0; z-index: 99;
  background: var(--paper); padding: 20px 24px 40px;
  overflow-y: auto;
}
.drawer nav { display: flex; flex-direction: column; }
.drawer a {
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: 16px; letter-spacing: .04em;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--head) + 48px) 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 78% 12%, rgba(213,32,109,.055), transparent 62%),
    radial-gradient(900px 600px at 6% 92%, rgba(62,58,57,.06), transparent 60%),
    var(--paper-2);
}
.hero-inner { position: relative; text-align: center; }

.hero-logo {
  width: min(280px, 58vw); margin: 0 auto 34px;
  animation: rise .9s cubic-bezier(.2,.7,.3,1) both;
}
.hero-en {
  margin: 0 0 18px; font-size: 11.5px; letter-spacing: .3em;
  color: var(--ink-3); font-weight: 500;
  animation: rise .9s .1s cubic-bezier(.2,.7,.3,1) both;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(26px, 5.2vw, 46px);
  line-height: 1.62; letter-spacing: .04em; font-weight: 600;
  margin: 0 0 28px;
  animation: rise .9s .18s cubic-bezier(.2,.7,.3,1) both;
}
.hero-lead {
  margin: 0 auto 40px; max-width: 34em;
  font-size: 15px; color: var(--ink-2); line-height: 2.1;
  animation: rise .9s .26s cubic-bezier(.2,.7,.3,1) both;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: rise .9s .34s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-block; padding: 15px 36px; border-radius: 2px;
  font-size: 14px; letter-spacing: .08em; text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 1px; height: 52px; background: var(--line); overflow: hidden;
}
.scroll-hint span {
  display: block; width: 100%; height: 22px; background: var(--accent);
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop { 0% { transform: translateY(-24px); } 100% { transform: translateY(54px); } }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(72px, 11vw, 132px); }
.section-alt  { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #fff; }

.sec-en {
  margin: 0 0 10px; font-size: 11px; letter-spacing: .3em;
  color: var(--accent); font-weight: 600;
}
.sec-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(24px, 3.6vw, 34px); letter-spacing: .06em;
  margin: 0 0 20px; line-height: 1.5;
}
.rule { width: 48px; height: 2px; background: var(--ink); margin-bottom: 44px; }
.rule-light { background: rgba(255,255,255,.5); }
.sec-lead { margin: -20px 0 48px; color: var(--ink-2); font-size: 15px; max-width: 40em; }
.sub-title {
  font-family: var(--serif); font-size: 19px; letter-spacing: .06em;
  margin: 64px 0 22px; font-weight: 600;
}

/* ---------------------------------------------------------------- about */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px;
  align-items: start; margin-bottom: 72px;
}
.about-lead .big {
  font-family: var(--serif); font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.85; letter-spacing: .04em; margin: 0; font-weight: 600;
}
.about-lead em { font-style: normal; color: var(--accent); }
.about-body p { margin: 0 0 20px; color: var(--ink-2); font-size: 15px; }
.about-body .mark {
  color: var(--ink); background: var(--paper-3);
  border-left: 3px solid var(--accent); padding: 22px 26px; margin-top: 30px;
}
.about-body strong { font-weight: 600; }

.pillars {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--line); border: 1px solid var(--line);
}
.pillars li { background: var(--paper); padding: 40px 32px; }
.pillar-no {
  display: block; font-size: 11px; letter-spacing: .24em;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.pillars h3 {
  font-family: var(--serif); font-size: 19px; letter-spacing: .06em;
  margin: 0 0 14px; font-weight: 600;
}
.pillars p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.95; }

/* ---------------------------------------------------------------- business */
.biz-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--line); border: 1px solid var(--line);
}
.biz-list li {
  background: var(--paper); padding: 34px 32px;
  transition: background .3s;
}
.biz-list li:hover { background: #fff; }
.biz-en {
  margin: 0 0 8px; font-size: 10.5px; letter-spacing: .2em;
  color: var(--ink-3); font-weight: 600; text-transform: uppercase;
}
.biz-list h3 {
  font-family: var(--serif); font-size: 19px; letter-spacing: .05em;
  margin: 0 0 12px; font-weight: 600;
  padding-left: 14px; border-left: 2px solid var(--accent);
}
.biz-list p:last-child { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.95; }

/* ---------------------------------------------------------------- works */
.works-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.works-grid li {
  border: 1px solid var(--line); border-radius: 2px;
  padding: 26px 24px; background: var(--paper);
  display: flex; flex-direction: column; gap: 8px;
}
.w-cat {
  font-family: var(--serif); font-size: 16px; letter-spacing: .05em; font-weight: 600;
}
.w-note { font-size: 13px; color: var(--ink-3); }
.works-foot { margin-top: 28px; font-size: 13px; color: var(--ink-3); }

/* ---------------------------------------------------------------- company */
.company-table { margin: 0; border-top: 1px solid var(--line); }
.company-table > div {
  display: grid; grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
}
.company-table dt {
  padding: 22px 0; font-size: 14px; font-weight: 600; letter-spacing: .06em;
}
.company-table dd { padding: 22px 0; margin: 0; font-size: 15px; color: var(--ink-2); }
.company-table .en { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }

.group-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.group-list li {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  padding: 26px 28px; background: var(--paper);
}
.group-list h4 {
  font-family: var(--serif); font-size: 17px; letter-spacing: .05em;
  margin: 0 0 8px; font-weight: 600;
}
.group-list p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------- contact */
.contact-inner { text-align: center; }
.contact-inner .rule { margin-inline: auto; }
.contact-lead { margin: 0 0 40px; color: rgba(255,255,255,.78); font-size: 15px; }
.mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 34px); letter-spacing: .05em;
  text-decoration: none; color: #fff;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.35);
  transition: border-color .3s, color .3s;
}
.mail:hover { color: #fff; border-bottom-color: var(--accent); }
.contact-note {
  margin: 44px 0 0; font-size: 13px; color: rgba(255,255,255,.5); line-height: 2;
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--paper-2); padding-block: 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 40px; width: auto; opacity: .85; }
.copy { margin: 0; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease-out, transform .45s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
.sp { display: none; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillars, .biz-list { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .group-list { grid-template-columns: 1fr; }
  .pc { display: none; }
}

@media (max-width: 720px) {
  :root { --head: 64px; }
  .wrap { padding-inline: 20px; }
  .nav { display: none; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px;
    background: none; border: 0; cursor: pointer;
  }
  .burger span {
    display: block; height: 1.5px; background: var(--ink);
    transition: transform .3s, opacity .2s;
  }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .brand img { height: 34px; }

  .works-grid { grid-template-columns: 1fr; }
  .company-table > div { grid-template-columns: 1fr; }
  .company-table dt { padding-bottom: 0; color: var(--ink); }
  .company-table dd { padding-top: 8px; }
  .biz-list li, .pillars li { padding: 28px 24px; }
  .footer-inner { justify-content: center; text-align: center; }
  .sp { display: inline; }
}
