@charset "UTF-8";

/* 共通部分 */

section {
  margin-bottom: 176px;
}

section > div.inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

@media screen and (max-width: 1299px) {
  section {
    margin-bottom: 104px;
  }
}

@media screen and (max-width: 949px) {
  section > div.inner {
    gap: 40px;
  }
}

.title > h1 {
  font-size: 76px;
  font-weight: var(--weight-l);
  line-height: 1;
  letter-spacing: 0;
}

.title > p {
  font-weight: var(--weight-l);
  line-height: 1;
  color: var(--color-accent-primary);
  margin-top: 12px;
  letter-spacing: 0.05em;
  font-size: 20px;
}

@media screen and (max-width: 1299px) {
  .title > h1 {
    font-size: 44px;
  }

  .title > p {
    margin-top: 8px;
    font-size: inherit;
  }
}

@media screen and (max-width: 949px) {
  .title > h1 {
    font-size: 40px;
  }

  .title > p {
    margin-top: 4px;
  }
}

/* トップ画像 */

.top-img {
  position: relative;
  height: 916px;
  margin-bottom: 84px;
}

.top-img > .bg {
  inset: 0;
  overflow: hidden;
  z-index: -1;
  height: 100%;
}

.top-img > .bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../img/index-top-bg.svg);
  background-position: center;
  background-size: cover;
  transform: scale(1.4) translateY(-32px);
  transform-origin: center center;
}

.top-img::after {
  background-image: url(../img/index-top-wave-bottom.webp);
}

.top-img > p {
  position: absolute;
  top: 240px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-text-light);
  font-size: 40px;
  font-weight: var(--weight-l);
  text-shadow: 0 0 20px #9ad0ea;
  text-align: center;
}

.top-img > p > .sp-br {
  display: none;
}

