@charset "UTF-8";

html:has(> .p-corporate-page) {
  scroll-behavior: smooth;
}

/* PC下層4ページ共通。既存のメニュー・フッター自体は上書きしない。 */
.p-corporate-page main {
  --corporate-muted: #a7a7a7;
  /* 写真に入った円弧と合うよう、1380px を超えたら円弧の深さも写真と同じ比率で大きくする */
  --curve-depth: calc(56 * var(--design-px));
  margin-top: calc(-1 * var(--header-bar-height));
}

/* XD の左右対称の円弧を、セクションの高さに依存させず共用する。 */
.p-corporate-curve {
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--curve-depth) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1380 55.258' preserveAspectRatio='none'%3E%3Cpath d='M0 0A702 702 0 0 0 273 55.258H1107A702 702 0 0 0 1380 0Z'/%3E%3C/svg%3E") bottom / 100% var(--curve-depth) no-repeat;
}

/* 写真の表示位置と透過率は XD から書き出した画像に保持している。 */
.p-corporate-texture {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-main);
}

/* 画像はセクションと同じ寸法で書き出してある。1380px を超えても横だけ引き伸ばさず、縦横同じ比率で広げて上下を切り取る */
.p-corporate-texture::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--corporate-texture) center / cover no-repeat;
  content: "";
}

.p-corporate-hero {
  position: relative;
  isolation: isolate;
  height: 665px;
  overflow: clip;
}

.p-corporate-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 465px;
  background: var(--color-main);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1380 465' preserveAspectRatio='none'%3E%3Cpath d='M-429-237H1809A702 702 0 0 1 1107 465H273A702 702 0 0 1-429-237Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  content: "";
}

.p-corporate-hero__inner {
  position: relative;
  width: var(--container);
  height: 100%;
  margin-inline: auto;
}

.p-corporate-hero__heading {
  position: absolute;
  top: 110px;
  left: 0;
  color: var(--color-white);
}

.p-corporate-hero__en {
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.5;
}

.p-corporate-hero__title {
  margin: 0;
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.65;
}

.p-corporate-hero__title img {
  display: block;
  width: 100%;
  height: auto;
}

.p-corporate-hero--vertical .p-corporate-hero__heading {
  top: 100px;
  left: 0;
  display: flex;
  gap: 20px;
}

/* XD の位置に合わせ、英文だけを下へ 10px・右へ 6px ずらす（和文の列の位置は変えない） */
.p-corporate-hero--vertical .p-corporate-hero__en {
  position: relative;
  top: 10px;
  left: 6px;
  writing-mode: vertical-rl;
  line-height: 22px;
}

/* 和文は XD より 5px 下にあったため上げ、帯は span::before の top で同じだけ戻して位置を保つ */
.p-corporate-hero--vertical .p-corporate-hero__title {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 26px;
  padding-top: 7px;
  font-size: 3.5rem;
  line-height: 40px;
}

.p-corporate-hero--vertical .p-corporate-hero__title span {
  position: relative;
  isolation: isolate;
  left: -5px;
  writing-mode: vertical-rl;
  letter-spacing: 5px;
  white-space: nowrap;
}

.p-corporate-hero--vertical .p-corporate-hero__title span::before {
  position: absolute;
  z-index: -1;
  top: -3px;
  right: -17px;
  width: 26px;
  height: calc(100% + 4px);
  background: var(--color-accent);
  transform-origin: top center;
  animation: report-title-line var(--duration-slow) var(--easing-out) both;
  content: "";
}

.p-corporate-hero--vertical .p-corporate-hero__title span + span::before {
  animation-delay: var(--duration-slow);
}

.p-corporate-hero--company .p-corporate-hero__heading,
.p-corporate-hero--business .p-corporate-hero__heading {
  isolation: isolate;
  left: 97px;
  width: 50px;
}

.p-corporate-hero--company .p-corporate-hero__heading {
  top: 159px;
}

.p-corporate-hero--business .p-corporate-hero__heading {
  top: 158px;
  left: 94px;
}

.p-corporate-hero--company .p-corporate-hero__heading::before,
.p-corporate-hero--business .p-corporate-hero__heading::before {
  position: absolute;
  z-index: -1;
  top: -10px;
  left: 37px;
  width: 26px;
  height: 240px;
  background: var(--color-accent);
  transform-origin: top center;
  animation: report-title-line var(--duration-slow) var(--easing-out) both;
  content: "";
}

.p-corporate-hero--business .p-corporate-hero__heading::before {
  top: -9px;
  left: 40px;
}

