@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

/* ============================================
   ICCS Corporate Website — Shared Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

a {
  color: #0070C0;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #005a9e;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e8e8;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo img.logo-sym {
  height: 32px;
  width: auto;
}
.header-logo img.logo-txt {
  height: 18px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: #0070C0;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
  transition: all 0.3s;
}


/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav-overlay.open {
  display: flex;
}
.mobile-nav-overlay a {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1a1a1a;
}
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #1a1a1a;
  line-height: 1;
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 100px 40px 80px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-logo img.logo-sym {
  height: 80px;
  width: auto;
}
.hero-logo img.logo-txt {
  height: 28px;
  width: auto;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: #666;
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* --- Sections --- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

.section-gray {
  background: #fafafa;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.section-lead {
  font-size: 1.05rem;
  color: #666;
  font-weight: 400;
  line-height: 1.9;
  margin-bottom: 48px;
  max-width: 720px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0070C0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
  line-height: 1.7;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0070C0;
}
.card-link::after {
  content: ' \2192';
}

/* On gray background */
.section-gray .card {
  border-color: #e0e0e0;
}

/* --- Feature List --- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-item .feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #f0f7ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.feature-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

/* --- Stat / Number Highlight --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 48px 0;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0070C0;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.875rem;
  color: #888;
  margin-top: 4px;
}

/* --- News / Timeline --- */
.news-list {
  list-style: none;
}
.news-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  align-items: baseline;
}
.news-item:last-child {
  border-bottom: none;
}
.news-date {
  font-size: 0.85rem;
  color: #999;
  font-weight: 500;
  white-space: nowrap;
  min-width: 100px;
}
.news-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e8f2fc;
  color: #0070C0;
  white-space: nowrap;
}
.news-text {
  font-size: 0.95rem;
  color: #333;
}

/* --- Company Info Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}
.info-table tr {
  border-bottom: 1px solid #eee;
}
.info-table th {
  text-align: left;
  padding: 16px 24px 16px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
  vertical-align: top;
  width: 180px;
}
.info-table td {
  padding: 16px 0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: #0070C0;
  color: #ffffff;
}
.btn-primary:hover {
  background: #005a9e;
  color: #ffffff;
}
.btn-secondary {
  background: transparent;
  color: #0070C0;
  border: 1.5px solid #0070C0;
}
.btn-secondary:hover {
  background: #f0f7ff;
  color: #005a9e;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Page Header (for sub-pages) --- */
.page-header {
  background: #fafafa;
  padding: 60px 40px 48px;
  border-bottom: 1px solid #e8e8e8;
}
.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.page-header .page-desc {
  font-size: 1.05rem;
  color: #666;
  max-width: 640px;
  line-height: 1.8;
}

/* --- Page Hero Image --- */
.page-hero-image {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 32px;
}
.page-hero-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* --- Status Badge --- */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}
.badge-dev {
  background: #fff3e0;
  color: #e67e22;
}
.badge-live {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-prep {
  background: #f3e5f5;
  color: #7b1fa2;
}
.badge-beta {
  background: #e3f2fd;
  color: #0070C0;
}

/* --- Contact Section --- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* --- Footer --- */
.site-footer {
  background: #f5f5f5;
  border-top: 1px solid #e8e8e8;
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer-logo img.logo-sym {
  height: 24px;
  width: auto;
}
.footer-logo img.logo-txt {
  height: 14px;
  width: auto;
}
.footer-copy {
  font-size: 0.8rem;
  color: #999;
}
.footer-nav {
  display: flex;
  gap: 40px;
}
.footer-nav-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer-nav-col a {
  display: block;
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 8px;
}
.footer-nav-col a:hover {
  color: #0070C0;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-blue { color: #0070C0; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-nav {
    gap: 24px;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 20px;
  }
  .main-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero {
    padding: 60px 20px 48px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
  .hero-logo img.logo-sym {
    height: 60px;
  }

  .section {
    padding: 48px 20px;
  }
  .page-header {
    padding: 40px 20px 32px;
  }
  .page-header h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .card-grid,
  .card-grid-3,
  .card-grid-4,
  .feature-list,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .info-table th {
    display: block;
    padding-bottom: 4px;
    width: 100%;
  }
  .info-table td {
    display: block;
    padding-top: 0;
    padding-bottom: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 32px;
  }

  .btn-group {
    flex-direction: column;
  }
  .btn {
    justify-content: center;
  }

  .news-item {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.3rem;
  }
  .stat-number {
    font-size: 2rem;
  }
}
