@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@600;700;900&family=Oswald:wght@500;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #111820;
  --ink-soft: #243240;
  --muted: #6e7780;
  --line: #e0ded8;
  --paper: #f5f1e8;
  --paper-deep: #ebe3d3;
  --white: #ffffff;
  --black: #0d1217;
  --red: #b73129;
  --red-dark: #7f1f1a;
  --copper: #b9743b;
  --olive: #586550;
  --shadow: 0 22px 60px rgba(13, 18, 23, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(13, 18, 23, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 64px 64px;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  line-height: 1.75;
}

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

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.22;
}

h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 22px;
  align-items: center;
  padding: 12px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: rgba(13, 18, 23, 0.93);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--red), var(--copper));
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.25;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 28px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.nav a {
  position: relative;
  padding: 10px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--copper);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: 0.2s ease;
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-tel,
.contact-tel {
  display: grid;
  min-width: 184px;
  padding: 9px 15px;
  color: var(--white);
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  line-height: 1.22;
}

.header-tel span,
.contact-tel span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
}

.header-tel strong,
.contact-tel strong {
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  letter-spacing: 0.4px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-size: 22px;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, calc(100vh - 70px));
  align-items: center;
  padding: clamp(66px, 10vw, 126px) clamp(18px, 6vw, 78px);
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(0deg, var(--paper), rgba(245, 241, 232, 0));
  content: "";
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 18, 23, 0.94) 0%, rgba(13, 18, 23, 0.76) 46%, rgba(13, 18, 23, 0.28) 100%),
    url("assets/generated-painting-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-family: "Oswald", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.reason-panel .eyebrow,
.contact .eyebrow,
.page-hero .eyebrow {
  color: #f1b28a;
}

.lead {
  width: min(720px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
}

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

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  font-weight: 900;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(145deg, var(--red), var(--copper));
  border-color: transparent;
  box-shadow: 0 18px 32px rgba(127, 31, 26, 0.28);
}

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

.button.dark {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(660px, 100%);
  margin: 46px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
}

.trust-strip div {
  padding: 17px;
  background: rgba(13, 18, 23, 0.42);
}

.trust-strip dt {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.trust-strip dd {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
}

.section {
  padding: clamp(76px, 9vw, 126px) clamp(18px, 6vw, 78px);
}

.section-heading {
  max-width: 860px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 500;
}

.intro-copy p {
  margin: 0;
}

.symptoms,
.works,
.flow,
.faq {
  background: var(--white);
}

.symptom-grid,
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.symptom-grid article,
.flow-steps article {
  min-height: 224px;
  padding: 25px;
  background: linear-gradient(180deg, #ffffff, #f8f6f0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.symptom-grid span,
.service-card div p,
.flow-steps span {
  display: inline-grid;
  min-width: 38px;
  height: 34px;
  place-items: center;
  margin: 0 0 18px;
  color: var(--white);
  background: var(--black);
  border-radius: var(--radius);
  font-family: "Oswald", sans-serif;
  font-weight: 700;
}

.symptom-grid p,
.service-card > p,
.flow-steps p,
.reason-list span,
.area-copy,
.faq-list p,
.case-body p:not(.eyebrow),
.case-note p,
.work-detail > p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.service-layout {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 18px;
  margin-top: 36px;
}

.service-card {
  min-height: 238px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 13px 28px rgba(13, 18, 23, 0.06);
}

.service-card.featured {
  grid-row: span 3;
  min-height: 100%;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(13, 18, 23, 0.14), rgba(13, 18, 23, 0.82)),
    url("assets/generated-painting-tools.png");
  background-position: center;
  background-size: cover;
}

.service-card.featured > p {
  color: rgba(255, 255, 255, 0.86);
}

.section-action {
  margin-top: 32px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.case-card {
  display: grid;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(13, 18, 23, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.case-thumb {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: #dcd7cd;
}

.case-thumb.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.case-thumb span,
.case-gallery span,
.work-photos span {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 11px;
  color: var(--white);
  background: rgba(13, 18, 23, 0.78);
  border-radius: 999px;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.case-body {
  padding: 25px;
}

.case-body p:not(.eyebrow) {
  margin-bottom: 18px;
}

.case-body strong {
  color: var(--red);
}

.work-feature {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  margin-top: 36px;
}

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

.work-photos figure {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  background: #dcd7cd;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(13, 18, 23, 0.08);
}

.work-photos img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.work-detail,
.case-note {
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(13, 18, 23, 0.06);
}

.work-detail dl,
.case-note dl {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.work-detail dl div,
.case-note dl div {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.work-detail dt,
.case-note dt {
  color: var(--muted);
  font-size: 13px;
}

.work-detail dd,
.case-note dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.reason {
  background:
    linear-gradient(90deg, rgba(13, 18, 23, 0.95), rgba(13, 18, 23, 0.76)),
    url("assets/generated-painting-tools.png");
  background-position: center;
  background-size: cover;
}

.reason-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 72px);
  color: var(--white);
}

.reason-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: reason;
}

.reason-list li {
  position: relative;
  min-height: 116px;
  padding: 22px 22px 22px 74px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.reason-list li::before {
  position: absolute;
  top: 20px;
  left: 22px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--copper);
  border-radius: var(--radius);
  content: counter(reason);
  counter-increment: reason;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
}

.reason-list strong {
  display: block;
  font-size: 19px;
}

.reason-list span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
}

.area-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  margin-top: 36px;
}

.area-map {
  position: relative;
  display: grid;
  min-height: 370px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(13, 18, 23, 0.91), rgba(88, 101, 80, 0.83)),
    url("assets/generated-painted-house.png");
  background-position: center;
  background-size: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.area-map::before,
.area-map::after {
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  content: "";
}

.area-map::before {
  transform: translate(-84px, -42px);
}

.area-map::after {
  transform: translate(88px, 56px);
}

.area-map strong {
  position: relative;
  z-index: 1;
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  background: linear-gradient(145deg, var(--red), var(--copper));
  border: 8px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
}

.area-map span {
  position: absolute;
  z-index: 1;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 900;
}

.area-map span:first-child {
  top: 72px;
  left: 46px;
}

.area-map span:last-child {
  right: 42px;
  bottom: 74px;
}

.area-copy p {
  margin-top: 0;
  font-size: 17px;
  font-weight: 500;
}

.area-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.area-copy li {
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 960px;
  margin-top: 36px;
}

.faq-list details {
  background: linear-gradient(180deg, #ffffff, #f8f6f0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

.faq-list p {
  padding: 0 20px 20px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding: clamp(76px, 9vw, 126px) clamp(18px, 6vw, 78px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(127, 31, 26, 0.96), rgba(13, 18, 23, 0.96)),
    url("assets/generated-painted-house.png");
  background-position: center;
  background-size: cover;
}

.contact p {
  color: rgba(255, 255, 255, 0.84);
}

.contact-tel {
  display: inline-grid;
  margin-top: 20px;
}

.map-link {
  display: inline-flex;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  min-height: 52px;
  color: var(--white);
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--muted) !important;
  font-size: 12px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--red) !important;
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 560px);
  gap: 30px;
  padding: 36px clamp(18px, 6vw, 78px);
  color: #d8d5cd;
  background: var(--black);
}

.site-footer strong {
  color: var(--white);
  font-family: "Noto Serif JP", serif;
  font-size: 23px;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.site-footer dl div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.site-footer dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.page-hero {
  padding: clamp(82px, 10vw, 138px) clamp(18px, 6vw, 78px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 18, 23, 0.94), rgba(13, 18, 23, 0.62)),
    url("assets/generated-painting-hero.png");
  background-position: center;
  background-size: cover;
}

.page-hero p:not(.eyebrow) {
  width: min(740px, 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.case-section.alt {
  background: var(--white);
}

.case-head {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.case-detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.case-gallery {
  display: grid;
  gap: 14px;
}

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

.case-gallery.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-gallery figure {
  position: relative;
  min-height: 440px;
  margin: 0;
  overflow: hidden;
  background: #dcd7cd;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(13, 18, 23, 0.08);
}

.case-gallery img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.case-section.alt .case-note {
  background: var(--paper);
}

.case-note.wide {
  margin-top: 22px;
}

.compact-contact {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav,
  .header-tel {
    display: none;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .site-header.is-open .nav {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .site-header.is-open .nav a {
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .intro,
  .service-layout,
  .case-grid,
  .work-feature,
  .reason-panel,
  .area-layout,
  .contact,
  .site-footer,
  .case-detail-layout {
    grid-template-columns: 1fr;
  }

  .case-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .symptom-grid,
  .case-gallery.three,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card.featured {
    grid-row: auto;
    min-height: 360px;
  }

  .work-photos figure,
  .work-photos img {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 730px;
    padding: 62px 18px 80px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(13, 18, 23, 0.96) 0%, rgba(13, 18, 23, 0.78) 60%, rgba(13, 18, 23, 0.4) 100%),
      url("assets/generated-painting-hero.png");
    background-position: center;
    background-size: cover;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions {
    display: grid;
  }

  .trust-strip,
  .symptom-grid,
  .case-grid,
  .case-gallery.two,
  .case-gallery.three,
  .work-photos,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }

  .symptom-grid article,
  .flow-steps article {
    min-height: 0;
  }

  .area-map {
    min-height: 310px;
  }

  .area-map span:first-child {
    top: 46px;
    left: 20px;
  }

  .area-map span:last-child {
    right: 20px;
    bottom: 48px;
  }

  .work-photos figure,
  .work-photos img,
  .case-gallery figure,
  .case-gallery img {
    min-height: 320px;
  }

  .site-footer dl div,
  .work-detail dl div,
  .case-note dl div {
    display: grid;
    gap: 3px;
  }

  .site-footer dd,
  .work-detail dd,
  .case-note dd {
    text-align: left;
  }
}
