@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400..900&display=swap');

/* MaruMonicaフォント */
@font-face {
  font-family: 'MaruMonica';
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  src: url('./fonts/x12y16pxMaruMonica.woff2') format('woff2'),
    url('./fonts/x12y16pxMaruMonica.woff') format('woff'),
    url('./fonts/x12y16pxMaruMonica.ttf') format('truetype');
}

/* 全体の余白リセット・フォントを「Noto Sans JP」に設定 */
* {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  padding: 0;
}

/* 全体のフォントサイズを16pxに設定 */
html {
  font-size: 16px;
}

/* ライトモード */
body {
  color: #26282e;
  background-color: #baccda;
  transition: all 0.15s;
}

/* ダークモード */
.dark body {
  color: #e7e8eb;
  background-color: #0f1927;
}

/* 非表示 */
.hidden {
  display: none;
}

/* ヘッダー */
header {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  padding: 0 0.5rem;
  width: 100%;
  height: 100px;
  font-size: 1.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: end;
  align-items: center;
  user-select: none;
  transition: 0.25s;
  background-color: #c5c284;
  border-bottom: 1px solid;
  border-color: #0f1927;
  z-index: 1000;
}

header h1 {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'MaruMonica', system-ui, sans-serif;
  font-weight: normal;
  font-size: 48px;
  width: 100%;
  line-height: 1;
  text-align: center;
  padding: 9px 0;
  color: #0f1927;
  background-color: transparent;
  border: none;
  user-select: none;
}

/* ハンバーガーメニューのボタン */
button#mobile-nav {
  position: relative;
  display: block;
  outline: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  width: 80px;
  height: 80px;
  margin: 10px;
  z-index: 9999;
}

.hmb-line-top,
.hmb-line-middle,
.hmb-line-bottom {
  position: absolute;
  display: block;
  width: 60px;
  height: 8px;
  left: 15px;
  transition: all 0.3s cubic-bezier(0.1, 0, 0.1, 1);
  background-color: #26282e;
  top: calc(50% - 4px);
}

button#mobile-nav:hover > .hmb-line-top,
button#mobile-nav:hover > .hmb-line-middle,
button#mobile-nav:hover > .hmb-line-bottom {
  background-color: #5e5539;
  transform-origin: center;
}

.hmb-line-top {
  transform: translateY(-20px);
}

.hmb-line-bottom {
  transform: translateY(20px);
}

.navopen .hmb-line-top {
  transform: translateY(0) rotate(45deg);
}
.navopen .hmb-line-middle {
  transform: rotate(-45deg);
}
.navopen .hmb-line-bottom {
  transform: translateY(0) rotate(45deg);
}

.navopen .hmb-line-top,
.navopen .hmb-line-middle,
.navopen .hmb-line-bottom {
  background-color: #e7e8eb;
}

button#mobile-nav.navopen:hover > .hmb-line-top,
button#mobile-nav.navopen:hover > .hmb-line-middle,
button#mobile-nav.navopen:hover > .hmb-line-bottom {
  background-color: #c5c284;
}

/* ハンバーガーメニュー本体 */
nav.side-menu {
  display: none;
  list-style: none;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  padding: 1rem 0.5rem;
  background-color: #ccdbe7bf;
  color: #26282e;
  overflow: scroll;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  user-select: none;
  pointer-events: none;
  border: none;
  outline: none;
  transition: opacity 0.25s ease-in-out;
}

.dark nav.side-menu {
  background-color: #0f1927bf;
  color: #e7e8eb;
}
nav.side-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #26282e;
  text-decoration: none;
  transition: 0.25s;
}

.dark nav.side-menu a {
  color: #e7e8eb;
}

nav.side-menu a:hover {
  color: #5e5539;
}

.dark nav.side-menu a:hover {
  color: #c5c284;
}

nav.side-menu.open {
  display: flex;
  flex-direction: column;
  opacity: 1;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  user-select: auto;
  pointer-events: auto;
}

