/* Kagayaki Co., Ltd. */
/* BOUTIQUE LUXURY THEME - Champagne Gold Soft Light */

/* --- DESIGN TOKENS --- */
:root {
  --color-matte-black: #2D261B;
  --color-charcoal-dark: #4A3D2A;
  --color-warm-bg: #FBF7EE;
  --color-bg-white: #FFFFFF;
  --color-gold-brushed: #B99655;
  --color-gold-bright: #D9B867;
  --color-gold-light: #F7EEDB;
  --color-text-dark: #342B1F;
  --color-text-muted: #756A5A;
  --color-border: #E8DDC8;
  --color-border-gold: rgba(185, 150, 85, 0.34);
  
  --font-serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --font-sans: 'Montserrat', sans-serif;
  
  --header-height: 80px;
  --transition-normal: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
  
  --shadow-premium: 0 10px 30px rgba(45, 38, 27, 0.05);
  --shadow-gold: 0 6px 24px rgba(185, 150, 85, 0.18);
  --radius-sm: 2px;
  --radius-md: 4px;
}

/* --- RESET & BASICS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang="zh-Hans"] body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', var(--font-sans), sans-serif;
}

html[lang="zh-Hant"] body {
  font-family: 'PingFang TC', 'Microsoft JhengHei', var(--font-sans), sans-serif;
}

html[lang="zh-Hans"] .logo-title,
html[lang="zh-Hans"] .logo-subtitle,
html[lang="zh-Hans"] .nav-link,
html[lang="zh-Hans"] .btn-nav-cta,
html[lang="zh-Hans"] .hero-subtitle,
html[lang="zh-Hans"] .serif-title,
html[lang="zh-Hans"] .quote-jp {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
}

html[lang="zh-Hant"] .logo-title,
html[lang="zh-Hant"] .logo-subtitle,
html[lang="zh-Hant"] .nav-link,
html[lang="zh-Hant"] .btn-nav-cta,
html[lang="zh-Hant"] .hero-subtitle,
html[lang="zh-Hant"] .serif-title,
html[lang="zh-Hant"] .quote-jp {
  font-family: 'PingFang TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

select, input, textarea, button {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

select:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-gold-brushed);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--color-gold-light);
}

/* --- TYPOGRAPHY & LAYOUT UTILS --- */
.serif-title {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

html[lang="ja"] .section-title.serif-title,
html[lang="ja"] .serif-title {
  font-family: 'Noto Serif JP', serif;
}

html[lang="zh-Hans"] .serif-title {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
}

html[lang="zh-Hant"] .serif-title {
  font-family: 'PingFang TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', sans-serif;
  font-weight: 400;
}

.section-padding {
  padding: 120px 0;
}

.bg-warm {
  background-color: var(--color-warm-bg);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.section-header {
  margin-bottom: 70px;
}

.section-header.align-center {
  text-align: center;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-gold-brushed);
  text-transform: uppercase;
  display: block;
  margin-bottom: 15px;
}

.section-title {
  font-size: 2.8rem;
  color: var(--color-matte-black);
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.accent-line {
  width: 40px;
  height: 1px;
  background-color: var(--color-gold-brushed);
  margin-top: 25px;
}

.accent-line.center {
  margin-left: auto;
  margin-right: auto;
}

/* --- BOUTIQUE HEADER --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition-normal);
}

.main-header.scrolled {
  height: 70px;
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-premium);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.header-container {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Area with Safety properties */
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-emblem {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  border: 1px solid var(--color-gold-brushed);
  color: var(--color-matte-black);
  padding: 4px 10px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-matte-black);
  line-height: 1.2;
  white-space: normal;
  word-wrap: break-word;
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  white-space: normal;
  word-wrap: break-word;
  margin-top: 1px;
}

html[lang="zh-Hans"] .logo-title,
html[lang="zh-Hant"] .logo-title {
  font-size: 1.12rem;
  font-weight: 500;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

html[lang="zh-Hans"] .logo-subtitle,
html[lang="zh-Hant"] .logo-subtitle {
  white-space: nowrap;
}

/* Header Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

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

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--color-gold-brushed);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-matte-black);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.btn-nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-matte-black);
  border: 1px solid var(--color-matte-black);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background-color: var(--color-matte-black);
  color: var(--color-bg-white);
}

/* Language Switcher */
.language-button-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-opt {
  min-width: 38px;
  padding: 8px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.lang-opt + .lang-opt {
  border-left: 1px solid var(--color-border);
}

.lang-opt:hover, .lang-opt.active {
  color: var(--color-matte-black);
  background-color: var(--color-warm-bg);
}

.lang-opt.active {
  box-shadow: inset 0 -2px 0 var(--color-gold-brushed);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FBF7EE;
  color: var(--color-matte-black);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  inset: -18%;
  pointer-events: none;
  z-index: 1;
}

.hero-section::before {
  background:
    radial-gradient(circle at 18% 30%, rgba(217, 184, 103, 0.24) 0%, rgba(217, 184, 103, 0) 34%),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 62% 78%, rgba(185, 150, 85, 0.18) 0%, rgba(185, 150, 85, 0) 38%);
  filter: blur(10px);
  opacity: 0.96;
  animation: heroSoftDrift 18s ease-in-out infinite alternate;
}

.hero-section::after {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0.48) 42%, rgba(255, 255, 255, 0) 68%),
    linear-gradient(24deg, rgba(185, 150, 85, 0) 24%, rgba(185, 150, 85, 0.16) 49%, rgba(185, 150, 85, 0) 74%);
  opacity: 0.58;
  transform: translate3d(-8%, -3%, 0) rotate(0.001deg);
  animation: heroLightSweep 22s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 50% 44%, rgba(217, 184, 103, 0.28) 0%, rgba(185, 150, 85, 0.12) 26%, rgba(251, 247, 238, 0) 64%),
    radial-gradient(circle at 50% 56%, rgba(255, 255, 255, 0.72) 0%, rgba(251, 247, 238, 0) 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 238, 219, 0.86) 48%, rgba(255, 252, 245, 0.78) 100%);
  pointer-events: none;
  background-size: 118% 118%, 108% 108%, 100% 100%;
  z-index: 0;
  animation: heroGlowBreath 20s ease-in-out infinite alternate;
}

