:root {
  --purple: #5b3e96;
  --purple-dark: #3f2a6b;
  --mint: #2fd7c4;
  --gray-bg: #f5f4fa;
  --text: #2c2c2c;
}

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

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: #fff;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #e9e6f2;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--purple-dark);
}
.logo span {
  display: block;
  font-size: 0.62rem;
  color: var(--mint);
  letter-spacing: 0.18em;
  font-weight: 600;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #444;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav a:hover, nav a.active {
  border-color: var(--mint);
  color: var(--purple-dark);
}

/* Hero */
.hero {
  background: linear-gradient(120deg, #f5f4fa 0%, #ece8f7 100%);
  padding: 100px 24px 60px;
  text-align: center;
}
.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 18px;
  color: var(--purple-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero p {
  font-size: 1.05rem;
  margin-bottom: 32px;
  color: #555;
}
.btn {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  padding: 15px 40px;
  font-weight: 700;
  border-radius: 30px;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.btn:hover { background: var(--purple-dark); }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--purple);
  color: var(--purple-dark);
  padding: 13px 38px;
  font-weight: 700;
  border-radius: 30px;
  margin-left: 14px;
  letter-spacing: 0.03em;
}

/* Sections */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center;
  font-size: 1.7rem;
  color: var(--purple-dark);
  margin-bottom: 14px;
  font-weight: 700;
}
.section-sub {
  text-align: center;
  color: #777;
  margin-bottom: 50px;
}
.bg-gray { background: var(--gray-bg); }
.bg-purple { background: var(--purple-dark); color: #fff; }

/* Exterior photo (about page) */
.exterior-photo {
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 12px;
}
.exterior-photo img { width: 100%; height: 380px; object-fit: cover; display: block; }
.exterior-caption { text-align: center; color: #777; font-size: 0.85rem; }

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid #e9e6f2;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 12px rgba(91,62,150,0.05);
}
.card-photo { height: 140px; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 32px 24px; }
.card .icon {
  font-size: 2.1rem;
  color: var(--purple);
  margin-bottom: 16px;
}
.card h3 {
  color: var(--purple-dark);
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Strengths */
.strength {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 42px;
}
.strength .num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--mint);
  min-width: 60px;
}
.strength h3 { color: var(--purple-dark); margin-bottom: 10px; font-weight: 700; }

/* Table */
table { width: 100%; border-collapse: collapse; }
table th, table td {
  padding: 18px 16px;
  border-bottom: 1px solid #e9e6f2;
  text-align: left;
}
table th {
  background: var(--gray-bg);
  color: var(--purple-dark);
  width: 200px;
  font-weight: 700;
}

/* Works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.work-card {
  border: 1px solid #e9e6f2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(91,62,150,0.05);
}
.work-photo {
  height: 180px;
  background: linear-gradient(135deg, var(--purple), var(--mint));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
}
.work-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-body { padding: 22px; }
.work-body h3 { color: var(--purple-dark); margin-bottom: 8px; font-weight: 700; }
.tag {
  display: inline-block;
  background: var(--gray-bg);
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid #e0dcef;
}

/* Gallery (auto horizontal scroll) */
.gallery-outer {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: gallery-scroll 32s linear infinite;
}
.gallery-outer:hover .gallery-track { animation-play-state: paused; }
.gallery-track img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(91,62,150,0.12);
}
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* CTA */
.cta {
  background: var(--purple-dark);
  color: #fff;
  text-align: center;
}
.cta h2 { margin-bottom: 18px; font-size: 1.6rem; font-weight: 700; }
.cta p { margin-bottom: 30px; opacity: 0.9; }
.cta .btn { background: var(--mint); color: var(--purple-dark); }
.cta .btn:hover { background: #26bfae; }

/* Form */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--purple-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px;
  border: 1px solid #d8d4e6;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.required {
  background: var(--mint);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 9px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.submit-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 16px 50px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  letter-spacing: 0.03em;
}

/* Footer */
footer {
  background: #f5f4fa;
  color: #555;
  padding: 50px 24px 24px;
  border-top: 1px solid #e9e6f2;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-inner h4 { color: var(--purple-dark); margin-bottom: 16px; font-weight: 700; }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 8px; font-size: 0.9rem; }
.copyright {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0dcef;
  font-size: 0.85rem;
}

/* Page header */
.page-header {
  background: linear-gradient(120deg, #f5f4fa 0%, #ece8f7 100%);
  color: var(--purple-dark);
  padding: 60px 24px;
  text-align: center;
}
.page-header h1 { font-size: 2rem; font-weight: 700; }

/* Photos */
.hero-image {
  max-width: 900px;
  margin: 40px auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(91,62,150,0.15);
}
.hero-image img { width: 100%; display: block; }

.staff-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 24px;
  border: 4px solid var(--mint);
}

.map-title {
  text-align: center;
  color: var(--purple-dark);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 20px;
}
.map-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(91,62,150,0.1);
  border: 1px solid #e9e6f2;
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

@media (max-width: 768px) {
  nav ul { gap: 14px; flex-wrap: wrap; }
  .header-inner { flex-direction: column; gap: 12px; }
  .grid-3 { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  table th { width: 120px; font-size: 0.85rem; }
  .strength { flex-direction: column; gap: 8px; }
  .gallery-track img { width: 220px; height: 150px; }
}
