@import url(common.css);

.head {
  position: relative;
  .head-img {
    width: 90%;
    display: block;
    margin: 0 auto;
  }
  .head-message {
    position: absolute;
    left: 5%;
    top: 3%;
    img {
      width: 40vw;
    }
    p {
      font-size: 2.5vw;
      font-weight: 700;
      letter-spacing: 0.4vw;
    }
  }

  .head-news {
    width: 250px;
    position: absolute;
    left: 65%;
    top: 70%;
    ul {
      a {
        width: 100%;
        display: flex;
        align-items: center; /* 上下中央寄せ */
        position: relative;
        justify-content: space-between;
        background-color: var(--secondary-c);
        padding: 20px 30px;
        border-radius: 20px;
        margin-bottom: 10px;
        transition: opacity 0.5s;
        &:hover {
          opacity: 0.6;
        }
        &::after {
          content: "";
          display: inline-block;
          width: 8px;
          height: 8px;
          border-right: 1px solid #fff; /* 矢印の右側の線 */
          border-bottom: 1px solid #fff; /* 矢印の下側の線 */
          transform: rotate(-45deg); /* 45度回転して右矢印に */
          margin-right: 0px; /* 矢印とテキストの間隔調整 */
          transition: margin-right 0.5s;
        }
        &:hover::after {
          margin-right: -10px;
        }

        li {
          display: flex;
          flex-direction: column;
          color: #fff;
          time {
            font-size: 10px;
            margin-bottom: 10px;
          }
          h3 {
            font-size: 12px;
            width: 170px;
          }
        }
      }
    }
    .more-btn {
      position: absolute;
      inset: auto 0 auto auto;
      display: inline-flex;
      width: 100;
      justify-content: flex-end;
      align-items: center;
      justify-content: flex-end;
      gap: 8px; /* テキストと矢印の間の間隔 */
      color: #000;
      text-decoration: none;
      border-bottom: 1px solid #000;
      padding: 5px 12px;
      font-size: 14px;
      transition: opacity 0.3s;
    }

    .more-btn:hover {
      opacity: 0.5;
    }

    /* 矢印の円背景（親要素） */
    .more-btn::before {
      content: "";
      position: absolute;
      right: -20px; /* 矢印と円の位置調整 */
      width: 24px;
      height: 24px;
      background-color: var(--secondary-c);
      border-radius: 50%;
      transition: transform 0.5s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* 矢印本体 */
    .more-btn::after {
      content: "";
      position: absolute;
      right: -12px; /* 矢印の位置調整 */
      width: 8px;
      height: 8px;
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
      transform: rotate(-45deg);
      transition: transform 0.5s;
    }

    /* ホバーで矢印が移動 */
    .more-btn:hover::before {
      transform: translateX(5px);
    }

    .more-btn:hover::after {
      transform: translateX(5px) rotate(-45deg);
    }
  }
}
.front-section-title {
  position: absolute;
  font-size: 2.5vw;
  left: 0;
  top: 70px;
  font-family: "Century Gothic Paneuropean", sans-serif;
  font-weight: bold;
  writing-mode: vertical-rl;
  letter-spacing: 0.4vw;
}

.about {
  background-color: var(--primary-c);
  margin-top: 10vw;
  border-radius: 15px;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 5vh;
  background-image: url(../img/top/top-about.png);
  background-repeat: no-repeat;
  background-position: 85% center;
  background-size: auto 80%;

  .about-contents {
    margin-left: 5%;
    h4 {
      font-size: 2.2vw;
      font-weight: 700;
      letter-spacing: 0.4vw;
    }
    p {
      font-size: 0.85vw;
      line-height: 2;
      letter-spacing: 0.4vw;
      margin: 2vw 0;
    }
    a {
      background-color: #fff;
      color: var(--primary-c);
      padding: 5px 20px;
      border-radius: 20px;
      transition: all 0.3s ease;

      &:hover {
        background-color: var(--primary-c);
        color: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px);
      }
    }
  }
}

