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

::selection {
  background: rgb(0, 0, 255);
  color: #fff;
}

::-moz-selection {
  background: rgb(0, 0, 255);
  color: #fff;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  line-height: 1.8;
  letter-spacing: 0.1em;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-bar {
  width: 100px;
  height: 2px;
  background: rgb(0, 0, 255);
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* Fixed Video Background */
.video-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

/* Three.js Canvas */
#wind-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* Navigation Menu */
.nav-menu {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: row;
  gap: 32px;
  padding: 10px 32px;
  background: rgba(238, 238, 238, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-menu.visible {
  opacity: 1;
}

.nav-menu a {
  color: #3d3629;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
}

.nav-menu a:hover {
  opacity: 1;
}

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 200;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hamburger.visible {
  opacity: 1;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d3629;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.mobile-menu a:hover {
  opacity: 1;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  width: 100%;
  padding: 0 40px;
  position: relative;
  overflow: visible;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  right: -20%;
  bottom: -20%;
  background:
    radial-gradient(ellipse 40% 35% at 30% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 70%),
    radial-gradient(ellipse 35% 30% at 70% 45%, rgba(255, 255, 255, 0.7) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 50% 55%, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: 10;
  animation: fogDrift 25s ease-in-out infinite;
}

@keyframes fogDrift {
  0%, 100% {
    transform: translateX(-5%) translateY(0);
    opacity: 0.8;
  }
  25% {
    transform: translateX(3%) translateY(-3%);
    opacity: 1;
  }
  50% {
    transform: translateX(5%) translateY(2%);
    opacity: 0.7;
  }
  75% {
    transform: translateX(-2%) translateY(3%);
    opacity: 0.9;
  }
}

.hero-logo {
  width: 100%;
  min-width: 450px;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 0;
}

@media (max-width: 480px) {
  .hero-logo {
    min-width: 200vw;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

/* Text Sections */
.text-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.container {
  max-width: 800px;
  width: 100%;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 1;
  margin: 0;
  line-height: 1;
  position: absolute;
  left: 30px;
}

/* Video Section */
.video-section {
  width: 100%;
  background: #000;
}

.video-section.video-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15%;
  background: #fff;
}

.wave-bg-section {
  position: relative;
}

.wave-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wave-line-svg {
  position: absolute;
  left: -100%;
  top: 50%;
  width: 300%;
  height: 60px;
  transform: translateY(-50%);
  animation: waveScroll 15s linear infinite;
}

.wave-line-svg path {
  fill: none;
  stroke: rgb(0, 0, 255);
  stroke-width: 20;
  stroke-linecap: round;
}

@keyframes waveScroll {
  0% {
    transform: translateY(-50%) translateX(0);
  }
  100% {
    transform: translateY(-50%) translateX(33.33%);
  }
}

.wave-bg-section .section-video {
  position: relative;
  z-index: 1;
}

.section-video {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.video-grid .section-video {
  width: 30%;
}

.refuge-demo .section-video {
  border-radius: 0;
}

.image-section {
  width: 100%;
  background: #fff;
}

.full-width-image {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.icon-section {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
}

.flower-icon {
  width: 120px;
  height: 120px;
}

.title-flower-icon {
  width: 34px;
  height: 34px;
  vertical-align: middle;
  margin-left: 8px;
  margin-bottom: 6px;
}

/* Workshop Photos Grid - Auto Scroll */
.photo-grid-section {
  width: 100%;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.photo-grid {
  display: flex;
  width: max-content;
  animation: scrollPhotos 60s linear infinite;
}

@keyframes scrollPhotos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.photo-grid img {
  width: 50vw;
  margin-right: 5px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 12px;
}

/* Grass Field Section */
.grass-field-section {
  width: 100%;
  height: 30vh;
  min-height: 200px;
  max-height: 300px;
  background: #fff;
  position: relative;
}

#grass-field-container {
  width: 100%;
  height: 100%;
}

#grass-field-container canvas {
  display: block;
}

/* Content sections (Workshop, Exhibition, etc.) */
.content-section {
  position: relative;
  min-height: auto;
  padding: 210px 40px 210px 40px;
  letter-spacing: 0;
  background: #fff;
  color: #3d3629;
  font-family: 'Inter', sans-serif;
}

/* Workshop section background */
#workshop {
  background: #fff;
}

/* Preface wrapper */
.preface-wrapper {
  position: relative;
  background: #fff;
}

/* Wind flag background (fixed) */
#wind-flag {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#wind-flag.visible {
  opacity: 1;
}

/* Preface video (scrolls with content) */
.preface-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.preface-video.visible {
  opacity: 0.5;
}

/* llm-section needs relative positioning for video */
#llm-section {
  position: relative;
}

/* Text sections (preface area) - white background */
.text-section:not(.content-section) {
  background: transparent;
  color: #222;
  position: relative;
  z-index: 2;
}

.text-section:not(.content-section) p.en {
  font-family: 'Noto Serif JP', serif;
}

/* About section specific styling */
#about .container {
  max-width: none;
  margin-left: auto;
  margin-right: 100px;
  width: auto;
  max-width: 700px;
}

#about .container p.en {
  font-family: 'Inter', sans-serif;
  font-size: 27px;
  line-height: 1.7;
}

/* Sensor section specific styling */
#sensor {
  padding-top: 300px;
}

#sensor .container {
  max-width: none;
  margin-left: 35%;
  margin-right: 100px;
  width: auto;
}

#sensor .spec-section {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

#sensor .spec-title {
  flex-shrink: 0;
  width: 280px;
  margin-bottom: 0;
}

