/*
 * 資料ダウンロード
 * Gutenbergで同じ「section」ブロックを追加すると、自動的にカードとして並ぶ。
 */
.pageMain--downloads {
    overflow: hidden;
    background: #f6faf8;
    color: #315d5b;
}

.downloadsHero {
    position: relative;
    min-height: clamp(500px, 63vw, 720px);
    display: flex;
    align-items: center;
    padding: clamp(150px, 14vw, 210px) clamp(24px, 8vw, 120px) clamp(90px, 10vw, 150px);
    background:
        radial-gradient(circle at 83% 34%, rgba(255, 235, 189, .78) 0 8%, transparent 8.2%),
        radial-gradient(circle at 7% 75%, rgba(207, 231, 218, .82) 0 11%, transparent 11.2%),
        linear-gradient(118deg, #fff 0%, #fbfdfc 54%, #eff8f5 100%);
}

.downloadsHero::after {
    content: "";
    position: absolute;
    right: -4vw;
    bottom: -8vw;
    width: clamp(280px, 38vw, 590px);
    aspect-ratio: 1;
    border: 1px solid rgba(91, 159, 153, .16);
    border-radius: 48% 52% 63% 37% / 45% 36% 64% 55%;
    transform: rotate(-11deg);
}

.downloadsHero__inner {
    position: relative;
    z-index: 2;
    width: min(820px, 76vw);
}

.downloadsHero__eyebrow,
.downloadsArchive__eyebrow {
    margin: 0 0 18px;
    color: #72b657;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
}

.downloadsHero__eyebrow::before {
    content: "";
    display: inline-block;
    width: 34px;
    height: 1px;
    margin: 0 12px 4px 0;
    background: currentColor;
}

.downloadsHero__title {
    margin: 0;
    color: #4f9f9c;
    font-size: clamp(40px, 5.4vw, 78px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .08em;
}

.downloadsHero__lead {
    max-width: 700px;
    margin: 32px 0 0;
    color: #46615f;
    font-size: clamp(15px, 1.25vw, 18px);
    font-weight: 500;
    line-height: 2;
    letter-spacing: .06em;
}

.downloadsHero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
    padding: 13px 16px 13px 24px;
    border: 1px solid rgba(79, 159, 156, .4);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: #438f8c;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
}

.downloadsHero__scroll i {
    display: grid;
    width: 34px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: #72b657;
    color: #fff;
    font-style: normal;
    transition: transform .25s ease;
}

.downloadsHero__scroll:hover i {
    transform: translateY(3px);
}

.downloadsHero__decoration {
    position: absolute;
    pointer-events: none;
}

.downloadsHero__decoration--dots {
    top: 24%;
    right: 7%;
    width: 126px;
    height: 104px;
    opacity: .45;
    background-image: radial-gradient(#f1c969 2px, transparent 2.5px);
    background-size: 16px 16px;
}

.downloadsHero__decoration--circle {
    left: 54%;
    bottom: 14%;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(114, 182, 87, .38);
    border-radius: 50%;
}

.downloadsArchive {
    position: relative;
    z-index: 2;
    padding: clamp(76px, 8vw, 124px) clamp(20px, 5vw, 76px) clamp(100px, 11vw, 170px);
    background: #eef6f2;
}

.downloadsArchive__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 34vw);
    align-items: end;
    gap: 48px;
    margin-bottom: 34px;
}

.downloadsArchive__title {
    margin: 0;
    color: #438f8c;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.3;
    letter-spacing: .08em;
}

.downloadsArchive__description {
    margin: 14px 0 0;
    color: #617674;
    font-size: 15px;
    line-height: 1.8;
}

.downloadsSearch {
    display: block;
}

.downloadsSearch__label {
    display: block;
    margin-bottom: 8px;
    color: #4e7774;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}

.downloadsSearch__field {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 20px;
    border: 1px solid rgba(67, 143, 140, .2);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(55, 105, 101, .06);
}

.downloadsSearch__field:focus-within {
    border-color: #4f9f9c;
    box-shadow: 0 0 0 3px rgba(79, 159, 156, .12);
}

.downloadsSearch__field svg {
    flex: 0 0 auto;
    width: 21px;
    margin-right: 12px;
    fill: none;
    stroke: #4f9f9c;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.downloadsSearch__input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #315d5b;
    font: inherit;
    font-size: 15px;
}

.downloadsSearch__input::placeholder {
    color: #91a5a3;
}

.downloadsArchive__status {
    visibility: hidden;
    margin: 0 0 20px;
    color: #65817f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .07em;
}

.downloadsArchive.is-ready .downloadsArchive__status {
    visibility: visible;
}

.downloadsArchive__status span {
    margin-right: 4px;
    color: #438f8c;
    font-size: 21px;
}

.downloadsArchive__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 42px);
    counter-reset: downloads-card;
}

.downloadsArchive__grid > .section.first {
    display: none !important;
}

.downloadsArchive__grid > .section:not(.first) {
    position: relative;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    counter-increment: downloads-card;
}

.downloadsArchive__grid > .section:not(.first)[hidden] {
    display: none !important;
}

