/* =========================================================
   COMPANY / ABOUT
   Kiyotoki 2026 design language
========================================================= */

.company-page {
  position: relative;
  overflow: hidden;
  color: var(--japandi-text);
  font-family: var(--font-serif);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.72), transparent 32%),
    radial-gradient(circle at 75% 30%, rgba(232,226,214,0.48), transparent 40%),
    linear-gradient(120deg, var(--japandi-bg) 0%, var(--japandi-bg-2) 100%);
}

.company-page .section-eyebrow {
  margin: 0 0 32px;
  font-size: 14px !important;
  line-height: 1.6;
  letter-spacing: 0.24em !important;
  color: #747a74 !important;
}

.company-section {
  position: relative;
  padding: clamp(150px, 16vw, 260px) 0;
}

.company-main-title {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #41443f;
}

.company-small {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.22em;
  color: #747a74;
}


/* =========================================================
   HERO
========================================================= */

.company-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f7f5f0;
}

.company-hero::before,
.company-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.company-hero::before {
  width: 52vw;
  height: 52vw;
  min-width: 520px;
  min-height: 520px;
  right: -15vw;
  top: -16vw;
  background: radial-gradient(circle, rgba(180,188,174,.20), rgba(180,188,174,0) 68%);
}

.company-hero::after {
  width: 42vw;
  height: 42vw;
  min-width: 420px;
  min-height: 420px;
  left: -14vw;
  bottom: -18vw;
  background: radial-gradient(circle, rgba(218,207,188,.25), rgba(218,207,188,0) 70%);
}

.company-hero-brand {
  position: absolute;
  top: 32px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  color: rgba(65,76,69,.72);
}

.company-hero-brand span {
  display: block;
  padding-left: .38em;
  font-family: "Times New Roman", serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .38em;
  white-space: nowrap;
}

.company-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 70px;
}

.company-hero .section-eyebrow {
  margin-bottom: clamp(34px, 4vw, 58px);
}

.company-hero-title {
  max-width: 1000px;
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(46px, 6.2vw, 88px);
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: .08em;
  color: #41443f;
}

.company-hero-lead {
  margin: clamp(52px, 6vw, 86px) 0 0;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 2.15;
  letter-spacing: .07em;
  color: #656760;
}

.company-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: rgba(65,76,69,.78);
  pointer-events: none;
}

.company-hero-scroll span {
  padding-left: .28em;
  font-family: "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: .28em;
}

.company-hero-scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: rgba(65,76,69,.22);
}

.company-hero-scroll i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: rgba(65,76,69,.75);
  animation: company-scroll-line 2.2s ease-in-out infinite;
}

@keyframes company-scroll-line {
  0% { transform: translateY(0); }
  55%, 100% { transform: translateY(200%); }
}


/* =========================================================
   INTRO / STORY
========================================================= */

.company-intro {
  background: transparent;
}

.company-intro-head {
  max-width: 1040px;
  text-align: center;
}

.company-intro-lead {
  margin: clamp(50px, 6vw, 85px) 0 0;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 2;
  letter-spacing: .08em;
  color: #656760;
}

.company-story,
.company-message-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr);
  gap: clamp(60px,8vw,130px);
  align-items: center;
  margin-top: clamp(130px,14vw,230px);
}

.company-story-image,
.company-message-photo {
  position: relative;
}

.company-story-image-inner,
.company-message-photo-inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.2 / 1;
  background: #ebe8e0;
}

.company-message-photo-inner {
  aspect-ratio: 1 / 1.12;
}

.company-story-image img,
.company-message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
  transform: scale(1.09);
  filter: saturate(.90) contrast(.98) brightness(1.02);
  transition:
    opacity 1.5s cubic-bezier(.22,.61,.36,1),
    transform 2.6s cubic-bezier(.22,.61,.36,1);
}

.company-image-curtain {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  background: #e9e5dc;
  transform: translate3d(0,0,0);
  transition: transform 1.7s cubic-bezier(.76,0,.24,1);
}

.company-image-reveal.is-visible .company-image-curtain {
  transform: translate3d(102%,0,0);
}

.company-image-reveal.is-visible img {
  opacity: 1;
  transform: scale(1.035);
}