#sensor .spec-content {
  flex: 1;
}

/* Refuge section specific styling */
#refuge .container {
  max-width: none;
  margin-left: 35%;
  width: auto;
}

#refuge .spec-section {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

#refuge .spec-title {
  flex-shrink: 0;
  width: 280px;
  margin-bottom: 0;
}

#refuge .spec-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#refuge .spec-content p.en {
  max-width: 100%;
}

/* Workshop section specific styling */
#workshop .container {
  max-width: none;
  margin-left: 35%;
  width: auto;
}

#workshop .spec-section {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

#workshop .spec-title {
  flex-shrink: 0;
  width: 280px;
  margin-bottom: 0;
}

#workshop .spec-content {
  flex: 1;
}

#workshop h3.ja {
  font-size: 0.8em;
  margin-left: 340px;
  margin-top: 48px;
}

#workshop p.ja {
  font-size: 0.8em;
  margin-left: 340px;
}

/* Appendix section specific styling */
#appendix {
  background: #f5f0e8;
}

#appendix .container {
  max-width: none;
  margin-left: 35%;
  width: auto;
}

#appendix .section-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
}

#appendix .spec-section {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

#appendix .spec-title {
  flex-shrink: 0;
  width: 280px;
  margin-bottom: 0;
}

#appendix .spec-content {
  flex: 1;
}

#appendix .spec-content p.ja {
  font-size: 14px;
  line-height: 1.9;
  color: #3d3629;
}

.appendix-toc {
  margin-bottom: 0;
}

.toc-number {
  margin-right: 1em;
  font-weight: 400;
}

.article-number {
  position: absolute;
  left: calc(-34vw + 30px);
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 400;
  color: #3d3629;
}

.appendix-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.appendix-toc li {
  margin-bottom: 12px;
}

.appendix-toc a {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.appendix-toc a:hover {
  opacity: 0.6;
}

.appendix-article {
  position: relative;
  max-width: 680px;
  scroll-margin-top: 100px;
  margin-top: 120px;
}

.appendix-article:first-of-type {
  margin-top: 80px;
}

.article-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 40px;
  color: #3d3629;
  border-bottom: 2px solid #c4b8a8;
  padding-bottom: 16px;
}

.article-note {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  color: #6b5d4d;
  margin-bottom: 40px;
  font-style: italic;
}

.article-section {
  margin-bottom: 40px;
}

.article-section h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #3d3629;
}

.article-section p {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  line-height: 2;
  color: #3d3629;
  margin-bottom: 16px;
  text-indent: 1em;
  text-align: justify;
  font-weight: 400;
}

#appendix p.en {
  font-weight: 400;
}

.article-references {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #c4b8a8;
}

.article-references h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 16px;
  color: #3d3629;
}

.article-references ul {
  list-style: none;
  padding: 0;
}

.article-references li {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  line-height: 1.8;
  color: #6b5d4d;
  margin-bottom: 8px;
  padding-left: 1em;
  text-indent: -1em;
}

