@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --secondary: #6366F1;
  --accent: #10B981;
  --dark-bg: #0F2830;
  --dark-card: #163B47;
  --text: #1E293B;
  --text-light: #64748B;
  --text-white: #F8FAFC;
  --bg: #FFFFFF;
  --bg-light: #F1F5F9;
  --bg-hero: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; }
h1,h2,h3,h4,h5 { font-family: 'Outfit', 'Noto Sans JP', sans-serif; line-height: 1.3; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* === NAV === */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.06); transition: var(--transition); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 800; background: var(--bg-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); transition: var(--transition); }

/* === HERO === */
.hero { padding: 140px 0 100px; background: var(--bg-hero); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.hero .container { position: relative; z-index: 1; }
.hero-badge { display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.2); border-radius: 20px; color: white; font-size: 0.85rem; margin-bottom: 20px; backdrop-filter: blur(4px); }
.hero h1 { font-size: 3.2rem; color: white; margin-bottom: 16px; font-family: 'Noto Sans JP', sans-serif; }
.hero h1 span { display: block; font-size: 1.2rem; font-weight: 400; opacity: 0.9; margin-top: 8px; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 560px; margin-bottom: 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; text-decoration: none; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* === VISITOR GUIDE === */
.visitor { background: var(--bg-light); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 12px; font-family: 'Noto Sans JP', sans-serif; }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 48px; font-size: 1.05rem; }
.visitor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 16px; }
.visitor-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 260px; cursor: pointer; transition: var(--transition); }
.visitor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.visitor-card img, .visitor-card .card-bg { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card-bg { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.visitor-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%); z-index: 1; }
.visitor-card .card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; z-index: 2; color: white; }
.visitor-card .card-content h3 { font-size: 1.15rem; margin-bottom: 4px; }
.visitor-card .card-label { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 500; }
.visitor-card .card-label .arrow { transition: var(--transition); }
.visitor-card:hover .card-label .arrow { transform: translateX(4px); }
.visitor-small { display: inline-flex; align-items: center; gap: 8px; padding: 16px 24px; background: white; border-radius: var(--radius); cursor: pointer; font-weight: 600; color: var(--text); border: 1px solid #E2E8F0; transition: var(--transition); }
.visitor-small:hover { border-color: var(--primary); color: var(--primary); }

.visitor-detail { display: none; margin-top: 32px; padding: 32px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); animation: fadeIn 0.3s ease; }
.visitor-detail.active { display: block; }
.visitor-detail h3 { font-size: 1.4rem; margin-bottom: 16px; color: var(--primary); }
.visitor-detail ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.visitor-detail li { padding: 12px 16px; background: var(--bg-light); border-radius: var(--radius-sm); display: flex; align-items: center; gap: 10px; }
.visitor-detail li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* === SERVICE TABS === */
.service-tabs { display: flex; justify-content: center; gap: 0; margin-bottom: 48px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--primary); width: fit-content; margin-left: auto; margin-right: auto; }
.service-tab { padding: 12px 36px; font-size: 1rem; font-weight: 600; cursor: pointer; border: none; background: white; color: var(--primary); transition: var(--transition); }
.service-tab.active { background: var(--primary); color: white; }
.service-panel { display: none; }
.service-panel.active { display: block; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: white; border-radius: var(--radius); padding: 32px 24px; border: 1px solid #E2E8F0; transition: var(--transition); text-align: center; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-card .icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* === CURRICULUM === */
.curriculum { background: var(--bg-light); }
.curriculum-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; }
.curriculum-left .accordion-item { background: white; border-radius: var(--radius); margin-bottom: 12px; border-left: 4px solid var(--primary); overflow: hidden; transition: var(--transition); }
.curriculum-left .accordion-item.active { border-left-color: var(--accent); }
.accordion-header { padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.accordion-header .chevron { transition: var(--transition); font-size: 0.8rem; color: var(--text-light); }
.accordion-item.active .chevron { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-body-inner { padding: 0 20px 16px; }
.accordion-body-inner li { padding: 8px 12px; margin-bottom: 4px; border-radius: 6px; background: var(--bg-light); font-size: 0.9rem; list-style: none; display: flex; align-items: center; gap: 8px; }
.accordion-body-inner .status { font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.status-done { background: #D1FAE5; color: #065F46; }
.status-progress { background: #DBEAFE; color: #1E40AF; }
.status-todo { background: #F1F5F9; color: #64748B; }
.curriculum-right ol { list-style: none; counter-reset: step; }
.curriculum-right li { counter-increment: step; padding: 14px 16px; margin-bottom: 8px; border-radius: var(--radius-sm); background: white; display: flex; align-items: center; gap: 12px; font-weight: 500; transition: var(--transition); cursor: pointer; }
.curriculum-right li:hover { box-shadow: var(--shadow); }
.curriculum-right li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: var(--text-light); flex-shrink: 0; }
.curriculum-right li.completed::before { background: var(--accent); color: white; content: '✓'; }
.curriculum-right li.in-progress::before { background: var(--primary); color: white; }

/* === SKILL SCORE === */
.skill-section { position: relative; }
.skill-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.radar-container { position: relative; display: flex; justify-content: center; align-items: center; }
.radar-container canvas { max-width: 360px; }
.radar-score { position: absolute; font-size: 3rem; font-weight: 800; font-family: 'Outfit', sans-serif; color: var(--primary); }
.skill-info h2 { font-size: 2rem; margin-bottom: 20px; }
.skill-checks { list-style: none; margin-bottom: 28px; }
.skill-checks li { padding: 10px 0; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.skill-checks li::before { content: '✅'; }
.steps-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; }
.step-item { text-align: center; position: relative; }
.step-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 12px; border: 3px solid var(--primary); }
.step-num { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; font-size: 0.7rem; font-weight: 700; padding: 2px 10px; border-radius: 10px; }
.step-item h4 { font-size: 0.9rem; margin-bottom: 4px; }
.step-item p { font-size: 0.78rem; color: var(--text-light); }

/* === CASE STUDY === */
.cases { background: var(--dark-bg); color: var(--text-white); }
.cases .section-title { color: white; }
.cases .section-sub { color: rgba(255,255,255,0.6); }
.case-card { display: grid; grid-template-columns: 280px 1fr auto; gap: 24px; align-items: center; background: var(--dark-card); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; transition: var(--transition); }
.case-card:hover { transform: translateX(4px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.case-img { height: 180px; background: linear-gradient(135deg, #1a4a5a, #2d6a7a); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-content h3 { font-size: 1.15rem; margin-bottom: 8px; }
.case-content p { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-bottom: 12px; line-height: 1.6; }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.case-tag { padding: 4px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; background: rgba(14,165,233,0.2); color: var(--primary); border: 1px solid rgba(14,165,233,0.3); }
.case-cta { padding: 0 24px; }
.case-cta a { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 500; white-space: nowrap; transition: var(--transition); }
.case-cta a:hover { color: var(--primary); }

/* === CHAT CONSULT === */
.consult { background: var(--bg-light); }
.consult-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.consult-hero h2 { font-size: 2.2rem; margin-bottom: 8px; font-family: 'Noto Sans JP', sans-serif; }
.consult-hero .subtitle { color: var(--text-light); margin-bottom: 20px; }
.consult-badges { display: flex; gap: 32px; margin-top: 24px; }
.badge-item { text-align: center; }
.badge-item .num { font-size: 2.2rem; font-weight: 800; font-family: 'Outfit'; color: var(--primary); }
.badge-item .label { font-size: 0.85rem; color: var(--text-light); }
.consult-img { display: flex; justify-content: center; }
.consult-img .placeholder { width: 260px; height: 260px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: white; box-shadow: 0 0 0 20px rgba(14,165,233,0.1); }

.advisor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.advisor-card { background: white; border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.advisor-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.advisor-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.advisor-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.advisor-info p { font-size: 0.8rem; color: var(--text-light); }
.advisor-status { margin-left: auto; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 10px; white-space: nowrap; }
.status-online { background: #D1FAE5; color: #065F46; }
.status-offline { background: #FEE2E2; color: #991B1B; }
.status-busy { background: #FEF3C7; color: #92400E; }

/* === CHAT MODAL === */
.chat-modal { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); justify-content: center; align-items: center; }
.chat-modal.active { display: flex; }
.chat-window { width: 420px; max-height: 80vh; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slideUp 0.3s ease; }
.chat-header { padding: 16px 20px; background: var(--primary); color: white; display: flex; align-items: center; gap: 12px; }
.chat-header .avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.chat-header .name { font-weight: 600; }
.chat-close { margin-left: auto; background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer; }
.chat-body { flex: 1; padding: 20px; overflow-y: auto; max-height: 400px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; }
.msg-them { background: var(--bg-light); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-me { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input { display: flex; padding: 12px; border-top: 1px solid #E2E8F0; gap: 8px; }
.chat-input input { flex: 1; padding: 10px 16px; border: 1px solid #E2E8F0; border-radius: 20px; outline: none; font-size: 0.9rem; }
.chat-input input:focus { border-color: var(--primary); }
.chat-input button { padding: 10px 20px; background: var(--primary); color: white; border: none; border-radius: 20px; font-weight: 600; cursor: pointer; }

/* === STATS === */
.stats { background: var(--bg-hero); color: white; text-align: center; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat-item .number { font-size: 3.5rem; font-weight: 800; font-family: 'Outfit'; }
.stat-item .label { font-size: 1rem; opacity: 0.85; margin-top: 4px; }

/* === FOOTER === */
.footer { background: #0F172A; color: rgba(255,255,255,0.7); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: white; margin-bottom: 16px; font-size: 1rem; }
.footer-brand { font-family: 'Outfit'; font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 12px; }
.footer-brand span { background: var(--bg-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; }

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero h1 { font-size: 2rem; }
  .visitor-grid, .service-grid, .advisor-grid { grid-template-columns: 1fr; }
  .curriculum-layout, .skill-layout, .consult-hero { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; }
  .case-img { height: 160px; }
  .steps-flow { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .visitor-detail ul { grid-template-columns: 1fr; }
}
