/* 複数ページで使うセクション。Bootstrap・common.cssと併用する。 */

/* 縦書き見出し＋写真の下層ページMV */
.page-mv {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: calc(var(--header-height, 4.5rem) + 1.5rem);
  margin-bottom: 0;
  color: var(--color-black);
}

.page-mv-heading {
  position: relative;
  z-index: 2;
  padding: 0 1rem 1.75rem;
  gap: 1rem;
}

.page-mv-heading .section-title {
  font-size: 1.875rem;
}

.page-mv-visual {
  box-sizing: border-box;
  position: relative;
  width: 80%;
  min-width: 0;
  margin-left: auto;
}

.page-mv-visual .kirikabu-image-side {
  width: 4.5rem;
  right: calc(100% - 0.75rem);
  bottom: 3.5rem;
}

.page-mv-visual .kirikabu-image-overlap {
  width: 8rem;
  bottom: -3rem;
  transform: translateX(-35%);
}

@media (min-width: 992px) {
.page-mv {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-inline: auto;
  padding-inline: min(12.5vw, 11.25rem);
  color: var(--color-black);
  margin-bottom: 7rem;
}

.page-mv-heading {
  --vertical-title-size: calc(2.5rem + min(0.25rem, max(0rem, (100vw - 90rem) / 160)));
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  flex: 1 1 31.5%;
  min-width: min(100%, 15rem);
  padding: calc(var(--header-height, 9rem) + 3rem + min(3rem, max(0rem, (100vw - 90rem) / 16))) 1.5rem 3rem;
}

.page-mv-visual {
  box-sizing: border-box;
  position: relative;
  flex: 0 1 min(68.5%, 90vh);
  min-width: min(100%, 24rem, 90vh);
  align-self: flex-start;
}


  .page-mv { flex-direction: row; padding-top: 0; }
  .page-mv-heading { gap: 1.5rem; }
  .page-mv-heading .section-title { font-size: var(--vertical-title-size, 2rem); }
  .page-mv-visual { width: auto; margin-left: 0; }
  .page-mv-visual .kirikabu-image-side {
    width: min(9rem, 20vw);
    right: 100%;
    bottom: min(10rem, 25vw);
  }
  .page-mv-visual .kirikabu-image-overlap {
    width: min(16rem, 38vw);
    bottom: -8rem;
    transform: translateX(-28%);
  }
}

/* 画像を囲むdivで正方形を保ち、下端の年輪の基準位置も合わせる。 */
.page-mv-visual > div:first-child {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.page-mv-image {
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 画像タグには疑似要素を表示できないため、外側のdivに重ねる。 */
.page-mv-visual::after {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(241, 240, 237, 0.6) 5%, rgba(241, 240, 237, 0) 18%);
  pointer-events: none;
  content: "";
}

/* MV直後の導入セクションはSPで余白を詰める。 */
.page-mv + .split-section,
.page-mv + .kirikabu + .split-section {
  padding-top: 3rem;
}

@media (min-width: 992px) {
  .page-mv-visual > div:first-child { aspect-ratio: 1; }
  .page-mv + .split-section,
  .page-mv + .kirikabu + .split-section { padding-top: 7rem; }
}

/* 基本パターン */
.default-section {
  padding-block: 7rem;
  color: var(--color-black);
}

.default-section-text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* 基本パターン：文章＋写真の2カラム。列幅・縦並びへの切替はBootstrapに任せる。 */
.split-section {
  padding-block: 7rem;
  color: var(--color-black);
}

.split-section.split-section-filled {
  background-color: var(--color-bg-light);
}

.split-row {
  align-items: flex-end;
  row-gap: 3rem;
}

.split-copy {
  min-width: 0;
}

.split-text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 2.3;
  overflow-wrap: anywhere;
}

.split-signature {
  display: block;
  width: min(11.25rem, 100%);
  height: auto;
  margin-left: auto;
}

.split-visual {
  display: flex;
  justify-content: flex-end;
}

.split-image {
  display: block;
  width: min(27.5rem, 100%);
  height: auto;
}

/* 番号付きの図解カードを交互に並べるパターン */
.numbered-section {
  padding-block: 2rem 3rem;
  overflow: clip;
  color: var(--color-black);
  background-color: var(--color-bg);
}

.numbered-layout {
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  row-gap: 1.5rem;
}

.numbered-heading,
.numbered-card {
  box-sizing: border-box;
  flex: 0 0 100%;
  min-width: 0;
}

