/* Section 04 only. Shared TOP and comparison styles remain untouched. */
#company {
  --company-ink: #16394c;
  --company-teal: #237e82;
  background: #f7f5ef;
  color: var(--company-ink);
  padding: clamp(72px, 7vw, 104px) 0 16px;
  font-family: "RIVERST Company Noto", "Noto Sans JP", sans-serif;
}
#company .company-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
#company .company-copy { padding: 0 0 42px; }
#company .eyebrow {
  margin: 0 0 30px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: .13em;
}
#company .eyebrow::after {
  content: "";
  display: block;
  width: 38px;
  height: 1px;
  margin-top: 13px;
  background: var(--company-teal);
}
#company h2 {
  margin: 0;
  font-size: clamp(34px, 4.1vw, 56px);
  line-height: 1.5;
  letter-spacing: -.045em;
  font-weight: 700;
}
#company .company-trust { position: relative; display: inline-block; color: var(--company-teal); }
#company .company-trust-line {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 11px;
  background: var(--company-teal);
  transform-origin: left;
}
#company .company-profile { margin-top: 24px; }
#company .company-president { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 10px; font-size: 13px; line-height: 1.7; }
#company .company-president strong { font-size: 17px; font-weight: 700; letter-spacing: .05em; }
#company .company-president .company-personal { font-size: 12px; color: #476873; }
#company .company-achievement { margin-top: 9px; }
#company .company-achievement-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; line-height: 1.5; }
#company .company-achievement-main > span { font-size: 15px; white-space: nowrap; }
#company .company-achievement-main strong { font-size: clamp(34px, 2.9vw, 42px); line-height: 1.3; font-weight: 700; letter-spacing: -.035em; color: var(--company-teal); white-space: nowrap; }
#company .company-achievement-streak { margin-top: 2px; font-size: 26px; line-height: 1.5; font-weight: 700; letter-spacing: .035em; color: var(--company-ink); }
#company .company-message {
  margin: 22px 0 23px;
  max-width: 620px;
  font-size: 16px;
  line-height: 2;
  letter-spacing: .015em;
}
#company .company-message p { margin: 0 0 6px; }
#company .company-message p:last-child { margin-bottom: 0; }
#company .company-detail {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--company-ink);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: underline;
  text-decoration-color: var(--company-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  cursor: pointer;
}
#company .company-detail svg {
  flex: none;
  width: 46px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  transition: transform 180ms ease;
}
#company .company-detail:focus-visible { outline: 2px solid var(--company-teal); outline-offset: 7px; }
#company .company-portrait { width: 100%; margin: 0; align-self: end; }
#company .company-portrait-stage { position: relative; width: 100%; isolation: isolate; }
#company .company-plane {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
#company .company-plane-paper {
  width: 100%;
  height: 100%;
  transform-origin: 50% 65%;
  transform: rotate(var(--company-plane-angle));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}
#company .company-plane-mint {
  --company-plane-angle: -4deg;
  top: 19%;
  bottom: 3%;
  left: 9%;
  width: 80%;
}
#company .company-plane-mint .company-plane-paper {
  background: #d3e8df;
  animation-name: company-mint-paper;
  animation-duration: 14s;
}
#company .company-plane-beige {
  --company-plane-angle: 5deg;
  top: 33%;
  bottom: 4%;
  left: 22%;
  width: 72%;
}
#company .company-plane-beige .company-plane-paper {
  background: #ebe5d7;
  animation-name: company-beige-paper;
  animation-duration: 17s;
}
#company.company-motion-on .company-plane-paper {
  animation-play-state: running;
}
#company .company-portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: clamp(460px, 43vw, 592px);
  max-width: 100%;
  margin: 0 auto;
  object-fit: cover;
  object-position: 80% center;
}
@media (hover: hover) and (pointer: fine) {
  #company .company-detail:hover svg { transform: translateX(5px); }
}
@keyframes company-mint-paper {
  0%, 100% { transform: translateY(-3px) rotate(-4deg); }
  50% { transform: translateY(3px) rotate(-3.5deg); }
}
@keyframes company-beige-paper {
  0%, 100% { transform: translateY(3px) rotate(5deg); }
  50% { transform: translateY(-3px) rotate(4.55deg); }
}
@media (max-width: 1000px) and (min-width: 761px) {
  #company .company-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 28px; }
  #company .company-copy { padding-bottom: 30px; }
  #company h2 { font-size: clamp(31px, 4.2vw, 42px); }
  #company .company-portrait img { height: 460px; }
  #company .company-message { line-height: 1.95; }
}
@media (max-width: 760px) {
  #company { padding-top: 64px; padding-bottom: 0; }
  #company .company-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #company .company-copy { display: contents; }
  #company .eyebrow { order: 0; font-size: 14px; margin: 0 0 23px; }
  #company .eyebrow::after { margin-top: 10px; width: 30px; }
  #company h2 { order: 1; font-size: clamp(29px, 7.7vw, 46px); line-height: 1.5; letter-spacing: -.045em; }
  #company .company-trust-line { margin-top: 9px; }
  #company .company-portrait { order: 2; width: min(100%, 340px); align-self: center; margin: 18px 0 0; }
  #company .company-plane-mint { left: 8%; width: 79%; top: 18%; bottom: 3%; }
  #company .company-plane-beige { left: 22%; width: 68%; top: 34%; bottom: 4%; }
  #company .company-portrait img { height: clamp(300px, 86vw, 380px); max-width: 100%; }
  #company .company-profile { order: 3; width: min(100%, 340px); align-self: center; margin-top: 12px; }
  #company .company-president { font-size: 12px; gap: 5px 9px; }
  #company .company-president strong { font-size: 16px; }
  #company .company-achievement { margin-top: 7px; }
  #company .company-achievement-main { gap: 4px 10px; }
  #company .company-achievement-main > span { font-size: 14px; }
  #company .company-achievement-main strong { font-size: 34px; }
  #company .company-achievement-streak { font-size: 25px; margin-top: 1px; }
  #company .company-message { order: 4; margin: 14px 0 16px; font-size: 16px; line-height: 1.95; }
  #company .company-message p { margin-bottom: 9px; }
  #company .company-detail { order: 5; align-self: flex-start; margin-bottom: 28px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #company .company-detail svg { transition: none; }
  #company .company-plane-paper { animation: none; }
}