.data-viz__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.86;
}

.hero-container {
  max-width: 1000px;
  padding: 0 30px;
  text-align: center;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-crest {
  font-size: 1.8rem;
  color: var(--color-gold-brushed);
  margin-bottom: 30px;
}

.hero-title {
  font-size: 4.2rem;
  line-height: 1.15;
  margin-bottom: 25px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-gold-brushed);
  letter-spacing: 0.1em;
  margin-bottom: 50px;
}

.hero-actions {
  display: flex;
  gap: 30px;
  align-items: center;
}

.btn-boutique-primary {
  display: inline-block;
  background-color: var(--color-gold-brushed);
  color: var(--color-bg-white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gold-brushed);
  box-shadow: var(--shadow-gold);
}

.btn-boutique-primary:hover {
  background-color: var(--color-bg-white);
  border-color: var(--color-gold-brushed);
  color: var(--color-matte-black);
}

.btn-boutique-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-matte-black);
  text-transform: uppercase;
}

.btn-boutique-link:hover {
  color: var(--color-gold-brushed);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(52, 43, 31, 0.38);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background-color: rgba(52, 43, 31, 0.16);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: var(--color-gold-brushed);
  animation: scrollAnim 2.2s infinite ease-in-out;
}

@keyframes scrollAnim {
  0% { top: -15px; }
  50% { top: 40px; }
  100% { top: 40px; }
}

@keyframes heroGlowBreath {
  0% {
    background-position: 44% 44%, 52% 54%, 0 0;
    opacity: 0.92;
  }
  100% {
    background-position: 58% 40%, 42% 60%, 0 0;
    opacity: 1;
  }
}

