@charset "UTF-8";

.babyskincare-container {

  .babyskincare-contents {
    font: var(--text-16-regular-body);

    .display-none_lg {
      @media (min-width: 768px) {
        display: none !important;
      }
    }
    .display-none_sm {
      @media (max-width: 767px) {
        display: none !important;
      }
    }

    .babyskincare-local-nav-container {
      position: relative;
      z-index: 2;
      background: #fff;

      .babyskincare-local-nav_title-bar {
        margin: 0 8px 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;

        &::before,
        &::after {
          content: "";
          width: 100%;
          height: 1px;
          background: #E5E3E3;
          position: absolute;
          bottom: 0;
        }
        &::before {
          background: #E5E3E3;
          left: 0;
        }
        &::after {
          width: 44px;
          background: #E65550;
          right: 0;
          z-index: 1;
        }

        .babyskincare_local-nav_heading {
          padding: 0 0 0 12px;
          background: url(../img/icon_circle_redborder.svg) 0 center no-repeat;
          font-size: 12px;
          font-weight: 700;
          display: flex;
          align-items: center;
          column-gap: 8px;
        }
      }
      .babyskincare-local-nav-heading_toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        aspect-ratio: 1 / 1;
        background: transparent;
        appearance: none;
        border: none;
        cursor: pointer;
        img {
          display: block;
          width: 24px;
          aspect-ratio: 1 / 1;
          height: auto;
        }
        &[aria-expanded="true"] {
          img {
            transform: rotate(180deg);
          }
        }
      }

      .babyskincare-local-nav {
        .babyskincare-local-nav_series {
          padding: 8px 16px 0;

          @media (min-width: 1056px) {
            padding: 0;
          }

          .nav_item {
            border-top: 1px solid #CCC8C8;
            display: flex;
            align-items: stretch;

            &:first-child {
              border-top: none;
            }

            .item_content {
              width: 100%;
              display: flex;
              flex-direction: column;
              justify-content: center;
              min-height: 70px;
              row-gap: 4px;
              padding: 11px 11px 11px 40px;
              column-gap: 8px;
              background-image: url(../img/icon_forward.svg);
              background-repeat: no-repeat;
              background-position: 6px center;
              background-size: 16px;
              font-weight: bold;

              .content_text_sub {
                font-size: 13px;
                color: #615D5D;
              }
              .content_text_main {
                font-size: 16px;
                line-height: 1.5;
              }
            }
            &.item_emph .item_content {
              padding-left: 36px;
              background-image: url(../img/symbol_pumping-bottle.svg);
              background-repeat: no-repeat;
              background-position: left center;
              background-size: 28px;
              &:hover {
                text-decoration: underline;
              }
            }
          }
        }
        .babyskincare-local-nav_banners {
          display: flex;
          row-gap: 24px;
          flex-wrap: wrap;
          margin-top: 48px;
          max-width: 1024px;
          margin-inline: auto;
          padding-bottom: 48px;
          padding-inline: 16px;

          @media (min-width: 768px) {
            display: none;
          }

          .banner_item {
            display:flex;
            .banner_content {
              display: block;
              width: 100%;
              .banner_content_img {
                display: block;
                width: 100%;
                height: auto;
              }
            }
          }
        }
      }
    }

    .local-nav-container-head {
      & + * {
        /*margin-top: 8px;*/
      }

      .babyskincare-local-nav_title-bar {
        @media (min-width: 1276px) {
          display: none;
        }
      }

      .babyskincare-local-nav {
        position: absolute;
        left: 0;
        top: 44px;
        background: #fff;
        width: 100%;
        padding-bottom: 0;
        overflow: hidden;
        height: 0;
        transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: scroll;

        &[aria-hidden="false"] {
          padding-bottom: 0;
          height: calc(100vh - 88px);

          @media (min-width: 768px) {
            height: calc(100vh - 120px);
          }
        }

        @media (min-width: 1276px) {
          position: relative;
          left: unset;
          top: unset;
          padding: 0 24px 0 24px;
          margin: 0 auto;
          max-width: 1326px;
          height: auto;
          overflow: unset;

          &[aria-hidden="false"] {
            height: auto;
          }
        }

        .babyskincare-local-nav_series {
          @media (min-width: 768px) {
            padding: 8px 16px 0;
          }

          @media (min-width: 1276px) {
            padding: 0;
            display: flex;
            flex-direction: row;
          }
          .nav_item {
            @media (min-width: 1276px) {
              flex: 1;
              border: none;
              position: relative;

              &::before {
                content: "";
                display: block;
                width: 1px;
                height: 16px;
                background: #CCC8C8;
                position: absolute;
                top: 50%;
                left: 0;
                transform: translateY(-50%);
              }
              &:first-child::before {
                display: none;
              }
            }

            .item_content {
              @media (min-width: 1276px) {
                width: 100%;
                background: none;
                padding: 11px;
                row-gap: 0;
                text-align: center;
              }
              &:hover {
                .content_text_main {
                  text-decoration: underline;
                }
              }
              .content_text_main {
                @media (min-width: 1276px) {
                  font-size: 14px;
                  line-height: 1.5;
                }
              }
              .content_text_sub {
                @media (min-width: 1276px) {
                  font-size: 11px;
                  line-height: 1.25;
                }
              }
            }
            &.item_emph .item_content {
              @media (min-width: 1276px) {
                text-align: left;
                padding: 0 12px 0 12px;
                background: url(../img/icon_circle_redborder.svg) 0 center no-repeat;
                background-size: 8px;
              }
            }
          }
        }

        .babyskincare-local-nav_banners {
          @media (min-width: 768px) {
            display: flex;
            padding-inline: 16px;
          }
          @media (min-width: 640px) {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            column-gap: 16px;
          }
          @media (min-width: 1276px) {
            display: none;
            padding-inline: 0;
          }

          .banner_item {
            @media (min-width: 640px) {
              flex: 1;
            }
          }
        }
      }
    }

    .local-nav-container-foot {
      .babyskincare-local-nav_title-bar {
        border-top: 1px solid #CCC8C8;
        border-bottom: 1px solid #CCC8C8;
        padding: 10px 16px;
        margin: 0;    
        &::after,
        &::before {
          background: transparent;
        }
        @media (min-width: 768px) {
          display: block;
        }
      }
      .babyskincare_local-nav_heading.babyskincare_local-nav_breadcrumb {
        background: none;
        display: inline-block;
        padding: 0;
        width: 100%;

        @media (min-width: 768px) {
          display: flex;
        }
        .babyskincare_local-nav_heading_content {
          display: inline-block;
          padding: 0 8px 0 12px;
          background: url(../img/icon_circle_redborder.svg) 0 center no-repeat;
          a {
            &:hover {
              text-decoration: underline;
            }
          }
        }
        .babyskincare_local-nav_breadcrumb_item {
          display: inline;
          padding: 0 8px 0 20px;
          background: url(../img/icon_left.svg) 0 center no-repeat;
        }
      }
      .babyskincare_local-nav_heading,
      .category_nav.babyskincare-local-nav {
        max-width: 1024px;
        margin-left: auto;
        margin-right: auto;
      }
      .category_nav.babyskincare-local-nav {
        .babyskincare-local-nav_series {
          @media (min-width: 768px) {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0 24px
          }
        }
        .nav_item {
          padding: 10px 0;
          .item_content {
            height: initial;
            &:hover {
              .content_text_main {
                text-decoration: underline;
              }
            }
          }
        }
    
        .nav_item.item_emph {
          @media (min-width: 768px) {
            grid-column: 1 / -1;
          }
        }
    
        .babyskincare-local-nav_banners {
          @media (min-width: 768px) {
            display: flex;
            flex-wrap: nowrap;
            justify-content: center;
            gap: 24px;
          }
    
          .banner_item {
            @media (min-width: 768px) {
              max-width: 343px;
            }
          }
        }
      }
    }

    .contents-section {
      padding: 0 24px;
      @media (min-width: 768px) {
        padding: 0 80px;
      }
    }

    .share-button {
      max-width: 680px;
      margin: 80px auto 0;

      ul {
        display: flex;
        gap: 24px;
        align-items: center;
        width: 264px;
        margin-left: auto;
        padding: 8px 14px;
        border: 1px solid #CCC8C8;
        border-radius: 8px;

        li {
          display: flex;
          align-items: stretch;
          justify-content: center;
          position: relative;

          a {
            display: block;
            text-indent: -9999px;
          }

          .share-button_copy_text {
            display: none;
            position: absolute;
            top: -24px;
            right: 100%;
            white-space: nowrap;
            font-size: 12px;
            border-radius: 100px;
            background: #403D3D;
            color: #fff;
            padding: 2px 8px;
            opacity: 0;
            transform: translateX(100%);
            transition: opacity 0.3s ease, display 0.3s allow-discrete;

            &.show {
              display: block;
              opacity: 1;

              @starting-style {
                opacity: 0;
              }
            }
          }
        }

        .share-button_share {
          position: relative;
          padding-left: 20px;
          font-size: 14px;
          &::before {
            position: absolute;
            top: 50%;
            left: 0;
            display: inline-block;
            content: "";
            width: 16px;
            height: 16px;
            margin-top: -8px;
            background: url(../img/icon_share.svg) 0 0 no-repeat;
            background-size: contain;
          }
        }
        .share-button_x {
          display: block;
          content: "";
          width: 24px;
          height: 24px;
          background: url(../img/icon_x.svg) 0 0 no-repeat;
          background-size: contain;
        }
        .share-button_line {
          display: block;
          content: "";
          width: 24px;
          height: 24px;
          background: url(../img/icon_line.svg) 0 0 no-repeat;
          background-size: contain;
        }
        .share-button_copy {
          display: block;
          content: "";
          width: 24px;
          height: 24px;
          background: url(../img/icon_copy.svg) 0 0 no-repeat;
          background-size: contain;
        }
      }
    }

    .page-head {
      position: relative;
      @media (min-width: 768px) {
        padding: 0 80px;
      }

      .main-visual {
        @media (min-width: 768px) {
          padding-top: 30px;
        }
        .main-visual_image {
          width: 100%;
          @media (min-width: 768px) {
            position: absolute;
            top: 0;
            right: 0;
            z-index: -1;
            width: 70%;
          }
        }
        .main-visual_lead {
          position: relative;
          overflow: hidden;
          display: inline-block;
          margin: -24px 16px 0;
          font-family: var(--text-family-zenmaru);
          font-size: 15px;
          font-weight: 700;
          line-height: 2.0;
          color: #E53835;
          text-align: center;
          text-decoration-line: underline;
          text-decoration-color: #E53835;
          text-decoration-thickness: 1px;
          text-underline-offset: 9px;
          @media (min-width: 768px) {
            margin: 0;
            font-size: 18px;
          }
        }
      }

      .page-head_inner {
        position: relative;
        margin-top: 10px;
        padding: 0 24px;
        @media (min-width: 768px) {
          margin-top: 60px;
          padding: 80px 0 0;
          aspect-ratio: 10 / 4.2;
        }

        .page-head_title {
          @media (min-width: 768px) {
            display: inline-block;
          }
          .page-head_title_sub {
            position: relative;
            font-family: var(--text-family-zenmaru);
            font-size: 20px;
            line-height: 1.5;
            color: #46A3B0;
            text-align: center;
            @media (min-width: 768px) {
              font-size: 30px;
            }
            &::after {
              display: block;
              content: "";
              width: 34px;
              height: 4px;
              margin: 8px auto 0;
              background: url(../img/page-head_subtitle.svg) 50% 0 no-repeat;
            }
          }
          .page-head_title_h1 {
            margin-top: 8px;
            font-family: var(--text-family-zenmaru);
            font-size: 27px;
            line-height: 1.5;
            color:#595555;
            font-weight: 600;
            text-align: center;
            @media (min-width: 768px) {
              font-size: 42px;
            }
          }
        }
      }
      .share-button {
        margin-top: 22px;
        @media (min-width: 768px) {
          position: absolute;
          bottom: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 100%;
        }
      }
    }

    .page-anchor {
      margin-top: 96px;
      @media (min-width: 768px) {
        margin: 128px auto 0;
      }
      ul {
        @media (min-width: 768px) {
          display: flex;
          flex-wrap: wrap;
          gap: 64px 40px;
          width: 100%;
          max-width: 1024px;
          margin: 0 auto;
        }
        li {
          position: relative;
          margin-top: 40px;
          @media (min-width: 768px) {
            width: calc(33.3% - 27px);
          }
          a {
            display: block;
            .page-anchor_box {
              position: relative;
              padding: 26px 32px 52px;
              background: linear-gradient(to bottom right, #EAFDFF 0%, #DBF7FE 100%);
              box-shadow: 0 0 32px rgba(0, 157, 255, 0.3);
              border-radius: 48px;
              &::after {
                position: absolute;
                bottom: 16px;
                left: 50%;
                display: block;
                content: "";
                width: 20px;
                height: 20px;
                background: url(../img/icon_down.svg) 0 0 no-repeat;
                background-size: contain;
                transition: transform 0.3s ease;
                @media (prefers-reduced-motion: reduce) {
                  transition: none;
                }
              }
              &:hover {
                background: linear-gradient(to bottom right, #D9FBFF 0%, #CDF5FE 100%);
                &::after {
                  transform: translateY(6px);
                }
              }
            }
          }
        }
      }
    }

    .more-pigeon {
      position: relative;
      margin-top: -48px;
      padding: 48px 16px 168px;
      background: #fff;
      box-shadow: 0 0 32px rgba(0, 157, 255, 0.3);
      border-radius: 48px 48px 0 0;
      &::before {
        position: absolute;
        top: -29px;
        left: 50%;
        display: block;
        width: 58px;
        height: 58px;
        margin-left: -29px;
        content: "";
        background: url(../img/more-pigeon_icon.svg) no-repeat 0 / contain;
      }

      .more-pigeon_subtitle {
        font-size: 16px;
        font-family: var(--text-family-zenmaru);
        text-align: center;
      }

      .more-pigeon_title {
        font-size: 20px;
        font-family: var(--text-family-zenmaru);
        text-align: center;
      }

      .more-pigeon_card {
        display: flex;
        gap: 48px;
        flex-wrap: wrap;
        justify-content: center;
        margin: 32px auto 0;
        @media (min-width: 768px) {
          max-width: 1024px;
          margin-top: 48px;
        }

        .more-pigeon_card_item {
          width: 100%;
          @media (min-width: 768px) {
            width: calc(50% - 24px);
          }
          img {
            display: block;
            width: 100%;
            border-radius: 8px;
          }
          a {
            position: relative;
            display: block;
            width: calc(100% - 16px);
            margin: -16px auto 0;
            padding: 16px 16px 40px;
            background: rgb(222 251 255 / 60%);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 16px;
            &::after {
              position: absolute;
              bottom: 0;
              right: 0;
              display: block;
              width: 40px;
              height: 40px;
              content: "";
              background: url(../img/more-pigeon_arrow.svg) no-repeat 0 / contain;
            }

            .more-pigeon_card_category { color: #E53835; font-size: 14px; font-weight: 600; }
            .more-pigeon_card_title { margin-top: 8px; color: #595555; font-size: 16px; font-weight: 600; }
            .more-pigeon_card_date { margin-top: 8px; font-size: 12px; }
            .more-pigeon_card_text { margin-top: 8px; font-size: 14px; }
          }
        }
      }

      .share-button {
        max-width: 1024px;
        margin-top: 128px;
      }
      .research_cards_home {
        display: flex;
        flex-direction: column;
        gap: 48px;
        max-width: 464px;
        margin: 48px auto 0;
        padding: 0;
        list-style: none;
        @media (min-width: 768px) {
          flex-direction: row;
          justify-content: center;
          max-width: 1024px;
          flex-wrap: wrap;
        }
      }
      .research_cards_item_home {
        display: flex;
        @media (min-width: 768px) {
          flex: 0 1 488px;
        }
      }
      .research_card_home {
        display: flex;
        flex-direction: column;
        width: 100%;
        color: var(--color-text);
        text-align: left;
        text-decoration: none;
        border-radius: 16px;
        &:focus-visible {
          outline: 2px solid var(--home-color-cerulean);
          outline-offset: 4px;
        }
        @media (hover: hover) {
          &:hover {
            .research_card_body_home::before {
              opacity: 1;
            }

            .research_card_title_home {
              color: var(--color-current);
            }
          }
        }
      }
      .research_card_img_home {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 343 / 201.5;
        object-fit: cover;
        border-radius: 16px;
      }
      .research_card_body_home {
        position: relative;
        flex: 1;
        display: block;
        margin: -16px 8px 0;
        padding: 16px 16px 40px;
        background: rgb(222 251 255 / 60%);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-radius: 16px;
        word-break: keep-all;
        overflow-wrap: anywhere;
        &::before {
          position: absolute;
          inset: 0;
          z-index: -1;
          content: "";
          background: rgb(202 244 254 / 75%);
          border-radius: inherit;
          opacity: 0;
          transition: opacity 0.3s ease;
          @media (prefers-reduced-motion: reduce) {
            transition: none;
          }
        }
        &::after {
          position: absolute;
          right: 0;
          bottom: 0;
          width: 40px;
          height: 40px;
          content: "";
          background: url(../../babyskincare_assets/img/more-pigeon_arrow.svg) center / contain no-repeat;
        }
      }
      .research_card_category_home {
        display: block;
        font: var(--nav-14-bold);
        color: var(--color-icon);
      }
      .research_card_title_home {
        position: relative;
        top: -1px;
        display: block;
        margin-top: 8px;
        font: var(--nav-16-bold);
        color: var(--color-text);
        transition: color 0.3s ease;
        @media (prefers-reduced-motion: reduce) {
          transition: none;
        }
      }
      .research_card_date_home {
        margin-top: 8px;
        font-size: 12px;
        display: block;
      }
      .research_card_text_home {
        margin-top: 8px;
        font-size: 14px;
        display: block;
      }
    }

    .pgn-pagetop {
      width: 44px;
      height: 44px;
      position: sticky;
      margin-left: calc(100% - 44px - 24px);
      bottom: 16px;
      margin-bottom: 16px;
      z-index: 2;
      background-color: transparent;
      text-align: right;

      transition: opacity 0.3s ease;

      &.hidden {
        opacity: 0;
        pointer-events: none;
      }
    }
  }
}