@charset "UTF-8";
.guide {
  max-width: 1100px;
}
.guide-cta {
  display: inline-block;
  text-decoration: none;
  margin-top: 24px;
}
.guide-section {
  padding: 28px 32px;
  margin-bottom: 22px;
}
.guide-section h2 {
  font-size: 21px;
  margin: 0 0 18px;
}
.guide-section p,
.guide-section li {
  font-size: 16px;
  line-height: 1.9;
}
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-left: 22px;
}
.guide-steps p {
  color: var(--muted);
  font-size: 14px;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.guide-section details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.guide-section summary {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
}
.guide-section details p {
  margin: 12px 0 0;
  font-size: 15px;
}
@media (max-width: 680px) {
  .guide-section {
    padding: 22px;
  }
  .guide-steps,
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.reading-label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin: 18px 0 8px;
}
#reading-order {
  width: 100%;
  min-height: 42px;
  font: inherit;
  font-size: 13px;
  color: #192f3b;
  background: #f8fafb;
  border: 1px solid #b8cbd6;
  border-radius: 6px;
  padding: 8px;
}
.review-notice {
  margin: 0;
  padding: 12px 24px;
  background: #fff8e8;
  border-bottom: 1px solid #ecd9a6;
  color: #72551b;
  font-size: 13px;
}
:root {
  font-family: 'Yu Gothic UI', 'Hiragino Kaku Gothic ProN', Meiryo, system-ui, sans-serif;
  color: #192f3b;
  background: #f4f7f9;
  font-synthesis: none;
  line-height: 1.7;
  --ink: #142c39;
  --muted: #526774;
  --line: #dce4e9;
  --mint: #75efc1;
  --green: #12684d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button {
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #168269;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 5;
  padding: 12px;
  background: white;
}
.skip:focus {
  top: 10px;
}
.site-header {
  height: 88px;
  max-width: 1400px;
  margin: auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  text-decoration: none;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: -1px;
}
.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 37px;
  height: 39px;
  background: var(--ink);
  color: var(--mint);
  border-radius: 9px;
  font:
    700 26px/1 Georgia,
    serif;
}
.brand-icon span {
  position: absolute;
  right: 2px;
  top: 1px;
  font: 15px/1 system-ui;
}
.edition {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #657784;
  border-left: 1px solid #bac8d1;
  margin-left: 8px;
  padding-left: 16px;
  font-weight: 600;
}
.privacy-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}
.privacy-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main {
  max-width: 1304px;
  padding: 0 36px;
  margin: 0 auto;
}
.intro {
  padding: 45px 0 30px;
}
.eyebrow {
  margin: 0 0 10px;
  color: #526774;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}
.intro h1 {
  font-size: clamp(26px, 3vw, 37px);
  letter-spacing: -1.3px;
  line-height: 1.5;
  margin: 0 0 10px;
  font-weight: 750;
}
.intro h1 span {
  color: #257b60;
}
.intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 365px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 20px #20344404;
}
.input-card,
.settings-card {
  padding: 22px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading h2 {
  font-size: 16px;
  letter-spacing: 0.1px;
  margin: 0;
  font-weight: 700;
}
.step {
  font:
    600 12px/1.5 ui-monospace,
    monospace;
  color: #758892;
}
.tag {
  font-size: 11px;
  color: var(--green);
  background: #eaf8f2;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: auto;
  white-space: nowrap;
}
.dropzone {
  margin-top: 20px;
  text-align: center;
  border: 1.5px dashed #b8cbd6;
  border-radius: 10px;
  padding: 23px 12px 18px;
  background: #f8fafb;
}
.dropzone.dragging {
  border-color: var(--green);
  background: #e7fcf3;
  box-shadow: inset 0 0 0 2px #168269;
}
.upload-icon {
  height: 47px;
  width: 47px;
  stroke: #638397;
  fill: none;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  margin-bottom: 7px;
}
.drop-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}
.drop-or {
  font-size: 12px;
  color: #71818b;
  margin: 3px 0 12px;
}
.primary,
.secondary {
  border-radius: 7px;
  padding: 10px 19px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  border: 1px solid transparent;
}
.primary {
  background: var(--ink);
  color: white;
}
.primary:hover:not(:disabled) {
  background: #275064;
  box-shadow: 0 3px 9px #142c3920;
}
.secondary {
  color: var(--ink);
  border-color: #cbd7df;
  background: white;
}
.secondary:hover:not(:disabled) {
  background: #eef4f7;
}
.file-limit {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}
.sample {
  border: 0;
  background: transparent;
  color: #346452;
  display: block;
  text-align: center;
  width: 100%;
  font-size: 13px;
  padding: 15px 0 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sample span {
  margin-left: 5px;
}
.status {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0 0;
  min-height: 20px;
}
.error {
  font-size: 14px;
  line-height: 1.6;
  background: #fff0ed;
  color: #a03325;
  border-left: 3px solid #cf4936;
  padding: 10px;
  overflow-wrap: anywhere;
}
.file-info {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0 0;
  min-width: 0;
}
.file-badge {
  font-size: 11px;
  font-weight: 700;
  color: #297457;
  background: #eaf8f2;
  padding: 8px;
  border-radius: 5px;
}
.file-info > div {
  flex: 1;
  min-width: 0;
}
.file-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.file-info span#filesize {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.icon-button {
  border: 0;
  background: #f0f4f6;
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.progress-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
progress {
  width: 100%;
  height: 6px;
  accent-color: var(--green);
}
.text-button {
  border: 0;
  background: none;
  white-space: nowrap;
  font-size: 12px;
  color: var(--green);
  text-decoration: underline;
}
.settings-card {
  margin-top: 16px;
}
.option {
  display: flex;
  position: relative;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 20px 0;
  border-bottom: 1px solid #edf1f4;
}
.option > span:first-child {
  flex: 1;
}
.option strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.option small {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.option input {
  position: absolute;
  right: 0;
  opacity: 0;
  width: 36px;
  height: 24px;
}
.switch {
  width: 34px;
  height: 20px;
  border-radius: 20px;
  background: #b9c7d0;
  padding: 3px;
  flex-shrink: 0;
}
.switch:after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 100%;
  background: #fff;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.15s;
}
.option input:checked + .switch {
  background: var(--green);
}
.option input:checked + .switch:after {
  transform: translateX(14px);
}
.option input:focus-visible + .switch {
  outline: 3px solid #168269;
  outline-offset: 4px;
}
.setting-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 14px 0;
}
details {
  font-size: 12px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  user-select: none;
}
summary span {
  margin-left: 6px;
  background: #edf2f5;
  border-radius: 4px;
  padding: 1px 6px;
}
details ul {
  max-height: 160px;
  overflow: auto;
  padding-left: 18px;
  overflow-wrap: anywhere;
}
.support-note {
  font-size: 12px;
  color: var(--muted);
  padding: 0 9px;
  margin-top: 16px;
}
.output-card {
  overflow: hidden;
}
.output-top {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.output-state {
  font-size: 12px;
  color: var(--muted);
}
.output-state.ready {
  color: var(--green);
  background: #eaf8f2;
  border-radius: 5px;
  padding: 2px 8px;
}
.output-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fafcfd;
}
.format-group {
  display: flex;
  gap: 4px;
  background: #eaf0f4;
  border-radius: 7px;
  padding: 3px;
}
.format-group button {
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.format-group button[aria-pressed='true'] {
  background: white;
  box-shadow: 0 1px 4px #182e4015;
  color: var(--ink);
}
.source-label {
  font:
    12px ui-monospace,
    monospace;
  color: #71828e;
}
.preview-wrap {
  position: relative;
  height: 440px;
  background: linear-gradient(90deg, #fafcfd 0, #fafcfd 12px, #fff 12px);
  border-bottom: 1px solid var(--line);
}
.empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
}
.empty-mark {
  font:
    500 62px/1.2 Georgia,
    serif;
  color: #c2d3dd;
  letter-spacing: -4px;
  margin-bottom: 20px;
}
.empty-mark span {
  color: #83bda5;
}
.empty h3 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  color: #506878;
}
.empty p {
  font-size: 13px;
  line-height: 1.9;
  color: #6a7f8c;
  margin: 0;
}
.flow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #647d8c;
}
.flow span {
  border: 1px solid #d8e3e9;
  padding: 4px 13px;
  border-radius: 4px;
}
.flow i {
  font-style: normal;
  color: #b4c6d1;
}
#preview {
  resize: vertical;
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: block;
  background: transparent;
  border: 0;
  padding: 25px 30px;
  font:
    14px/1.9 ui-monospace,
    'Yu Gothic UI',
    Meiryo,
    monospace;
  color: #243e50;
  tab-size: 2;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