.numbered-heading {
  padding-block: 0 1rem;
}

.numbered-heading strong {
  text-combine-upright: all;
  font-weight: inherit;
  letter-spacing: 0;
}

.numbered-card {
  position: relative;
  isolation: isolate;
  /* 分離した重なりの中でも年輪をセクション背景色に乗算する。 */
  background-color: var(--color-bg);
  min-height: 29rem;
  padding: 1rem 0 4rem;
}

.numbered-card-offset {
  margin-top: 0;
}

.numbered-value p {
  margin: 0 0 1.5rem;
  color: var(--color-gray2);
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  text-align: left;
}

.numbered-title,
.numbered-text {
  width: 100%;
  margin-inline: auto;
}

.numbered-title {
  margin-block: 0 1rem;
  color: var(--color-deep-green);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.8;
}

.numbered-text {
  font-size: 1rem;
}

.numbered-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.numbered-icon {
  display: block;
  width: min(17.5rem, 100%);
  height: 7rem;
  margin: 1rem auto 0;
  object-fit: contain;
}

.numbered-ring {
  position: absolute;
  top: 0;
  left: var(--numbered-ring-left, calc(50% - 11.5rem));
  z-index: -1;
  width: 29rem;
  height: 29rem;
  object-fit: contain;
  opacity: 0.6;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* 見出しが先頭にあるため、偶数番目のカードは奇数番目の子要素になる。 */
.numbered-card:nth-child(odd) {
  --numbered-ring-left: calc(50% - 18rem);
}

.numbered-card:nth-child(odd) .numbered-value p {
  padding-right: 2.5rem;
  text-align: right;
}


@media (min-width: 992px) {
  .numbered-section {
    padding-block: 6rem;
    overflow: visible;
  }

  .numbered-heading,
  .numbered-card {
    flex: 0 1 min(50%, 36rem);
    min-width: min(100%, 24rem);
  }

  .numbered-heading {
    padding-block: 3rem;
  }

  .numbered-card {
    min-height: 32rem;
    padding: 3rem min(5rem, 7vw);
  }

  .numbered-card-offset {
    margin-top: 6rem;
  }

  /* 見出しの隣のカードを下段2枚の間へ寄せる。 */
  .numbered-heading + .numbered-card {
    left: calc(-1 * min(9rem, max(0rem, (100cqw - 48rem) / 2)));
  }

  .numbered-value p,
  .numbered-card:nth-child(odd) .numbered-value p {
    padding-right: 0;
    font-size: 3.75rem;
    text-align: center;
  }

  .numbered-title,
  .numbered-text {
    width: min(100%, 19rem);
  }

  .numbered-icon {
    width: min(16rem, 100%);
  }

  .numbered-ring {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
  }
}

/* 証明書・資料画像と説明文の組み合わせ */
.document-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.document-image {
  display: block;
  width: min(12.5rem, 100%);
  height: auto;
}

.document-content {
  flex: 0 1 38rem;
  min-width: 0;
}

.document-title {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.8;
}

.document-text p {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.document-details {
  width: fit-content;
}

.document-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--color-gray);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.document-detail p {
  margin: 0;
}

.section-banner img {
  display: block;
  width: 100%;
  height: min(24rem, 40vw);
  object-fit: cover;
}

/* SPは写真をずらして配置し、本文は通常のフローで高さを確保する。 */
.photo-story {
  padding-block: 2.5rem 4rem;
  color: var(--color-black);
}

.photo-story-row {
  position: relative;
  display: block;
  margin-inline: 0;
  margin-bottom: 5rem;
}

.photo-story-picture img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-story-center {
  width: 100%;
  /* Bootstrapのmdカラムも、SP構成の間は本文を全幅にする。 */
  flex: none;
  padding: 94vw 1rem 0;
}

.photo-story-center .photo-story-picture {
  position: absolute;
  top: 0;
  right: 0;
  width: 36%;
}

.photo-story-side {
  position: absolute;
  padding: 0;
}

.photo-story-side-start {
  top: 21.333vw;
  left: 0;
  width: 50%;
}

.photo-story-side-end {
  top: 64vw;
  right: 0;
  width: 42.5%;
}

.photo-story-side .photo-story-picture {
  width: 100%;
}

.photo-story-side-start img {
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-story-center .photo-story-picture img {
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.photo-story-side-end img {
  aspect-ratio: 12 / 13;
  object-fit: cover;
}

.photo-story-heading {
  width: 60%;
  min-height: calc(27vw + 1rem);
  margin-block: 0 1.5rem;
}

.photo-story-text {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 2.1;
  overflow-wrap: anywhere;
}

.photo-story-text p {
  margin: 0 0 2rem;
}

.photo-story-text p:last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .photo-story-row {
    display: flex;
  }

  .photo-story-center,
  .photo-story-side {
    position: relative;
    inset: auto;
    width: 33.33333333%;
    flex: 0 0 33.33333333%;
    padding: 0 0.75rem;
  }

  .photo-story-center .photo-story-picture {
    position: static;
  }

  .photo-story-side-start img,
  .photo-story-center .photo-story-picture img,
  .photo-story-side-end img {
    aspect-ratio: auto;
  }

  /* 写真を左右に添え、縦書き見出しと文章を中央に置く構成 */
  .photo-story {
    padding-block: 6rem;
    color: var(--color-black);
  }

  .photo-story-row {
    margin-inline: 0;
    row-gap: 3rem;
    margin-bottom: 6rem;
  }

  .photo-story-picture img {
    display: block;
    width: 100%;
    height: auto;
  }

  .photo-story-center .photo-story-picture {
    width: min(17rem, 100%);
    margin-inline: auto;
  }

  .photo-story-side {
    display: flex;
    align-items: flex-start;
  }

  .photo-story-side-start {
    padding-left: 0;
    padding-top: min(16rem, max(0rem, calc(100vw - 48rem)));
  }

  .photo-story-side-start .photo-story-picture {
    width: min(14rem, 100%);
  }

  .photo-story-side-end {
    justify-content: flex-end;
    padding-right: 0;
    padding-top: min(13rem, max(0rem, calc(100vw - 48rem)));
  }

  .photo-story-side-end .photo-story-picture {
    width: min(24rem, 100%);
  }

  .photo-story-heading {
    min-height: 0;
    float: left;
    width: min(10rem, 100%);
    margin-left: max(-10rem, min(0rem, calc(48rem - 100vw)));
    margin-block: 1.5rem;
  }

  .photo-story-text {
    display: flow-root;
    min-width: min(100%, 20rem);
    padding-top: min(12rem, max(0rem, calc(100vw - 48rem)));
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 2.1;
    overflow-wrap: anywhere;
  }

  .photo-story-text p {
    margin: 0 0 2rem;
  }

  .photo-story-text p:last-child {
    margin-bottom: 0;
  }

}

/* 写真＋見出し＋説明文の基本カード */
.image-card-row {
  row-gap: 3rem;
}

.image-card {
  height: 100%;
}

.image-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.image-card-body {
  padding: 1.5rem 0.5rem 0;
}

.image-card-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.image-card-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
/* 年月と説明を並べる年表 */
.timeline-section {
  --timeline-border-color: var(--color-white);
  padding-block: 9rem;
  color: var(--color-black);
  background-color: var(--color-bg);
}

.timeline-section.bg-transparent {
  --timeline-border-color: #e5e5e5;
}

/* 写真背景版。画像には緑の色調が含まれている。 */
.timeline-section.timeline-section-photo {
  padding-block: 12rem;
  color: var(--color-white);
  background: var(--color-green) url("/system_panel/uploads/images/20261003112023602212.jpg") center / cover no-repeat;
}

.timeline-section-photo .section-title {
  color: inherit;
  font-size: 1.875rem;
}

.timeline-section-photo .timeline-date {
  color: inherit;
}

.timeline-section-photo .timeline-row {
  padding-block: 3rem;
}

.timeline-section-photo .timeline-row:last-child {
  border-bottom: 1px solid var(--timeline-border-color);
}

.timeline-heading {
  margin-bottom: 3rem;
}

.timeline-row {
  align-items: center;
  row-gap: 1rem;
  margin-inline: 0;
  padding-block: 2rem;
}

.timeline-row + .timeline-row {
  border-top: 1px solid var(--timeline-border-color);
}

.timeline-date {
  margin: 0;
  color: var(--color-green);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
}

.timeline-date.timeline-date-black {
  color: var(--color-black);
}

.timeline-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
}

.timeline-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* 写真とキャプションの横送りギャラリー */
.gallery-section {
  padding-block: 9rem 5rem;
  color: var(--color-black);
}

.gallery-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 3rem;
  margin-bottom: 3rem;
}

