:root {
  --ink: #1c1c1c;
  --text: #36322d;
  --muted: #706a63;
  --line: #dfd9d1;
  --paper: #ffffff;
  --soft: #f7f4ef;
  --brand: #9f1f2f;
  --brand-dark: #761724;
  --green: #285a4b;
  --gold: #b88a3b;
  --shadow: 0 18px 50px rgba(26, 22, 18, 0.08);
  --header: 108px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
dt,
dd,
a,
button {
  overflow-wrap: anywhere;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 217, 209, 0.9);
  backdrop-filter: blur(14px);
}

.lang-strip {
  min-height: 38px;
  background: var(--ink);
  display: flex;
  justify-content: center;
}

.lang-buttons {
  width: min(1180px, 100%);
  padding: 5px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.lang-buttons button {
  min-width: 84px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  cursor: pointer;
}

.lang-buttons button[aria-pressed="true"],
.lang-buttons button:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  width: min(1180px, 100%);
  height: 70px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 172px;
  text-decoration: none;
}

.brand img {
  width: 180px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.site-nav a {
  min-height: 42px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.site-nav .nav-cta {
  margin-left: 8px;
  padding: 10px 18px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 4px;
}

.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--brand-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  min-height: clamp(540px, calc(76vh - var(--header)), 680px);
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  grid-template-rows: 1fr auto;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: 82px 7vw 62px max(24px, calc((100vw - 1180px) / 2 + 24px));
  align-self: center;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: 56px;
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero h1 span {
  color: var(--brand);
}

.hero-subtitle {
  margin: 0 0 24px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-style: italic;
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 34px;
  color: var(--text);
}

.btn {
  min-height: 48px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--brand-dark);
}

.hero-media {
  align-self: center;
  height: min(560px, calc(100% - 96px));
  min-height: 360px;
  margin: 48px max(24px, calc((100vw - 1520px) / 2 + 24px)) 48px 0;
  background: var(--ink);
  border-radius: 6px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-facts {
  grid-column: 1 / -1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.fact {
  min-height: 108px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
}

.fact b {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 13px;
}

.fact span {
  display: block;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.55;
}

.section {
  padding: 84px 24px;
}

.section-soft {
  background: var(--soft);
}

.section-head,
.split-head,
.about-layout,
.message-list,
.service-grid,
.case-list,
.company-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-head.wide {
  max-width: 920px;
}

.section h2,
.contact-section h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: 40px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: 0;
}

.section-head p:last-child,
.split-head > p {
  margin: 0;
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 54px;
  align-items: start;
}

.rich-text p {
  margin: 0 0 20px;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

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

.value-item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 6px;
}

.value-item small {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-weight: 700;
}

.value-item h3,
.service-card h3,
.info-panel h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.value-item p,
.service-card p,
.case-item p,
.message-body p {
  margin: 0;
}

.message-list {
  display: grid;
  gap: 24px;
}

.message-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.message-side {
  padding: 24px;
  background: #fbfaf7;
  border-right: 1px solid var(--line);
}

.message-card-no-image {
  grid-template-columns: 220px minmax(0, 1fr);
}

.message-card-no-image .message-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 244, 239, 0.92)),
    var(--soft);
}

.message-card-no-image .message-side::before {
  content: "";
  width: 44px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--brand);
}

