:root {
  --bg: #f0f0f0;
  --surface: #ffffff;
  --surface-alt: #f0f0f0;
  --line: #d9ddd8;
  --line-strong: #a5b2ac;
  --text: #1a1a1a;
  --muted: #777;
  --navy: #717171;
  --navy-deep: #1a1a1a;
  --green: #a67c52;
  --brown: #79624d;
  --accent-soft: #c1c1c1;
  --shadow: 0 16px 36px rgba(20, 32, 36, 0.05);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1100px;
  --body-bg: linear-gradient(180deg, #f5f5f5 0%, var(--bg) 100%);
  --section-soft-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 247, 242, 0.94));
  --rule-color: linear-gradient(to right, #a67c52, #f4f4f4);
  --header-bg: #1a1a1a;
  --header-border: rgba(255, 255, 255, 0.04);
  --header-text: #ffffff;
  --sidebar-link: #a67c52;
  --sidebar-link-active: #9fa0a0;
  --button-primary-bg: #300000;
  --button-primary-text: #ffffff;
  --button-secondary-bg: transparent;
  --button-secondary-border: rgba(31, 53, 82, 0.12);
  --toggle-bg: #ffffff;
  --toggle-border: rgba(31, 53, 82, 0.14);
  --card-border: rgba(31, 42, 45, 0.08);
  --card-border-strong: rgba(31, 42, 45, 0.12);
  --form-bg: rgba(255, 255, 255, 0.72);
  --field-bg: #ffffff;
  --field-text: var(--text);
  --field-border: var(--line);
  --focus-ring: 0 0 0 4px rgba(47, 93, 79, 0.08);
  --footer-bg: #1a1a1a;
  --footer-text: rgba(255, 255, 255, 0.86);
  --footer-muted: rgba(255, 255, 255, 0.72);
  --footer-faint: rgba(255, 255, 255, 0.58);
  --footer-border: rgba(255, 255, 255, 0.12);
  --mobile-header-bg: rgba(255, 255, 255, 0.97);
  --mobile-header-border: rgba(31, 42, 45, 0.08);
  --mobile-nav-bg: rgba(255, 255, 255, 0.97);
  --mobile-nav-border: rgba(31, 53, 82, 0.12);
}

hr {
  border: none;
  height: 1px;
  background: var(--rule-color);
  margin: 5px 0;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", "Noto Serif JP", serif;
  color: var(--text);
  background: var(--body-bg);
  line-height: 1.8;
  padding-left: 244px;
  overflow-x: hidden;
}

p,
td,
th,
li,
dd,
label,
input,
textarea,
button {
  font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, sans-serif;
}

body.js-enhanced {
  --reveal-distance: 54px;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -48px;
  transform: translateX(-50%);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 4rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5.4rem 0;
}

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