@keyframes heroSoftDrift {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }
  100% {
    transform: translate3d(4%, 2.5%, 0) scale(1.04);
  }
}

@keyframes heroLightSweep {
  0% {
    transform: translate3d(-10%, -4%, 0) rotate(0.001deg);
  }
  100% {
    transform: translate3d(10%, 4%, 0) rotate(0.001deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section::before,
  .hero-section::after,
  .hero-overlay,
  .data-viz__canvas,
  .scroll-line::after {
    animation: none;
  }
}

/* --- STRENGTHS SECTION (ALTERNATING ROW LAYOUT) --- */
.strengths-alternating-grid {
  display: flex;
  flex-direction: column;
  gap: 100px;
  margin-top: 50px;
}

.strength-row {
  display: flex;
  align-items: center;
  gap: 80px;
}

.strength-row.reverse {
  flex-direction: row-reverse;
}

.strength-content {
  flex: 1;
}

.strength-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-gold-brushed);
  display: block;
  margin-bottom: 20px;
}

.strength-heading {
  font-size: 2.4rem;
  color: var(--color-matte-black);
  line-height: 1.25;
  margin-bottom: 25px;
}

.strength-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.strength-image-box {
  flex: 1;
  position: relative;
  border: 1px solid var(--color-border);
  padding: 15px;
  background-color: var(--color-warm-bg);
}

.strength-image-box::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  border: 1px solid var(--color-gold-brushed);
  opacity: 0.2;
  pointer-events: none;
}

.strength-img {
  width: 100%;
  filter: grayscale(15%) contrast(1.05);
}

/* --- TARGET UNIVERSITIES --- */
.univ-editorial-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid var(--color-border);
}

.univ-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 20px;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-normal);
}

.univ-card:hover {
  background-color: var(--color-bg-white);
  padding-left: 30px;
  padding-right: 30px;
  border-bottom-color: var(--color-gold-brushed);
}

.univ-meta {
  display: flex;
  align-items: center;
  gap: 40px;
}

.univ-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.univ-type.label-gold {
  color: var(--color-gold-brushed);
  border-color: var(--color-gold-brushed);
}

.univ-name {
  font-size: 1.8rem;
  color: var(--color-matte-black);
}

.univ-details {
  text-align: right;
}

.univ-en {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-brushed);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.univ-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* --- PROGRAMS SECTION (EDITORIAL BROCHURE CARDS) --- */
.programs-brochure-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.brochure-card {
  border: 1px solid var(--color-border);
  padding: 50px 40px;
  background-color: var(--color-bg-white);
  display: flex;
  flex-direction: column;
  min-height: 400px;
  position: relative;
  transition: var(--transition-normal);
}

.brochure-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-matte-black);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.brochure-card:hover {
  box-shadow: var(--shadow-premium);
  border-color: var(--color-gold-brushed);
}

.brochure-card:hover::before {
  transform: scaleX(1);
  background-color: var(--color-gold-brushed);
}

.brochure-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.brochure-index {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-gold-brushed);
  font-weight: 300;
}

.brochure-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 4px;
}

.brochure-title {
  font-size: 1.8rem;
  color: var(--color-matte-black);
  line-height: 1.3;
  margin-bottom: 20px;
}

.brochure-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
  flex-grow: 1;
}

.brochure-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-gold-brushed);
  margin-bottom: 25px;
}

.brochure-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-matte-black);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.brochure-link i {
  transition: var(--transition-fast);
}

.brochure-link:hover {
  color: var(--color-gold-brushed);
}

.brochure-link:hover i {
  transform: translateX(6px);
}

/* --- ADMISSION STEPS (SERIF NUMERALS) --- */
.steps-editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.step-column {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
}

.step-huge-num {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 300;
  color: var(--color-gold-brushed);
  line-height: 1;
  display: block;
  margin-bottom: 20px;
}

.step-name {
  font-size: 1.4rem;
  color: var(--color-matte-black);
  margin-bottom: 15px;
}

.step-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- FACULTY (EDITORIAL GALLERY) --- */
.faculty-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 60px;
}

