/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@400;600;700&display=swap');

:root {
  /* Modern Trust - Default Color Palette */
  --primary-color: #0b2545; /* 深みのある紺色 */
  --primary-light: #f0f4f8;
  --secondary-color: #c5a880; /* 上品なプラチナゴールド */
  --accent-color: #e07a5f; /* テラコッタ */
  --text-dark: #1f2937;
  --text-light: #4b5563;
  --white: #ffffff;
  --background-light: #f9fafb;
  --border-color: #e5e7eb;
  --border-radius: 4px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --box-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --font-family-base: 'Outfit', 'Inter', "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-backdrop: blur(12px);
  --hero-overlay: rgba(11, 37, 69, 0.65);
  --card-bg: #ffffff;
  --body-bg: #ffffff;
  --footer-bg: #f8fafc;
  --input-bg: #ffffff;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography Base */
  --font-size-base: 16px;
  --line-height-base: 1.65;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-dark);
  background-color: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   Layout & Utility Classes
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-lg) 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background-color: var(--primary-color);
  color: #ffffff !important;
  border-radius: var(--border-radius);
  font-weight: bold;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff !important;
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
.site-header {
  background-color: var(--header-bg);
  backdrop-filter: var(--header-backdrop);
  -webkit-backdrop-filter: var(--header-backdrop);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  height: 65px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height 0.3s ease;
}

.site-header.scrolled .header-inner {
  height: 65px;
}

.site-logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary-color);
}

.site-nav ul {
  display: flex;
  gap: var(--spacing-md);
}

.site-nav a {
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

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

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

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--hero-overlay);
  transition: background 0.4s ease;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--spacing-md);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  line-height: 1.25;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-subtitle {
  font-size: 1.35rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.95;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-weight: 400;
  line-height: 1.6;
}

/* ==========================================================================
   Index/Home Elements
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.feature-card {
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--card-bg);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--primary-color);
}

.feature-card i {
  transition: transform 0.3s ease;
}

.feature-card:hover i {
  transform: scale(1.15);
}

.feature-card h3 {
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

/* ==========================================================================
   Akinai Club (Products) Page Elements
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.product-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  background-color: var(--card-bg);
  box-shadow: var(--box-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--primary-color);
}

.product-card h2 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-xs);
}

.badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #ffffff !important;
  margin-bottom: var(--spacing-md);
}

.badge-primary {
  background-color: var(--primary-color);
}

.badge-secondary {
  background-color: var(--accent-color);
}

.features-list-box {
  background: var(--background-light);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  margin-top: var(--spacing-md);
  border-left: 4px solid var(--primary-color);
}

.features-list-box ul {
  list-style-type: none;
  margin-top: 8px;
}

.features-list-box ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.features-list-box ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* ==========================================================================
   Business (Services) Page Elements
   ========================================================================== */
.service-block {
  background-color: var(--card-bg);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-md);
  transition: all 0.3s ease;
}

.service-block:hover {
  transform: translateX(5px);
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow-hover);
}

.service-icon-wrapper {
  flex: 0 0 80px;
  text-align: center;
}

.service-content {
  flex: 1;
}

.service-content h2 {
  font-size: 1.6rem;
  margin-bottom: var(--spacing-xs);
}

.service-content ul {
  list-style: none;
  padding-left: 0;
  margin-top: var(--spacing-xs);
}

.service-content ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
}

.service-content ul li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* ==========================================================================
   Company Profile Page Elements
   ========================================================================== */
.company-section {
  background-color: var(--card-bg);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
}

.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

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

.company-table th {
  padding: var(--spacing-sm);
  text-align: left;
  width: 30%;
  background: var(--background-light);
  font-weight: bold;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.company-table td {
  padding: var(--spacing-sm);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}

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

.map-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
}

.map-container iframe {
  border: 0;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Contact Form Page Elements
   ========================================================================== */
.contact-form-container {
  background-color: var(--card-bg);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: var(--spacing-md);
  position: relative;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--input-bg);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.15);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--text-dark);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-lg);
}

.footer-info h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-info p {
  color: var(--text-light);
  line-height: 1.8;
}

.footer-nav h4 {
  border-bottom: 2px solid var(--secondary-color);
  display: inline-block;
  margin-bottom: var(--spacing-sm);
  padding-bottom: 4px;
  color: var(--primary-color);
}

.footer-nav ul li {
  margin-bottom: 0.6rem;
}

.footer-nav ul li a {
  color: var(--text-light);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav ul li a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.copyright {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: var(--spacing-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================================================
   Scroll Triggered Animation Framework
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

.nobreak {
  display: inline-block;
}

/* ==========================================================================
   Responsive Designs & Mobile Drawer Menu
   ========================================================================== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--card-bg);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 100px var(--spacing-md) var(--spacing-md);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .site-nav.active {
    right: 0;
  }

  .site-nav ul {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .site-nav a {
    font-size: 1.15rem;
    display: block;
    padding: 8px 0;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section {
    padding: var(--spacing-md) 0;
  }

  /* Hamburger transform when menu is active */
  .hamburger.active i::before {
    content: "\f00d"; /* FontAwesome Close Icon */
  }
}
