/* Reset
---------------------------------------- */

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}


/* Variables
======================================== */

:root {
  /* Color */

  --color-bg: #f7f5f2;
  --color-surface: #ffffff;

  --color-text: #3f3b3a;
  --color-subtext: #817b79;

  --color-border: #e8e3e1;
  --color-accent: #3f3b3a;

  /* Section Background */

  --color-section-blue: #f3f5f4;
  --color-section-pink: #f7f1f2;
  --color-section-lavender: #f2f1f6;

  /* Hero */

  --hero-gradient: linear-gradient(
    135deg,
    #9fddf3 0%,
    #c8c4f4 48%,
    #f3bfd7 100%
  );

  /* Typography */

  --font-base:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --font-en:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;

  /* Font Size */

  --font-size-xs: 0.75rem;       /* 12px */
  --font-size-sm: 0.875rem;      /* 14px */
  --font-size-base: 1rem;        /* 16px */
  --font-size-lead: 1.0625rem;   /* 17px */
  --font-size-subtitle: 1.25rem; /* 20px */

  --font-size-card-title:
    clamp(1.25rem, 2vw, 1.5rem); /* 20〜24px */

  --font-size-feature:
    clamp(1.75rem, 2.5vw, 2.375rem); /* 28〜38px */

  --font-size-section:
    clamp(2.375rem, 3.5vw, 3.25rem); /* 38〜52px */

  --font-size-hero:
    clamp(2.5rem, 4vw, 4rem); /* 40〜64px */

  /* Layout */

  --container-width: 1120px;
  --container-padding: 24px;

  /* Spacing */

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;

  /* Section spacing */

  --section-space: 140px;
  --section-space-sp: 96px;

  /* Radius */

  --radius-sm: 8px;
  --radius-md: 12px;

  /* Animation */

  --transition: 0.2s ease;
}

 /* Section Label
---------------------------------------- */

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;

  margin: 0 0 28px;

  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;

  color: var(--color-text);
}

.section-label span {
  color: var(--color-subtext);
  font-weight: 400;
}


/* Base
---------------------------------------- */

body {
  position: relative;

  min-height: 100vh;

  color: var(--color-text);
  background-color: var(--color-bg);

  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
}

a,
button {
  transition:
    opacity 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

a:hover,
button:hover {
  opacity: 0.7;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}


/* Page Wave
======================================== */

/* Hero内だけ波を表示するためのマスク */

.hero-wave-mask {
  position: absolute;
  inset: 0;

  overflow: hidden;

  pointer-events: none;
  z-index: 0;
}

/* 波そのもの */

.hero-wave-mask .page-wave {
  position: absolute;
  top: 0;
  left: 0;

  width: clamp(120px, 14vw, 220px);
  height: 300vh;

  pointer-events: none;
}

.page-wave {
  position: absolute;
  top: 0;
  left: 0;

  width: clamp(130px, 18vw, 290px);
  height: 100vh;

  overflow: hidden;

  pointer-events: none;
  z-index: 10;
}

.page-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-wave path {
  fill: url(#wave-fill);
  opacity: 0.62;
}

.wave-flow {
  animation: wave-scroll 75s linear infinite;
}

@keyframes wave-scroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(3000px);
  }
}


/* Header
======================================== */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;

  padding: 24px 40px;

  color: var(--color-text);

  background: rgba(247, 245, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: var(--font-size-subtitle);
  font-weight: 700;
}

.nav__list {
  display: flex;
  gap: 40px;

  list-style: none;
}


/* Hero
======================================== */

.hero {
  position: relative;

  min-height: 100vh;

  overflow: hidden;
}


/* Inner
---------------------------------------- */

.hero__inner {
  position: relative;

  width: min(
    var(--container-width),
    calc(100% - (var(--container-padding) * 2))
  );

  min-height: 100vh;
  margin-inline: auto;

  display: flex;
  align-items: center;
}


/* Text
---------------------------------------- */

.hero__content {
  position: relative;
  z-index: 2;
  width: 60%;
}

.hero__label {
  margin-bottom: 32px;

  font-family: var(--font-en);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.3em;

  color: var(--color-text);
}

.hero__title {
  max-width: none;
  margin-bottom: 36px;

  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;

  color: var(--color-text);
}

.hero__description {
  color: var(--color-subtext);

  font-size: var(--font-size-base);
  line-height: 2;
}


/* Hero Visual
======================================== */

.hero__visual {
  position: absolute;
  z-index: 1;

  top: 0;
  right: -3%;

  width: 62%;
  height: 100%;

  pointer-events: none;
}


/* Blob common
---------------------------------------- */

.blob {
  position: absolute;
  display: block;

  aspect-ratio: 1;
  transform-origin: center;

  mix-blend-mode: normal;

  will-change: border-radius, transform;
}


/* 01 Blue
---------------------------------------- */

.blob--blue {
  top: -5%;
  right: -31%;

  width: clamp(330px, 32vw, 490px);

  background: linear-gradient(
    135deg,
    rgba(184, 224, 239, 0.82) 0%,
    rgba(198, 218, 242, 0.78) 52%,
    rgba(215, 207, 239, 0.74) 100%
  );

  border-radius:
    72% 28% 61% 39%
    / 36% 64% 42% 58%;

  animation:
    blob-blue 13s ease-in-out infinite alternate;
}


/* 02 Pink
---------------------------------------- */

.blob--pink {
  top: 22%;
  right: 23%;

  width: clamp(250px, 25vw, 390px);

  background: linear-gradient(
    145deg,
    rgba(244, 198, 218, 0.78) 0%,
    rgba(246, 218, 213, 0.74) 48%,
    rgba(225, 207, 235, 0.72) 100%
  );

  border-radius:
    41% 59% 72% 28%
    / 61% 37% 63% 39%;

  animation:
    blob-pink 16s ease-in-out infinite alternate;
}


