@charset "UTF-8";

/* -----  リセット  ----- */
*,
::before,
::after
{
    box-sizing: border-box;
    border-style: solid;
    border-width: 0;
}

html
{
    font-size: 62.5%; /* 1rem = 10px */
    line-height: 1.15;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
figure,
blockquote,
table,
iframe
{
    margin: 0;
}

ul,
ol,
th,
td
{
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6
{
    font-size: inherit;
    line-height: inherit;
    font-weight: bold;
}

ul
{
    list-style: none;
}

a
{
    color: inherit;
    background-color: transparent;
    text-decoration: none;
    transition: 0.3s;
}

a:hover
{
    opacity: 0.8;
}

img,
iframe
{
    vertical-align: bottom;
}

table
{
    border-collapse: collapse;
    border-spacing: 0;
}

th,
td
{
    text-align: left;
    vertical-align: top;
}

/* -----  共通  ----- */
body
{
    width: 100%;
    color: #000;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

img
{
    width: 100%;
}

p
{
    line-height: 1.5;
    padding-bottom: 0.5em;
}

/* -----  ヘッダー  ----- */
header.common
{
    border-bottom: 3px solid #00994A;
}

.header_nav
{
    width: 100%;
    background-color: #fff;
}

.header_nav-top
{
    max-width: 1100px;
    width: 95%;
    margin: 0 auto;
    padding: 15px 0 10px;
}

.header_logo
{
    display: block;
    width: 25rem;
}

/* -----  レイアウト  ----- */
.template.container
{
    max-width: 880px;
    width: 90%;
    margin: 0 auto;
    padding: 5rem 0 8rem;
}

/* -----  パンくずリスト  ----- */
.breadcrumb
{
    margin-bottom: 2.5rem;
}

.breadcrumb__list
{
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #666;
}

.breadcrumb__item:not(:last-child)::after
{
    content: "＞";
    margin: 0 0.6em;
    color: #999;
}

.breadcrumb__item a
{
    color: #006D31;
    text-decoration: underline;
}

/* 現在のページ（イベント名）は長くなりやすいので1行で省略 */
.breadcrumb__item[aria-current="page"]
{
    flex: 1 1 0;
    min-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -----  一覧に戻る  ----- */
.event-back
{
    margin-top: 5rem;
    padding-bottom: 0;
    text-align: center;
}

.event-back a
{
    display: inline-block;
    padding: 0.8em 2em;
    color: #006D31;
    font-size: 1.5rem;
    font-weight: bold;
    border: 1px solid #006D31;
    border-radius: 4px;
}

.event-back a::before
{
    content: "＜";
    margin-right: 0.5em;
}

/* -----  タイトル  ----- */
.eventTitle
{
    font-size: 3rem;
    line-height: 1.4;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    border-bottom: solid 3px #CCEBDB;
}

/* -----  開催日程  ----- */
.template .top
{
    margin-bottom: 4rem;
}

.event-dates
{
    background: #E5F5EC;
    padding: 0.5rem 2.5rem;
}

.event-date
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.2rem;
    padding: 1.6rem 0;
    line-height: 1.5;
}

.event-date + .event-date
{
    border-top: 1px solid #CCEBDB;
}

.event-date__num
{
    color: #fff;
    background: #006D31;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0.2em 0.8em;
    white-space: nowrap;
}

.event-date__time
{
    font-size: 1.7rem;
    font-weight: bold;
}

.event-date__mode,
.event-date__end
{
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0.1em 0.8em;
    border: 1px solid currentColor;
    white-space: nowrap;
}

.event-date__mode
{
    color: #006D31;
    background: #fff;
}

.event-date__venue
{
    flex-basis: 100%;
    order: 1;
}

.event-date__end
{
    color: #fff;
    background: #666;
    border-color: #666;
}

.event-date.is-past .event-date__time,
.event-date.is-past .event-date__venue,
.event-date.is-past .event-date__mode
{
    color: #666;
}

.event-date.is-past .event-date__num
{
    background: #666;
}

/* -----  キャッチコピー  ----- */
.event-catch
{
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 1.5;
    color: #006D31;
}

.event-subcatch
{
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.6;
    margin-top: 0.5em;
}

.event-catch p,
.event-subcatch p
{
    font-size: inherit;
    line-height: inherit;
    padding-bottom: 0;
}

/* -----  本文（ACF WYSIWYGエディター）  ----- */
.event-content
{
    font-size: 1.6rem;
    line-height: 1.8;
}

.event-catch + .event-content,
.event-subcatch + .event-content
{
    margin-top: 3rem;
}

.event-content::after
{
    content: "";
    display: block;
    clear: both;
}

.event-content p
{
    line-height: 1.8;
    padding-bottom: 1.2em;
}

.event-content h2
{
    font-size: 2.2rem;
    line-height: 1.5;
    margin: 1.8em 0 0.8em;
    padding-left: 0.6em;
    border-left: 5px solid #00994A;
}

.event-content h3
{
    font-size: 1.8rem;
    line-height: 1.5;
    margin: 1.5em 0 0.6em;
}

.event-content h4
{
    font-size: 1.6rem;
    line-height: 1.5;
    margin: 1.2em 0 0.5em;
}

.event-content > :first-child
{
    margin-top: 0;
}

.event-content ul,
.event-content ol
{
    margin: 0 0 1.2em 1.5em;
}

.event-content ul
{
    list-style: disc;
}

.event-content li
{
    margin-bottom: 0.4em;
    line-height: 1.7;
}

.event-content a
{
    color: #000AFF;
    text-decoration: underline;
}

.event-content blockquote
{
    margin-bottom: 1.2em;
    padding: 1em 1.5em;
    background: #F2F2F2;
    border-left: 5px solid #CCEBDB;
}

.event-content hr
{
    margin: 2em 0;
    border-top: 1px solid #ddd;
}

/* 画像は元のサイズを保ち、幅が足りないときだけ縮小 */
.event-content img
{
    width: auto;
    max-width: 100%;
    height: auto;
}

.event-content iframe
{
    max-width: 100%;
}

.event-content .aligncenter
{
    display: block;
    margin: 0 auto 1.5em;
}

.event-content .alignleft
{
    float: left;
    margin: 0 1.5em 1em 0;
}

.event-content .alignright
{
    float: right;
    margin: 0 0 1em 1.5em;
}

.event-content .wp-caption
{
    max-width: 100%;
}

.event-content .wp-caption-text
{
    font-size: 1.3rem;
    color: #666;
    padding-top: 0.5em;
}

.event-content table
{
    width: 100%;
    margin-bottom: 1.5em;
}

.event-content th,
.event-content td
{
    padding: 0.8em 1em;
    border: 1px solid #ccc;
}

.event-content th
{
    width: 25%;
    background: #E5F5EC;
    white-space: nowrap;
}

/* -----  申込みボタン  ----- */
.event-btn
{
    display: block;
    max-width: 400px;
    margin: 4rem auto 0;
    padding: 1.1em 1.5em;
    color: #fff;
    background: #006D31;
    font-size: 1.7rem;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    border-radius: 4px;
}

/* -----  申込みフォーム（Contact Form 7）  ----- */
.event-form
{
    margin-top: 5rem;
    padding: 3rem;
    background: #E5F5EC;
    scroll-margin-top: 2rem;
}

.event-form__title
{
    font-size: 2.2rem;
    line-height: 1.5;
    text-align: center;
    color: #006D31;
    margin-bottom: 2.5rem;
}

.event-form .wpcf7-form p
{
    font-size: 1.5rem;
    font-weight: bold;
    padding-bottom: 2rem;
}

.event-form .wpcf7-form-control-wrap
{
    display: block;
    margin-top: 0.6rem;
    font-weight: normal;
}

.event-form input[type="text"],
.event-form input[type="email"],
.event-form input[type="tel"],
.event-form input[type="url"],
.event-form input[type="number"],
.event-form input[type="date"],
.event-form select,
.event-form textarea
{
    width: 100%;
    padding: 0.8em 1em;
    font-size: 1.6rem; /* 16px未満だとiPhoneで入力時に拡大される */
    font-family: inherit;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.event-form textarea
{
    height: 12em;
}

.event-form input:focus,
.event-form select:focus,
.event-form textarea:focus
{
    outline: 2px solid #00994A;
    outline-offset: 1px;
}

.event-form .wpcf7-list-item
{
    display: inline-block;
    margin: 0 1.5em 0.4em 0;
}

.event-form input[type="submit"]
{
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 1rem auto 0;
    padding: 1.1em 1.5em;
    color: #fff;
    background: #006D31;
    font-size: 1.7rem;
    font-weight: bold;
    font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.event-form input[type="submit"]:hover
{
    opacity: 0.8;
}

.event-form .wpcf7-spinner
{
    display: block;
    margin: 1rem auto 0;
}

.event-form .wpcf7-not-valid-tip
{
    font-size: 1.3rem;
    margin-top: 0.4rem;
}

.event-form .wpcf7-response-output
{
    margin: 2rem 0 0 !important;
    padding: 1em !important;
    font-size: 1.4rem;
    background: #fff;
}

.event-closed
{
    margin-top: 4rem;
    padding: 1.5em;
    text-align: center;
    font-weight: bold;
    color: #666;
    background: #F2F2F2;
}

/* -----  フッター  ----- */
footer.common
{
    padding: 4rem 0 2rem;
    background: #F2F2F2;
}

.footer-inner
{
    display: flex;
    justify-content: space-between;
    gap: 2rem 4rem;
    max-width: 880px;
    width: 90%;
    margin: 0 auto;
}

.footer-inner h3
{
    font-size: 1.6rem;
    margin-bottom: 0.6em;
}

.footer-inner p
{
    font-size: 1.4rem;
    padding-bottom: 0.3em;
}

.footer-contact a
{
    color: #000AFF;
    text-decoration: underline;
}

.footer-copy
{
    max-width: 880px;
    width: 90%;
    margin: 3rem auto 0;
    padding: 2rem 0 0;
    border-top: 1px solid #ccc;
    font-size: 1.2rem;
    text-align: center;
}

@media screen and (max-width: 999px)
{
    p
    {
        font-size: 1.4rem;
        line-height: 1.7;
    }

    .header_nav-top
    {
        width: 100%;
        padding: 10px 3% 5px;
    }

    .header_logo
    {
        width: 155px;
    }

    .template.container
    {
        padding: 3rem 0 5rem;
    }

    .breadcrumb
    {
        margin-bottom: 1.5rem;
    }

    .breadcrumb__list
    {
        font-size: 1.2rem;
    }

    .event-back
    {
        margin-top: 4rem;
    }

    .eventTitle
    {
        font-size: 2.2rem;
        padding-bottom: 1.5rem;
        margin-bottom: 2rem;
    }

    .template .top
    {
        margin-bottom: 3rem;
    }

    .event-dates
    {
        padding: 0.5rem 1.5rem;
    }

    .event-date
    {
        padding: 1.3rem 0;
    }

    .event-date__time
    {
        flex-basis: 100%;
        font-size: 1.6rem;
        order: 1;
    }

    .event-date__venue
    {
        font-size: 1.4rem;
        order: 2;
    }

    .event-catch
    {
        font-size: 2rem;
    }

    .event-subcatch
    {
        font-size: 1.6rem;
    }

    .event-content,
    .event-content p,
    .event-content li
    {
        font-size: 1.5rem;
    }

    .event-content h2
    {
        font-size: 1.8rem;
    }

    .event-content h3
    {
        font-size: 1.6rem;
    }

    .event-content .alignleft,
    .event-content .alignright
    {
        float: none;
        display: block;
        margin: 0 auto 1.5em;
    }

    .event-btn
    {
        font-size: 1.6rem;
        margin-top: 3rem;
    }

    .event-form
    {
        margin-top: 4rem;
        padding: 2rem 1.5rem;
    }

    .event-form__title
    {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .event-form .wpcf7-form p
    {
        font-size: 1.4rem;
    }

    .footer-inner
    {
        display: block;
    }

    .footer-contact
    {
        margin-top: 1.5rem;
    }
}

/* -----  イベント一覧（archive-events.php）  ----- */
.event-card
{
    border-bottom: 1px solid #ddd;
}

.event-card:first-child
{
    border-top: 1px solid #ddd;
}

.event-card__link
{
    display: flex;
    gap: 2.5rem;
    padding: 2.5rem 0;
}

/* サムネイルがない投稿は本文が全幅になる */
.event-card__thumb
{
    flex: 0 0 240px;
    aspect-ratio: 3 / 2;
    align-self: flex-start;
    background: #F2F2F2;
}

.event-card__thumb img
{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card__body
{
    flex: 1;
    min-width: 0;
}

.event-card__tags
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.event-card__tags:has(span)
{
    margin-bottom: 0.8rem;
}

.event-card__title
{
    font-size: 2rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.event-card__date
{
    font-size: 1.5rem;
    font-weight: bold;
    color: #006D31;
    padding-bottom: 0.6rem;
}

.event-card__desc
{
    font-size: 1.4rem;
    line-height: 1.7;
    padding-bottom: 0;
}

.event-card.is-past .event-card__date,
.event-card.is-past .event-card__title,
.event-card.is-past .event-card__desc,
.event-card.is-past .event-date__mode
{
    color: #666;
}

.event-card.is-past .event-date__num
{
    background: #666;
}

.event-card.is-past .event-card__thumb img
{
    filter: grayscale(1);
    opacity: 0.7;
}

.event-empty
{
    padding: 4rem 0;
    text-align: center;
}

/* ページ送り（the_posts_pagination の出力） */
.pagination .screen-reader-text
{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.pagination .nav-links
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 4rem;
}

.pagination .page-numbers
{
    min-width: 4rem;
    padding: 0.6em 0.8em;
    font-size: 1.4rem;
    line-height: 1.5;
    text-align: center;
    border: 1px solid #ccc;
}

.pagination .page-numbers.current
{
    color: #fff;
    background: #006D31;
    border-color: #006D31;
}

.pagination .page-numbers.dots
{
    border-color: transparent;
}

@media screen and (max-width: 640px)
{
    .event-card__link
    {
        display: block;
        padding: 2rem 0;
    }

    .event-card__thumb
    {
        margin-bottom: 1.5rem;
    }

    .event-card__title
    {
        font-size: 1.7rem;
    }

    .event-card__date
    {
        font-size: 1.4rem;
    }
}
