:root {
  --color-primary: #b17270;
  --color-secondary: #faf5f4;
  --color-tertiary: #cfabaa;
  --color-text: #212121;
  --color-white: #ffffff;
  --color-white--darken: #f5f3f3;
}


/* Josh's Custom CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

html {
  scroll-behavior: smooth;
  margin-top: 0 !important;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

a {
  color: var(--color-white);
  font-weight: bold;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  height: auto;
  overflow: hidden;
  background: var(--color-secondary);
}

.wrapper {
  z-index: 1;
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 768px;
  background: #fff;
  box-shadow: 20px 20px 40px rgba(77, 77, 77, 0.144);
}

.spacer {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 50px;
  border: none;
}

.back-to-top {
  z-index: 100;
  position: fixed;
  right: 5%;
  bottom: 5%;
  width: 100px;
  height: 100px;
  background: #fff;
  color: var(--color-primary);
  font-family: "Shippori Mincho", serif;
  text-align: center;
  line-height: 100px;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.3s;
  box-shadow: 10px 10px 20px rgba(71, 71, 71, 0.082);
}

.back-to-top:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: none;
}


.btn-cv {
  position: fixed;
  top: 50%;
  right: max(calc(50vw - 384px - 4px), -4px);
  z-index: 1000000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  background: var(--color-white);
  color: var(--color-primary);
font-family: "Shippori Mincho", serif;
  font-size: 1.125rem;
  writing-mode: vertical-rl;
  letter-spacing: .125em;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid var(--color-primary);
  border-radius: 10000px;
}

.btn-cv .material-symbols-outlined {
  transform: rotate(-90deg);
}

/*=====================================================
bg
=====================================================*/

.bg {
  z-index: 0;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url(../images/bg.jpg) no-repeat center center / cover;
  filter: brightness(0.5);
}

.bg__logo {
  position: absolute;
  left: 5%;
  top: 5%;
  width: 20%;
  height: auto;
}

/*=====================================================
scroll
=====================================================*/

.scroll {
  position: relative;
  width: 100%;
  height: 100px;
}

.scrolldown {
  z-index: 1;
  position: absolute;
  bottom: 10px;
  left: 50%;
}

.scrolldown-txt {
  position: absolute;
  left: 10px;
  bottom: 20px;
  color: #000;
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  font-weight: bold;
}

.scrolldown::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
  animation: circlemove 1.6s ease-in-out infinite,
    circlevehide 1.6s ease-in-out infinite;
}

@keyframes circlemove {
  0% {
    bottom: 70px;
  }
  100% {
    bottom: 10px;
  }
}

@keyframes circlevehide {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}

.scrolldown::after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 1px;
  height: 50px;
  border-radius: 50%;
  background: #000;
}

/*=====================================================
toc
=====================================================*/

.toc {
  background: var(--color-primary);
  padding: 160px 0;
}

.toc__secTitle {
  width: 75%;
  margin: 0 auto 96px;
}

.toc__list {
  width: fit-content;
  margin: 0 auto;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.125rem, 2.25vw, 1.8rem);
  line-height: 2.125;
  color: var(--color-white);
  text-decoration: none;
}

.toc__link {
  text-decoration: none;
  font-weight: normal;

}

/*=====================================================
sec3
=====================================================*/

.sec3 {
  background: var(--color-secondary);
}

.sec3__plan-link-wrapper {
  background: var(--color-secondary);
  width: 100%;
  margin: 0 auto;
  padding: 24px 0;
}

.sec3__plan-link {
  display: block;
  background: var(--color-white);
  width: fit-content;
  margin: 32px auto;
  padding: 16px 24px;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1rem, 2.25vw, 1.25rem);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: normal;
  line-height: 1;
  border: 1px solid var(--color-primary);
  transition: all 0.3s;
}

.sec3__plan-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.sec4__content {
  padding: 80px 0 160px;
  background: var(--color-white);
}

.sec4__link {
  display: block;
  width: 90%;
  max-width: 480px;
  padding: 16px 32px;
  margin: 16px auto;
  background: var(--color-white);
  color: var(--color-primary);
  font-family: 'Shippori Mincho', serif;
  font-size: 1.25rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid currentColor;
  transition: background-color .3s, color .3s;
}

.sec4__link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}