.fac-card {
  background-color: var(--color-bg-white);
  transition: var(--transition-normal);
}

.fac-img-wrapper {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  padding: 8px;
  background-color: var(--color-warm-bg);
  margin-bottom: 25px;
}

.fac-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-gold-brushed);
  opacity: 0.15;
  pointer-events: none;
}

.fac-img {
  width: 100%;
  transition: var(--transition-slow);
}

.fac-card:hover .fac-img {
  transform: scale(1.03);
}

.fac-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-gold-brushed);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.fac-name {
  font-size: 1.7rem;
  color: var(--color-matte-black);
  margin-bottom: 15px;
}

.fac-bio {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- FAQ SECTION (MINIMALIST THIN LINES) --- */
.faq-accordion-wrapper {
  max-width: 800px;
  margin: 60px auto 0 auto;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 10px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.faq-trigger:hover {
  padding-left: 20px;
}

.faq-trigger:hover .faq-question {
  color: var(--color-gold-brushed);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-matte-black);
  transition: var(--transition-fast);
}

.faq-icon {
  font-size: 0.8rem;
  color: var(--color-gold-brushed);
  transition: var(--transition-normal);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-content-inner {
  padding: 0 10px 30px 10px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --- CONTACT SECTION (SPACIOUS LUXURY FORM) --- */
.contact-editorial-layout {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 100px;
  align-items: stretch;
  margin-top: 40px;
}

.contact-meta-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-title {
  font-size: 3.2rem;
  color: var(--color-matte-black);
  line-height: 1.15;
  margin-bottom: 20px;
}

.contact-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 50px;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 44px;
}

.info-group {
  display: flex;
  flex-direction: column;
}

.info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-gold-brushed);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

.info-value {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--color-matte-black);
  font-weight: 500;
  line-height: 1.4;
}

.tel-link {
  color: var(--color-matte-black);
}

.tel-link:hover {
  color: var(--color-gold-brushed);
}

.quote-block {
  margin-top: auto;
  border-left: 2px solid var(--color-gold-brushed);
  padding-left: 20px;
}

.quote-jp {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-matte-black);
  margin-bottom: 5px;
}

.quote-en {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Luxurious Form styling */
.contact-form-column {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 247, 238, 0.94) 58%, rgba(247, 238, 219, 0.9) 100%);
  padding: 52px;
  border: 1px solid rgba(185, 150, 85, 0.42);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  min-height: 100%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(45, 38, 27, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.contact-form-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--color-gold-brushed), var(--color-gold-bright), rgba(185, 150, 85, 0.28));
  pointer-events: none;
}

.contact-form-column::after {
  content: '';
  position: absolute;
  top: -130px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(217, 184, 103, 0.2) 0%, rgba(217, 184, 103, 0) 68%);
  pointer-events: none;
}

.contact-boutique-form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.form-row {
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-charcoal-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  border: 1px solid rgba(185, 150, 85, 0.28);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  background-color: rgba(255, 255, 255, 0.62);
  transition: var(--transition-fast);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(117, 106, 90, 0.5);
  font-weight: 300;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--color-gold-brushed);
  background-color: var(--color-bg-white);
  box-shadow: 0 0 0 4px rgba(185, 150, 85, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.form-group textarea {
  min-height: 148px;
  resize: vertical;
}

/* Custom styled select layout */
.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B99655' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 44px;
}

.form-group select option {
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
}

.error-msg {
  font-size: 0.72rem;
  color: #C0392B;
  margin-top: 6px;
  display: none;
}

.form-group.invalid input, .form-group.invalid textarea, .form-group.invalid select {
  border-color: #C0392B;
  background-color: rgba(192, 57, 43, 0.04);
}

.form-group.invalid .error-msg {
  display: block;
}

/* Status Indicator */
.form-status {
  padding: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: none;
  border: 1px solid var(--color-gold-brushed);
  background-color: var(--color-gold-light);
  color: var(--color-matte-black);
}

