/* Shared styles for the YUIN official site.
   Component values come from the owner-confirmed design mockups
   (design team). Layout additions: 15-stage2-plan.md. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
}
body {
  background: #F2F6F4;
  color: #1F2937;
}
/* The hidden attribute must always win over component display rules
   (e.g. .btn sets display:flex, which would otherwise defeat hidden
   and show both download buttons at once). */
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
}
.wrap.read {
  max-width: 760px;
  margin: 0 auto;
}
.wrap.wide {
  max-width: 1080px;
  margin: 0 auto;
}
.bd {
  padding: 14px 16px 20px;
}
.card {
  background: #fff;
  border: 1px solid #DDE6E1;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.card h3 {
  font-size: 15px;
  color: #1F2937;
  margin-bottom: 8px;
}
.btn {
  background: #0B7A55;
  color: #fff;
  border-radius: 12px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  padding: 0 18px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn.ol {
  background: #fff;
  border: 1.5px solid #0B7A55;
  color: #0B7A55;
}
.field {
  background: #fff;
  border: 1px solid #DDE6E1;
  border-radius: 12px;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 15px;
  color: #1F2937;
  width: 100%;
  font-family: inherit;
}
.field.err {
  border-color: #C0392B;
}
.field:focus {
  border-color: #0B7A55;
}
.flabel {
  font-size: 13px;
  color: #64748B;
  margin: 14px 0 6px;
}
.errband {
  background: #FDF0EE;
  color: #C0392B;
  border: 1px solid #F0CFC9;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.sitehd {
  background: #fff;
  border-bottom: 1px solid #DDE6E1;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sitehd .nm {
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
}
.sitehd .out {
  margin-left: auto;
  font-size: 13px;
  color: #64748B;
}
.sitenav {
  background: #fff;
  border-bottom: 1px solid #DDE6E1;
}
.sitenav .in {
  display: flex;
}
.sitenav a {
  flex: 1;
  text-align: center;
  font-size: 14px;
  padding: 10px 0;
  color: #64748B;
  text-decoration: none;
}
.sitenav a.cur {
  color: #095F42;
  font-weight: 700;
  border-bottom: 3px solid #0B7A55;
}
@media (min-width: 768px) {
  .sitenav .in {
    max-width: 1080px;
    margin: 0 auto;
  }
  .sitenav a {
    flex: none;
    padding: 10px 18px;
  }
}
.foot {
  padding: 14px 16px 22px;
  font-size: 12px;
  color: #94A3B8;
  text-align: center;
  line-height: 2;
}
.foot a {
  color: #64748B;
  text-decoration: none;
  margin: 0 8px;
}
.appic {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex: none;
  object-fit: cover;
}
.appic.lg {
  width: 68px;
  height: 68px;
  border-radius: 16px;
}
.vpill {
  font-size: 12px;
  font-weight: 700;
  background: #E2F2E9;
  color: #095F42;
  padding: 3px 10px;
  border-radius: 99px;
}
.kv {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #EDF2EF;
  font-size: 14px;
}
.kv:first-of-type {
  border-top: none;
}
.kv .k {
  color: #64748B;
  width: 64px;
  flex: none;
}
.kv .v {
  color: #1F2937;
  font-weight: 500;
  flex: 1;
}
.sha {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  word-break: break-all;
  background: #F7FAF8;
  border: 1px solid #EDF2EF;
  border-radius: 8px;
  padding: 8px 10px;
  color: #1F2937;
  line-height: 1.5;
}
.copy {
  font-size: 11px;
  color: #0B7A55;
  font-weight: 700;
  border: 1px solid #0B7A55;
  border-radius: 99px;
  padding: 2px 9px;
  white-space: nowrap;
}
.warn {
  background: #FFF4DE;
  border: 1.5px solid #F5A623;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.warn h3 {
  color: #9A6A00;
  font-size: 15px;
  margin-bottom: 6px;
}
.warn p {
  font-size: 14px;
  color: #1F2937;
  line-height: 1.65;
}
.dlbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #DDE6E1;
  z-index: 20;
}
.dlbar .in {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px 20px;
}
.prog {
  height: 10px;
  background: #E3EBE7;
  border-radius: 99px;
  overflow: hidden;
}
.prog i {
  display: block;
  height: 100%;
  background: #0B7A55;
  border-radius: 99px;
}
.step {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid #DDE6E1;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.step .no {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0B7A55;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 15px;
}
.step h4 {
  font-size: 15px;
  color: #1F2937;
  margin-bottom: 4px;
}
.step p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
}
.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
}
.sec {
  font-size: 12px;
  font-weight: 700;
  color: #0B7A55;
  letter-spacing: .16em;
}
.h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  margin: 4px 0 12px;
}
.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hero {
  background: #F7FAF8;
  text-align: center;
  padding: 26px 20px 22px;
}
.video-frame {
  position: relative;
  padding-top: 56.25%;
}
.video-frame iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.article-body p {
  font-size: 15px;
  line-height: 1.9;
  color: #1F2937;
  margin-bottom: 16px;
}
body.has-dlbar .bd {
  padding-bottom: 120px;
}