@media screen and (max-width: 768px) {
  nav.side-menu {
    padding: 2rem 1rem;
    flex-direction: column;
    justify-content: flex-start;
  }
}

#headermenu-other {
  display: flex;
  flex-direction: row;
  justify-content: right;
  padding-right: 1rem;
}

/* テーマ切り替えボタン */
#theme-toggle-btn {
  background-color: transparent;
  border: none;
  color: #26282e;
  cursor: pointer;
  transition: 0.25s;
  width: 30px;
  height: 30px;
  z-index: 10;
}

#theme-toggle-btn span {
  font-size: 28px;
}

#theme-toggle-btn:hover {
  color: #5e5539;
}

#theme-toggle-btn:focus {
  outline: none;
}

/* フッター */
footer {
  position: relative;
  width: 100%;
  height: 50px;
  padding: 0.5rem 0;
  text-align: center;
  background-color: transparent;
  color: #7382a3;
  z-index: 0;
}

.dark footer {
  color: #858057;
}

footer p {
  z-index: 1;
}

main {
  position: relative;
  margin-top: 100px;
  padding: 1rem 0;
}

/* モーダル */
main div.modal {
  background-color: #ccdbe7;
}

.dark main div.modal {
  background-color: #24354f;
}

/* 2列 */
main div.wside-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 4rem 2rem;
}


/* 見出し */
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
}

h1 {
  font-family: 'MaruMonica', system-ui, sans-serif;
  font-weight: normal;
  font-size: 32px;
  width: 100%;
  line-height: 1;
  text-align: left;
  padding: 9px 16px;
  color: #0f1927;
  background-color: #c5c284;
  border-bottom: 1px solid;
  border-color: #0f1927;
}

