@charset "UTF-8";

:root {
  --ink: #181818;
  --text: #2d2d2d;
  --muted: #77736c;
  --line: #ded9cf;
  --paper: #faf8f2;
  --paper-2: #f1eee6;
  --white: #ffffff;
  --accent: #8a7356;
  --deep: #2c332f;
  --container: min(1180px, calc(100vw - 64px));
  --hero-image:
    linear-gradient(90deg, rgba(24, 24, 24, 0.28), rgba(24, 24, 24, 0.03) 56%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.26) 0 1px, transparent 1px 92px),
    linear-gradient(135deg, #b9b2a4 0%, #d8d3c7 42%, #7f8f91 100%);
  --about-image:
    linear-gradient(90deg, rgba(24, 24, 24, 0.18), transparent 48%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0 18px, transparent 18px 36px),
    linear-gradient(135deg, #c3b89f, #e6e1d5 48%, #879796);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
}

body.is-menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px max(28px, calc((100vw - 1180px) / 2));
  background: rgba(250, 248, 242, 0.9);
  border-bottom: 1px solid rgba(222, 217, 207, 0.75);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.brand-sub {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.global-nav a {
  position: relative;
}

.global-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.2s ease;
}

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

.global-nav .nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
}

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

.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  padding: 64px max(28px, calc((100vw - 1180px) / 2)) 28px;
}

.hero::before {
  content: "TOKYO REFORM";
  position: absolute;
  left: max(18px, calc((100vw - 1310px) / 2));
  top: 120px;
  writing-mode: vertical-rl;
  color: rgba(24, 24, 24, 0.14);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 94px);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(460px, 1fr);
  align-items: center;
  gap: 54px;
  max-width: 1180px;
  min-height: calc(100svh - 166px);
  margin-inline: auto;
}

.section-kicker {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-en {
  margin: 14px 0 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.95;
}

h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(29px, 3.1vw, 48px);
  font-weight: 800;
  line-height: 1.35;
}

h2 {
  color: var(--ink);
  font-size: clamp(31px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.2;
}

h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.button-secondary {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.button-disabled {
  cursor: default;
  opacity: 0.86;
}

.button-primary:hover,
.button-secondary:hover:not(.button-disabled) {
  transform: translateY(-2px);
}

.button-secondary:hover:not(.button-disabled) {
  background: var(--ink);
  color: var(--white);
}

.hero-media {
  position: relative;
  min-height: 600px;
}

.hero-photo {
  position: absolute;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  border-radius: 2px;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), transparent 42%);
}

.hero-photo-main {
  inset: 0 0 0 10%;
  background-image: var(--hero-image);
  box-shadow: 0 30px 80px rgba(24, 24, 24, 0.14);
}

.section {
  width: var(--container);
  margin-inline: auto;
  padding: 116px 0;
}

.section-muted {
  width: 100%;
  padding-inline: max(32px, calc((100vw - 1180px) / 2));
  background: var(--paper-2);
}

.section-muted > * {
  max-width: 1180px;
  margin-inline: auto;
}

.section-head {
  margin-bottom: 52px;
}

.section-head .section-kicker {
  display: block;
  margin-bottom: 16px;
}

.section-head p {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-item {
  position: relative;
  min-height: 286px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.52);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-item:hover::before {
  opacity: 1;
}

.service-item > * {
  position: relative;
}

.service-number {
  display: block;
  margin-bottom: 56px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.service-item p,
.strength-list p,
.work-body p,
.contact-strip p {
  color: var(--muted);
}

.strength-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.strength-list article {
  display: grid;
  grid-template-columns: 96px minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 30px;
  padding: 42px 0;
  background: var(--paper-2);
}

.strength-list span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

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

.work-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.work-image {
  min-height: 360px;
  background-position: center;
  background-size: cover;
}

.roof-image {
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.08), transparent),
    repeating-linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0 12px, transparent 12px 26px),
    linear-gradient(135deg, #8fa0a1, #d9d3c6);
}

.interior-image {
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.08), transparent),
    var(--about-image);
}

