/* #CUSTOM PROPERTY */

/* #RESET */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a,
img,
span,
input,
button,
ion-icon {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
}

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input {
  width: 100%;
  outline: none;
}

button {
  cursor: pointer;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  touch-action: manipulation;
}

body {
  font-family: 'Josefin Sans', 'Josefin Slab';
  font-weight: 350;
  font-style: italic;
  letter-spacing: 1.6px;
  background-color: #012138;
  font-size: 1.6rem;
  line-height: 1.5;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* body.active {
  overflow: hidden;
}
 */
:focus-visible {
  outline-offset: 4px;
}

/* fade animation */
.fade-animation {
  display: flex;
  position: fixed;
  z-index: 9999;
  /* left: 0;
  top: 0; */
  width: 100%;
  height: 100%;
  background-color: #000;
  align-items: center;
  justify-content: center;
  transition: opacity 2s ease;
}
.animation-text {
  color: white;
  font-family: "Josefin Slab";
  font-style: italic;
  font-weight: 700;
  letter-spacing: 6px;
  word-break : break-all;
  transition: opacity 0.8s ease;
}

.opacity-zero {
  opacity: 0;
  transition: opacity 1.2s ease;
}


.animation-text span {
  background-color: #fff;
  width: 1.5px;
  display: inline-block;
  height: 3rem;
  margin-left: 2px;
  margin-top: 2px;
  /* テキストの後ろに表示させるカーソル */
  animation: blink 0.8s step-end infinite;
}

/* タイピングカーソルのアニメーション */
@keyframes blink {
  from, to {
    border-right-color: transparent;
  }
  50% {
    border-right-color: #fff;
  }
}

/* popup */
.popup-hidden {
  display: none;
}

.popup-visible {
  display: flex;
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  color: white;
}

.popup-text-info {
  color: #000;
  text-align: center;
  margin-top: 12px;
}

.popup-area {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background-color: rgba(255, 255, 255, 0.7);
  height: 180px;
  width: 250px;
  border-radius: 12px;
  padding: 24px 12px;
}
.popup-button {
  color: #b6f80b;
  width: 80%;
  margin: 0 auto;
  height: 40px;
  background-color: #012138;
  border-radius: 25px;
}

#popup-close {
  margin-top: 20px;
}

/* Header */

.main-header {
  opacity: 1;
  width: 650px;
  background-color: rgba(34, 34, 34, 0.75);
  height: auto;
  z-index: 10;
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  padding: 6px;
  color: #fff;
  transition: ease-in-out 0.5s;
}

.main-header.is-open {
  width: 720px;
}

.container {
  display: flex;
  gap: 10px;
  height: 60px;
}

.logo-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  flex: 1;
  background-color: #222;
  border-radius: 8px;
}

.svg-menu-btn {
  display: flex;
  padding: 2px;
}

.ham {
  display: none;
}

.ham.active {
  display: block;
}

.close-btn {
  display: none;
}

.close-btn.active {
  display: block;
}

.svg-close-btn {
  fill: white;
}

.nav-menu {
  display: none;
}

.nav-menu.active {
  display: block;
  flex: 4;
  background-color: #3e3e3e;
  border-radius: 8px;
  padding: 8px;
}

.menu-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.menu-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  border: #4e4e4e 1px solid;
  height: 100%;
  width: 100%;
  border-radius: 8px;
  transition: all 0.5s;
}

.menu-list:hover {
  border: #a7a7a7 1px solid;
}

