@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

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

:root {
  --navy: #1a3650;
  --navy-light: #244a6a;
  --orange: #e06520;
  --orange-hover: #c8551a;
  --yellow: #f0b028;
  --sky: #7ec8d8;
  --sky-pale: #e6f3f7;
  --cream: #faf7f2;
  --white: #ffffff;
  --text: #2a2a2a;
  --text-sub: #5c6a76;
  --border: #d8dee4;
  --max-w: 960px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--cream);
}

/* ============================
   Hero
   ============================ */
.hero {
  background: var(--white);
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.hero-logo {
  max-width: 200px;
  height: auto;
}

.hero-sub {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-sub);
}

/* ============================
   Nav - ネイビーバーで存在感
   ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  justify-content: center;
  gap: 0;
}

.nav a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  transition: color .15s, background .15s;
}

.nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* ============================
   Shared section
   ============================ */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.8rem;
  position: relative;
  display: inline-block;
  padding-left: 0.8rem;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 2px;
  background: var(--orange);
}

/* ============================
   About - 背景にスカイ帯
   ============================ */
.about-wrap {
  background: var(--sky-pale);
}

.about-text {
  font-size: 1rem;
  line-height: 2;
  max-width: 640px;
}

/* ============================
   Works
   ============================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

a.work-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
  border-left: 4px solid var(--sky);
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.work-card:hover {
  border-left-color: var(--orange);
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}

.work-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.work-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.work-tag {
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15em 0.6em;
  border-radius: 3px;
}

.work-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
}

/* ============================
   Members - ネイビー背景
   ============================ */
.members-wrap {
  background: var(--navy);
  color: var(--white);
}

.members-wrap .section-title {
  color: var(--white);
}

.members-wrap .section-title::before {
  background: var(--yellow);
}

.members-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.member-card {
  text-align: center;
  min-width: 140px;
}

.member-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.7rem;
  display: block;
}

.member-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.member-card a {
  color: var(--sky);
  text-decoration: none;
  font-size: 0.85rem;
}

.member-card a:hover {
  text-decoration: underline;
}

/* ============================
   Others
   ============================ */
.others-list {
  list-style: none;
}

.others-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.others-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* ============================
   Footer
   ============================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
}

/* ============================
   Modal
   ============================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.75);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.modal-close {
  position: fixed;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity .15s;
}

.modal-close:hover {
  opacity: 1;
}

.others-list a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
}

.others-list a:hover {
  color: var(--orange);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 600px) {
  .hero-logo { max-width: 150px; }

  .nav a {
    padding: 0.6rem 0.8rem;
    font-size: 0.78rem;
  }

  .section { padding: 2.5rem 1rem; }

  .works-grid { grid-template-columns: 1fr; }

  .members-grid { gap: 1.5rem; }
}