.dark h1 {
  border-color: transparent;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

p {
  margin: 0.5rem 0;
}

a {
  text-decoration: none;
  text-underline-offset: 2px;
}

/* ホバーで光る文字 */
.glow:hover {
  text-shadow: 0 0 5px -2px currentColor;
}

/* ドット絵 */
.pixelart {
  -ms-interpolation-mode: nearest-neighbor;
  -moz-crisp-edges: pixelated;
  image-rendering: crisp-edges pixelated;
}

/* ドットフォント */
.mrmn {
  font-family: 'MaruMonica', system-ui, sans-serif;
}

/* tippyツールチップ */
.tippy-box {
  background-color: #ccdbe7bf;
  color: #192638;
  font-size: 0.8rem;
}

.dark .tippy-box {
  background-color: #192638bf;
  color: #c5c284;
}

/* フォーム要素 */
form label {
  display: block;
  font-weight: normal;
  font-size: 1rem;
}

a.btn,
button[type="submit"] {
  font-family: 'MaruMonica', system-ui, sans-serif;
  font-size: 32px;
  text-decoration: none;
  background-color: #c5c284;
  color: #0f1927;
  padding: 0.5rem 2rem;
  border: solid 1px;
  border-color: #0f1927;
  border-radius: 0;
  cursor: pointer;
  transition: 0.25s ease-in-out;
}

.dark a.btn,
.dark button[type="submit"] {
  border-color: #c5c284;
  background-color: #0f1927;
  color: #c5c284;
}

a.btn:hover,
button[type="submit"]:hover {
  background-color: #e8e6bb;
  border-color: #24354f;
  color: #24354f;
}

.dark a.btn:hover,
.dark button[type="submit"]:hover {
  background-color: #24354f;
  border-color: #e8e6bb;
  color: #e8e6bb;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
textarea {
  max-width: 31rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0;
  background-color: #e7e8eb;
  color: #26282e;
  border: 1px solid;
  border-color: #5e5539;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: #24354f80;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  background-color: #fff;
}

.dark input[type="text"],
.dark input[type="password"],
.dark input[type="email"],
.dark input[type="url"],
.dark input[type="number"],
.dark textarea {
  background-color: #0f1927;
  color: #e7e8eb;
  border-color: #858057;
}

.dark input[type="text"]:focus,
.dark input[type="password"]:focus,
.dark input[type="email"]:focus,
.dark input[type="url"]:focus,
.dark input[type="number"]:focus,
.dark textarea:focus {
  outline: none;
  background-color: #24354f;
}

.dark input[type="text"]::placeholder,
.dark input[type="password"]::placeholder,
.dark input[type="email"]::placeholder,
.dark input[type="url"]::placeholder,
.dark input[type="number"]::placeholder,
.dark textarea::placeholder {
  color: #c5c28480;
}

/* セレクトボックス */
select {
  appearance: none;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  color: #26282e;
  padding: 0.25rem 0.5rem;
  border: 1px solid #5e5539;
  width: 100%;
  height: 100%;
}

.dark select {
  color: #e7e8eb;
  border-color: #858057;
}

select::-ms-expand {
  display: none;
}

.select {
  display: inline-block;
  position: relative;
  height: 2rem;
  margin-right: 1rem;
  width: calc(50% - 1rem);
  z-index: 1;
  background-color: #e7e8eb;
}

.dark .select {
  background-color: #0f1927;
}

.select::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border: 0 2px 2px 0 solid currentColor;
  z-index: -1;
}

/* チェックボックス */
input[type="checkbox"] {
  display: none;
}

.chk-label {
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  padding: 0 0.5rem;
  position: relative;
  width: auto;
  height: 20px;
}

.chk {
  background: #e7e8eb;
  border: 1px solid;
  border-color: #77797e;
  position: relative;
  box-sizing: border-box;
  display: inline-block;
  height: 20px;
  width: 20px;
  transition: 0.15s;
}

.dark .chk {
  background: #0f1927;
}

.chk::before,
.chk::after {
  content: '';
  display: inline-block;
  transform-origin: left top;
  position: absolute;
  background-color: #e7e8eb;
  height: 0;
  width: 4px;
  transition: 0.2s;
}

.chk::before {
  top: 72%;
  left: 41%;
  transform: rotate(-135deg);
}

.chk::after {
  top: 37%;
  left: 5%;
  transform: rotate(-45deg);
}

input[type="checkbox"]:checked + .chk {
  background: #5e5539;
  border-color: #5e5539;
}

.dark input[type="checkbox"]:checked + .chk {
  background: #858057;
  border-color: #858057;
}

input[type="checkbox"]:checked + .chk::before {
  height: 90%;
  animation: dothatopcheck 0.2s cubic-bezier(0.17, 0.84, 0.44, 1) forwards;
}

input[type="checkbox"]:checked + .chk::after {
  height: 50%;
  animation: dothabottomcheck 0.1s cubic-bezier(0.76, 0.05, 0.86, 0.06) forwards;
}

label.chk-label:has(input[type="checkbox"]:checked) > span {
  font-weight: bold;
  color: #344dbe;
}

.dark label.chk-label:has(input[type="checkbox"]:checked) > span {
  color: #98afe2;
}

@keyframes dothabottomcheck {
  0% {
    height: 0;
  }

  100% {
    height: 100%;
  }
}

@keyframes dothatopcheck {
  0% {
    width: 0;
  }

  50% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/* ラジオボタン */
input[type="radio"] {
  display: none;
}

.rd {
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  padding: 0.5rem 1rem;
  position: relative;
  width: auto;
}

.rd::before {
  background: #e7e8eb;
  border: 1px solid;
  border-color: #77797e;
  border-radius: 50%;
  content: "";
  display: block;
  height: 18px;
  left: 0.5rem;
  margin-top: -9px;
  position: absolute;
  top: 50%;
  width: 18px;
  transition: 0.15s;
}

.dark .rd::before {
  background: #0f1927;
  border-color: #5e5539;
}

.rd::after {
  background: #5e5539;
  border-radius: 50%;
  content: "";
  display: block;
  height: 10px;
  left: 5px;
  margin-top: -4px;
  opacity: 0;
  position: absolute;
  top: 50%;
  width: 10px;
  transform: scale(0.3);
  transition: 0.15s cubic-bezier(0.1, 0, 0.1, 1);
}

.dark .rd::after {
  background: #e7e8eb;
}

.dark input[type="radio"]:checked + .rd::before {
  background: #858057;
  border-color: #858057;
}

input[type="radio"]:checked + .rd::after {
  opacity: 1;
  transform: scale(1);
}

/* 画像 */
img {
  display: block;
  height: auto;
  object-fit: contain;
  object-position: top left;
}

img.icon {
  width: 60px;
  height: 60px;
  object-fit: cover;
  object-position: center;
}

img.list-img {
  width: 90px;
  aspect-ratio: 2 / 3;
  margin: 5px;
  object-fit: cover;
  object-position: center;
}

img.chat-cut,
img.prof-cut {
  margin: 0 1rem;
  width: calc(100% - 2rem);
  max-width: 600px;
  height: auto;
}

img.prof-main {
  max-width: 600px;
  height: auto;
  object-fit: contain;
  object-position: center;
}


.material-symbols-sharp {
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

.material-symbols-sharp.outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

/* 各種文字装飾 */
/* 文字装飾：サイズ変更 */
.sz-xs {
  font-size: 0.6rem;
}

.sz-s {
  font-size: 0.8rem;
}

.sz-l {
  font-size: 1.25rem;
}

.sz-xl {
  font-size: 1.5rem;
}

/* 文字装飾：太字 */
.bld {
  font-weight: bold;
}

/* 文字装飾：斜体 */
.itl {
  font-style: italic;
}

/* 文字装飾：下線 */
.un {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 文字装飾：取り消し線 */
.st {
  text-decoration: line-through;
}

/* 文字装飾：傍点 */
.emph {
  text-emphasis: filled circle currentcolor;
}

/* 文字装飾：色 */
.def {
  color: #26282e;
}

.dark .def {
  color: #e7e8eb;
}

.red {
  color: #c04246;
}

.dark .red {
  color: #eab6b8;
}

.orange {
  color: #d18b44;
}

.dark .orange {
  color: #f4d5b5;
}

.yellow {
  color: #e1d955;
}

.dark .yellow {
  color: #fbf8bc;
}

.green {
  color: #4ec860;
}

.dark .green {
  color: #bdedc4;
}

.cyan {
  color: #4bd7d7;
}

.dark .cyan {
  color: #b8f7f7;
}

.sky {
  color: #3f9acb;
}

.dark .sky {
  color: #b2dbf1;
}

.blue {
  color: #273cb3;
}

.dark .blue {
  color: #9bade4;
}

.violet {
  color: #682eba;
}

.dark .violet {
  color: #c5abea;
}

.purple {
  color: #9e34c1;
}

.dark .purple {
  color: #deaeed;
}

.pink {
  color: #bb348d;
}

.dark .pink {
  color: #e9aed5;
}

/* 文字装飾：虹色 */
.rainbow {
  padding: 1% 0 0 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slide-rainbow 15s linear infinite;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: linear-gradient(120deg, #b95151, #f3e974, #6bcc7b, #66e5e5, #3f6bc5, #8e67ca, #c74f95, #b95151) 0% center / 200% auto;
}

.dark .rainbow {
  background: linear-gradient(120deg, #eab6b6, #fcf7bd, #beeec6, #b9f8f8, #aec4f1, #d7adec, #98afe2 60%, #f0b4d7, #eab6b6) 0% center / 200% auto
}

@keyframes slide-rainbow {
  to {
    background-position-x: 200%;
  }

  0% {
    background-position: 0 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

/* 文字装飾：折り畳み */
.prof details {
  display: block;
  width: calc(100% - 2rem);
  margin: 0.5rem 1rem;
  padding: 0;
  border-top: 1px solid;
  border-color: #5e5539;
}

.prof details > summary {
  display: block;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  background-color: #baccda80;
  padding: 0.25rem 0.5rem;
  list-style: none;
  border-bottom: 1px solid;
  border-color: #5e5539;
  color: #5e5539;
}

.dark .prof details > summary {
  color: #c5c284;
  background-color: #0f192780;
  border-color: #c5c284;
}

.prof details > summary > span.material-symbols-sharp {
  display: inline-block;
  width: 1.25rem;
  text-align: center;
  transform-origin: center;
  margin-right: 0.5rem;
  transform: rotate(0.125turn);
  transition: transform 0.25s cubic-bezier(0.1, 0, 0.1, 1);
}

.prof details > summary::-webkit-details-marker {
  display: none;
}

.prof details[open] > summary {
  list-style: none;
}

.prof details > .fold_wrap {
  overflow: hidden;
}

.prof details > .fold_wrap > .fold_content {
  color: #26282e;
  padding: 0.5rem 1rem;
}

.dark .prof details > .fold_wrap > .fold_content {
  color: #e7e8eb;
}

/* セリフ枠 */
.srf-modal {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 480px;
  word-break: break-all;
  margin: 1rem 0;
  border-radius: 0;
  background-color: #a1bcd2;
}

.dark .srf-modal {
  background-color: #4c6180;
}

.srf-modal > img.icon {
  margin: 5px;
}

.srf-modal > p {
  padding: 5px 5px 5px 0;
}

.srf-modal > span.serif-name {
  font-weight: bold;
}

/* 区切り線 */
div.hori-line {
  display: block;
  width: calc(100% - 1rem);
  height: 1px;
  margin: 1rem 0.5rem;
  background-color: #5e5539;
}

.dark div.hori-line {
  background-color: #858057;
}

/* アイコンリスト */
.icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 60px, 1fr);
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
}

/* 補足 */
.note {
  font-size: 0.8rem;
  display: block;
  width: 100%;
  padding: 0;
  color: #77797e;
}

.dark .note {
  color: #96989c;
}

ul.note {
  list-style: '※';
}

/* 表 */
table {
  background-color: transparent;
  width: 100%;
  border-collapse: separate;
  border-color: #858057;
  border-spacing: 0 2px;
}

.dark table {
  border-color: #c5c284;
}

thead th {
  border-bottom: 2px solid;
}

tbody th {
  border-right: 2px solid;
}

/* チャットメッセージウィンドウ */
.chat-window {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  width: 100%;
  max-width: 640px;
  margin: 0;
  border-radius: 0;
  background-color: #ccdbe7;
  border-color: #4c618080;
}

.dark .chat-window {
  background-color: #24354f;
  border-color: #7382a380;
}

.chat-window:not(:last-child)::after {
  content: "";
  display: block;
  margin: 0 1rem;
  width: calc(100% - 2rem);
  height: 1px;
  opacity: 0.5;
  background-color: #4c6180;
}

.dark .chat-window:not(:last-child)::after {
  background-color: #7382a3;
}

.chat-window > .chat-hd {
  display: flex;
  flex-direction: row;
  padding: 5px;
  row-gap: 5px;
  align-items: center;
  justify-content: space-between;
}

.chat-hd > img.chat-icon {
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.chat-hd > .chat-info {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  border-bottom: 2px solid;
  border-color: #26282e;
}

.dark .chat-hd > .chat-info {
  border-color: #e7e8eb;
}

.chat-info > .chat-teller {
  font-size: 1.25rem;
  font-weight: bold;
}

.chat-info > .chat-date {
  font-size: 0.75rem;
}

.chat-hd > button.chat-control-btn {
  display: block;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
  color: #26282e80;
}

.dark .chat-hd > button.chat-control-btn {
  color: #e7e8eb80;
}

.chat-window > .chat-content {
  display: flex;
  width: 100%;
  height: fit-content;
  flex-direction: column;
  padding: 0.5rem;
  background-color: transparent;
  border-radius: 0;
}

/* タイムライン最上部に戻るボタン */
button.scroll-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 0.5rem;
  border: none;
  border-radius: 0;
  text-align: center;
  font-size: 2rem;
  background-color: #4c6180bf;
  color: #e7e8eb;
  cursor: pointer;
  transition: 0.5s;
}

.dark button.scroll-top {
  background-color: #0f1927bf;
  color: #c5c284;
}

button.scroll-top:hover {
  background-color: #7382a3bf;
  text-shadow: 0 0 5px -2px currentColor;
}

.dark button.scroll-top:hover {
  background-color: #24354fbf;
  color: #e8e6bb;
}

/* テキストエリア：文字数カウント */
#chat-count.over,
#prof-count.over {
  color: #c04246;
  font-weight: bold;
}

.dark #chat-count.over,
.dark #prof-count.over {
  color: #da7f82;
}

/* テキストエリア：装飾メニュー */
#deco-mainmenu,
#deco-submenu {
  background-color: transparent;
  display: grid;
  gap: 0;
  padding: 0.25rem 0 0;
  grid-template-rows: 12;
  grid-template-columns: 1;
  place-content: left;
  place-items: center;
  margin-bottom: 0.25rem;
}

#deco-mainmenu > label,
#deco-mainmenu > button,
#deco-submenu button {
  display: block;
  height: 100%;
  padding: 0.25rem 0.5rem;
  border: none;
  background-color: transparent;
  color: #26282e;
  fill: #26282e;
  cursor: pointer;
  transition: 0.1s;
}

.dark #deco-mainmenu > label,
.dark #deco-mainmenu > button,
.dark #deco-submenu button {
  color: #e7e8eb;
  fill: #e7e8eb;
}

#deco-mainmenu > label:hover,
#deco-mainmenu > button:hover,
#deco-submenu button:hover {
  background-color: #a1bcd280;
}