.company-photo-number {
  position: absolute;
  left: -42px;
  bottom: -32px;
  font-size: clamp(70px,8vw,130px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(111,126,111,.11);
  opacity: 0;
  transform: translate3d(0,18px,0);
  transition:
    opacity 1.4s ease .55s,
    transform 1.6s cubic-bezier(.22,.61,.36,1) .55s;
  pointer-events: none;
}

.company-image-reveal.is-visible .company-photo-number {
  opacity: 1;
  transform: translate3d(0,0,0);
}

.company-story-copy h3 {
  margin: 0 0 clamp(38px,4vw,58px);
  font-size: clamp(28px,3vw,44px);
  line-height: 1.8;
  letter-spacing: .07em;
  font-weight: 300;
  color: #454842;
}

.company-body {
  position: relative;
  padding-left: 32px;
}

.company-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, rgba(127,138,119,0), rgba(127,138,119,.40), rgba(127,138,119,0));
  transition: height 1.7s cubic-bezier(.22,.61,.36,1) .35s;
}

.company-body.is-visible::before {
  height: calc(100% - 14px);
}

.company-body p {
  margin: 0 0 24px;
  font-size: clamp(15px,1.05vw,17px);
  line-height: 2.2;
  letter-spacing: .045em;
  color: #62645e;
}

.company-body p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   STATEMENT
========================================================= */

.company-statement {
  position: relative;
  padding: clamp(20px,4vw,60px) 0 clamp(150px,16vw,250px);
}

.company-statement-inner {
  text-align: center;
}

.company-statement-line {
  width: 1px;
  height: 0;
  margin: 0 auto 60px;
  background: linear-gradient(to bottom, rgba(127,138,119,0), rgba(127,138,119,.45), rgba(127,138,119,0));
  transition: height 1.6s cubic-bezier(.22,.61,.36,1);
}

.company-statement-inner.is-visible .company-statement-line {
  height: 72px;
}

.company-statement p {
  margin: 0;
  font-size: clamp(23px,2.8vw,42px);
  line-height: 2;
  font-weight: 300;
  letter-spacing: .09em;
  color: #656760;
}

.company-statement p span {
  color: #465d52;
}


/* =========================================================
   MESSAGE
========================================================= */

.company-message {
  background: #f3f0e9;
}

.company-message-head {
  max-width: 1050px;
  text-align: center;
}

.company-message-grid {
  grid-template-columns: minmax(0,1fr) minmax(320px,.82fr);
}

.company-message-copy {
  position: relative;
}

.company-sign {
  margin-top: clamp(46px,5vw,70px);
  padding-top: 28px;
  border-top: 1px solid rgba(140,154,132,.28);
  color: #62645e;
}

.company-sign span,
.company-sign strong {
  display: block;
}

.company-sign span {
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: .08em;
}

.company-sign strong {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: .08em;
}


/* =========================================================
   PHILOSOPHY
========================================================= */

.company-philosophy {
  background: #f7f5f0;
}

.company-philosophy-head {
  max-width: 1050px;
  text-align: center;
}

.company-philosophy-list {
  margin-top: clamp(110px,12vw,190px);
  border-top: 1px solid rgba(140,154,132,.30);
}

.company-philosophy-item {
  display: grid;
  grid-template-columns: minmax(220px,.65fr) 1.35fr;
  gap: clamp(50px,8vw,120px);
  align-items: start;
  padding: clamp(55px,6vw,86px) 0;
  border-bottom: 1px solid rgba(140,154,132,.30);
}

.company-philosophy-meta,
.company-business-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 11px;
  font-size: 13px;
  letter-spacing: .20em;
  color: #68746c;
}

.company-philosophy-meta i,
.company-business-meta i {
  display: block;
  width: 42px;
  height: 1px;
  background: rgba(88,104,94,.52);
}

.company-philosophy-copy h3 {
  margin: 0 0 26px;
  font-size: clamp(28px,3vw,44px);
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: .07em;
  color: #454842;
}

.company-philosophy-copy p {
  max-width: 680px;
  margin: 0;
  font-size: clamp(15px,1.05vw,17px);
  line-height: 2.2;
  letter-spacing: .045em;
  color: #62645e;
}


/* =========================================================
   BUSINESS
========================================================= */

.company-business {
  background: #f3f0e9;
}

.company-business-head {
  max-width: 1050px;
  text-align: center;
}

.company-business-lead {
  margin: clamp(48px,5vw,75px) 0 0;
  font-size: clamp(18px,1.8vw,26px);
  line-height: 2;
  letter-spacing: .07em;
  color: #696b65;
}

.company-business-list {
  margin-top: clamp(110px,12vw,190px);
  border-top: 1px solid rgba(140,154,132,.30);
}

