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

html,
body {
  height: 100%;
}

body {
  background: #fbfaf5;
  color: #262626;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

button {
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
button:focus-visible {
  outline: 2px solid #6f9b55;
  outline-offset: 2px;
}
button:disabled {
  cursor: default;
}

a:focus-visible {
  outline: 2px solid #6f9b55;
  outline-offset: 2px;
}

svg {
  display: block;
}

.Article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}
.Article h1 {
  font-size: 24px;
  line-height: 34px;
  font-weight: 500;
}
.Article h2 {
  margin-top: 36px;
  font-size: 19px;
  line-height: 28px;
  font-weight: 500;
}
.Article h3 {
  margin-top: 20px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.Article p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 26px;
}

.Photosynthesis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.Header {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 14px 24px;
}
.Header-Logo {
  color: #262626;
  font-family: "Quicksand", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 18px;
  text-decoration: none;
}
.Header-Title {
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}

.SceneNav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}
.SceneNav-Item {
  padding: 6px 13px;
  border-radius: 999px;
  color: #6b6b6b;
  font-size: 13px;
  line-height: 18px;
}
.SceneNav-Item:hover {
  background: #eef3e7;
}
.SceneNav-Item[data-active] {
  background: #cfe2bd;
  color: #262626;
}

.Simulation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 0 20px 18px 24px;
}

.Diagram {
  flex: 0 1 auto;
  min-height: 0;
  aspect-ratio: 5/3;
}

.Diagram-Svg {
  width: 100%;
  height: 100%;
}
.Diagram-Svg [data-part] {
  transition: opacity 0.3s;
}
.Diagram-Svg[data-focus] [data-part] {
  opacity: 0.2;
}
.Diagram-Svg[data-focus] [data-part][data-highlight] {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(244, 197, 66, 0.75));
}

.Status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 12px;
}
.Status-Play {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #cfe2bd;
  color: #262626;
}
.Status-Play:hover {
  background: #e2edd6;
}
.Status-Text {
  min-height: 48px;
  padding-top: 9px;
  font-size: 14px;
  line-height: 22px;
}

.Control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 12px;
}

.ChoiceRow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ChoiceRow-Title {
  color: #6b6b6b;
  font-size: 12px;
}
.ChoiceRow-Option {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #eef3e7;
}
.ChoiceRow-Button {
  padding: 5px 13px;
  border-radius: 999px;
  color: #6b6b6b;
  font-size: 13px;
  line-height: 18px;
}
.ChoiceRow-Button:hover {
  color: #262626;
}
.ChoiceRow-Button[data-selected] {
  background: #ffffff;
  color: #262626;
  box-shadow: 0 1px 2px rgba(38, 38, 38, 0.14);
}

.Guide {
  overflow-y: auto;
  padding: 26px 28px 48px;
  background: #ffffff;
}
.Guide-Title {
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
}
.Guide-Body p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 26px;
}

.StepList {
  margin-top: 22px;
  list-style: none;
}
.StepList-Item {
  border-radius: 12px;
}
.StepList-Item[data-active] {
  background: #eef3e7;
}
.StepList-Head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
}
.StepList-Number {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef3e7;
  color: #6b6b6b;
  font-size: 12px;
}
.StepList-Title {
  color: #6b6b6b;
  font-size: 14px;
  line-height: 20px;
}
.StepList-Item[data-active] .StepList-Number {
  background: #cfe2bd;
  color: #262626;
}
.StepList-Item[data-active] .StepList-Title {
  color: #262626;
}
.StepList-Body {
  padding: 0 14px 12px 44px;
}
.StepList-Body p {
  font-size: 14px;
  line-height: 24px;
}

.StepNav {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.StepNav-Button {
  padding: 7px 18px;
  border-radius: 999px;
  background: #eef3e7;
  font-size: 13px;
  line-height: 18px;
}
.StepNav-Button:hover {
  background: #e2edd6;
}
.StepNav-Button:disabled {
  opacity: 0.4;
}
.StepNav-Button:disabled:hover {
  background: #eef3e7;
}

.Note {
  margin-top: 24px;
  padding: 16px 18px 18px;
  border-radius: 12px;
  background: #f6f3e8;
}
.Note-Title {
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}
.Note p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 24px;
}

.Inset {
  margin-top: 22px;
}
.Inset-Svg {
  width: 100%;
  height: auto;
}
.Inset-Caption {
  margin-top: 6px;
  color: #6b6b6b;
  font-size: 12px;
  line-height: 18px;
}

.SymbolKey {
  margin-top: 30px;
}
.SymbolKey-Title {
  color: #6b6b6b;
  font-size: 12px;
  font-weight: 500;
}
.SymbolKey-List {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
  list-style: none;
}
.SymbolKey-Item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .Photosynthesis {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}
@media (max-width: 760px) {
  .Photosynthesis {
    display: block;
    height: auto;
  }
  .Guide {
    overflow-y: visible;
  }
}
@media (prefers-reduced-motion: reduce) {
  .Diagram-Svg [data-part] {
    transition: none;
  }
}