.downloadsArchive__grid > .section:not(.first) > .swell-block-fullWide__inner {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 !important;
}

.downloadsArchive__grid .section-content {
    position: relative;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(65, 141, 138, .1);
    border-radius: 24px;
    background: #fff !important;
    box-shadow: 0 18px 50px rgba(49, 93, 91, .09);
    transition: transform .3s ease, box-shadow .3s ease;
}

.downloadsArchive__grid .section-content::before,
.downloadsArchive__grid .section-content::after {
    display: none !important;
}

.downloadsArchive__grid .section-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 58px rgba(49, 93, 91, .14);
}

.downloadsArchive__grid .section-content > .wp-block-group__inner-container {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.downloadsArchive__grid .guidebook-image,
.downloadsArchive__grid .wp-block-image {
    position: relative;
    order: 1;
    width: 100%;
    margin: 0 !important;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e4efeb;
    box-shadow: none !important;
    cursor: pointer;
}

.downloadsArchive__grid .wp-block-image::after {
    content: "VIEW PDF  ↗";
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(49, 93, 91, .84);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .25s ease, transform .25s ease;
}

.downloadsArchive__grid .section-content:hover .wp-block-image::after,
.downloadsArchive__grid .wp-block-image:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.downloadsArchive__grid .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.downloadsArchive__grid .section-content:hover .wp-block-image img {
    transform: scale(1.025);
}

.downloadsArchive__grid .section-head {
    position: relative;
    order: 2;
    display: block !important;
    margin: 0;
    padding: 30px 34px 0;
}

.downloadsArchive__grid .section-head::before {
    content: "0" counter(downloads-card);
    display: block;
    margin-bottom: 11px;
    color: #72b657;
    font-family: "Doppio One", sans-serif;
    font-size: 13px;
    letter-spacing: .12em;
}

.downloadsArchive__grid h3.section-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #367f7c;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: .06em;
    text-align: left !important;
}

.downloadsArchive__grid .section-head + p {
    order: 3;
    margin: 0 !important;
    padding: 18px 34px 0;
    color: #5d6f6d;
    font-size: 14px;
    line-height: 1.9;
    text-align: left !important;
}

.downloadsCard__meta {
    order: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 28px 34px 15px;
    color: #80908f;
    font-size: 11px;
}

.downloadsCard__type {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef6e9;
    color: #62a348;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.downloadsArchive__grid .swell-block-button {
    order: 5;
    width: auto;
    margin: 0 !important;
    padding: 0 34px 34px;
}

.downloadsArchive__grid .swell-block-button__link {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px 11px 24px;
    border: 0;
    border-radius: 999px;
    background: #65b94f !important;
    box-shadow: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
}

.downloadsArchive__grid .swell-block-button__link::after {
    content: "↗";
    display: grid;
    width: 36px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #5aad45;
    font-size: 15px;
    transition: transform .25s ease;
}

.downloadsArchive__grid .swell-block-button__link:hover::after {
    transform: translate(2px, -2px);
}

.downloadsArchive__empty {
    margin: 30px 0 0;
    padding: 42px 24px;
    border: 1px dashed rgba(67, 143, 140, .35);
    border-radius: 18px;
    background: rgba(255, 255, 255, .6);
    color: #597674;
    text-align: center;
}

@media (min-width: 1720px) {
    .downloadsArchive__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .downloadsHero {
        min-height: 530px;
        align-items: flex-end;
        padding: 132px 22px 78px;
        background:
            radial-gradient(circle at 94% 29%, rgba(255, 235, 189, .72) 0 11%, transparent 11.3%),
            radial-gradient(circle at 4% 86%, rgba(207, 231, 218, .8) 0 13%, transparent 13.3%),
            linear-gradient(145deg, #fff 0%, #f3faf7 100%);
    }

    .downloadsHero__inner {
        width: 100%;
    }

    .downloadsHero__title {
        font-size: clamp(31px, 9vw, 36px);
        letter-spacing: .04em;
        white-space: nowrap;
    }

    .downloadsHero__lead {
        margin-top: 24px;
        font-size: 14px;
        line-height: 1.85;
    }

    .downloadsHero__scroll {
        margin-top: 28px;
    }

    .downloadsHero__decoration--dots {
        top: 22%;
        right: -20px;
    }

    .downloadsArchive {
        padding: 72px 18px 110px;
    }

    .downloadsArchive__header {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 24px;
    }

    .downloadsArchive__title {
        font-size: 30px;
    }

    .downloadsArchive__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .downloadsArchive__grid .section-head {
        padding: 24px 24px 0;
    }

    .downloadsArchive__grid .section-head + p {
        padding: 15px 24px 0;
    }

    .downloadsCard__meta {
        padding: 24px 24px 13px;
    }

    .downloadsArchive__grid .swell-block-button {
        padding: 0 24px 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .downloadsHero__scroll i,
    .downloadsArchive__grid .section-content,
    .downloadsArchive__grid .wp-block-image img,
    .downloadsArchive__grid .swell-block-button__link::after {
        transition: none;
    }
}