.gallery-description {
  flex: 1 1 25rem;
  margin: 2.5rem 0 0;
  font-size: 1rem;
  line-height: 1.8;
}

.gallery-controls {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.gallery-control {
  flex: 0 0 3.125rem;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  cursor: pointer;
}

.gallery-control img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-control:hover {
  opacity: 0.8;
}

.gallery-control[aria-disabled="true"] {
  cursor: default;
}

.gallery-control:focus-visible,
.gallery-viewport:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 0.25rem;
}

.gallery-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 1rem;
}

/* CMS編集画面では、横送りせず全カードを選択・編集できるようにする。 */
:where(.gallery-section[data-gjs-type], .gallery-section:has([data-gjs-type])) .gallery-viewport {
  overflow: visible;
  scroll-snap-type: none;
}

:where(.gallery-section[data-gjs-type], .gallery-section:has([data-gjs-type])) .gallery-track {
  flex-wrap: wrap;
}

.gallery-card {
  flex: 0 0 min(100%, max(18rem, calc((100% - 2rem) / 3)));
  min-width: 0;
  scroll-snap-align: start;
}

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

.gallery-caption {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.8;
}

.gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* 見出しと画像付き案内カードの2列構成 */
.related-section {
  padding-block: 5rem 9rem;
  color: var(--color-black);
}

