:root {
  --green-950: #0d2922;
  --green-900: #173f35;
  --green-800: #205447;
  --green-100: #e5eee9;
  --cream: #f4f0e7;
  --paper: #fffdf8;
  --ink: #202a27;
  --muted: #66716d;
  --gold: #c99a52;
  --line: #d9dedb;
  --shadow: 0 18px 50px rgba(13, 41, 34, 0.12);
  --radius: 4px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

.section {
  padding: 104px 0;
}

.section-tint {
  background: var(--cream);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  color: #fff;
  background: var(--green-900);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--green-950);
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(23, 63, 53, 0.12);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), 1220px);
  min-height: 78px;
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--green-900);
  border-radius: 50%;
  place-items: center;
  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: 22px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.global-nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  color: var(--green-800);
}

.global-nav .nav-contact {
  padding: 10px 18px;
  color: #fff;
  background: var(--green-900);
}

.global-nav .nav-contact:hover,
.global-nav .nav-contact:focus-visible {
  color: #fff;
  background: var(--green-800);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
}

.menu-button > span:not(.visually-hidden) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--green-950);
  transition: transform 0.2s, opacity 0.2s;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(780px, calc(100vh - 78px));
  color: #fff;
  overflow: hidden;
  place-items: center;
}

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

.hero-image {
  background: url("assets/images/craftsman.jpg") center 43% / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 27, 22, 0.92) 0%, rgba(7, 27, 22, 0.72) 48%, rgba(7, 27, 22, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 27, 22, 0.45), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 70px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--green-800);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-left: 2px solid var(--gold);
}

.hero h1 {
  max-width: 1040px;
  margin: 0;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-shadow: 0 3px 25px rgba(0, 0, 0, 0.22);
}

.hero h1 > .hero-line {
  display: block;
  color: #f0d4a4;
}

.hero h1 > .hero-line-primary {
  color: #fff;
}

.no-break {
  color: inherit;
  white-space: nowrap;
}