.activities {
  background-color: var(--secondary-c);
  margin-top: 50px;
  border-radius: 15px;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 3% 5%;
  z-index: 100;
  h2 {
    text-align: center;
    font-weight: bold;
    font-size: 2vw;
    margin-bottom: 30px;
    letter-spacing: 0.4vw;
  }
  ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vw;
    li {
      display: grid;
      grid-template-columns: 9vw auto;
      img {
        grid-area: 1/1/4/2;
        width: 7.5vw;
      }
      h4 {
        grid-area: 1/2/2/3;
        font-size: 1.4vw;
        font-weight: bold;
        letter-spacing: 0.2vw;
      }
      p {
        grid-area: 2/2/3/3;
        line-height: 2;
        font-size: 0.85vw;
      }
      a {
        grid-area: 3/2/4/3;
        background-color: #fff;
        color: var(--secondary-c);
        padding: 5px 20px;
        border-radius: 20px;
        width: 100%;
        font-size: 1vw;
        align-self: end;
        width: 150px;
        text-align: center;
        margin-top: 10px;
        transition: all 0.3s ease;

        &:hover {
          background-color: var(--secondary-c);
          color: #fff;
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
          transform: translateY(-2px);
        }
      }
    }
    li:nth-child(1) {
      grid-area: 1/1/2/2;
    }
    li:nth-child(2) {
      grid-area: 1/2/2/3;
    }
    li:nth-child(3) {
      grid-area: 2/1/3/3;
    }
  }
}
.section-donate {
  background-color: var(--bg-c-p);
  position: relative;
  z-index: 1;
  .svg1 {
    position: absolute;
    top: -25%;
  }
  .svg2 {
    position: absolute;
    bottom: -30%;
    z-index: 5;
  }
  .donate {
    background-color: #fff;
    margin-top: 50px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    padding: 5vh 10vh 15vh;
    z-index: 100;
    text-align: center;
    .front-section-title {
      color: var(--bg-c-p);
    }
    h4 {
      color: var(--secondary-c);
      font-size: 1vw;
    }
    h2 {
      color: var(--primary-c);
      font-size: 2vw;
      font-weight: bold;
      margin-bottom: 14px;
    }
    p {
      text-align: center;
      margin-bottom: 14px;
    }
    .donate-image-wrapper {
      position: relative;
      width: 100%;
      display: block;

      img {
        width: 100%;
        display: block;
      }

      .donate-cta {
        position: absolute;
        bottom: -10%;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid var(--secondary-c);
        padding: 2vw 3vw;
        background: #fff;
        width: 45%;
        z-index: 10;
        text-decoration: none;
        transition: background-color 0.5s, color 0.5s;

        .donate-cta-contents {
          display: flex;
          flex-direction: column;
          transition: color 0.5s;

          p {
            font-size: 1vw;
            color: var(--secondary-c);
            margin: 0;
            transition: color 0.5s;
          }

          h4 {
            color: #000;
            font-size: 1.3vw;
            font-weight: bold;
            margin: 0.5em 0 0;
            transition: color 0.5s;
          }
        }

        &::before {
          content: "";
          width: 32px;
          height: 32px;
          background-color: var(--secondary-c);
          border-radius: 50%;
          position: absolute;
          right: 32px;
          top: 50%;
          transform: translateY(-50%);
          z-index: 1;
          transition: background-color 0.5s, transform 0.5s;
        }

        &::after {
          content: "";
          position: absolute;
          right: 45px;
          top: 50%;
          transform: translateY(-50%) rotate(-45deg);
          width: 8px;
          height: 8px;
          border-right: 2px solid #fff;
          border-bottom: 2px solid #fff;
          z-index: 2;
          transition: border-color 0.5s, transform 0.5s;
        }

        &:hover {
          background-color: var(--secondary-c);

          .donate-cta-contents {
            p,
            h4 {
              color: #fff;
            }
          }

          &::before {
            background-color: #fff;
            transform: translateY(-50%) translateX(5px);
          }

          &::after {
            border-color: var(--secondary-c);
            transform: translateY(-50%) translateX(5px) rotate(-45deg);
          }
        }
      }
    }
  }
}

#activities1,
#activities2,
#activities3 {
  scroll-margin-top: 100px;
}