@media (max-width: 768px) {
  #appendix .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-title {
    font-size: 20px;
  }

  .article-section h4 {
    font-size: 16px;
  }

  .article-section p {
    font-size: 17px;
  }
}

/* Exhibition section specific styling */
#exhibition .section-title {
  position: absolute;
  left: 30px;
}

#exhibition .container {
  max-width: none;
  margin-left: auto;
  margin-right: 100px;
  text-align: right;
}

@media (max-width: 1024px) {
  body {
    font-size: 20px;
  }

  p.en,
  p.ja,
  .content-section p.en,
  .spec-content p.en,
  .spec-content p.ja,
  .info-block p.en {
    font-size: 20px;
  }

  .section-title,
  section#people .section-title,
  section#exhibition .section-title {
    position: static;
    margin-bottom: 80px;
    margin-left: 0;
    padding-left: 0;
    left: auto;
    top: auto;
  }

  .text-section.content-section {
    padding: 100px 20px;
  }

  section#people .container {
    margin-left: 20px;
    margin-right: 20px;
    width: auto;
    max-width: none;
  }

  #about .container {
    margin-right: 20px;
    margin-left: 20px;
    max-width: none;
  }

  #about .container p.en {
    font-size: 20px;
  }

  #sensor .container,
  #refuge .container,
  #workshop .container,
  #appendix .container {
    margin-right: 20px;
    margin-left: 20px;
    width: auto;
    max-width: none;
  }

  #sensor .spec-section,
  #refuge .spec-section,
  #workshop .spec-section,
  #appendix .spec-section {
    flex-direction: column;
    gap: 16px;
  }

  #sensor .spec-title,
  #refuge .spec-title,
  #workshop .spec-title,
  #appendix .spec-title {
    width: auto;
  }

  .spec-number,
  .article-number {
    position: static;
    margin-right: 0.5em;
  }

  #workshop h3.ja,
  #workshop p.ja {
    margin-left: 0;
  }

  #exhibition .container {
    margin-right: 20px;
    margin-left: 20px;
    text-align: left;
  }

  .coming-soon {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  #about .container,
  #exhibition .container {
    margin-left: 20px;
    margin-right: 20px;
  }

  section#people .container {
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);
    max-width: calc(100vw - 40px);
  }

  #people .section-title,
  #exhibition .section-title {
    position: static;
    margin-bottom: 80px;
  }

  #about .container p.en {
    font-size: 18px;
  }

  .coming-soon {
    font-size: 6px;
    word-break: break-word;
  }

  .photo-grid img {
    width: 85vw;
  }

  .spec-content p.en {
    margin-bottom: 10px;
  }
}

.content-section h3.ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
}

.content-section .subtitle {
  font-size: 16px;
  margin-bottom: 40px;
}

.info-block {
  margin-top: 30px;
}

.info-block p.ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  margin-bottom: 10px;
}

.info-block p.en {
  font-size: 14px;
}

.content-section p.ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
}

.content-section p.en {
  font-size: 16px;
}

.sensor-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 60px;
  border-radius: 12px;
}

/* Sensor Spec Styles */
.spec-section {
  margin-bottom: 48px;
}

.spec-title {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 1;
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 1px solid #000;
}

.spec-number {
  position: absolute;
  left: calc(-34vw + 30px);
  font-weight: 300;
}

