:root {
  --bg: #151411;
  --bg-2: #211e19;
  --paper: #f4efe4;
  --paper-deep: #e7ddcc;
  --panel: rgba(244, 239, 228, 0.08);
  --panel-strong: rgba(244, 239, 228, 0.14);
  --line: rgba(244, 239, 228, 0.22);
  --ink: #f8f1e4;
  --muted: #cfc4b2;
  --dim: #8d8374;
  --accent: #b98b52;
  --accent-deep: #6f4b2d;
  --moss: #68725a;
  --white: #ffffff;
  --black: #0f0e0c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

.scroll-progress {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--paper));
  transform: scaleX(0);
  transform-origin: left;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: clamp(14px, 3vw, 36px);
  right: clamp(14px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 12px 18px;
  background: rgba(21, 20, 17, 0.82);
  border: 1px solid var(--line);
  border-radius: 0;
  backdrop-filter: blur(18px);
  transition: background 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(15, 14, 12, 0.94);
  border-color: rgba(244, 239, 228, 0.32);
  transform: translateY(-4px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
}

.brand img {
  width: 58px;
  flex: 0 0 auto;
  filter: invert(1);
}

.brand span {
  color: var(--white);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  color: rgba(245, 247, 242, 0.86);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nav a {
  white-space: nowrap;
}

.nav-contact {
  padding: 10px 18px;
  color: var(--white);
  background: var(--accent-deep);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(22px, 6vw, 88px) 72px;
  background: var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, var(--bg), transparent);
  pointer-events: none;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08) brightness(0.82);
  transform: scale(1.02);
  transition: transform 120ms linear;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 16, 13, 0.92) 0%, rgba(18, 16, 13, 0.66) 46%, rgba(18, 16, 13, 0.12) 100%),
    linear-gradient(0deg, rgba(18, 16, 13, 0.78), rgba(18, 16, 13, 0.04) 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(840px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(46px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.12;
}

.lead {
  width: min(680px, 100%);
  margin: 28px 0 0;
  color: rgba(245, 247, 242, 0.84);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span {
  padding: 8px 12px;
  color: rgba(245, 247, 242, 0.86);
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 950;
}

.button.primary {
  color: var(--white);
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 6vw, 88px);
  bottom: clamp(28px, 7vw, 92px);
  width: min(300px, 28vw);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(21, 20, 17, 0.62);
  backdrop-filter: blur(12px);
}

.hero-panel span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.hero-panel strong {
  display: block;
  margin-top: 14px;
  color: var(--white);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 0.98;
}

.intro,
.works,
.company,
.planner,
.contact {
  padding: clamp(76px, 10vw, 136px) clamp(22px, 6vw, 88px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  margin-bottom: 42px;
}

h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(32px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.25;
}

h3,
p {
  margin-top: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-grid article {
  min-height: 260px;
  padding: 28px;
  background: linear-gradient(145deg, var(--panel-strong), rgba(244, 239, 228, 0.045));
  border: 1px solid var(--line);
  border-radius: 0;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.service-grid article:hover,
.works-list article:hover {
  transform: translateY(-6px);
  background: rgba(244, 239, 228, 0.13);
  border-color: rgba(185, 139, 82, 0.5);
}

.service-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(185, 139, 82, 0.55);
  border-radius: 0;
  font-weight: 950;
}

.service-grid h3 {
  margin: 34px 0 12px;
  color: var(--white);
  font-size: 25px;
}

.service-grid p,
.works-copy p,
.company dd,
.contact {
  color: var(--muted);
}

.works {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(30px, 7vw, 92px);
  background:
    linear-gradient(90deg, rgba(244, 239, 228, 0.035), transparent 46%),
    var(--bg-2);
}

.works-copy p {
  margin: 24px 0 0;
}

.works-list {
  display: grid;
  gap: 12px;
}

.works-list article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 112px;
  padding: 28px;
  background: rgba(244, 239, 228, 0.075);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.works-list img {
  width: 170px;
  height: 104px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.works-list strong {
  color: var(--white);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  word-break: keep-all;
}

.works-list span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  text-align: left;
  word-break: keep-all;
}

.company {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 7vw, 96px);
  background:
    linear-gradient(135deg, rgba(185, 139, 82, 0.1), transparent 34%),
    #1c1a16;
}

.planner {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(340px, 1.14fr);
  gap: clamp(28px, 7vw, 92px);
  background:
    linear-gradient(135deg, rgba(104, 114, 90, 0.15), transparent 34%),
    var(--bg);
}

.planner-copy p {
  color: var(--muted);
}

.planner-panel {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  border-radius: 0;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-group p,
.memo-label {
  flex: 0 0 100%;
  margin: 0 0 2px;
  color: var(--white);
  font-weight: 950;
}

.choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
}

.choice-group input {
  accent-color: var(--accent);
}

textarea {
  width: 100%;
  resize: vertical;
  padding: 14px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

textarea::placeholder {
  color: var(--dim);
}

#message-preview {
  display: block;
  min-height: 132px;
  padding: 16px;
  color: var(--muted);
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--white);
  font-weight: 950;
}

dd {
  margin: 0;
}

.contact {
  text-align: center;
  background: var(--black);
}

.contact h2 {
  color: var(--white);
}

.contact .button {
  margin-top: 28px;
}

.site-footer {
  padding: 24px clamp(22px, 6vw, 88px);
  color: var(--dim);
  background: var(--black);
  border-top: 1px solid var(--line);
}

.site-footer small {
  font-size: 12px;
}

.page-hero {
  padding: 150px clamp(22px, 6vw, 88px) clamp(72px, 9vw, 120px);
  background:
    linear-gradient(135deg, rgba(185, 139, 82, 0.14), transparent 36%),
    var(--bg);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(42px, 6.8vw, 88px);
  font-weight: 700;
  line-height: 1.16;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
}

.greeting-section,
.staff-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 7vw, 92px);
  padding: clamp(76px, 10vw, 136px) clamp(22px, 6vw, 88px);
  background: var(--bg-2);
}