.top-img > div {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-img > div > p {
  color: var(--color-text-light);
  font-size: var(--font-s);
  font-weight: var(--weight-m);
}

.top-img > div > img {
  width: 20px;
  margin-top: 2px;
}

.top-img > div:last-child {
  top: 0;
  bottom: 0;
  z-index: 1;
}

.top-img > div:last-child > img {
  position: absolute;
}

.top-img > div:last-child > img:nth-of-type(1) {
  width: 184px;
  left: -220px;
  bottom: 64px;
}

.top-img > div:last-child > img:nth-of-type(2) {
  width: 212px;
  left: -60px;
  bottom: -40px;
}

.top-img > div:last-child > img:nth-of-type(3) {
  width: 186px;
  left: 120px;
  bottom: 70px;
}

.top-img > div:last-child > img:nth-of-type(4) {
  width: 184px;
  right: 120px;
  bottom: 34px;
}

.top-img > div:last-child > img:nth-of-type(5) {
  width: 200px;
  right: -70px;
  bottom: -4px;
}

.top-img > div:last-child > img:nth-of-type(6) {
  width: 152px;
  right: -180px;
  bottom: 70px;
}

@media screen and (max-width: 1299px) {
  .top-img {
    height: 700px;
    margin-bottom: 40px;
  }

  .top-img > p {
    font-size: 30px;
    top: 200px;
  }

  .top-img > div {
    bottom: 80px;
  }

  .top-img > div:last-child > img:nth-of-type(1) {
    width: 162px;
    left: -78px;
    bottom: 36px;
  }

  .top-img > div:last-child > img:nth-of-type(2) {
    width: 164px;
    left: 56px;
    bottom: -28px;
  }

  .top-img > div:last-child > img:nth-of-type(3) {
    width: 136px;
    left: 180px;
    bottom: 70px;
  }

  .top-img > div:last-child > img:nth-of-type(4) {
    width: 164px;
    right: 172px;
    bottom: 48px;
  }

  .top-img > div:last-child > img:nth-of-type(5) {
    width: 164px;
    right: 60px;
    bottom: -16px;
  }

  .top-img > div:last-child > img:nth-of-type(6) {
    width: 140px;
    right: -16px;
    bottom: 70px;
  }
}

@media screen and (max-width: 949px) {
  .top-img {
    height: 580px;
  }

  .top-img > p {
    font-size: 24px;
    top: 132px;
  }

  .top-img > div {
    bottom: 48px;
  }

  .top-img > div:last-child > img:nth-of-type(1) {
    width: 108px;
    left: 12px;
    bottom: 24px;
  }

  .top-img > div:last-child > img:nth-of-type(2) {
    width: 108px;
    left: 94px;
    bottom: -28px;
  }

  .top-img > div:last-child > img:nth-of-type(3) {
    width: 104px;
    left: 178px;
    bottom: 40px;
  }

  .top-img > div:last-child > img:nth-of-type(4) {
    width: 112px;
    right: 148px;
    bottom: 24px;
  }

  .top-img > div:last-child > img:nth-of-type(5) {
    width: 108px;
    right: 84px;
    bottom: -24px;
  }

  .top-img > div:last-child > img:nth-of-type(6) {
    width: 104px;
    right: 20px;
    bottom: 36px;
  }
}

@media screen and (max-width: 699px) {
  .top-img > .bg::before {
    transform: unset;
  }

  .top-img > p {
    top: 104px;
  }

  .top-img > p > .sp-br {
    display: block;
  }

  .top-img > div:last-child > img:nth-of-type(1) {
    left: -74px;
  }

  .top-img > div:last-child > img:nth-of-type(2) {
    left: -12px;
  }

  .top-img > div:last-child > img:nth-of-type(3) {
    left: 42px;
  }

  .top-img > div:last-child > img:nth-of-type(4) {
    right: 24px;
  }

  .top-img > div:last-child > img:nth-of-type(5) {
    right: -24px;
  }

  .top-img > div:last-child > img:nth-of-type(6) {
    right: -66px;
  }
}

/* カルーセル */

:root {
  --splide-gap: 32px;
  --splide-width: 580px;
}

.splide {
  margin-bottom: 64px;
  max-width: calc(var(--splide-width) * 3 + var(--splide-gap) * 2);
  margin-left: auto;
  margin-right: auto;
}

.splide__slide > a > img {
  border-radius: var(--radius-m);
  width: var(--splide-width);
  border: 1px solid var(--color-separator);
}

.splide__slide > a:hover > img {
  opacity: 0.8;
}

.splide__arrows {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.splide__arrow {
  background: var(--color-accent-primary);
  opacity: 1;
  top: 50%;
  position: static;
  transform: none;
  height: 44px;
  width: 44px;
}

.splide__arrow svg {
  fill: var(--color-text-light);
  height: 26px;
  width: 26px;
}

.splide__arrow--prev {
  order: -1;
}

.splide__pagination {
  position: static;
  display: flex !important;
  padding: 0 24px;
}

.splide__pagination li {
  display: flex;
}

.splide__pagination__page {
  background: #ccc;
  margin: 0 10px;
  height: 12px;
  width: 12px;
}

.splide__pagination__page.is-active {
  background: var(--color-accent-primary);
  transform: scale(1);
}

@media screen and (max-width: 1299px) {
  :root {
    --splide-gap: 16px;
    --splide-width: 360px;
  }

  .splide {
    margin-bottom: 36px;
  }

  .splide__arrows {
    margin-top: 20px;
  }

  .splide__arrow {
    height: 28px;
    width: 28px;
  }

  .splide__arrow svg {
    height: 20px;
    width: 20px;
  }

  .splide__pagination__page {
    margin: 0 6px;
    height: 8px;
    width: 8px;
  }
}

@media screen and (max-width: 949px) {
  :root {
    --splide-gap: 16px;
    --splide-width: 320px;
  }

  .splide {
    max-width: none;
  }

  .splide__pagination {
    padding: 0 20px;
  }
}

/* お知らせ */

.news {
  position: relative;
  background-color: var(--color-bg);
  padding: 184px 0;
}

.news::before {
  background-image: url(../img/index-news-wave-top.webp);
}

.news::after {
  background-image: url(../img/index-news-wave-bottom.webp);
}

.news > div {
  position: relative;
  z-index: 1;
}

.news > div > .title {
  position: relative;
}

.news > div > .title > div {
  display: flex;
  background: #e8e9ed;
  border-radius: var(--radius-l);
  padding: 8px;
  width: 400px;
  position: absolute;
  right: 0;
  bottom: 0;
}

.news > div > .title > div > button {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 6px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: var(--weight-m);
  color: #888888;
  border-radius: var(--radius-l);
}

.news > div > .title > div > button.active {
  background: var(--color-accent-secondary);
  color: #35599d;
}

.news > div > .title > div > button.active:last-of-type {
  background: #f6d0d0;
  color: #d46363;
}

.news > div > .content > div {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  transition: opacity var(--duration) var(--easing);
}

.news > div > .content > div.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.news > div > div:last-of-type {
  display: flex;
  justify-content: flex-end;
}

.news > div > img {
  position: absolute;
  width: 280px;
}

.news > div > img:nth-of-type(1) {
  top: -284px;
  left: -276px;
}

.news > div > img:nth-of-type(2) {
  bottom: -292px;
  right: -214px;
}

.news > div > img:nth-of-type(3) {
  bottom: -164px;
  right: -518px;
  width: 300px;
}

@media screen and (max-width: 1299px) {
  .news {
    padding: 116px 0 152px 0;
  }

  .news > div > .title > div {
    padding: 6px;
    width: 320px;
  }

  .news > div > .title > div > button {
    padding: 4px 0;
  }

  .news > div > img:nth-of-type(1) {
    width: 156px;
    top: -160px;
    left: auto;
    right: 24px;
  }

  .news > div > img:nth-of-type(2) {
    width: 164px;
    bottom: -218px;
    right: 132px;
  }

  .news > div > img:nth-of-type(3) {
    width: 180px;
    bottom: -182px;
    right: -56px;
  }
}

@media screen and (max-width: 949px) {
  .news {
    padding: 104px 0 152px 0;
  }

  .news > div > .title > div {
    position: static;
    width: 100%;
  }

  .news > div > .title > p {
    margin-bottom: 28px;
  }

  .news > div > div:last-of-type {
    justify-content: center;
  }

  .news > div > .content > div > a:nth-child(n + 5) {
    display: none;
  }

  .news > div > img:nth-of-type(1) {
    width: 140px;
    top: -148px;
    right: 24px;
  }

  .news > div > img:nth-of-type(2) {
    width: 140px;
    bottom: -218px;
    right: 88px;
  }

  .news > div > img:nth-of-type(3) {
    width: 160px;
    bottom: -158px;
    right: -56px;
  }
}

/* サービスのご案内 */
.services > div {
  position: relative;
}

.services > div > .title {
  text-align: center;
}

.services > div > div:nth-of-type(2) {
  background-color: #eef2fb;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 48px;
  border-radius: var(--radius-l);
  box-shadow: inset 0 0 50px 0 #d6dff3;
}

.services > div > div:nth-of-type(2) > img {
  height: 184px;
}

.services > div > div:nth-of-type(2) > div {
  width: 100%;
}

.services > div > div:nth-of-type(2) > div > h2 {
  font-size: var(--font-xl);
  font-weight: var(--weight-l);
}

.services > div > div:nth-of-type(2) > div > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 16px;
  margin-top: 20px;
}

.services > div > div:nth-of-type(2) > div > div > a {
  background-color: #ffffff;
  border: 3px solid var(--color-consumer-secondary);
}

.services > div > div:nth-of-type(2) > div > div > a::after {
  background-color: var(--color-consumer-primary);
}

.services > div > div:nth-of-type(2) > div > div > a:hover {
  opacity: 1;
  background-color: var(--color-consumer-hover);
}

.services > div > div:nth-of-type(2) > div > div > a > p,
.services > div > div:nth-of-type(2) > div > div > a > p > span {
  color: var(--color-consumer-primary);
  font-weight: var(--weight-m);
  line-height: 1.3;
}

.services > div > div:nth-of-type(2) > div > div > a > p > span:last-of-type {
  font-size: 16px;
}

.services > div > div:nth-of-type(2) > div > div > a:last-of-type {
  border-color: var(--color-enterprise-secondary);
}

.services > div > div:nth-of-type(2) > div > div > a:last-of-type:hover {
  background-color: var(--color-enterprise-hover);
}

.services > div > div:nth-of-type(2) > div > div > a:last-of-type > p,
.services > div > div:nth-of-type(2) > div > div > a:last-of-type > p > span {
  color: var(--color-enterprise-primary);
  text-align: center;
}

.services > div > div:nth-of-type(2) > div > div > a:last-of-type::after {
  background-color: var(--color-enterprise-primary);
}

.services > div > div:nth-of-type(3) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(252px, 100%), 1fr));
  gap: 54px 32px;
}

