/* =========================================================
   MELLENA STUDIO
   CREATIVE STUDIO FOR SOCIAL MEDIA
   Theme: WHITE × YELLOW × BLACK
========================================================= */

/* =========================
   01. VARIABLES
========================= */

:root {
  --white: #ffffff;
  --black: #111111;
  --dark: #080808;
  --yellow: #ffc247;
  --yellow-light: #ffdc80;
  --gray: #777777;
  --light-gray: #f4f4f0;
  --border: rgba(17, 17, 17, 0.15);

  --font-heading: "Barlow Condensed", sans-serif;
  --font-body: "DM Sans", "Noto Sans JP", sans-serif;

  --container: 1440px;
  --side-padding: clamp(22px, 6vw, 100px);

  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================
   02. RESET
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.loading {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #c18a00;
  outline-offset: 4px;
}

::selection {
  color: var(--black);
  background: var(--yellow);
}

/* =========================
   03. GLOBAL
========================= */

main {
  width: 100%;
}

.section {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 125px var(--side-padding);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 65px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(64px, 8vw, 118px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.highlight::after {
  position: absolute;
  content: "";
  z-index: -1;
  left: -3%;
  right: -3%;
  bottom: 2%;
  height: 37%;
  background: var(--yellow);
  transform: skewX(-8deg);
}

.period {
  color: var(--yellow);
}

.muted-heading {
  color: #b8b8b3;
}

.lead {
  margin-bottom: 20px;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.5;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 190px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition:
    color var(--transition),
    border-color var(--transition);
}

.text-link span {
  font-size: 18px;
  transition: transform var(--transition);
}

.text-link:hover {
  color: #a87500;
  border-color: var(--yellow);
}

.text-link:hover span {
  transform: translate(4px, -4px);
}

/* =========================
   04. LOADING SCREEN
========================= */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 30px;
  background: var(--black);
  color: var(--white);
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: min(440px, 72vw);
  animation: loaderLogoIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loader-logo img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.loader-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(440px, 72vw);
  gap: 20px;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.loader-percent {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.loader-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #292929;
}

.loader-line span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--yellow);
  animation: loaderProgress 1.5s ease forwards;
}

@keyframes loaderLogoIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes loaderProgress {
  to {
    width: 100%;
  }
}

/* =========================
   05. SCROLL PROGRESS
========================= */

.scroll-progress {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--yellow);
  pointer-events: none;
}

/* =========================
   06. HEADER
========================= */

.site-header {
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 105px;
  padding: 20px var(--side-padding);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  width: clamp(150px, 19vw, 250px);
  flex-shrink: 0;
}

.brand img {
  width: 100%;
  max-height: 65px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}

.main-nav > a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.main-nav > a:not(.nav-contact)::after {
  position: absolute;
  content: "";
  bottom: -7px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width var(--transition);
}

.main-nav > a:not(.nav-contact):hover::after {
  width: 100%;
}

.main-nav > a:hover {
  color: #a87500;
}

.main-nav small {
  color: var(--gray);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}

.nav-contact {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 18px !important;
  padding: 15px 20px;
  background: var(--yellow);
  color: var(--black);
  transition:
    background var(--transition),
    transform var(--transition);
}

.nav-contact span {
  font-size: 17px;
}

.nav-contact:hover {
  background: var(--yellow-light);
  color: var(--black) !important;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--yellow);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.menu-toggle.active span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* =========================
   07. HERO
========================= */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 850px;
  min-height: min(100svh, 1050px);
  padding: 155px var(--side-padding) 65px;
  overflow: hidden;
  background: var(--white);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 95%);
}

.hero-topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.hero-title-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1250px;
  margin: 65px auto 50px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.yellow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 194, 71, 0.2);
}

.hero-title {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(110px, 19vw, 275px);
  font-weight: 900;
  line-height: 0.73;
  letter-spacing: -0.065em;
}

.title-line {
  display: flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  max-width: 100%;
}

.title-line > span {
  display: inline-block;
  animation: titleReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.title-line:nth-child(2) > span {
  animation-delay: 0.12s;
}

.title-line:nth-child(3) > span {
  animation-delay: 0.24s;
}

.title-line i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 7vw, 105px);
  height: clamp(40px, 7vw, 105px);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: clamp(24px, 4vw, 60px);
  font-style: normal;
  letter-spacing: 0;
  animation: rotateStar 12s linear infinite;
}

