/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #012369;
  --navy2: #0d2a7a;
  --blue: #1a4db8;
  --blue-light: #4d7fff;
  --red: #bc002d;
  --white: #ffffff;
  --off-white: #f5f7fb;
  --light: #eef1f8;
  --gray: #d8dde8;
  --dark-text: #0a1628;
  --mid-text: #3d4f6e;
  --muted: #8493b0;
  --font: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark-text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray);
  box-shadow: 0 1px 20px rgba(1,35,105,0.06);
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 42px; height: 42px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 13px; letter-spacing: 1px;
  position: relative;
}
.logo-mark::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px; background: var(--red);
}
.logo-text strong { display: block; font-size: 16px; font-weight: 900; color: var(--navy); letter-spacing: 2px; }
.logo-text span { font-size: 10px; color: var(--muted); letter-spacing: 1px; }
nav { display: flex; align-items: center; gap: 40px; }
nav a { font-size: 12px; font-weight: 600; color: var(--mid-text); letter-spacing: 2px; text-transform: uppercase; transition: color 0.2s; }
nav a:hover { color: var(--navy); }
.btn-consult {
  background: var(--red) !important; color: white !important;
  padding: 10px 24px !important; font-size: 12px !important;
  font-weight: 700 !important; letter-spacing: 2px !important;
  text-transform: uppercase !important; border: none !important;
  transition: all 0.2s !important;
}
.btn-consult:hover { background: #9a0024 !important; transform: translateY(-1px) !important; box-shadow: 0 4px 16px rgba(188,0,45,0.3) !important; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; padding-top: 72px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--off-white) 0%, var(--off-white) 48%, var(--navy) 48%, var(--navy) 100%);
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 48%; width: 4px; height: 100%;
  background: var(--red); z-index: 3;
}
.hero-stripe { display: none; }
.hero-stripe-pattern {
  position: absolute; top: 0; right: 0;
  width: 52%; height: 100%;
  opacity: 0.04; z-index: 1;
  background-image: linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-red-bar { display: none; }
.hero-inner {
  max-width: 1400px; margin: 0 auto; padding: 80px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  position: relative; z-index: 2; width: 100%;
}
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-eyebrow::before { content: ''; width: 36px; height: 2px; background: var(--red); }
.hero-eyebrow span { font-size: 11px; letter-spacing: 4px; color: var(--red); text-transform: uppercase; font-weight: 600; }
.hero h1 { font-size: clamp(36px, 4.5vw, 62px); font-weight: 900; color: var(--dark-text); line-height: 1.1; margin-bottom: 24px; letter-spacing: -2px; }
.hero h1 .highlight { display: block; color: var(--navy); }
.hero-sub { font-size: 15px; color: var(--mid-text); line-height: 1.9; margin-bottom: 48px; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.btn-red { background: var(--red); color: white; padding: 16px 36px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; border: none; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 10px; }
.btn-red:hover { background: #9a0024; transform: translateX(4px); box-shadow: 0 8px 24px rgba(188,0,45,0.3); }
.btn-navy-ghost { color: var(--navy); font-size: 13px; font-weight: 600; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--navy); padding-bottom: 2px; transition: all 0.3s; }
.btn-navy-ghost:hover { gap: 16px; }

/* hero right panel */
.hero-panel { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 48px; border: 1px solid rgba(255,255,255,0.15); }
.hero-panel-title { font-size: 10px; letter-spacing: 4px; color: rgba(255,255,255,0.5); text-transform: uppercase; margin-bottom: 32px; display: flex; align-items: center; gap: 12px; }
.hero-panel-title::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.15); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.1); margin-bottom: 32px; }
.stat-box { background: rgba(255,255,255,0.06); padding: 28px 24px; }
.stat-num { font-size: 40px; font-weight: 900; color: white; line-height: 1; }
.stat-num span { font-size: 18px; color: rgba(255,255,255,0.5); }
.stat-label { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 2px; margin-top: 6px; text-transform: uppercase; }
.hero-profile { display: flex; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,0.3); flex-shrink: 0; }
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-profile-info strong { display: block; color: white; font-size: 14px; }
.hero-profile-info span { font-size: 11px; color: rgba(255,255,255,0.5); }

/* ===== SECTION BASE ===== */
.sec { padding: 120px 40px; }
.sec-inner { max-width: 1400px; margin: 0 auto; }
.sec-label { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sec-label::before { content: ''; width: 32px; height: 2px; background: var(--red); }
.sec-label span { font-size: 11px; letter-spacing: 4px; color: var(--red); text-transform: uppercase; font-weight: 600; }
.sec-title { font-size: clamp(28px, 3.5vw, 48px); font-weight: 900; letter-spacing: -1px; line-height: 1.1; color: var(--dark-text); }

/* ===== SERVICES ===== */
.services-sec { background: var(--off-white); }
.services-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.srv-card {
  background: white; border: 1px solid var(--gray);
  padding: 52px 44px; position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.srv-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gray); transition: background 0.3s; }