.spec-content > *:first-child {
  margin-top: 0;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.spec-list li {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.spec-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  font-size: 8px;
  top: 0.6em;
}

.spec-list.compact li {
  margin-bottom: 4px;
}

.spec-list li strong {
  font-weight: 400;
}

.spec-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.spec-table th {
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.spec-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Mermaid Diagrams */
.mermaid {
  margin: 24px 0;
  padding: 24px;
  background: #fff;
  text-align: center;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

.mermaid.full-width {
  position: relative;
  width: 100vw;
  margin-left: -35vw;
  padding: 40px 20px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .mermaid.full-width {
    margin-left: 0;
    width: 100%;
  }
}

/* Legacy system-flow (kept for compatibility) */
.system-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  padding: 24px;
  background: rgba(0, 0, 0, 0.03);
}

.flow-item {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.flow-arrow {
  font-size: 18px;
  opacity: 0.3;
}

.system-flow.branch {
  margin-top: -12px;
  padding-left: 280px;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .system-flow.branch {
    padding-left: 0;
    padding-right: 0;
  }
}

.code-block {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.03);
  padding: 24px;
  margin: 24px 0;
  overflow-x: auto;
  white-space: pre;
}

/* Teams Section - Tile Grid */
/* Team List - Accordion Style */
.team-list {
  margin-top: 0;
}

.team-member {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.team-member:first-child .member-header {
  padding-top: 0;
}

.member-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.member-header:hover {
  opacity: 0.6;
}

.member-role {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 300;
}

.member-name {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 300;
  text-align: left;
}

.member-profile {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
  margin-left: 0;
  font-size: 0.8em;
}

.team-member.active .member-profile {
  max-height: 800px;
  padding: 0 0 24px 0;
}

.member-bio {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  color: #3d3629;
}

.member-instagram,
.member-link {
  color: #3d3629;
  text-decoration: none;
  opacity: 0.6;
  display: inline-block;
  margin-right: 20px;
}

.member-instagram svg,
.member-link svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.member-instagram:hover,
.member-link:hover {
  opacity: 1;
}

/* Teams section specific styling */
#people .section-title {
  position: absolute;
  left: 30px;
}

#people .container {
  max-width: none;
  margin-left: 30%;
  margin-right: 100px;
  width: auto;
}

/* Profile Modal */
.profile-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.profile-modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #3d3629;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  z-index: 10;
}

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

.modal-photo {
  width: 100%;
  aspect-ratio: 1;
  max-height: 400px;
  background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
}

.modal-info {
  padding: 32px;
}

.modal-name-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 8px 0;
}

.modal-name-en {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  opacity: 0.6;
  margin: 0 0 8px 0;
}

.modal-role {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0 0 24px 0;
}

.modal-bio {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 24px 0;
}

.modal-instagram {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #3d3629;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

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

p.ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 30px;
  line-height: 1.8;
}

p.en {
  font-size: 18px;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
}

.footer-section {
  min-height: auto;
  padding: 60px 40px;
  flex-direction: column;
  align-items: center;
  background: #fff;
}

.footer-section .flower-icon {
  margin-bottom: 40px;
}

.footer-section p.ja {
  font-size: 16px;
}

.footer-section p.en {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: 0.3em;
  }

  .text-section {
    padding: 100px 0;
  }

  .text-section:not(.content-section) {
    min-height: 100vh;
    padding: 80px 20px;
    align-items: flex-start;
    overflow: visible;
  }

  section.text-section.content-section {
    padding: 100px 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
  }

  section#sensor .container,
  section#refuge .container,
  section#workshop .container,
  section#appendix .container {
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);
    max-width: calc(100vw - 40px);
  }

  section#sensor,
  section#refuge,
  section#workshop,
  section#people,
  section#exhibition,
  section#appendix {
    line-height: 1.5;
  }

  .spec-table {
    font-size: 10px;
    width: 100%;
    table-layout: fixed;
  }

  .spec-table th,
  .spec-table td {
    padding: 6px 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  p.ja {
    font-size: 16px;
  }

  p.en {
    font-size: 14px;
    line-height: 1;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }

  .member-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .member-role {
    width: auto;
    font-size: 14px;
  }

  .member-name {
    font-size: 18px;
  }

  .member-profile {
    padding: 0;
  }

  .team-member.active .member-profile {
    padding: 0 0 20px 0;
  }

  #people .container {
    margin-right: 20px;
    margin-left: 20px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  p.ja {
    font-size: 14px;
  }

  p.en {
    font-size: 13px;
  }

  .member-name {
    font-size: 16px;
  }
}

/* Copyright Footer */
.copyright {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}

.copyright p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #3d3629;
  margin: 0;
}

.coming-soon {
  font-family: 'Inter', sans-serif;
  font-size: 45px;
  font-weight: 400;
  color: #3d3629;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.reading-progress.visible {
  opacity: 1;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: #3d3629;
  transition: width 0.1s ease-out;
}

.reading-progress-percent {
  position: fixed;
  bottom: 30px;
  left: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #3d3629;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.reading-progress-percent.visible {
  opacity: 1;
}

.back-to-toc {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #3d3629;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border: 1px solid #c4b8a8;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease;
  pointer-events: none;
}

.back-to-toc.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-toc:hover {
  background: #f5f0e8;
}
