@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@500&family=Noto+Serif+SC:wght@500&display=swap");

/* :root {
  --text-color: #222;
  --title-color: #2b2424;
} */

* {
  margin: 0;
  padding: 0;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

body {
  transition:
    background-color 0.3s,
    color 0.3s;
  overflow: hidden;
}

[data-theme="light"] {
  --bg-color: #fff;
  --text-color: #222;
  --title-color: #2b2424;
  --dot-color: #fff;
}

[data-theme="dark"] {
  --bg-color: #222;
  --text-color: #f4eded;
  --title-color: #fff;
  --dot-color: #fff;
}

[data-dark-safari="dark-safari"] {
  --bg-color: #222;
  --text-color: #f4eded;
  --title-color: #fff;
  --dot-color: #222;
}

body {
  background-color: var(--bg-color);
}

label {
  color: var(--title-color);
}

.font-jp {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.bg-dot {
  position: fixed;
  top: 0;
  left: 0;
  --mask: linear-gradient(rgb(0 0 0 / 65%), rgb(0 0 0 / 0.5));
  --stop1: 3%;
  --stop2: 90%;
  width: 100vw;
  height: 100vh;
  aspect-ratio: 1;
  background: var(--dot-color);
  filter: contrast(50);
  z-index: 1;
  opacity: 0.1;
}

.bg-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, var(--bg-color) var(--stop1), transparent var(--stop2));
  background-size: 1rem 1rem;
  background-repeat: round;
  background-position: center;
  border: 4px solid;
  mask-image: var(--mask);
}

.bg-dot:nth-child(1)::after {
  --bgSize: 1.4rem;
  --bgPosition: calc(var(--bgSize) / 2);
  --stop1: 3%;
  --stop2: 65%;

  background-image: radial-gradient(circle at center, black var(--stop1), transparent var(--stop2)),
    radial-gradient(circle at center, black var(--stop1), transparent var(--stop2));
  background-size: var(--bgSize) var(--bgSize);
  background-position:
    0 0,
    var(--bgPosition) var(--bgPosition);
}

#lanz {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-color);
  font-size: 18px;
  height: 100vh;
  width: 80%;
  margin: 0 auto;
  z-index: 1;
}

.name {
  font-size: 32px;
  font-weight: bold;
}

.more {
  display: flex;
  align-items: flex-start;
  align-self: flex-start;
  flex-direction: column;
  gap: 14px;
}

.more svg {
  width: 20px;
  height: 20px;
  margin-right: 2px;
}

.more > div {
  display: flex;
  align-items: center;
}

.underline {
  text-decoration: underline;
}

.button {
  padding: 0.5rem 1.4rem;
  background-color: #fff;
  color: #222;
  font-size: 0.8rem;
  border-radius: 24px;
  cursor: pointer;
  border: 2px solid #222;
  transition: all 0.3s ease;
}

.button:hover {
  color: #fff;
  background-color: #222;
}

/* theme switcher */
.switcher {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
}
input[type="checkbox"] {
  --active: #070b16;
  --active-inner: #fff;
  --focus: 2px rgba(9, 12, 22, 0.3);
  --border: var(--title-color);
  --border-hover: #222429;
  --background: #fff;
  --disabled: #f6f8ff;
  --disabled-inner: #e1e6f9;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 21px;
  outline: none;
  display: inline-block;
  vertical-align: top;
  position: relative;
  margin: 0;
  cursor: pointer;
  border: 1px solid var(--bc, var(--border));
  background: var(--b, var(--background));
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.2s;
}
input[type="checkbox"]:after {
  content: "";
  display: block;
  left: 0;
  top: 0;
  position: absolute;
  transition:
    transform var(--d-t, 0.3s) var(--d-t-e, ease),
    opacity var(--d-o, 0.2s);
}
input[type="checkbox"]:checked {
  --b: var(--active);
  --bc: var(--active);
  --d-o: 0.3s;
  --d-t: 0.6s;
  --d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
}
input[type="checkbox"]:hover:not(:checked):not(:disabled) {
  --bc: var(--border-hover);
}
input[type="checkbox"]:focus {
  box-shadow: 0 0 0 var(--focus);
}
input[type="checkbox"]:not(.switch) {
  width: 21px;
}
input[type="checkbox"]:not(.switch):after {
  opacity: var(--o, 0);
}
input[type="checkbox"]:not(.switch):checked {
  --o: 1;
}
input[type="checkbox"] + label {
  font-size: 14px;
  line-height: 21px;
  display: inline-block;
  vertical-align: top;
  cursor: pointer;
  margin-left: 4px;
}
input[type="checkbox"]:not(.switch) {
  border-radius: 7px;
}
input[type="checkbox"]:not(.switch):after {
  width: 5px;
  height: 9px;
  border: 2px solid var(--active-inner);
  border-top: 0;
  border-left: 0;
  left: 7px;
  top: 4px;
  transform: rotate(var(--r, 20deg));
}
input[type="checkbox"]:not(.switch):checked {
  --r: 43deg;
}
input[type="checkbox"].switch {
  width: 38px;
  border-radius: 11px;
}
input[type="checkbox"].switch:after {
  left: 2px;
  top: 2px;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  background: var(--ab, var(--border));
  transform: translateX(var(--x, 0));
}
input[type="checkbox"].switch:checked {
  --ab: var(--active-inner);
  --x: 17px;
}

.ig {
  position: relative;
  display: inline-block;
}

.ig-tooltip {
  display: none;
  position: absolute;
  left: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
  min-width: 120px;
}

.ig-tooltip img {
  width: 150px;
  display: block;
}

.ig:hover .ig-tooltip {
  display: block;
}
