:root {
  --primary-color: #1a365d;
  --secondary-color: #2c5282;
  --accent-color: #3182ce;
  --text-color: #2d3748;
  --light-text: #4a5568;
  --background: #ffffff;
  --light-bg: #f7fafc;
  --border-color: #e2e8f0;
  --success-color: #38a169;
  --error-color: #e53e3e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

.header {
  background: var(--background);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo span {
  color: var(--accent-color);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: var(--accent-color);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: 0.3s;
}

.hero {
  padding: 150px 0 80px;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--background) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

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

.section {
  padding: 80px 0;
}

.section-light {
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
}

.lead-form-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.lead-form-section h2 {
  color: white;
}

.lead-form-section p {
  opacity: 0.9;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 5px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.form-note {
  font-size: 0.85rem;
  margin-top: 15px;
  opacity: 0.8;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  margin-bottom: 10px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  color: var(--primary-color);
}

.values-list {
  margin-top: 30px;
}

.value-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.value-icon {
  width: 50px;
  height: 50px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-text h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  margin-bottom: 5px;
}

.map-container {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form-container {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
}

.contact-form-container h3 {
  margin-bottom: 20px;
}

.page-header {
  padding: 150px 0 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 15px;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.content-section {
  padding: 60px 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  padding-top: 20px;
}

.content-wrapper h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.content-wrapper ul,
.content-wrapper ol {
  margin-left: 30px;
  margin-bottom: 20px;
}

.content-wrapper li {
  margin-bottom: 10px;
  list-style: disc;
}

.content-wrapper ol li {
  list-style: decimal;
}

.business-model-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.business-card {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
}

.business-card h3 {
  margin-bottom: 15px;
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.sitemap-section h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.sitemap-section ul li {
  margin-bottom: 10px;
}

.footer {
  background: var(--primary-color);
  color: white;
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-contact p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 15px;
  text-align: center;
}

.footer-copyright {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  margin-bottom: 20px;
}

.cookie-text h3 {
  color: white;
  margin-bottom: 10px;
}

.cookie-text p {
  color: rgba(255,255,255,0.9);
}

.cookie-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.cookie-btn {
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.95rem;
}

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

.cookie-btn-necessary {
  background: transparent;
  color: white;
  border: 1px solid white;
}

.cookie-btn-settings {
  background: transparent;
  color: white;
  text-decoration: underline;
}

.cookie-settings-panel {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.cookie-settings-panel.show {
  display: block;
}

.cookie-setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.cookie-setting-text h4 {
  color: white;
  margin-bottom: 5px;
  font-size: 1rem;
}

.cookie-setting-text p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.3);
  transition: 0.4s;
  border-radius: 26px;
}

.cookie-toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--accent-color);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

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

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

  .about-content {
    grid-template-columns: 1fr;
  }

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

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

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

  .business-model-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-content {
    padding: 10px 20px;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }

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

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

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

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

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cookie-options {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  .sitemap-list {
    grid-template-columns: 1fr;
  }

  .cookie-setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 50px 0;
  }

  .btn {
    padding: 12px 20px;
  }
}

.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;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.3s ease;
}

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

*:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
