/* Re-start static site — Shapely-inspired styles */
:root {
  --accent: #20c6c0;
  --accent-hover: #1cb0ab;
  --text: #444;
  --text-light: #888;
  --bg-secondary: #f8f8f8;
  --footer-bg: #222;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Raleway", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:focus {
  color: var(--accent-hover);
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.custom-logo {
  display: block;
  height: 50px;
  width: auto;
}

.main-navigation .menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem 1.5rem;
}

.main-navigation .menu a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.main-navigation .menu a:hover,
.main-navigation .menu .active a {
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-collapse {
  display: block;
}

/* Hero / parallax sections */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin-top: 72px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-section .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 2rem 1.5rem;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin: 0 0 1rem;
  letter-spacing: 0.05em;
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-section.small {
  min-height: 55vh;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  margin: 0.25rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn-filled {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.btn-filled:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  color: #fff !important;
}

.btn-white {
  background: transparent !important;
  border: 2px solid #fff !important;
  color: #fff !important;
}

.btn-white:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

/* Content sections */
.content-section {
  padding: 5rem 0;
}

.content-section.bg-secondary {
  background: var(--bg-secondary);
}

.section-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.section-row.reverse {
  flex-direction: row-reverse;
}

.section-text {
  flex: 1 1 320px;
}

.section-image {
  flex: 1 1 400px;
  text-align: center;
}

.section-text h2,
.section-text h3 {
  font-weight: 600;
  margin-top: 0;
  color: #222;
}

.section-text h3 {
  font-size: 1.75rem;
}

.mb32 {
  margin-bottom: 2rem;
}

/* Page header (inner pages) */
.page-hero {
  margin-top: 72px;
  padding: 4rem 0 3rem;
  background: var(--bg-secondary);
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  color: #222;
}

.page-hero p {
  margin: 1rem 0 0;
  color: var(--text-light);
}

/* Contact block */
.contact-section {
  position: relative;
  padding: 5rem 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-section h1 {
  text-align: center;
  font-weight: 300;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-section .intro {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0.95;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid a {
  color: #fff;
  text-decoration: underline;
}

.contact-grid strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Company table */
.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 28%;
  font-weight: 600;
  color: #222;
  background: var(--bg-secondary);
}

/* Logo carousel */
.logo-section {
  padding: 4rem 0;
  text-align: center;
}

.logo-section h3 {
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.logo-grid img {
  max-height: 60px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(20%);
  transition: opacity 0.2s;
}

.logo-grid img:hover {
  opacity: 1;
}

/* CTA bar */
.cfa-section {
  background: var(--bg-secondary);
  padding: 2.5rem 0;
}

.cfa-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

.cfa-inner h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  flex: 1 1 300px;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #aaa;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #ccc;
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 900px;
}

/* Mobile */
@media (max-width: 991px) {
  .mobile-toggle {
    display: block;
  }

  .nav-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
  }

  .nav-collapse.open {
    display: block;
  }

  .main-navigation .menu {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation .menu a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }

  .hero-section {
    background-attachment: scroll;
    min-height: 85vh;
  }

  .contact-section {
    background-attachment: scroll;
  }

  .section-row,
  .section-row.reverse {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-section,
  .contact-section {
    background-attachment: scroll;
  }
}