/* 03 Blue Gray
---------------------------------------- */

.blob--grayblue {
  top: 58%;
  right: -8%;

  width: clamp(220px, 22vw, 340px);

  background: linear-gradient(
    130deg,
    rgba(200, 232, 222, 0.78) 0%,
    rgba(186, 222, 238, 0.78) 52%,
    rgba(213, 207, 239, 0.72) 100%
  );

  border-radius:
    68% 32% 43% 57%
    / 39% 61% 67% 33%;

  animation:
    blob-grayblue 11s ease-in-out infinite alternate;
}


/* 04 Cream
---------------------------------------- */

.blob--cream {
  top: 76%;
  right: 27%;

  width: clamp(90px, 9vw, 135px);

  background: linear-gradient(
    135deg,
    rgba(255, 244, 181, 0.86) 0%,
    rgba(250, 222, 202, 0.80) 48%,
    rgba(244, 199, 218, 0.76) 100%
  );

  border-radius:
    57% 43% 69% 31%
    / 63% 37% 52% 48%;

  animation:
    blob-cream 9s ease-in-out infinite alternate;
}


/* Blob animations
======================================== */

@keyframes blob-blue {
  0% {
    border-radius:
      72% 28% 61% 39%
      / 36% 64% 42% 58%;

    transform:
      rotate(0deg)
      scale(1);
  }

  50% {
    border-radius:
      43% 57% 31% 69%
      / 62% 38% 68% 32%;

    transform:
      rotate(5deg)
      scale(1.03);
  }

  100% {
    border-radius:
      56% 44% 74% 26%
      / 32% 67% 33% 68%;

    transform:
      rotate(-4deg)
      scale(0.98);
  }
}

@keyframes blob-pink {
  0% {
    border-radius:
      41% 59% 72% 28%
      / 61% 37% 63% 39%;

    transform:
      rotate(0deg)
      scale(1);
  }

  50% {
    border-radius:
      69% 31% 46% 54%
      / 35% 65% 41% 59%;

    transform:
      rotate(-5deg)
      scale(1.04);
  }

  100% {
    border-radius:
      34% 66% 57% 43%
      / 68% 32% 55% 45%;

    transform:
      rotate(4deg)
      scale(0.97);
  }
}

@keyframes blob-grayblue {
  0% {
    border-radius:
      68% 32% 43% 57%
      / 39% 61% 67% 33%;

    transform:
      rotate(0deg)
      scale(1);
  }

  50% {
    border-radius:
      38% 62% 67% 33%
      / 66% 34% 42% 58%;

    transform:
      rotate(7deg)
      scale(1.05);
  }

  100% {
    border-radius:
      61% 39% 32% 68%
      / 44% 69% 31% 56%;

    transform:
      rotate(-5deg)
      scale(0.98);
  }
}

@keyframes blob-cream {
  0% {
    border-radius:
      57% 43% 69% 31%
      / 63% 37% 52% 48%;

    transform:
      rotate(0deg)
      scale(1);
  }

  50% {
    border-radius:
      71% 29% 42% 58%
      / 38% 62% 67% 33%;

    transform:
      rotate(-8deg)
      scale(1.06);
  }

  100% {
    border-radius:
      36% 64% 59% 41%
      / 68% 32% 43% 57%;

    transform:
      rotate(6deg)
      scale(0.96);
  }
}


/* Reduced motion
---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .blob,
  .wave-flow {
    animation: none;
  }
}


/* Hero responsive
======================================== */

@media (max-width: 768px) {
  .hero__inner {
    align-items: flex-start;

    padding-top: 30vh;
    padding-bottom: 80px;
  }

  .hero__content {
    width: 100%;
  }

  .hero__label {
    margin-bottom: 20px;
  }

  .hero__title {
    margin-bottom: 24px;
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.45;
  }

  .hero__title .pc-only {
    display: none;
  }

  .hero__visual {
    top: -5%;
    right: -25%;

    width: 100%;
    height: 60%;

    transform: none;

    opacity: 0.9;
  }

  .blob--blue {
    width: 60vw;
  }

  .blob--pink {
    top: 25%;
    right: 35%;

    width: 52vw;
  }

  .blob--grayblue {
    top: 48%;
    right: 12%;

    width: 38vw;
  }

  .blob--cream {
    top: 55%;
    right: 42%;

    width: 23vw;
  }
}


/* Layout
======================================== */

.page {
  width: 100%;
}

.section {
  padding-block: var(--section-space);
}

.section__label {
  margin-bottom: var(--space-sm);

  color: var(--color-subtext);

  font-family: var(--font-en);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section__title {
  margin-bottom: var(--space-lg);

  font-size: var(--font-size-section);
  line-height: 1.35;
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--section-space-sp);
  }
}


/* Featured Project
======================================== */

.featured-project {
  position: relative;

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

.featured-project__inner {
  width: min(
    var(--container-width),
    calc(100% - (var(--container-padding) * 2))
  );

  margin-inline: auto;
}

.featured-project__inner + .featured-project__inner {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid rgba(63, 59, 58, 0.15);
}

@media (max-width: 768px) {
  .featured-project__inner + .featured-project__inner {
    margin-top: 56px;
    padding-top: 56px;
  }
}


/* Header
---------------------------------------- */

.featured-project__header {
  max-width: 680px;

  margin-bottom: 72px;
}

.featured-project__title {
  margin-bottom: 8px;

  font-size: var(--font-size-section);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;

  color: var(--color-text);
}

.featured-project__name {
  margin-bottom: 32px;

  font-family: var(--font-en);
  font-size: var(--font-size-sm);
  letter-spacing: 0.06em;

  color: var(--color-subtext);
}

.featured-project__description {
  font-size: var(--font-size-base);
  line-height: 2;

  color: var(--color-subtext);
}


/* Tags
---------------------------------------- */

.featured-project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 28px;
  padding: 0;

  list-style: none;
}

