@charset "utf-8";

/* =========================================
   VARIABLES & THEMING
========================================= */
:root {
  --midnight: #050b14;
  --deep-navy: #0a1426;
  --navy: #122240;
  --blue-accent: #2e5c9e;
  --gold: #d4af37;
  --gold-light: #f3e5ab;
  --gold-glow: rgba(212, 175, 55, 0.4);
  
  --bg-base: #fdfdfd;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.6);
  
  --text-main: #2d3748;
  --text-muted: #718096;
  --text-light: #a0aec0;
  
  --font-sans: 'Noto Sans JP', 'DM Sans', sans-serif;
  --font-serif: 'Shippori Mincho', 'Cormorant Garamond', serif;
  
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 8px;
  
  --shadow-soft: 0 10px 40px -10px rgba(10, 20, 38, 0.08);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.2);
  --shadow-hover: 0 20px 40px -10px rgba(10, 20, 38, 0.15);
  
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================
   RESET & BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-base);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
a { color: inherit; text-decoration: none; }

/* =========================================
   AMBIENT BACKGROUND
========================================= */
.ambient-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: var(--bg-base);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5;
  animation: float 25s infinite alternate ease-in-out;
}
.blob-1 { top: -10%; left: -20%; width: 50vw; height: 50vw; background: rgba(212, 175, 55, 0.12); }
.blob-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: rgba(46, 92, 158, 0.08); animation-delay: -5s; }
.blob-3 { top: 40%; left: 60%; width: 40vw; height: 40vw; background: rgba(10, 20, 38, 0.05); animation-delay: -10s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, 40px) scale(1.05); } }

/* =========================================
   HEADER
========================================= */
#header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 24px 40px; transition: all 0.4s var(--ease-smooth);
}
#header.scrolled {
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
}
.header-logo { display: flex; flex-direction: column; }
.hl-en {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; color: var(--navy);
}
.hl-ja {
  font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--deep-navy); letter-spacing: 0.05em;
}
.btn-glass {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px;
  border-radius: 30px; font-size: 13px; font-weight: 500; color: var(--navy);
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px); transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.btn-glass:hover {
  background: #fff; color: var(--blue-accent); transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--blue-accent);
}

/* =========================================
   HERO & SLIDER
========================================= */
#hero {
  position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; overflow: hidden;
}

/* --- Slider container --- */
.hero-slider { position: relative; width: 100%; height: 100%; }

/* --- Each slide --- */
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1s var(--ease-smooth);
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

/* ---- Persistent hero text overlay ---- */
.hero-text-overlay {
  position: absolute; z-index: 20;
  top: 50%; left: 9%;
  transform: translateY(-50%);
  max-width: 480px;
}

/* ---- Slide 1: Prof (navy bg, photo constrained to right) ---- */
.slide-prof {
  background: var(--deep-navy);  /* #0a1426 — グラデーション開始色と完全一致させ縦線を消す */
}
.slide-prof .hero-img-wrap {
  left: 52%;  /* 右48%のみに写真を表示 → 小さく見える */
}
.slide-prof .hero-img-wrap img {
  object-position: center 12%;
}
.slide-prof.active .hero-img-wrap img { transform: scale(1.04); }

/* 上からシャドウ＋左端ブレンド（背景色と同色で開始） */
.prof-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,20,38,0.60) 0%, transparent 36%),
    linear-gradient(to right,  #0a1426 0%, rgba(10,20,38,0.55) 18%, transparent 52%);
}

/* ---- 幾何学模様（左パネル） ---- */
.prof-geo {
  position: absolute; left: 0; top: 0; width: 52%; height: 100%;
  z-index: 6; pointer-events: none; overflow: hidden;
}

/* 大きい矩形フレーム */
.geo-frame-a {
  position: absolute; left: 7%; top: 12%; width: 340px; height: 380px;
  border: 2.5px solid rgba(212,175,55,0.55); border-radius: 2px;
}
/* 内側にずらした矩形 */
.geo-frame-b {
  position: absolute; left: 11%; top: 17%; width: 340px; height: 380px;
  border: 2px solid rgba(255,255,255,0.18); border-radius: 2px;
}

