/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: #333;
  line-height: 1.9;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* === Header === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #222;
}
.nav-desktop { display: flex; align-items: center; gap: 0; }
.nav-desktop a {
  margin-left: 32px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  padding-bottom: 2px;
}
.nav-desktop a:hover { color: #0066aa; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #333;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }
.hamburger.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 99;
  padding: 32px 28px;
  border-top: 1px solid #e5e5e5;
}
.mobile-menu.active { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0; }
.mobile-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

/* === Hero === */
.hero {
  padding: 160px 28px 100px;
  background: url('hero-bg.svg') center/cover no-repeat, #f5f7fa;
  position: relative;
}
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: #222;
}
.hero-sub {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #777;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.hero-bottom-line {
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  margin-top: 48px;
}

/* === Sections === */
.section { padding: 80px 28px; }
.section-gray { background: #f7f8fa; }
.container { max-width: 860px; margin: 0 auto; }
.section-header { margin-bottom: 40px; }
.section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #222;
  display: flex;
  align-items: center;
  gap: 12px;
}
.title-accent {
  display: inline-block;
  width: 4px;
  height: 24px;
  background: #0066aa;
  flex-shrink: 0;
}

/* === Works === */
.works-list { display: flex; flex-direction: column; gap: 0; }
.works-item {
  padding: 28px 0;
  border-bottom: 1px solid #e0e0e0;
}
.works-item:first-child { border-top: 1px solid #e0e0e0; }
.works-item-head { margin-bottom: 10px; }
.works-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}
.works-item h3 a {
  color: #0066aa;
  transition: opacity 0.2s;
}
.works-item h3 a:hover { opacity: 0.7; }
.external-icon {
  font-size: 0.8em;
  margin-left: 4px;
  display: inline-block;
}
.works-item p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.8;
}

/* === Company Table === */
.company-wrap {
  background: #fff;
  border-radius: 4px;
  padding: 8px 32px;
}
.section-gray .company-wrap { box-shadow: none; }
.company-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
}
.company-table tr { border-bottom: 1px solid #eee; }
.company-table tr:last-child { border-bottom: none; }
.company-table th,
.company-table td {
  padding: 16px 0;
  font-size: 0.88rem;
  text-align: left;
  vertical-align: top;
}
.company-table th {
  width: 100px;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.04em;
}
.company-table td { color: #333; }

/* === CEO === */
.ceo-block {
  max-width: 560px;
}
.ceo-card {
  background: #fff;
  padding: 0;
}
.ceo-label {
  font-size: 0.78rem;
  color: #999;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.ceo-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.06em;
}
.ceo-divider {
  width: 32px;
  height: 1px;
  background: #ccc;
  margin: 20px 0;
}
.ceo-bio p {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 4px;
  line-height: 1.8;
}

/* === Contact Form === */
.contact-desc {
  color: #777;
  margin-bottom: 32px;
  font-size: 0.88rem;
  line-height: 1.8;
}
.contact-form {
  max-width: 640px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #444;
}
.required {
  font-size: 0.7rem;
  color: #fff;
  background: #c0392b;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  font-weight: 500;
  vertical-align: middle;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.88rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0066aa;
  box-shadow: 0 0 0 3px rgba(0,102,170,0.06);
}
.form-check { margin-top: 4px; }
.form-check label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  cursor: pointer;
  color: #555;
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #0066aa;
}
.form-check a { color: #0066aa; text-decoration: underline; }
.form-submit-area { margin-top: 8px; }
.btn-submit {
  display: inline-block;
  min-width: 200px;
  padding: 14px 48px;
  background: #0066aa;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: #005590; }
.btn-submit:disabled { background: #aaa; cursor: not-allowed; }
.form-thanks {
  padding: 32px 0;
  font-size: 0.95rem;
  color: #333;
}

/* === Footer === */
.footer {
  background: #f0f1f3;
  color: #666;
  padding: 48px 28px 24px;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid #ddd;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}
.footer-company {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 4px;
}
.footer-address {
  font-size: 0.72rem;
  color: #999;
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}
.footer-nav a {
  font-size: 0.78rem;
  color: #777;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #0066aa; }
.footer-bottom {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 16px;
  text-align: center;
}
.copyright {
  font-size: 0.68rem;
  color: #aaa;
}

/* === Privacy Policy === */
.privacy-content h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #222;
}
.privacy-content p {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 8px;
}
.privacy-content ul {
  margin: 8px 0 16px 20px;
  font-size: 0.88rem;
  color: #555;
}
.privacy-content li { margin-bottom: 4px; }

/* === Fade-in Animation === */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 840px) {
  .nav-desktop { display: none; }
  .hamburger { display: block; }
  .hero { padding: 120px 20px 64px; }
  .hero h1 { font-size: 1.35rem; }
  .section { padding: 56px 20px; }
  .section-title { font-size: 1.15rem; }
  .company-wrap { padding: 8px 16px; }
  .company-table th { width: 80px; }
  .ceo-block { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-nav { text-align: left; }
}