.srv-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(1,35,105,0.1); border-color: transparent; }
.srv-card:hover::before { background: var(--navy); }
.srv-card.gold-card { background: var(--navy); border-color: var(--navy); }
.srv-card.gold-card::before { background: var(--red); }
.srv-card.green-card { background: white; border: 2px solid var(--red); }
.srv-card.green-card::before { background: var(--red); }
.srv-num { font-size: 11px; letter-spacing: 3px; color: var(--gray); margin-bottom: 20px; font-weight: 700; }
.srv-card.gold-card .srv-num { color: rgba(255,255,255,0.2); }
.srv-tag { display: inline-block; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; padding: 4px 14px; margin-bottom: 20px; font-weight: 700; }
.srv-tag.gold-tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }
.srv-tag.green-tag { background: rgba(188,0,45,0.08); color: var(--red); border: 1px solid rgba(188,0,45,0.25); }
.srv-icon { font-size: 40px; margin-bottom: 20px; }
.srv-title {
  font-size: 28px;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-weight: 500;
  color: var(--dark-text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.srv-card.gold-card .srv-title { color: white; }
.srv-card.green-card .srv-title { color: var(--red); }
.srv-desc { font-size: 14px; color: var(--mid-text); line-height: 1.9; margin-bottom: 32px; }
.srv-card.gold-card .srv-desc { color: rgba(255,255,255,0.65); }
.srv-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; font-weight: 600; transition: all 0.3s; }
.srv-link:hover { color: var(--navy); gap: 16px; }
.srv-card.gold-card .srv-link { color: rgba(255,255,255,0.4); }
.srv-card.gold-card .srv-link:hover { color: white; }
.srv-card.green-card .srv-link { color: var(--red); }
.srv-small-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 24px; }

/* ===== YOUTUBE ===== */
.youtube-sec { background: white; border-top: 1px solid var(--light); }
.youtube-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 64px; }
.yt-thumb { background: var(--navy); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.yt-thumb::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--red); }
.yt-play { width: 64px; height: 64px; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 22px; color: white; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.yt-play:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(188,0,45,0.4); }
.yt-label { position: absolute; bottom: 12px; left: 16px; }
.yt-label p { color: white; font-size: 14px; font-weight: 700; }
.yt-label span { color: rgba(255,255,255,0.5); font-size: 12px; }
.yt-topics { margin: 28px 0; display: flex; flex-direction: column; gap: 0; }
.yt-topic { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--light); font-size: 14px; color: var(--mid-text); transition: color 0.2s; }
.yt-topic:hover { color: var(--navy); }
.yt-topic::before { content: ''; width: 6px; height: 6px; background: var(--red); flex-shrink: 0; border-radius: 50%; }
.btn-yt { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: white; padding: 14px 28px; font-size: 13px; font-weight: 700; letter-spacing: 1px; transition: all 0.3s; }
.btn-yt:hover { background: #9a0024; transform: translateX(4px); }

/* ===== AI CHAT ===== */
.ai-sec { background: var(--navy); }
.ai-sec .sec-label::before { background: rgba(255,255,255,0.3); }
.ai-sec .sec-label span { color: rgba(255,255,255,0.5); }
.ai-sec .sec-title { color: white; }
.ai-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 64px; }
.ai-desc { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.9; margin-bottom: 32px; }
.ai-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.ai-feat { display: flex; align-items: flex-start; gap: 16px; }
.ai-feat-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ai-feat-text strong { display: block; color: white; font-size: 14px; margin-bottom: 2px; }
.ai-feat-text span { font-size: 13px; color: rgba(255,255,255,0.4); }
.chat-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.chat-box-header { padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 8px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; }
.chat-box-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.cmsg { display: flex; gap: 10px; }
.cmsg.u { flex-direction: row-reverse; }
.cmsg-av { width: 32px; height: 32px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.cmsg.u .cmsg-av { background: var(--red); }
.cmsg-txt { background: rgba(255,255,255,0.07); padding: 12px 16px; font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.7; max-width: 80%; }
.cmsg.u .cmsg-txt { background: rgba(188,0,45,0.2); color: rgba(255,255,255,0.85); }

/* ===== PROFILE ===== */
.profile-sec { background: var(--off-white); border-top: 1px solid var(--light); }
.profile-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; margin-top: 64px; }
.profile-img-wrap { position: static; }
.profile-img-wrap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.profile-img-caption { padding: 16px 0; border-top: 3px solid var(--navy); margin-top: 0; display: flex; justify-content: space-between; align-items: center; }
.profile-img-caption strong { font-size: 14px; font-weight: 800; color: var(--navy); }
.profile-img-caption span { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.profile-content h2 { font-size: clamp(36px,4vw,52px); font-weight: 900; letter-spacing: -2px; margin-bottom: 4px; color: var(--dark-text); }
.profile-content .name-kana { font-size: 12px; letter-spacing: 3px; color: var(--muted); margin-bottom: 32px; text-transform: uppercase; }
.profile-content p { font-size: 15px; color: var(--mid-text); line-height: 2; margin-bottom: 20px; }
.profile-quals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
.qual-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: white; border-left: 3px solid var(--navy); border: 1px solid var(--gray); border-left: 3px solid var(--navy); }
.qual-item span { font-size: 13px; font-weight: 600; color: var(--dark-text); }
.qual-company { border-left-color: var(--muted) !important; }
.qual-company span { color: var(--muted); }