@media (width < 768px) {
  body {
    padding-top: var(--header-h);
  }

  .front-section-title {
    position: absolute;
    font-size: clamp(20px, 2.4vw, 28px);
  }
  .head {
    .head-img {
      width: 90%;
      display: block !important;
      margin: 0 auto;
    }
    .head-message {
      img {
        width: 60vw;
      }
      p {
        font-size: 4vw;
      }
    }

    .head-news {
      width: 80%;
      position: static;
      margin: 20px auto;

      ul {
        a {
          padding: 10px 20px;
          transition: opacity 0.5s;
          &:hover {
            opacity: 0.6;
          }

          li {
            time {
              font-size: 12px;
              margin-bottom: 10px;
            }
            h3 {
              font-size: 14px;
              width: 100%;
            }
          }
        }
      }
      .more-btn {
        position: relative;
        font-size: 14px;
        transition: opacity 0.3s;
        cursor: pointer;
      }

      /* 矢印の円背景 */
      .more-btn::before {
        display: inline-flex;
        flex-shrink: 0;
      }

      /* 矢印本体 */
      .more-btn::after {
        width: 8px;
        height: 8px;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
      }
    }
  }

  .about {
    color: #fff;
    overflow: hidden;
    padding: 3vh;
    background-image: none;
    .about-contents {
      margin-left: 5%;
      h4 {
        font-size: clamp(18px, 2.4vw, 24px);
        letter-spacing: 0;
      }
      p {
        font-size: clamp(12px, 2vw, 20px);
        line-height: 1.4;
        letter-spacing: 0;
        margin: 2vw 0;
      }
      a {
        background-color: #fff;
        color: var(--primary-c);
        padding: 5px 20px;
        border-radius: 20px;
        display: inline-block;
        margin-top: 10px;
      }
    }
  }

  .activities {
    padding: 3vh;
    z-index: 100;
    h2 {
      text-align: center;
      font-size: clamp(24px, 3vw, 32px);
      margin-bottom: 30px;
      letter-spacing: 0.4vw;
    }
    ul {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    ul li {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      margin: 0 auto;
      width: 95%;
      padding: 12px 0;
    }

    ul li img {
      display: none;
    }

    ul li h4 {
      font-size: clamp(20px, 2.4vw, 28px);
    }

    ul li p {
      font-size: clamp(12px, 2vw, 20px);
      line-height: 1.4;
      letter-spacing: 0;
    }

    ul li a {
      font-size: 14px;
      padding: 6px 16px;
      border-radius: 16px;
      background-color: #fff;
      color: var(--secondary-c);
      text-align: center;
      width: 150px;
      margin-top: 8px;
    }
  }

  .section-donate {
    .svg1 {
      top: -15%;
    }
    .svg2 {
      bottom: -15%;
    }
    .donate {
      padding: 5vh 3vh;
      z-index: 100;
      text-align: center;
      .front-section-title {
        color: var(--bg-c-p);
      }
      h4 {
        font-weight: bold;
        font-size: clamp(24px, 3vw, 32px);
      }
      h2 {
        font-size: clamp(12px, 2vw, 20px);
      }
      p {
        text-align: center;
        font-size: clamp(14px, 2vw, 20px);
      }
      .donate-image-wrapper {
        position: relative;
        width: 100%;
        display: block;

        img {
          width: 100%;
          display: block;
        }

        .donate-cta {
          position: absolute;
          bottom: -10%;
          left: 50%;
          transform: translateX(-50%);
          display: flex;
          justify-content: space-between;
          align-items: center;
          border: 1px solid var(--secondary-c);
          padding: 2vw 3vw;
          background: #fff;
          width: 90%;
          z-index: 10;
          text-decoration: none;
          transition: background-color 0.5s, color 0.5s;

          .donate-cta-contents {
            display: flex;
            flex-direction: column;
            transition: color 0.5s;

            p {
              font-size: clamp(12px, 2vw, 18px);
            }

            h4 {
              font-size: clamp(16px, 2vw, 24px);
              margin: 5px 0;
            }
          }
        }
      }
    }
  }
}