.related-row {
  row-gap: 3rem;
}

.related-card {
  display: flex;
  align-items: center;
  gap: min(2rem, 3vw);
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid var(--color-gray);
  color: var(--color-green);
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.related-card:hover,
.related-card:focus-visible {
  color: var(--color-green);
  background-color: var(--color-bg);
  text-decoration: none;
}

.related-card:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 0.25rem;
}

.related-image {
  flex: 0 0 auto;
  width: min(7.5rem, 22%);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.related-body {
  flex: 1;
  min-width: 0;
}

.related-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
}

.related-text {
  margin: 0;
  color: var(--color-gray2);
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.related-arrow {
  flex: 0 0 auto;
  width: min(3.125rem, 12%);
  height: auto;
  transition: transform 0.25s ease;
}

.related-card:hover .related-arrow,
.related-card:focus-visible .related-arrow {
  transform: translateX(0.25rem);
}

@media (prefers-reduced-motion: reduce) {
  .related-card,
  .related-arrow {
    transition: none;
  }
}

/* Recruit */
.recruit {
  color: var(--color-black);
}

.recruit-content {
  position: relative;
  isolation: isolate;
  padding-block: 7rem;
}

.recruit-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 3rem;
}

.recruit-row {
  align-items: stretch;
  row-gap: 3rem;
}

.recruit-heading-column {
  display: flex;
}

.recruit-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.recruit-link {
  margin-top: auto;
}

.recruit-text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.recruit-details {
  width: fit-content;
  margin-top: 3rem;
}

.recruit-detail {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--color-white);
  font-size: 1rem;
  line-height: 1.6;
}

.recruit-detail-label {
  margin: 0;
  color: var(--color-deep-green);
  font-weight: 500;
}

.recruit-detail-value {
  margin: 0;
  font-weight: 400;
  overflow-wrap: anywhere;
}

/* 年輪装飾は本文の背面に配置。CMSではアップロード先URLに差し替える。 */
.recruit-content::before,
.recruit-content::after {
  position: absolute;
  z-index: -1;
  width: min(22rem, 40%);
  aspect-ratio: 1;
  background: url("../images/top/nenrin_b.png") center / contain no-repeat;
  pointer-events: none;
  content: "";
}

.recruit-content::before {
  top: 0;
  left: 0;
}

.recruit-content::after {
  right: 0;
  bottom: 1.5rem;
  opacity: 0.6;
}

/* Access */
.access-map {
  margin-bottom: 4rem;
}

.access-map,
.access-map-frame {
  width: 100%;
}

.access-map-frame iframe {
  display: block;
  width: 100%;
  height: 21.875rem;
  border: 0;
}

.access {
  padding-block: 4rem 7rem;
  color: var(--color-black);
}

.access-row {
  align-items: stretch;
  row-gap: 3rem;
}

.access-heading-column {
  display: flex;
}

.access-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.access-link {
  margin-top: auto;
}

.access-details {
  width: 100%;
}

.access-detail {
  display: grid;
  grid-template-columns: min(8rem, 30%) minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--color-gray);
  font-size: 1rem;
  line-height: 1.8;
}

.access-detail:first-child {
  padding-top: 0;
}