.title-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--black);
}

.hero-side-note {
  position: absolute;
  right: 0;
  bottom: 0;
  writing-mode: vertical-rl;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 30px;
}

.hero-description {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.9;
}

.round-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  width: 105px;
  height: 105px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.round-link b {
  font-size: 22px;
  font-weight: 400;
  transition: transform var(--transition);
}

.round-link:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: rotate(-8deg);
}

.round-link:hover b {
  transform: translateY(4px);
}

.hero-stamp {
  display: flex;
  justify-self: end;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 120px;
  height: 120px;
  border: 1px solid var(--black);
  border-radius: 50%;
  transform: rotate(12deg);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.hero-stamp b {
  margin-top: 6px;
  color: #d69b25;
  font-size: 21px;
}

.hero-yellow-block {
  position: absolute;
  z-index: 1;
  top: 24%;
  right: -160px;
  width: 340px;
  height: 340px;
  border: 60px solid rgba(255, 194, 71, 0.14);
  transform: rotate(45deg);
  pointer-events: none;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(45px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateStar {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   08. MARQUEE
========================= */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 23px 0;
  background: var(--yellow);
}

.marquee-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  gap: 36px;
  animation: marqueeMove 32s linear infinite;
}

.marquee-track span {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.marquee-track b {
  font-size: 21px;
}

@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================
   09. ABOUT
========================= */

.about-section {
  padding-top: 150px;
  padding-bottom: 145px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  gap: 80px;
}

.about-copy {
  max-width: 450px;
  padding-top: 12px;
}

.about-copy > p:not(.lead) {
  margin-bottom: 20px;
  color: #555555;
  font-size: 14px;
  line-height: 2.1;
}

.about-copy .text-link {
  margin-top: 18px;
}

.about-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  margin-top: 100px;
  padding: 25px 15px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 800;
}

.about-ribbon span:nth-child(2) {
  color: #b98a28;
}

/* =========================
   10. SERVICES
========================= */

.services-section {
  padding-top: 120px;
  padding-bottom: 130px;
  background: var(--light-gray);
}

.services-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 70px;
}

.services-intro {
  padding-bottom: 8px;
  color: #555555;
  font-size: 13px;
  line-height: 2;
}

.service-list {
  border-top: 1px solid var(--border);
}

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 35px;
  align-items: center;
  gap: 25px;
  min-height: 145px;
  padding: 25px 15px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.service-number {
  align-self: start;
  padding-top: 7px;
  color: #888888;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
}

.service-main {
  position: relative;
  z-index: 2;
}

.service-main h3 {
  font-family: var(--font-heading);
  font-size: clamp(27px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  transition:
    transform var(--transition),
    color var(--transition);
}

.service-main p {
  margin-top: 6px;
  color: #777777;
  font-size: 12px;
}

.service-symbol {
  position: relative;
  z-index: 2;
  font-size: 26px;
  transition: transform var(--transition);
}

.service-hover {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 12%;
  color: rgba(255, 194, 71, 0.38);
  font-family: var(--font-heading);
  font-size: 190px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateY(-40%) rotate(-10deg) scale(0.8);
  transition:
    opacity var(--transition),
    transform var(--transition);
  pointer-events: none;
}

.service-item:hover .service-main h3 {
  transform: translateX(10px);
}

.service-item:hover .service-symbol {
  transform: translate(5px, -5px);
}

.service-item:hover .service-hover {
  opacity: 1;
  transform: translateY(-50%) rotate(-10deg) scale(1);
}

.services-more {
  margin-top: 45px;
}

/* =========================
   11. FEATURE PROJECTS
========================= */

.feature-section {
  position: relative;
  padding: 125px var(--side-padding);
  overflow: hidden;
  background: var(--yellow);
}

.feature-section > *:not(.feature-bg-shape) {
  position: relative;
  z-index: 1;
}

.feature-section .section-label {
  border-color: rgba(17, 17, 17, 0.25);
}

.feature-bg-shape {
  position: absolute;
  top: 20%;
  right: -220px;
  width: 540px;
  height: 540px;
  border: 90px solid rgba(255, 255, 255, 0.23);
  transform: rotate(45deg);
}

.feature-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 65px;
}

.feature-top .section-heading {
  font-size: clamp(54px, 7.4vw, 105px);
}

.feature-top > p {
  flex-shrink: 0;
  padding-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
  line-height: 2;
}

.outline-dark {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--black);
}

