/* ========================================
   合同会社永翔 - Corporate Website Styles
   ======================================== */

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

:root {
  --primary-900: #1e3a8a;
  --primary-800: #1e40af;
  --primary-700: #1d4ed8;
  --primary-600: #2563eb;
  --primary-500: #3b82f6;
  --primary-100: #dbeafe;
  --primary-50: #eff6ff;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;

  --green-600: #16a34a;
  --green-100: #dcfce7;
  --purple-600: #9333ea;
  --purple-100: #f3e8ff;
  --orange-600: #ea580c;
  --orange-100: #ffedd5;
  --red-500: #ef4444;

  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand svg {
  width: 48px;
  height: 48px;
}

.navbar-brand span {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-900);
}

.navbar-menu {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .navbar-menu { display: flex; }
}

.navbar-menu a {
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: color 0.2s;
}

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

.navbar-menu a.active {
  font-weight: 600;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--gray-700);
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu {
  display: none;
  padding-bottom: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.mobile-menu a:hover {
  background: var(--gray-50);
}

.mobile-menu a.active {
  color: var(--primary-600);
  font-weight: 600;
  background: var(--primary-50);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-sm {
  height: 400px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.5));
}

.hero-overlay-solid {
  background: rgba(30, 58, 138, 0.7);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .hero-content h1 { font-size: 3.5rem; }
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

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

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

.btn-white:hover {
  background: var(--gray-100);
}

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

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

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

/* Sections */
.section {
  padding: 5rem 0;
}

.section-white {
  background: var(--white);
}

.section-gray {
  background: var(--gray-50);
}

.section-dark {
  background: var(--primary-900);
  color: var(--white);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

/* Cards */
.card {
  background: var(--gray-50);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 192px;
  overflow: hidden;
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.card-text {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-600);
  font-weight: 500;
}

.card-link:hover {
  color: var(--primary-700);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Services Page */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .service-block { grid-template-columns: repeat(2, 1fr); }
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.service-icon-blue { background: var(--primary-100); color: var(--primary-600); }
.service-icon-green { background: var(--green-100); color: var(--green-600); }
.service-icon-purple { background: var(--purple-100); color: var(--purple-600); }

.service-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.service-header h2 {
  font-size: 2rem;
}

.service-list {
  list-style: none;
  margin-top: 1.5rem;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-list .check-icon {
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.service-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
}

/* Company Page */
.company-table {
  width: 100%;
  background: var(--gray-50);
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .company-table { padding: 3rem; }
}

.company-table table {
  width: 100%;
}

.company-table tr {
  border-bottom: 1px solid var(--gray-200);
}

.company-table tr:last-child {
  border-bottom: none;
}

.company-table td {
  padding: 1.5rem 0;
  vertical-align: top;
}

.company-table td:first-child {
  width: 150px;
  font-weight: 600;
  color: var(--gray-700);
}

.company-table .icon-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.company-table .icon-label svg {
  flex-shrink: 0;
}

/* CEO Page */
.ceo-message {
  max-width: 800px;
  margin: 0 auto;
}

.ceo-message p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.ceo-signature {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  text-align: right;
}

.values-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.values-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.values-icon-blue { background: var(--primary-100); }
.values-icon-green { background: var(--green-100); }
.values-icon-purple { background: var(--purple-100); }

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

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-card p {
  color: var(--gray-700);
  line-height: 1.8;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-section { grid-template-columns: repeat(3, 1fr); }
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.25rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 2fr; }
}

.contact-info h2 {
  font-size: 1.875rem;
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon-blue { background: var(--primary-100); color: var(--primary-600); }
.contact-icon-green { background: var(--green-100); color: var(--green-600); }
.contact-icon-purple { background: var(--purple-100); color: var(--purple-600); }
.contact-icon-orange { background: var(--orange-100); color: var(--orange-600); }

.contact-item h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--primary-600);
  font-size: 1.125rem;
}

.contact-item a:hover {
  color: var(--primary-700);
}

.contact-note {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--primary-50);
  border-radius: 0.75rem;
}

.contact-note h3 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-note p {
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* Forms */
.contact-form-wrapper {
  background: var(--gray-50);
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .contact-form-wrapper { padding: 3rem; }
}

.contact-form-wrapper h2 {
  font-size: 1.875rem;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

@media (min-width: 768px) {
  .form-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.required {
  color: var(--red-500);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-control::placeholder {
  color: #c0c5cc;
}

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

.form-success {
  display: none;
  padding: 1rem;
  background: var(--green-100);
  border: 1px solid var(--green-600);
  color: var(--green-600);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-success.active {
  display: block;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.875rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  background: var(--primary-900);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons { flex-direction: row; }
}

/* About Section on Home */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--gray-600);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }

/* Spinner Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Map */
.map-container {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* Access Section */
.access-section {
  background: var(--gray-50);
  border-radius: 0.75rem;
  padding: 2rem;
}

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