@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=LINE+Seed+JP:wght@400;700&family=Roboto:wght@400&display=swap");
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  overflow: hidden;
  border-radius: 0;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
}

body {
  display: block;
  width: 100vw;
  min-height: 100dvh;
  background-color: #fff;
}
body::-webkit-scrollbar {
  display: none;
}

::-moz-selection {
  background-color: rgba(0, 0, 0, 0.2);
}

::selection {
  background-color: rgba(0, 0, 0, 0.2);
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 70px;
  padding-inline: 24px;
  box-sizing: border-box;
  z-index: 99;
}
header svg {
  height: 44px;
}

main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  min-height: calc(100dvh - 70px);
}
main section.input {
  position: relative;
  display: block;
  width: min(100% - 2rem, 880px);
  height: min(70dvh, 680px);
  border: 1px solid #bbb;
  border-radius: 16px 16px 28px 28px;
  overflow: visible;
  box-shadow: inset 0 0 0px rgba(136, 136, 136, 0.4666666667);
  box-sizing: border-box;
  transition: all 0.2s ease;
}
main section.input::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 56px;
  display: block;
  width: 100%;
  height: 20px;
  background-image: linear-gradient(to bottom, transparent, #fff);
  z-index: 1;
}
main section.input:has(textarea:focus, textarea:active) {
  border-color: #888;
  box-shadow: inset 0 0 4px rgba(136, 136, 136, 0.4666666667);
}
main section.input textarea {
  display: block;
  width: 100%;
  height: calc(100% - 56px);
  resize: none;
  border: none;
  outline: none;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 16px 16px 0 0;
  background-color: transparent;
  overflow-y: auto;
  font-size: 16px;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #000;
  transition: all 0.2s ease;
}
main section.input textarea::-moz-placeholder {
  color: #ccc;
}
main section.input textarea::placeholder {
  color: #ccc;
}
main section.input textarea::-webkit-scrollbar {
  width: 6px;
}
main section.input textarea::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
main section.input textarea::-webkit-scrollbar-thumb:hover {
  background-color: #777;
}
main section.input textarea::-webkit-scrollbar-track {
  background-color: transparent;
}
main section.input #input_delete {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 128px;
  height: 32px;
  border: 1px solid #caa;
  background-color: rgba(255, 255, 255, 0.6666666667);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border-radius: 100px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
  z-index: 2;
  transition: all 0.4s ease, scale 0.15s ease;
}
main section.input #input_delete svg {
  display: block;
  width: 24px;
  fill: #977;
  transition: all 0.4s ease;
}
main section.input #input_delete p {
  display: block;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #977;
  font-size: 16px;
  transition: all 0.4s ease;
}
main section.input #input_delete:hover {
  border-color: #844;
  background-color: #844;
  box-shadow: 0 0 8px -4px rgba(136, 68, 68, 0.4666666667);
}
main section.input #input_delete:hover svg {
  fill: #fff;
}
main section.input #input_delete:hover p {
  color: #fff;
}
main section.input #input_delete:active {
  scale: 0.97;
}
main section.input label {
  position: absolute;
  right: 12px;
  bottom: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 128px;
  height: 32px;
  border: 1px solid #aaa;
  background-color: rgba(255, 255, 255, 0.6666666667);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border-radius: 16px 16px 0 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
  z-index: 2;
  transition: all 0.4s ease, scale 0.15s ease, border-radius 0.15s ease, bottom 0.15s ease;
}
main section.input label svg {
  display: block;
  width: 24px;
  fill: #777;
  transition: all 0.4s ease;
}
main section.input label p {
  display: block;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #777;
  font-size: 16px;
  transition: all 0.4s ease;
}
main section.input label input {
  display: none;
}
main section.input label:hover {
  border-color: #444;
  background-color: #444;
  box-shadow: 0 0 8px -4px rgba(68, 68, 68, 0.4666666667);
}
main section.input label:hover svg {
  fill: #fff;
}
main section.input label:hover p {
  color: #fff;
}
main section.input label:active {
  bottom: 47px;
  scale: 0.97;
  border-radius: 16px;
}
main section.input #input_paste {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 128px;
  height: 32px;
  border: 1px solid #aaa;
  background-color: rgba(255, 255, 255, 0.6666666667);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border-radius: 0 0 16px 16px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
  z-index: 2;
  transition: all 0.4s ease, scale 0.15s ease, border-radius 0.15s ease, bottom 0.15s ease;
}
main section.input #input_paste svg {
  display: block;
  width: 24px;
  fill: #777;
  transition: all 0.4s ease;
}
main section.input #input_paste p {
  display: block;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #777;
  font-size: 16px;
  transition: all 0.4s ease;
}
main section.input #input_paste:hover {
  border-color: #444;
  background-color: #444;
  box-shadow: 0 0 8px -4px rgba(68, 68, 68, 0.4666666667);
}
main section.input #input_paste:hover svg {
  fill: #fff;
}
main section.input #input_paste:hover p {
  color: #fff;
}
main section.input #input_paste:active {
  bottom: 10px;
  scale: 0.97;
  border-radius: 16px;
}
main section.result {
  width: min(100% - 2rem, 420px);
  height: min(70dvh, 680px);
}
main section.result .result_table {
  width: 100%;
}
main section.result .result_table .result_tr {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 72px;
  border-bottom: 1px solid #ccc;
}
main section.result .result_table .result_tr .result_th {
  display: flex;
  align-items: center;
  width: min(100% - 150px, 70%);
  padding-left: 16px;
  text-align: left;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #212121;
  font-size: 18px;
}
main section.result .result_table .result_tr .result_th input {
  width: 70%;
  height: 28px;
  border: none;
  border-bottom: 1px solid #aaf;
  outline: none;
  padding-inline: 4px;
  box-sizing: border-box;
  background-color: transparent;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #00a;
  font-size: 16px;
}
main section.result .result_table .result_tr .result_th input::-moz-placeholder {
  color: #ccf;
}
main section.result .result_table .result_tr .result_th input::placeholder {
  color: #ccf;
}
main section.result .result_table .result_tr p {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(150px, 30%);
  height: 72px;
  padding-right: 16px;
  text-align: right;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #000;
  font-size: 24px;
}

