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

* {
  border: 0;
  border-radius: 0;
  margin: 0;
  outline: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  border: 0;
}

ol,
ul {
  list-style: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font-family: inherit;
  font-size: 100%;
}

button {
  background-color: transparent;
  cursor: pointer;
}

textarea {
  resize: vertical;
  text-rendering: optimizeLegibility;
}

input[type=file] {
  display: none;
}

::-webkit-scrollbar {
  display: none;
}

body {
  background: #ffffff;
  color: #333333;
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
}

.KanbunColumnSet {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: calc(var(--scale) * var(--gap));
}

.KanbunColumn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--scale) * var(--gap));
}
.KanbunColumn-Placeholder {
  margin: 0;
  align-self: center;
  color: #a89880;
}
.KanbunColumn-Cell {
  position: relative;
  width: var(--scale);
  height: var(--scale);
  flex-shrink: 0;
  cursor: pointer;
}
.KanbunColumn-Cell[data-selected]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: rgba(178, 34, 52, 0.12);
  pointer-events: none;
}
.KanbunColumn-Char {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  text-align: center;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", serif;
  font-size: var(--scale);
  line-height: 1;
  color: #1a1510;
  user-select: none;
}
.KanbunColumn-Furigana {
  position: absolute;
  left: calc(var(--scale) * 0.98);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", serif;
  font-size: calc(var(--scale) * 0.28);
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #1a1510;
  user-select: none;
}
.KanbunColumn-Okurigana {
  position: absolute;
  left: var(--scale);
  top: calc(var(--scale) * 0.85);
  writing-mode: vertical-rl;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", serif;
  font-size: calc(var(--scale) * 0.32);
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #1a1510;
  user-select: none;
}
.KanbunColumn-Return {
  position: absolute;
  right: calc(var(--scale) * 0.96);
  top: calc(var(--scale) * 0.68);
  display: flex;
  align-items: flex-start;
  gap: calc(var(--scale) * 0.07);
  white-space: nowrap;
  user-select: none;
}
.KanbunColumn-Return-Body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  writing-mode: vertical-rl;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", serif;
  line-height: 1.05;
}
.KanbunColumn-Stack {
  writing-mode: vertical-rl;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", serif;
  font-size: calc(var(--scale) * 0.34);
  line-height: 1;
  color: #8a5560;
}
.KanbunColumn-Kaeriten {
  font-size: calc(var(--scale) * 0.34);
  color: #b22234;
}
.KanbunColumn-Saidoku {
  margin-top: calc(var(--scale) * 0.05);
  font-size: calc(var(--scale) * 0.3);
  color: #1a5c7a;
}
.KanbunColumn-Order {
  position: absolute;
  right: calc(var(--scale) * 0.96);
  top: calc(var(--scale) * 0.18);
  font-size: calc(var(--scale) * 0.25);
  color: #b8a68a;
  pointer-events: none;
}

.Kanbun {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.Kanbun-Title {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1a1510;
}
.Kanbun-Lead {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #7a6a55;
}
.Kanbun .Kanbun-Reading {
  margin: 32px 0 0;
  padding: 24px;
  border-radius: 2px;
  background: #fffdf6;
}
.Kanbun-Kakikudashi {
  margin: 20px 0 0;
}
.Kanbun-Kakikudashi-Label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #7a6a55;
}
.Kanbun-Kakikudashi-Text {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", serif;
  font-size: 17px;
  line-height: 1.8;
  color: #1a1510;
}
.Kanbun-Note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #7a6a55;
}