#preview:focus-visible {
  outline-offset: -4px;
}
.output-bottom {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.stats {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}
.stats strong {
  font:
    600 17px ui-monospace,
    monospace;
  color: #2b4655;
}
.actions {
  display: flex;
  gap: 8px;
}
.actions .primary {
  background: var(--green);
}
.actions .primary:hover:not(:disabled) {
  background: #0b513b;
}
.output-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  padding: 0 24px 20px;
}
.warnings {
  margin: 0 24px 16px;
  padding: 14px;
  background: #fff8e8;
  border: 1px solid #ecd9a6;
  border-radius: 7px;
  color: #72551b;
}
.warnings h3 {
  font-size: 13px;
  margin: 0;
}
.warnings ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 12px;
  max-height: 170px;
  overflow: auto;
}
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 28px;
}
.trust-number {
  font:
    11px/1.6 ui-monospace,
    monospace;
  color: #6a7f8c;
  letter-spacing: 1px;
}
.trust h2 {
  font-size: 14px;
  margin: 10px 0 8px;
}
.trust p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}
.privacy-detail {
  font-size: 11px;
  color: #647986;
  line-height: 1.8;
  margin: 22px 0 32px;
}
footer {
  max-width: 1304px;
  padding: 20px 36px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  gap: 16px;
}
footer > span:first-child {
  font-weight: 700;
  color: var(--ink);
}
.version {
  font-size: 10px;
  font-weight: 400;
  margin-left: 8px;
}
footer a {
  text-underline-offset: 3px;
}
@media (min-width: 1500px) {
  main {
    padding-top: 10px;
  }
  .preview-wrap {
    height: 490px;
  }
}
@media (max-width: 900px) {
  .site-header {
    padding: 0 24px;
    height: 74px;
  }
  main {
    padding: 0 24px;
  }
  .workspace {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
  }
  .input-card,
  .settings-card {
    padding: 18px;
  }
  .source-label {
    display: none;
  }
  .output-top,
  .output-toolbar {
    padding-left: 18px;
    padding-right: 18px;
  }
  .output-bottom {
    padding: 16px;
    flex-wrap: wrap;
  }
  .preview-wrap {
    height: 440px;
  }
  .trust {
    gap: 24px;
  }
  .edition {
    display: none;
  }
  .intro h1 {
    font-size: 29px;
  }
}
@media (max-width: 680px) {
  .site-header {
    padding: 0 20px;
    height: 70px;
  }
  .brand {
    font-size: 23px;
  }
  .privacy-link {
    font-size: 11px;
  }
  .privacy-link svg {
    width: 17px;
  }
  main {
    padding: 0 16px;
  }
  .intro {
    padding: 28px 4px 24px;
  }
  .intro h1 {
    font-size: 27px;
    line-height: 1.5;
  }
  .intro h1 span {
    display: block;
  }
  .intro > p:last-child {
    font-size: 14px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .dropzone {
    padding: 20px;
  }
  .dropzone .upload-icon {
    height: 35px;
  }
  .settings-card {
    margin-top: 12px;
  }
  .preview-wrap {
    height: 390px;
  }
  .output-top {
    padding: 18px;
  }
  .output-bottom {
    gap: 18px;
  }
  .actions {
    margin-left: auto;
  }
  .trust {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
  }
  .trust p,
  .privacy-detail {
    font-size: 13px;
  }
  .trust h2 {
    font-size: 16px;
  }
  .support-note {
    margin-bottom: 0;
  }
  footer {
    padding: 20px 20px;
    flex-wrap: wrap;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  #preview {
    padding: 20px;
    font-size: 14px;
  }
  .empty h3 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