.section-heading {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading-left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.section-heading h2 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", "Noto Serif JP", serif;
  margin: 0.32rem 0 0.8rem;
  font-size: clamp(2rem, 2.75vw, 2.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

.hero h1,
.footer-heading {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", "Noto Serif JP", serif;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.section-eyebrow {
  margin: 0.8rem 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  font-feature-settings: "palt";
}

.site-header {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 244px;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-right: 1px solid var(--header-border);
}

.header-inner {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-rows: minmax(140px, 0.55fr) 1fr minmax(110px, 0.45fr);
  align-items: start;
  gap: 0;
  padding: 1.2rem 1.1rem 1.35rem;
}

.brand-block {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  width: 100%;
  align-self: start;
  padding-top: 1.6rem;
}

.brand-logo {
  display: grid;
  justify-items: start;
  align-content: center;
  width: 100%;
  margin-bottom: 0.55rem;
  background: transparent;
}

.brand-logo-image {
  display: block;
  width: 100%;
  max-width: 226px;
  height: auto;
  margin-inline: 0;
}

.brand-name {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.015em;
  text-align: left;
  color: var(--header-text);
}

.brand-kicker {
  margin: 0;
  color: var(--header-text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  font-feature-settings: "palt";
}

.site-nav {
  width: 100%;
  display: grid;
  gap: 2.55rem;
  align-content: center;
  min-height: 100%;
}

.site-nav a:not(.button) {
  color: var(--sidebar-link);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: uppercase;
  padding: 0;
  border-bottom: 0;
}

.site-nav a:not(.button)::before {
  content: "- ";
  opacity: 1;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--sidebar-link-active);
}

.site-nav a.is-current:not(.button) {
  color: var(--sidebar-link-active);
}

.sidebar-privacy {
  color: var(--sidebar-link);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: uppercase;
  align-self: end;
  padding-bottom: 1.1rem;
}

.sidebar-privacy::before {
  content: "- ";
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.button-primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  box-shadow: none;
}

.button-secondary {
  border-color: var(--button-secondary-border);
  background: var(--button-secondary-bg);
  color: var(--navy);
}

.button-small {
  min-height: 40px;
  padding-inline: 1rem;
}

.button-full {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--toggle-border);
  border-radius: 14px;
  background: var(--toggle-bg);
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding-top: 4.8rem;
  padding-bottom: 5.6rem;
}

.hero-simple {
  min-height: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 820px;
}

.hero-copy p:not(.section-eyebrow) {
  margin: 1.05rem 0 0;
  max-width: 620px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.82;
}

.hero-copy h1 {
  margin: 0.6rem 0 0;
  font-size: clamp(2.9rem, 5.2vw, 5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.045em;
  color: var(--navy-deep);
}

.hero-cta {
  margin-top: 2.5rem;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.scene-section {
  padding-top: 2rem;
}

.recipe-intro {
  display: grid;
  gap: 1rem;
  max-width: 860px;
}

.recipe-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.recipe-block {
  margin-top: 3.6rem;
}

.recipe-principles,
.recipe-core-grid,
.recipe-genre-list {
  display: grid;
  gap: 1.2rem;
}

.recipe-principles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.recipe-card,
.recipe-genre {
  padding: 1rem 0 1rem 1.1rem;
  border-left: 1px solid rgba(31, 42, 45, 0.12);
}

.recipe-card h3,
.recipe-genre h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.recipe-card p,
.recipe-genre p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.scene-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.scene-card {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.scene-image {
  aspect-ratio: 4 / 3;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}

.scene-image-interior {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.05), rgba(22, 38, 59, 0.14)),
    url("images/scene-interior.jpg");
}

.scene-image-meeting {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.05), rgba(22, 38, 59, 0.12)),
    url("images/scene-meeting.jpg");
}

.scene-image-exterior {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.05), rgba(22, 38, 59, 0.14)),
    url("images/scene-exterior.jpg");
}

.scene-card figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0 0;
}

.scene-card strong {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
}

.scene-card span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.68;
}

.issue-list,
.contact-methods,
.scene-gallery {
  display: grid;
  gap: 1.2rem;
}

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

.issue-item,
.contact-method,
.company-panel,
.contact-form {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 0;
  box-shadow: none;
}

.issue-item,
.contact-method {
  padding: 1rem 0 1rem 1.1rem;
  border-left: 1px solid var(--card-border-strong);
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
}

.issue-item h3,
.company-panel h3,
.contact-method h3,
.flow-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.issue-item p,
.contact-method p,
.contact-method span,
.company-panel li {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.reason-list {
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
}

.reason-item,
.case-item {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1.45rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--card-border);
}

.reason-item:last-of-type {
  border-bottom: none;
}

.reason-head,
.case-head {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.reason-en,
.service-en,
.case-en {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  font-feature-settings: "palt";
}

.reason-item h3,
.service-body h3,
.case-item h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.1;
}

.reason-item p:last-child,
.case-item p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.service-stack {
  display: grid;
  gap: 4.8rem;
}

.service-feature {
  display: grid;
  grid-template-columns: minmax(360px, 0.98fr) minmax(0, 1.02fr);
  gap: 2.4rem;
  align-items: center;
}

.service-feature-reverse .service-media {
  order: 2;
}

.service-feature-reverse .service-body {
  order: 1;
}

.service-media {
  min-height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: none;
}

.service-media-sales {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.06), rgba(22, 38, 59, 0.2)),
    url("images/service-sales.jpg");
}

