/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.6rem;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.8;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --navy: #0a1628;
  --navy-light: #162040;
  --blue: #1a5fa8;
  --blue-light: #e8f0fa;
  --accent: #2a8dd4;
  --cyan: #7fcdee;
  --white: #ffffff;
  --gray: #f5f7fa;
  --text: #1a1a2e;
  --text-light: #5a6070;
}

/* === Header === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  padding: 0 4%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.header-logo img { height: 46px; }
.nav { display: flex; gap: 3.2rem; align-items: center; }
.nav a {
  color: var(--text); font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0.05em; transition: color 0.2s;
  position: relative;
}
.nav a:hover { color: var(--accent); }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s;
}
.nav a:hover::after { width: 100%; }
.nav-sns { display: flex; gap: 1.2rem; margin-left: 2rem; }
.nav-sns a { width: 34px; height: 34px; border-radius: 50%; background: rgba(10,22,40,0.08); display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.nav-sns a::after { display: none; }
.nav-sns a:hover { background: var(--accent); transform: translateY(-2px); }
.nav-sns a:hover svg { fill: #fff; }
.nav-sns svg { width: 16px; height: 16px; fill: var(--text); }

/* Hamburger */
.hamburger { display: none; cursor: pointer; width: 30px; height: 24px; position: relative; z-index: 101; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--text); position: absolute; left: 0; transition: 0.3s; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }
.hamburger.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* === Hero === */
.hero {
  position: relative; min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2240 50%, #1a3a60 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 100px 4% 60px;
}
.hero-wave {
  position: absolute; bottom: -2px; left: 0; right: 0;
  fill: #fff; z-index: 1;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(42,141,212,0.1) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(127,205,238,0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(26,95,168,0.05) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero-catchcopy {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 4.4rem; color: #fff; line-height: 1.4; margin-bottom: 2rem; font-weight: 800;
}
.hero-catchcopy .accent { color: var(--accent); }
.hero-sub { font-size: 1.6rem; color: rgba(255,255,255,0.65); margin-bottom: 4rem; letter-spacing: 0.15em; }
.hero-chars { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-chars img {
  width: 80px; height: 80px; object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s;
}
.hero-chars img:hover { transform: scale(1.15); }
.hero-chars img:nth-child(2) { animation-delay: 0.4s; }
.hero-chars img:nth-child(3) { animation-delay: 0.8s; }
.hero-chars img:nth-child(4) { animation-delay: 1.2s; }
.hero-chars img:nth-child(5) { animation-delay: 1.6s; }
.hero-chars img:nth-child(6) { animation-delay: 2.0s; }
.hero-chars img:nth-child(7) { animation-delay: 2.4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-scroll {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.3); font-size: 1.2rem; letter-spacing: 0.2em;
  z-index: 2;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: rgba(255,255,255,0.2); margin: 10px auto 0;
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* === Page Hero (subpages) === */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2240 100%);
  padding: 130px 4% 80px; text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 3.6rem; color: #fff; margin-bottom: 0.8rem; font-weight: 800;
}
.page-hero .page-hero-sub { font-size: 1.3rem; color: rgba(255,255,255,0.5); letter-spacing: 0.2em; }
.page-hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; fill: #fff; }
.page-hero-chars {
  position: absolute; bottom: 20px; right: 5%;
  display: flex; gap: 0.8rem; opacity: 0.3;
}
.page-hero-chars img { width: 50px; height: 50px; object-fit: contain; }

/* === Section === */
.section { padding: 10rem 4%; }
.section--gray { background: var(--gray); }
.section--navy { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 3.2rem; text-align: center; margin-bottom: 0.8rem; font-weight: 800;
}
.section-subtitle {
  text-align: center; font-size: 1.3rem;
  color: var(--text-light); margin-bottom: 5rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.section--navy .section-subtitle { color: rgba(255,255,255,0.4); }
.section-wave-top { position: absolute; top: -2px; left: 0; right: 0; fill: var(--gray); transform: rotate(180deg); }
.section-wave-bottom { position: absolute; bottom: -2px; left: 0; right: 0; }

/* === About === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-text p { font-size: 1.6rem; line-height: 2.2; color: var(--text-light); margin-bottom: 2rem; }
.about-img { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.08); }

/* === Characters === */
.char-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.4rem; }
.char-card {
  background: #fff; border-radius: 20px; padding: 2.4rem 1.5rem;
  text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transition: transform 0.4s cubic-bezier(.175,.885,.32,1.275), box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.char-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform: scaleX(0); transition: transform 0.3s;
}
.char-card:hover::before { transform: scaleX(1); }
.char-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.char-card img { width: 100px; height: 100px; object-fit: contain; margin: 0 auto 1.2rem; }
.char-card .char-name { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 1.5rem; font-weight: 700; }
.char-card .char-species { font-size: 1.2rem; color: var(--text-light); margin-top: 0.4rem; }