.project-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  padding: clamp(25px, 5vw, 65px);
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.placeholder-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, 0.07);
  font-family: var(--font-heading);
  font-size: clamp(250px, 40vw, 550px);
  font-weight: 900;
  line-height: 0.7;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.placeholder-mark span {
  color: rgba(255, 194, 71, 0.5);
}

.placeholder-caption {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.placeholder-caption span:last-child {
  color: var(--yellow);
}

.placeholder-copy {
  position: relative;
  z-index: 1;
  margin-top: 100px;
}

.placeholder-copy p {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 65px);
  font-weight: 800;
  line-height: 0.95;
}

.placeholder-copy > span {
  display: block;
  margin-top: 20px;
  color: #bcbcbc;
  font-size: 12px;
}

.placeholder-arrow {
  position: absolute;
  right: 35px;
  bottom: 30px;
  display: grid;
  width: 65px;
  height: 65px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: 25px;
  transition: transform var(--transition);
}

.project-placeholder:hover .placeholder-arrow {
  transform: rotate(45deg);
}

.feature-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 35px;
}

.feature-bottom > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature-bottom .text-link {
  border-color: var(--black);
}

/* =========================
   12. APPROACH
========================= */

.approach-section {
  padding-top: 145px;
  padding-bottom: 145px;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: center;
  gap: 100px;
}

.approach-content {
  max-width: 430px;
}

.approach-icon {
  display: grid;
  width: 65px;
  height: 65px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 35px;
  animation: rotateStar 15s linear infinite;
}

.approach-content > p:not(.lead) {
  color: #555555;
  font-size: 14px;
  line-height: 2.1;
}

.approach-content .text-link {
  margin-top: 30px;
}

/* =========================
   13. CONTACT BANNER
========================= */

.contact-banner {
  position: relative;
  padding: 75px var(--side-padding) 45px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.contact-banner::before {
  position: absolute;
  content: "";
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  border: 70px solid rgba(255, 194, 71, 0.1);
  transform: rotate(45deg);
  pointer-events: none;
}

.contact-banner-top,
.contact-banner-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.contact-banner-top {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.contact-big {
  position: relative;
  display: block;
  width: fit-content;
  margin: 60px 0;
  font-family: var(--font-heading);
  font-size: clamp(110px, 22vw, 300px);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.065em;
  transition: color var(--transition);
}

.contact-big span {
  color: var(--yellow);
  transition: color var(--transition);
}

.contact-big b {
  position: absolute;
  top: 8%;
  right: -100px;
  display: grid;
  width: clamp(45px, 7vw, 90px);
  height: clamp(45px, 7vw, 90px);
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-body);
  font-size: clamp(22px, 3vw, 35px);
  font-weight: 400;
  transition: transform var(--transition);
}

.contact-big:hover b {
  transform: rotate(45deg);
}

.contact-big:hover span {
  color: var(--white);
}

.contact-banner-bottom {
  align-items: end;
  padding-top: 30px;
  border-top: 1px solid #333333;
}

.contact-banner-bottom p {
  color: #c4c4c4;
  font-size: 12px;
  line-height: 2;
}

.contact-banner-bottom > span {
  color: #999999;
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* =========================
   14. FOOTER
========================= */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 50px var(--side-padding);
  background: var(--white);
}

.footer-logo {
  display: block;
  width: clamp(160px, 23vw, 290px);
  flex-shrink: 0;
}

.footer-logo img {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
  object-position: left center;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.footer-right > p {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 25px;
}

.footer-links a {
  font-size: 10px;
  font-weight: 700;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #a87500;
}

.footer-right small {
  color: #888888;
  font-size: 9px;
  letter-spacing: 0.06em;
}

/* =========================
   15. SCROLL REVEAL
========================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item.reveal {
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    background var(--transition);
}

/* =========================
   16. SUBPAGE HERO
   Shared styles for other HTML pages
========================= */

.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  padding: 180px var(--side-padding) 75px;
  overflow: hidden;
  background: var(--light-gray);
}

.page-hero::after {
  position: absolute;
  content: "";
  top: 100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border: 55px solid rgba(255, 194, 71, 0.35);
  transform: rotate(45deg);
  pointer-events: none;
}

.page-eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 25px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.page-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(75px, 13vw, 175px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.page-description {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-top: 35px;
  font-size: 14px;
  line-height: 2;
}

.content-section {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 100px var(--side-padding);
}

.content-heading {
  margin-bottom: 35px;
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 75px);
  font-weight: 800;
  line-height: 0.95;
}

.content-text {
  max-width: 800px;
  color: #555555;
  font-size: 14px;
  line-height: 2.1;
}

.content-text p + p {
  margin-top: 20px;
}

/* =========================
   17. GENERIC CARDS
========================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.content-card {
  position: relative;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--border);
  background: var(--white);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.content-card:hover {
  transform: translateY(-7px);
  border-color: var(--yellow);
  background: #fffdf7;
}

.content-card .card-number {
  display: block;
  margin-bottom: 30px;
  color: #999999;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.content-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.05;
}

.content-card p {
  color: #666666;
  font-size: 13px;
  line-height: 1.9;
}

/* =========================
   18. WORKS
========================= */

.works-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-button {
  padding: 11px 20px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px 25px;
}

.work-card {
  min-width: 0;
}

.work-image {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  background: var(--light-gray);
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-image img {
  transform: scale(1.05);
}

.work-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-heading);
  font-size: clamp(65px, 12vw, 150px);
  font-weight: 900;
}