.p-corporate-hero--company .p-corporate-hero__en,
.p-corporate-hero--business .p-corporate-hero__en {
  position: absolute;
  top: 0;
  right: calc(100% + 4px);
  writing-mode: vertical-rl;
  white-space: nowrap;
}

.p-corporate-hero__image {
  position: absolute;
  top: 0;
  left: 297px;
  width: 683px;
  height: 665px;
  border-radius: 50px;
  object-fit: cover;
}

.p-corporate-anchor {
  position: absolute;
  top: 518px;
  left: 0;
  width: 211px;
  font-size: var(--fs-xs);
  line-height: 18px;
}

.p-corporate-anchor ul {
  display: grid;
  gap: 13px;
  list-style: none;
}

.p-corporate-anchor a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--corporate-muted);
  padding-bottom: var(--space-2xs);
  color: var(--corporate-muted);
  letter-spacing: -.05em;
  white-space: nowrap;
}

.p-corporate-anchor a::after {
  position: absolute;
  top: 6px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.p-corporate-breadcrumb {
  width: var(--container);
  margin: 20px auto 0;
  padding-bottom: 27px;
  color: var(--color-dark);
  font-size: 1.3rem;
  line-height: 18px;
  text-align: right;
}

.p-corporate-breadcrumb ol {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  list-style: none;
}

.p-corporate-breadcrumb li + li::before {
  margin-right: 14px;
  content: "＞";
}

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

.p-corporate-columns {
  display: grid;
  grid-template-columns: 247px 683px;
  gap: 50px;
}

.p-corporate-feature {
  display: grid;
  grid-template-columns: 412px 490px;
  align-items: start;
  gap: 78px;
}

.p-corporate-feature--reverse {
  grid-template-columns: 490px 412px;
}

.p-corporate-feature--reverse .p-corporate-feature__visual {
  grid-column: 2;
  grid-row: 1;
}

.p-corporate-feature--reverse .p-corporate-feature__body {
  grid-column: 1;
  grid-row: 1;
}

.p-business-service__number,
.p-remico-section__number {
  position: absolute;
  left: -17px;
  display: grid;
  place-items: center;
  width: 95px;
  height: 56px;
  background: var(--color-main);
  color: var(--color-white);
  line-height: 1;
}

.p-corporate-section-head__en {
  margin-bottom: 9px;
  color: var(--color-main);
  font-size: var(--fs-md);
  line-height: 24px;
}

.p-corporate-section-head__title {
  font-size: var(--fs-2xl);
  font-weight: 500;
  line-height: 50px;
}

.p-corporate-copy {
  font-size: var(--fs-md);
  line-height: 24px;
}

.p-corporate-page main [id] {
  scroll-margin-top: calc(var(--header-bar-height) + var(--space-md));
}

.p-corporate-page main img {
  max-width: 100%;
}

@media (width <= 767px) {
  .p-corporate-page main {
    position: relative;
    --corporate-hero-photo-top: 216px;
    --corporate-hero-background-bottom: 266px;
    --corporate-hero-height: 584px;
    --corporate-hero-title-line: 40px;
    --corporate-anchor-columns: repeat(2, minmax(0, 1fr));
    --curve-depth: 28px;
  }

  .p-corporate-curve {
    mask:
      linear-gradient(#000 0 0) top / 100% calc(100% - var(--curve-depth) + 1px) no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 393 28' preserveAspectRatio='none'%3E%3Cpath d='M0 0C131 37.333 262 37.333 393 0Z'/%3E%3C/svg%3E") bottom / 100% var(--curve-depth) no-repeat;
  }

  .p-corporate-hero {
    height: var(--corporate-hero-height);
    overflow: visible;
  }

  .p-corporate-hero::before {
    top: 64px;
    height: calc(var(--corporate-hero-background-bottom) - 64px);
    mask: none;
  }

  .p-corporate-hero__inner,
  .p-corporate-container {
    width: calc(100% - 48px);
  }

  .p-corporate-hero__heading,
  .p-corporate-hero--vertical .p-corporate-hero__heading,
  .p-corporate-hero--company .p-corporate-hero__heading,
  .p-corporate-hero--business .p-corporate-hero__heading {
    top: 96px;
    left: 8px;
    display: block;
    width: calc(100% - 8px);
  }

  .p-corporate-hero__en,
  .p-corporate-hero--vertical .p-corporate-hero__en,
  .p-corporate-hero--company .p-corporate-hero__en,
  .p-corporate-hero--business .p-corporate-hero__en {
    position: static;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 24px;
    writing-mode: horizontal-tb;
  }

  .p-corporate-hero--company .p-corporate-hero__heading::before,
  .p-corporate-hero--business .p-corporate-hero__heading::before {
    top: 65px;
    left: -8px;
    width: 178px;
    height: 20px;
    transform-origin: left center;
    animation-name: form-title-line;
  }

  .p-corporate-hero--company .p-corporate-hero__title,
  .p-corporate-hero--business .p-corporate-hero__title {
    width: 155px;
    margin-top: 17px;
    margin-left: 1px;
    line-height: 1;
  }

  .p-corporate-hero--business .p-corporate-hero__title {
    width: 158px;
    margin-left: 2px;
  }

  .p-corporate-hero--vertical .p-corporate-hero__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3xs);
    margin-top: var(--space-2xs);
    padding: 0;
    font-size: 3rem;
    font-weight: 500;
    line-height: var(--corporate-hero-title-line);
  }

  .p-corporate-hero--vertical .p-corporate-hero__title span {
    left: 0;
    writing-mode: horizontal-tb;
    letter-spacing: .12em;
  }

  .p-corporate-hero--vertical .p-corporate-hero__title span::before {
    inset: auto -8px 1px;
    width: auto;
    height: 16px;
    transform-origin: left center;
    animation-name: form-title-line;
  }

  .p-corporate-hero__image {
    top: var(--corporate-hero-photo-top);
    left: 0;
    width: 100%;
    height: 240px;
    border-radius: 20px;
  }

  .p-corporate-anchor {
    top: calc(var(--corporate-hero-photo-top) + 298px);
    width: 100%;
    font-size: 1.3rem;
    line-height: 20px;
  }

  .p-corporate-anchor ul {
    grid-template-columns: var(--corporate-anchor-columns);
    gap: 15px 15px;
  }

  .p-corporate-anchor a {
    padding-bottom: var(--space-2xs);
    color: var(--color-dark);
    letter-spacing: 0;
    white-space: normal;
  }

  .p-corporate-anchor a::after {
    top: 4px;
    right: 5px;
    width: 6px;
    height: 6px;
    border-color: var(--corporate-muted);
    transform: rotate(45deg);
    transition: border-color var(--duration-base) var(--easing-out);
  }

  .p-corporate-anchor a:is(:hover, :focus-visible)::after {
    border-color: var(--color-main);
  }

  .p-corporate-breadcrumb {
    position: absolute;
    top: calc(var(--corporate-hero-photo-top) + 254px);
    left: 24px;
    width: calc(100% - 48px);
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    line-height: 20px;
    text-align: left;
  }

  .p-corporate-breadcrumb ol {
    justify-content: flex-start;
    gap: 9px;
  }

  .p-corporate-breadcrumb li + li::before {
    margin-right: 9px;
  }

  .p-corporate-columns,
  .p-corporate-feature,
  .p-corporate-feature--reverse {
    display: block;
  }

  /* 後続のページ別 PC 指定よりも、SP の共通寸法を優先する。 */
  .p-corporate-page .p-business-service__number,
  .p-corporate-page .p-remico-section__number {
    top: -14px;
    left: -10px;
    width: 70px;
    height: 42px;
    font-size: 3rem;
  }

  .p-corporate-section-head__en {
    margin-bottom: 0;
    font-size: 1.4rem;
    line-height: 20px;
  }

  .p-corporate-section-head__title {
    font-size: 2.6rem;
    line-height: 38px;
  }

  .p-corporate-copy {
    font-size: 1.4rem;
    line-height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(> .p-corporate-page) {
    scroll-behavior: auto;
  }

  .p-corporate-page .c-heading-v__ja::before,
  .p-corporate-page :is(.c-button, .c-page-anchor, .c-icon-arrow, .c-icon-arrow--box, .c-readmore__icon),
  .p-corporate-page :is(.c-page-anchor, .c-icon-arrow, .c-icon-arrow--box, .c-readmore__icon)::before,
  .p-corporate-page :is(.c-page-anchor, .c-icon-arrow, .c-icon-arrow--box, .c-readmore__icon)::after {
    transition: none;
  }

  .p-corporate-hero--company .p-corporate-hero__heading::before,
  .p-corporate-hero--business .p-corporate-hero__heading::before,
  .p-corporate-hero--vertical .p-corporate-hero__title span::before {
    animation: none;
  }
}
