@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Sawarabi+Mincho&display=swap');

html {
  box-sizing: border-box;
  font-size: 13px;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: "Sawarabi Mincho", serif;
}

/* ---------- header ---------- */

.site-header {
  width: 100%;
}

.title {
  display: block;
  width: 100%;
  height: auto;
}

.site-header h1 {
  margin: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

/* ---------- main ---------- */

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

main section {
  margin-bottom: 3rem;
}

main h2 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

main p {
  margin: 0;
  font-size: 1rem;
  line-height: 2;
}

/* ---------- links ---------- */

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.platform-links ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.platform-links li {
  margin-bottom: 0.7rem;
}

.platform-links .primary-link {
  margin: 0;
  font-size: 1.1rem;
}

.platform-links .primary-link a {
  font-weight: 500;
}

/* ---------- world ---------- */

.world-map {
  margin: 2rem 0 0;
}

.world-map img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- work type ---------- */

.work-type {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.site-subtitle {
  text-align: center;
  margin-top: 0.4em;
  letter-spacing: 0.08em;
}
/* ---------- footer ---------- */

.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  font-size: 0.85rem;
}

/* ---------- mobile ---------- */

@media (max-width: 600px) {
  main {
    padding-top: 1rem;
  }

  main section {
    margin-bottom: 2rem;
  }

  .site-header h1 {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    padding: 1.2rem 1rem;
  }
}

.textile-gallery,
.fashion-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 2rem 0 3rem;
}

.textile-gallery figure,
.fashion-gallery figure {
  flex: 0 0 110px;
  width: 110px;
  margin: 0;
}

.textile-gallery img,
.fashion-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.textile-gallery figcaption,
.fashion-gallery figcaption {
  margin-top: 0.6em;
  line-height: 1.5;
  font-size: 0.9em;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  border: 0;
  padding: 0.25rem 0.75rem;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 2rem;
  cursor: pointer;
}
/* ---------- Area gallery ---------- */

.area-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 2rem 0 3rem;
}

.area-gallery figure {
  flex: 0 0 280px;
  width: 280px;
  margin: 0;
}

.area-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.area-gallery figcaption {
  margin-top: 0.6rem;
  font-size: 0.9em;
}
.style-image {
  margin: 1rem 0 2.5rem;
}

.style-image img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}
.style-published {
  margin-top: 1rem;
  font-size: 0.85em;
  opacity: 0.7;
}
.styles-index > section:first-of-type {
  margin-top: 2.5rem;
}
/* ---------- Nation map ---------- */

.nation-map {
  width: 300px;
  max-width: 100%;
  margin: 1.5rem 0 2.5rem;
}

.nation-map img {
  display: block;
  width: 100%;
  height: auto;
}

.nation-map figcaption {
  margin-top: 0.6rem;
  font-size: 0.9em;
}
.nations-index > section:first-of-type {
  margin-top: 2.5rem;
}
/* ---------- Visual Production ---------- */

.process-example {
  margin: 2rem 0 3rem;
}

.process-example img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
}

.process-example figcaption {
  margin-top: 0.6rem;
  font-size: 0.9em;
}
/* ---------- Story ---------- */

.story-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 2.5rem 0 3rem;
}

.story-item {
  flex: 0 0 200px;
  width: 200px;
  margin: 0;
}

.story-cover {
  margin: 0 0 1rem;
}

.story-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.story-item h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .story-list {
    gap: 24px;
  }

  .story-item {
    flex: 0 0 calc(50% - 12px);
    width: calc(50% - 12px);
  }
}

.story-publication-table {
  width: 100%;
  border-collapse: collapse;
}

.story-publication-table th,
.story-publication-table td {
  border: 1px solid #aaa;
  padding: 0.6em 0.8em;
}
.story-publication-table th,
.story-publication-table td {
  text-align: center;
}
/* Story Detail Cover */

.story-cover-detail {
  max-width: 280px;
  margin: 0 auto 2rem;
}

.story-cover-detail img {
  display: block;
  width: 100%;
  height: auto;
}
/* Story Writing Progress */

.writing-progress {
  margin: 3rem 0;
  line-height: 1.8;
}
/* Contact Link */

.contact-link {
  margin-top: 2rem;
  font-size: 0.875rem;
}