/* 大円 */
.geo-circle-lg {
  position: absolute; right: -60px; bottom: 8%; width: 260px; height: 260px;
  border: 2.5px solid rgba(212,175,55,0.40); border-radius: 50%;
}
/* 小円 */
.geo-circle-sm {
  position: absolute; left: 6%; bottom: 18%; width: 80px; height: 80px;
  border: 2px solid rgba(255,255,255,0.30); border-radius: 50%;
}

/* 水平線 */
.geo-hline {
  position: absolute; left: 7%; height: 2px;
  background: linear-gradient(to right, rgba(212,175,55,0.70), transparent);
}
.geo-hline-1 { top: 12%;  width: 200px; }
.geo-hline-2 { top: 51%;  width: 130px; opacity: 0.8; }
.geo-hline-3 { bottom: 12%; width: 170px; opacity: 0.6; }

/* クロス（＋）マーク */
.geo-cross {
  position: absolute; right: 18%; top: 14%; width: 22px; height: 22px;
}
.geo-cross::before, .geo-cross::after {
  content: ''; position: absolute; background: rgba(212,175,55,0.75); border-radius: 1px;
}
.geo-cross::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.geo-cross::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }

/* ---- Slide 2: Playroom (full-width bg) ---- */
.slide-playroom { display: flex; align-items: center; }
.hero-img-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%; border-radius: 0;
  filter: saturate(0.85); transition: transform 8s ease-out;
}
.slide-playroom.active .hero-img-wrap img { transform: scale(1.04); }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,20,38,0.82) 0%, rgba(20,40,75,0.45) 55%, rgba(255,255,255,0) 100%);
}
.hero-content {
  position: relative; z-index: 10; max-width: 1200px; margin: 0 auto; padding: 0 80px; width: 100%;
}

/* ---- Shared text styles ---- */
.slide-badge {
  display: inline-block; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 28px;
  color: var(--gold-light); background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.4); backdrop-filter: blur(4px);
}
.slide-badge.light { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }

.hero-title {
  color: #fff; font-family: var(--font-serif); font-size: 52px; font-weight: 700;
  line-height: 1.4; letter-spacing: 0.05em; text-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.hero-line {
  width: 72px; height: 2px; background: var(--gold); margin-top: 32px; border-radius: 2px;
}

/* ---- Slider dots ---- */
.hero-dots {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 20;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.35); transition: all 0.4s ease; padding: 0;
}
.hero-dot.active { background: var(--gold); width: 28px; border-radius: 4px; }

/* Hero Animations */
.reveal-item { opacity: 0; transform: translateY(30px); transition: all 1s var(--ease-elastic); }
.reveal-item.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; } .delay-2 { transition-delay: 0.4s; } .delay-3 { transition-delay: 0.6s; } .delay-4 { transition-delay: 1.2s; }

.scroll-indicator {
  position: absolute; bottom: 40px; right: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 20;
}
.scroll-indicator .text { font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 0.3em; color: rgba(255,255,255,0.7); writing-mode: vertical-rl; }
.scroll-indicator .line { width: 1px; height: 60px; background: rgba(255,255,255,0.2); position: relative; overflow: hidden; }
.scroll-indicator .line::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: #fff; animation: scrollDown 2s infinite ease-in-out; }
@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }

/* =========================================
   MAIN LAYOUT & SECTIONS
========================================= */
#wrapper { max-width: 1100px; margin: -80px auto 0; padding: 0 24px; position: relative; z-index: 20; }
.reveal-section { opacity: 0; transform: translateY(40px); transition: all 1s var(--ease-smooth); }
.reveal-section.visible { opacity: 1; transform: translateY(0); }

.section {
  background: var(--surface); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 64px; margin-bottom: 40px; box-shadow: var(--shadow-soft); transition: all 0.4s ease;
}
.section:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); background: var(--surface-hover); }

.section-header { margin-bottom: 40px; position: relative; }
.section-en {
  display: block; font-family: 'Cormorant Garamond', serif; font-size: 22px; font-style: italic; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 8px;
}
.section h2 {
  font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--deep-navy); line-height: 1.5;
  padding-bottom: 16px; border-bottom: 1px solid rgba(10, 20, 38, 0.08); position: relative;
}
.section h2::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 80px; height: 2px; background: var(--gold); }