.featured-project__tags li {
  padding: 7px 14px;

  border: 1px solid rgba(63, 59, 58, 0.18);
  border-radius: 999px;

  font-family: var(--font-en);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;

  color: var(--color-text);
}


/* Visual
---------------------------------------- */

.featured-project__visual {
  margin-top: 48px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.featured-project__image-wrap {
  position: relative;

  overflow: hidden;

  border-radius: 12px;

  box-shadow:
    0 24px 60px rgba(63, 59, 58, 0.10);
}

.featured-project__image {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow:
    0 24px 60px rgba(60, 70, 80, 0.08),
    0 4px 16px rgba(60, 70, 80, 0.04);
}


/* Footer
---------------------------------------- */

.featured-project__footer {
  display: flex;
  justify-content: flex-end;

  margin-top: 36px;
}

.featured-project__link {
  display: inline-flex;
  align-items: center;
  gap: 18px;

  padding-bottom: 6px;

  border-bottom: 1px solid rgba(63, 59, 58, 0.35);

  font-family: var(--font-en);
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;

  color: var(--color-text);
  text-decoration: none;

  transition:
    gap 0.3s ease,
    opacity 0.3s ease;
}

.featured-project__link:hover {
  gap: 28px;
  opacity: 0.65;
}


/* Featured responsive
======================================== */

@media (max-width: 768px) {
  .featured-project__header {
    margin-bottom: 48px;
  }

  .featured-project__description br {
    display: none;
  }

  .featured-project__visual {
    padding: 4px;

    border-radius: 4px;
  }

  .featured-project__image-wrap {
    border-radius: 8px;
    overflow: hidden;
  }

  .featured-project__footer {
    margin-top: 28px;
  }
}

/* HANOWA
======================================== */

.featured-project__inner--hanowa .featured-project__header {
  margin-bottom: 40px;
}

.featured-project__inner--hanowa .featured-project__visual {
  margin-top: 0;
}

.featured-project__inner--hanowa .featured-project__image-wrap {
  background: #fff;
}

.featured-project__inner--hanowa .featured-project__image {
  height: auto;
  object-fit: contain;
}

/* Details
---------------------------------------- */

.hanowa-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;

  margin-top: 56px;
}

.hanowa-details__item {
  min-width: 0;
}

.hanowa-details__title {
  margin-bottom: 20px;
  padding-bottom: 12px;

  border-bottom: 1px solid rgba(63, 59, 58, 0.2);

  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
}

.hanowa-details__list {
  margin: 0;
  padding: 0;
  list-style: none;

  color: var(--color-subtext);
  line-height: 1.9;
}

.hanowa-details__list li {
  position: relative;
  padding-left: 1.4em;
}

.hanowa-details__list li::before {
  content: "";
  position: absolute;
  top: 0.85em;
  left: 0;

  width: 5px;
  height: 5px;
  border-radius: 50%;

  background: var(--color-text);
}

.hanowa-details__list li + li {
  margin-top: 16px;
}

.hanowa-details__text {
  margin: 0;

  color: var(--color-subtext);
  line-height: 1.9;
}

/* Responsive
---------------------------------------- */

@media (max-width: 768px) {
  .hanowa-details {
    grid-template-columns: 1fr;
    gap: 36px;

    margin-top: 36px;
  }

  .hanowa-details__title {
    margin-bottom: 16px;
  }
}

/* HANOWAの画像サイズ調整 */
.featured-project__inner--hanowa .featured-project__visual {
  width: 78%;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .featured-project__inner--hanowa .featured-project__visual {
    width: 100%;
  }
}



/* Other Projects
======================================== */

.other-projects {
  background: var(--color-section-lavender);
}

.other-projects__inner {
  width: min(
    var(--container-width),
    calc(100% - (var(--container-padding) * 2))
  );

  margin-inline: auto;
}


/* Header
---------------------------------------- */

.other-projects__header {
  margin-bottom: 64px;
}

.other-projects__heading {
  font-size: var(--font-size-section);
  font-weight: 500;
  line-height: 1.4;

  color: var(--color-text);
}


/* Projects
---------------------------------------- */

.other-projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

/* Project Card
---------------------------------------- */

.project-card {
  min-width: 0;
}

.project-card__image-link {
  display: block;
  text-decoration: none;
}

.project-card__image-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eef3f4;
  margin-bottom: 30px;    
  border-radius: 20px;
}

.project-card__image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.project-card__image-link:hover .project-card__image {
  transform: scale(1.025);
}


/* Text
---------------------------------------- */

.project-card__type {
  margin-bottom: 10px;

  font-family: var(--font-en);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.18em;

  color: var(--color-subtext);
}

.project-card__title {
  margin-bottom: 18px;

  font-size: var(--font-size-card-title);
  font-weight: 500;
  line-height: 1.4;

  color: var(--color-text);
}

.project-card__description {
  min-height: 6em;

  font-size: var(--font-size-base);
  line-height: 2;

  color: var(--color-subtext);
}


/* Tags
---------------------------------------- */

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  margin-top: 24px;
  padding: 0;

  list-style: none;
}

.project-card__tags li {
  padding: 6px 11px;

  border: 1px solid rgba(63, 59, 58, 0.16);
  border-radius: 999px;

  font-family: var(--font-en);
  font-size: var(--font-size-xs);
  letter-spacing: 0.06em;

  color: var(--color-text);
}