.KanbunEditor {
  position: fixed;
  inset: 0;
  overflow: clip;
  background: #ffffff;
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  color: #333333;
}
.KanbunEditor-Canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.KanbunEditor-Canvas:active {
  cursor: grabbing;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.Logo a {
  color: #333333;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", serif;
  font-size: 22px;
  line-height: 2;
  text-decoration: none;
}

.PanelControl {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 32px;
}
.PanelControl-Item {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 21px;
  color: #888888;
  cursor: pointer;
  user-select: none;
}
.PanelControl-Item[data-open] {
  color: #333333;
}

.PanelColumn {
  position: absolute;
  left: 24px;
  top: 56px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-height: calc(100vh - 56px);
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

.Panel {
  position: static;
  flex-shrink: 0;
  max-width: 300px;
  background: #ffffff;
  border: 1px solid #f5f5f5;
  border-radius: 12px 8px 8px 8px;
  overflow: hidden;
}
.Panel[data-panel]:not([data-open]) {
  display: none;
}
.Panel[data-float] {
  position: fixed;
}
.Panel-Header {
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-Title {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: #fafafa;
  border-bottom-right-radius: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #333333;
}
.Panel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  cursor: pointer;
}
.Panel-CloseIcon svg {
  width: 9px;
  visibility: hidden;
}
.Panel-CloseIcon:hover svg {
  visibility: visible;
}

.KanbunEditor[data-fixed] .Panel {
  position: fixed;
  top: 56px;
  right: 24px;
  left: auto;
}
.KanbunEditor[data-fixed] .Panel-Header {
  cursor: default;
}

.Panel[data-panel=kaisetsu] {
  position: fixed;
  top: 56px;
  right: 0;
}

.LinkList {
  max-height: 240px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}

.LinkItem {
  display: block;
  width: 100%;
  padding: 7px 9px;
  border-radius: 2px;
  color: #333333;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.LinkItem[data-active] {
  background: #f7f7f7;
  color: #333333;
}

.ExamplePanel {
  position: fixed;
  display: none;
  width: 300px;
  padding: 8px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #f5f5f5;
}
.ExamplePanel[data-open] {
  display: block;
}
.ExamplePanel-Empty {
  margin: 0;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.7;
  color: #888888;
}

.ExampleItem {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
}
.ExampleItem[data-active] {
  background: #f7f7f7;
}
.ExampleItem-Label {
  display: block;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", serif;
  font-size: 13px;
  line-height: 1.4;
  color: #333333;
}

.NotationInput {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 240px;
}
.NotationInput-Field {
  width: 100%;
  padding: 9px 11px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid #f3f3f3;
  color: #1a1510;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", serif;
  font-size: 15px;
  line-height: 1.9;
  resize: none;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}
.NotationInput-Guide {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  line-height: 1.6;
  color: #888888;
}
.NotationInput-Guide-Item {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.NotationInput-Guide-Mark {
  flex-shrink: 0;
  width: 22px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", serif;
  font-size: 12px;
}
.NotationInput-Guide-Mark[data-tone=okurigana] {
  color: #1a1510;
}
.NotationInput-Guide-Mark[data-tone=kaeriten] {
  color: #b22234;
}
.NotationInput-Guide-Mark[data-tone=saidoku] {
  color: #1a5c7a;
}
.NotationInput-Guide-Mark[data-tone=break] {
  color: #888888;
}

.RightLabelGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
}
.RightLabelGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  height: 36px;
  column-gap: 16px;
}
.RightLabelGrid-Row[data-clickable] {
  cursor: pointer;
}
.RightLabelGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.5;
  color: #333333;
}

.NumberInput {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
}
.NumberInput-Arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #999999;
  cursor: pointer;
}
.NumberInput-Arrow[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.NumberInput-Field {
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Input {
  width: calc(3ch + 16px);
  height: 24px;
  padding: 0 4px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid #f3f3f3;
  color: #333333;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.NumberInput-Unit {
  color: #888888;
  font-size: 12px;
  line-height: 1.5;
  user-select: none;
}

.CheckInput {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid #f3f3f3;
  cursor: pointer;
  justify-self: start;
}
.CheckInput svg {
  visibility: hidden;
}
.CheckInput[data-checked] {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}
.CheckInput[data-checked] svg {
  visibility: visible;
}

.Kaisetsu-Label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #888888;
}
.Kaisetsu-Text {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", serif;
  font-size: 17px;
  line-height: 1.8;
  color: #1a1510;
}
.Kaisetsu-Note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #888888;
}
.Kaisetsu-Hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #888888;
}