.section p { margin-bottom: 24px; color: var(--text-main); font-size: 16px; }
.mt-4 { margin-top: 32px; }

/* =========================================
   COMPONENTS
========================================= */
/* Side by Side layout */
.side-by-side { display: flex; gap: 48px; align-items: flex-start; }
.side-by-side.reverse { flex-direction: row-reverse; }
.side-img { flex: 0 0 45%; }
.side-text { flex: 1; }

/* Image Decorations */
.img-decor-wrap { position: relative; display: inline-block; width: 100%; border-radius: var(--radius); z-index: 1; }
.img-decor-wrap img { border-radius: var(--radius); position: relative; z-index: 2; box-shadow: 0 12px 24px rgba(0,0,0,0.1); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); width: 100%; }
.img-decor-wrap:hover img { transform: scale(1.03); }
.img-decor-bg { position: absolute; inset: 0; background: var(--gold); border-radius: var(--radius); z-index: 1; opacity: 0.2; transform: translate(-15px, 15px); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.img-decor-wrap:hover .img-decor-bg { transform: translate(-22px, 22px); }
.img-decor-bg.bottom-offset { transform: translate(15px, 15px); opacity: 0.15; }
.img-decor-bg.offset-right { transform: translate(15px, -15px); background: var(--blue-accent); opacity: 0.1; }
.img-decor-bg.shadow-glow { background: var(--blue-accent); filter: blur(30px); opacity: 0.15; transform: scale(1.05) translate(0, 20px); }

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, var(--navy), #1a325e); color: #fff; padding: 32px 40px; border-radius: var(--radius); margin: 32px 0;
  position: relative; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,0.1);
}
.hb-glow { position: absolute; top: -50px; left: -50px; width: 150px; height: 150px; background: var(--gold); filter: blur(50px); opacity: 0.3; border-radius: 50%; pointer-events: none; }
.highlight-box p { color: rgba(255,255,255,0.95); margin: 0; position: relative; z-index: 2; font-size: 16px; line-height: 1.9; }
.highlight-box::before {
  content: "“"; position: absolute; top: -10px; left: 16px; font-family: var(--font-serif); font-size: 120px; color: rgba(255,255,255,0.06); line-height: 1; z-index: 1;
}

