:root {
    --main-color: rgb(245, 138, 188);
    --main-color-right: rgb(255, 198, 225);
    --main-color-deep: rgb(255, 114, 180);
    --sub-color: rgb(242, 228, 107);
}

body * {
    letter-spacing: 0.15rem;
}

.fade {
    opacity : 0;
}

.fade.show {
    transition: 1s opacity linear;
}

.fade.show {
    opacity: 1;
}

.main {
    width: 100%;
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    grid-template-rows:
        [head] 80px
        [hero] auto
        [sub] auto
        [stance] auto
        [profile] auto
        [activity] auto
        [sns] auto
        [join] auto
        [foot] 100px;
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
}
body {
    position: relative;
    width: 100%;
    height: 100%;
}
body::before {
    content: '';
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, transparent 50%, rgb(250, 250, 250) 50%);
    transform-origin: top right;
}

header {
    grid-row: head;
    grid-column: 1 / -1;
    background-color: var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (min-width: 768px) {
    header {
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }
}

.logo {
    width: fit-content;
    height: fit-content;
}

.logo > h2 {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    color: var(--sub-color);
    font-family: 'Zen Old Mincho', serif;
    line-height: 1.8rem;
    margin: 0;
}

.logo > h2 > * {
    letter-spacing: 0;
}

.logo > h2 > span {
    font-size: 2.5rem;
}

.logo > small {
    font-size: 0.7rem;
    color: white;
}

@media (max-width: 767px) {
    .header-join-link {
        display: none;
    }
}

.catch-copy {
    grid-row: hero;
    font-size: 5rem;
    align-self: center;
}

.hero-image-wrap {
    grid-column: 1 / -1;
    grid-row: hero / span 2;
    margin: 0;
    width: 100%;
}

.hero-image {
    display: block;
    width: 100%;
}

.hero-image img {
    width: 100%;
}

.stance {
    grid-column: 1 / -1;
    grid-row: stance;
    margin-bottom: 4rem;
}

.stance .section-header {
    background-color: beige;
    padding: 1rem 0;
    text-align: center;
}

.stance h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.stance .row {
    min-height: 200px;
}

.stance h3 {
    position: relative;
    color: var(--main-color-deep);
    font-size: 2rem;
    line-height: 3.2rem;
}

/* .stance h3::before {
    content: '';
    display: inline-block;
    position: absolute;
    z-index: -1;
    top: 1.5rem;
    left: 0;
    width: 100%;
    border-bottom: 2px solid #ff72b4;
    border-image: linear-gradient(90deg, #ff72b4 2%, #ffffff 30%, #ffffff 70%, #ff72b4 100%);
    border-image-slice: 1;
}
@media (max-width: 487px) {
    .stance h3::before {
        border-bottom: 2px solid #ff72b4;
        border-image: linear-gradient(90deg, #ff72b4 2%, #ffffff 20%, #ffffff 80%, #ff72b4 100%);
        border-image-slice: 1;
    }
} */

.stance h3 span {
    display: inline-block;
    width: 3.5rem;
    height: 3.5rem;
    padding-left: 2px;
    color: white;
    background-color: var(--main-color);
}

.profile {
    grid-column: 1 / -1;
    grid-row: profile;
    background-color: rgb(233, 233, 233);
}

.profile .section-header {
    background-color: beige;
    padding: 1rem 0;
    text-align: center;
}

.profile h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.profile-images {
    max-width: 250px;
    margin: 0 auto;
}
.profile-contents {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-flow: column;
}
@media (min-width: 768px) {
    .profile-images {
        max-width: 350px;
        margin: 0 auto;
    }
    .profile-contents {
        flex-flow: row;
    }
}

.profile-images img {
    width: 100%;
}

.profile-row td {
    line-height: 1.5rem;
}

.activity {
    grid-row: activity;
    grid-column: 1 / -1;
}

.activity .section-header {
    background-color: beige;
    padding: 1rem 0;
    text-align: center;
}

.activity h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.activity img {
    width: 80%;
}

.activity img:hover {
    opacity: 0.8;
}

.activity .pdf-wrap {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    width: 100vw;
    overflow-x: scroll;
}
.activity img {
    width: 280px;
}

.sns {
    grid-row: sns;
    grid-column: 1 / -1;
}

.sns .section-header {
    background-color: beige;
    padding: 1rem 0;
    text-align: center;
}

.sns h2 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.sns-icon-wrap {
    width: 4rem;
    height: 4rem;
    margin: 0 2rem;
}

.sns-icon-wrap:hover {
    opacity: 0.7;
}

.sns-icon-wrap img {
    width: 100%;
    height: 100%;
}

.join {
    grid-row: join;
    grid-column: 1 / -1;
}

.join a {
    color: white;
    font-weight: 500;
    background-color: var(--main-color);
}

.join a:hover {
    color: white;
    background-color: var(--main-color-deep);
}

.footer {
    grid-row: foot;
    grid-column: 1 / -1;
}

.footer-contents {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-flow: column;
    padding: 4rem 0;
}
@media (min-width: 768px) {
    .footer-contents {
        flex-flow: row;
    }
}

.footer-contents {
    background-image: url('./images/footer.jpg');
    background-position: center;
    background-size: cover;
    background-color: rgb(223, 223, 223, 0.8);
    transition: 0.5s;
    background-blend-mode:lighten;
}

.footer-contents h3 {
    font-size: 2rem;
    color: var(--main-color-deep);
    font-weight: 700;
    white-space: nowrap;
}

.copyright {
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    background-color: var(--main-color-right);
}
@media (min-width: 768px) {
    .copyright {
        flex-flow: row;
    }
}

/* 吹き出し */
.balloon-001 {
  display: flex;
  justify-content: center;
  position: relative;
  max-width: 180px;
  margin: 20px auto 0 auto;
  padding-bottom: 5px;
  border-radius: 5px;
  background-color: #ffe0e7;
  color: #333333;
  box-shadow: 0px 7px 15px 1px #e6e6e6;
}
.balloon-001 > small {
  font-size: 0.7em !important;
  display: inline-block;
  margin-top: 1em;
}
.balloon-001 > span {
  font-size: 1.5em !important;
}

.balloon-001::before {
  position: absolute;
  top: -15px;
  width: 30px;
  height: 15px;
  background-color: #ffe0e7;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  content: '';
}