.dark #deco-mainmenu > label:hover,
.dark #deco-mainmenu > button:hover,
.dark #deco-submenu button:hover {
  background-color: #7382a380;
}


/* ウェルカムページ */
body#welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-image: url('../images/decor-light.png'), url('../images/bg-light.png');
}

.dark body#welcome {
  background-image: url('../images/decor-dark.png'), url('../images/bg-dark.png');
}

#welcome main {
  width: 600px;
  margin: 0 auto;
  padding: 1rem 0;
}

#welcome h1 {
  background-color: transparent;
  color: #24354f;
}

.dark #welcome h1 {
  color: #c5c284;
}

img#logo {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  object-position: center;
  margin: 1rem auto;
}

#login-form {
  display: block;
  width: 100%;
}

#loginform-flex {
  display: flex;
  gap: 1rem;
}

#loginform-flex > div {
  flex-basis: 50%;
  padding: 0.5rem 0;
}

@media screen and (max-width: 768px) {
  #loginform-flex {
    flex-direction: column;
  }

  #loginform-flex > div {
    flex-basis: 100%;
  }
}

#loginform-flex > div > input[type="text"] {
  width: 100%;
}

#loginform-remember {
  width: 100%;
  margin: 1rem 0;
}

#loginform-remember > label {
  width: 75%;
  margin: 0.5rem auto;
}

/* 表(お問い合わせページ) */
form .table {
  background-color: transparent;
  width: 90%;
  margin: 0 auto;
  border-collapse: separate;
  border-color: #858057;
  border-spacing: 0 2px;
}

.dark form .table {
  border-color: #c5c284;
}

form .table tr {
  display: grid;
  grid-template-columns: 1fr 3fr;
  padding: 0.25rem;
}

form .table th {
  padding: 0.25rem 0.5rem;
  border-right: 2px solid;
}

form .table td {
  padding: 0.25rem 0.5rem;
}

form .table input[type="text"],
form .table input[type="email"],
form .table textarea {
  width: 100%;
}

@media screen and (max-width: 768px) {
  form .table tr {
    grid-auto-flow: column;
    grid-template-columns: 1fr;
  }
  form .table th {
    border-right: none;
  }
}