/* Team B - Professional & Trust Design */
/* プロフェッショナルで信頼感のあるデザイン */

:root {
  --primary-color: #2c5f41; /* 深緑 */
  --secondary-color: #1e3d59; /* ネイビー */
  --accent-color: #7c8a8e; /* グレー */
  --bg-light: #f8faf9;
  --bg-white: #ffffff;
  --text-dark: #2c3e50;
  --text-medium: #5d6d7e;
  --text-light: #95a5a6;
  --success: #27ae60;
  --shadow: rgba(44, 95, 65, 0.1);
  --gradient-primary: linear-gradient(135deg, #2c5f41 0%, #1e3d59 100%);
}

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

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

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

/* Header */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid #e8f1ed;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav.mobile-open {
  display: block;
}

/* Hero Section */
.hero {
  background: var(--gradient-primary);
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--success);
  color: white;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-primary:hover {
  background: #219a52;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

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

/* Issues Section */
.issues {
  padding: 5rem 0;
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.issue-card {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  border-left: 4px solid var(--primary-color);
  transition: transform 0.3s ease;
}

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

.issue-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.issue-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Talent Categories */
.talent-categories {
  padding: 5rem 0;
  background: var(--bg-white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.category-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 25px var(--shadow);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.category-card:hover {
  transform: translateY(-15px) rotateX(3deg) rotateY(3deg);
  box-shadow: 0 25px 50px rgba(44, 95, 65, 0.25),
              0 15px 30px rgba(44, 95, 65, 0.15);
}

.category-card:nth-child(1) { border-top: 4px solid #2c5f41; }
.category-card:nth-child(2) { border-top: 4px solid #1e3d59; }
.category-card:nth-child(3) { border-top: 4px solid #6c5ce7; }
.category-card:nth-child(4) { border-top: 4px solid #fd79a8; }

.category-header {
  padding: 2rem;
  text-align: center;
}

.category-image {
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}

.category-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.category-card .subtitle {
  font-size: 1.3rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.category-content {
  padding: 0 2rem 2rem;
}

.category-content p {
  font-size: 1.25rem;
  line-height: 1.7;
}



/* Talent Hover Overlay */
.talent-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 95, 65, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 10;
  padding: 2rem;
}

.category-card:hover .talent-hover {
  opacity: 1;
}

.hover-content {
  color: white;
  text-align: center;
}

.hover-content h4 {
  font-size: 1.85rem;
  margin-bottom: 1.75rem;
  color: white;
  font-weight: 700;
}

.hover-content ul {
  list-style: none;
  text-align: left;
  max-width: 350px;
  margin: 0 auto;
}

.hover-content li {
  padding: 0.65rem 0;
  padding-left: 2rem;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  font-size: 1.15rem;
}

.hover-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: bold;
}

/* Differentiation */
.differentiation {
  padding: 5rem 0;
  background: var(--bg-light);
}

.comparison-table {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 25px var(--shadow);
  margin-top: 3rem;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  background: var(--gradient-primary);
  color: white;
  padding: 1.75rem 1.75rem;
  text-align: left;
  font-weight: 600;
  line-height: 1.4;
}

/* Only table headers should be white */
.comparison-table th.ogt-column,
.comparison-table th.general-column {
  color: white !important;
}

.comparison-table td {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: top;
  line-height: 1.6;
  word-wrap: break-word;
  hyphens: auto;
}

.comparison-table tr:nth-child(even) td {
  background: #fafbfc;
}

.comparison-table .ogt-column {
  color: #1e7e34;
  font-weight: 600;
  background-color: #f8fff9;
}

.comparison-table .general-column {
  color: #495057;
  background-color: #f8f9fa;
}

/* Mobile card layout - hidden by default */
.comparison-table-mobile {
  display: none;
}

/* Process */
.process {
  padding: 5rem 0;
  background: var(--bg-white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -1rem;
  width: 2rem;
  height: 2px;
  background: var(--primary-color);
  opacity: 0.3;
}

.process-step:last-child::after {
  display: none;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Contact Form */
.contact {
  padding: 5rem 0;
  background: var(--bg-light);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 6px 25px var(--shadow);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.required {
  color: #e74c3c;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e8f1ed;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 95, 65, 0.1);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
}

.checkbox-item input[type="checkbox"] {
  margin-right: 0.75rem;
  transform: scale(1.2);
}

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

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

/* Mobile line breaks - hidden by default on desktop */
.mobile-br {
  display: none;
}

@media (max-width: 768px) {
  .mobile-br {
    display: inline;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  /* Disable complex 3D effects on mobile */
  .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44, 95, 65, 0.15);
  }
  
  /* タブレット・スマホでの改行表示を最適化 */
  .category-content p {
    line-height: 1.7;
    text-align: left;
    font-size: 1rem;
  }
  
  .category-card h3 {
    font-size: 1.5rem;
  }
  
  .category-card .subtitle {
    font-size: 0.95rem;
  }
  
  .comparison-table {
    overflow-x: auto;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .process-step::after {
    display: none;
  }
  
  /* Mobile Navigation */
  .hamburger {
    display: flex;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid #e8f1ed;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 100;
  }
  
  .nav.mobile-open {
    display: block;
    animation: slideDown 0.3s ease;
  }
  
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }
  
  .nav ul li {
    border-bottom: 1px solid #f1f3f4;
  }
  
  .nav ul li:last-child {
    border-bottom: none;
  }
  
  .nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .nav a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
  }
  
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .form-container {
    padding: 2rem 1.5rem;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  /* Table improvements for mobile readability */
  .comparison-table {
    margin: 2rem -15px 0;
    border-radius: 0;
  }
  
  .comparison-table table {
    table-layout: fixed;
    min-width: 100%;
  }
  
  .comparison-table th {
    padding: 1.25rem 1rem;
    font-size: 0.95rem;
    line-height: 1.3;
  }
  
  .comparison-table td {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    word-break: break-word;
  }
  
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    width: 32%;
    font-weight: 700;
    color: var(--text-dark);
  }
  
  .comparison-table th:nth-child(2),
  .comparison-table td:nth-child(2),
  .comparison-table th:nth-child(3),
  .comparison-table td:nth-child(3) {
    width: 34%;
  }
  
  .comparison-table .ogt-column {
    color: #1e7e34;
    font-weight: 600;
    background-color: #f0f8f0;
  }
  
  .comparison-table .general-column {
    color: #495057;
    background-color: #f5f5f5;
  }
  
  /* Table header colors for mobile */
  .comparison-table th.ogt-column,
  .comparison-table th.general-column {
    color: white !important;
  }
  
  .comparison-table td.ogt-column {
    color: #1e7e34 !important;
  }
  
  .comparison-table td.general-column {
    color: #495057 !important;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .issues-grid {
    grid-template-columns: 1fr;
  }
  
  .issue-card {
    padding: 2rem 1.5rem;
  }
  
  .category-header, .category-content {
    padding: 1.5rem;
  }
  
  /* スマホでの改行表示を最適化 */
  .category-content p {
    line-height: 1.8;
    text-align: left;
    font-size: 0.95rem;
  }
  
  .category-card h3 {
    font-size: 1.35rem;
  }
  
  .category-card .subtitle {
    font-size: 0.9rem;
  }
  
  /* Simplify hover overlay on mobile */
  .talent-hover {
    background: rgba(44, 95, 65, 0.98);
  }
  
  .hover-content {
    padding: 1.5rem;
  }
  
  .hover-content h4 {
    font-size: 1.5rem;
  }

  .hover-content li {
    font-size: 1.05rem;
    padding: 0.5rem 0;
  }
  
  .form-container {
    padding: 1.5rem 1rem;
  }
  
  /* Alternative card-style table layout for very small screens */
  .comparison-table {
    display: none;
  }
  
  .comparison-table-mobile {
    display: block;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 6px 25px var(--shadow);
    margin: 2rem 0;
    overflow: hidden;
  }
  
  .comparison-card {
    border-bottom: 2px solid #f1f3f4;
    padding: 2rem 1.5rem;
  }
  
  .comparison-card:last-child {
    border-bottom: none;
  }
  
  .comparison-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
  }
  
  .comparison-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
  }
  
  .comparison-item:last-child {
    margin-bottom: 0;
  }
  
  .comparison-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
  }
  
  .comparison-ogt {
    background: #f0f8f0;
    color: #1e7e34;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    border-left: 4px solid #1e7e34;
  }
  
  .comparison-general {
    background: #f5f5f5;
    color: #495057;
    padding: 0.75rem;
    border-radius: 6px;
    line-height: 1.6;
    border-left: 4px solid #6c757d;
    word-break: break-word;
    hyphens: auto;
  }
}

/* Tablet specific styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-image {
    order: 2;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.15rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

/* Accessibility enhancements */
.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;
}

/* Focus states */
.btn:focus,
.form-control:focus,
input[type="checkbox"]:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Animation for smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for form submission */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
