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

:root, html {
  color-scheme: light only;
}

:root {
  --navy: #1a3560;
  --navy-dark: #0f2040;
  --navy-light: #2a4a7a;
  --orange: #D4705F;
  --orange-dark: #BC5E4E;
  --orange-bg: #FFF3F0;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* ダークモード強制上書き：常にライトモードで表示 */
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #1a3560;
    --navy-dark: #0f2040;
    --navy-light: #2a4a7a;
    --orange: #D4705F;
    --orange-dark: #BC5E4E;
    --orange-bg: #FFF3F0;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --white: #ffffff;
  }
  html, body {
    background-color: #ffffff !important;
    color: #0f172a !important;
  }
  body * {
    border-color: revert;
  }
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
}
.logo-tagline {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav a.active { color: var(--white); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: var(--navy-dark);
  z-index: 999;
  flex-direction: column;
  padding: 32px 24px;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ===== PAGE WRAPPER ===== */
.page-wrapper { padding-top: 70px; }

/* ===== SECTION BASE ===== */
.section { padding: 80px 24px; }
.section-narrow { padding: 64px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-title span { color: var(--orange); }
.section-lead {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.8;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/kubota-hirakata-01.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,32,64,0.95) 0%, rgba(26,53,96,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,112,95,0.15);
  border: 1px solid rgba(212,112,95,0.4);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--orange);
}
.hero-text {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.9;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== STATS ===== */
.stats-bar {
  background: var(--orange-bg);
  border-top: 3px solid var(--orange);
  border-bottom: 1px solid rgba(212,112,95,0.2);
  padding: 0;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(212,112,95,0.2);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 44px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num sup { font-size: 22px; vertical-align: super; }
.stat-label {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,112,95,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card-text { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== FEATURE LIST ===== */
.feature-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}
.feature-item:hover { border-color: var(--navy-light); box-shadow: 0 4px 16px rgba(26,53,96,0.1); }
.feature-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: rgba(26,53,96,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.feature-body h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feature-body p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, #BC5E4E 0%, var(--orange) 100%);
  padding: 80px 24px;
  text-align: center;
}
.cta-band h2 { font-size: 28px; font-weight: 900; color: var(--white); margin-bottom: 16px; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* CTAバンド内ではプライマリボタンを白地コーラル文字に反転 */
.cta-band .btn-primary {
  background: var(--white);
  color: var(--orange);
}
.cta-band .btn-primary:hover {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-name { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 80px 24px;
  text-align: center;
}
.page-hero-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(24px, 4vw, 44px); font-weight: 900; color: var(--white); margin-bottom: 16px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--gray-100);
  padding: 12px 24px;
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--gray-600);
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--gray-200); }

/* ===== TABLE ===== */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
}
.info-table th {
  width: 200px;
  background: var(--gray-50);
  font-weight: 700;
  color: var(--navy);
}
.info-table td { color: var(--gray-700); }

/* ===== CONTACT FORM ===== */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.required {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-700);
}
.form-checkbox input { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }

/* ===== WORKS GRID ===== */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.14); }
.work-card-img { width: 100%; height: 200px; object-fit: cover; }
.work-card-body { padding: 20px; }
.work-card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.tag-navy { background: rgba(26,53,96,0.1); color: var(--navy); }
.tag-orange { background: rgba(249,115,22,0.1); color: var(--orange); }
.work-card-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.work-card-detail { font-size: 13px; color: var(--gray-600); }

/* ===== COMPARISON TABLE ===== */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: center;
  border: 1px solid var(--gray-200);
  font-size: 14px;
}
.compare-table th { background: var(--navy); color: var(--white); font-weight: 700; }
.compare-table th:first-child { background: var(--gray-100); color: var(--gray-700); }
.compare-table td:first-child { text-align: left; font-weight: 700; color: var(--gray-700); background: var(--gray-50); }
.compare-table .highlight { background: rgba(212,112,95,0.06); }
.compare-table .good { color: var(--orange); font-weight: 700; }
.compare-table .bad { color: #94a3b8; }

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

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .section { padding: 60px 20px; }
  .section-title { font-size: 26px; }
  .hero-title { font-size: 28px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(212,112,95,0.2); padding: 24px; }
  .stat-item:last-child { border-bottom: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .info-table th { width: 120px; font-size: 13px; }
  .hero-actions { flex-direction: column; }
  .btn-lg { padding: 16px 24px; }
}