.work-info {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
}

.work-info h3 {
  font-family: var(--font-heading);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  line-height: 1;
}

.work-info p {
  margin-top: 8px;
  color: #777777;
  font-size: 12px;
}

.work-category {
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid var(--border);
  font-size: 9px;
  font-weight: 700;
}

/* =========================
   19. MEMBERS
========================= */

.member-card {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}

.member-visual {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  place-items: center;
  background: var(--light-gray);
}

.member-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-placeholder {
  font-family: var(--font-heading);
  font-size: 120px;
  font-weight: 900;
  color: var(--yellow);
}

.member-info {
  padding: 22px;
}

.member-role {
  color: #8b680e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.member-name {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.member-description {
  margin-top: 12px;
  color: #666666;
  font-size: 12px;
  line-height: 1.9;
}

/* =========================
   20. CONTACT FORM
========================= */

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.contact-info h2 {
  margin-bottom: 25px;
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 75px);
  font-weight: 800;
  line-height: 0.9;
}

.contact-info p {
  color: #666666;
  font-size: 13px;
  line-height: 2;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #d69b25;
  outline: none;
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 18px 22px;
  border: 0;
  background: var(--yellow);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
}

.submit-button:hover {
  background: var(--yellow-light);
  transform: translateY(-2px);
}

.submit-button span {
  font-size: 20px;
}

/* =========================
   21. REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================
   22. TABLET
========================= */