.form-status.success {
  background-color: #F8F1E4;
  border-color: rgba(185, 150, 85, 0.45);
  color: var(--color-charcoal-dark);
}

.btn-submit-boutique {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--color-matte-black), var(--color-charcoal-dark));
  color: var(--color-bg-white);
  border: 1px solid var(--color-matte-black);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 34px;
  min-width: 160px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: 0 14px 28px rgba(45, 38, 27, 0.14);
}

.btn-submit-boutique:hover {
  background: var(--color-bg-white);
  color: var(--color-matte-black);
  border-color: var(--color-gold-brushed);
  box-shadow: 0 10px 24px rgba(185, 150, 85, 0.18);
}

/* Loading spinner */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--color-bg-white);
  animation: spin 1s infinite linear;
  display: none;
}

.btn-submit-boutique.loading .btn-spinner {
  display: block;
}

.btn-submit-boutique.loading .btn-text {
  opacity: 0.7;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- BOUTIQUE FOOTER --- */
.main-footer {
  background-color: var(--color-matte-black);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0;
  border-top: 1px solid var(--color-border-gold);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.8rem;
  font-weight: 300;
}

.footer-socials {
  display: flex;
  gap: 24px;
}

.footer-socials a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-socials a:hover {
  color: var(--color-gold-brushed);
}

/* --- SCROLL REVEAL EFFECTS --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE ADJUSTMENTS --- */

/* Medium Desktop viewport scaling (Safety adjustments to prevent wrapping) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .logo-title {
    font-size: 1.05rem;
  }
  .logo-subtitle {
    font-size: 0.6rem;
  }
  .logo-area {
    gap: 8px;
  }
  .nav-menu {
    gap: 15px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.8rem;
  }
  .btn-nav-cta {
    padding: 7px 14px;
    font-size: 0.75rem;
  }
}

/* Mobile responsive menu */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }
  
  .section-padding {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  /* Hamburger trigger */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 14px;
    cursor: pointer;
  }
  
  .menu-toggle .bar {
    width: 100%;
    height: 1px;
    background-color: var(--color-matte-black);
    transition: var(--transition-normal);
  }
  
  .menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  
  .menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 20px;
    gap: 40px;
    transition: var(--transition-slow);
    z-index: 999;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 30px;
    width: 100%;
    text-align: center;
  }

  .nav-link {
    font-size: 1.1rem;
    color: var(--color-text-dark);
  }

  .btn-nav-cta {
    width: 200px;
    text-align: center;
    padding: 12px;
    font-size: 0.9rem;
  }
  
  /* Language buttons in Mobile */
  .language-button-group {
    margin-top: 20px;
    width: min(340px, 86vw);
    justify-content: center;
    flex-wrap: wrap;
  }

  .lang-opt {
    flex: 0 1 auto;
    min-width: 52px;
    text-align: center;
    padding: 10px 8px;
  }

  /* Hero adjustments */
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 20px;
  }
  
  /* Strengths Alternating Grid on Mobile */
  .strength-row, .strength-row.reverse {
    flex-direction: column;
    gap: 40px;
  }
  
  .strength-heading {
    font-size: 1.8rem;
  }
  
  .strength-image-box {
    width: 100%;
  }

  /* Target Universities */
  .univ-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 25px 10px;
  }
  
  .univ-meta {
    gap: 15px;
  }
  
  .univ-name {
    font-size: 1.4rem;
  }
  
  .univ-details {
    text-align: left;
  }

  /* Programs Brochure Grid */
  .programs-brochure-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .brochure-card {
    padding: 40px 30px;
    min-height: auto;
  }

  /* Steps Column Grid */
  .steps-editorial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }

  /* Faculty Editorial Grid */
  .faculty-editorial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Contact layout */
  .contact-editorial-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .contact-title {
    font-size: 2.4rem;
  }
  
  .contact-card-info {
    gap: 20px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-form-column {
    padding: 40px 25px;
  }

  .footer-container {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .steps-editorial-grid {
    grid-template-columns: 1fr;
  }
}
