:root {
  --bg: #f7f6f0;
  --panel: #ffffff;
  --text: #2a2a25;
  --muted: #6b6a60;
  --line: #dedccf;
  --mint: #b2ffb2;
  --mint-soft: #e8f6e2;
  --green: #2e6b3a;
  --green-dark: #22522c;
  --red: #b3402e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

a {
  color: var(--green);
}

a:hover {
  color: var(--green-dark);
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  line-height: 1.4;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.nav,
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 14px;
}

.nav a,
.social a {
  color: var(--text);
  text-decoration: none;
}

.social a {
  color: var(--muted);
}

.nav a:hover,
.social a:hover {
  color: var(--green);
  text-decoration: underline;
}

.hero {
  padding: 72px 20px 64px;
  background: var(--mint);
  color: #1d3a23;
  text-align: center;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5vw, 38px);
}

.hero p {
  margin: 0 0 28px;
  font-size: 17px;
}

.hero .note {
  margin: 20px 0 0;
  font-size: 13px;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0 0;
}

.section-title {
  margin: 0 0 24px;
  padding-left: 12px;
  border-left: 5px solid var(--green);
  font-size: 22px;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: var(--green);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--green-dark);
  color: #ffffff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-sub {
  background: var(--panel);
  color: var(--green);
}

.btn-sub:hover {
  background: var(--mint-soft);
  color: var(--green-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature {
  display: flex;
  margin-bottom: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.feature img {
  width: 45%;
  object-fit: cover;
}

.feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.feature-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.feature-body p {
  margin: 0 0 20px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.card .btn {
  margin-top: auto;
}

.tag {
  align-self: flex-start;
  padding: 0 8px;
  border-radius: 3px;
  background: var(--mint-soft);
  color: var(--green);
  font-size: 12px;
}

details {
  margin-bottom: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

summary {
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
}

.member {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.member-id {
  flex: none;
  width: 120px;
  text-align: center;
}

.member-id img {
  width: 96px;
  height: 96px;
  margin: 0 auto 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.member-id strong {
  display: block;
}

.member-id span {
  color: var(--muted);
  font-size: 13px;
}

.member ul,
.credits {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
}

.credits {
  list-style: none;
  padding: 0;
}

.credits dt {
  margin-top: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.credits dd {
  margin: 0;
}

.site-footer {
  margin-top: 72px;
  padding: 24px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 0;
}

.back {
  font-size: 14px;
}

.page h1 {
  margin: 20px 0 4px;
  font-size: 28px;
}

.lead {
  margin: 0;
  color: var(--muted);
}

.detail {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  margin-top: 32px;
}

.page h2 {
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.spec {
  padding-left: 1.2em;
  font-size: 14px;
}

.get {
  align-self: start;
  padding: 20px;
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}

.get h2 {
  border: 0;
  font-size: 15px;
}

.get .btn {
  width: 100%;
}

.status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status.ok {
  color: var(--green);
}

.status.error {
  color: var(--red);
}

.block {
  margin-top: 40px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: #ecebe2;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps {
  padding-left: 1.4em;
  font-size: 14px;
}

.steps li {
  margin-bottom: 8px;
}

.doc {
  max-width: 800px;
}

.doc .intro {
  margin: 24px 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.doc h2 {
  margin-top: 32px;
  font-size: 17px;
}

.doc ul {
  padding-left: 1.2em;
  font-size: 14px;
}

.doc li {
  margin-bottom: 6px;
}

.doc .colophon {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}

.notfound {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 20px 0;
  text-align: center;
}

.notfound .code {
  margin: 0;
  color: var(--green);
  font-size: 88px;
  font-weight: 700;
  line-height: 1.2;
}

.notfound .path {
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.notfound .btn-row {
  justify-content: center;
  margin-top: 28px;
}

.ip {
  margin-top: 32px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}

.ip code {
  font-size: 15px;
  font-weight: 700;
}

.ip .btn {
  display: block;
  width: 100%;
  margin-top: 12px;
}

.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overscroll-behavior-y: contain;
}

.login-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.login-bar .state {
  color: var(--muted);
  font-size: 13px;
}

.login-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login-main h1 {
  margin: 0 0 20px;
  font-size: 22px;
  text-align: center;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

#player {
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  pointer-events: none;
}

.video-guard {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.play-hint {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.play-hint[hidden] {
  display: none;
}

.play-hint span {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-style: solid;
  border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent #ffffff;
}

.state-mobile {
  display: none;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  padding: 10px 22px;
  background: var(--green);
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.2s;
}

.toast.show {
  opacity: 1;
}

@media (max-width: 720px) {
  .feature {
    flex-direction: column;
  }

  .feature img {
    width: 100%;
    height: 200px;
  }

  .member {
    flex-direction: column;
    align-items: center;
  }

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

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

  .login-bar .state {
    display: none;
  }

  .state-mobile {
    display: block;
  }
}

.member h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.credits {
  margin: 0;
}

.notfound h1 {
  margin: 0 0 12px;
  font-size: 22px;
}

.login-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.state.ok,
.state-mobile.ok {
  color: var(--green);
  font-weight: 700;
}

.state.error,
.state-mobile.error {
  color: var(--red);
}