.menu-list-item {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.menu-link-text {
  display: flex;
  margin-bottom: -4px;
}
.svg-icon {
  fill: white;
  display: none;
}

/* Copy Color  */

.copy-items {
  display: none;
  animation-name: motions;
  animation-duration: 1.5s;
}

.copy-items.active {
  background-color: #3e3e3e;
  margin-top: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0 16px;
}

.text-item-copy {
  margin-top: 16px;
}

.copy-section {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
}

.svg-copy-btn,
.svg-send-btn {
  fill: white;
  width: 24px;
  height: 24px;
}

.copy-section .input_text,
.copy-section .input_bg {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 4px;
  flex: 6;
}
.copy-section {
  flex: 1;
}

.edit-color {
  height: 36px !important;
  width: 36px !important;
}

.bg-copy-btn,
.text-copy-btn,
.bg-color-send-btn,
.text-color-send-btn {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border: #4e4e4e 1px solid;
  border-radius: 8px;
  transition: all 0.3s;
  height: 40px;
  width: 40px;
}

.copy-svg,
.send-svg {
  display: flex;
  padding: 6px;
  width: 100%;
  height: 100%;
}

.bg-copy-btn:hover,
.text-copy-btn:hover,
.bg-color-send-btn:hover,
.text-color-send-btn:hover {
  border: #a7a7a7 1px solid;
  transform: translateY(-4px);
}

.bg-item-copy {
  margin-bottom: 8px;
}

/* Main Section */

.main-secvtion {
  width: 100vw;
  height: 100vh;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  position: relative;
}

.main-title {
  font-family: 'Josefin Slab';
  font-style: italic;
  font-size: 14rem;
  line-height: 1.2;
  font-weight: 700;
}

.svg-change-btn {
  position: fixed;
  bottom: 6rem;
  right: 3rem;
  padding: 8px;
  transform: rotate(0deg);
  transition: all 0.2s ease-in;
}

.svg-change-btn svg {
  width: 100px;
  height: 100px;
  stroke-width: 3px;
}
.change-color {
  color: #b6f80b;
}

.sub-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 12px 0;
}

/* ToggleBtn */

.switch-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0 16px;
}
.switch-label:hover {
  cursor: pointer;
}

input[type='checkbox'] {
  position: absolute;
  width: 0;
  height: 0;
}

input:checked ~ .base {
  background-color: #012138;
  transition: 0.5s;
}

input:checked ~ .circle {
  transform: translateX(100%);
  background-color: #b6f80b;
}

.base {
  width: 48px;
  border-radius: 16px;
  height: 28px;
  background-color: #ddd;
}

.circle {
  position: absolute;
  top: 4px;
  right: 24px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background-color: #fff;
  transition: 0.5s;
}

.switch {
  position: relative;
}

/* ミディアムデバイス（タブレット） */

@media screen and (max-width: 959px) {
  /* 959px以下に適用されるCSS（タブレット用） */

  .main-header {
    width: 420px;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
  }

  .main-header.is-open {
    width: 475px;
  }

  .logo-text {
    font-size: 15px;
  }

  .menu-link-text {
    display: none;
  }

  .svg-icon {
    display: block;
  }

  .main-title {
    font-size: 10rem;
    line-height: 1.2;
  }

  .logo-menu {
    padding: 0 16px;
    gap: 0 12px;
  }

  .container {
    gap: 10px;
    height: 55px;
  }

  .svg-change-btn svg {
    width: 80px;
    height: 80px;
    stroke-width: 3px;
  }

  .main-secvtion {
    padding: 0 1.5rem;
  }

  .svg-change-btn {
    bottom: 4rem;
    right: 2rem;
    padding: 6px;
  }

  .copy-items.active {
    margin-top: 16px;
    padding: 8px 16px;
    gap: 0 16px;
  }

  .text-item-copy {
    margin-top: 12px;
  }

  .svg-copy-btn,
  .svg-send-btn {
    fill: white;
    width: 22px;
    height: 22px;
  }

  .edit-color {
    height: 36px !important;
    width: 36px !important;
  }
}

/* スモールデバイス（モバイル） */
@media screen and (max-width: 480px) {
  /* ここにスモールデバイス向けのスタイルを記述 */

  .main-header {
    width: 300px;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
  }
  .main-header.is-open {
    width: 380px;
  }

  .logo-text {
    font-size: 14px;
  }

  .logo-menu {
    gap: 0 8px;
    padding: 0 8px;
    flex: 1;
  }

  .nav-menu.active {
    display: block;
    flex: 3;
    background-color: #3e3e3e;
    border-radius: 6px;
    padding: 6px;
  }

  .container {
    gap: 8px;
    height: 55px;
  }

  .menu-items {
    gap: 6px;
  }

  .main-title {
    font-size: 6rem;
    line-height: 1.2;
    transform: translateY(-16px);
  }

  .svg-change-btn svg {
    width: 75px;
    height: 75px;
    stroke-width: 3px;
  }

  .copy-items.active {
    margin-top: 8px;
    padding: 8px;
    gap: 0 16px;
  }

  .text-item-copy {
    margin-top: 8px;
  }

  .main-secvtion {
    padding: 0 1.2rem;
  }

  .svg-change-btn {
    bottom: 3rem;
    right: 2rem;
    padding: 6px;
  }
  .svg-copy-btn,
  .svg-send-btn {
    fill: white;
    width: 20px;
    height: 20px;
  }

  .edit-color {
    height: 36px !important;
    width: 36px !important;
  }
}