/* Link Lists */
.ext-link-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; padding: 0; }
.ext-link-list li a {
  display: inline-flex; align-items: center; justify-content: space-between; padding: 18px 24px;
  background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius);
  color: var(--navy); font-weight: 500; font-size: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); width: 100%; max-width: 480px; position: relative; overflow: hidden;
}
.ext-link-list li a::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(to bottom, var(--navy), var(--blue-accent)); z-index: 0; transition: opacity 0.3s var(--ease-smooth); opacity: 0;
}
.ext-link-list li a span, .ext-link-list li a::after { position: relative; z-index: 1; transition: color 0.3s ease; }
.ext-link-list li a span { color: var(--gold); margin-left: 12px; font-weight: bold; transition: transform 0.4s var(--ease-elastic); }
.ext-link-list li a:hover { border-color: var(--blue-accent); box-shadow: var(--shadow-hover); color: var(--navy); transform: translateX(6px); background: #fff; }
.ext-link-list li a:hover::before { opacity: 1; }
.ext-link-list li a:hover span { transform: rotate(45deg) scale(1.2); display: inline-block; }

.ext-link-list li a.primary-accent::before { background: linear-gradient(to bottom, var(--gold), #e8c75d); }
.ext-link-list li a.primary-accent:hover { border-color: var(--gold); color: var(--deep-navy); }

/* Professor Caption */
.prof-caption {
  text-align: center; font-family: var(--font-serif); font-size: 14px; color: var(--text-muted);
  margin-top: 10px; margin-bottom: 0; letter-spacing: 0.05em;
}

/* Image Bottom Alignment */
.imgBtm { margin-top: 40px; text-align: center; }
.ideology-mark { display: block; font-family: var(--font-serif); font-weight: 700; color: var(--navy); margin-bottom: 16px; font-size: 16px; }

/* Second Opinion Card */
.second-opinion-card {
  display: flex; position: relative; background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid rgba(0,0,0,0.06); margin: 32px 0 24px; box-shadow: var(--shadow-soft);
}
.so-content { padding: 40px; flex: 1; position: relative; z-index: 2; border-left: 6px solid var(--gold); }
.so-bg-asset {
  position: absolute; right: 0; top: 0; width: 45%; height: 100%; background: linear-gradient(135deg, rgba(212,175,55,0.05), rgba(46,92,158,0.05)); z-index: 1; pointer-events: none; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.so-label { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--text-light); text-transform: uppercase; margin-bottom: 8px !important; }
.so-dept { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 16px !important; }
.so-contact { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.so-tel { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 600; color: var(--blue-accent); transition: color 0.3s; }
.so-tel:hover { color: var(--gold); }
.so-hours { font-size: 14px; color: var(--text-muted); background: var(--bg-base); padding: 4px 12px; border-radius: 20px; margin-bottom: 0 !important; border: 1px solid rgba(0,0,0,0.05); }

.info-notes { list-style: none; padding: 0; }
.info-notes li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.info-notes li::before { content: '※'; position: absolute; left: 0; color: var(--text-light); }

/* =========================================
   LINK SECTION (GRID)
========================================= */
#link-section {
  padding: 80px 24px; max-width: 1100px; margin: 0 auto; position: relative;
}
.section-label {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 28px; color: var(--navy); display: flex; align-items: center; gap: 24px; margin-bottom: 40px;
}
.section-label .line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(10,20,38,0.1), transparent); }
.link-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.grid-link {
  background: var(--surface); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); padding: 20px 24px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--navy);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 4px 12px rgba(0,0,0,0.02); display: flex; justify-content: space-between; align-items: center;
}
.grid-link::after { content: '↗'; color: var(--text-light); transition: all 0.4s ease; font-weight: bold; font-family: sans-serif; }
.grid-link:hover { background: #fff; color: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--blue-accent); }
.grid-link:hover::after { color: var(--gold); transform: translate(4px, -4px); }

/* =========================================
   FOOTER
========================================= */
#footer {
  background: var(--midnight); color: rgba(255,255,255,0.7); position: relative; overflow: hidden; padding: 100px 24px 40px; margin-top: 40px;
}
.footer-bg-glow {
  position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 800px; height: 300px;
  background: radial-gradient(ellipse, rgba(46,92,158,0.2) 0%, transparent 70%); pointer-events: none;
}
#footer .inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.footer-top {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 48px; margin-bottom: 32px;
}
.footer-logo { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: #fff; display: block; margin-bottom: 16px; letter-spacing: 0.05em; line-height: 1.4; }
.brand address { font-style: normal; font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.5); }
.brand address a { color: var(--gold-light); text-decoration: none; transition: color 0.3s; }
.brand address a:hover { color: #fff; }

.footer-links { list-style: none; display: flex; gap: 32px; flex-wrap: wrap; padding: 0; align-items: flex-start; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: all 0.3s; position: relative; }
.footer-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s ease; }
.footer-links a:hover { color: #fff; }
.footer-links a:hover::after { width: 100%; }

.footer-bottom { text-align: center; font-size: 12px; font-family: 'DM Sans', sans-serif; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {
  .side-by-side, .side-by-side.reverse { flex-direction: column; gap: 32px; }
  .side-img { width: 100%; }
  .section { padding: 48px 32px; }
  .hero-title { font-size: 40px; }
  .hero-text-overlay { left: 5%; max-width: 380px; }
  .prof-geo { width: 70%; }
  .geo-frame-a, .geo-frame-b { width: 240px; height: 280px; }
}

@media (max-width: 600px) {
  #header { padding: 16px 20px; }
  .header-actions { display: none; }
  #hero { min-height: 550px; }
  .hero-content { padding: 0 28px; }
  .hero-title { font-size: 28px; }
  .hero-text-overlay { left: 5%; max-width: 280px; }
  .scroll-indicator { display: none; }
  #wrapper { padding: 0 16px; margin-top: -60px; }
  .section { padding: 36px 24px; border-radius: var(--radius); }
  .section-en { font-size: 18px; }
  .section h2 { font-size: 26px; }
  .highlight-box { padding: 24px; }
  .second-opinion-card { flex-direction: column; }
  .so-content { padding: 28px 24px; border-left: none; border-top: 6px solid var(--gold); }
  .link-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 16px; flex-direction: column; }
}
