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

:root {
  --ink: #172d35;
  --ink-soft: #3e5559;
  --cream: #f7f3ea;
  --paper: #fcfaf5;
  --sand: #e6ddca;
  --gold: #b8915d;
  --green: #6d8884;
  --line: rgba(23, 45, 53, 0.17);
  --serif-en: "Cormorant Garamond", Georgia, serif;
  --serif-jp: "Shippori Mincho", "Noto Serif JP", serif;
  --content: min(1120px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif-jp);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.055em;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: var(--content);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  color: #fff;
  transition: 0.4s ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  border-bottom-color: var(--line);
  color: var(--ink);
  background: rgba(252, 250, 245, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  width: min(1240px, calc(100% - 48px));
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: var(--serif-en);
  font-size: 31px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.logo-sub {
  margin-top: 5px;
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 31px;
  font-family: var(--serif-en);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.site-nav a {
  position: relative;
}

.site-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-contact {
  padding: 8px 19px;
  border: 1px solid currentColor;
  transition: 0.3s ease;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  height: 100svh;
  overflow: hidden;
  align-items: center;
  color: #fff;
}

.hero-image-wrap,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.76);
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 38, 43, 0.78), rgba(12, 38, 43, 0.4) 50%, rgba(12, 38, 43, 0.18)),
    linear-gradient(0deg, rgba(11, 31, 38, 0.4), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.hero-kicker,
.section-label,
.service-tag,
.profile-role {
  margin: 0;
  color: var(--gold);
  font-family: var(--serif-en);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #e8d9b9;
  font-size: 23px;
}

.hero h1 {
  max-width: 850px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 500;
  line-height: 1.43;
  letter-spacing: 0.12em;
}

.hero-lead {
  margin: 0 0 29px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 2.1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  letter-spacing: 0.13em;
  transition: gap 0.3s ease;
}

.text-link:hover,
.text-link:focus-visible {
  gap: 20px;
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  right: 38px;
  bottom: 32px;
  display: flex;
  margin: 0;
  align-items: center;
  gap: 12px;
  font-family: var(--serif-en);
  font-size: 14px;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.65);
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.hero-orbit-one {
  right: -130px;
  bottom: -280px;
  width: 620px;
  height: 620px;
}

.hero-orbit-two {
  right: 55px;
  bottom: -110px;
  width: 280px;
  height: 280px;
}

.section {
  position: relative;
  padding: 132px 0;
  overflow: hidden;
  scroll-margin-top: 78px;
}

.section-heading h2,
.section-recruit h2,
.section-contact h2 {
  margin: 10px 0 0;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.45;
}

.section-heading h2 span {
  padding: 0 8px;
  color: var(--gold);
  font-family: var(--serif-en);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 75px;
}

.about-copy {
  max-width: 650px;
}

.about-copy p {
  margin: 0 0 20px;
}

.about-lead {
  color: var(--ink);
  font-size: 20px;
  line-height: 2;
}

.decor-circle {
  position: absolute;
  border: 1px solid rgba(184, 145, 93, 0.24);
  border-radius: 50%;
}

.decor-circle-about {
  top: 48px;
  left: -140px;
  width: 360px;
  height: 360px;
}

.vertical-word {
  position: absolute;
  right: 3vw;
  bottom: -68px;
  margin: 0;
  color: rgba(23, 45, 53, 0.04);
  font-family: var(--serif-en);
  font-size: 114px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-service {
  background: #ecf0eb;
}

.section-intro {
  margin: 17px 0 0;
  color: var(--ink-soft);
}

.service-list {
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.service-card {
  display: grid;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 110px 1fr;
  transition: padding 0.35s ease;
}

.service-card:hover {
  padding-right: 24px;
  padding-left: 24px;
  background: rgba(252, 250, 245, 0.5);
}

.service-number {
  color: var(--gold);
  font-family: var(--serif-en);
  font-size: 31px;
  line-height: 1;
}

.service-tag {
  font-size: 15px;
}

.service-content h3 {
  margin: 11px 0 13px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.75;
}

.service-content p:not(.service-tag) {
  max-width: 860px;
  margin: 0;
  color: var(--ink-soft);
}

.button-link {
  display: inline-flex;
  margin-top: 20px;
  align-items: center;
  gap: 11px;
  padding: 8px 17px;
  border: 1px solid var(--ink);
  font-size: 13px;
  letter-spacing: 0.11em;
  transition: 0.3s ease;
}

.button-link:hover,
.button-link:focus-visible {
  color: #fff;
  background: var(--ink);
}

.section-company {
  background: var(--paper);
}

.company-grid {
  display: grid;
  margin-top: 50px;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
}

.profile {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 32px;
}

.profile-image-wrap {
  position: relative;
  align-self: start;
}

.profile-image-wrap img {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
}

.profile-frame {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
}

.profile-role {
  font-size: 14px;
}

.profile h3 {
  margin: 6px 0 13px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.profile h3 strong {
  margin-left: 9px;
  font-size: 26px;
  font-weight: 500;
}

.profile-copy p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2.05;
}

.company-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

.company-table div {
  display: grid;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 114px 1fr;
  gap: 20px;
}

.company-table dt {
  color: var(--green);
  font-size: 13px;
}

.company-table dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.section-recruit {
  padding: 108px 0;
  background: #e3e8e2;
}

.recruit-heading {
  display: grid;
  align-items: start;
  grid-template-columns: 0.72fr 1fr;
  gap: 50px;
}

.recruit-heading p:not(.section-label) {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.recruit-heading h2 {
  grid-row: span 2;
}

.recruit-openings {
  display: grid;
  gap: 22px;
  margin-top: 48px;
}

.recruit-openings-label {
  grid-column: 1 / -1;
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 17px;
  letter-spacing: 0.14em;
}

.recruit-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(252, 250, 245, 0.9);
  box-shadow: 0 18px 46px rgba(23, 45, 53, 0.08);
}

.recruit-type {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 13px;
  border: 1px solid rgba(109, 136, 132, 0.34);
  color: var(--green);
  background: rgba(109, 136, 132, 0.08);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.recruit-card h3 {
  margin: 0 0 11px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.75;
}

.recruit-card p:not(.recruit-type) {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.recruit-card ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.recruit-card li + li {
  margin-top: 4px;
}

.section-contact {
  padding: 146px 0 152px;
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.section-contact .section-label {
  color: #d4b27b;
}

.section-contact p {
  margin: 23px 0 29px;
  color: rgba(255, 255, 255, 0.77);
}

.contact-form-wrap {
  position: relative;
  width: min(100%, 960px);
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(252, 250, 245, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
  text-align: left;
}

.contact-form {
  padding: 42px;
  color: var(--ink);
}

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

.form-field,
.form-fieldset {
  display: block;
  margin: 0 0 22px;
}

.form-field span,
.form-fieldset legend {
  display: block;
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.form-field b,
.form-fieldset b {
  margin-left: 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
}

.form-field input,
.form-field textarea,
.other-input {
  width: 100%;
  border: 1px solid rgba(23, 45, 53, 0.18);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  letter-spacing: 0.05em;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-field input,
.other-input {
  height: 48px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 170px;
  padding: 13px 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.other-input:focus {
  outline: 0;
  border-color: var(--gold);
  background: #fff;
}

.form-fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

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

.choice-grid label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
  cursor: pointer;
}

.choice-grid input {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.other-input {
  margin-top: 13px;
}

.form-message {
  min-height: 1.8em;
  margin: 2px 0 18px !important;
  color: var(--green) !important;
  font-size: 13px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  font-family: var(--serif-jp);
  font-size: 14px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
}

.form-submit:hover,
.form-submit:focus-visible {
  color: var(--ink);
  background: transparent;
}

.contact-submit-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-form-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e7d1ac;
  border-bottom: 1px solid rgba(231, 209, 172, 0.65);
  font-size: 14px;
  letter-spacing: 0.12em;
  transition: gap 0.3s ease, color 0.3s ease;
}

.contact-form-link:hover,
.contact-form-link:focus-visible {
  gap: 15px;
  color: #fff;
}

.contact-circle {
  position: absolute;
  top: -170px;
  left: calc(50% - 260px);
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.site-footer {
  padding: 36px 0;
  color: #fff;
  background: #102329;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-logo .logo-main {
  font-size: 26px;
}

.footer-nav {
  gap: 20px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.08em;
}

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

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

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 73px;
    right: 0;
    left: 0;
    display: grid;
    overflow: hidden;
    max-height: 0;
    padding: 0 24px;
    gap: 0;
    color: var(--ink);
    background: rgba(252, 250, 245, 0.98);
    opacity: 0;
    transition: 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 420px;
    padding-block: 17px 23px;
    border-bottom: 1px solid var(--line);
    opacity: 1;
  }

  .site-nav a {
    padding: 11px 0;
  }

  .nav-contact {
    margin-top: 6px;
    padding-inline: 13px !important;
    text-align: center;
  }

  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 10px 6px;
    border: 0;
    align-content: center;
    gap: 5px;
    color: inherit;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: 0.3s ease;
  }

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

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

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

  .header-inner {
    min-height: 73px;
  }

  .about-grid,
  .company-grid {
    grid-template-columns: 1fr;
    gap: 33px;
  }

  .company-grid {
    gap: 58px;
  }

  .recruit-openings {
    grid-template-columns: 1fr;
  }

  .vertical-word {
    font-size: 84px;
  }
}

@media (max-width: 600px) {
  :root {
    --content: min(100% - 36px, 1120px);
  }

  body {
    font-size: 14px;
  }

  .header-inner,
  .hero-content {
    width: min(100% - 36px, 1240px);
  }

  .logo-main {
    font-size: 27px;
  }

  .logo-sub {
    font-size: 9px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(12, 38, 43, 0.8), rgba(12, 38, 43, 0.37)),
      linear-gradient(0deg, rgba(11, 31, 38, 0.45), transparent 40%);
  }

  .hero-kicker {
    font-size: 18px;
  }

  .hero h1 {
    margin-top: 16px;
    font-size: 38px;
    line-height: 1.5;
    letter-spacing: 0.08em;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-scroll {
    display: none;
  }

  .hero-orbit-one {
    right: -215px;
    bottom: -185px;
    width: 430px;
    height: 430px;
  }

  .hero-orbit-two {
    right: -32px;
    bottom: -72px;
    width: 190px;
    height: 190px;
  }

  .section {
    padding: 88px 0;
  }

  .section-heading h2,
  .section-recruit h2,
  .section-contact h2 {
    font-size: 31px;
  }

  .about-lead {
    font-size: 17px;
  }

  .vertical-word {
    right: -10px;
    bottom: -40px;
    font-size: 54px;
  }

  .decor-circle-about {
    top: 10px;
    left: -140px;
    width: 280px;
    height: 280px;
  }

  .service-list {
    margin-top: 34px;
  }

  .service-card {
    display: block;
    padding: 30px 0;
  }

  .service-card:hover {
    padding-right: 0;
    padding-left: 0;
  }

  .service-number {
    margin-bottom: 15px;
    font-size: 27px;
  }

  .service-content h3 {
    font-size: 18px;
  }

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

  .profile-image-wrap {
    width: min(75%, 270px);
  }

  .company-table div {
    grid-template-columns: 88px 1fr;
    gap: 13px;
  }

  .section-recruit {
    padding: 68px 0;
  }

  .recruit-heading {
    display: block;
  }

  .recruit-heading p:not(.section-label) {
    margin-top: 18px;
  }

  .recruit-openings {
    margin-top: 34px;
  }

  .recruit-card {
    padding: 23px 20px;
  }

  .recruit-card h3 {
    font-size: 18px;
  }

  .section-contact {
    padding: 105px 0 111px;
  }

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

  .form-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: block;
  }

  .footer-nav {
    display: flex;
    margin: 24px 0 18px;
    flex-wrap: wrap;
    gap: 9px 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
