/* ===================================
   TRULY REFINED ELEGANT DESIGN 2026
   真に洗練された美しいデザイン
   =================================== */

:root {
  /* Elegant Color System */
  --primary-100: #0a0e27;
  --primary-200: #1a1f3a;
  --primary-300: #2a3556;
  --accent-gold: #d4af37;
  --accent-gold-light: #f4d88a;
  --white: #ffffff;
  --gray-50: #fafbfc;
  --gray-100: #f7f8fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-700: #495057;
  --gray-900: #212529;
  
  /* Refined Typography */
  --font-primary: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  --font-display: 'Noto Serif JP', 'Times New Roman', serif;
  
  /* Perfect Spacing Scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Smooth Transitions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

/* ===================================
   REFINED HEADER
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: all 0.3s var(--ease-out);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-100);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.logo-subtitle {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: var(--space-xs);
}

.nav-item {
  position: relative;
  background: none;
  border: none;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--gray-700);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
  border-radius: 8px;
}

.nav-item i {
  font-size: 1.125rem;
  transition: all 0.3s var(--ease-out);
}

.nav-item:hover {
  color: var(--primary-100);
  background: var(--gray-100);
}

.nav-item:hover i {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.nav-item.active {
  color: var(--primary-100);
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
}

.nav-item.active i {
  color: var(--accent-gold);
}

.mobile-menu-toggle {
  display: none;
}

/* ===================================
   MAIN CONTENT
   =================================== */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

.tab-content {
  display: none;
  opacity: 0;
  animation: gentleFadeIn 0.8s var(--ease-out) forwards;
}

.tab-content.active {
  display: block;
}

@keyframes gentleFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   ELEGANT HERO SECTION
   =================================== */
.hero-section {
  position: relative;
  padding: var(--space-5xl) 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(26, 31, 58, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-100);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.01em;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--gray-700);
  font-weight: 400;
}

.hero-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(10, 14, 39, 0.12),
    0 4px 16px rgba(10, 14, 39, 0.06);
  transition: all 0.6s var(--ease-out);
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.05) 100%);
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.hero-image:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 30px 80px rgba(10, 14, 39, 0.18),
    0 8px 24px rgba(10, 14, 39, 0.08);
}

.hero-image:hover img {
  transform: scale(1.03);
}

/* ===================================
   BEAUTIFUL HOME INTRO
   =================================== */
.home-intro {
  padding: var(--space-5xl) 0;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--primary-100);
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--gray-700);
}

/* ===================================
   REFINED PAGE LAYOUT
   =================================== */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--primary-100);
  text-align: center;
  margin-bottom: var(--space-4xl);
  padding-top: var(--space-4xl);
  letter-spacing: 0.01em;
  line-height: 1.3;
  position: relative;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: calc(-1 * var(--space-lg));
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
}

/* ===================================
   ELEGANT SERVICES GRID
   =================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  padding: 0 0 var(--space-5xl);
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: var(--space-2xl);
  border: 1px solid var(--gray-200);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: var(--accent-gold-light);
  box-shadow: 
    0 24px 64px rgba(10, 14, 39, 0.12),
    0 8px 24px rgba(212, 175, 55, 0.08);
}

.service-card:hover::before {
  opacity: 0.03;
}

.service-header {
  margin-bottom: var(--space-xl);
}

.service-icon-box {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.service-icon-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.service-card:hover .service-icon-box {
  transform: scale(1.08) rotate(-3deg);
}

.service-card:hover .service-icon-box::after {
  opacity: 1;
}

.service-icon-box i {
  font-size: 1.75rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-100);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.01em;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.bullet {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent-gold);
  border-radius: 50%;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

/* ===================================
   SOPHISTICATED ABOUT SECTION
   =================================== */
.about-content {
  padding: 0 0 var(--space-5xl);
}

.about-intro {
  text-align: center;
  margin-bottom: var(--space-4xl);
  padding: var(--space-3xl);
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
  border-radius: 16px;
}

.about-lead {
  font-size: 1.375rem;
  line-height: 2;
  color: var(--white);
}

.about-lead strong {
  color: var(--accent-gold-light);
  font-weight: 600;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-4xl);
}

.expertise-card {
  background: var(--white);
  border-radius: 16px;
  padding: var(--space-2xl);
  border: 1px solid var(--gray-200);
  transition: all 0.4s var(--ease-out);
}