.services > div > div:nth-of-type(3) > a > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.services > div > div:nth-of-type(3) > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.services > div > div:nth-of-type(3) > a:hover > div {
  opacity: 0.8;
}

.services > div > div:nth-of-type(3) > a:hover > h2 {
  color: var(--color-accent-primary);
}

.services > div > div:nth-of-type(3) > a:hover > h2::after {
  background-color: var(--color-accent-primary);
}

.services > div > div:nth-of-type(3) > a > div {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-l);
}

.services > div > div:nth-of-type(3) > a:nth-of-type(n) > div {
  --shadow-blur-l: 50px;
  --shadow-blur-s: 30px;
}

.services > div > div:nth-of-type(3) > a:nth-of-type(1) > div {
  background-color: #fff0f0;
  box-shadow: inset 0 0 var(--shadow-blur-l) 0 #ffd3d3;
}

.services > div > div:nth-of-type(3) > a:nth-of-type(2) > div {
  background-color: #fef4e9;
  box-shadow: inset 0 0 var(--shadow-blur-l) 0 #f5daba;
}

.services > div > div:nth-of-type(3) > a:nth-of-type(3) > div {
  background-color: #eaf6fb;
  box-shadow: inset 0 0 var(--shadow-blur-l) 0 #c2e2ef;
}