/* Link
---------------------------------------- */

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  margin-top: 30px;
  padding-bottom: 5px;

  border-bottom: 1px solid rgba(63, 59, 58, 0.3);

  font-family: var(--font-en);
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;

  color: var(--color-text);
  text-decoration: none;

  transition:
    gap 0.3s ease,
    opacity 0.3s ease;
}

.project-card__link:hover {
  gap: 22px;
  opacity: 0.65;
}


/* Other Projects responsive
======================================== */

@media (max-width: 640px) {
  .other-projects__header {
    margin-bottom: 44px;
  }

  .other-projects__grid {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .project-card__description {
    min-height: auto;
  }
}




/* About
======================================== */

.about {
  background: var(--color-section-pink);
  padding-block: 72px;
}

.about__inner {
  width: min(
    800px,
    calc(100% - (var(--container-padding) * 2))
  );
  margin-inline: auto;
}

.about .section-label {
  margin-bottom: 32px;
}

/* Body
---------------------------------------- */

.about__body {
  display: flex;
  align-items: center;
  gap: 48px;
}

.about__visual {
  flex: 0 0 120px;
}

.about__image {
  display: block;
  width: 100%;
  height: auto;
}

/* Text
---------------------------------------- */

.about__text {
  flex: 1;
  min-width: 0;
}

.about__text p {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: rgba(63, 59, 58, 0.8);
}

.about__text p + p {
  margin-top: 16px;
}

/* Inline link
---------------------------------------- */

.about__inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(63, 59, 58, 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s ease;
}

.about__inline-link:hover {
  text-decoration-color: currentColor;
}

/* Responsive
---------------------------------------- */

@media (max-width: 768px) {
  .about {
    padding-block: 56px;
  }

  .about__body {
    align-items: flex-start;
    gap: 24px;
  }

  .about__visual {
    flex: 0 0 72px;
    width: 72px;
  }
}

@media (max-width: 480px) {
  .about__body {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
}


/* Skills
======================================== */

.skills {
  background:  var(--color-bg);
}

.skills__inner {
  width: min(1080px, calc(100% - 80px));
  margin: 0 auto;
}


/* Header
---------------------------------------- */

.skills__header {
  margin-bottom: 80px;
}

.skills__title {
  margin: 0;

  font-size: var(--font-size-section);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;

  color: var(--color-text);
}


/* Main Skills
---------------------------------------- */

.skills__main {
  border-top: 1px solid var(--color-border);
}

.skill-feature {
  display: grid;
  grid-template-columns: 70px minmax(280px, 0.9fr) 1.1fr;
  gap: 40px;

  padding: 72px 0;

  border-bottom: 1px solid var(--color-border);
}

.skill-feature__number {
  padding-top: 8px;

  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;

  color: var(--color-subtext);
}

.skill-feature__heading h3 {
  margin: 0;

  font-size: var(--font-size-feature);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;

  color: var(--color-text);
}

.skill-feature__catch {
  margin: 24px 0 0;

  font-size: var(--font-size-lead);
  font-weight: 400;
  line-height: 1.8;

  color: var(--color-text);
}

.skill-feature__content > p {
  max-width: 480px;
  margin: 4px 0 0;

  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.02em;

  color: var(--color-subtext);
}


/* Tags
---------------------------------------- */

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin: 28px 0 0;
  padding: 0;

  list-style: none;
}

.skill-tags li {
  padding: 7px 13px;

  font-size: var(--font-size-xs);
  font-weight: 400;
  letter-spacing: 0.06em;

  color: var(--color-subtext);

  border: 1px solid var(--color-border);
  border-radius: 999px;
}


/* Other Skills
---------------------------------------- */

.skills__other {
  margin-top: 120px;
}

.skills__other-heading {
  margin-bottom: 48px;
}

.skills__other-heading h3 {
  margin: 0;

  font-size: clamp(1.625rem, 2.3vw, 2.125rem);
  font-weight: 400;
  line-height: 1.4;

  color: var(--color-text);
}

.skills__other-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.skill-other {
  min-width: 0;

  padding: 40px 32px 44px;
}

.skill-other:first-child {
  padding-left: 0;
}

.skill-other:last-child {
  padding-right: 0;
}

.skill-other + .skill-other {
  border-left: 1px solid var(--color-border);
}

.skill-other__number {
  display: block;

  margin-bottom: 40px;

  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;

  color: var(--color-subtext);
}

.skill-other h4 {
  margin: 0 0 20px;

  font-size: var(--font-size-subtitle);
  font-weight: 500;
  line-height: 1.5;

  color: var(--color-text);
}

.skill-other p {
  margin: 0;

  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: 1.9;

  color: var(--color-subtext);
}

.skill-other .skill-other__tools {
  margin-top: 24px;

  font-size: var(--font-size-xs);
  letter-spacing: 0.06em;

  color: var(--color-subtext);
}


/* Skills responsive
---------------------------------------- */

@media (max-width: 768px) {
  .skills__inner {
    width: min(100% - 40px, 1080px);
  }

  .skills__header {
    margin-bottom: 56px;
  }

  .skill-feature {
    grid-template-columns: 56px 0.8fr 1.2fr;
    gap: 28px;
  }

  .skill-feature__number {
    padding-top: 0;
  }

  .skill-feature__catch {
    margin-top: 16px;
  }

  .skill-feature__content > p {
    margin-top: 0;
  }

  .skills__other {
    margin-top: 88px;
  }

  .skills__other-list {
    grid-template-columns: 1fr;
  }

  .skill-other {
    padding: 40px 0;
  }

  .skill-other + .skill-other {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .skill-other__number {
    margin-bottom: 24px;
  }
}


/* Contact
======================================== */

.contact {
  background: var(--color-bg);
}

.contact__inner {
  width: min(100% - 48px, 1040px);
  margin-inline: auto;
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__heading h2 {
  margin: 0;

  font-size: var(--font-size-section);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;

  color: var(--color-text);
}

.contact__body {
  padding-top: 6px;
}

.contact__body p {
  margin: 0 0 36px;

  font-size: var(--font-size-base);
  line-height: 2;

  color: var(--color-subtext);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 40px;

  padding: 0 0 8px;

  font-size: var(--font-size-sm);
  font-weight: 400;
  letter-spacing: 0.04em;

  color: var(--color-text);
  text-decoration: none;

  border-bottom: 1px solid rgba(60, 56, 54, 0.35);

  transition:
    gap 0.3s ease,
    border-color 0.3s ease;
}

.contact__link:hover {
  gap: 48px;
  border-color: var(--color-text);
}

.contact__arrow {
  display: inline-block;

  transition: transform 0.3s ease;
}

.contact__link:hover .contact__arrow {
  transform: translateX(4px);
}


/* Footer
======================================== */

.footer {
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  width: min(100% - 48px, 1040px);
  min-height: 100px;
  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__name,
.footer__copyright {
  margin: 0;
}

.footer__name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.04em;

  color: var(--color-text);
}

.footer__copyright {
  font-size: var(--font-size-xs);
  font-weight: 400;
  letter-spacing: 0.02em;

  color: var(--color-subtext);
}


/* Responsive
======================================== */

@media (max-width: 768px) {
  .contact__inner,
  .footer__inner {
    width: min(100% - 40px, 1040px);
  }

  .contact__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact__body {
    padding-top: 0;
  }

  .contact__body p {
    margin-bottom: 28px;
  }

  .footer__inner {
    min-height: 88px;
  }
}

@media (max-width: 480px) {
  .contact__inner,
  .footer__inner {
    width: calc(100% - 32px);
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}


/* ========================================
   Mobile Navigation
======================================== */

.nav__toggle {
  display: none;
}

@media (max-width: 768px) {
  .header {
    padding: 20px 24px;
  }

  .nav {
    position: relative;
  }

  .site-title {
    font-size: 1rem;
  }

  .nav__toggle {
    display: flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
  }

  .nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav__list {
    display: none;
    position: absolute;
    top: calc(100% + 20px);
    left: -24px;
    right: -24px;
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    background: rgba(247, 245, 242, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(63, 59, 58, 0.06);
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__list a {
    display: block;
    padding: 4px 0;
    font-size: var(--font-size-base);
  }
}


/* ========================================
   Skills - Mobile
======================================== */

@media (max-width: 768px) {
  .skills__inner {
    width: calc(100% - 48px);
  }

  .skills__header {
    margin-bottom: 40px;
  }

  .skill-feature {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 40px 0;
  }

  .skill-feature__number {
    padding-top: 0;
    margin-bottom: 16px;
  }

  .skill-feature__heading h3 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .skill-feature__catch {
    margin-top: 12px;
    font-size: var(--font-size-base);
  }

  .skill-feature__content {
    margin-top: 24px;
  }

  .skill-feature__content > p {
    margin-top: 0;
    line-height: 1.9;
  }

  .skill-tags {
    margin-top: 20px;
    gap: 8px;
  }

  .skill-tags li {
    padding: 6px 11px;
  }
}


/* Hero - Mobile adjustment
======================================== */

@media (max-width: 768px) {
  .hero,
  .hero__inner {
    min-height: 85svh;
  }

  .hero__inner {
    padding-top: 24vh;
    padding-bottom: 64px;
  }
}

  .hero__content {
    width: 100%;
  }

  .hero__visual {
    top: 2%;
    right: -15%;
    width: 100%;
    height: 48%;
  }

  .blob--blue {
    top: -10%;
    right: -30%;
    width: 56vw;
  }

  .blob--pink {
    top: 5%;
    right: 25%;
    width: 48vw;
  }

  .blob--grayblue {
    top: 115%;
    right: -5%;
    width: 40vw;
  }

  .blob--cream {
    top: 130%;
    right: 30%;
    width: 22vw;
  }
}

 /* PCでは改行しない */
.sp-only {
  display: none;
}

/* スマホだけ改行 */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}

/* Project View
======================================== */

[data-view-panel][hidden] {
  display: none !important;
}

/* Design Projects
---------------------------------------- */

.design-projects {
  padding: 90px 24px;
}

.design-projects__inner {
  max-width: 1100px;
  margin: auto;
}

.design-projects h2 {
  margin: 18px 0;
  font-size: clamp(28px, 4vw, 44px);
}

.design-projects h3 {
  margin: 60px 0 22px;
  font-size: 25px;
}

.design-projects p {
  line-height: 1.8;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.design-card {
  overflow: hidden;
  background: white;
  border: 1px solid #e6e3e0;
  border-radius: 8px;
}

.design-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.design-card div {
  padding: 22px;
}

.design-card small {
  color: #777;
}

.design-card h4 {
  margin: 8px 0;
  font-size: 23px;
}

.design-card p {
  font-size: 14px;
}

@media (max-width: 700px) {
  .design-grid {
    grid-template-columns: 1fr;
  }

  .design-projects {
    padding: 65px 20px;
  }
}

/* Hero Visual Placement
======================================== */

.hero .hero__visual {
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  max-width: 900px;
  overflow: visible;
}

.hero .hero__visual .blob--blue {
  top: -5%;
  right: -15%;
  width: clamp(260px, 27vw, 440px);
}

.hero .hero__visual .blob--pink {
  top: 20%;
  right: 34%;
  width: clamp(220px, 22vw, 350px);
}

.hero .hero__visual .blob--grayblue {
  top: 56%;
  right: 2%;
  width: clamp(190px, 19vw, 310px);
}

.hero .hero__visual .blob--cream {
  top: 76%;
  right: 39%;
  width: clamp(80px, 8vw, 125px);
}

@media (max-width: 768px) {
  .hero .hero__visual {
    top: 0;
    right: -10%;
    width: 100%;
    height: 60%;
    max-width: none;
  }

  .hero .hero__visual .blob--blue {
    top: -8%;
    right: -22%;
    width: 55vw;
  }

  .hero .hero__visual .blob--pink {
    top: 20%;
    right: 28%;
    width: 45vw;
  }

  .hero .hero__visual .blob--grayblue {
    top: 50%;
    right: 8%;
    width: 38vw;
  }

  .hero .hero__visual .blob--cream {
    top: 72%;
    right: 40%;
    width: 18vw;
  }
}

/* Hero Portfolio Choice
======================================== */

.hero .portfolio-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 640px);
  margin-top: 29px;
}

.hero .portfolio-choice__item {
  appearance: none;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  min-height: 118px;
  padding: 24px 36px 40px;
  overflow: visible;
  text-align: left;
  color: #3c3839;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  transform: none;
}

.hero .portfolio-choice__item:hover {
  opacity: 0.7;
  color: #3c3839;
  background: transparent;
  border: 0;
  transform: none;
}

.hero .portfolio-choice__item[aria-pressed="true"] {
  color: #3c3839;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.hero .portfolio-choice__shape {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hero .portfolio-choice__shape path {
  fill: #eeeceb;
  transition: fill 0.45s ease, d 0.65s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.hero .portfolio-choice__item[aria-pressed="true"] .portfolio-choice__shape path {
  fill: #d5d0d0;
}

.hero .portfolio-choice__item:hover .portfolio-choice__shape path {
  fill: #e0dddd;
  d: path("M 13 16 C 42 6 91 7 130 12 C 178 17 230 5 244 15 C 255 24 251 43 250 66 C 248 88 228 89 190 92 C 144 95 94 86 51 91 C 19 95 7 82 10 61 C 12 39 4 23 13 16 Z");
}

.hero .portfolio-choice__item[aria-pressed="true"]:hover .portfolio-choice__shape path {
  fill: #c8c3c4;
}

.hero .portfolio-choice__number {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: #777173;
}

.hero .portfolio-choice__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.015em;
}

.hero .portfolio-choice__detail {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
  color: #716d6e;
}

.hero .portfolio-choice__arrow {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #716d6e;
  transition: transform 0.3s ease;
}

.hero .portfolio-choice__item:hover .portfolio-choice__arrow {
  transform: translate(2px, -2px);
}

.hero .portfolio-choice__item:focus-visible {
  outline: 2px solid #53689c;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .hero .portfolio-choice {
    gap: 10px;
  }

  .hero .portfolio-choice__item {
    min-height: 110px;
    padding: 20px 18px 32px;
  }

  .hero .portfolio-choice__number {
    font-size: 9px;
  }

  .hero .portfolio-choice__label {
    font-size: 18px;
  }

  .hero .portfolio-choice__detail {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .portfolio-choice__item,
  .hero .portfolio-choice__arrow,
  .hero .portfolio-choice__shape path {
    transition: none;
  }
}


/* Design Works
======================================== */
.design-projects {
  background: #f7f5f2;
}

.design-projects__inner {
  width: min(var(--container-width), calc(100% - 48px));
  margin-inline: auto;
}

.design-projects__header {
  max-width: 760px;
  margin: 30px 0 88px;
}

.design-projects__header h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.design-projects__header p {
  color: var(--color-subtext);
  font-size: 15px;
  line-height: 2.1;
}

.design-projects__category-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.design-projects__category-heading h3 {
  font-family: var(--font-en);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
}

.design-projects__category-heading span,
.design-work-card__meta,
.design-projects__eyebrow {
  color: var(--color-subtext);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.design-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 76px 34px;
  padding-top: 42px;
}

.design-work-card {
  min-width: 0;
}

.design-work-card__link {
  display: block;
}

.design-work-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.55;
  overflow: hidden;
  background: #ebe8e5;
  border-radius: 5px;
}

.design-work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s ease;
}

.design-work-card__link:hover .design-work-card__image img {
  transform: scale(1.035);
}

.design-work-card__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}

