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

:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-accent: #0f3460;
  --highlight: #e94560;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: #2a2a4a;
  --success-color: #4ade80;
  --error-color: #f87171;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--highlight);
  color: var(--text-primary);
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 15px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo:hover {
  color: var(--highlight);
}

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

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  background-color: var(--highlight);
  color: var(--text-primary);
  padding: 15px 40px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  background-color: #d13a54;
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

/* Sections */
.section {
  padding: 100px 0;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--highlight);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Service Cards */
.service-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--highlight);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--highlight);
}

.service-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.service-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.feature-item {
  text-align: center;
  padding: 30px;
}

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

.feature-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--highlight);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 40px;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.form-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

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

.form-label .required {
  color: var(--highlight);
}

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

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

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--highlight);
}

.form-checkbox label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

.form-submit {
  width: 100%;
  background-color: var(--highlight);
  color: var(--text-primary);
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background-color: #d13a54;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-success {
  text-align: center;
  padding: 40px;
}

.form-success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--bg-primary);
}

.form-success-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.form-success-text {
  color: var(--text-secondary);
}

/* Contact Info */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-info {
  padding: 40px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

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

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--highlight);
}

.contact-label {
  font-weight: 500;
  margin-bottom: 5px;
}

.contact-value {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-value a {
  color: var(--highlight);
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 400px;
}

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

/* About Page */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 60px;
}

.about-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--highlight);
}

.about-section p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 1.05rem;
}

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

.values-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

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

.value-marker {
  width: 10px;
  height: 10px;
  background-color: var(--highlight);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* Services Page */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-detail {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-detail:hover {
  border-color: var(--highlight);
}

.service-detail-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-detail-content {
  padding: 30px;
}

.service-detail-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.service-detail-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.service-example {
  background-color: var(--bg-primary);
  padding: 15px;
  border-radius: 5px;
  border-left: 3px solid var(--highlight);
}

.service-example-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--highlight);
}

.service-example-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Business Model Page */
.model-section {
  margin-bottom: 60px;
}

.model-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.model-section p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.model-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
}

.model-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--highlight);
}

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

.model-list li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  color: var(--text-secondary);
}

.model-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--highlight);
}

/* Policy Pages */
.policy-content {
  max-width: 900px;
  margin: 0 auto;
}

.policy-section {
  margin-bottom: 50px;
}

.policy-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.policy-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 25px 0 15px;
}

.policy-section p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.policy-section ul,
.policy-section ol {
  color: var(--text-secondary);
  margin-left: 25px;
  margin-bottom: 15px;
}

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

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.policy-table th,
.policy-table td {
  padding: 15px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.policy-table th {
  background-color: var(--bg-secondary);
  font-weight: 600;
}

.policy-table td {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.footer-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-info p {
  margin-bottom: 10px;
}

.footer-disclaimer {
  background-color: var(--bg-primary);
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 30px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

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

.cookie-text {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cookie-text a {
  color: var(--highlight);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cookie-btn-accept {
  background-color: var(--highlight);
  color: var(--text-primary);
}

.cookie-btn-accept:hover {
  background-color: #d13a54;
}

.cookie-btn-essential {
  background-color: var(--bg-accent);
  color: var(--text-primary);
}

.cookie-btn-essential:hover {
  background-color: #1a4a8a;
}

.cookie-btn-settings {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cookie-btn-settings:hover {
  border-color: var(--highlight);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background-color: var(--bg-secondary);
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
}

.cookie-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.cookie-category {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 15px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-category-title {
  font-weight: 600;
}

.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: var(--border-color);
  border-radius: 26px;
  transition: 0.3s;
}

.cookie-toggle-slider::before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-primary);
  border-radius: 50%;
  transition: 0.3s;
}

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

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

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

.cookie-category-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cookie-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.cookie-modal-buttons .cookie-btn {
  flex: 1;
}

/* Page Header */
.page-header {
  background-color: var(--bg-secondary);
  padding: 150px 0 80px;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-list li:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .form-container {
    padding: 25px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-cta {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .form-title {
    font-size: 1.5rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-highlight {
  color: var(--highlight);
}

.mb-0 {
  margin-bottom: 0;
}

.mt-40 {
  margin-top: 40px;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

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

/* Print Styles */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .cookie-modal {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero::before {
    display: none;
  }
}