.access-detail-label {
  margin: 0;
  font-weight: 600;
}

.access-detail-value {
  margin: 0;
  font-weight: 400;
  overflow-wrap: anywhere;
}
/* 写真・概要・仕様一覧で構成する詳細セクション */
.detail-section {
  padding-block: 0 6rem;
  color: var(--color-black);
}

.detail-panel + .detail-panel {
  margin-top: 7rem;
}

.detail-row {
  row-gap: 2rem;
}

.detail-image,
.detail-thumbnail {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.detail-thumbnails {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0;
  margin-top: 1rem;
  margin-inline: -0.25rem;
  row-gap: 0.5rem;
}

/* Bootstrapのバージョンによらず、この行のカラム間隔だけを調整する。 */
.detail-thumbnails > div {
  padding-inline: 0.5rem;
}

.detail-copy {
  padding-inline: min(1.5rem, 2vw);
}

.detail-location {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--color-deep-green);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.detail-location::before {
  flex: 0 0 0.625rem;
  height: 0.875rem;
  background: url("/system_panel/uploads/images/20260927223627922114.svg") center / contain no-repeat;
  content: "";
}

.detail-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
}

.detail-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.detail-specs {
  margin-top: 2rem;
  margin-bottom: 7rem;
}

.detail-spec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 1rem;
  padding-block: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.detail-spec + .detail-spec {
  border-top: 1px solid var(--color-gray);
}

