/* Elegant Classic Modern Design System - Brown, Grey, & Orange Theme */

:root {
  /* Fonts */
  --font-heading: 'Playfair Display', 'Noto Serif JP', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Palette: Brown, Grey, & Orange */
  --bg-primary: #faf9f6; /* Warm Light Ivory/Grey */
  --bg-secondary: #f0ede6; /* Warm Sand Grey (Asphalt & Stone feel) */
  --bg-card: #ffffff;
  
  --primary: #4a3b32; /* Deep Vintage Leather Brown */
  --primary-hover: #352922;
  --primary-light: #f3ede8; /* Warm Soft Creamy Brown */
  
  --secondary: #6e7275; /* Classic Asphalt/Mechanical Grey */
  --secondary-hover: #545759;
  --secondary-light: #e3e1db; /* Warm Light Grey Border helper */
  
  --accent: #d35400; /* Rich Vintage Orange (Bonfire, Turn signal, & Sunset) */
  --accent-hover: #b34700;
  
  --text-main: #2c2c2c; /* Warm Charcoal Black */
  --text-muted: #5e5e5e; /* Muted Grey */
  --text-light: #8f8f8f;
  --text-on-primary: #ffffff;

  /* UI Details */
  --border-classic: 1px solid #dcdad4;
  --border-double: 4px double #b0a99f;
  --card-shadow: 0 8px 24px rgba(74, 59, 50, 0.04);
  --card-shadow-hover: 0 16px 32px rgba(74, 59, 50, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --transition-classic: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.8;
  letter-spacing: 0.03em;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-classic);
}

/* Container Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  border-bottom: var(--border-classic);
  background-color: transparent;
}

header.scrolled {
  position: fixed;
  height: 75px;
  background-color: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(74, 59, 50, 0.02);
  border-bottom: var(--border-classic);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: var(--accent); /* Highlight with orange accent */
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background-color: var(--accent); /* Orange indicator line */
  transition: var(--transition-classic);
  transform: translateX(-50%);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Toggle Menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background-color: var(--primary);
  margin: 6px 0;
  transition: var(--transition-classic);
}

/* Hero Section */
.hero {
  padding: 180px 0 120px 0;
  background-color: var(--bg-secondary);
  position: relative;
  border-bottom: var(--border-classic);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  top: 12px;
  border: var(--border-classic);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeIn 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent); /* Highlight Orange */
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.hero-badge span {
  letter-spacing: 0.15em;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--primary); /* Leather Brown */
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-title span {
  font-weight: 400;
  font-family: var(--font-heading);
  display: block;
  font-size: 2.2rem;
  color: var(--secondary); /* Grey */
  margin-bottom: 8px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.8;
}

.hero-description strong {
  color: var(--accent); /* Orange highlight for GB350 */
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  transition: var(--transition-classic);
  cursor: pointer;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--primary); /* Brown button */
  color: var(--bg-primary);
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

/* Avatar Frame (Elegant Double Border) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s ease-out;
}

.avatar-wrapper {
  width: 280px;
  height: 340px;
  border: var(--border-double);
  padding: 12px;
  background-color: var(--bg-primary);
  position: relative;
  box-shadow: var(--card-shadow);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border: var(--border-classic);
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.avatar-placeholder svg {
  width: 120px;
  height: 120px;
  color: var(--primary);
  opacity: 0.85;
}

.avatar-initials {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-top: 12px;
  border-top: 1px solid var(--accent); /* Orange separator line */
  padding-top: 8px;
  width: 80px;
  text-align: center;
}

/* Sections Base */
section {
  padding: 120px 0;
  border-bottom: var(--border-classic);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 70px auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent); /* Orange tag */
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1.5px;
  background-color: var(--accent); /* Orange separator */
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 10px;
}

/* About / Story Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-story h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.about-story p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-story p strong {
  color: var(--accent); /* Highlight GB350 */
}

/* My Ride Section (GB350 Special) */
.ride-section {
  background-color: var(--bg-secondary);
  position: relative;
}

/* Passions Grid (Bike, Camp, Travel) */
.passions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.passion-card {
  background-color: var(--bg-card);
  border: var(--border-classic);
  padding: 40px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-classic);
  position: relative;
  text-align: center;
}

.passion-card::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px dashed rgba(176, 169, 159, 0.4);
  pointer-events: none;
}

.passion-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent); /* Orange hover border */
}

.passion-icon {
  width: 70px;
  height: 70px;
  border: var(--border-classic);
  background-color: var(--bg-secondary);
  color: var(--accent); /* Orange Icon */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 24px auto;
  transition: var(--transition-classic);
}

.passion-card:hover .passion-icon {
  background-color: var(--accent); /* Fill with Orange on hover */
  color: var(--bg-primary);
  border-color: var(--accent);
}

.passion-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  color: var(--primary);
}

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

/* Skills (得意なこと) */
.skills-section {
  background-color: var(--bg-secondary);
}

.skills-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.skills-intro h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.skills-intro p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
}

.skill-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(176, 169, 159, 0.3);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background-color: var(--accent); /* Orange Fill */
  width: 0;
  transition: width 1.8s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.project-card {
  background-color: var(--bg-card);
  border: var(--border-classic);
  transition: var(--transition-classic);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--card-shadow-hover);
}

.project-visual {
  height: 200px;
  background-color: var(--bg-secondary);
  border-bottom: var(--border-classic);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.project-visual svg {
  width: 55px;
  height: 55px;
  color: var(--secondary); /* Grey */
  transition: var(--transition-classic);
}

.project-card:hover .project-visual svg {
  transform: scale(1.08);
  color: var(--accent); /* Orange highlight on hover */
}

.project-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--accent); /* Orange meta tag */
  margin-bottom: 12px;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-action {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-action:hover {
  color: var(--accent);
}

/* Contact */
.contact-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  top: 12px;
  border: var(--border-classic);
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon-wrapper {
  width: 50px;
  height: 50px;
  border: var(--border-classic);
  background-color: var(--bg-primary);
  color: var(--accent); /* Orange icons */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-box h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--secondary); /* Grey */
  margin-bottom: 6px;
}

.contact-box p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
}

.contact-form-holder {
  background-color: var(--bg-primary);
  border: var(--border-classic);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--primary); /* Brown label */
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: var(--border-classic);
  background-color: var(--bg-card);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-classic);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent); /* Orange focus border */
  box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.08);
}

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

/* Footer */
footer {
  background-color: var(--bg-primary);
  padding: 60px 0;
}

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

.footer-copy {
  font-family: var(--font-heading);
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border: var(--border-classic);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition-classic);
}

.social-btn:hover {
  background-color: var(--accent); /* Orange social button */
  color: var(--bg-primary);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-title span {
    font-size: 1.8rem;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .section-title {
    font-size: 2rem;
  }
  .footer-layout {
    flex-direction: column;
    gap: 24px;
  }
}