@media (max-width: 1050px) {

  :root {
    --side-padding: 40px;
  }

  .site-header {
    min-height: 90px;
  }

  .brand {
    width: 190px;
  }

  .main-nav {
    gap: 17px;
  }

  .main-nav > a {
    font-size: 10px;
  }

  .main-nav small {
    font-size: 8px;
  }

  .nav-contact {
    gap: 10px !important;
    padding: 13px 14px;
  }

  .hero {
    min-height: 800px;
    min-height: 100svh;
  }

  .hero-title {
    font-size: clamp(105px, 18vw, 190px);
  }

  .about-layout {
    gap: 45px;
  }

  .approach-grid {
    gap: 50px;
  }

  .feature-top {
    align-items: start;
    flex-direction: column;
  }

  .feature-top > p {
    align-self: flex-end;
  }

  .contact-big b {
    right: -65px;
  }

  .contact-layout {
    gap: 45px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   23. MOBILE NAVIGATION
========================= */

@media (max-width: 760px) {

  :root {
    --side-padding: 24px;
  }

  html {
    scroll-padding-top: 80px;
  }

  .site-header {
    position: absolute;
    min-height: 78px;
    padding-block: 14px;
  }

  .brand {
    width: 175px;
  }

  .brand img {
    max-height: 50px;
  }

  .menu-toggle {
    position: relative;
    z-index: 1002;
    display: flex;
    flex-shrink: 0;
  }

  .main-nav {
    position: fixed;
    z-index: 1001;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    padding: 100px var(--side-padding) 45px;
    overflow-y: auto;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition:
      opacity var(--transition),
      visibility var(--transition),
      transform var(--transition);
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .main-nav > a {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
  }

  .main-nav > a:not(.nav-contact)::after {
    display: none;
  }

  .main-nav small {
    margin-top: 5px;
    font-family: var(--font-body);
    font-size: 11px;
  }

  .main-nav .nav-contact {
    justify-content: space-between;
    margin-top: 25px;
    padding: 20px;
    border: 0;
    font-family: var(--font-body);
    font-size: 14px;
  }

  .hero {
    min-height: 760px;
    min-height: 100svh;
    padding-top: 125px;
    padding-bottom: 40px;
  }

  .hero-topline {
    font-size: 8px;
    letter-spacing: 0.07em;
  }

  .hero-title-wrap {
    margin-block: 60px;
  }

  .hero-title {
    font-size: clamp(88px, 19vw, 145px);
    line-height: 0.78;
    letter-spacing: -0.06em;
  }

  .title-line {
    gap: 10px;
  }

  .title-outline {
    -webkit-text-stroke-width: 1.2px;
  }

  .title-line i {
    width: 35px;
    height: 35px;
    font-size: 22px;
  }

  .hero-side-note {
    right: -5px;
    font-size: 7px;
  }

  .hero-bottom {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }

  .hero-description {
    font-size: 13px;
  }

  .round-link {
    width: 80px;
    height: 80px;
    font-size: 7px;
  }

  .hero-stamp {
    display: none;
  }

  .hero-yellow-block {
    top: 29%;
    right: -230px;
    width: 300px;
    height: 300px;
    border-width: 45px;
  }

  .marquee {
    padding-block: 18px;
  }

  .marquee-track {
    gap: 25px;
  }

  .marquee-track span {
    font-size: 22px;
  }

  .section {
    padding-top: 85px;
    padding-bottom: 85px;
  }

  .section-label {
    margin-bottom: 45px;
    font-size: 8px;
  }

  .section-heading {
    font-size: clamp(58px, 12vw, 88px);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-copy {
    max-width: 100%;
  }

  .about-ribbon {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin-top: 60px;
    padding-block: 20px;
    font-size: 21px;
  }

  .services-heading-row {
    align-items: start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 45px;
  }

  .service-item {
    grid-template-columns: 35px 1fr 25px;
    gap: 15px;
    min-height: 115px;
    padding: 20px 5px;
  }

  .service-number {
    font-size: 14px;
  }

  .service-main h3 {
    font-size: clamp(25px, 6vw, 37px);
  }

  .service-main p {
    font-size: 11px;
  }

  .service-symbol {
    font-size: 21px;
  }

  .service-hover {
    right: 5%;
    font-size: 120px;
  }

  .feature-section {
    padding: 85px var(--side-padding);
  }

  .feature-top {
    gap: 25px;
    margin-bottom: 40px;
  }

  .feature-top .section-heading {
    font-size: clamp(48px, 10vw, 76px);
  }

  .project-placeholder {
    min-height: 380px;
    padding: 25px;
  }

  .placeholder-caption {
    font-size: 8px;
  }

  .placeholder-copy p {
    font-size: clamp(32px, 8vw, 50px);
  }

  .placeholder-copy > span {
    max-width: 230px;
    font-size: 11px;
    line-height: 1.8;
  }

  .placeholder-arrow {
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .feature-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contact-banner {
    padding-top: 55px;
    padding-bottom: 35px;
  }

  .contact-banner-top {
    font-size: 8px;
  }

  .contact-big {
    margin-block: 60px;
    font-size: clamp(105px, 22vw, 180px);
  }

  .contact-big b {
    right: -45px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .contact-banner-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 35px;
    padding-top: 40px;
    padding-bottom: 35px;
  }

  .footer-logo {
    width: 200px;
  }

  .footer-right {
    align-items: flex-start;
    width: 100%;
    gap: 20px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 15px 22px;
  }

  .page-hero {
    min-height: 430px;
    padding-top: 150px;
    padding-bottom: 55px;
  }

  .page-title {
    font-size: clamp(65px, 14vw, 110px);
  }

  .content-section {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .content-card {
    padding: 25px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =========================
   24. SMALL MOBILE
========================= */

@media (max-width: 390px) {

  :root {
    --side-padding: 18px;
  }

  .brand {
    width: 145px;
  }

  .menu-toggle {
    width: 43px;
    height: 43px;
  }

  .hero-topline {
    font-size: 7px;
  }

  .hero-title {
    font-size: 18.5vw;
  }

  .hero-kicker {
    font-size: 9px;
  }

  .hero-description {
    font-size: 12px;
  }

  .round-link {
    width: 70px;
    height: 70px;
  }

  .section-heading {
    font-size: 56px;
  }

  .service-main h3 {
    font-size: 24px;
  }

  .contact-big {
    font-size: 21vw;
  }

  .contact-big b {
    right: -35px;
    width: 35px;
    height: 35px;
    font-size: 17px;
  }
}

/* ========================================
   MELLENA STUDIO | LOADING BACKGROUND
======================================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 50% 45%,
      rgba(255, 204, 0, 0.13) 0%,
      rgba(255, 204, 0, 0.04) 30%,
      transparent 65%
    ),
    linear-gradient(
      135deg,
      #080808 0%,
      #14120a 45%,
      #050505 100%
    );
}

/* 背景の光 */
.loader::before {
  content: "";
  position: absolute;
  inset: -50%;

  background: radial-gradient(
    circle,
    rgba(255, 204, 0, 0.12) 0%,
    rgba(255, 204, 0, 0.035) 25%,
    transparent 55%
  );

  animation: loaderGlow 5s ease-in-out infinite alternate;
  pointer-events: none;
}

/* 背景の細いライン */
.loader::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(255, 204, 0, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 204, 0, 0.035) 1px,
      transparent 1px
    );

  background-size: 60px 60px;

  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 30%,
    black 70%,
    transparent
  );

  pointer-events: none;
}

/* 背景の光がゆっくり動く */
@keyframes loaderGlow {
  0% {
    transform: translate(-3%, -2%) scale(0.95);
    opacity: 0.55;
  }

  100% {
    transform: translate(3%, 2%) scale(1.08);
    opacity: 1;
  }
}

/* ローディング内の文字・ロゴを背景より前に */
.loader > * {
  position: relative;
  z-index: 1;
}

/* 動きを減らす設定が有効な場合 */
@media (prefers-reduced-motion: reduce) {
  .loader::before {
    animation: none;
  }
}

/* ========================================
   FIX: ABOUT PAGE SCROLL
======================================== */

html {
  min-height: 100%;
  overflow-x: clip !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
}

body.about-page {
  min-height: 100%;
  height: auto !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
}

/* ローディング終了後にページ操作を妨げない */
.loader.is-hidden {
  display: none !important;
  pointer-events: none !important;
}

/* ========================================
   MELLENA STUDIO
   HEADER NAVIGATION COLOR FIX
======================================== */

/* ヘッダーの背景 */
.site-header {
  background: rgba(8, 8, 8, 0.96);
}

/* ナビゲーションの文字 */
.site-header .main-nav a {
  color: #ffff !important;
  transition: color 0.3s ease;
}

/* マウスを乗せたとき */
.site-header .main-nav a:hover {
  color: #e8c84a !important;
}

/* 現在開いているページ */
.site-header .main-nav a[aria-current="page"] {
  color: #b9a34b !important;
}

/* スマホ用メニューの文字 */
@media (max-width: 768px) {
  .site-header .main-nav a {
    color: #b5b4ac !important;
  }

  .site-header .main-nav a:hover,
  .site-header .main-nav a[aria-current="page"] {
    color: #e8c84a !important;
  }
}
