@import url("paquito.css");

* {
 box-sizing: border-box;
 text-decoration: none;
 cursor: default;
}

:root {
 --color-home: #e4b6e4;
 --color-about: #f3f2b9;
 --color-work: #9ed2d0;
 --color-guest: #978e8f;
 --text-main: #2d2d2d;
 --bg-soft: rgba(255, 255, 255, 0.4);
 --border-main: 2px solid #333;
 --shadow-retro: 5px 5px 0px #333;

 --z-side-menu: 1;
 --z-base: 20;
 --z-deco: 30;
 --z-paper: 50;
 --z-menu: 60;
 --z-active: 70;
 --z-hover: 80;
 --z-texture: 100;
}

input,
textarea {
 cursor: text;
}

p,
h3 {
 margin: 0;
 margin-inline-start: 0px;
 margin-inline-end: 0px;
}

a,
button,
.deco-item {
 cursor: pointer;
 outline: none;
}

.box {
 white-space: pre-line;
}

#swup {
 display: flex;
 flex-direction: column;
 flex: 1;
 width: 100%;
 height: 100%;
}

.theme-home {
 --current-bg: var(--color-home);
}
.theme-about {
 --current-bg: var(--color-about);
}
.theme-work {
 --current-bg: var(--color-work);
}
.theme-guest {
 --current-bg: var(--color-guest);
}

