:root {
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #66615b;
  --line: #e5e1da;
  --soft: #f6f5f2;
  --accent: #c8b89a;
  --accent-dark: #8f7c5f;
  --shadow: 0 20px 60px rgba(26, 26, 26, 0.08);
  --serif: "Cormorant Garamond", serif;
  --sans: "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.logo {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  content: "";
  background: var(--ink);
  transition: width 0.25s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-button.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  padding: 104px 5vw;
}

.section-heading {
  max-width: 840px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
}

h1 {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
}

.about .section-heading h2,
.works .section-heading h2,
.creative .section-heading h2,
.service .section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  white-space: nowrap;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  line-height: 1.35;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 76px;
  background: linear-gradient(180deg, #fff 0%, #fbfaf8 100%);
  overflow: hidden;
}

.hero-lead {
  max-width: 570px;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: transparent;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.floating-shot {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform-origin: center;
}

.floating-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.shot-a {
  top: 86px;
  left: 2%;
  z-index: 1;
  width: 48%;
  height: 430px;
  transform: rotate(-7deg);
}

.shot-b {
  top: 32px;
  left: 26%;
  z-index: 2;
  width: 50%;
  height: 500px;
  transform: rotate(2deg);
}

.shot-c {
  right: 0;
  bottom: 52px;
  z-index: 3;
  width: 45%;
  height: 390px;
  transform: rotate(7deg);
}

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 720px);
  gap: 56px;
  align-items: center;
  justify-content: center;
}

.about-photo {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body {
  color: var(--muted);
}

.skill-list {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
}

.skill-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.skill-list dt {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.skill-list dd {
  margin: 0;
}

.works {
  background: var(--soft);
}

.featured-works {
  display: grid;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.work-feature {
  display: block;
  padding: 56px 42px;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: none;
}

.work-feature:last-child {
  border-bottom: 1px solid var(--line);
}

.work-meta {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-weight: 700;
}

.summary {
  color: var(--ink);
  font-weight: 700;
}

.work-copy p:not(.work-meta):not(.summary) {
  color: var(--muted);
}

.work-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

.mock-group,
.full-preview {
  display: block;
  min-width: 0;
  background: transparent;
  background-color: transparent;
  transition: opacity 0.25s ease;
}

.mock-group:hover,
.full-preview:hover {
  opacity: 0.9;
}

.mock-group img,
.full-preview img {
  width: 100%;
  height: auto;
  background: transparent;
  background-color: transparent;
  object-fit: contain;
}

.mock-single {
  justify-self: center;
  width: 100%;
}

.mock-sp-large {
  max-width: 360px;
  background: transparent;
  background-color: transparent;
}

.mock-sp-large img {
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(44, 44, 44, 0.16));
}

.mock-pc-large {
  max-width: 620px;
}

.mock-stack {
  position: relative;
  display: block;
  align-self: end;
  padding: 0 16% 12% 0;
  background: transparent;
  background-color: transparent;
}

.mock-stack .sp-mock {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(36%, 190px);
  height: 285px;
  background: transparent;
  background-color: transparent;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(44, 44, 44, 0.16));
  transform: translate(-20%, 10%);
}

.full-preview {
  max-height: 500px;
  overflow-y: scroll;
  scrollbar-width: thin;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.full-preview::-webkit-scrollbar {
  width: 6px;
}

.full-preview::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.design-process {
  margin: 0 0 28px;
}

.design-process p {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}

.process-camps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.process-camps .camp-img {
  width: min(170px, calc(50% - 6px));
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: zoom-in;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.text-link::after {
  content: "->";
}

.ai-portfolio-link .text-link::after {
  content: "→";
}

.compact-works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 86px auto 0;
}

.compact-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-img-wrap {
  overflow: hidden;
  height: 200px;
  border-radius: 5px 5px 0 0;
  background: var(--soft);
}

.card-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: unset;
  object-fit: cover;
  object-position: top;
  transition: transform 4s ease;
  transform: translateY(0);
}

.compact-card:hover .card-img-wrap img {
  transform: translateY(calc(-100% + 200px));
}

.card-body {
  display: grid;
  gap: 6px;
  padding: 14px 16px 16px;
}

.card-title {
  overflow: hidden;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-genre {
  color: var(--muted);
  font-size: 0.82rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.card-tags span {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.creative {
  background: var(--white);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}

.tab-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.tab-content {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.tab-content.active {
  display: grid;
}

.tab-content img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
}

#tab-banner img {
  width: 100%;
  aspect-ratio: 1200 / 628;
  object-fit: contain;
  background: #f5f5f5;
}

#tab-yahoo img,
#tab-sns img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

#tab-ebook img:first-child {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.service {
  background: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-grid article {
  min-height: 230px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.04);
}

.service-grid span {
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.service-grid h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}

.service-grid p {
  color: var(--muted);
  font-size: 0.94rem;
}

.ai-portfolio-link {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.ai-portfolio-link p {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.contact {
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
}

.contact .eyebrow {
  color: var(--accent);
}

.contact h2 {
  margin-bottom: 6px;
}

.contact-tools {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 28px 0 34px;
}

.contact-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #d9d4ca;
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-tool img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.contact .button.primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.site-footer {
  padding: 28px 5vw;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.86);
  cursor: zoom-out;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 1023px) {
  .section {
    padding: 82px 5vw;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .about-grid,
  .work-media {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .compact-works,
  .tab-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .site-header {
    min-height: 64px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 5vw;
    display: grid;
    width: min(260px, 90vw);
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px;
  }

  .section {
    padding: 68px 5vw;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .about .section-heading h2,
  .works .section-heading h2,
  .creative .section-heading h2,
  .service .section-heading h2 {
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }

  .hero {
    padding-top: 54px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .shot-a {
    top: 60px;
    left: -2%;
    width: 58%;
    height: 300px;
  }

  .shot-b {
    top: 30px;
    left: 22%;
    width: 58%;
    height: 330px;
  }

  .shot-c {
    right: -2%;
    bottom: 34px;
    width: 54%;
    height: 270px;
  }

  .skill-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .work-feature {
    gap: 28px;
    padding: 20px;
  }

  .mock-sp-large {
    max-width: 280px;
  }

  .mock-stack .sp-mock {
    width: min(40%, 150px);
    height: 225px;
  }

  .compact-works,
  .tab-content,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    flex: 1 1 calc(50% - 10px);
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .contact-tools {
    gap: 24px;
  }
}
