@layer layout {
  .l-content__inner--halfCircleBottom {
    border-image-outset: 0 100vw;
    border-image-slice: fill 0;
    border-image-source: linear-gradient(0deg, var(--KIRIN_GRAY_50) 0 100%);
  }
  @media print, screen and (width > 768px) {
    .l-content__outer {
      overflow-x: hidden;
    }
    .l-content__inner--halfCircleBottom {
      border-image-source: linear-gradient(to bottom, var(--KIRIN_GRAY_50) 0%, var(--KIRIN_GRAY_50) calc(100% - 252px), transparent calc(100% - 252px), transparent 100%);
      padding-bottom: 50px;
      position: relative;
    }
    .l-content__inner--halfCircleBottom::before {
      background-color: var(--KIRIN_GRAY_50);
      border-radius: 50%;
      bottom: 0;
      content: "";
      display: block;
      height: 504px;
      left: 50%;
      min-width: 1750px;
      position: absolute;
      transform: translateX(-50%);
      width: 100vw;
      z-index: -1;
    }
  }
}
@layer module {
  .u-brands-heading-type2 {
    padding-bottom: 0;
  }
  .u-brands-heading-type2::before {
    content: none;
  }
  .u-brands-heading-type2 .m-link__icon {
    width: 23px;
  }
  @media only screen and (width <= 768px) {
    .u-brands-heading-type2 .u-brands-heading-type2 .m-heading-type2__mainText {
      font-size: calc(22 / var(--FONT_SIZE_ROOT) * 1rem);
    }
  }
  .u-brands-heading-type2--groupBrand {
    margin-top: 80px;
    position: relative;
    text-align: center;
  }
  .u-brands-heading-type2--groupBrand::before {
    aspect-ratio: 108/51;
    background-image: url(../graphics/image_icon_sacred_beast_kirin.svg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    display: block;
    margin-inline: auto;
    width: clamp(6.75rem, -3.954rem + 22.3vw, 12.688rem);
  }
  .u-brands-heading-type2--groupBrand .m-heading-type2__linkText {
    font-size: clamp(1.5rem, -0.303rem + 3.76vw, 2.5rem);
    font-weight: var(--FONT_WEIGHT_BOLD);
  }
  .u-brands-heading-type2--groupBrand .m-heading-type2__icon {
    aspect-ratio: 1/1;
    margin-left: 5px;
    width: 18px;
  }
  @media only screen and (width <= 768px) {
    .u-brands-heading-type2--groupBrand .m-heading-type2__mainText {
      background-image: url(../graphics/image_background_earth.webp);
      background-position: center;
      background-repeat: no-repeat;
      background-size: contain;
      display: inline-block;
      height: 147px;
      padding-top: 50px;
      paint-order: stroke;
      -webkit-text-stroke: 2px var(--KIRIN_WHITE);
    }
  }
  @media print, screen and (width > 768px) {
    .u-brands-heading-type2--groupBrand::before {
      content: "";
      margin-bottom: 24px;
    }
    .u-brands-heading-type2--groupBrand .m-heading-type2__icon {
      margin-bottom: 4px;
      margin-left: 8px;
      vertical-align: text-bottom;
      width: 32px;
    }
  }
  .u-brands-card-layout {
    margin-top: 32px;
  }
  @media print, screen and (width > 768px) {
    .u-brands-card-layout {
      column-gap: 20px;
      margin-top: 40px;
      row-gap: 0;
    }
  }
  @media only screen and (width <= 768px) {
    .u-brands-card-layout {
      gap: 30px calc(var(--SPACING) * 4);
    }
  }
  .u-brands-card-wrap {
    display: grid;
    gap: 0;
    grid-row: span 4;
    grid-template-rows: subgrid;
    height: 100%;
  }
  .m-layout__item:has(.u-brands-card) {
    display: contents;
  }
  .u-brands-card {
    background-color: var(--KIRIN_WHITE);
    border-radius: 6px;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    display: grid;
    gap: 0;
    grid-row: span 3;
    grid-template-rows: subgrid;
    height: 100%;
    padding: 24px 16px;
    text-decoration: none;
    transition: box-shadow var(--TRANSITION);
  }
  .u-brands-card:hover {
    box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.2);
    transition: box-shadow var(--TRANSITION);
  }
  .u-brands-card--food {
    --local-background: #eba8a8;
  }
  .u-brands-card--health {
    --local-background: #b7d7e2;
    --local-icon-size: 57px;
  }
  .u-brands-card--medical {
    --local-background: #f3cda6;
    --local-icon-size: 57px;
  }
  .u-brands-card__heading {
    align-self: center;
    font-size: calc(16 / var(--FONT_SIZE_ROOT) * 1rem);
    font-weight: var(--FONT_WEIGHT_BOLD);
    margin-top: 8px;
    text-align: center;
  }
  .u-brands-card__icon {
    aspect-ratio: 1/1;
    background-color: var(--local-background, #eba8a8);
    border-radius: 50%;
    display: grid;
    margin-inline: auto;
    max-width: 100px;
    order: -1;
    padding: 10px;
    place-content: center;
    width: 100%;
  }
  .u-brands-card__iconItem {
    max-width: var(--local-icon-size, 100%);
  }
  .u-brands-card__description {
    display: grid;
    font-size: calc(11 / var(--FONT_SIZE_ROOT) * 1rem);
    grid-template-rows: auto 1fr;
    margin-top: 8px;
  }
  .u-brands-card__descriptionTitle {
    background-color: var(--local-background, #eba8a8);
    border-radius: 4px;
    font-size: calc(12 / var(--FONT_SIZE_ROOT) * 1rem);
    font-weight: var(--FONT_WEIGHT_BOLD);
    padding: 4px;
  }
  .u-brands-card__descriptionContent {
    font-size: calc(11 / var(--FONT_SIZE_ROOT) * 1rem);
    line-height: 1.75;
  }
  .u-brands-card__descriptionTitle + .u-brands-card__descriptionContent {
    margin-top: 8px;
  }
  @media only screen and (width <= 768px) {
    .u-brands-card__descriptionTitle {
      text-align: center;
    }
    .u-brands-card__descriptionContent {
      text-align: center;
    }
  }
  @media print, screen and (width > 768px) {
    .u-brands-card {
      padding: 24px;
    }
    .u-brands-card--health,
    .u-brands-card--medical {
      --local-icon-size: none;
    }
    .u-brands-card__heading {
      font-size: calc(20 / var(--FONT_SIZE_ROOT) * 1rem);
      line-height: 1.5;
    }
    .u-brands-card__icon {
      max-width: 160px;
      padding: 24px;
    }
    .u-brands-card__iconItem {
      min-width: 82px;
    }
    .u-brands-card__description {
      margin-top: 16px;
    }
    .u-brands-card__descriptionTitle {
      font-size: calc(14 / var(--FONT_SIZE_ROOT) * 1rem);
      line-height: 1.5;
      padding: 4px 12px;
    }
    .u-brands-card__descriptionContent {
      font-size: calc(14 / var(--FONT_SIZE_ROOT) * 1rem);
      padding-inline: 12px;
    }
    .u-brands-card__descriptionTitle + .u-brands-card__descriptionContent {
      margin-top: 10px;
    }
  }
  .u-brands-groupBrand {
    margin-top: 48px;
  }
  .u-brands-groupBrand dl {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .u-brands-groupBrand__list {
    box-sizing: content-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .u-brands-groupBrand__item {
    background-color: var(--KIRIN_WHITE);
    border: 1px solid var(--local-border, #f47575);
    border-radius: 6px;
  }
  .u-brands-groupBrand__item--food {
    --local-background: #eba8a8;
    --local-border: #f47575;
  }
  .u-brands-groupBrand__item--health {
    --local-background: #b7d7e2;
    --local-border: #b7d7e2;
  }
  .u-brands-groupBrand__item--medical {
    --local-background: #f3cda6;
    --local-border: #f3cda6;
  }
  .u-brands-groupBrand__itemTitle {
    background-color: var(--local-background, #eba8a8);
    border-radius: 4px;
    font-size: calc(15 / var(--FONT_SIZE_ROOT) * 1rem);
    line-height: 1.75;
    padding: 4px 1em;
    text-align: center;
  }
  .u-brands-groupBrand__itemContent > :first-child {
    margin-top: 0;
  }
  .u-brands-groupBrand__link {
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: block;
    height: 100%;
    padding: 10px 10px 8px;
    text-decoration: none;
    transition: box-shadow var(--TRANSITION);
  }
  .u-brands-groupBrand__link:hover {
    box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.2);
    transition: box-shadow var(--TRANSITION);
  }
  .u-brands-groupBrand__link:not(a):hover {
    box-shadow: none;
  }
  @media print, screen and (width > 768px) {
    .u-brands-groupBrand {
      background-image: url(../graphics/image_background_earth.webp);
      background-position: center top;
      background-repeat: no-repeat;
      background-size: contain;
      margin-top: 40px;
      padding-top: clamp(3rem, -9.62rem + 26.29vw, 10rem);
    }
    .u-brands-groupBrand__list {
      display: grid;
      gap: 24px;
      grid-template-columns: repeat(2, 1fr);
      margin-inline: auto;
      max-width: 796px;
      width: 100%;
    }
    .u-brands-groupBrand__item {
      background-color: rgba(255, 255, 255, 0.7);
    }
    .u-brands-groupBrand__itemContent {
      display: grid;
      height: 100%;
      place-content: center;
    }
  }
  .u-brands-layout-media-index .m-layout-media-index__wrap {
    display: flex;
    flex-direction: column-reverse;
  }
  .u-brands-layout-media-index .m-layout-media-index__media .m-media__item {
    border-radius: 5px;
  }
  @media print, screen and (width > 768px) {
    .u-brands-layout-media-index .m-layout-media-index__media .m-media__item {
      border-radius: 10px;
    }
  }
  .u-brands-link-media__wrap {
    background-color: var(--KIRIN_WHITE);
    border-radius: 6px;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    display: grid;
    gap: 24px;
    grid-template-columns: 80px 1fr;
    overflow: hidden;
    padding: 16px 35px 16px 24px;
    position: relative;
  }
  .u-brands-link-media__wrap .m-link__icon {
    bottom: 10px;
    position: absolute;
    right: 4px;
  }
  .u-brands-link-media__media,
  .u-brands-link-media__title {
    display: grid;
    place-content: center;
  }
  .u-brands-link-media__mediaItem {
    max-height: 90px;
  }
  @media only screen and (width <= 768px) {
    .u-brands-link-media__media {
      min-height: 90px;
    }
  }
  @media print, screen and (width > 768px) {
    .u-brands-link-media {
      height: 100%;
    }
    .u-brands-link-media__wrap {
      display: flex;
      flex-direction: column;
      gap: 12px;
      height: 100%;
      padding: 24px 24px 40px;
      transition: box-shadow var(--TRANSITION);
    }
    .u-brands-link-media__wrap:not(:has(.m-link__icon))::before {
      border-bottom: 1px solid var(--KIRIN_RED_900);
      border-right: 1px solid var(--KIRIN_RED_900);
      bottom: 12px;
      content: "";
      display: block;
      height: 8px;
      margin-inline: auto;
      position: absolute;
      right: 12px;
      rotate: -45deg;
      width: 8px;
    }
    .u-brands-link-media__wrap .m-link__icon {
      bottom: 12px;
      position: absolute;
      right: 6px;
    }
    .u-brands-link-media__media {
      flex-basis: 200px;
    }
    .u-brands-link-media__mediaItem {
      max-height: 200px;
    }
    .u-brands-link-media__title {
      flex-grow: 1;
    }
  }
  @media only screen and (any-hover: hover) {
    .u-brands-link-media__wrap:hover, .u-brands-link-media__wrap:focus-visible {
      box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.2);
    }
  }
}