.design-work-card__meta span:last-child {
  color: var(--color-text);
  font-size: 19px;
}

.design-work-card__title {
  margin-top: 6px;
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.4;
}

.design-work-card__summary {
  max-width: 450px;
  margin-top: 12px;
  color: var(--color-subtext);
  font-size: 13px;
  line-height: 1.9;
}

.design-projects__next {
  margin-top: 128px;
  padding: 42px 0 0;
  border-top: 1px solid var(--color-border);
}

.design-projects__next h3 {
  margin: 8px 0;
  font-size: 26px;
  font-weight: 500;
}

.design-projects__next p:last-child {
  color: var(--color-subtext);
  font-size: 13px;
}

/* Individual design work pages
---------------------------------------- */
.design-detail {
  min-height: 100vh;
  padding: 155px 24px 120px;
}

.design-detail__inner {
  max-width: 1020px;
  margin-inline: auto;
}

.design-detail__back {
  display: inline-flex;
  margin-bottom: 70px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}

.design-detail__kicker {
  color: var(--color-subtext);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.design-detail__title {
  margin: 12px 0 22px;
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.design-detail__lead {
  max-width: 740px;
  color: var(--color-subtext);
  line-height: 2;
}

.design-detail__visual {
  margin: 65px 0 85px;
  padding: clamp(16px, 4vw, 54px);
  background: #eeebe8;
  border-radius: 6px;
}

.design-detail__visual img {
  width: 100%;
  height: auto;
  box-shadow: 0 12px 34px rgba(35, 32, 31, 0.09);
}

.design-detail__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.design-detail__info section {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.design-detail__info h2 {
  margin-bottom: 24px;
  font-size: 19px;
  font-weight: 500;
}

.design-detail__info p,
.design-detail__info li {
  color: var(--color-subtext);
  font-size: 14px;
  line-height: 2;
}

.design-detail__info li + li {
  margin-top: 5px;
}

.design-detail__tools {
  margin-top: 35px;
}

.design-detail__tools strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
}

.design-detail__footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 90px;
  padding-top: 25px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}

.design-detail__footer a {
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 700px) {
  .design-projects__inner {
    width: calc(100% - 40px);
  }

  .design-projects__header {
    margin: 24px 0 58px;
  }

  .design-projects__header p br {
    display: none;
  }

  .design-work-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .design-projects__next {
    margin-top: 84px;
  }

  .design-detail {
    padding: 115px 20px 80px;
  }

  .design-detail__back {
    margin-bottom: 45px;
  }

  .design-detail__visual {
    margin: 42px 0 58px;
  }

  .design-detail__info {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-work-card__image img {
    transition: none;
  }
}

/* Design Works: shared visual language with Frontend
======================================== */
.design-work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.design-work-card__tags li {
  padding: 7px 12px;
  border: 1px solid rgba(63, 59, 58, 0.18);
  border-radius: 999px;
  color: var(--color-text);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.design-detail__tags {
  margin-top: 28px;
}

.design-detail__visual {
  margin-top: 48px;
}

.design-detail__info {
  gap: 64px;
}

.design-detail__info section {
  padding-top: 24px;
}

.design-detail__info .design-detail__section-title {
  margin-bottom: 26px;
  font-size: 16px;
  font-weight: 600;
}

.design-detail__list li {
  padding-left: 1.4em;
}

.design-detail__list li + li {
  margin-top: 14px;
}

@media (max-width: 700px) {
  .design-work-card__tags {
    gap: 7px;
  }

  .design-detail__info {
    gap: 42px;
  }
}

/* Banner & DTP galleries
======================================== */
.design-projects__category-heading--extra {
  margin-top: 120px;
}

.design-work-card__image--contain {
  padding: 22px;
  background: #eeebe8;
}

.design-work-card__image--contain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.design-work-grid--banners .design-work-card__image {
  aspect-ratio: 1.55;
}

.design-work-grid--dtp .design-work-card__image {
  aspect-ratio: 1.2;
}

.design-detail__gallery {
  display: grid;
  gap: 28px;
  margin: 48px 0 70px;
}

.design-detail__gallery figure {
  margin: 0;
  padding: 24px;
  border-radius: 6px;
  background: #eeebe8;
  text-align: center;
}

.design-detail__gallery img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 1100px;
  margin: 0 auto;
  object-fit: contain;
}

.design-detail__gallery figcaption {
  margin-top: 14px;
  color: var(--color-subtext);
  font-size: 12px;
}

@media (max-width: 700px) {
  .design-projects__category-heading--extra {
    margin-top: 90px;
  }

  .design-work-card__image--contain {
    padding: 14px;
  }

  .design-detail__gallery figure {
    padding: 12px;
  }
}

/* Design gallery: Banner & DTP */
.design-gallery__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: zoom-in;
}
.design-gallery__trigger:hover .design-work-card__image img {
  transform: scale(1.025);
}
.design-gallery__trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
.design-work-card--gallery .design-work-card__meta {
  margin-top: 16px;
}
.design-work-card--gallery .design-work-card__title {
  margin-bottom: 0;
}
.design-lightbox[hidden] { display: none; }
.design-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}
.design-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 20, .88);
}
.design-lightbox__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 1200px);
  max-height: calc(100dvh - 48px);
  padding: 48px 42px 12px;
}
.design-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 170px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.design-lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.design-lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 480px);
  min-height: 42px;
  margin-top: 10px;
  color: #fff;
  font-size: 13px;
}
.design-lightbox__nav button {
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.design-lightbox__nav button[hidden] { visibility: hidden; }
.design-lightbox-open { overflow: hidden; }
@media (max-width: 600px) {
  .design-lightbox { padding: 12px; }
  .design-lightbox__panel { padding: 46px 0 0; max-height: calc(100dvh - 24px); }
  .design-lightbox__image { max-height: calc(100dvh - 135px); }
}

/* Compact visual galleries: banner and DTP */
.design-work-grid--banners {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 28px;
}

.design-work-grid--dtp {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
}

.design-work-grid--banners .design-work-card__image {
  aspect-ratio: 1.5;
  padding: 12px;
  background: #eeebe8;
}

.design-work-grid--dtp .design-work-card__image {
  aspect-ratio: 1.05;
  padding: 16px;
  background: #eeebe8;
}

.design-work-grid--banners .design-work-card__image img,
.design-work-grid--dtp .design-work-card__image img {
  object-fit: contain;
}

.design-work-grid--dtp .design-work-card__title {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 400;
}

@media (max-width: 760px) {
  .design-work-grid--banners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .design-work-grid--dtp {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .design-work-grid--banners .design-work-card__image {
    padding: 8px;
  }

  .design-work-grid--dtp .design-work-card__image {
    padding: 10px;
  }
}

@media (max-width: 420px) {
  .design-work-grid--banners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Banner: five-column, image-only, no zoom */
.design-work-grid--banners {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.design-work-grid--banners .design-work-card__image {
  padding: 8px;
}

@media (max-width: 760px) {
  .design-work-grid--banners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .design-work-grid--banners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Nicospo: original illustrations */
.nicospo-illustrations { margin: 58px 0 72px; }
.nicospo-illustrations .design-detail__section-title { margin: 0 0 18px; font-size: 22px; }
.nicospo-illustrations__lead { margin: 0 0 28px; line-height: 1.9; }
.nicospo-illustrations__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nicospo-illustrations__grid figure { display: flex; align-items: center; justify-content: center; min-width: 0; aspect-ratio: 1.15; margin: 0; padding: 20px; border-radius: 6px; background: #eeebe8; }
.nicospo-illustrations__grid img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) { .nicospo-illustrations__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .nicospo-illustrations__grid figure { padding: 12px; } }




/* Continuous edge wave and content-led separation (no full-section color blocks) */
main { position: relative; isolation: isolate; }
/* One continuous, low-contrast ribbon. Never tile the wave vertically. */
.page-edge-wave {
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(130px, 18vw, 290px);
  background: url("../img/page-edge-wave.svg") left top / 100% 100% no-repeat;
  pointer-events: none;
  z-index: -1;
}
/* Keep every section on the same quiet canvas. */
.hero, .page, .portfolio-projects, .portfolio-profile,
.design-projects, .featured-project, .other-projects,
.skills, .about, .contact, .design-projects__visual-gallery {
  background: transparent !important;
  border-radius: 0 !important;
}
.portfolio-projects, .portfolio-profile { overflow: visible; }
.design-projects__visual-gallery { margin-top: 105px; padding-bottom: 20px; }
.design-projects__visual-gallery::before,
.design-projects__visual-gallery::after,
.other-projects::before { content: none !important; }
/* The single major transition: projects to personal introduction. */
.portfolio-profile {
  position: relative;
  margin-top: 112px;
  padding-top: 112px;
}
.portfolio-profile::before {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(720px, 62vw); height: 1px;
  background: linear-gradient(90deg, transparent, #c9b6cf 18%, #c9b6cf 82%, transparent);
}
.portfolio-profile::after {
  content: ""; position: absolute; top: -6px; left: 50%;
  width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
  background: #f3e2ed; border: 1px solid #c9b6cf;
}
.portfolio-choice__number { display: none; }
.section-label { gap: 0; }
@media (max-width: 760px) {
  .page-edge-wave { width: clamp(130px, 18vw, 290px); }
  .portfolio-profile { margin-top: 70px; padding-top: 80px; }
  .portfolio-profile::before { width: 68vw; }
  .design-projects__visual-gallery { margin-top: 72px; }
}

/* Wave tuned to reference: frequent, broad, smoothly connected crests */
.page-edge-wave { width: clamp(80px, 12vw, 180px); }
@media (max-width: 760px) { .page-edge-wave { width: clamp(52px, 13vw, 95px); } }

/* Restore original 75-second vertical wave flow; seamless 2800px repeat. */
.page-edge-wave {
  background-size: 100% 7000px;
  background-repeat: repeat-y;
  animation: page-edge-wave-scroll 75s linear infinite;
}
@keyframes page-edge-wave-scroll {
  from { background-position: left 0; }
  to { background-position: left 7000px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-edge-wave { animation: none; }
}


/* Header: page switch separated from anchor navigation */
.nav { gap: 22px; }
.nav__list { margin-left: auto; gap: clamp(12px, 2vw, 32px); }
.nav__list a { white-space: nowrap; }
.nav-view-switch {
  display: flex; flex: 0 0 auto; align-items: center; gap: 3px;
  padding: 4px; border-radius: 999px;
  background: #e9e5e6; border: 1px solid rgba(80,70,80,.08);
}
.nav-view-switch__button {
  border: 0; border-radius: 999px; background: transparent;
  color: #66616a; font: inherit; font-size: .8rem;
  padding: 7px 12px; cursor: pointer; white-space: nowrap;
}
.nav-view-switch__button[aria-pressed="true"] {
  background: #fff; color: #343039; font-weight: 600;
  box-shadow: 0 1px 5px rgba(50,40,50,.10);
}
.nav-view-switch__button:focus-visible { outline: 2px solid #786d91; outline-offset: 2px; }
#projects, #skills, #about { scroll-margin-top: 90px; }
@media (max-width: 980px) {
  .nav { flex-wrap: wrap; }
  .nav-view-switch { margin-left: auto; }
}
@media (max-width: 768px) {
  .header { padding: 12px 20px; }
  .nav { flex-wrap: nowrap; gap: 12px; }
  .site-title { margin-right: auto; }
  .nav-view-switch { order: 1; margin-left: 0; }
  .nav__toggle { order: 2; }
  .nav__list { top: calc(100% + 12px); }
  .nav-view-switch__button { font-size: .72rem; padding: 6px 9px; }
  #projects, #skills, #about { scroll-margin-top: 76px; }
}
@media (max-width: 390px) {
  .header { padding-inline: 12px; }
  .nav { gap: 7px; }
  .site-title { font-size: 1rem; }
  .nav-view-switch__button { padding: 6px 7px; font-size: .68rem; }
}

/* Back to top */
.back-to-top {
  position: fixed; right: clamp(16px, 3vw, 36px); bottom: clamp(20px, 4vw, 40px);
  z-index: 110; width: 48px; height: 48px; border: 1px solid #d9cbdc;
  border-radius: 50%; background: rgba(255,255,255,.94); color: #77627d;
  box-shadow: 0 4px 18px rgba(76,55,79,.12); font: inherit; font-size: 24px;
  cursor: pointer; transition: background .2s, transform .2s;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: #f5edf6; transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 3px solid #a78bb0; outline-offset: 3px; }
@media (max-width: 600px) { .back-to-top { width: 44px; height: 44px; right: 16px; bottom: 18px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