.service-media-opening {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.04), rgba(22, 38, 59, 0.14)),
    url("images/service-opening.jpg");
}

.service-media-marketing {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.04), rgba(22, 38, 59, 0.16)),
    url("images/service-marketing.jpg");
}

.service-media-multi {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.06), rgba(22, 38, 59, 0.18)),
    url("images/service-multi.jpg");
}

.service-media-fc {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.04), rgba(22, 38, 59, 0.14)),
    url("images/service-fc.jpg");
}

.service-media-tax {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.04), rgba(22, 38, 59, 0.14)),
    url("images/service-tax.jpg");
}

.service-media-pro {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.04), rgba(22, 38, 59, 0.14)),
    url("images/service-pro.jpg");
}

.service-body {
  padding: 0.35rem 0;
  max-width: 540px;
}

.service-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
  font-feature-settings: "palt";
}

.service-body p:first-child {
  margin-bottom: 0.45rem;
}

.service-body ul,
.company-panel ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--navy-deep);
  font-size: 1.02rem;
  font-weight: 700;
  font-feature-settings: "palt";
}

.service-body li + li,
.company-panel li + li {
  margin-top: 0.05rem;
}

.service-body li,
.company-panel li {
  line-height: 1.56;
}

.case-list {
  border-top: 1px solid var(--card-border);
}

.case-summary {
  margin: 0;
  color: var(--navy-deep);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.68;
}

.case-body {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.case-body p:last-child {
  margin: 0;
  color: var(--muted);
}

.case-media {
  min-height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid var(--card-border);
}

.case-media-rebuild {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.04), rgba(22, 38, 59, 0.16)),
    url("images/case-rebuild.jpg");
}

.case-media-opening {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.04), rgba(22, 38, 59, 0.16)),
    url("images/case-opening.jpg");
}

.case-media-marketing {
  background-image:
    linear-gradient(180deg, rgba(22, 38, 59, 0.04), rgba(22, 38, 59, 0.14)),
    url("images/case-marketing.jpg");
}

.section-note {
  margin-top: 1rem;
}

.flow-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(31, 42, 45, 0.08);
}

.flow-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(31, 42, 45, 0.08);
}

.flow-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(31, 53, 82, 0.08), rgba(47, 93, 79, 0.16));
  color: var(--navy);
  font-weight: 700;
}

.flow-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.message-grid,
.company-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 4rem;
}

.message-grid {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
}

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

.message-visual {
  min-height: 540px;
  padding: 0.8rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(31, 53, 82, 0.06), rgba(121, 98, 77, 0.14)),
    url("images/scene-meeting.jpg")
      center / cover no-repeat,
    linear-gradient(135deg, #edf2ef, #d7e0db 55%, #cbbba8);
  box-shadow: none;
  will-change: transform;
}

.message-photo-frame {
  width: 100%;
  height: 100%;
  min-height: 508px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.message-copy p {
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
  line-height: 1.8;
}

.message-grid-single .message-copy {
  max-width: 760px;
  position: relative;
  padding-right: 15rem;
  padding-bottom: 3rem;
}

.message-signature {
  margin-top: 1.6rem;
  color: var(--navy);
  font-weight: 700;
}

.message-signature-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 230px;
  height: auto;
  opacity: 0.94;
  pointer-events: none;
}

.company-grid {
  grid-template-columns: 1fr;
  align-items: start;
  max-width: 1024px;
  margin: 0 auto;
}

.company-table {
  margin: 0;
  background: transparent;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  border-color: #b69572;
  overflow: hidden;
}

.company-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
}

.company-table div + div {
  border-top: 1px solid var(--card-border);
}

.company-table dt {
  font-weight: 700;
}

.company-table dd {
  margin: 0;
  color: var(--muted);
}

.company-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 0 0 1.1rem;
  border-left: 1px solid var(--card-border-strong);
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
}

.company-panel .button {
  margin-top: auto;
  align-self: flex-start;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
}

.contact-form {
  padding: 1.35rem;
  background: var(--form-bg);
  border-radius: 10px;
}