/* === Karisme === */
.karisme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.karisme-text h3 { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 2.6rem; margin-bottom: 1.5rem; color: #fff; font-weight: 800; }
.karisme-text p { font-size: 1.5rem; color: rgba(255,255,255,0.65); line-height: 2.2; margin-bottom: 2.5rem; }
.karisme-visual {
  border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.karisme-visual img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease; }
.karisme-chars { display: flex; gap: 1.2rem; margin-top: 2rem; }
.karisme-chars img { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }

/* === SNS === */
.sns-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.sns-card {
  background: #fff; border-radius: 20px; padding: 3.5rem 2rem;
  text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.sns-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
.sns-icon { width: 56px; height: 56px; margin: 0 auto 1.8rem; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.sns-icon--x { background: #000; }
.sns-icon--ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sns-icon--tiktok { background: #010101; }
.sns-icon svg { width: 26px; height: 26px; fill: #fff; }
.sns-card h3 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.sns-card p { font-size: 1.3rem; color: var(--text-light); margin-bottom: 2rem; }
.sns-link {
  display: inline-block; padding: 1rem 2.4rem; border: 2px solid var(--blue);
  border-radius: 50px; font-size: 1.3rem; font-weight: 700; color: var(--blue);
  transition: 0.3s;
}
.sns-link:hover { background: var(--blue); color: #fff; }

/* === Buttons === */
.btn {
  display: inline-block; padding: 1.4rem 3.6rem; border-radius: 50px;
  font-size: 1.4rem; font-weight: 700; transition: 0.3s; letter-spacing: 0.05em;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #145090; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,95,168,0.3); }
.btn--outline { border: 2px solid #fff; color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-youtube {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: #ff0000; color: #fff; padding: 1.2rem 2.8rem;
  border-radius: 50px; font-size: 1.4rem; font-weight: 700; transition: 0.3s;
}
.btn-youtube:hover { background: #cc0000; transform: translateY(-2px); }
.btn-youtube svg { width: 20px; height: 20px; fill: #fff; }

/* === Company Info (profile page) === */
.company-table { width: 100%; max-width: 800px; margin: 0 auto; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid #e8eaef; }
.company-table th {
  text-align: left; padding: 1.8rem 2rem; font-size: 1.4rem;
  font-weight: 700; color: var(--blue); width: 160px; vertical-align: top;
}
.company-table td { padding: 1.8rem 2rem; font-size: 1.5rem; color: var(--text); }

/* === Business cards === */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.biz-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04); transition: transform 0.3s, box-shadow 0.3s;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
.biz-card-img { aspect-ratio: 16/10; overflow: hidden; }
.biz-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.biz-card:hover .biz-card-img img { transform: scale(1.05); }
.biz-card-body { padding: 3rem; }
.biz-card-body h3 { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 2rem; margin-bottom: 1.2rem; color: var(--navy); font-weight: 800; }
.biz-card-body p { font-size: 1.5rem; color: var(--text-light); line-height: 2; }

/* === Contact Form === */
.form-wrap { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 2.4rem; }
.form-group label {
  display: block; font-size: 1.4rem; font-weight: 700;
  margin-bottom: 0.8rem; color: var(--text);
}
.form-group label .required {
  background: #e74c3c; color: #fff; font-size: 1.1rem;
  padding: 0.2rem 0.6rem; border-radius: 4px; margin-left: 0.6rem;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 1.4rem 1.6rem; font-size: 1.5rem;
  border: 2px solid #e0e4ea; border-radius: 12px;
  font-family: inherit; transition: border-color 0.2s;
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 180px; resize: vertical; }
.form-submit { text-align: center; margin-top: 3rem; }
.form-submit .btn { min-width: 240px; cursor: pointer; border: none; font-family: inherit; }

/* === Map === */
.map-wrap { border-radius: 20px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.06); margin-top: 4rem; }
.map-wrap iframe { width: 100%; height: 400px; border: 0; }

/* === Legal (privacy/terms) === */
.legal-content { max-width: 800px; margin: 0 auto; font-family: 'M PLUS Rounded 1c', sans-serif; }
.legal-content h2 { font-size: 2.2rem; color: var(--navy); margin: 3.5rem 0 1.2rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--blue-light); }
.legal-content h3 { font-size: 1.8rem; color: var(--text); margin: 2.5rem 0 1rem; }
.legal-content p { font-size: 1.6rem; color: var(--text); margin-bottom: 1.5rem; line-height: 2; }
.legal-content ul { font-size: 1.6rem; color: var(--text); margin: 1rem 0 1.5rem 2rem; line-height: 2; }
.legal-content a { color: var(--blue); text-decoration: underline; }

/* === Footer === */
.footer {
  background: var(--navy); padding: 6rem 4% 3rem; color: rgba(255,255,255,0.6);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.footer-logo img { height: 36px; margin-bottom: 1.5rem; }
.footer-info { font-size: 1.3rem; line-height: 2.2; }
.footer-right { text-align: right; }
.footer-links { display: flex; gap: 2rem; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-links a { font-size: 1.3rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-sns { display: flex; gap: 1rem; justify-content: flex-end; }
.footer-sns a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.footer-sns a:hover { background: var(--accent); }
.footer-sns svg { width: 16px; height: 16px; fill: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 3rem auto 0; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; font-size: 1.2rem;
}

/* === Animations === */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.8s, transform 0.8s; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.8s, transform 0.8s; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* === Responsive === */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.active {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: rgba(10,22,40,0.98);
    justify-content: center; align-items: center;
    gap: 2.4rem; z-index: 100;
  }
  .nav.active a { font-size: 1.8rem; }
  .nav-sns { margin-left: 0; margin-top: 2rem; }
  .hamburger { display: block; }
  .hero-catchcopy { font-size: 2.8rem; }
  .hero-chars img { width: 55px; height: 55px; }
  .about-grid, .karisme-grid, .biz-grid { grid-template-columns: 1fr; gap: 3rem; }
  .char-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .char-card img { width: 80px; height: 80px; }
  .sns-grid { grid-template-columns: 1fr; }
  .section { padding: 6rem 4%; }
  .section-title { font-size: 2.4rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .footer-links { justify-content: flex-start; }
  .footer-sns { justify-content: flex-start; }
  .company-table th { width: 100px; font-size: 1.3rem; padding: 1.2rem 1rem; }
  .company-table td { padding: 1.2rem 1rem; font-size: 1.4rem; }
  .page-hero h1 { font-size: 2.6rem; }
}