.work-body {
  padding: 26px 28px 30px;
}

.work-body span {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.work-body h3 {
  margin-bottom: 10px;
}

.company-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
}

.company-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}

.company-table th {
  width: 190px;
  color: var(--accent);
  font-size: 13px;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  width: var(--container);
  margin: 84px auto;
  padding: 42px;
  background: var(--deep);
  color: var(--white);
}

.contact-strip .section-kicker,
.contact-strip p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-strip h2 {
  margin: 8px 0 12px;
  color: var(--white);
  font-size: clamp(28px, 3.4vw, 46px);
}

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

.contact-strip .button-secondary {
  border-color: var(--white);
  color: var(--white);
}

.contact-strip .button-secondary:hover:not(.button-disabled) {
  background: var(--white);
  color: var(--ink);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: var(--container);
  margin-inline: auto;
  padding: 46px 0 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  justify-self: end;
}

.site-footer small {
  grid-column: 1 / -1;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 94px max(28px, calc((100vw - 1180px) / 2)) 72px;
  background: var(--paper-2);
}

.page-hero h1 {
  max-width: 860px;
  margin: 16px 0;
  font-size: clamp(36px, 5vw, 70px);
}

.page-hero p {
  max-width: 780px;
  color: var(--muted);
}

.policy {
  max-width: 900px;
}

.policy h2 {
  margin: 46px 0 12px;
  font-size: 24px;
}

.policy ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.policy li {
  margin: 4px 0;
}

@media (max-width: 1100px) {
  :root {
    --container: min(960px, calc(100vw - 48px));
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    min-height: 560px;
  }

  .hero-photo-main {
    inset-left: 0;
  }

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

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

@media (max-width: 820px) {
  :root {
    --container: calc(100vw - 40px);
  }

  .site-header {
    min-height: 68px;
    padding: 12px 20px;
  }

  .is-menu-open .site-header {
    position: fixed;
    inset: 0;
    align-items: flex-start;
    height: 100dvh;
    background: rgba(250, 248, 242, 0.98);
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-sub {
    display: none;
  }

  .menu-button {
    position: relative;
    z-index: 32;
    display: block;
  }

  .menu-button span:not(.sr-only) {
    position: absolute;
    left: 11px;
    right: 11px;
    margin: 0;
  }

  .menu-button span:nth-child(1) {
    top: 14px;
  }

  .menu-button span:nth-child(2) {
    top: 21px;
  }

  .menu-button span:nth-child(3) {
    top: 28px;
  }

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

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

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

  .global-nav {
    position: absolute;
    inset: 0;
    z-index: 31;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 138px 26px 36px;
    background: rgba(250, 248, 242, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .global-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .global-nav a::after {
    display: none;
  }

  .global-nav .nav-contact {
    margin-top: 22px;
    border-bottom: 0;
  }

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

  .privacy-nav {
    display: none;
  }

  .hero {
    padding: 48px 20px 26px;
  }

  .hero::before {
    display: none;
  }

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

  .hero-photo-main {
    inset: 0;
  }

  .section {
    padding: 84px 0;
  }

  .section-muted {
    padding-inline: 20px;
  }

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

  .strength-list article {
    grid-template-columns: 54px 1fr;
    gap: 14px 20px;
  }

  .strength-list p {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  :root {
    --container: calc(100vw - 32px);
  }

  body {
    font-size: 15px;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero-en {
    font-size: clamp(42px, 15vw, 68px);
  }

  h1 {
    font-size: 29px;
  }

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

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .hero-media {
    min-height: 380px;
  }

  .service-item {
    min-height: auto;
    padding: 26px 22px;
  }

  .service-number {
    margin-bottom: 36px;
  }

  .strength-list article {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }

  .strength-list p {
    grid-column: auto;
  }

  .work-image {
    min-height: 250px;
  }

  .company-table {
    min-width: 0;
  }

  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .company-table td {
    padding-top: 0;
  }

  .contact-strip {
    width: calc(100vw - 32px);
    padding: 28px 20px;
  }
}