.form-row + .form-row {
  margin-top: 1.05rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: var(--field-bg);
  padding: 0.82rem 0.95rem;
  color: var(--field-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: var(--focus-ring);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin: 0.1rem 0 0;
}

.checkbox-row label {
  margin-bottom: 1em;
  font-weight: 400;
  color: var(--muted);
}

.checkbox-row a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.form-message {
  min-height: 1.5rem;
  margin: 1rem 0 1.2rem;
  color: var(--green);
  font-size: 0.95rem;
}

.form-message.is-error {
  color: #9b3f3f;
}

.site-footer {
  padding: 3rem 0 1.35rem;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  align-items: start;
  gap: 1.5rem;
}

.footer-brand {
  margin: 0 0 0.55rem;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", "Noto Serif JP", serif;
  font-size: 1.12rem;
}

.site-footer p {
  margin: 0 0 0.45rem;
  color: var(--footer-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-note {
  margin-top: 1rem;
  max-width: 520px;
  color: var(--footer-faint);
  font-size: 0.82rem;
  line-height: 1.9;
}

.footer-heading {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--footer-text);
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--footer-border);
}

body.js-enhanced .reveal {
  opacity: 0;
  --reveal-x: 0px;
  --reveal-y: var(--reveal-distance);
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0)
    translate3d(0, var(--parallax-y, 0px), 0)
    scale(var(--parallax-scale, 1));
  transition:
    opacity 0.9s ease,
    transform 1.05s cubic-bezier(0.2, 0.72, 0.16, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

body.js-enhanced .reveal.reveal-soft {
  --reveal-y: 28px;
}

body.js-enhanced .reveal.reveal-left {
  --reveal-x: -42px;
  --reveal-y: 26px;
}

body.js-enhanced .reveal.reveal-right {
  --reveal-x: 42px;
  --reveal-y: 26px;
}

body.js-enhanced .reveal.is-visible {
  opacity: 1;
  --reveal-x: 0px;
  --reveal-y: 0px;
}

body.js-enhanced .scene-card .scene-image,
body.js-enhanced .message-visual {
  transition: transform 1.4s cubic-bezier(0.2, 0.72, 0.16, 1);
}

body.js-enhanced .scene-card.is-visible .scene-image {
  transform: scale(1.05);
}

body.js-enhanced .message-visual.is-visible {
  --parallax-scale: 1.01;
}

@media (max-width: 1080px) {
  body {
    padding-left: 0;
  }

  .site-header {
    position: sticky;
    width: auto;
    bottom: auto;
    border-right: 0;
    border-bottom: 1px solid var(--mobile-header-border);
    background: var(--mobile-header-bg);
  }

  .header-inner {
    display: flex;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
  }

  .sidebar-privacy {
    display: none;
  }

  .brand-block {
    display: grid;
    flex: 1;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.7rem;
    row-gap: 0.1rem;
    padding-top: 0;
  }

  .brand-name {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.4rem;
    text-align: left;
    color: var(--text);
  }

  .brand-kicker {
    grid-column: 1;
    grid-row: 2;
    color: var(--text);
    margin: 0;
  }

  .brand-logo {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    margin-bottom: 0;
    justify-items: center;
  }

  .brand-logo-image {
    width: 88px;
    max-width: none;
  }

  .site-nav {
    width: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0;
  }

  .site-nav a:not(.button) {
    padding: 0;
    border-bottom: 0;
    letter-spacing: 0;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: Georgia, "Times New Roman", Times, serif;
    color: var(--navy-deep);
  }

  .site-nav a:not(.button)::before {
    content: none;
  }

  .hero-grid,
  .message-grid,
  .company-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .issue-list,
  .scene-gallery,
  .recipe-principles,
  .recipe-core-grid,
  .recipe-genre-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .reason-item,
  .case-item,
  .service-feature {
    grid-template-columns: 1fr;
  }

  .service-media {
    min-height: auto;
  }

  .service-body {
    max-width: 100%;
  }

  .case-media {
    min-height: auto;
  }

  .service-feature-reverse .service-media,
  .service-feature-reverse .service-body {
    order: initial;
  }
}

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

  body.js-enhanced .reveal,
  body.js-enhanced .scene-card .scene-image,
  body.js-enhanced .message-visual {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 1.5rem), var(--container));
  }

  .section {
    padding: 4.2rem 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0.75rem;
    left: 0.75rem;
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem;
    border: 1px solid var(--mobile-nav-border);
    border-radius: 24px;
    background: var(--mobile-nav-bg);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: 0;
  }

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

  .site-nav .button-small {
    width: 100%;
    margin-top: 0.35rem;
  }

  .site-nav a:not(.button) {
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid rgba(31, 42, 45, 0.06);
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 2.3rem;
  }

  .issue-list,
  .flow-list,
  .scene-gallery,
  .recipe-principles,
  .recipe-core-grid,
  .recipe-genre-list {
    grid-template-columns: 1fr;
  }

  .issue-item,
  .contact-method,
  .company-panel {
    padding-left: 0.9rem;
  }

  .company-table div {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 78px;
    gap: 0.75rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.45rem);
    line-height: 1.12;
  }

  .brand-name {
    font-size: 1.18rem;
    line-height: 0.9;
  }

  .brand-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .brand-logo-image {
    width: 78px;
  }

  .hero-copy p,
  .recipe-intro p,
  .service-body p,
  .case-summary,
  .case-body p,
  .message-copy p {
    line-height: 1.72;
    overflow-wrap: anywhere;
  }

  .message-grid-single .message-copy {
    padding-right: 0;
    padding-bottom: 2.6rem;
  }

  .message-signature-image {
    width: 160px;
    right: 0;
    bottom: 0.25rem;
  }

  .company-table div {
    padding: 1rem 0.85rem;
  }

  .contact-grid,
  .company-grid {
    gap: 1.5rem;
  }

  .visual-card,
  .contact-form,
  .company-panel {
    padding: 1.35rem;
  }

  .button,
  .button-small {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: only light;
  }
}