.confirmation-popup {
  position: fixed;
  width: 280px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  opacity: 0;
  transform: scale(0.8) translateY(-10px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top center;
}
.confirmation-popup.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.confirmation-popup .confirmation-content {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}
.confirmation-popup .confirmation-content p {
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}
.confirmation-popup .confirmation-content .confirmation-buttons {
  display: flex;
  gap: 8px;
  width: 100%;
}
.confirmation-popup .confirmation-content .confirm-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  outline: none;
}
.confirmation-popup .confirmation-content .confirm-btn:active {
  transform: scale(0.97);
}
.confirmation-popup .confirmation-content .confirm-btn.confirm-btn-cancel {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #e0e0e0;
}
.confirmation-popup .confirmation-content .confirm-btn.confirm-btn-cancel:hover {
  background-color: color-mix(in srgb, #f0f0f0, #000 10%);
}
.confirmation-popup .confirmation-content .confirm-btn.confirm-btn-delete {
  background-color: #ff3b30;
  color: #fff;
  border: none;
}
.confirmation-popup .confirmation-content .confirm-btn.confirm-btn-delete:hover {
  background-color: color-mix(in srgb, #ff3b30, #000 20%);
}

footer {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  min-height: 100px;
  background-color: #346cba;
}
footer a {
  display: flex;
  align-items: center;
  justify-content: start;
  height: 100px;
  padding-inline: 24px;
}
footer a svg {
  fill: #fff;
  height: 36px;
}
footer a:hover svg {
  fill: rgba(255, 255, 255, 0.6666666667);
}
footer p {
  display: flex;
  align-items: end;
  justify-content: end;
  margin: auto 12px 12px auto;
  text-align: right;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6666666667);
  font-size: 16px;
}

/* ドラッグ&ドロップ時のフィードバック（SCSSで管理） */
body.drag-over {
  background-color: rgba(12, 106, 65, 0.02);
}
body.drag-over::before {
  content: "テキストファイルをアップロード";
  position: fixed;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 106, 65, 0.08);
  border: 2px dashed #0c6a41;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  z-index: 9999;
  pointer-events: none;
  padding: 56px;
  font-size: 24px;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #000;
  text-shadow: 0 0 12px #fff;
}