@charset "UTF-8";

/* ==========================================================
   【最終整理予定】ボタンCSS

   全ページのHTML・CSS調整完了後、
   ボタンの共通仕様を site.css に集約する。

   このファイルにはセクション固有の配置・余白のみ残す。
   現段階では既存のボタンCSSを変更しない。
   ========================================================== */

/* ========================================
   THE UNIWORDS WAY
   ① PC・スマートフォン共通CSS
======================================== */
/* ========================================
   THE UNIWORDS WAY ? MAIN
   背景・波形・写真ギャラリー
   ======================================== */
#uniwords-way.uw-way-ocean {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(115px, 12vw, 180px) 0 clamp(125px, 12vw, 185px);
  background: linear-gradient(to bottom, #ffffff 0%, #effcff 120px, #e2f9fd 260px, #d9f8fc 410px, #e8faff 65%, #b5eaff 100%);
}

#uniwords-way.uw-way-ocean::before,
#uniwords-way.uw-way-ocean::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(58px, 8vw, 130px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
}

#uniwords-way.uw-way-ocean::before {
  top: -1px;
  background-image: none;
}

#uniwords-way.uw-way-ocean::after {
  bottom: -1px;
  background-image: url("../images/uniwords-way-wave-bottom.svg");
}

#uniwords-way .container.split {
  position: relative;
  z-index: 2;
}

#uniwords-way .copy,
#uniwords-way .visual {
  min-width: 0;
}

#uniwords-way .copy h2 {
  color: var(--color-navy);
  font-size: 36px;
}

#uniwords-way .copy p {
  font-size: var(--body-readable-size);
  line-height: var(--body-line-height);
  color: var(--color-navy);
}

.uw-way-ocean__bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.uw-way-ocean__bubbles span {
  position: absolute;
  display: block;
  border-radius: 48% 52% 55% 45% / 54% 46% 54% 46%;
  background: rgba(97, 207, 234, .16);
}

.uw-way-ocean__bubbles span:nth-child(1) {
  width: 260px;
  height: 235px;
  left: -95px;
  top: 17%;
  background: rgba(116, 230, 205, .19);
}

.uw-way-ocean__bubbles span:nth-child(2) {
  width: 140px;
  height: 145px;
  left: 10%;
  bottom: 18%;
}

.uw-way-ocean__bubbles span:nth-child(3) {
  width: 290px;
  height: 280px;
  right: -130px;
  top: 13%;
  background: rgba(255, 255, 255, .38);
}

.uw-way-ocean__bubbles span:nth-child(4) {
  width: 180px;
  height: 160px;
  right: 8%;
  bottom: 15%;
}

.split .uniwords-way-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.split .uniwords-way-photo .uw-way-gallery {
  position: relative;
  width: min(100%, 360px);
  padding: 22px 18px 0;
  box-sizing: border-box;
  text-align: center;
  isolation: isolate;
}

.split .uniwords-way-photo .uw-way-gallery::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 58%;
  aspect-ratio: 1;
  left: -2%;
  bottom: 7%;
  border-radius: 44% 56% 48% 52% / 52% 47% 53% 48%;
  background: repeating-linear-gradient(135deg,
      rgba(109, 226, 207, .48) 0 13px,
      transparent 13px 27px);
  -webkit-mask-image: radial-gradient(ellipse at 53% 47%, #000 48%, transparent 74%);
  mask-image: radial-gradient(ellipse at 53% 47%, #000 48%, transparent 74%);
  pointer-events: none;
}

.uw-way-gallery__shape {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  border-radius: 50%;
  background: #e5f5f2;
}

.uw-way-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1100ms ease;
  pointer-events: none;
}

.uw-way-gallery__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.split .uniwords-way-photo .uw-way-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}

.uw-way-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 11px;
  padding-top: 20px;
}

.uw-way-gallery__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bfd8d6;
  cursor: pointer;
  transition: background-color .25s ease;
}

.uw-way-gallery__dot.is-active {
  background: var(--color-learning);
}

.uw-way-gallery__dot:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

  .uw-way-gallery__slide,
  .uw-way-gallery__dot {
    transition: none;
  }
}

/* ========================================
   ② スマートフォン専用｜390px以下
======================================== */
/* @media (max-width: 600px) {
  #uniwords-way.uw-way-ocean {
    padding: 105px 0 115px;
  }

  #uniwords-way .container.split {
    gap: 28px;
  }

  .split .uniwords-way-photo .uw-way-gallery {
    width: min(100%, 390px);
  }

  .uw-way-ocean__bubbles span:nth-child(3) {
    right: -210px;
  }

  .uw-way-ocean__bubbles span:nth-child(4) {
    right: -75px;
    bottom: 8%;
  }
} */

/* ========================================
   ② スマートフォン専用｜430px以下
======================================== */
@media (max-width: 430px) {
  .split .uniwords-way-photo .uw-way-gallery {
    width: min(100%, 280px);
  }
}

/* ========================================
   ③ PC専用｜768px以上
======================================== */

