/* ============================================
   Next Operation Inc. - Corporate Website CSS
   Design System & Shared Styles
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* Colors */
  --color-primary: #78B9FF;
  --color-primary-dark: #5A9FE6;
  --color-primary-light: #A8D4FF;
  --color-secondary: #D2FAFF;
  --color-secondary-light: #E0FCFF;
  --color-heading: #1E2832;
  --color-accent: #A52814;
  --color-accent-dark: #8B2010;
  --color-white: #FFFFFF;
  --color-light-gray: #F5F7FA;
  --color-border: #E2E8F0;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;

  /* Fonts */
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Inter', 'Noto Sans JP', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Header */
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.7;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-heading);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
  line-height: 1.8;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-3xl);
  position: relative;
  padding-bottom: var(--space-lg);
  color: var(--color-heading);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 640px;
  margin: -2rem auto 3rem;
  line-height: 1.8;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--space-4xl) 0;
}

/* ============================================
   Header (.site-header)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-mark {
  color: var(--color-heading);
  font-weight: 800;
  font-size: 1.5rem;
}

.logo-mark-second {
  color: var(--color-primary);
  margin-left: -0.35em;
}

.site-footer .logo-mark {
  color: var(--color-primary);
}

.site-footer .logo-mark-second {
  color: rgb(165, 40, 20);
}

.page-hero .logo-mark-second {
  color: var(--color-heading);
}

.logo-text {
  color: var(--color-heading);
  font-family: var(--font-heading);
}

/* Home page header (light hero) - dark text before scroll */
.page-home .site-header:not(.scrolled) .nav-menu a {
  color: var(--color-heading);
}

.page-home .site-header:not(.scrolled) .nav-menu a:hover,
.page-home .site-header:not(.scrolled) .nav-menu a.active {
  color: var(--color-primary);
}

.page-home .site-header:not(.scrolled) .logo-text {
  color: var(--color-heading);
}

.page-home .site-header:not(.scrolled) .hamburger span {
  background: var(--color-heading);
}

