:root {
  --bg-light: #ffffff;
  --text-light: #000000;
  --bg-dark: #121212;
  --text-dark: #f0f0f0;
  --link-color: #000; /* ライトモード用のリンク色 */
}

body {
  margin: 0;
  font-family: NotoSerifJP, Roboto, "Neue Haas Grotesk Text Pro", "Courier New", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-light);
}

body.darkMode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
    --link-color: #fff; /* ダークモード用のリンク色 */
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
}
body.darkMode .navbar {
  background-color: #121212;
}

.nav-left {
  margin-left: 13em;
  font-weight: bold;
}
.nav-right {
  display: flex;
  align-items: center;
}

/* トグルスイッチ */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  background-color: #888;
  border-radius: 30px;
  position: absolute;
  cursor: pointer;
  inset: 0;
}
.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
}
input:checked + .slider::before {
  transform: translateX(22px);
}
.slider .icon {
  position: absolute;
  top: -2px;
  font-size: 20px;
  pointer-events: none;
}
input:checked + .slider .icon {
  transform: translateX(22px);
}

/* リセットボタン */
#resetBtn {
  position: absolute;
  top: 24px;
  left: 155px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}


div {
  margin: 1.5em 0 2em 0;
}

h1 {
  font-size: 1.5em;
  margin: 1.5em 0 0 5em;
}

h2 {
  font-size: 1.3em;
  color : dimgray;
  font-weight: bolder;
  margin: 2em 0 0 6em;
}

h3 {
  font-size: 1.3em;
  font-weight: bolder;
  margin: 1em 0 0 7em;
}

h4 {
  margin: 3em 0 0 10em;
}

ul {
  margin: 2.5em 0 3em 7em;
}

li {
  margin: 1.5em 0;
  font-size: 1.2em;
  list-style-type: none;
  line-height: 0.1em;
}

li a:link, li a:visited {
  text-decoration: none;
}

li a:hover {
  color: #9c0000;
  text-decoration: underline;
}

p {
  margin: 2em 0 3em 10em;
}

.note {
  line-height: 1.7em;
  width: 50%;
  padding: 1em;
  margin: 1.5em 0 0 8em;
}
.note-1 {
  line-height: 1.7em;
  width: 50%;
  padding: 1em;
  margin: 0 0 1em 8em;
  border: 1px solid orange;
}
.note-2 {
  line-height: 1.7em;
  width: 50%;
  padding: 1em;
  margin: 0 0 1em 8em;
}
.notice {
  color: dimgray;
  margin: 0.3em 0 2em 8.5em;
}

.notice-2 {
  color: dimgray;
  margin: 0.3em 0 0 10em;
}

.notice-3 {
  color: dimgray;
  margin: 0.2em 0 2em 10em;
}
.mail {
    margin-top: 5em;
    margin-left: 10em;
}
.mes {
  line-height: 1.5em;
  width: 50%;
  border: 1px solid red;
  padding: 1em;
  margin: 3em 0 3em 8em;
}
a {
  color: var(--link-color);
}
a:link, li a:visited {
  text-decoration: none;
}
a:hover {
  color: #993300;
  text-decoration: underline;
}
.yellow {
  color: #FCAF17;
  font-size: 0.8em;
}
.red {
  color: red;
}
.black {
  color: black;
  font-weight: bolder;
}
.img {
margin-left: 12em;
}
@font-face {
  font-family: 'NotoSerifJP';
  src: url('../../font/NotoSerifJP-Regular.otf') format('opentype');
}

.midashi {
  font-size: 1.3em;
  font-weight: bolder;
  margin: 3em 0 0 7em;
}
.etc {
font-size: 0.5em;
}
.memo {
  font-size: 0.9em;
  margin: 2em 0 1em 10em;
  line-height: 1.7em;
  width: 38%;
  padding: 0.5em;
  border: 1px solid #FFC800;
}
.att {
  font-size: 0.9em;
  margin: 2em 0 -3em 10em;
  line-height: 1.7em;
  width: 38%;
  padding: 0.5em;
}