:root {
  --navy-deep: #332920;
  --navy: #4d3f2f;
  --navy-light: #715c43;
  --gold: #b8834f;
  --gold-light: #ddb478;
  --sage: #8a9c74;
  --sage-light: #b7c4a3;
  --cream: #faf6ee;
  --cream-dark: #f1e7d4;
  --white: #ffffff;
  --text: #3e362c;
  --text-light: #7a6f5d;
  --font-sans: "Noto Sans JP", sans-serif;
  --container: 1140px;
  --header-h: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.overline {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading h2 {
  font-family: var(--font-sans);
  font-size: clamp(26px, 4vw, 36px);
  color: var(--navy);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}

.section-heading.light h2,
.section-heading.light p {
  color: var(--white);
}

section {
  padding: 100px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}

.site-header.scrolled {
  background: rgba(11, 22, 38, 0.94);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  height: 68px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.logo img {
  width: 34px;
  height: 34px;
}

.logo .en {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  z-index: 1100;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("../images/hero.jpg") 25% 45% / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      110deg,
      rgba(51, 41, 32, 0.85) 0%,
      rgba(51, 41, 32, 0.58) 32%,
      rgba(51, 41, 32, 0.18) 56%,
      rgba(51, 41, 32, 0) 74%
    ),
    linear-gradient(to top, rgba(31, 24, 18, 0.55) 0%, rgba(31, 24, 18, 0) 26%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
  text-align: left;
}

.hero-inner .overline {
  color: var(--gold-light);
}

.hero-inner h1 {
  font-family: var(--font-sans);
  color: var(--white);
  font-size: clamp(30px, 5.4vw, 54px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero-inner .lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin-bottom: 44px;
  font-size: 15px;
}

.hero-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.2em;
  z-index: 2;
}

.scroll-cue .line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  position: relative;
}

.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--gold);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -40px;
  }
  100% {
    top: 40px;
  }
}

/* ---------- Vision ---------- */

.vision {
  background: var(--cream);
}

.vision-statement {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.vision-statement h2 {
  font-family: var(--font-sans);
  font-size: clamp(24px, 4vw, 34px);
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 24px;
}

.vision-statement p {
  color: var(--text-light);
  font-size: 15px;
}

.vision-statement p + p {
  margin-top: 20px;
}

/* ---------- Business ---------- */

.business {
  background: var(--white);
}

.business-list {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.business-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.business-row-reverse .business-row-text {
  order: 2;
}

.business-row-reverse .business-row-media {
  order: 1;
}

.business-row-media {
  overflow: hidden;
}

.business-row-text .num {
  font-family: var(--font-sans);
  font-size: 38px;
  color: var(--gold);
  opacity: 0.65;
  margin-bottom: 20px;
}

.business-row-text .en {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
}

.business-row-text h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

.business-row-text p {
  font-size: 15px;
  color: var(--text-light);
}

.business-media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  border: 1px dashed var(--gold);
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.business-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Company ---------- */

.company {
  background: var(--cream);
}

.company-inner {
  max-width: 720px;
  margin: 0 auto;
}

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

table.company-table th,
table.company-table td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 14px;
  vertical-align: top;
}

table.company-table th {
  width: 150px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
}

table.company-table td {
  color: var(--text-light);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--white);
}

form.contact-form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.form-row label .required {
  color: #b3402f;
  font-size: 11px;
  margin-left: 6px;
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--cream-dark);
  background: var(--cream);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-row textarea {
  min-height: 160px;
  resize: vertical;
}

.form-row.error input,
.form-row.error select,
.form-row.error textarea {
  border-color: #b3402f;
}

.error-message {
  font-size: 12px;
  color: #b3402f;
  display: none;
}

.form-row.error .error-message {
  display: block;
}

.form-row-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit-error {
  display: none;
  text-align: center;
  color: #b3402f;
  font-size: 13px;
}

.form-submit-error.visible {
  display: block;
}

.form-submit {
  text-align: center;
  margin-top: 8px;
}

.form-submit button {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 18px 56px;
  font-size: 14px;
  letter-spacing: 0.12em;
  font-weight: 700;
  transition: background 0.25s ease;
}

.form-submit button:hover {
  background: var(--navy-light);
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--cream-dark);
  max-width: 720px;
  margin: 0 auto;
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  font-family: var(--font-sans);
  color: var(--navy);
  font-size: 22px;
  margin-bottom: 16px;
}

.form-success p {
  color: var(--text-light);
  font-size: 14px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 17px;
}

.footer-logo img {
  width: 30px;
  height: 30px;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  letter-spacing: 0.05em;
}

.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 28px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Business image scroll-flow (remove this block + the
   "media-flow" class in index.html to revert to the plain fade-up) ---------- */

.business-image.media-flow {
  transform: translateX(56px) scale(1.06);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.business-row-reverse .business-image.media-flow {
  transform: translateX(-56px) scale(1.06);
}

.business-image.media-flow.is-visible {
  transform: translateX(0) scale(1);
}

/* ---------- Privacy page ---------- */

.policy {
  background: var(--white);
  padding-top: calc(var(--header-h) + 60px);
}

.policy h1 {
  font-family: var(--font-sans);
  color: var(--navy);
  font-size: 28px;
  margin-bottom: 40px;
  text-align: center;
}

.policy h2 {
  font-family: var(--font-sans);
  color: var(--navy);
  font-size: 17px;
  margin: 36px 0 12px;
}

.policy p,
.policy li {
  font-size: 14px;
  color: var(--text-light);
}

.policy ul {
  padding-left: 1.4em;
  list-style: disc;
}

.policy .back-link {
  display: inline-block;
  margin-top: 48px;
  font-size: 13px;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80%);
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1050;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .business-list {
    gap: 56px;
  }

  .business-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .business-row-reverse .business-row-text,
  .business-row-reverse .business-row-media {
    order: 0;
  }

  section {
    padding: 72px 0;
  }

  .hero {
    text-align: center;
  }

  .hero-inner .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-top {
    flex-direction: column;
  }

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