:root {
  --ink: #282725;
  --muted: #75716b;
  --soft: #f6f4ef;
  --paper: #fbfaf7;
  --line: #282725;
  --beige: #d8d0c4;
  --shadow: 0 28px 80px rgba(56, 50, 43, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(208, 201, 190, 0.22), transparent 18rem),
    radial-gradient(circle at 86% 84%, rgba(214, 205, 192, 0.28), transparent 20rem),
    var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  letter-spacing: 0.08em;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(115deg, transparent 0 72%, rgba(180, 171, 158, 0.08) 72% 72.2%, transparent 72.2%),
    radial-gradient(circle, rgba(49, 47, 44, 0.08) 0 1px, transparent 1px);
  background-size: 100% 100%, 38px 38px;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 48px);
  width: 100%;
  min-height: 88px;
  padding: 28px 4.8vw 22px;
  background: linear-gradient(180deg, rgba(251, 250, 247, 0.9), rgba(251, 250, 247, 0));
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: lowercase;
}

.brand-mark::after {
  position: absolute;
  right: 0.2em;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: #282725;
}

.global-nav {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: clamp(26px, 4vw, 64px);
  font-size: 0.72rem;
  font-weight: 700;
}

.global-nav a {
  position: relative;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--line);
  transition: transform 180ms ease;
}

.global-nav a:hover::after,
.global-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(520px, 1fr);
  min-height: 740px;
  padding-top: 88px;
  overflow: hidden;
}

.side-copy {
  position: absolute;
  top: 150px;
  left: 30px;
  margin: 0;
  color: #a7a39d;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  bottom: 0;
  left: -60px;
  width: 260px;
  height: 170px;
  border-radius: 55% 45% 0 0;
  background:
    linear-gradient(152deg, rgba(174, 164, 151, 0.25), rgba(174, 164, 151, 0) 58%),
    radial-gradient(circle at 38% 46%, rgba(81, 77, 71, 0.18), transparent 2px);
  background-size: auto, 26px 26px;
  transform: rotate(7deg);
}

.hero::after {
  display: none;
  right: -70px;
  top: 94px;
  width: 255px;
  height: 440px;
  background: linear-gradient(104deg, rgba(128, 120, 111, 0.36), rgba(128, 120, 111, 0.12));
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 56% 91%, 70% 70%, 48% 54%, 60% 35%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  margin-left: clamp(44px, 13.2vw, 260px);
  padding: 72px 26px 72px 0;
}

.lead {
  margin: 0 0 24px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(0.9rem, 1.1vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1,
.large-serif,
.contact-section h2 {
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 6.8vw, 8.2rem);
  line-height: 0.92;
}

.short-line,
.section-line {
  display: block;
  width: 44px;
  height: 1px;
  margin: 38px 0 0;
  background: var(--line);
}

.hero-text {
  margin: 34px 0 48px;
  color: #47443f;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.08em;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.text-link span,
.work-meta a,
.section-head .compact span {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 1px;
  background: var(--line);
}

.text-link span::after,
.work-meta a::after,
.section-head .compact span::after {
  position: absolute;
  top: -4px;
  right: 0;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--line);
  content: "";
  transform: rotate(35deg);
}

.hero-visual {
  position: relative;
  min-height: 650px;
  margin-top: 0;
  overflow: hidden;
  background: #ebe6dc;
  box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.24);
}

.hero-visual::before {
  display: none;
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(74deg, transparent 0 58%, rgba(255, 255, 255, 0.28) 58.1% 100%),
    radial-gradient(circle at 20% 61%, rgba(73, 69, 63, 0.18), transparent 2px);
  background-size: 100% 100%, 44px 44px;
  mix-blend-mode: multiply;
}

.hero-flower {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}

.works-section,
.about-section,
.skills-section,
.contact-section {
  padding-inline: clamp(24px, 7vw, 132px);
}

.works-section {
  padding-top: 78px;
  padding-bottom: 92px;
  background: rgba(251, 250, 247, 0.82);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
}

.section-head > div,
.section-head.simple {
  display: flex;
  align-items: center;
  gap: 34px;
}

.section-head.simple {
  justify-content: flex-start;
  margin-bottom: 36px;
}

.section-head.simple .section-line,
.section-head > div .section-line {
  margin: 0;
}

.section-kicker {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}

.text-link.compact {
  border-bottom: 0;
}

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

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

.work-thumb {
  position: relative;
  display: grid;
  min-height: 292px;
  place-items: end center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.work-thumb::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 36%),
    radial-gradient(circle at 76% 14%, rgba(255, 255, 255, 0.55), transparent 12rem);
}

.photo-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #f5f2ec;
}

.photo-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.photo-thumb:hover img {
  transform: scale(1.035);
}