.company-business-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px,.62fr) 1fr .55fr 70px;
  gap: 36px;
  align-items: center;
  min-height: 150px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(140,154,132,.30);
  transition: padding .55s cubic-bezier(.22,.61,.36,1);
}

.company-business-row:hover {
  padding-left: 14px;
  padding-right: 14px;
}

.company-business-row h3 {
  margin: 0;
  font-size: clamp(21px,2vw,30px);
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: .06em;
  color: #454842;
}

.company-business-row > p {
  margin: 0;
  font-size: 16px;
  letter-spacing: .08em;
  color: #656760;
}

.company-business-arrow {
  justify-self: end;
  position: relative;
  display: block;
  width: 44px;
  height: 20px;
}

.company-business-arrow i {
  position: absolute;
  top: 10px;
  right: 0;
  width: 38px;
  height: 1px;
  background: #617067;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}

.company-business-arrow i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #617067;
  border-right: 1px solid #617067;
  transform: rotate(45deg);
}

.company-business-row:hover .company-business-arrow i {
  transform: translateX(7px);
}


/* =========================================================
   HISTORY
========================================================= */

.company-history {
  background: #f9f7f2;
}

.company-history-grid {
  display: grid;
  grid-template-columns: minmax(300px,.72fr) 1.28fr;
  gap: clamp(70px,10vw,150px);
  align-items: start;
}

.company-history-head {
  position: sticky;
  top: 120px;
}

.company-timeline {
  position: relative;
}

.company-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 24px;
  width: 1px;
  background: rgba(140,154,132,.34);
}

.company-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 42px;
  padding: 0 0 clamp(75px,8vw,120px) 44px;
}

.company-timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9ca694;
  box-shadow: 0 0 0 6px #f9f7f2;
}

.company-year {
  font-family: "Times New Roman", serif;
  font-size: 23px;
  letter-spacing: .08em;
  color: #7f8a77;
}

.company-timeline-item h3 {
  margin: 0 0 22px;
  font-size: clamp(22px,2.2vw,32px);
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: .06em;
  color: #454842;
}

.company-timeline-item p {
  margin: 0;
  font-size: clamp(15px,1.05vw,17px);
  line-height: 2.15;
  letter-spacing: .045em;
  color: #62645e;
}


/* =========================================================
   PROFILE
========================================================= */

.company-profile {
  background: #f3f0e9;
}

.company-profile-head {
  max-width: 1050px;
  text-align: center;
}

.company-profile-table {
  margin-top: clamp(100px,11vw,170px);
  border-top: 1px solid rgba(140,154,132,.32);
}

.company-profile-table > div {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 50px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(140,154,132,.32);
}

.company-profile-table dt {
  font-size: 14px;
  line-height: 2;
  letter-spacing: .08em;
  color: #747a74;
}

.company-profile-table dd {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .05em;
  color: #555b56;
}


/* =========================================================
   END
========================================================= */

.company-end {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.company-end-photo {
  position: absolute;
  inset: 0;
}

.company-end-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
  transform: scale(1.09);
  filter: saturate(.88) contrast(.96) brightness(1.02);
  transition:
    opacity 1.55s cubic-bezier(.22,.61,.36,1),
    transform 2.7s cubic-bezier(.22,.61,.36,1);
}

.company-end-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to right, rgba(32,42,35,.56), rgba(32,42,35,.22));
}

.company-end .company-image-curtain {
  background: #e5e1d8;
}

.company-end-copy {
  position: relative;
  z-index: 5;
}

.company-end-copy .company-small {
  color: rgba(255,255,255,.78);
}

.company-end-copy h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px,5vw,72px);
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: .08em;
  color: #fff;
}

.company-end-copy > p:last-child {
  margin: clamp(40px,5vw,70px) 0 0;
  font-size: clamp(17px,1.5vw,22px);
  line-height: 2;
  letter-spacing: .08em;
  color: rgba(255,255,255,.88);
}


/* =========================================================
   REVEAL
========================================================= */

.company-reveal {
  opacity: 0;
  transform: translate3d(0,24px,0);
  filter: blur(5px);
  transition:
    opacity 1.35s cubic-bezier(.22,.61,.36,1),
    transform 1.55s cubic-bezier(.22,.61,.36,1),
    filter 1.25s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform, filter;
}

.company-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0,0,0);
  filter: blur(0);
}

.company-reveal-label {
  transform: translate3d(0,10px,0);
  filter: blur(2px);
  transition-duration: 1.1s;
}

