/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
  --primary: #007bff;
  --primary-hover: #0056b3;
  --primary-soft: #eaf4ff;
  --accent: #2c3e50;
  --accent-light: #475569;
  --bg-main: #f7f9fb;
  --surface: #ffffff;
  --text-main: #2b303a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--primary);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Layout & Common Components
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background-color: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-sub {
  background-color: #ffffff;
  color: var(--accent) !important;
  border: 1px solid var(--border-color);
}

.btn-sub:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 38px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-item a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 0;
  position: relative;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.2s ease;
}

.nav-item a:hover {
  color: var(--primary);
}

.nav-item a:hover::after,
.nav-item a.is-current::after {
  width: 100%;
}

.nav-item a.is-current {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--accent);
  margin: 5px 0;
  transition: var(--transition);
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 100px 0 90px;
  background: linear-gradient(145deg, #ffffff 0%, #edf4fc 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.35;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, #007bff 0%, #7b42f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 123, 255, 0.3);
}

.service-card-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f1f5f9;
}

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

.service-card:hover .service-card-media img {
  transform: scale(1.04);
}

.service-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-tag {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.service-card-title {
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 700;
}

.service-card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.service-link-item {
  font-size: 0.925rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link-item::after {
  content: '→';
  transition: transform 0.2s;
}

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

/* ==========================================================================
   Product Section (Active PDF Craft Summary)
   ========================================================================== */
.product-box {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 1px solid #d4e6fc;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.product-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.product-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

.product-features {
  list-style: none;
  margin-bottom: 32px;
}

.product-features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-card-preview {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.preview-stat {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.preview-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.doc-links-card {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.doc-links-card a {
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-list {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: #f8fafc;
}

.news-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 140px;
  flex-shrink: 0;
}

.news-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #e2e8f0;
  color: #475569;
  border-radius: 4px;
  margin-right: 20px;
  flex-shrink: 0;
}

.news-badge.badge-primary {
  background-color: var(--primary-soft);
  color: var(--primary);
}

.news-title {
  font-size: 0.975rem;
  color: var(--text-main);
  flex-grow: 1;
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about-table-wrap {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.about-table th,
.about-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.about-table tr:last-child th,
.about-table tr:last-child td {
  border-bottom: none;
}

.about-table th {
  width: 24%;
  background-color: #f8fafc;
  font-weight: 600;
  color: var(--accent);
  vertical-align: top;
}

.about-table td {
  color: var(--text-main);
  line-height: 1.7;
}

.timeline-list {
  list-style: none;
}

.timeline-list li {
  margin-bottom: 6px;
  display: flex;
  gap: 16px;
}

.timeline-date {
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 150px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-card {
  background: linear-gradient(135deg, var(--accent) 0%, #1a2530 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.contact-card h2 {
  font-size: 2.125rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-card p {
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.contact-info-block {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: inline-block;
  padding: 20px 36px;
  margin-bottom: 28px;
}

.contact-info-label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.contact-email-link {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
}

.contact-email-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--accent);
  color: #94a3b8;
  padding: 48px 0 32px;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.footer-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
}

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

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 0.8rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .product-box {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 64px 0 50px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
  }

  .nav-menu.active {
    display: flex;
  }

  .about-table th,
  .about-table td {
    display: block;
    width: 100%;
  }

  .about-table th {
    padding: 14px 20px 4px;
    background-color: transparent;
    color: var(--primary);
  }

  .about-table td {
    padding: 4px 20px 14px;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 20px;
  }

  .news-date {
    width: auto;
  }

  .timeline-list li {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
  }

  .timeline-date {
    width: auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}