:root {
  color-scheme: light;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --bg: #faf9f7;
  --panel: #f5f3f0;
  --panel-border: rgba(45, 45, 45, 0.08);
  --text: #2d2d2d;
  --muted: rgba(45, 45, 45, 0.6);
  --accent: #b85c38;
  --accent-soft: rgba(184, 92, 56, 0.65);
  --highlight: #b85c38;
  --highlight-dark: #8d4428;
}

html {
  scroll-behavior: smooth;
}

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

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
  top: 0;
}

/* Improved focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  padding: 0;
  line-height: 1.8;
}


.app-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 2rem;
  background: var(--panel);
  border-right: 1px solid var(--panel-border);
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
}


.nav-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
  flex: 1;
  justify-content: space-between;
  overflow: hidden;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.nav-links a[aria-current='page'] {
  color: var(--accent);
  font-weight: 600;
}

.sidebar-contact {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.sidebar-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-contact a:hover {
  color: var(--accent-soft);
  transform: translateY(-2px);
}

.sidebar-contact .icon {
  width: 1.25rem;
  height: 1.25rem;
}


.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 8vw 8rem;
  gap: 5rem;
  flex-direction: row-reverse;
  min-height: 100vh;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 34rem;
}

.eyebrow {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  max-width: 32rem;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  font-weight: 500;
}

.body {
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 4px;
  border: 1px solid rgba(184, 92, 56, 0.25);
  background: rgba(184, 92, 56, 0.08);
  color: var(--highlight-dark);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: float-up 0.9s ease forwards;
  animation-delay: 0.05s;
}

.ghost-btn {
  align-self: flex-start;
  padding: 0.85rem 1.6rem;
  border: 1px solid rgba(45, 45, 45, 0.15);
  color: var(--text);
  background: transparent;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.ghost-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(184, 92, 56, 0.05);
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .app-shell {
    width: 100%;
    grid-template-columns: 1fr;
    border-radius: 0;
    box-shadow: none;
  }

  .sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    gap: 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
    height: auto;
    position: static;
  }

  .sidebar-header {
    flex-shrink: 0;
  }

  .nav-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-top: 0;
    height: auto;
    flex: 1;
    justify-content: flex-end;
  }

  .nav-links {
    flex-direction: row;
    margin-top: 0;
    gap: 0.5rem;
  }

  .nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.5rem;
    font-size: 0.7rem;
  }

  .nav-links .icon {
    width: 1.15rem;
    height: 1.15rem;
  }

  .sidebar-contact {
    display: none;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 1.75rem 5rem;
    gap: 2.5rem;
  }

  .profile-card {
    margin-left: 0;
    margin-right: 0;
    align-self: center;
    order: -1;
  }
}

.icon {
  width: 0.9rem;
  height: 0.9rem;
  color: currentColor;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: none;
  padding: 1.4rem;
  border-radius: 8px;
  min-width: 220px;
  margin-left: -2rem;
  margin-right: auto;
  opacity: 0;
  animation: float-up 0.9s ease forwards;
  animation-delay: 0.2s;
}

.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: 0 8px 24px rgba(45, 45, 45, 0.08);
}

.profile-card figcaption {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.profile-contact {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.profile-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  transition: color 0.2s ease, transform 0.2s ease;
}

.profile-contact a:hover {
  color: var(--accent-soft);
  transform: translateY(-2px);
}

.profile-contact .icon {
  width: 1.25rem;
  height: 1.25rem;
}


.about-page {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 6rem 8vw 8rem;
}

.about-hero {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.1;
  max-width: 640px;
}

.about-body {
  font-size: 1.05rem;
}

.core-values {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.values-header {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.values-header h2 {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1.75rem;
}

.value-card {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  animation: float-up 0.85s ease forwards;
  animation-delay: calc(0.1s * var(--value-index, 1));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:nth-child(1) {
  --value-index: 1;
}

.value-card:nth-child(2) {
  --value-index: 2;
}

.value-card:nth-child(3) {
  --value-index: 3;
}

.value-card:nth-child(4) {
  --value-index: 4;
}

.value-card h3 {
  font-size: 1.1rem;
  color: var(--accent);
}

.value-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(45, 45, 45, 0.06);
}

.services-page {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 6rem 8vw 8rem;
}

.services-hero {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.services-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 1.12;
  max-width: 640px;
}

.services-body {
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 100%;
  opacity: 0;
  animation: float-up 0.85s ease forwards;
  animation-delay: calc(0.12s * var(--service-index, 1));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card h2 {
  font-size: 1.35rem;
  color: var(--text);
}

.service-card p {
  color: var(--muted);
  line-height: 1.75;
}

.service-icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px rgba(26, 33, 45, 0.1);
}


.hero-copy {
  opacity: 0;
  animation: float-up 0.9s ease forwards;
}

.availability-badge {
  animation-delay: 0.05s;
}

@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card:nth-child(1) {
  --service-index: 1;
}

.service-card:nth-child(2) {
  --service-index: 2;
}

.service-card:nth-child(3) {
  --service-index: 3;
}

.service-card:nth-child(4) {
  --service-index: 4;
}

.contact-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 8vw 8rem;
  gap: 3rem;
}

.contact-hero {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.contact-hero h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  font-weight: 500;
}

.contact-body {
  font-size: 1.1rem;
  color: var(--muted);
}

.contact-methods {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 8px;
  min-width: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: var(--text);
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(45, 45, 45, 0.06);
  border-color: var(--accent);
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
}

.contact-label {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.contact-link:hover .contact-label {
  color: var(--accent);
}

@media (max-width: 768px) {
  .about-page {
    padding: 3rem 1.75rem 4rem;
  }

  .core-values {
    gap: 1.5rem;
  }

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

  .services-page {
    padding: 3rem 1.75rem 4rem;
  }

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

  .contact-page {
    padding: 3rem 1.75rem 4rem;
    gap: 2.5rem;
  }

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

  .contact-link {
    min-width: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
