/*
Theme Name: PRISM
Theme URI: https://prism-ai.jp
Author: PRISM
Description: CARTA Holdings inspired dark minimal corporate theme
Version: 1.0
Text Domain: prism
*/

:root {
  --bg: #0a0a0a;
  --bg2: #111;
  --bg3: #1a1a1a;
  --text: #fff;
  --text2: #999;
  --text3: #666;
  --border: #222;
  --flare: #f87171;
  --lucid: #3b82f6;
  --accent: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}

.site-header.scrolled {
  height: 64px;
  background: rgba(10,10,10,0.95);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 3px;
}

.site-logo img {
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text2);
  transition: color 0.3s;
  position: relative;
}

.site-nav a:hover,
.site-nav a.current {
  color: var(--text);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-sub {
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--text3);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero p {
  font-size: 17px;
  color: var(--text2);
  max-width: 500px;
  line-height: 2;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 60px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-scroll::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--text3);
}

/* ===== SECTIONS ===== */
.section {
  padding: 140px 60px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 48px;
  letter-spacing: 1px;
}

.section-desc {
  font-size: 16px;
  color: var(--text2);
  max-width: 600px;
  line-height: 2;
  margin-bottom: 60px;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2px;
}

.service-card {
  background: var(--bg2);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.service-card:hover {
  background: var(--bg3);
}

.service-card .service-num {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text3);
  margin-bottom: 32px;
}

.service-card h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.service-card .service-sub {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 24px;
}

.service-card .service-desc {
  font-size: 15px;
  color: var(--text3);
  line-height: 2;
  flex: 1;
}

.service-card .service-link {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
  margin-top: 32px;
}

.service-card .service-link:hover {
  color: var(--text);
}

.service-card .service-link::after {
  content: '→';
  transition: transform 0.3s;
}

.service-card .service-link:hover::after {
  transform: translateX(4px);
}

.service-card.flare h3 { color: var(--flare); }
.service-card.lucid h3 { color: var(--lucid); }

/* ===== NUMBERS ===== */
.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-top: 60px;
}

.number-item .number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.number-item .number-label {
  font-size: 14px;
  color: var(--text3);
  letter-spacing: 1px;
}

/* ===== COMPANY ===== */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}

.company-info table {
  width: 100%;
  border-collapse: collapse;
}

.company-info th,
.company-info td {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}

.company-info th {
  color: var(--text3);
  font-weight: 400;
  width: 140px;
  letter-spacing: 1px;
}

/* ===== NEWS ===== */
.news-list {
  margin-top: 40px;
}

.news-item {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.3s;
}

.news-item:hover {
  opacity: 0.7;
}

.news-date {
  font-size: 14px;
  color: var(--text3);
  letter-spacing: 1px;
  min-width: 120px;
}

.news-cat {
  font-size: 12px;
  padding: 2px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text3);
  min-width: 80px;
  text-align: center;
}

.news-title {
  font-size: 15px;
  color: var(--text);
}

/* ===== CTA ===== */
.cta-section {
  padding: 120px 60px;
  text-align: center;
  background: var(--bg2);
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text2);
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 16px 48px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  border: 1px solid var(--text);
  color: var(--text);
  transition: all 0.3s;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-flare { border-color: var(--flare); color: var(--flare); }
.btn-flare:hover { background: var(--flare); color: #fff; }
.btn-lucid { border-color: var(--lucid); color: var(--lucid); }
.btn-lucid:hover { background: var(--lucid); color: #fff; }

/* ===== FOOTER ===== */
.site-footer {
  padding: 80px 60px 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text3);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text2);
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text3);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text3);
  font-size: 13px;
}

/* ===== PAGE ===== */
.page-hero {
  padding: 160px 60px 80px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: 2px;
}

.page-hero .page-sub {
  font-size: 14px;
  color: var(--text3);
  letter-spacing: 3px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.page-content {
  padding: 80px 60px;
  max-width: 900px;
}

.page-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 60px 0 24px;
  letter-spacing: 1px;
}

.page-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 16px;
}

.page-content p {
  margin-bottom: 24px;
  color: var(--text2);
  line-height: 2;
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
}

.blog-card:hover {
  border-color: #333;
}

.blog-card-img {
  height: 200px;
  background: var(--bg3);
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-date {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header { padding: 0 24px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 200;
  }
  .site-nav.open a { font-size: 20px; }
  .nav-toggle { display: block; z-index: 201; }
  .hero { padding: 0 24px; }
  .hero h1 { font-size: 28px; }
  .hero-scroll { left: 24px; }
  .section { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 40px 24px; min-height: auto; }
  .company-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-section { padding: 80px 24px; }
  .page-hero { padding: 120px 24px 60px; }
  .page-content { padding: 40px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}


/* ===== PHILOSOPHY POINTS ===== */
.philosophy-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.phil-item {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.phil-num {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--text3);
  margin-bottom: 20px;
}

.phil-item p {
  font-size: 16px;
  color: var(--text2);
  line-height: 2;
}

/* ===== VALUES GRID ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  margin-top: 60px;
}

.value-item {
  background: var(--bg2);
  padding: 48px 36px;
  transition: background 0.3s;
}

.value-item:hover {
  background: var(--bg3);
}

.value-num {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text3);
  margin-bottom: 20px;
}

.value-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.value-item p {
  font-size: 15px;
  color: var(--text3);
  line-height: 1.9;
}

/* ===== COMPANY PAGE DETAIL ===== */
.company-section {
  padding: 100px 60px;
  border-top: 1px solid var(--border);
}

.company-section .section-quote {
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.company-section .section-body {
  font-size: 16px;
  color: var(--text2);
  line-height: 2.2;
  max-width: 700px;
}

.ceo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ceo-name {
  font-size: 14px;
  color: var(--text3);
  letter-spacing: 2px;
  margin-top: 40px;
}

.ceo-name span {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 768px) {
  .philosophy-points { grid-template-columns: 1fr; gap: 0; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item { padding: 32px 24px; }
  .ceo-section { grid-template-columns: 1fr; gap: 40px; }
  .company-section { padding: 60px 24px; }
}


/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
}

.pricing-card {
  background: var(--bg2);
  padding: 40px 32px;
  border-top: 2px solid var(--flare);
  transition: background 0.3s;
}

.pricing-card:hover {
  background: var(--bg3);
}

.pricing-name {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text3);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--text3);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  padding: 0;
}

.pricing-features li {
  font-size: 15px;
  color: var(--text2);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li::before {
  content: '✓ ';
  color: var(--flare);
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.faq-q {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.faq-q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--text3);
}

.faq-a {
  font-size: 15px;
  color: var(--text2);
  line-height: 2;
  padding-left: 24px;
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}


/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.contact-card {
  background: var(--bg2);
  padding: 48px 40px;
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-card p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.9;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 32px 24px; }
}

/* ===== PRISM RAINBOW ===== */
.service-card.prism-rainbow {
  background: linear-gradient(135deg, rgba(248,113,113,0.05), rgba(59,130,246,0.05));
}
.service-card.prism-rainbow:hover {
  background: linear-gradient(135deg, rgba(248,113,113,0.1), rgba(59,130,246,0.1));
}

/* ===== TECH GRID ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}

.tech-item {
  background: var(--bg2);
  padding: 36px 32px;
  transition: background 0.3s;
}

.tech-item:hover {
  background: var(--bg3);
}

.tech-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.tech-desc {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.8;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .tech-grid { grid-template-columns: 1fr; }
}

/* Screen reader only - for SEO H1 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