@media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
  :root {
    --bg: #f0f0f0;
    --surface: #ffffff;
    --surface-alt: #f0f0f0;
    --line: #d9ddd8;
    --line-strong: #a5b2ac;
    --text: #1a1a1a;
    --muted: #777;
    --navy: #717171;
    --navy-deep: #1a1a1a;
    --green: #a67c52;
    --brown: #79624d;
    --accent-soft: #c1c1c1;
    --shadow: 0 16px 36px rgba(20, 32, 36, 0.05);
    --body-bg: linear-gradient(180deg, #f5f5f5 0%, var(--bg) 100%);
    --section-soft-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 247, 242, 0.94));
    --rule-color: linear-gradient(to right, #a67c52, #f4f4f4);
    --header-bg: #1a1a1a;
    --header-border: rgba(255, 255, 255, 0.04);
    --header-text: #ffffff;
    --sidebar-link: #a67c52;
    --sidebar-link-active: #9fa0a0;
    --button-primary-bg: #300000;
    --button-primary-text: #ffffff;
    --button-secondary-bg: transparent;
    --button-secondary-border: rgba(31, 53, 82, 0.12);
    --toggle-bg: #ffffff;
    --toggle-border: rgba(31, 53, 82, 0.14);
    --card-border: rgba(31, 42, 45, 0.08);
    --card-border-strong: rgba(31, 42, 45, 0.12);
    --form-bg: rgba(255, 255, 255, 0.72);
    --field-bg: #ffffff;
    --field-text: #1a1a1a;
    --field-border: #d9ddd8;
    --focus-ring: 0 0 0 4px rgba(47, 93, 79, 0.08);
    --footer-bg: #1a1a1a;
    --footer-text: rgba(255, 255, 255, 0.86);
    --footer-muted: rgba(255, 255, 255, 0.72);
    --footer-faint: rgba(255, 255, 255, 0.58);
    --footer-border: rgba(255, 255, 255, 0.12);
    --mobile-header-bg: rgba(255, 255, 255, 0.97);
    --mobile-header-border: rgba(31, 42, 45, 0.08);
    --mobile-nav-bg: rgba(255, 255, 255, 0.97);
    --mobile-nav-border: rgba(31, 53, 82, 0.12);
  }

  html {
    color-scheme: light;
  }
}