/* ===== CONTACT ===== */
.contact-sec { background: white; border-top: 1px solid var(--light); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 64px; }
.contact-info p { color: var(--mid-text); font-size: 15px; line-height: 1.9; margin-bottom: 40px; }
.contact-detail { display: flex; flex-direction: column; gap: 0; }
.c-detail-item { display: flex; align-items: flex-start; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--light); }
.c-detail-label { font-size: 10px; letter-spacing: 2px; color: var(--red); text-transform: uppercase; font-weight: 700; min-width: 70px; padding-top: 2px; }
.c-detail-val { color: var(--dark-text); font-size: 14px; line-height: 1.7; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; background: var(--off-white); border: 1px solid var(--gray); color: var(--dark-text); font-size: 14px; font-family: var(--font); outline: none; transition: border-color 0.3s, background 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--navy); background: white; }
.form-group textarea { min-height: 120px; resize: none; }
.btn-submit-main { width: 100%; padding: 18px; background: var(--navy); color: white; border: none; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; cursor: pointer; transition: all 0.3s; margin-top: 8px; }
.btn-submit-main:hover { background: var(--red); }

/* ===== FOOTER ===== */
.footer { background: var(--navy); padding: 64px 40px 32px; }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand .logo-text strong { color: white; }
.footer-brand .logo-text span { color: rgba(255,255,255,0.3); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.9; }
.footer h4 { font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,0.4); text-transform: uppercase; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul li a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); letter-spacing: 1px; }

/* ===== FLOAT CHAT ===== */
.float-chat { position: fixed; bottom: 32px; right: 32px; z-index: 900; background: var(--navy); color: white; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; border: none; box-shadow: 0 8px 24px rgba(1,35,105,0.3); transition: transform 0.3s; }
.float-chat:hover { transform: scale(1.1); background: var(--red); }
.chat-window { position: fixed; bottom: 104px; right: 32px; z-index: 900; width: 360px; background: white; border: 1px solid var(--gray); display: none; flex-direction: column; box-shadow: 0 20px 60px rgba(1,35,105,0.15); }
.chat-window.open { display: flex; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.chat-win-header { background: var(--navy); padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.chat-win-avatar { width: 36px; height: 36px; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.chat-win-info strong { display: block; font-size: 13px; color: white; }
.chat-win-info span { font-size: 11px; color: rgba(255,255,255,0.4); }
.chat-win-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 18px; cursor: pointer; }
.chat-win-body { padding: 20px; flex: 1; overflow-y: auto; max-height: 300px; display: flex; flex-direction: column; gap: 14px; }
.chat-win-msg { display: flex; gap: 8px; }
.chat-win-msg.user { flex-direction: row-reverse; }
.cw-avatar { width: 30px; height: 30px; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.cw-avatar.user-av { background: var(--red); }
.cw-bubble { background: var(--off-white); padding: 10px 14px; font-size: 13px; color: var(--mid-text); line-height: 1.6; max-width: 80%; }
.chat-win-msg.user .cw-bubble { background: var(--navy); color: white; }
.chat-win-footer { padding: 14px 16px; border-top: 1px solid var(--light); display: flex; gap: 8px; }
.chat-win-footer input { flex: 1; padding: 10px 12px; background: var(--off-white); border: 1px solid var(--gray); color: var(--dark-text); font-size: 13px; font-family: var(--font); outline: none; }
.chat-win-footer input:focus { border-color: var(--navy); }
.chat-send { background: var(--navy); color: white; border: none; width: 36px; cursor: pointer; font-size: 16px; font-weight: 700; transition: background 0.2s; }
.chat-send:hover { background: var(--red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-layout { grid-template-columns: 1fr; }
  .youtube-layout, .ai-layout, .profile-layout, .contact-layout { grid-template-columns: 1fr; }
  .srv-small-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stripe, .hero-stripe-pattern, .hero-red-bar { width: 50%; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .hero-stripe { width: 100%; clip-path: none; opacity: 0.15; }
  .sec { padding: 80px 24px; }
  .header-inner { padding: 0 24px; }
  .srv-small-grid { grid-template-columns: 1fr; }
  .chat-window { width: calc(100vw - 32px); right: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
