@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;
  --yellow: #f0b028;
  --sky: #7ec8d8;
  --sky-pale: #e6f3f7;
  --cream: #faf7f2;
  --white: #ffffff;
  --text: #2a2a2a;
  --text-sub: #5c6a76;
  --border: #d8dee4;
  --max-w: 720px;
}

html { scroll-behavior: smooth; }

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

/* ===== Header ===== */
.header-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 1.5rem;
  text-align: center;
}

.header-logo {
  max-width: 100px;
  height: auto;
}

/* ===== Main ===== */
.work-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.work-page h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

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

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

.work-desc {
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ===== Work image ===== */
.work-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 2rem;
}

/* ===== Sections ===== */
.work-section {
  margin-bottom: 2rem;
}

.work-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.8rem;
  padding-left: 0.7rem;
  position: relative;
}

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

.work-section p {
  font-size: 0.95rem;
  line-height: 1.9;
}

.work-section a {
  color: var(--orange);
  font-weight: 500;
}

.work-section a:hover {
  color: var(--navy);
}

/* ===== Back link ===== */
.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5em 1.2em;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: background .15s, color .15s;
}

.back-link:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .work-page h1 { font-size: 1.4rem; }
  .work-page { padding: 2rem 1rem 3rem; }
  .header-logo { max-width: 80px; }
}
