/* ===== Site-wide chrome: header, footer, page header ===== */

/* ---------- Site Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 28px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 9, 7, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
  padding: 10px 28px;
}
.site-header-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}
.site-logo-en {
  font-family: var(--serif-en);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-0);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
.site-logo-en i {
  font-style: normal;
  color: var(--accent);
}
.site-logo-jp {
  font-family: var(--serif-jp);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  margin-top: 4px;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.site-nav ul {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  transition: color 0.3s;
}
.site-nav .nav-jp {
  font-family: var(--serif-jp);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-1);
  transition: color 0.3s;
}
.site-nav .nav-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  transition: color 0.3s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease), left 0.4s var(--ease);
}
.site-nav a:hover::after,
.site-nav .active a::after {
  width: 100%;
  left: 0;
}
.site-nav a:hover .nav-jp,
.site-nav .active a .nav-jp {
  color: var(--accent);
}

.site-header-cta { flex-shrink: 0; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  background: rgba(200, 168, 104, 0.05);
  color: var(--ink-0);
  border-radius: 2px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.header-cta:hover {
  background: var(--accent);
  color: var(--bg-0);
}
.header-cta-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  transition: color 0.3s;
}
.header-cta-en i { font-style: italic; }
.header-cta:hover .header-cta-en { color: var(--bg-0); }
.header-cta-jp {
  font-family: var(--serif-jp);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.header-cta-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}
.header-cta:hover .header-cta-arrow { transform: translateX(3px); }

/* Burger */
.site-burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.site-burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--ink-0);
  transform: translateX(-50%);
  transition: transform 0.4s var(--ease), opacity 0.3s, top 0.4s var(--ease);
}
.site-burger span:nth-child(1) { top: 14px; }
.site-burger span:nth-child(2) { top: 19px; }
.site-burger span:nth-child(3) { top: 24px; }
.site-burger.open span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.site-burger.open span:nth-child(2) { opacity: 0; }
.site-burger.open span:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

/* Drawer */
.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 9, 7, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-drawer.open { opacity: 1; pointer-events: auto; }
.site-drawer-inner {
  height: 100%;
  padding: 90px 28px 40px;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.site-drawer-eyebrow {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
}
.site-drawer-nav {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  flex: 1;
}
.site-drawer-nav li {
  border-bottom: 1px solid var(--line);
}
.site-drawer-nav li:first-child { border-top: 1px solid var(--line); }
.site-drawer-nav a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  transition: color 0.3s, padding-left 0.3s;
}
.site-drawer-nav .nav-jp {
  font-family: var(--serif-jp);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--ink-0);
  transition: color 0.3s;
}
.site-drawer-nav .nav-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.site-drawer-nav a:hover { padding-left: 8px; }
.site-drawer-nav a:hover .nav-jp,
.site-drawer-nav .active a .nav-jp { color: var(--accent); }

.site-drawer-cta {
  width: 100%;
  margin-bottom: 24px;
}
.site-drawer-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--serif-jp);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.site-drawer-foot i {
  font-family: var(--serif-en);
  font-style: italic;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* Mobile responsive */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .site-header-cta { margin-left: auto; }
}
@media (max-width: 768px) {
  .site-header { padding: 12px 16px; }
  .site-header.scrolled { padding: 8px 16px; }
  .site-logo-en { font-size: 18px; }
  .site-logo-jp { font-size: 8px; }
  .header-cta { display: none; }
  .site-header-cta { display: none; }
  .site-burger { display: block; margin-left: auto; }
}

/* ---------- Page Header ---------- */
.page-header {
  position: relative;
  padding: 180px 28px 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(200, 168, 104, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(200, 168, 104, 0.06), transparent 60%),
    var(--bg-0);
}
/* Variant: page header with a campus background photo */
.page-header.has-bg-image .page-header-bg {
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  filter: saturate(0.9) brightness(0.55) contrast(1.05);
}
.page-header.has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(10,9,7,0.5) 0%, rgba(10,9,7,0.85) 100%),
    linear-gradient(180deg, rgba(10,9,7,0.7) 0%, rgba(10,9,7,0.5) 30%, rgba(10,9,7,0.65) 70%, var(--bg-0) 100%);
}
.page-header-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.15;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(200, 168, 104, 0.04) 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(200, 168, 104, 0.03) 2px 3px);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.page-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.breadcrumb {
  margin-bottom: 40px;
}
.breadcrumb ol {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.breadcrumb a {
  color: var(--ink-2);
  transition: color 0.3s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--ink-4); }