.detail-spec-label {
  margin: 0;
  color: var(--color-deep-green);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-spec-value {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Strengths：カラム幅・切替は既存のBootstrapに任せる。 */
.strengths {
  --strengths-bg-width: 57%;
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  padding-block: 6rem 5rem;
  color: var(--color-black);
  background: linear-gradient(to right, var(--color-bg) var(--strengths-bg-width), transparent var(--strengths-bg-width));
}

.strengths-intro-row {
  align-items: flex-start;
  row-gap: 3rem;
}

.strengths.strengths-reverse {
  background: linear-gradient(to left, var(--color-bg) var(--strengths-bg-width), transparent var(--strengths-bg-width));
}

.strengths.strengths-bg-wide {
  --strengths-bg-width: 68.5%;
}

.strengths-cover {
  display: block;
  width: min(900px, calc(50cqw + 50%));
  aspect-ratio: 2.2;
  object-fit: cover;
}

.strengths-intro {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

.strengths-item {
  align-items: center;
  row-gap: 3rem;
  padding-block: 3rem;
}

.strengths-item + .strengths-item {
  margin-top: 3rem;
}

.strengths-item-title {
  margin: 0 0 3rem;
  color: var(--color-green);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.5;
}

.strengths-text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.strengths-list {
  margin: 1.5rem 0;
}

.strengths-list p {
  position: relative;
  margin: 0;
  padding-left: 1em;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.strengths-list p::before {
  position: absolute;
  left: 0;
  content: "・";
}

.strengths-examples {
  margin-block: 1.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--color-green);
}

.strengths-examples-title {
  margin: 0 0 1rem;
  color: var(--color-green);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
}

.strengths-example {
  position: relative;
  margin: 0 0 0.25rem;
  padding-left: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.strengths-example::before {
  position: absolute;
  top: 0.9em;
  left: 0.25rem;
  width: 0.1875rem;
  height: 0.1875rem;
  border-radius: 50%;
  background-color: var(--color-green);
  transform: translateY(-50%);
  content: "";
}

.strengths-visual {
  position: relative;
}

.strengths-photo {
  display: block;
  width: min(620px, calc(50cqw + 50%));
  height: auto;
}

.strengths-number {
  position: absolute;
  top: 1.5rem;
  left: 3rem;
  margin: 0;
  color: var(--color-white);
  font-family: "Montserrat", sans-serif;
  font-size: 5rem;
  font-weight: 500;
  line-height: 1;
}

/* 画像は右端まで伸ばし、coverは900px、photoは620pxを上限とする。
   cqwは.strengthsの実幅を基準にするため、スクロールバー幅を含まない。
   既存の12カラム・左右0.75remのガターから、右端までの幅を算出する。 */
@media (min-width: 768px) {
  .strengths-cover {
    width: min(900px, calc(50cqw + 25% - 0.375rem));
    margin-top: -10rem;
  }

  /* 写真の左端を背景の57%境界へ合わせる（元の左端は50% + ガター）。 */
  .strengths-photo {
    width: min(620px, 43cqw);
    margin-left: calc(7cqw - 0.75rem);
  }

  .strengths-number {
    left: calc(7cqw + 2.25rem);
  }

  /* 左右反転版。列幅を維持し、写真の張り出す方向も反転する。 */
  .strengths-reverse .strengths-intro-row,
  .strengths-reverse .strengths-item {
    flex-direction: row-reverse;
  }

  .strengths-reverse .strengths-cover {
    margin-left: calc(100% - min(900px, 50cqw + 25% - 0.375rem));
  }

  .strengths-reverse .strengths-photo {
    margin-left: calc(100% - (7cqw - 0.75rem) - min(620px, 43cqw));
  }

  .strengths-reverse .strengths-number {
    left: auto;
    right: calc(7cqw + 2.25rem);
  }
}

/* Products */
.products {
  padding-block: 7rem;
  color: var(--color-black);
}

.products-heading {
  align-items: flex-end;
  row-gap: 1.5rem;
  margin-bottom: 3rem;
}

.products-description {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

.products-grid {
  row-gap: 3rem;
}

.products-media {
  position: relative;
  aspect-ratio: 3 / 2;
  min-height: 14rem;
}

.products-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.products-card:hover {
  color: inherit;
}

.products-card:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 0.25rem;
}

.products-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-media-text {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: var(--color-white);
  background-color: var(--color-green);
  height: 100%;
}

.products-card:hover .products-media-text,
.products-card:focus-within .products-media-text {
  opacity: 1;
}

/* タッチ端末では説明を隠さず、画像の下に表示する。 */
@media (hover: none) {
  .products-media:has(.products-media-text) {
    aspect-ratio: auto;
  }

  .products-media:has(.products-media-text) img {
    position: static;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .products-media-text {
    position: static;
    height: auto;
    opacity: 1;
  }
}

/* CMSでは画像の下に緑の説明欄を並べ、常時編集できるようにする。 */
.products-grid:is([data-gjs-type], :has([data-gjs-type])) .products-media {
  aspect-ratio: auto;
}

.products-grid:is([data-gjs-type], :has([data-gjs-type])) .products-media img {
  position: static;
  height: auto;
  aspect-ratio: 3 / 2;
}

.products-grid:is([data-gjs-type], :has([data-gjs-type])) .products-media-text {
  position: static;
  height: auto;
  opacity: 1;
  transition: none;
  background-color: var(--color-green);
}

.products-media-text p {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

.products-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-block: 1rem;
  color: inherit;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
}

.products-link p {
  margin: 0;
}

.products-link::after {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1rem;
  background-color: var(--color-green);
  clip-path: polygon(
    0 43%,
    76% 43%,
    43% 9%,
    53% 0,
    100% 50%,
    53% 100%,
    43% 91%,
    76% 57%,
    0 57%
  );
  content: "";
}

.products-link-anchor::after {
  transform: rotate(90deg);
}

.products-link:hover {
  color: var(--color-green);
}

.products-link:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 0.25rem;
}

.products-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2rem;
  margin-top: 3rem;
}

.products-notice-label {
  flex-shrink: 0;
  padding: 0.25rem 1rem;
  border-radius: 0.25rem;
  color: var(--color-white);
  background-color: var(--color-green);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.products-notice-label p {
  margin: 0;
}

.products-notice-text {
  flex: 1 1 20rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* Flow */
.flow {
  position: relative;
  padding-block: 7rem;
  color: var(--color-black);
  background-color: rgb(233 238 235 / 75%);
}

.flow-row {
  row-gap: 3rem;
}

.flow-step {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 2rem 2.5rem;
  border-radius: 0.25rem;
  background-color: var(--color-white);
}

.flow-step-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: 4rem;
}

.flow-number {
  flex: 0 0 2rem;
  margin: 0;
  color: var(--color-deep-green);
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.5;
}

.flow-step-title {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}

.flow-step-description {
  flex: 2 1 22rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* 2件目以降の上に矢印を付け、最後のカードの下には表示しない。 */
.flow-step + .flow-step::before {
  position: absolute;
  top: -2.5rem;
  left: 2.9375rem;
  z-index: 1;
  width: 1.125rem;
  height: 2.5rem;
  background-color: var(--color-deep-green);
  clip-path: polygon(42% 0, 58% 0, 58% 62%, 100% 62%, 50% 100%, 0 62%, 42% 62%);
  content: "";
}

.flow-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: var(--color-bg);
}

.flow-details-label {
  flex: 1 1 6rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.8;
}

.flow-checks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
  flex: 3 1 28rem;
  gap: 0.25rem 1.5rem;
  min-width: 0;
}

@media (min-width: 992px) {
  .flow-checks {
    grid-template-columns: repeat(3, auto);
    justify-content: end;
  }
}

.flow-check {
  position: relative;
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.flow-check::before {
  position: absolute;
  top: 0.35em;
  left: 0.25rem;
  width: 0.4375rem;
  height: 0.75rem;
  border-right: 2px solid var(--color-deep-green);
  border-bottom: 2px solid var(--color-deep-green);
  transform: rotate(40deg);
  content: "";
}

.flow-note {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

/* 写真と紹介文、関連事例を組み合わせるセクション */
.feature-section {
  padding-block: 9rem;
  color: var(--color-black);
}

.feature-section.feature-section-tinted {
  background-color: rgb(233 238 235 / 75%);
}

.feature-row {
  --bs-gutter-x: 3rem;
  row-gap: 2rem;
}

.feature-image {
  display: block;
  width: 100%;
  aspect-ratio: 11 / 8;
  object-fit: cover;
}

.feature-title {
  margin: 0 0 2rem;
  padding-left: 1rem;
  border-left: 0.25rem solid var(--color-green);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.feature-subtitle {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.8;
}

.feature-text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.feature-case {
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 1px solid var(--color-green);
}

.feature-case-label {
  margin: 0 0 0.75rem;
  color: var(--color-green);
  font-size: 1.125rem;
  font-weight: 500;
}

.feature-case-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.feature-case-image {
  flex: 1 1 12rem;
  width: min(13rem, 100%);
  min-width: 0;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.feature-case-copy {
  flex: 2 1 18rem;
  min-width: 0;
}

.feature-case-location {
  margin: 0 0 0.5rem;
  color: var(--color-gray2);
  font-size: 0.875rem;
  line-height: 1.6;
}

.feature-case-location::before {
  display: inline-block;
  width: 0.5rem;
  height: 0.75rem;
  margin-right: 0.5rem;
  background: url("/system_panel/uploads/images/20260926114629236657.svg") center / contain no-repeat;
  content: "";
}

.feature-case-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.feature-case-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* 既存のフローを白いパネル内で使うバリエーション */
.flow.flow-contained {
  margin-top: 7rem;
  padding-block: 0;
  background: transparent;
}

.flow-contained > .container {
  padding: 7rem min(5rem, 5vw);
  background-color: var(--color-white);
}

.flow-step.flow-step-outlined {
  border: 1px solid var(--color-green);
  padding: 1.5rem 2.5rem;
}

/* CMSのdiv > p形式でも通常のp形式と同じ余白にする。 */
.flow-number p,
.flow-step-title p,
.flow-step-description p {
  margin: 0;
}

/* 複数項目の画像を中央で保持する公開画面用の演出。JS成功時のみ有効。 */
.strengths-scroll.is-scroll-ready .strengths-item {
  min-height: min(85vh, 42rem);
}

.strengths-scroll.is-scroll-ready .strengths-visual {
  opacity: 0;
  pointer-events: none;
}

.strengths-scroll-rail {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.strengths-scroll-stage {
  position: sticky;
  top: calc((100vh - min(70vh, 40rem)) / 2);
  height: min(70vh, 40rem);
}

.strengths-scroll-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.strengths-scroll-frame.is-previous {
  z-index: 1;
  opacity: 1;
}

.strengths-scroll-frame.is-active {
  z-index: 2;
  opacity: 1;
}

.strengths-scroll-frame.is-revealing {
  -webkit-mask-image: linear-gradient(to right, #000 33.333%, transparent 66.667%);
  mask-image: linear-gradient(to right, #000 33.333%, transparent 66.667%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: strengths-reveal 0.9s ease-in-out both;
}

@keyframes strengths-reveal {
  from {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  to {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

.strengths-scroll-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strengths-scroll-number {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  margin: 0;
  color: var(--color-white);
  font-family: "Montserrat", sans-serif;
  font-size: 5rem;
  font-weight: 500;
  line-height: 1;
}

/* 編集モードへの切り替え直後も元の画像を選択できるようにする。 */
.strengths-scroll:is([data-gjs-type], :has([data-gjs-type])) .strengths-visual {
  opacity: 1;
  pointer-events: auto;
}

.strengths-scroll:is([data-gjs-type], :has([data-gjs-type])) .strengths-scroll-rail {
  display: none;
}

/* 短文を枠付きのボックスで並べるセクション */
.panel-list-section {
  padding-block: 9rem 11rem;
  color: var(--color-black);
}

.panel-list-title {
  margin: 0 0 2rem;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.6;
}

.panel-list-row {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0;
  margin-inline: -0.375rem;
  row-gap: 0.75rem;
}

.panel-list-row > div {
  padding-inline: 0.375rem;
}

.panel-list-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 3.75rem;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--color-green);
  border-radius: 0.25rem;
  color: var(--color-deep-green);
  background-color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

.panel-list-note {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0.25rem 1rem;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* 写真のスクロール表示。JSが動かない場合は通常表示のまま。 */
.photo-story-row.is-reveal-ready .photo-story-picture {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1s ease, transform 1s ease;
}

.photo-story-row.is-reveal-ready .photo-story-side-end .photo-story-picture {
  transition-delay: 0.25s;
}

.photo-story-row.is-reveal-ready .photo-story-picture.is-revealed {
  opacity: 1;
  transform: none;
}

.photo-story-row:is([data-gjs-type], :has([data-gjs-type])) .photo-story-picture {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .photo-story-row.is-reveal-ready .photo-story-picture {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* StrengthsのSP配置：写真→横書き見出し→本文。 */
.strengths,
.strengths.strengths-reverse {
  padding-top: 3rem;
  background: #f7f8f4;
}

.strengths-intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1.5rem;
}

.strengths-intro-row > :first-child {
  grid-row: 2;
}

.strengths-intro-row > :last-child {
  display: contents;
}

.strengths-intro-row .section-heading-vertical {
  display: block;
}

.strengths-intro-row .section-label {
  margin-bottom: 0.5rem;
  writing-mode: horizontal-tb;
}

.strengths-intro-row .section-title {
  writing-mode: horizontal-tb;
  font-size: 1.75rem;
  line-height: 1.5;
}

.strengths-cover {
  grid-row: 1;
  width: 100cqw;
  margin-left: calc((100% - 100cqw) / 2);
}

.strengths-intro,
.strengths-intro-row > :last-child > .strengths-list {
  grid-row: 3;
  margin: 0;
  padding-inline: 0.75rem;
}

.strengths-item {
  row-gap: 0.75rem;
  padding-block: 4rem 1rem;
}

.strengths-visual {
  order: -1;
}

.strengths-photo {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
}

.strengths-number { display: none; }

.strengths-item-title {
  margin-bottom: 1.5rem;
  font-size: 1.875rem;
  text-align: center;
}

.strengths-examples { margin-block: 2rem; }
.strengths-example { margin-bottom: 0.5rem; }

@media (min-width: 768px) {
  .strengths {
    padding-top: 6rem;
    background: linear-gradient(to right, var(--color-bg) var(--strengths-bg-width), transparent var(--strengths-bg-width));
  }
  .strengths.strengths-reverse {
    padding-top: 6rem;
    background: linear-gradient(to left, var(--color-bg) var(--strengths-bg-width), transparent var(--strengths-bg-width));
  }
  .strengths-intro-row { display: flex; row-gap: 3rem; }
  .strengths-intro-row > :last-child { display: block; }
  .strengths-intro-row .section-heading-vertical { display: flex; }
  .strengths-heading { padding-block: 3rem; }


  .strengths-cover {
    width: min(900px, calc(50cqw + 25% - 0.375rem));
    margin-left: 0;
  }
  .strengths-intro { margin: 1.5rem 0 0; padding-inline: 0; }
  .strengths-intro-row > :last-child > .strengths-list { margin: 1.5rem 0; padding-inline: 0; }
  .strengths-item { row-gap: 3rem; padding-block: 3rem; }
  .strengths-visual { order: 0; }
  .strengths-photo { width: min(620px, 43cqw); aspect-ratio: auto; }
  .strengths-number { display: block; }
  .strengths-item-title { margin-bottom: 3rem; font-size: 2rem; text-align: left; }
  .strengths-examples { margin-block: 1.5rem; }
  .strengths-example { margin-bottom: 0.25rem; }
}

@media (min-width: 992px) {
  .strengths-intro-row .section-label { margin: 0; writing-mode: vertical-rl; }
  .strengths-intro-row .section-title {
    writing-mode: vertical-rl;
    font-size: var(--vertical-title-size, 2rem);
    line-height: 1.8;
  }
}