.company-reveal-title {
  transform: translate3d(0,30px,0);
  filter: blur(6px);
}

.company-reveal-text {
  transform: translate3d(0,18px,0);
  filter: blur(3px);
  transition-delay: .08s;
}

.company-reveal-statement {
  transform: translate3d(0,30px,0);
  filter: blur(5px);
  transition-duration: 1.7s;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 960px) {
  .company-story,
  .company-message-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .company-story-image,
  .company-message-photo {
    width: min(92%,760px);
  }

  .company-story-copy,
  .company-message-copy {
    width: min(88%,680px);
    margin-left: auto;
  }

  .company-history-grid {
    grid-template-columns: 1fr;
  }

  .company-history-head {
    position: relative;
    top: auto;
  }

  .company-business-row {
    grid-template-columns: 200px 1fr .55fr 50px;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  .company-section {
    padding: 120px 0 140px;
  }

  .company-page .section-eyebrow {
    font-size: 13px !important;
    letter-spacing: .20em !important;
  }

  .company-main-title {
    font-size: clamp(32px,9vw,44px);
    line-height: 1.65;
  }

  .company-hero {
    min-height: 92svh;
  }

  .company-hero-brand {
    top: 24px;
  }

  .company-hero-brand span {
    font-size: 10px;
    letter-spacing: .30em;
    padding-left: .30em;
  }

  .company-hero-inner {
    padding-top: 30px;
  }

  .company-hero-title {
    font-size: clamp(38px,11vw,52px);
    line-height: 1.55;
    letter-spacing: .05em;
  }

  .company-hero-lead {
    margin-top: 42px;
    font-size: 15px;
    line-height: 2.05;
  }

  .company-hero-scroll span {
    font-size: 10px;
  }

  .company-intro-head,
  .company-message-head,
  .company-philosophy-head,
  .company-business-head,
  .company-profile-head {
    text-align: left;
  }

  .company-intro-lead,
  .company-business-lead {
    margin-top: 42px;
    font-size: clamp(18px,5.3vw,24px);
    line-height: 1.9;
  }

  .company-story,
  .company-message-grid {
    margin-top: 100px;
    gap: 58px;
  }

  .company-story-image,
  .company-message-photo,
  .company-story-copy,
  .company-message-copy {
    width: 100%;
  }

  .company-story-image-inner,
  .company-message-photo-inner {
    aspect-ratio: 1 / 1.08;
  }

  .company-photo-number {
    left: -10px;
    bottom: -22px;
    font-size: 72px;
  }

  .company-story-copy h3 {
    font-size: 28px;
    line-height: 1.8;
  }

  .company-body {
    padding-left: 24px;
  }

  .company-body p,
  .company-philosophy-copy p,
  .company-timeline-item p {
    font-size: 15px;
    line-height: 2.1;
  }

  .company-statement {
    padding: 0 0 140px;
  }

  .company-statement p {
    font-size: clamp(21px,6vw,29px);
    line-height: 2;
  }

  .company-philosophy-list,
  .company-business-list,
  .company-profile-table {
    margin-top: 80px;
  }

  .company-philosophy-item {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 50px 0;
  }

  .company-philosophy-meta,
  .company-business-meta {
    font-size: 12px;
  }

  .company-philosophy-copy h3 {
    font-size: 28px;
  }

  .company-business-row {
    grid-template-columns: 1fr 42px;
    gap: 18px;
    min-height: 0;
    padding: 38px 0;
  }

  .company-business-meta {
    grid-column: 1 / -1;
  }

  .company-business-row h3 {
    grid-column: 1;
    font-size: 22px;
  }

  .company-business-row > p {
    grid-column: 1;
    font-size: 15px;
  }

  .company-business-arrow {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
  }

  .company-business-row:hover {
    padding-left: 0;
    padding-right: 0;
  }

  .company-timeline-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-left: 40px;
  }

  .company-year {
    font-size: 20px;
  }

  .company-profile-table > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .company-end {
    min-height: 78svh;
  }

  .company-end-shade {
    background: rgba(32,42,35,.46);
  }

  .company-end-copy h2 {
    font-size: clamp(34px,9vw,44px);
    line-height: 1.65;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .company-reveal,
  .company-story-image img,
  .company-message-photo img,
  .company-end-photo img,
  .company-image-curtain,
  .company-photo-number {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .company-image-curtain {
    display: none !important;
  }

  .company-hero-scroll i::after {
    animation: none !important;
  }
}