.page-header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.page-header-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.24em;
  color: var(--accent);
}
.page-header-en i { font-style: italic; }
.page-header-en::before, .page-header-en::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 12px;
  opacity: 0.6;
}
.page-header-tag {
  font-family: var(--serif-jp);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: 4px 12px;
  border-radius: 100px;
}

.page-header-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(32px, 5.5vw, 64px);
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: var(--ink-0);
  margin: 0 0 32px;
}
.page-header-title em {
  font-style: normal;
  color: var(--accent);
}
.page-header-lead {
  font-family: var(--serif-jp);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--ink-1);
  max-width: 640px;
  margin: 0 auto;
}

.page-header-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}
.page-header-orn span:not(.page-header-orn-mark) {
  width: 60px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.page-header-orn-mark {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .page-header { padding: 130px 20px 70px; }
  .page-header-orn { margin-top: 32px; }
  .page-header-orn span:not(.page-header-orn-mark) { width: 36px; }
}

/* ---------- Site Footer ---------- */
.site-footer {
  position: relative;
  padding: 100px 28px 32px;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.site-footer-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(200, 168, 104, 0.04) 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(200, 168, 104, 0.03) 2px 3px);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.site-footer-inner {
  max-width: 1340px;
  margin: 0 auto;
  position: relative;
}

.footer-cta-block {
  text-align: center;
  padding-bottom: 80px;
}
.footer-cta-block .eyebrow {
  margin-bottom: 24px;
}
.footer-cta-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--ink-0);
  margin: 0 0 24px;
}
.footer-cta-title em {
  font-style: normal;
  color: var(--accent);
}
.footer-cta-sub {
  font-family: var(--serif-jp);
  font-size: 14px;
  line-height: 2;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  margin: 0 0 36px;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 0 0 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 64px;
}

.footer-logo {
  display: inline-block;
  font-family: var(--serif-en);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-0);
  margin-bottom: 18px;
  line-height: 1;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
.footer-logo i {
  font-style: normal;
  color: var(--accent);
}
.footer-tag {
  font-family: var(--serif-jp);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  margin: 0 0 24px;
}
.footer-tag i {
  display: block;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  transition: border-color 0.3s, color 0.3s, transform 0.3s, background 0.3s;
  border-radius: 2px;
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200, 168, 104, 0.06);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 14px;
  height: 14px;
}

.footer-col-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 400;
  margin: 0 0 18px;
}
.footer-col-title i {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.footer-col-title span {
  font-family: var(--serif-jp);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-1);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col li a {
  font-family: var(--serif-jp);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  transition: color 0.3s, padding-left 0.3s;
  position: relative;
  padding-left: 0;
}
.footer-col li a:hover {
  color: var(--accent);
  padding-left: 8px;
}
.footer-col li a::before {
  content: "—";
  position: absolute;
  left: -8px;
  opacity: 0;
  color: var(--accent);
  transition: opacity 0.3s;
}
.footer-col li a:hover::before { opacity: 1; }

.footer-fac {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px !important;
}

.footer-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  font-family: var(--serif-jp);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.footer-info dt {
  color: var(--ink-3);
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding-top: 1px;
}
.footer-info dd {
  margin: 0;
  color: var(--ink-1);
}
.footer-info dd a {
  color: var(--ink-1);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.footer-info dd a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}
.footer-legal a {
  font-family: var(--serif-jp);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--accent); }
.footer-mark i {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer { padding: 70px 20px 28px; }
  .footer-cta-block { padding-bottom: 56px; }
  .footer-divider { margin-bottom: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 48px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
}
