/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal: #4BA8A8;
  --teal-dark: #3A8E8E;
  --teal-light: #6BC4C4;
  --dark: #0D1117;
  --dark-soft: #161B22;
  --gray-900: #1A1E26;
  --gray-800: #242A35;
  --gray-700: #333B48;
  --gray-400: #8B949E;
  --gray-300: #B0B8C4;
  --gray-100: #E6EDF3;
  --white: #FFFFFF;
  --accent-gradient: linear-gradient(135deg, var(--teal), #6FD5D5, #89E0E0);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --section-gap: clamp(80px, 10vw, 140px);
}

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

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background: var(--dark);
  color: var(--gray-100);
  overflow-x: hidden;
  line-height: 1.7;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ========== SCROLL REVEALS ========== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ========== NAVBAR ========== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 clamp(24px,4vw,60px); height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(13,17,23,0.7);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
nav.scrolled { background: rgba(13,17,23,0.92); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--white); text-decoration: none; }
.nav-logo span { color: var(--teal); }

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--gray-300); font-size: 0.85rem; font-weight: 500;
  position: relative; transition: color 0.3s ease; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--accent-gradient); border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--teal-light); }
.nav-links a.active::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { display: none; }
.nav-dropdown-content {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: rgba(22,27,34,0.96); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 12px 0; min-width: 220px; z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a {
  display: block; padding: 8px 20px; font-size: 0.82rem; color: var(--gray-300);
  transition: all 0.2s ease; white-space: nowrap;
}
.nav-dropdown-content a::after { display: none; }
.nav-dropdown-content a:hover { color: var(--white); background: rgba(75,168,168,0.08); }

.nav-cta {
  background: var(--accent-gradient) !important; color: var(--dark) !important;
  padding: 8px 20px !important; border-radius: 8px; font-weight: 600 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(75,168,168,0.35); }

.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* ========== PAGE HERO (subpages) ========== */
.page-hero {
  padding: 140px clamp(24px,6vw,80px) 80px;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero-bg::before {
  content: ''; position: absolute; width: 600px; height: 600px; top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(75,168,168,0.12) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite;
}
.page-hero .grid-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image: linear-gradient(rgba(75,168,168,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,168,168,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 800px; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--teal);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px;
}
.page-hero-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent-gradient); border-radius: 2px; }
.page-hero h1 {
  font-size: clamp(2.4rem,5vw,4rem); font-weight: 900; line-height: 1.1;
  letter-spacing: -0.03em; color: var(--white); margin-bottom: 20px;
}
.page-hero h1 .gradient-text {
  background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero .hero-desc {
  font-size: clamp(0.95rem,1.4vw,1.1rem); color: var(--gray-400);
  line-height: 1.8; max-width: 640px;
}

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.05); }
  66% { transform: translate(-20px,20px) scale(0.97); }
}

/* ========== SECTION LAYOUTS ========== */
section, .content-section {
  padding: var(--section-gap) clamp(24px,6vw,80px);
  position: relative;
}
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; color: var(--teal);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--accent-gradient); border-radius: 2px; }
.section-title {
  font-size: clamp(2rem,4vw,3.2rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--white); margin-bottom: 20px;
}
.section-desc {
  font-size: clamp(0.95rem,1.3vw,1.1rem); color: var(--gray-400);
  max-width: 640px; line-height: 1.8;
}
.alt-bg {
  background: var(--dark-soft);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px;
  background: var(--accent-gradient); color: var(--dark);
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(75,168,168,0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px;
  background: transparent; color: var(--gray-100);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid var(--gray-700); cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-light); background: rgba(75,168,168,0.06); }