.message-card-no-image .message-body {
  padding-top: 40px;
  padding-bottom: 40px;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e8e1d8;
  color: var(--green);
  border: 1px solid var(--line);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait span {
  padding: 12px;
  text-align: center;
  font-weight: 700;
}

.message-side h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.message-role {
  margin: 0;
  color: var(--brand);
  font-weight: 700;
}

.message-company {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.message-body {
  padding: 30px 34px;
}

.quote {
  margin: 0 0 18px;
  padding-bottom: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: 24px;
  line-height: 1.48;
}

.message-body p + p {
  margin-top: 16px;
}

.signature {
  margin-top: 18px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.split-head {
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 46px;
  align-items: end;
}

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

.service-card {
  min-height: 280px;
  padding: 30px 24px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card small,
.case-number {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.case-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.case-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.case-item h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.4;
}

.case-block {
  margin-top: 18px;
}

.case-block b {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 14px;
}

.case-block p {
  margin: 0;
}

.case-block p + p {
  margin-top: 10px;
}

.case-client {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
}

.case-support-list {
  margin: 0;
  padding-left: 1.2em;
}

.case-support-list li + li {
  margin-top: 4px;
}

.case-point {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.case-point h4 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 17px;
  line-height: 1.45;
}

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

.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.info-panel h3 {
  margin: 0;
  padding: 16px 22px;
  color: #fff;
  background: var(--ink);
  font-size: 16px;
}

dl {
  margin: 0;
}

.info-row,
.contact-line {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.info-row:last-child,
.contact-line:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--ink);
  white-space: pre-line;
}

.contact-section {
  padding: 84px 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.75fr);
  gap: 54px;
  justify-content: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.contact-copy,
.contact-form {
  width: min(100%, 560px);
}

.contact-copy {
  justify-self: end;
}

.contact-section h2 {
  color: #fff;
}

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

.contact-lines {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-line {
  border-color: rgba(255, 255, 255, 0.14);
  padding-left: 0;
  padding-right: 0;
}

.contact-line dt {
  color: rgba(255, 255, 255, 0.45);
}

.contact-line dd,
.contact-line a {
  color: #fff;
}

.contact-form {
  padding: 28px;
  justify-self: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
}

.contact-form label span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  outline: none;
}

.contact-form textarea {
  min-height: 148px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-btn {
  width: 100%;
}

.form-note,
.form-status {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.54);
  text-align: center;
  font-size: 14px;
}

.form-status.ok {
  color: #cbe8d7;
}

.form-status.error {
  color: #ffd0d5;
}

.site-footer {
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: #141414;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer img {
  width: 76px;
  height: 46px;
  object-fit: contain;
  filter: grayscale(1) brightness(3);
  opacity: 0.78;
}

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

.site-footer strong {
  color: #fff;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 1020px) {
  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 14px;
  }

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

  .hero-copy {
    padding: 62px 24px 40px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-media {
    height: 360px;
    min-height: 0;
    margin: 0;
    border-radius: 0;
  }

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

@media (max-width: 820px) {
  :root {
    --header: 94px;
  }

  body {
    font-size: 15px;
  }

  .lang-buttons {
    justify-content: center;
    padding-left: 14px;
    padding-right: 14px;
  }

  .lang-buttons button {
    min-width: 76px;
    padding: 0 8px;
    font-size: 13px;
  }

  .nav-wrap {
    height: 56px;
    padding-left: 16px;
    padding-right: 16px;
    justify-content: flex-start;
  }

  .brand {
    min-width: 128px;
  }

  .brand img {
    width: 136px;
    height: 48px;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 44px;
    right: 16px;
    z-index: 25;
  }

  .site-nav {
    position: absolute;
    top: 94px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .nav-cta {
    width: 100%;
    min-height: 46px;
    margin: 0;
    justify-content: center;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-nav .nav-cta {
    margin-top: 10px;
    border-radius: 4px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.22;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-media {
    height: 320px;
  }

  .hero-facts {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .fact {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .section,
  .contact-section {
    padding: 62px 16px;
  }

  .section h2,
  .contact-section h2 {
    font-size: 30px;
  }

  .about-layout,
  .split-head,
  .company-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-copy,
  .contact-form {
    width: 100%;
    justify-self: stretch;
  }

  .message-card {
    grid-template-columns: 1fr;
  }

  .message-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .message-card-no-image .message-side {
    min-height: 0;
    padding: 22px 24px;
  }

  .message-card-no-image .message-side::before {
    margin-bottom: 14px;
  }

  .message-card-no-image .message-body {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .portrait {
    width: min(180px, 60vw);
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
  }

  .message-body {
    padding: 24px;
  }

  .quote {
    font-size: 21px;
  }

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

  .service-card {
    min-height: 0;
  }

  .case-item {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .info-row,
  .contact-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

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

  .hero-media {
    height: 280px;
  }

  .contact-form {
    padding: 20px;
  }
}