.services > div > div:nth-of-type(3) > a:nth-of-type(4) > div {
  background-color: #ffede3;
  box-shadow: inset 0 0 var(--shadow-blur-s) 0 #f9c4a6;
}

.services > div > div:nth-of-type(3) > a:nth-of-type(5) > div {
  background-color: #faf8e8;
  box-shadow: inset 0 0 var(--shadow-blur-s) 0 #f2ebbc;
}

.services > div > div:nth-of-type(3) > a:nth-of-type(6) > div {
  background-color: #edeffd;
  box-shadow: inset 0 0 var(--shadow-blur-s) 0 #cacdf2;
}

.services > div > div:nth-of-type(3) > a > div > img {
  height: 132px;
}

.services > div > div:nth-of-type(3) > a > h2 {
  font-weight: var(--weight-l);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 6px;
}

.services > div > div:nth-of-type(3) > a > h2::after {
  background-color: var(--color-text-dark);
}

/* 4番目以降のカード（横並びレイアウト） */
.services > div > div:nth-of-type(3) > a:nth-of-type(n + 4) {
  flex-direction: row;
}

.services > div > div:nth-of-type(3) > a:nth-of-type(n + 4) > div {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-s);
}

.services > div > div:nth-of-type(3) > a:nth-of-type(n + 4) > div > img {
  height: 70px;
}