/* ========== GLASS CARDS ========== */
.glass-card {
  padding: 28px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.glass-card:hover {
  background: rgba(255,255,255,0.06); border-color: rgba(75,168,168,0.15);
  transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* ========== GRID LAYOUTS ========== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ========== IMAGE CONTAINERS ========== */
.img-rounded {
  border-radius: 16px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}
.img-rounded img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.img-rounded:hover img { transform: scale(1.03); }

/* ========== FEATURE LIST ========== */
.feature-item {
  padding: 24px; border-radius: 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  text-align: center; transition: all 0.4s ease;
}
.feature-item:hover {
  border-color: rgba(75,168,168,0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(75,168,168,0.15), rgba(75,168,168,0.05));
  border: 1px solid rgba(75,168,168,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.4rem; color: var(--teal);
}
.feature-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-desc { font-size: 0.85rem; color: var(--gray-400); line-height: 1.6; }

/* ========== NEWS CARDS (blog list) ========== */
.blog-card {
  display: flex; gap: 24px; padding: 28px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  text-decoration: none;
}
.blog-card:hover {
  background: rgba(255,255,255,0.06); border-color: rgba(75,168,168,0.15);
  transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.blog-card-img {
  width: 200px; min-height: 150px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: var(--gray-800);
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { flex: 1; }
.blog-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px;
}
.blog-date { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 10px; }
.blog-title { font-size: 1.1rem; font-weight: 700; color: var(--white); line-height: 1.5; margin-bottom: 10px; }
.blog-excerpt { font-size: 0.85rem; color: var(--gray-400); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ========== FORM ========== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-300);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 18px; border-radius: 10px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--white); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(75,168,168,0.15);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select { cursor: pointer; appearance: none; }
.form-select option { background: var(--dark-soft); color: var(--white); }

/* ========== COMPANY INFO TABLE ========== */
.info-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.info-table tr { border-bottom: 1px solid var(--glass-border); }
.info-table th {
  text-align: left; padding: 18px 20px; font-size: 0.85rem;
  font-weight: 600; color: var(--teal); white-space: nowrap;
  width: 200px; vertical-align: top;
}
.info-table td { padding: 18px 20px; font-size: 0.92rem; color: var(--gray-100); line-height: 1.7; }

/* ========== CTA SECTION ========== */
.cta-section { text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(75,168,168,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-title { font-size: clamp(2rem,4vw,3rem); font-weight: 800; color: var(--white); margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-desc { font-size: 1.05rem; color: var(--gray-400); margin-bottom: 36px; line-height: 1.7; }

/* ========== FOOTER ========== */
footer {
  padding: 48px clamp(24px,6vw,80px);
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-left .footer-logo { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.footer-left .footer-logo span { color: var(--teal); }
.footer-copy { font-size: 0.8rem; color: var(--gray-400); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: var(--gray-400); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--teal-light); }
.social-links { display: flex; gap: 16px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); text-decoration: none; transition: all 0.3s ease;
}
.social-links a:hover { background: rgba(75,168,168,0.1); border-color: rgba(75,168,168,0.3); color: var(--teal-light); transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }

/* ========== CURSOR GLOW ========== */
.cursor-glow {
  position: fixed; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(75,168,168,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 9999; transform: translate(-50%,-50%);
  transition: opacity 0.3s ease; opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* ========== BLOG ARTICLE ========== */
.article-hero-img {
  width: 100%; max-height: 480px; border-radius: 16px; overflow: hidden;
  margin-top: 32px; background: var(--gray-800);
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.article-meta {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  margin-top: 20px; font-size: 0.85rem; color: var(--gray-400);
}
.article-meta .meta-tag {
  display: inline-block; padding: 4px 14px; border-radius: 6px;
  background: rgba(75,168,168,0.12); color: var(--teal); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
}

.article-body {
  max-width: 780px; margin: 0 auto;
  padding: var(--section-gap) clamp(24px,6vw,80px) 60px;
}
.article-body h2 {
  font-size: clamp(1.4rem,2.5vw,1.8rem); font-weight: 800;
  color: var(--white); margin: 48px 0 20px; letter-spacing: -0.02em;
  line-height: 1.3;
}
.article-body h3 {
  font-size: clamp(1.1rem,2vw,1.35rem); font-weight: 700;
  color: var(--white); margin: 36px 0 16px; line-height: 1.4;
}
.article-body p {
  font-size: 1rem; color: var(--gray-300); line-height: 1.9;
  margin-bottom: 24px;
}
.article-body ul, .article-body ol {
  padding-left: 24px; margin-bottom: 24px;
}
.article-body li {
  font-size: 1rem; color: var(--gray-300); line-height: 1.9;
  margin-bottom: 8px;
}
.article-body strong { color: var(--white); font-weight: 700; }
.article-body em { color: var(--gray-300); }
.article-body a { color: var(--teal-light); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--teal); }
.article-body blockquote {
  border-left: 3px solid var(--teal); padding: 16px 24px; margin: 32px 0;
  background: rgba(75,168,168,0.05); border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--gray-300);
}
.article-body img {
  border-radius: 12px; margin: 32px 0; width: 100%;
}
.article-body figure {
  margin: 32px 0;
}
.article-body figcaption {
  font-size: 0.82rem; color: var(--gray-400); text-align: center;
  margin-top: 10px; font-style: italic;
}

.article-tags {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 40px clamp(24px,6vw,80px); max-width: calc(780px + clamp(48px,12vw,160px)); margin: 0 auto;
}
.article-tags .tag {
  padding: 6px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--gray-400); transition: all 0.3s ease;
}
.article-tags .tag:hover { border-color: var(--teal); color: var(--teal-light); }

.related-posts {
  padding: 0 clamp(24px,6vw,80px) 60px;
  max-width: calc(780px + clamp(48px,12vw,160px)); margin: 0 auto;
}
.related-posts h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 24px;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.related-card {
  padding: 20px; border-radius: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  text-decoration: none; transition: all 0.3s ease;
}
.related-card:hover {
  background: rgba(255,255,255,0.06); border-color: rgba(75,168,168,0.15);
  transform: translateY(-2px);
}
.related-card .blog-tag { margin-bottom: 6px; }
.related-card .blog-date { margin-bottom: 8px; }
.related-card .blog-title { font-size: 0.95rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .blog-card { flex-direction: column; }
  .blog-card-img { width: 100%; height: 180px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  footer { flex-direction: column; text-align: center; }
  .footer-links, .social-links { justify-content: center; }
  .info-table th { width: auto; display: block; padding-bottom: 4px; }
  .info-table td { display: block; padding-top: 4px; }
}