.hero-lead {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 2;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 26px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

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

.button-primary {
  color: var(--green-950);
  background: #fff;
}

.button-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.button-light:hover {
  color: var(--green-950);
  background: #fff;
}

.hero-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.price-intro h2,
.about-copy h2,
.contact-inner h2 {
  margin: 0;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.intro-copy {
  padding-top: 28px;
  color: #4b5753;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading > p:not(.section-kicker):not(.section-notice) {
  margin: 15px 0 0;
  color: var(--muted);
}

.section-heading .section-notice {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 14px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 13px;
  font-weight: 700;
}

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

.service-card {
  position: relative;
  min-height: 280px;
  padding: 40px;
  background: var(--paper);
  border: 1px solid rgba(23, 63, 53, 0.12);
  overflow: hidden;
}

.service-card::after {
  position: absolute;
  right: -25px;
  bottom: -45px;
  width: 140px;
  height: 140px;
  content: "";
  border: 1px solid rgba(23, 63, 53, 0.09);
  border-radius: 50%;
}

.service-number {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.service-card h3,
.reason-grid h3,
.flow-list h3 {
  margin: 14px 0 10px;
  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: 24px;
}

.service-card p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
}

.service-card .service-price {
  margin-top: 22px;
  color: var(--green-900);
  font-weight: 700;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px 24px;
}

.work-card {
  background: #fff;
  box-shadow: var(--shadow);
}

.comparison {
  --position: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #d7ddd9;
  overflow: hidden;
}

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

.comparison-before {
  position: absolute;
  inset: 0;
}

.comparison-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.comparison-after img {
  width: 100%;
}

.comparison input {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.comparison-line {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

.comparison-handle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: var(--position);
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--green-950);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  place-items: center;
  pointer-events: none;
}

.photo-label {
  position: absolute;
  z-index: 2;
  top: 14px;
  padding: 3px 10px;
  color: #fff;
  background: rgba(13, 41, 34, 0.76);
  font-size: 12px;
}

.label-before {
  right: 14px;
}

.label-after {
  left: 14px;
}

.work-copy {
  padding: 22px 26px 26px;
}

.work-copy p {
  margin: 0 0 4px;
  color: var(--green-800);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.work-copy h3 {
  margin: 0;
  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: 22px;
}

.price-section {
  color: #fff;
  background: var(--green-950);
}

.price-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.section-kicker-light {
  color: #e3bd7d;
}

.price-intro {
  position: sticky;
  top: 120px;
}

.price-intro > p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.72);
}

.text-link {
  display: inline-flex;
  gap: 18px;
  margin-top: 20px;
  font-weight: 700;
  text-decoration: none;
}

.light-link {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.price-list {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.price-row strong {
  color: #f3d59f;
  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: 20px;
  white-space: nowrap;
}

.price-row small {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.featured-price {
  margin-top: 18px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.price-note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

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

.reason-grid article {
  padding: 34px;
  background: var(--paper);
  border-top: 3px solid var(--green-800);
}

.reason-grid article > span {
  color: var(--gold);
  font-family: Georgia, serif;
}

.reason-grid p {
  color: var(--muted);
}

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

.flow-list li {
  position: relative;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.flow-list li:last-child {
  border-right: 1px solid var(--line);
}

.flow-list li > span {
  display: grid;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--green-900);
  border-radius: 50%;
  place-items: center;
  font-family: Georgia, serif;
}

.flow-list h3 {
  min-height: 72px;
  font-size: 19px;
}

.flow-list p {
  color: var(--muted);
  font-size: 14px;
}

.flow-notice {
  margin: 34px 0 0;
  padding: 18px 22px;
  color: var(--green-900);
  background: var(--green-100);
  border-left: 3px solid var(--green-800);
  font-weight: 700;
}

.about-section {
  padding-bottom: 0;
  background: linear-gradient(to bottom, var(--paper) 0 58%, var(--cream) 58%);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
  padding-bottom: 104px;
}

.about-photo {
  position: relative;
}

.about-photo::before {
  position: absolute;
  z-index: 0;
  inset: -18px 18px 18px -18px;
  content: "";
  border: 1px solid var(--gold);
}

.about-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-copy > p:not(.section-kicker) {
  color: var(--muted);
}

.about-copy .representative {
  margin: 18px 0 20px;
  color: var(--green-900);
  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: 19px;
  font-weight: 700;
}

.qualifications {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.qualifications p {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #cfd7d2;
}

.qualifications strong {
  color: var(--green-900);
}

.qualifications span {
  color: var(--muted);
  font-size: 14px;
}

.contact-section {
  padding: 100px 0;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(13, 41, 34, 0.95), rgba(13, 41, 34, 0.95)),
    url("assets/images/craftsman.jpg") center / cover;
}

.contact-inner > p:not(.section-kicker):not(.area):not(.contact-note) {
  color: rgba(255, 255, 255, 0.72);
}

.contact-inner .contact-note {
  max-width: 720px;
  margin: 20px auto 0;
  padding: 12px 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

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

.contact-card {
  display: flex;
  min-height: 170px;
  padding: 26px 18px;
  color: var(--green-950);
  background: #fff;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.contact-card:hover,
.contact-card:focus-visible {
  background: #f7eddb;
  transform: translateY(-4px);
}

.contact-card > span {
  color: var(--green-800);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.contact-card strong {
  margin: 8px 0;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(17px, 2vw, 22px);
}

.contact-card small {
  color: var(--muted);
}

.area {
  margin: 28px 0 0;
  font-weight: 700;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #071c17;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: #fff;
  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: 19px;
}

.footer-brand span {
  font-size: 11px;
}

.mobile-contact {
  display: none;
}

@media (max-width: 960px) {
  .global-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 20px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  .global-nav.is-open {
    transform: translateY(0);
  }

  .global-nav a {
    padding: 13px 8px;
    border-bottom: 1px solid var(--line);
  }

  .global-nav .nav-contact {
    margin-top: 12px;
    text-align: center;
    border: 0;
  }

  .menu-button {
    display: block;
  }

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

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

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

  .intro-grid,
  .price-layout,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .price-intro {
    position: static;
  }

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

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

  .flow-list li,
  .flow-list li:last-child {
    display: grid;
    grid-template-columns: 52px 1fr;
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-list h3 {
    min-height: auto;
    margin-top: 2px;
  }

  .flow-list p {
    margin-bottom: 0;
  }

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

@media (max-width: 680px) {
  body {
    padding-bottom: 62px;
    font-size: 15px;
  }

  .container,
  .header-inner {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    font-size: 19px;
  }

  .brand strong {
    font-size: 17px;
  }

  .global-nav {
    inset: 68px 0 auto;
  }

  .hero {
    min-height: 660px;
    align-items: end;
  }

  .hero-image {
    background-position: 42% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(7, 27, 22, 0.96) 0%, rgba(7, 27, 22, 0.78) 56%, rgba(7, 27, 22, 0.26) 100%);
  }

  .hero-content {
    padding: 160px 0 54px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.2vw, 40px);
    letter-spacing: 0.01em;
  }

  .hero h1 > .hero-line-primary {
    white-space: nowrap;
  }

  .hero-lead br {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .intro-grid {
    gap: 20px;
  }

  .intro-copy {
    padding-top: 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

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

  .service-card {
    min-height: auto;
    padding: 28px;
  }

  .works-grid {
    gap: 24px;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .price-row strong {
    font-size: 19px;
  }

  .about-section {
    background: var(--cream);
  }

  .about-grid {
    padding-bottom: 72px;
  }

  .about-photo::before {
    inset: -10px 10px 10px -10px;
  }

  .qualifications p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-section {
    padding: 72px 0;
  }

  .contact-card {
    min-height: 145px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-contact {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 62px;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--green-950);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  }

  .mobile-contact a {
    display: grid;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    place-items: center;
  }

  .mobile-contact a + a {
    background: var(--green-800);
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