body {
 margin: 0;
 padding: 0;
 padding-bottom: 50px;
 min-height: 100dvh;
 background: radial-gradient(circle at center, #ffffff 0%, #f0f0f0 100%);
 display: flex;
 justify-content: center;
 align-items: flex-start;
 background-color: #fff;
 overflow-x: hidden;
 overflow-y: scroll;
}

body::before {
 content: "";
 position: fixed;
 inset: 0;
 background-image: url("/images/texture.jpeg");
 mix-blend-mode: soft-light;
 background-size: contain;
 background-position: center;
 opacity: 0.25;
 z-index: var(--z-texture);
 pointer-events: none;
}

.document-paper,
.about-content,
.work-content,
.guest-container,
.work-detail-container {
 scrollbar-width: none;
 -ms-overflow-style: none;
}

.document-paper::-webkit-scrollbar,
.about-content::-webkit-scrollbar,
.work-content::-webkit-scrollbar,
.guest-container::-webkit-scrollbar,
.work-detail-container::-webkit-scrollbar {
 display: none;
}

.folder-frame {
 display: flex;
 flex-direction: column;
 width: 90vw;
 min-height: 92dvh;
 margin: 20px auto 0;
}

.main-menu {
 display: flex;
 align-items: flex-end;
 padding-left: 20px;
 gap: 5px;
 z-index: var(--z-menu);
 margin-bottom: 0;
}

.main-menu a {
 text-decoration: none;
 display: flex;
 flex-direction: column;
 width: 140px;
 transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
 -webkit-tap-highlight-color: transparent;
 outline: none;
 -webkit-touch-callout: none;
 user-select: none;
}

.home-line {
 display: flex;
 width: 100%;
 justify-content: center;
}

.align-start {
 justify-content: flex-start;
}
.home-line.align-start .floating-item {
 margin-left: 10vw;
}
.align-center {
 justify-content: center;
}
.align-end {
 justify-content: flex-end;
}
.floating-item {
 position: relative;
 display: flex;
 align-items: center;
 z-index: var(--z-deco);
 transition: all 0.3s ease;
}

.item-1 {
 margin-left: -5vw;
 margin-top: -2vh;
}
.item-2 {
 margin-right: -2vw;
 margin-bottom: -2vh;
}

.float-img {
 width: clamp(100px, 15vw, 150px);
 height: auto;
 filter: drop-shadow(10px 10px 20px rgba(0, 0, 0, 0.1));
 animation: float-move 4s ease-in-out infinite;
}

.item-2 .float-img {
 animation-delay: -2s;
}

@keyframes float-move {
 0%,
 100% {
  transform: translateY(0) rotate(0deg);
 }
 50% {
  transform: translateY(-10px) rotate(2deg);
 }
}

.floating-bubble {
 position: absolute;
 background: rgba(255, 255, 255, 0.9);
 padding: 0 15px;
 border-radius: 20px;
 box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
 width: 100px;
 left: 90%;
 top: 0;
 opacity: 0;
 justify-items: center;
 transition: opacity 0.3s ease;
 pointer-events: none;
}

.big-word {
 font-family: "Paquito-Bold", sans-serif;
 font-size: clamp(3rem, 10vh, 7.5rem);
 font-weight: 900;
 color: var(--text-main);
 text-align: center;
 width: 100%;
 white-space: nowrap;
 pointer-events: auto;
 transition: all 0.4s ease;

 line-height: 1;
 display: inline-block;

 transform: scaleY(1.5);
 transform-origin: center;

 margin: 10px 0;
}

.main-cover-photo {
 width: 100%;
 max-width: 600px;
 transition: transform 0.5s ease;
}

.main-cover-photo img {
 padding: 10px;
 width: 100%;
 height: auto;
 display: block;
}

.main-cover-photo:hover {
 transform: scale(1.02) rotate(-1deg);
}

.folder-tab-body {
 height: 40px;
 padding: 0 25px;
 border: 2px solid #000;
 border-radius: 10px 10px 0 0;
 display: flex;
 align-items: center;
 justify-content: center;
 border-bottom: none;
 transition: background-color 0.3s ease;
 position: relative;
}

.folder-tab-body span {
 color: #333;
 font-family: "Paquito-Bold", sans-serif;
 font-size: 1rem;
 letter-spacing: 1px;
}

.main-menu a.theme-home .folder-tab-body {
 background-color: var(--color-home);
}
.main-menu a.theme-about .folder-tab-body {
 background-color: var(--color-about);
}
.main-menu a.theme-work .folder-tab-body {
 background-color: var(--color-work);
}
.main-menu a.theme-guest .folder-tab-body {
 background-color: var(--color-guest);
}

.main-menu a.active-tab {
 position: relative;
 z-index: var(--z-active);
}
.main-menu a.active-tab .folder-tab-body {
 border-bottom: 2px solid var(--current-bg);
 margin-bottom: -2px;
}

.paper-content-area {
 align-items: center;
 border-radius: 4px;
 max-width: 800px;
 margin: 0 auto;
 width: 100%;
 padding: 10px;
}

.project-list {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
 gap: 40px;
 padding: 20px 0;
}

.project-item {
 padding: 20px;
 background: linear-gradient(135deg, #ffffff 0%, #fff9c4 100%); /* 종이 느낌 색상 */
 border: var(--border-main);
 border-radius: 2px;
 box-shadow: var(--shadow-retro);
 transition:
  transform 0.3s ease,
  box-shadow 0.3s ease;
 transform: rotate(var(--item-rotation, 0deg));
 position: relative;
}

.project-item:nth-child(even) {
 --item-rotation: 1.2deg;
}

.project-item:nth-child(odd) {
 --item-rotation: -1.5deg;
}

.project-item:hover {
 transform: rotate(0deg) translateY(-10px);
 z-index: var(--z-hover);
 box-shadow: 10px 10px 0px #000;
}

.project-item::before {
 content: "";
 position: absolute;
 top: -15px;
 left: 50%;
 transform: translateX(-50%) rotate(-2deg);
 width: 60px;
 height: 25px;
 background-color: rgba(255, 255, 255, 0.5);
 backdrop-filter: blur(1px);
 border: 1px solid rgba(0, 0, 0, 0.1);
 clip-path: polygon(5% 0%, 95% 0%, 100% 50%, 95% 100%, 5% 100%, 0% 50%);
 z-index: var(--z-deco);
}

.project-title {
 font-family: "Paquito-Bold", sans-serif;
 font-size: 1.1rem;
 color: #333;
 margin-bottom: 8px;
 text-decoration: none;
}

.project-preview {
 font-size: 0.85rem;
 color: #666;
 line-height: 1.4;
 text-decoration: none;
}

.project-link:hover,
.project-link:active,
.project-link:visited {
 text-decoration: none;
 color: inherit;
}

.back-nav {
 margin-bottom: 30px;
}

.back-link {
 text-decoration: none;
 color: #333;
 font-family: "Paquito-Bold", sans-serif;
 font-size: 0.9rem;
 transition: color 0.2s;
}

.back-link:hover {
 color: var(--color-home);
}

.detail-header {
 margin-bottom: 40px;
 text-align: center;
}

.detail-title {
 font-family: "Paquito-Bold", sans-serif;
 font-size: 2.2rem;
 color: #333;
 margin-bottom: 15px;
}

.header-meta {
 display: flex;
 justify-content: right;
 align-items: center;
 gap: 20px;
}

.detail-period {
 font-family: "Paquito-Bold", sans-serif;
 font-size: 0.9rem;
 color: #333;
 margin: 0;
}

.visit-btn {
 text-decoration: none;
 font-family: "Paquito-Bold", sans-serif;
 font-size: 0.85rem;
 color: #fff;
 background-color: #333;
 padding: 8px 16px;
 border-radius: 20px;
 transition: background-color 0.2s;
}

.visit-btn:hover {
 background-color: var(--color-home);
 color: #333;
}

.detail-text-section h3 {
 font-family: "Paquito-Bold", sans-serif;
 font-size: 1.2rem;
 padding: 0;
 margin: 0;
 margin-inline-start: 0px;
 margin-inline-end: 0px;
 color: #333;
}

.detail-description {
 font-family: "Pretendard", sans-serif;
 font-size: 1.05rem;
 line-height: 1.8;
 color: #444;
}

.detail-tags {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 margin-top: 20px;
}

.detail-tags span {
 font-family: "Paquito-Bold", sans-serif;
 font-size: 0.8rem;
 color: #666;
 background-color: #f5f5f5;
 padding: 5px 12px;
 border-radius: 4px;
}

.stretching-text {
 display: block;
 width: fit-content;
 margin: 0 auto 10px;
 font-family: "Paquito-Bold", sans-serif;
 font-size: 2.5rem;
 text-align: center;
}

.transition-fade {
 opacity: 1;
 transform: translateY(0);
 transition: 0.4s ease-in-out;
}

html.is-animating .transition-fade {
 opacity: 0;
 transform: translateY(10px);
}

.guest-form {
 display: flex;
 flex-direction: column;
 gap: 15px;
 border: 1px solid #333;
 padding: 25px;
 margin-bottom: 50px;
 background-color: #fcfcfc;
 box-shadow: var(--shadow-retro);
 transform: rotate(calc(var(--item-rotation, 0deg)));
}

.form-top {
 display: flex;
 gap: 10px;
}

.input-name,
.input-pw {
 width: 50%;
 padding: 12px;
 border: 1px solid #333;
 font-family: "Pretendard", sans-serif;
 outline: none;
}

.input-name:focus,
.input-pw:focus,
.input-msg:focus {
 border-color: var(--current-bg);
}

.input-msg {
 width: 100%;
 height: 120px;
 padding: 12px;
 border: 1px solid #333;
 resize: none;
 font-family: "Pretendard", sans-serif;
 outline: none;
}

.guest-submit-btn {
 display: block;
 align-self: flex-end;
 margin-left: auto;
 padding: 12px 40px;
 background: #333;
 color: #fff;
 border: 1px solid #333;
 font-family: "Paquito-Bold", sans-serif;
 cursor: pointer;
 transition: all 0.2s ease;
}

.guest-submit-btn:hover {
 background-color: var(--current-bg);
 transform: translate(-2px, -2px);
 box-shadow: 2px 2px 0px #333;
}

.guest-list {
 display: flex;
 flex-direction: column;
 gap: 25px;
}

.guest-item {
 background: #fff;
 border: var(--border-main);
 padding: 20px;
 position: relative;
 transform: rotate(calc(var(--item-rotation, 0deg)));
 box-shadow: var(--shadow-retro);
 transition: transform 0.3s ease;
}

.guest-item:nth-child(even) {
 --item-rotation: -1deg;
}
.guest-item:nth-child(odd) {
 --item-rotation: 1deg;
}

.guest-item:hover {
 transform: rotate(0deg) translateY(-5px);
 z-index: var(--z-hover);
}

.guest-meta {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 15px;
 padding-bottom: 10px;
 border-bottom: 1px dashed #333;
}

.guest-name {
 font-family: "Paquito-Bold", sans-serif;
 font-size: 1.1rem;
 color: #333;
}

.guest-date {
 font-size: 0.85rem;
 color: #888;
}

.action-btn {
 background: none;
 border: 1px solid #ccc;
 padding: 4px 10px;
 font-size: 0.75rem;
 cursor: pointer;
 color: #888;
 transition: all 0.2s;
}

.action-btn:hover {
 border-color: #cb605a;
 color: #cb605a;
}

.guest-message-box p {
 margin: 0;
 line-height: 1.6;
 color: #444;
 word-break: break-all;
}

.main-menu a.active-tab .folder-tab-body {
 border-bottom: 2px solid var(--current-bg);
 margin-bottom: -2px;
}

.main-menu {
 transition: all 0.4s ease;
}

.main-menu.side-index {
 position: fixed;
 top: 50%;
 left: 95vw;
 right: auto;
 transform: translateY(-50%);
 flex-direction: column;
 align-items: flex-start;
 padding-left: 0;
 gap: 15px;
 z-index: var(--z-side-menu);
 transition: none;
}

.main-menu.side-index a {
 width: auto;
 margin-bottom: 0;
 transform: translateX(-20px);
 transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.main-menu.side-index a:hover,
.main-menu.side-index a.active-tab {
 transform: translateX(-10px);
 margin-bottom: 0;
}

.main-menu.side-index .folder-tab-top {
 display: none;
}

.main-menu.side-index .folder-tab-body {
 height: auto;
 padding: 20px 8px 20px 15px;
 border-radius: 0 12px 12px 0;
 border: 2px solid #000;
 border-left: none;
 writing-mode: vertical-rl;
 text-orientation: mixed;
}

.main-menu.side-index a.active-tab .folder-tab-body {
 border: 2px solid #000;
 border-left: none;
}

.main-menu.side-index + .document-paper {
 margin-top: 40px;
 border-top-left-radius: 20px;
}

.document-paper {
 flex: 1;
 border: 2px solid #000;
 border-radius: 0 20px 20px 20px;
 padding: 20px 40px;
 overflow-y: auto;
 overflow-x: hidden;
 background-color: var(--current-bg);
 box-shadow:
  8px 8px 0px rgba(0, 0, 0, 0.1),
  15px 15px 30px rgba(0, 0, 0, 0.05);
 transition: background-color 0.4s ease;
 position: relative;
 z-index: var(--z-paper);

 background-color: var(--current-bg);
 background-size: 80px 80px;

 scroll-behavior: smooth;
}

.scroll-section {
 min-height: 70vh;
 display: flex;
 flex-direction: column;
 justify-content: flex-start;
 padding-top: 60px;
 scroll-margin-top: 40px;
 opacity: 0;
 transform: translateY(40px);
 transition:
  opacity 0.8s ease-out,
  transform 0.8s ease-out;
 margin-bottom: 50px;
 position: relative;
}

.scroll-section.is-visible {
 opacity: 1;
 transform: translateY(0);
}

.stretching-text {
 display: block;
 width: fit-content;
 margin: 0 auto 10px;
 font-family: "Paquito-Bold", sans-serif;
 font-size: 2.5rem;
 text-align: center;
}

.simple-box {
 background: #fcfcfc;
 border: var(--border-main);
 border-radius: 8px;
 box-shadow: var(--shadow-retro);
 padding: 30px;
 margin-bottom: 40px;
}

.simple-box p {
 font-family: "Pretendard", sans-serif;
 font-size: 1.1rem;
 color: #444;
 margin: 0;
}

.tech-slider-wrapper {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 20px;
 margin-top: 40px;
 width: 100%;
}

.tech-slider-controls {
 display: flex;
 gap: 15px;
 justify-content: center;
}

.slide-btn {
 background: none;
 border: none;
 width: 40px;
 height: 40px;
 font-size: 1rem;
 font-family: "Paquito-Bold", sans-serif;
 transition: all 0.2s;
 flex-shrink: 0;
 -webkit-tap-highlight-color: transparent;
 user-select: none;
 outline: none;
}

.slide-btn:hover {
 color: #fff;
}

.slide-btn:focus-visible {
 outline: 3px dashed var(--color-work);
 outline-offset: 4px;
}

.tech-slider {
 --card-width: min(80vw, 320px);
 display: flex;
 gap: 20px;
 overflow-x: auto;
 scroll-snap-type: x mandatory;
 scrollbar-width: none;
 -ms-overflow-style: none;
 width: 100%;
 padding: 20px 0;
}

.tech-card:first-child {
 margin-left: calc(50vw - (var(--card-width) / 2));
}

.tech-card:last-child {
 margin-right: calc(50vw - (var(--card-width) / 2));
}

.tech-slider::-webkit-scrollbar {
 display: none;
}

.tech-card {
 min-width: var(--card-width);
 background: #fcfcfc;
 border: var(--border-main);
 border-radius: 8px;
 box-shadow: var(--shadow-retro);
 scroll-snap-align: center;
 display: flex;
 flex-direction: column;
 transition:
  transform 0.3s ease,
  z-index 0.3s ease,
  opacity 0.3s ease;
 transform: scale(0.9);
 opacity: 0.5;
 z-index: var(--z-base);
}

.tech-card.is-center {
 transform: scale(1);
 opacity: 1;
 z-index: var(--z-deco);
}

.tech-header {
 background: #333;
 color: #fff;
 font-family: "Paquito-Bold", sans-serif;
 font-size: 1.1rem;
 padding: 8px 15px;
 border-bottom: var(--border-main);
 border-radius: 4px 4px 0 0;
}

.tech-body {
 padding: 20px 15px;
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
}

.tech-body span {
 background: #eee;
 border: 1px solid #333;
 padding: 6px 12px;
 border-radius: 20px;
 font-size: 0.85rem;
 font-family: "Paquito-Bold", sans-serif;
 color: #333;
}

.theme-home .document-paper {
 padding: 0;
 overflow: visible;
 display: flex;
 flex-direction: column;
 justify-content: flex-start;
 min-height: 100%;
}

.document-paper {
 flex: 1;
 border: 2px solid #000;
 border-radius: 0 20px 20px 20px;
 padding: 20px 40px;
 overflow-y: auto;
 overflow-x: hidden;
 background-color: var(--current-bg);
 box-shadow:
  8px 8px 0px rgba(0, 0, 0, 0.1),
  15px 15px 30px rgba(0, 0, 0, 0.05);
 transition: background-color 0.4s ease;
 position: relative;
 z-index: var(--z-paper);

 background-color: var(--current-bg);
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 40 Q20 37 40 40 Q60 43 80 40' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='1.2'/%3E%3Cpath d='M40 0 Q37 20 40 40 Q43 60 40 80' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='1.2'/%3E%3C/svg%3E");
 background-size: 80px 80px;
}
.home-dynamic-layout {
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 gap: 2vh;
 width: 100%;
 min-height: 80vh;
 padding: 40px 0;
}

.home-line {
 display: flex;
 justify-content: center;
 align-items: center;
 width: 100%;
}

.line-top,
.line-mid,
.line-bottom {
 justify-content: center;
 align-items: center;
 width: 100%;
}

.line-bottom {
 gap: 20px;
}

.greet-word {
 font-size: clamp(4rem, 15vw, 10rem);
 letter-spacing: -0.05em;
 line-height: 0.8;
 white-space: nowrap;
 display: block;
 width: 100%;
 text-align: center;
 color: var(--text-main);
 transform: scaleY(1.8) rotate(-2deg);
 transform-origin: center;
 animation: fadeSlideInRotate 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.name-word {
 font-size: clamp(4rem, 15vw, 10rem);
 letter-spacing: -0.02em;
 line-height: 0.8;
 white-space: nowrap;
 display: block;
 width: 100%;
 text-align: center;
 color: transparent;
 -webkit-text-stroke: 2px var(--text-main);
 transform: scaleY(1.8);
 animation: fadeSlideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.home-sub {
 font-family: "Pretendard", sans-serif;
 font-style: italic;
 font-weight: 300;
 font-size: clamp(0.85rem, 1.4vw, 1.05rem);
 color: rgba(45, 45, 45, 0.6);
 letter-spacing: 0.08em;
 margin: 0;
 position: relative;
 display: inline-block;
 animation: fadeSlideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.home-sub::after {
 content: "";
 position: absolute;
 bottom: -5px;
 left: 0;
 width: 0%;
 height: 1px;
 background-color: rgba(45, 45, 45, 0.4);
 transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-sub.line-animate::after {
 width: 100%;
}

.role-tag {
 font-family: "Pretendard", sans-serif;
 font-size: 0.72rem;
 font-weight: 400;
 letter-spacing: 0.15em;
 color: rgba(45, 45, 45, 0.4);
 text-transform: uppercase;
 animation: fadeSlideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes fadeSlideIn {
 from {
  opacity: 0;
  transform: translateY(20px);
 }
 to {
  opacity: 1;
  transform: translateY(0);
 }
}

@keyframes fadeSlideInRotate {
 from {
  opacity: 0;
  transform: scaleY(1.4) rotate(-3deg) translateY(20px);
 }
 to {
  opacity: 1;
  transform: scaleY(1.4) rotate(-3deg) translateY(0);
 }
}

/* =============================================
   데코 레이어
   ============================================= */

.deco-layer {
 position: absolute;
 inset: 0;
 pointer-events: none;
 z-index: var(--z-deco);
 overflow: hidden;
 border-radius: 0 20px 20px 20px;
}

.deco-item {
 position: absolute;
 pointer-events: auto;
 cursor: grab;
 user-select: none;
 -webkit-user-select: none;
 touch-action: none;
 transition: filter 0.2s ease;
 will-change: transform;
}

.deco-item:hover {
 filter: brightness(1.05);
 z-index: 20;
}

.deco-item.dragging {
 cursor: grabbing;
 filter: drop-shadow(4px 6px 12px rgba(0, 0, 0, 0.2));
 z-index: var(--z-texture);
 transition: none;
}

/* ── 클립 ── */
.deco-clip {
 width: 32px;
 height: 64px;
}

.clip-svg {
 width: 100%;
 height: 100%;
 filter: drop-shadow(2px 3px 4px rgba(0, 0, 0, 0.25));
}

.deco-png img {
 display: block;
 pointer-events: none;
 user-select: none;
 -webkit-user-select: none;
}

/* 스티커 크기 */
#deco-sticker1 img,
#deco-sticker2 img,
#deco-sticker3 img,
#deco-sticker4 img {
 width: 120px;
 height: auto;
}

.deco-layer {
 position: absolute;
 inset: 0;
 pointer-events: none;
 z-index: var(--z-texture);
 overflow: hidden;
 border-radius: 0 20px 20px 20px;
}

.deco-item {
 position: absolute;
 pointer-events: auto;
 cursor: grab;
 user-select: none;
 -webkit-user-select: none;
 touch-action: none;
 will-change: transform;
}

.deco-item:hover {
 filter: brightness(1.05);
 z-index: var(--z-hover);
}

.deco-item.dragging {
 cursor: grabbing;
 z-index: var(--z-texture);
 animation-play-state: paused !important;
 filter: drop-shadow(4px 8px 14px rgba(0, 0, 0, 0.18));
}

.deco-png img {
 display: block;
 pointer-events: none;
 user-select: none;
 -webkit-user-select: none;
 filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.12));
}

#deco-sticker1 img {
 width: 100px;
 height: auto;
}
#deco-sticker2 img {
 width: 110px;
 height: auto;
}
#deco-sticker3 img {
 width: 110px;
 height: auto;
}
#deco-sticker4 img {
 width: 100px;
 height: auto;
}

@keyframes deco-float {
 0% {
  transform: rotate(var(--float-rot, 0deg)) translateY(0px);
 }
 50% {
  transform: rotate(var(--float-rot, 0deg)) translateY(-10px);
 }
 100% {
  transform: rotate(var(--float-rot, 0deg)) translateY(0px);
 }
}

.deco-float {
 animation: deco-float var(--float-dur, 4s) ease-in-out var(--float-delay, 0s) infinite;
}

.deco-float.dragging {
 animation-play-state: paused;
}

@media (max-width: 768px) {
 .paper-content-area {
  padding: 15px;
 }
 .scroll-section {
  min-height: auto;
  padding: 30px 0;
  margin-bottom: 10px;
  transform: translateY(20px);
 }
 .home-dynamic-layout {
  gap: 8vh;
  padding: 60px 0;
 }
 .folder-frame {
  width: 95vw;
  height: auto;
  min-height: 100dvh;
 }
 .greet-word,
 .name-word {
  font-size: clamp(3.5rem, 22vw, 8rem) !important;
  line-height: 0.75;
  letter-spacing: -0.05em;
 }
 .greet-word {
  transform: scaleY(1.8) rotate(-2deg) !important;
 }
 .name-word {
  transform: scaleY(1.8) !important;
  -webkit-text-stroke: 1.5px var(--text-main);
 }

 .line-bottom {
  flex-direction: column;
  align-items: center;
  gap: 8px;
 }
 .main-menu {
  padding-left: 5px;
  padding-right: 25px;
 }
 .main-menu a {
  width: 22%;
 }
 .folder-tab-body span {
  font-size: 0.9rem;
 }
 .main-menu.side-index {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  transform: none;
  flex-direction: row;
  padding: 0;
  gap: 0;
  z-index: var(--z-texture);
 }
 .main-menu.side-index a {
  width: 25%;
  transform: none;
 }
 .main-menu.side-index a:hover,
 .main-menu.side-index a.active-tab {
  transform: none;
 }
 .main-menu.side-index .folder-tab-body {
  height: 100%;
  padding: 0;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid #333;
  writing-mode: horizontal-tb;
 }
 .main-menu.side-index a.active-tab .folder-tab-body {
  border: none;
  border-bottom: 4px solid var(--text-main);
 }
 .main-menu.side-index + .document-paper {
  margin-top: 50px;
  border-top-left-radius: 20px;
 }
 .document-paper {
  padding: 20px 15px;
 }
 .detail-title {
  font-size: 1.8rem;
 }
 .detail-header {
  margin-bottom: 25px;
 }
}
