/*
Theme Name: FB DESIGN Original Theme
Theme URI: https://fbdesign.example.com
Author: FB DESIGN
Description: One-page corporate site theme for FB DESIGN.
Version: 1.0
Text Domain: fbdesign
*/

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", system-ui, sans-serif;
  color: #333;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 400;
  margin: 0 0 0.8em;
  color: #223133;
}

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

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

.wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eee;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #426c5c;
  transition: width .2s;
}

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

/* Hero */
.hero {
  margin-top: 64px; /* header height */
}

.hero-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  object-fit: cover;
}

.hero-copy {
  background: #ffffff;
  text-align: center;
  padding: 40px 20px 64px;
}

.hero-copy h1 {
  font-size: 26px;
  letter-spacing: 0.12em;
}

.hero-copy p {
  margin: 0;
  font-size: 14px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.3em;
  font-size: 18px;
}

/* About */
.about-text {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 14px;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.about-badges img {
  max-width: 220px;
}

/* Strengths */
.strengths-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 36px;
  align-items: flex-start;
}

.strengths-item h3 {
  font-size: 20px;
}

.strengths-item p {
  font-size: 14px;
}

.strengths-center {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 24px;
}

/* Works slider */
.works-main {
  max-width: 960px;
  margin: 0 auto 24px;
}

.works-main img {
  width: 100%;
  cursor: pointer;
}

.works-thumbs {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.works-thumbs img {
  width: 140px;
  flex: 0 0 auto;
  opacity: 0.6;
  cursor: pointer;
  border: 2px solid transparent;
}

.works-thumbs img.is-active {
  opacity: 1;
  border-color: #426c5c;
}

/* Lightbox */
.fb-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.fb-lightbox-overlay.is-visible {
  display: flex;
}

.fb-lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
}

/* Contact */
.contact-intro {
  text-align: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.contact-email {
  text-align: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.contact-email a {
  color: #426c5c;
  text-decoration: underline;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form-row {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 14px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  display: inline-block;
  padding: 10px 32px;
  border-radius: 999px;
  border: none;
  background: #426c5c;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover {
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: #f4f6f5;
  padding: 24px 0;
  font-size: 12px;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav ul {
    gap: 18px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    padding: 0 12px;
  }

  .hero-copy {
    padding: 32px 16px 48px;
  }

  .hero-copy h1 {
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  .section {
    padding: 56px 0;
  }

  .strengths-layout {
    grid-template-columns: 1fr;
  }

  .about-badges img {
    max-width: 160px;
  }
}