.expertise-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold-light);
  box-shadow: 
    0 20px 60px rgba(10, 14, 39, 0.1),
    0 6px 20px rgba(212, 175, 55, 0.06);
}

.expertise-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.expertise-icon i {
  font-size: 1.75rem;
  color: var(--white);
}

.expertise-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary-100);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.01em;
}

.expertise-content p {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--gray-700);
}

.expertise-content strong {
  color: var(--primary-100);
  font-weight: 600;
}

.mission-statement {
  text-align: center;
  padding: var(--space-3xl);
  background: var(--gray-100);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
}

.mission-text {
  font-size: 1.25rem;
  line-height: 2;
  color: var(--gray-900);
}

.highlight {
  color: var(--accent-gold);
  font-weight: 600;
  position: relative;
}

/* ===================================
   ELEGANT COLLABORATION
   =================================== */
.collaboration-content {
  padding: 0 0 var(--space-5xl);
}

.collaboration-intro {
  text-align: center;
  margin-bottom: var(--space-4xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.collaboration-lead {
  font-size: 1.25rem;
  line-height: 2;
  color: var(--gray-700);
}

.collaboration-image {
  max-width: 900px;
  margin: 0 auto var(--space-4xl);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(10, 14, 39, 0.12),
    0 4px 16px rgba(10, 14, 39, 0.06);
  transition: all 0.6s var(--ease-out);
}

.collaboration-image:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 30px 80px rgba(10, 14, 39, 0.16),
    0 8px 24px rgba(10, 14, 39, 0.08);
}

.collaboration-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.collaboration-image:hover img {
  transform: scale(1.03);
}

.group-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.benefit-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all 0.4s var(--ease-out);
}

.benefit-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold-light);
  box-shadow: 
    0 16px 48px rgba(10, 14, 39, 0.08),
    0 4px 16px rgba(212, 175, 55, 0.04);
}

.benefit-item i {
  font-size: 1.75rem;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.benefit-text h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary-100);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
}

.benefit-text p {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ===================================
   REFINED NEWS SECTION
   =================================== */
.news-list {
  padding: 0 0 var(--space-5xl);
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-2xl);
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  transition: all 0.4s var(--ease-out);
  margin-bottom: var(--space-lg);
}

.news-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold-light);
  box-shadow: 
    0 16px 48px rgba(10, 14, 39, 0.1),
    0 4px 16px rgba(212, 175, 55, 0.06);
}

.news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
  border-radius: 12px;
  color: var(--white);
  text-align: center;
}

.date-day {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-display);
}

.date-month {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-2xs);
}

.date-year {
  font-size: 0.8125rem;
  opacity: 0.7;
  margin-top: var(--space-2xs);
}

.news-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-100);
  letter-spacing: 0.01em;
}

.news-badge {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ===================================
   ELEGANT CONTACT
   =================================== */
.contact-content {
  padding: 0 0 var(--space-5xl);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-4xl);
}

.info-card {
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all 0.4s var(--ease-out);
}

.info-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold-light);
  box-shadow: 
    0 20px 60px rgba(10, 14, 39, 0.1),
    0 6px 20px rgba(212, 175, 55, 0.06);
}

.info-card i {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: var(--space-lg);
}

.info-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-100);
  margin-bottom: var(--space-md);
  letter-spacing: 0.01em;
}

.info-card p {
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.contact-form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-3xl);
  background: var(--gray-100);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  text-align: center;
}

.contact-message {
  font-size: 1.0625rem;
  color: var(--gray-700);
  line-height: 2;
}

/* ===================================
   REFINED FOOTER
   =================================== */
.footer {
  background: var(--primary-100);
  color: var(--white);
  padding: var(--space-3xl) 0;
  margin-top: var(--space-5xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.footer-logo h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.footer-logo p {
  font-size: 0.8125rem;
  color: var(--accent-gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-copyright {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ===================================
   RESPONSIVE REFINEMENT
   =================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-xl);
  }
  
  .header-container {
    padding: 0 var(--space-xl);
  }
  
  .nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-100);
    cursor: pointer;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  .header-container {
    padding: 0 var(--space-lg);
    height: 70px;
  }
  
  .main-content {
    margin-top: 70px;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .hero-section {
    padding: var(--space-3xl) 0;
  }
  
  .services-grid,
  .group-benefits,
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .news-item {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.75rem;
  }
  
  .service-card,
  .expertise-card,
  .benefit-item,
  .info-card {
    padding: var(--space-lg);
  }
}