.page-home .site-header:not(.scrolled) .nav-dropdown-menu {
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.page-home .site-header:not(.scrolled) .nav-dropdown-menu a {
  color: var(--color-text-light);
}

.page-home .site-header:not(.scrolled) .nav-dropdown-menu a:hover {
  background-color: rgba(120, 185, 255, 0.08);
  color: var(--color-primary);
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-menu a {
  color: var(--color-heading);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

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

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  display: none;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--color-heading);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu li {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background-color: rgba(120, 185, 255, 0.12);
  color: var(--color-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-heading);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* ============================================
   Hero (.hero)
   ============================================ */
.hero {
  min-height: auto;
  padding: 50px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-heading);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(120, 185, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(120, 185, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 var(--space-xl);
}

.hero-light .hero-content {
  text-align: left;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--space-2xl);
  font-weight: 500;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-2xl);
  line-height: 1.9;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* Hero Light (white-based) variant */
.hero-light {
  background-color: var(--color-white);
}

.hero-light::before {
  display: none;
}

.hero-light h1 {
  color: var(--color-heading);
  white-space: nowrap;
}

.hero-light .hero-subtitle {
  color: var(--color-primary-dark);
}

.hero-light .hero-description {
  color: var(--color-text-light);
}

.hero-light .btn-secondary {
  color: var(--color-heading);
  border-color: var(--color-heading);
}

.hero-light .btn-secondary:hover {
  background-color: var(--color-heading);
  border-color: var(--color-heading);
  color: var(--color-white);
}

.hero-light .hero-buttons {
  justify-content: flex-start;
}

/* Services Overview - reduce top spacing */
.services-overview {
  padding-top: 1rem;
}

/* Services Overview - desktop 4列 */
.services-overview .card-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Hero Split Layout (2-column: text left, image right) */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.hero-split .hero-content {
  flex: 0 0 45%;
  padding: 0;
  padding-left: 5%;
  position: relative;
  z-index: 2;
}

.hero-image {
  flex: 0 0 80%;
  margin-right: -10%;
  margin-left: -25%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
  }

  .hero-split .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-split .hero-buttons {
    justify-content: center;
  }

  .hero-image img {
    max-width: 400px;
  }
}

/* ============================================
   Page Hero (.page-hero) - Sub pages
   ============================================ */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-heading);
  position: relative;
  text-align: center;
  padding-top: var(--header-height);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(120, 185, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: 2.75rem;
  margin-bottom: var(--space-md);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
  color: var(--color-primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(120, 185, 255, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(165, 40, 20, 0.35);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* ============================================
   Cards (.card)
   ============================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.card .btn {
  margin-top: auto;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(120, 185, 255, 0.12), rgba(120, 185, 255, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-heading);
}

.card-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ============================================
   Service Detail (.service-detail)
   ============================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail-text h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  color: var(--color-heading);
}

.service-detail-text p {
  font-size: 1rem;
  line-height: 1.9;
}

.service-detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.service-detail-visual img {
  border-radius: var(--radius-md);
}

/* ============================================
   Info Table (.info-table)
   ============================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.info-table tr:nth-child(even) {
  background-color: var(--color-light-gray);
}

.info-table th,
.info-table td {
  padding: var(--space-lg) var(--space-xl);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 200px;
  font-weight: 600;
  color: var(--color-heading);
  background-color: var(--color-light-gray);
  font-size: 0.95rem;
  white-space: nowrap;
}

.info-table td {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* dl version */
.info-dl {
  width: 100%;
}

.info-dl-row {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.info-dl-row:nth-child(even) {
  background-color: var(--color-light-gray);
}

.info-dl-row dt {
  width: 200px;
  flex-shrink: 0;
  padding: var(--space-lg) var(--space-xl);
  font-weight: 600;
  color: var(--color-heading);
  font-size: 0.95rem;
  background-color: var(--color-light-gray);
}

.info-dl-row dd {
  padding: var(--space-lg) var(--space-xl);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================
   Contact Form (.contact-form)
   ============================================ */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-xl);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-heading);
}

.form-group label .required {
  color: var(--color-accent);
  margin-left: var(--space-xs);
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(120, 185, 255, 0.15);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.form-submit {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ============================================
   News (.news-grid)
   ============================================ */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--color-light-gray);
}

.news-card-body {
  padding: var(--space-lg);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.category-tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(120, 185, 255, 0.12);
  color: var(--color-primary-dark);
}

.category-tag.accent {
  background: rgba(165, 40, 20, 0.1);
  color: var(--color-accent);
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   Message Section (.message-section)
   ============================================ */
.message-section {
  background-color: var(--color-heading);
  color: var(--color-white);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.message-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(120, 185, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.message-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.message-section .section-title {
  color: var(--color-white);
}

.message-quote {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-left: var(--space-xl);
  border-left: 3px solid var(--color-primary);
  margin-bottom: var(--space-xl);
}

.message-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 2;
}

.message-author {
  margin-top: var(--space-xl);
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* ============================================
   CTA Section (.cta-section)
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #D2FAFF 100%);
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-heading);
  font-size: 2.25rem;
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background: var(--color-heading);
  color: var(--color-white);
  border-color: var(--color-heading);
}

.cta-section .btn-primary:hover {
  background: #2A3847;
  border-color: #2A3847;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Footer (.site-footer)
   ============================================ */
.site-footer {
  background-color: var(--color-heading);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: var(--space-lg);
}

.footer-brand .logo-text {
  color: var(--color-white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-contact li {
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.footer-bottom {
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll-triggered animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.6s; }

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-white { color: var(--color-white); }
.text-accent { color: var(--color-accent); }
.bg-light { background-color: var(--color-light-gray); }
.bg-dark { background-color: var(--color-secondary); }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

/* ============================================
   Responsive - Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2, .section-title { font-size: 2rem; }

  .card-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail {
    gap: var(--space-xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================
   Responsive - Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  h1 { font-size: 2rem; }
  h2, .section-title { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  section {
    padding: var(--space-3xl) 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Hamburger visible */
  .hamburger {
    display: flex;
  }

  /* Mobile nav */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-heading);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    gap: var(--space-lg);
    transition: right var(--transition-base);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a,
  .page-home .site-header:not(.scrolled) .nav-menu a {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
  }

  .nav-menu a:hover,
  .nav-menu a.active,
  .page-home .site-header:not(.scrolled) .nav-menu a:hover,
  .page-home .site-header:not(.scrolled) .nav-menu a.active {
    color: var(--color-primary);
  }

  /* Mobile dropdown */
  .nav-dropdown-menu,
  .page-home .site-header:not(.scrolled) .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    display: none;
    padding-left: var(--space-md);
  }

  .nav-dropdown.open .nav-dropdown-menu,
  .page-home .site-header:not(.scrolled) .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a,
  .page-home .site-header:not(.scrolled) .nav-dropdown-menu a {
    padding: 0.4rem 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
  }

  .nav-dropdown-menu a:hover {
    background-color: transparent;
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero - ヘッダー分の余白を確保 */
  .hero {
    padding-top: var(--header-height);
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Hero画像を中央寄せ */
  .hero-image {
    margin: 0 auto;
    width: 100%;
    justify-content: center;
  }

  /* Page Hero */
  .page-hero {
    min-height: 30vh;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  /* カードグリッド: 2列（インラインstyleを上書き） */
  .card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
    padding: var(--space-lg) 0;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Info table */
  .info-table th,
  .info-table td {
    padding: var(--space-md);
  }

  .info-table th {
    width: 140px;
    font-size: 0.85rem;
  }

  .info-dl-row {
    flex-direction: column;
  }

  .info-dl-row dt {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-xs);
  }

  .info-dl-row dd {
    padding: var(--space-xs) var(--space-md) var(--space-md);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Message */
  .message-quote {
    font-size: 1.2rem;
  }

  /* CTA */
  .cta-section h2 {
    font-size: 1.75rem;
  }

  /* CEO role */
  .ceo-role {
    font-size: 1.5rem;
  }

  /* Mission/Vision heading */
  .mv-heading {
    font-size: 1.75rem;
  }

  /* hero-light h1 nowrap 解除 */
  .hero-light h1 {
    white-space: normal;
  }

  /* ハンバーガーのX表示時（メニューopen時）は白で見えるように */
  .hamburger.active span {
    background: var(--color-white);
  }

  /* Contactページ: ヘッダーと重ならないよう余白確保 */
  .contact-section {
    padding-top: calc(var(--header-height) + var(--space-2xl));
  }
}

/* ============================================
   Responsive - Small Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2, .section-title { font-size: 1.5rem; }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: var(--space-2xl) 0;
  }

  .hero {
    min-height: 90vh;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .card {
    padding: var(--space-lg);
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }

  .info-table th {
    width: 110px;
    font-size: 0.8rem;
  }

  .message-quote {
    font-size: 1.1rem;
  }

  .mv-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .mv-item {
    padding: var(--space-md) var(--space-sm);
  }

  .mv-heading {
    font-size: 1.2rem;
  }

  .mv-text {
    font-size: 0.88rem;
  }

  /* カードグリッド: 480px以下は1列 */
  .card-grid {
    grid-template-columns: 1fr !important;
  }

  .ceo-grid {
    grid-template-columns: 1fr;
  }

  .ceo-photo-placeholder {
    height: 300px;
  }
}

/* ============================================
   Company Page - Mission / Vision
   ============================================ */
.mission-vision {
  padding: var(--space-4xl) 0;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.mv-item {
  text-align: center;
  padding: var(--space-2xl);
}

.mv-label {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
}

.mv-heading {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  color: var(--color-heading);
  line-height: 1.5;
}

.mv-text {
  color: var(--color-text-light);
  font-size: 1.15rem;
  line-height: 1.9;
}

/* ============================================
   Company Page - CEO Message
   ============================================ */
.ceo-message.bg-light {
  background-color: rgb(230, 250, 250);
}

.ceo-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.ceo-photo {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  filter: brightness(1.2);
}

.ceo-photo-placeholder {
  width: 100%;
  height: 400px;
  background-color: var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.ceo-role {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
}

.ceo-text p {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-light);
}

.ceo-name {
  margin-top: var(--space-xl);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading) !important;
}

/* ============================================
   Company Page - CEO Profile
   ============================================ */
.ceo-profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.ceo-profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-xl);
}

.ceo-profile-name-en {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-top: var(--space-xs);
}

.ceo-career dt {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.career-list {
  list-style: none;
  padding: 0;
}

.career-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.career-list li:last-child {
  border-bottom: none;
}

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

/* ============================================
   Company Page - Access / Map
   ============================================ */
.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ============================================
   News Page - Read More & Pagination
   ============================================ */
.news-read-more {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.news-read-more:hover {
  color: var(--color-primary-dark);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.pagination-link:hover,
.pagination-link.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.pagination-ellipsis {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ============================================
   Contact Page - Grid & Info
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-heading {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-heading);
}

.contact-form-wrapper p {
  margin-bottom: var(--space-2xl);
}

.contact-info {
  background: var(--color-light-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  color: var(--color-heading);
}

.contact-info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm) var(--space-lg);
}

.contact-info-list dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-heading);
}

.contact-info-list dd {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  font-weight: 400 !important;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  accent-color: var(--color-primary);
}

.checkbox-label a {
  color: var(--color-primary);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

/* Contact page responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