@media screen and (max-width: 1299px) {
  .services > div > div:nth-of-type(2) {
    padding: 28px 36px;
    gap: 32px;
  }

  .services > div > div:nth-of-type(2) > img {
    height: 132px;
  }

  .services > div > div:nth-of-type(2) > div > div {
    gap: 12px;
  }

  .services > div > div:nth-of-type(2) > div > div > a {
    gap: 0;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .services > div > div:nth-of-type(2) > div > div > a::after {
    margin-left: 4px;
  }

  .services > div > div:nth-of-type(2) > div > div > a > p > span {
    font-size: 15px;
  }

  .services > div > div:nth-of-type(3) {
    gap: 38px 32px;
  }

  .services > div > div:nth-of-type(3) > a > div {
    height: 124px;
  }

  .services > div > div:nth-of-type(3) > a:nth-of-type(n) > div {
    --shadow-blur-l: 30px;
    --shadow-blur-s: 15px;
  }

  .services > div > div:nth-of-type(3) > a > div > img {
    height: 80px;
  }

  .services > div > div:nth-of-type(3) > a > h2 {
    padding: 0 4px 4px;
  }

  .services > div > div:nth-of-type(3) > a:nth-of-type(n + 4) > div {
    width: 64px;
    height: 64px;
  }

  .services > div > div:nth-of-type(3) > a:nth-of-type(n + 4) > div > img {
    height: 58px;
  }
}

@media screen and (max-width: 949px) {
  .services > div > div:nth-of-type(2) {
    flex-direction: column;
    gap: 12px;
  }

  .services > div > div:nth-of-type(2) > img {
    height: 120px;
  }

  .services > div > div:nth-of-type(2) > div > h2 {
    text-align: center;
  }

  .services > div > div:nth-of-type(2) > div > div {
    margin-top: 28px;
  }

  .services > div > div:nth-of-type(3) {
    grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
    gap: 40px 20px;
  }

  .services > div > div:nth-of-type(3) > a,
  .services > div > div:nth-of-type(3) > a:nth-of-type(n + 4) {
    flex-direction: column;
  }

  .services > div > div:nth-of-type(3) > a > div {
    width: 100%;
    height: 124px;
    border-radius: var(--radius-l);
  }

  .services > div > div:nth-of-type(3) > a:nth-of-type(n) > div {
    --shadow-blur-s: 30px;
  }

  .services > div > div:nth-of-type(3) > a > div > img {
    height: 80px;
  }

  .services > div > div:nth-of-type(3) > a:nth-of-type(n + 4) > div {
    width: 100%;
    height: 124px;
    border-radius: var(--radius-l);
  }

  .services > div > div:nth-of-type(3) > a:nth-of-type(n + 4) > div > img {
    height: 80px;
  }

  .services > div > div:nth-of-type(3) > a > h3::before {
    left: 0;
    right: 0;
  }
}

/* 青森県信用組合について */

.company {
  position: relative;
}

.company > div {
  padding-top: 174px;
  padding-bottom: 174px;
  position: relative;
}

.company > div > div:nth-child(2) {
  position: relative;
  display: flex;
}

.company > div > div:nth-child(2) > a {
  margin: 0 20px;
}

.company > div > div:nth-child(2) > a:nth-child(1) {
  transform: translate(48px, 32px);
  z-index: 1;
}
.company > div > div:nth-child(2) > a:hover > div:nth-child(2),
.company > div > div:nth-child(2) > a > div:nth-child(2):hover {
  opacity: unset;
  box-shadow: inset 0 0 0 3px var(--color-accent-secondary);
}

.company > div > div:nth-child(2) > a > div:nth-child(2)::after {
  background-color: var(--color-accent-primary);
}

.company > div > div:nth-child(2) > a > div:nth-child(2) > h2 {
  font-weight: var(--weight-l);
}

.company > div > img {
  position: absolute;
  z-index: -1;
}

.company > div > img:nth-of-type(1) {
  width: 284px;
  top: -72px;
  right: 180px;
}

.company > div > img:nth-of-type(2) {
  width: 284px;
  top: 76px;
  right: -320px;
}

.company > div > img:nth-of-type(3) {
  width: 256px;
  bottom: -80px;
  left: -220px;
}

.company > div:last-of-type {
  content: "";
  display: block;
  height: 100%;
  background-image: url(../img/index-company-bg.svg);
  background-position: top left;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 40%;
  z-index: -2;
}

@media screen and (max-width: 1299px) {
  .company > div > div:nth-child(2) > a > div:nth-child(1) {
    aspect-ratio: 1/0.5;
  }

  .company > div > div:nth-child(2) > a > div:nth-child(2) {
    margin-top: -25px;
  }

  .company > div > div:nth-child(2) > a:nth-child(1) {
    transform: translate(0px, 0px);
  }

  .company > div > div:nth-child(2) > a:nth-child(2) {
    transform: translate(-80px, -92px);
  }

  .company > div {
    padding-top: 140px;
    padding-bottom: 140px;
  }

  .company > div > img:nth-of-type(1) {
    width: 192px;
    top: -50px;
    right: 192px;
  }

  .company > div > img:nth-of-type(2) {
    width: 180px;
    top: 40px;
    right: 0px;
  }

  .company > div > img:nth-of-type(3) {
    width: 172px;
    bottom: -64px;
    left: 46px;
  }

  .company > div:last-of-type {
    width: 1200px;
    left: auto;
    right: 20%;
  }
}

@media screen and (max-width: 949px) {
  .company > div > img:nth-of-type(1) {
    width: 160px;
    top: -42px;
    right: 104px;
  }

  .company > div > img:nth-of-type(2) {
    width: 140px;
    top: 76px;
    right: 0px;
  }

  .company > div > img:nth-of-type(3) {
    width: 140px;
    bottom: -64px;
    left: 46px;
  }

  .company > div > div:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 40px 20px;
  }

  .company > div > div:nth-child(2) > a {
    margin: 0;
  }

  .company > div > div:nth-child(2) > a:nth-child(1),
  .company > div > div:nth-child(2) > a:nth-child(2) {
    transform: none;
  }

  .company > div:last-of-type {
    right: -27%;
  }
}

/* バナー */

.banner > .inner {
  max-width: 1050px;
}

.banner > .inner > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
}

.banner > .inner > div > div img {
  height: 83px;
}

@media screen and (max-width: 1299px) {
  .banner > .inner > div {
    gap: 15px 15px;
  }

  .banner > .inner > div > div img {
    height: 75px;
  }
}

@media screen and (max-width: 949px) {
  .banner > .inner {
    max-width: 600px;
  }

  .banner > .inner > div {
    justify-content: space-between;
    gap: 0;
  }

  .banner > .inner > div > div {
    width: 100%;
    margin-bottom: 15px;
  }

  .banner > .inner > div > div img {
    width: 100%;
    height: auto;
  }

  .banner > .inner > div > div.S {
    width: 48%;
  }
}

/* フッター */

footer {
  margin-top: 480px;
}

footer::after {
  position: absolute;
  top: 0;
  transform: translateY(-100%);
  background-image: linear-gradient(#c4fafa80 0%, transparent 72%, transparent 100%), url(../img/index-footer-bg.jpg);
  content: "";
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 480px;
  display: block;
  z-index: -1;
}

@media screen and (max-width: 1299px) {
  footer {
    margin-top: 300px;
  }

  footer::after {
    height: 300px;
  }
}

@media screen and (max-width: 949px) {
  footer {
    margin-top: 240px;
  }

  footer::after {
    height: 240px;
  }
}