.tone-lumiere { background: linear-gradient(135deg, #c9c1b8, #ece8df); }
.tone-carefree { background: linear-gradient(135deg, #e7e2d8, #b6ad9e); }
.tone-restaurant { background: linear-gradient(135deg, #d9ded7, #f7f4ec); }
.tone-travel { background: linear-gradient(135deg, #f2efe7, #d2cabc); }

.laptop {
  position: relative;
  z-index: 1;
  width: min(76%, 310px);
  height: 158px;
  margin-bottom: 42px;
  border: 7px solid #242321;
  border-bottom-width: 11px;
  border-radius: 9px 9px 4px 4px;
  background: #191919;
  box-shadow: 0 24px 30px rgba(35, 31, 27, 0.26);
}

.laptop::after {
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 115%;
  height: 13px;
  border-radius: 0 0 48px 48px;
  content: "";
  background: linear-gradient(180deg, #d8d8d6, #9d9b98);
  transform: translateX(-50%);
}

.laptop.dark::after {
  background: linear-gradient(180deg, #262523, #171715);
}

.laptop.silver {
  border-color: #20201f;
}

.screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #eee8dd;
}

.site-preview {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  padding: 22px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.site-preview p {
  margin: 0;
}

.beauty {
  justify-items: center;
  align-items: end;
  color: #6f6258;
  background:
    radial-gradient(circle at 33% 28%, rgba(202, 148, 130, 0.75), transparent 3.4rem),
    linear-gradient(180deg, transparent 0 58%, #f8f5ef 58% 100%),
    linear-gradient(135deg, #d7d0c6, #f5f1e8);
}

.interior {
  color: #f8f3e9;
  background:
    linear-gradient(90deg, rgba(87, 78, 68, 0.9) 0 48%, transparent 48% 100%),
    linear-gradient(135deg, #aca091, #e4dbcf);
}

.restaurant {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(27, 48, 44, 0.96) 0 63%, #f0eee8 63% 100%),
    radial-gradient(circle at 41% 48%, #df9360, transparent 4.2rem);
}

.travel {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(31, 52, 74, 0.6), rgba(31, 52, 74, 0.18)),
    linear-gradient(180deg, #92a1ad 0 45%, #dfaf8c 45% 63%, #314559 63% 100%);
}

.work-category {
  margin: 22px 0 12px;
  color: #68645f;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.work-card h2 {
  min-height: 1.8em;
  margin: 0 0 12px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #55514c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.work-meta a {
  width: 42px;
}

.about-section,
.skills-section,
.contact-section {
  padding-top: 82px;
  padding-bottom: 82px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: start;
  max-width: 1100px;
}

.large-serif {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4.6rem);
  line-height: 1.18;
}

.about-layout p:last-child {
  margin: 0;
  color: #504c47;
  font-size: 0.95rem;
  line-height: 2.2;
}

.skills-section {
  background: rgba(239, 235, 228, 0.48);
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  min-height: 108px;
  display: grid;
  place-items: center;
  border-top: 1px solid rgba(40, 39, 37, 0.22);
  border-bottom: 1px solid rgba(40, 39, 37, 0.22);
  color: #34312d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.contact-section {
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
}

.contact-section h2 {
  margin: 24px 0 38px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1.1;
}

.contact-title {
  display: inline-block;
}

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

  .hero-copy {
    max-width: none;
    min-height: 570px;
    margin-left: clamp(32px, 11vw, 130px);
    padding-right: 32px;
  }

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

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

  .work-thumb {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  body {
    letter-spacing: 0.04em;
  }

  .site-header {
    position: absolute;
    align-items: flex-start;
    gap: clamp(12px, 3vw, 18px);
    min-height: auto;
    padding: 22px clamp(18px, 5vw, 24px);
  }

  .brand {
    gap: 0;
  }

  .brand-mark {
    font-size: 1.28rem;
    letter-spacing: 0.02em;
  }

  .global-nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    width: 230px;
    max-width: calc(100vw - 116px);
    justify-content: end;
    justify-items: end;
    gap: 10px clamp(9px, 2.4vw, 14px);
    font-size: 0.62rem;
  }

  .side-copy {
    display: none;
  }

  .hero {
    width: 100%;
    min-height: auto;
    padding-top: 82px;
    overflow: hidden;
  }

  .hero::after {
    width: 150px;
    height: 270px;
  }

  .hero-copy {
    min-height: auto;
    max-width: 100%;
    margin-left: 0;
    padding: 54px 24px 50px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.7rem, 18.2vw, 5.4rem);
    overflow-wrap: anywhere;
  }

  .lead {
    font-size: 0.84rem;
    line-height: 1.7;
  }

  .hero-text {
    max-width: 31em;
    font-size: 0.82rem;
    line-height: 1.9;
  }

  .hero-visual {
    width: 100%;
    min-height: clamp(300px, 80vw, 390px);
  }

  .works-section,
  .about-section,
  .skills-section,
  .contact-section {
    padding-inline: clamp(20px, 5.5vw, 24px);
  }

  .section-head {
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 28px;
  }

  .section-head > div,
  .section-head.simple {
    gap: 18px;
  }

  .text-link.compact {
    margin-top: -2px;
  }

  .works-grid,
  .about-layout,
  .skill-list {
    grid-template-columns: 1fr;
  }

  .work-thumb {
    min-height: 0;
  }

  .photo-thumb {
    aspect-ratio: 16 / 10;
  }

  .work-card h2 {
    overflow-wrap: break-word;
  }

  .laptop {
    width: min(80%, 300px);
  }

  .large-serif {
    font-size: 2.4rem;
  }

  .skill-list li {
    min-height: 72px;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 20px;
  }

  .global-nav {
    width: calc(100vw - 112px);
    max-width: calc(100vw - 112px);
  }

  .hero-copy {
    padding-inline: 24px 20px;
  }

  .section-head {
    gap: 16px;
  }

  .section-head > div,
  .section-head.simple {
    gap: 14px;
  }

  .text-link {
    gap: 16px;
  }
}
