/*--------------------------------------------------------------------------
 Fonts
---------------------------------------------------------------------------*/
@font-face {
    font-family: 'orpheuspro';
    src: url('../fonts/orpheuspro.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'trajan-pro-3';
    src: url('../fonts/trajan-pro-3.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/*--------------------------------------------------------------------------
 Base
---------------------------------------------------------------------------*/
:root {
    --color-text: #333;
    --color-text-muted: #777;
    --color-text-light: #999;
    --color-text-dim: #555;
    --color-accent: #8b3641;
    --color-accent-dark: #9e3255;
    --color-mauve: #a58d8d;
    --color-mauve-warm: #a87e73;
    --color-border: #ceb7a0;
    --color-border-light: #e8e0d8;
    --color-bg-event: #f2ece6;
    --color-bg-attendance: #cfa5a2;
}

* {
    box-sizing: border-box;
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック体', 'Yu Gothic', YuGothic, 'MS PGothic', Osaka, arial, sans-serif;
    letter-spacing: 0.01em;
    color: var(--color-text);
}

body {
    margin: 0;
    position: relative;

    &::before {
        content: "";
        display: inline-block;
        width: 100px;
        height: 100px;
        background-image: url("../images/dec.svg");
        background-size: contain;
        background-repeat: no-repeat;
        vertical-align: middle;
        position: absolute;
        bottom: 0;
        left: 0;
    }

    &::after {
        content: "";
        display: inline-block;
        width: 100px;
        height: 100px;
        background-image: url("../images/dec-reverse.svg");
        background-size: contain;
        background-repeat: no-repeat;
        vertical-align: middle;
        position: absolute;
        bottom: 0;
        right: 0;
    }

    @media screen and (max-width: 768px) {
        &::before {
            width: 40px;
            height: 40px;
        }

        &::after {
            width: 40px;
            height: 40px;
        }
    }
}

dl, ol, ul {
    margin: 0;
}

p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 2em;
}

img {
    width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

.w-85 {
    width: 85% !important;
    padding: 0;
}

.ptb80 {
    padding-top: 80px !important;
    padding-bottom: 80px !important;

    @media screen and (max-width: 1200px) {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    @media screen and (max-width: 768px) {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

/*--------------------------------------------------------------------------
 Animation
---------------------------------------------------------------------------*/
.fade-up {
    opacity: 0;
    transform: translate(0, 30px);

    /* ie11 hack */
    @media all and (-ms-high-contrast: none) {
        opacity: 1;
        transform: translate(0, 0);
    }
}

.up {
    animation-name: fadeUp;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(0, 30px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/*--------------------------------------------------------------------------
 Intro
---------------------------------------------------------------------------*/
.intro {
    background: rgb(169, 146, 146);
    background: linear-gradient(312deg, rgba(169, 146, 146, 1) 0%, rgba(154, 129, 129, 1) 100%);
    position: relative;

    &::before {
        content: "";
        display: inline-block;
        width: 100%;
        height: 100%;
        background-size: 150px auto;
        background-position: center;
        vertical-align: middle;
        position: absolute;
        top: 0;
        left: 0;
    }

    &::after {
        content: "";
        display: inline-block;
        width: 150px;
        height: 150px;
        background-image: url("../images/bg-line.svg");
        background-size: 150px auto;
        background-position: center;
        background-repeat: no-repeat;
        vertical-align: middle;
        position: absolute;
        bottom: -150px;
        left: 0;
        z-index: 9;
    }

    & .container {
        padding: 50px 20px;
        position: relative;
    }

    & h1 {
        margin-bottom: 10px;
        font-family: "orpheuspro", serif;
        font-weight: 400;
        font-style: normal;
        font-size: 44px;
        line-height: 44px;
        color: var(--color-mauve);
    }

    & .cover {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;

        &.adjust {
            width: auto;
            max-width: initial;
            height: 300px;

            & img {
                width: auto;
                height: 100%;
            }
        }
    }

    & .box {
        padding: 30px 30px 0;

        & .lead {
            font-size: 15px;
        }
    }

    @media screen and (max-width: 1200px) {
        &::after {
            width: 120px;
            height: 120px;
            background-size: 120px auto;
            bottom: -120px;
        }
    }

    @media screen and (max-width: 768px) {
        &::before {
            background-size: 80px auto;
        }

        &::after {
            width: 80px;
            height: 80px;
            background-size: 80px auto;
            bottom: -80px;
        }

        & .container {
            padding: 30px 0;
        }

        & h1 {
            margin-bottom: 5px;
            font-size: 34px;
            line-height: 34px;
        }

        & .cover {
            max-width: 250px;
        }

        & .box {
            padding: 20px 30px 0;

            & .lead {
                font-size: 14px;
                line-height: 1.8em;
            }
        }
    }
}

/*--------------------------------------------------------------------------
 Event
---------------------------------------------------------------------------*/
#event {
    background: var(--color-bg-event);
    position: relative;
    z-index: 2;

    &::before {
        content: "";
        display: block;
        width: calc(100% - 30px);
        height: calc(100% - 30px);
        margin: 0 auto;
        padding: 20px;
        box-shadow: 0 0 0 1px var(--color-border) inset;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        right: 0;
        z-index: -1;
    }

    &::after {
        content: "";
        display: inline-block;
        width: 150px;
        height: 150px;
        background-image: url("../images/bg-line.svg");
        background-size: 150px auto;
        background-repeat: no-repeat;
        vertical-align: middle;
        position: absolute;
        bottom: 0;
        right: 0;
        z-index: -1;
    }

    & h2 {
        font-family: "orpheuspro", serif;
        font-weight: 400;
        font-style: normal;
        font-size: 34px;
        line-height: 34px;
        color: var(--color-mauve-warm);
    }

    & .box {
        margin-bottom: 50px;
        padding: 30px;
        position: relative;
        z-index: 10;

        & h3 {
            margin-top: 10px;
            font-size: 30px;
            font-family: 'Shippori Mincho', serif;
            font-weight: 400;
            letter-spacing: 0.2em;
            line-height: 30px;

            &::after {
                content: "";
                display: block;
                width: 500px;
                height: 17px;
                margin: 30px auto 0;
                background-image: url("../images/event-dec.svg");
                background-size: 100%;
                background-repeat: no-repeat;
                vertical-align: middle;
            }
        }

        & .date {
            & p {
                margin-top: 20px;
                font-size: 20px;
                letter-spacing: 0.1em;
            }

            & span {
                display: inline-block;
                padding: 5px 10px;
                color: #fff;
                font-size: 14px;
                line-height: 14px;
                background: var(--color-accent-dark);
            }
        }

        & dl {
            margin-top: 20px;

            & dt {
                margin-top: 13px;
                text-align: center;
                font-family: trajan-pro-3, serif;
                font-weight: 300;
                font-size: 13px;
                line-height: 13px;
                color: var(--color-mauve);
                opacity: 0.7;
            }

            & dd {
                margin-top: 3px;
                letter-spacing: 0.1em;
                line-height: 1.4em;
            }
        }

        & .map {
            margin-top: 20px;

            & iframe {
                width: 100%;
                height: 300px;
            }
        }
    }

    @media screen and (max-width: 1200px) {
        &::after {
            width: 120px;
            height: 120px;
            background-size: 120px auto;
        }
    }

    @media screen and (max-width: 768px) {
        &::after {
            width: 80px;
            height: 80px;
            background-image: url("../images/bg-line.svg");
            background-size: 80px auto;
        }

        & h2 {
            font-size: 26px;
            line-height: 26px;
        }

        & .box {
            margin-bottom: 30px;
            padding: 20px;

            &.last {
                margin-bottom: 0;
            }

            & h3 {
                font-size: 24px;
                line-height: 24px;

                &::after {
                    width: 280px;
                    height: 9px;
                    margin: 20px auto 0;
                }
            }

            & .date p {
                margin-top: 15px;
                font-size: 18px;
            }

            & .map iframe {
                height: 180px;
            }
        }
    }
}

/*--------------------------------------------------------------------------
 Attendance - Design B: Minimal Open
---------------------------------------------------------------------------*/
#attendance-b {
    background: var(--color-bg-attendance);
    position: relative;
    z-index: 1;

    & .container {
        padding: 50px 30px;
    }
}

.att-b-title {
    font-size: 30px;
    font-family: 'Shippori Mincho', serif;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--color-text);
    margin-bottom: 0;

    &::before {
        content: "";
        display: block;
        width: 1px;
        height: 50px;
        background: var(--color-border);
        margin: 0 auto 25px;
    }

    @media screen and (max-width: 768px) {
        font-size: 24px;
    }
}

.att-b-deadline {
    margin-top: 32px;
}

.att-b-deadline-sub {
    font-family: trajan-pro-3, serif;
    font-size: 11px;
    color: var(--color-text-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.att-b-deadline-date {
    font-size: 40px;
    font-family: 'Shippori Mincho', serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    line-height: 1.3em;
    margin-bottom: 0;

    @media screen and (max-width: 768px) {
        font-size: 28px;
    }
}

.att-b-deadline-time {
    font-size: 17px;
    font-family: 'Shippori Mincho', serif;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    margin-top: 6px;

    @media screen and (max-width: 768px) {
        font-size: 15px;
    }
}

.att-b-cta {
    margin-top: 30px;

    & p {
        font-size: 14px;
        color: var(--color-text-dim);
        margin-bottom: 16px;
    }
}

.att-b-link {
    font-size: 14px;
    color: var(--color-accent) !important;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 3px;
    transition: opacity 0.3s;

    &:hover {
        opacity: 0.6;
    }
}

.att-b-notes {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border-light);
    text-align: left;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;

    & ul {
        list-style: none;
        padding: 0;
        margin: 0;

        & li {
            padding: 5px 0 5px 18px;
            font-size: 13px;
            line-height: 2em;
            color: var(--color-text-muted);
            position: relative;

            &::before {
                content: "—";
                position: absolute;
                left: 0;
                color: var(--color-border);
                font-size: 12px;
                line-height: 2.2em;
            }
        }
    }
}

.att-b-notes-head {
    font-family: trajan-pro-3, serif;
    font-size: 12px;
    color: var(--color-mauve);
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 18px;
}

/*--------------------------------------------------------------------------
 English overrides (html[lang="en"])
---------------------------------------------------------------------------*/
html[lang="en"] {
    & #event .box h3,
    & .att-b-title,
    & .att-b-deadline-date,
    & .att-b-deadline-time {
        font-family: "orpheuspro", serif;
    }
}