.greeting-photo {
  margin: 0;
  min-height: 540px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.greeting-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: saturate(0.85) contrast(1.04) brightness(0.9);
}

.greeting-message,
.staff-card {
  align-self: center;
}

.greeting-message h2,
.staff-card h2 {
  margin: 0 0 24px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 700;
}

.greeting-message p,
.staff-card p,
.staff-values p {
  color: var(--muted);
}

.staff-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  grid-column: 1 / -1;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(244, 239, 228, 0.075);
  border: 1px solid var(--line);
}

.staff-photo {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}

.staff-photo img {
  width: 130px;
  filter: invert(1);
  opacity: 0.82;
}

.staff-values {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.staff-values article {
  padding: 28px;
  background: rgba(244, 239, 228, 0.075);
  border: 1px solid var(--line);
}

.staff-values span {
  color: var(--accent);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 28px;
}

.staff-values h3 {
  margin: 22px 0 10px;
  color: var(--white);
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    top: 12px;
    align-items: center;
  }

  .brand {
    min-width: 138px;
  }

  .brand img {
    width: 50px;
  }

  .brand span {
    font-size: 20px;
  }

  .nav {
    gap: 12px;
    font-size: 11px;
  }

  .nav a:not(.nav-contact) {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-top: 120px;
  }

  .hero-panel {
    display: none;
  }

  .section-heading,
  .works,
  .company,
  .planner,
  .greeting-section,
  .staff-section {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .works-list article,
  dl div {
    grid-template-columns: 1fr;
  }

  .works-list span {
    text-align: left;
  }

  .works-list img {
    width: 100%;
    height: 190px;
  }

  .greeting-photo {
    min-height: 420px;
  }

  .staff-card,
  .staff-values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 52px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