/* Consent & document pages (Q-31) */
.pop { font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Maru Gothic Pro', 'Noto Sans JP', sans-serif; }
.doc h4 { font-size: 14.5px; color: #1F2937; margin: 15px 0 5px; }
.doc h4:first-child { margin-top: 0; }
.doc p { font-size: 13px; color: #334155; line-height: 1.85; margin-bottom: 8px; }
.doc ul { margin: 4px 0 10px; padding-left: 19px; }
.doc li { font-size: 13px; color: #334155; line-height: 1.8; margin-bottom: 3px; }
.scrollbox { border: 1.5px solid #DDE6E1; border-radius: 18px; background: #fff; padding: 14px 16px; position: relative; }
.scrollbox .inner { max-height: 290px; overflow-y: auto; }
.scrollbox:after { content: '▼ この枠の中でスクロールして全文を読めます'; position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, #fff 55%); padding: 20px 0 7px; text-align: center; font-size: 11px; color: #0B7A55; font-weight: 700; pointer-events: none; }
.bubble { display: inline-block; background: #fff; border: 1.5px solid #DDE6E1; border-radius: 14px; padding: 8px 13px; font-size: 13px; color: #475569; margin: 10px 2px 0; }
.updband { background: #FFF7E6; color: #9A6B0F; border: 1px solid #F3DFAE; border-radius: 12px; padding: 11px 14px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.doclink { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 13px 16px; margin-top: 8px; text-decoration: none; }
.doclink .t { font-size: 14.5px; font-weight: 700; color: #1F2937; }
.doclink .r { font-size: 13px; font-weight: 700; color: #0B7A55; }

/* Platform diagram (Q-30) */
.diagram-sp { display: none; }
@media (max-width: 859px) { .diagram-pc { display: none; } .diagram-sp { display: block; } }
.dscale { position: relative; overflow: hidden; }
.dscale-inner { width: 1138px; transform-origin: top left; }

/* Support (inquiry, doc 69) */
.sup-chip { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.sup-chip-ans { background: #FDECEC; color: #C93A3A; }
.sup-chip-wait { background: #FFF4DE; color: #9A6A00; }
.sup-chip-done { background: #EEF1F4; color: #64748B; }
.sup-thread { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid #E3EAE5; border-radius: 16px; padding: 13px 15px; margin-bottom: 10px; cursor: pointer; font-family: inherit; }
.sup-dot { display: inline-block; width: 9px; height: 9px; border-radius: 99px; background: #E5484D; margin-right: 7px; vertical-align: 2px; }
.sup-cat { display: inline-block; font-size: 13px; font-weight: 700; color: #1F2937; background: #fff; border: 1.5px solid #CBD5E1; border-radius: 99px; padding: 8px 14px; margin: 0 6px 8px 0; cursor: pointer; font-family: inherit; }
.sup-cat.on { background: #0B7A55; border-color: #0B7A55; color: #fff; }
.sup-msg { max-width: 82%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.sup-msg-me { background: #0B7A55; color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.sup-msg-admin { background: #fff; border: 1px solid #E3EAE5; color: #1F2937; border-bottom-left-radius: 6px; }
.sup-cap { font-size: 11px; color: #94A3B8; margin: 4px 2px 14px; }
.sup-badge { display: inline-block; min-width: 20px; text-align: center; background: #E5484D; color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 6px; vertical-align: 2px; }

/* Public article pages (articles.html / read.html) — design-team mock
   article-pages-mockups.html (owner-confirmed 2026-11-16). */
.pub-login { margin-left: auto; background: #0B7A55; color: #fff; font-weight: 700; font-size: 13.5px; border-radius: 999px; padding: 8px 18px; text-decoration: none; }
.pub-pgh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pub-pgh .pub-ch { width: 50px; height: 50px; border-radius: 12px; }
.pub-bub { background: #FFF6E5; border: 1.5px solid #F5A623; color: #7A5200; border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 700; }
.pub-lead { margin-top: 10px; font-size: 14px; line-height: 1.75; color: #334155; }
.pub-cards { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.pub-card { background: #fff; border: 1px solid #DDE6E1; border-radius: 20px; padding: 16px; display: flex; gap: 16px; text-decoration: none; color: inherit; }
.pub-th { width: 240px; height: 135px; border-radius: 14px; object-fit: cover; flex: none; }
.pub-ph { width: 240px; height: 135px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; background: #E2F2E9; }
.pub-cbody { min-width: 0; }
.pub-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pub-meta > * { white-space: nowrap; }
.pub-cat { background: #E3EDFF; color: #2B4C9A; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.pub-cat.g { background: #E2F2E9; color: #095F42; }
.pub-date { font-size: 12px; color: #5F6F7A; }
.pub-free { background: #0B7A55; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.pub-card h3 { font-size: 18.5px; font-weight: 800; margin-top: 7px; line-height: 1.45; color: #1F2937; }
.pub-sm { font-size: 13.5px; line-height: 1.7; color: #45565F; margin-top: 6px; }
.pub-guide { margin-top: 20px; background: #fff; border: 1.5px dashed #0B7A55; border-radius: 20px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.pub-guide img { width: 56px; height: 56px; flex: none; }
.pub-gt { font-size: 15.5px; font-weight: 800; color: #1F2937; }
.pub-gd { font-size: 13px; line-height: 1.65; color: #45565F; margin-top: 3px; }
.pub-gbtn { margin-left: auto; background: #0B7A55; color: #fff; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 11px 22px; white-space: nowrap; text-decoration: none; }
.pub-crumb { font-size: 13px; color: #0B7A55; font-weight: 700; text-decoration: none; }
.pub-art { background: #fff; border: 1px solid #DDE6E1; border-radius: 20px; padding: 28px 32px; margin-top: 14px; }
.pub-art h1 { font-size: 26px; font-weight: 800; line-height: 1.5; margin-top: 10px; color: #1F2937; }
.pub-body { margin-top: 18px; font-size: 16px; line-height: 1.95; color: #26313A; }
.pub-body h2 { font-size: 20px; font-weight: 800; margin: 26px 0 10px; padding-left: 12px; border-left: 6px solid #F5A623; line-height: 1.5; font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Maru Gothic Pro', 'Noto Sans JP', sans-serif; }
.pub-body p { margin-bottom: 14px; }
.pub-body img { max-width: 100%; border-radius: 14px; }
.pub-imgph { min-height: 180px; border-radius: 14px; background: #F2F6F4; border: 1.5px dashed #B9C8C0; display: flex; align-items: center; justify-content: center; color: #5F6F7A; font-size: 13px; margin: 6px 0 18px; padding: 16px; text-align: center; }
.pub-movie { margin-top: 22px; background: #fff; border: 1px solid #DDE6E1; border-radius: 20px; padding: 16px 18px; display: flex; gap: 16px; align-items: center; }
.pub-movie img { width: 250px; height: 141px; border-radius: 12px; object-fit: cover; flex: none; }
.pub-mt { font-size: 16px; font-weight: 800; line-height: 1.5; color: #1F2937; }
.pub-md { font-size: 13px; color: #45565F; margin-top: 4px; line-height: 1.6; }
.pub-play { display: inline-flex; margin-top: 9px; background: #C0392B; color: #fff; font-weight: 700; font-size: 13.5px; border-radius: 999px; padding: 8px 18px; text-decoration: none; }
.pub-pn { display: flex; gap: 14px; margin-top: 20px; }
.pub-cell { flex: 1; background: #fff; border: 1px solid #DDE6E1; border-radius: 16px; padding: 13px 16px; text-decoration: none; color: inherit; min-width: 0; }
.pub-k { font-size: 11.5px; color: #5F6F7A; font-weight: 700; }
.pub-t { font-size: 14.5px; font-weight: 700; margin-top: 3px; line-height: 1.5; color: #1F2937; }
.pub-rel { margin-top: 14px; background: #fff; border: 1px solid #DDE6E1; border-radius: 16px; padding: 14px 18px; }
.pub-k2 { font-size: 12px; color: #0B7A55; font-weight: 700; letter-spacing: .1em; }
.pub-relt { display: block; font-size: 14.5px; font-weight: 700; margin-top: 6px; color: #1F2937; text-decoration: none; line-height: 1.5; }
@media (max-width: 767px) {
  .pub-pgh .pub-ch { width: 44px; height: 44px; }
  .pub-card { flex-direction: column; gap: 10px; padding: 13px; }
  .pub-th, .pub-ph { width: 100%; height: 183px; }
  .pub-guide { flex-wrap: wrap; }
  .pub-gbtn { margin-left: 0; width: 100%; text-align: center; }
  .pub-art { padding: 20px 18px; }
  .pub-art h1 { font-size: 21px; }
  .pub-body { font-size: 15.5px; }
  .pub-movie { flex-direction: column; align-items: flex-start; }
  .pub-movie img { width: 100%; height: auto; }
  .pub-pn { flex-direction: column; }
}

/* Platform diagram v5 (philosophy.html) — design-team mock
   site-diagram-mockups-v3.html, owner-confirmed 2026-11-16. */
.dg5-canvas { position: relative; background: #FFFBF0; border: 1.5px solid #DDE6E1; border-radius: 24px; height: 800px; overflow: hidden; }
.dg5-ring { position: absolute; left: 0; top: 0; }
.dg5-center { position: absolute; left: 459px; top: 290px; width: 220px; height: 220px; background: #fff; border: 3px solid #0B7A55; border-radius: 50%; box-shadow: 0 10px 28px rgba(11,122,85,.20); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; box-sizing: border-box; }
.dg5-cnm { font-size: 23px; font-weight: 800; color: #095F42; margin-top: 4px; }
.dg5-csub { font-size: 11px; color: #5F6F7A; font-weight: 700; }
.dg5-cds { font-size: 12.5px; line-height: 1.55; margin-top: 5px; color: #334155; }
.dg5-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.dg5-pill.ok { background: #E3F3EC; color: #095F42; }
.dg5-pill.mid { background: #FFF0D1; color: #095F42; }
.dg5-center .dg5-pill { margin-top: 7px; font-size: 11px; }
.dg5-icard { position: absolute; width: 218px; min-height: 100px; background: #fff; border: 2px solid #0B7A55; border-radius: 20px; padding: 12px 13px 10px; box-shadow: 0 4px 12px rgba(31,41,55,.07); box-sizing: border-box; }
.dg5-icard.mid { background: #FFF6E5; border: 2px dashed #F5A623; }
.dg5-tag { position: absolute; top: -10px; right: 10px; box-shadow: 0 2px 6px rgba(31,41,55,.10); border-radius: 999px; }
.dg5-row { display: flex; align-items: center; gap: 8px; }
.dg5-ic { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; flex: none; }
.dg5-icg { width: 32px; height: 32px; border-radius: 10px; background: #0B7A55; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.dg5-nm { font-size: 15px; font-weight: 800; line-height: 1.25; }
.dg5-ds { font-size: 11.5px; line-height: 1.55; color: #45565F; margin-top: 6px; }
.dg5-games { display: flex; gap: 8px; margin-top: 7px; }
.dg5-games figure { text-align: center; margin: 0; }
.dg5-games img { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #DDE6E1; }
.dg5-games figcaption { font-size: 9px; color: #5F6F7A; font-weight: 700; }
.dg5-knot { position: absolute; width: 38px; height: 38px; background: #fff; border: 1.5px solid #DDE6E1; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(31,41,55,.10); z-index: 5; }
.dg5-legend { position: absolute; left: 24px; bottom: 22px; background: #fff; border: 1.5px solid #DDE6E1; border-radius: 999px; padding: 9px 18px; display: flex; gap: 20px; align-items: center; font-size: 12.5px; font-weight: 700; color: #334155; z-index: 5; }
.dg5-ln { display: inline-block; width: 30px; border-top: 3px solid #0B7A55; border-radius: 2px; vertical-align: middle; margin-right: 7px; }
.dg5-ln.dash { border-top: 3px dashed #F5A623; }
.dg5-ymain { position: absolute; z-index: 4; }
.dg5-ybub { position: absolute; background: #fff; border: 1.5px solid #DDE6E1; border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 700; color: #334155; box-shadow: 0 3px 8px rgba(31,41,55,.07); z-index: 4; }
.dg5-canvas2 { position: relative; background: #FFFBF0; border: 1.5px solid #DDE6E1; border-radius: 24px; padding: 18px 14px 16px; overflow: hidden; }
.dg5-ringwrap { position: relative; width: 220px; height: 220px; margin: 2px auto 0; }
.dg5-ctr { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); text-align: center; width: 150px; }
.dg5-cnm2 { font-size: 15.5px; font-weight: 800; color: #095F42; }
.dg5-csub2 { font-size: 9.5px; color: #5F6F7A; font-weight: 700; }
.dg5-dot { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1.5px solid #DDE6E1; display: flex; align-items: center; justify-content: center; overflow: hidden; box-sizing: border-box; }
.dg5-legend2 { margin-top: 14px; background: #fff; border: 1.5px solid #DDE6E1; border-radius: 999px; padding: 7px 12px; display: flex; gap: 14px; justify-content: center; font-size: 11px; font-weight: 700; color: #334155; }
.dg5-ln2 { display: inline-block; width: 22px; border-top: 3px solid #0B7A55; vertical-align: middle; margin-right: 5px; }
.dg5-ln2.dash { border-top: 3px dashed #F5A623; }
.dg5-linkcard { margin-top: 12px; background: #fff; border: 2px solid #0B7A55; border-radius: 16px; padding: 11px 13px; display: flex; gap: 10px; align-items: center; }
.dg5-lnm { font-size: 14.5px; font-weight: 800; color: #095F42; }
.dg5-lds { font-size: 11.5px; color: #45565F; line-height: 1.5; }
.dg5-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.dg5-cell { background: #fff; border: 2px solid #0B7A55; border-radius: 16px; padding: 10px 11px; position: relative; }
.dg5-cell.mid { background: #FFF6E5; border: 2px dashed #F5A623; }
.dg5-row2 { display: flex; align-items: center; gap: 7px; }
.dg5-ic2 { width: 26px; height: 26px; border-radius: 8px; }
.dg5-icg2 { width: 26px; height: 26px; border-radius: 8px; background: #0B7A55; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.dg5-nm2 { font-size: 13px; font-weight: 800; line-height: 1.3; }
.dg5-cell .dg5-pill { margin-top: 7px; font-size: 10px; }
