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

:root {
  --color-bg: #fafafa;
  --color-bg-alt: #f0eeeb;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-accent: #b8860b;
  --color-accent-light: #d4a843;
  --color-border: #e0ddd8;
  --color-card: #fff;
  --font-sans: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --max-width: 1080px;
  --header-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  opacity: 0.7;
}

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

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

section:nth-child(even) {
  background: var(--color-bg-alt);
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

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

.header-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.header-logo span {
  color: var(--color-accent);
}

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

.nav-links a {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-text);
  opacity: 1;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero-logo {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 24px;
}

.hero-logo span {
  color: var(--color-accent);
}

.hero-tagline {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--color-text-muted);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.6;
}

.hero-sub {
  font-size: 14px;
  color: var(--color-text-muted);
  opacity: 0.7;
  margin-bottom: 48px;
}

.hero-scroll {
  display: inline-block;
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-accent);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
}

.about-card dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.about-card dd {
  font-size: 18px;
  font-weight: 600;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.service-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.service-tags span {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ===== Service Feature (Full-width) ===== */
.service-feature {
  margin-bottom: 32px;
}

.service-feature-inner {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 48px 40px;
}

.service-feature h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.service-feature > .service-feature-inner > p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 800px;
}

.protocol-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.protocol-item {
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: 20px 24px;
}

.protocol-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.protocol-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.service-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.service-cta:hover {
  background: var(--color-accent-light);
  opacity: 1;
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .protocol-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-feature-inner {
    padding: 56px 48px;
  }
}

@media (min-width: 1024px) {
  .protocol-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Products ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.product-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-subtitle {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.product-desc {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.product-features {
  list-style: none;
  margin-bottom: 20px;
}

.product-features li {
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.product-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.product-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 100px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===== Technology ===== */
.tech-category {
  margin-bottom: 36px;
}

.tech-category h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-pills span {
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.tech-pills span:hover {
  border-color: var(--color-accent);
  background: rgba(184, 134, 11, 0.05);
}

/* ===== Team ===== */
.team-profile {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
  margin-bottom: 32px;
}

.team-profile h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-profile .role {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.team-profile p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.track-record {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.track-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
}

.track-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.track-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact-wrapper {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-wrapper p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.contact-form-frame {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-card);
}

.contact-form-frame iframe {
  width: 100%;
  height: 600px;
  border: none;
}

.contact-info {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.contact-info dt {
  font-weight: 600;
  color: var(--color-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== Other Business ===== */
.other-business {
  padding: 48px 0;
}

.other-business-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.other-business-list {
  list-style: none;
  columns: 1;
  gap: 0;
}

.other-business-list li {
  font-size: 13px;
  color: var(--color-text-muted);
  opacity: 0.7;
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
}

.other-business-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-border);
}

@media (min-width: 768px) {
  .other-business-list {
    columns: 2;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile Menu ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99;
  padding: 48px 24px;
}

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

.mobile-nav a {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .track-record {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  section {
    padding: 64px 0;
  }

  .hero-logo {
    font-size: 56px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .track-record {
    grid-template-columns: repeat(3, 1fr);
  }
}
