/* Base Reset */

*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "Zen Maru Gothic", "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
    font-size: 20px;
    color: #222;
    background: #fff
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle
}

a {
    color: inherit;
    text-decoration: none
}


/* Layout */

.site-header,
.site-footer {
    padding: 16px
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px
}


/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #00895d;
    color: #fff
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.site-title {
    font-weight: 700
}

.site-nav {
    display: none
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px
}

.nav-list a {
    color: #fff;
    font-weight: 700
}


/* Hamburger */

.nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: #fff
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative
}


/* spacing handled by .nav-toggle gap */


/* Responsive */

@media (min-width: 768px) {
    .site-nav {
        display: block
    }
    .nav-toggle {
        display: none
    }
}

@media (max-width: 767.98px) {
    .site-title {
        font-size: clamp(16px, 4vw, 20px);
    }
    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #00895d;
        display: none
    }
    .site-nav.is-open {
        display: block
    }
    .nav-list {
        flex-direction: column;
        gap: 0
    }
    .nav-list li {
        border-top: 1px solid rgba(255, 255, 255, .2)
    }
    .nav-list a {
        display: block;
        padding: 14px 16px
    }
}

.hero {
    padding: 24px;
    background: #f6f7f9;
    border-radius: 8px
}


/* First View */

.first-view {
    position: relative;
    overflow: hidden
}

.first-view__bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/background.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: -1
}

.first-view__inner {
    display: grid;
    place-items: center;
    min-height: clamp(320px, 60vh, 560px);
    padding: 24px 16px
}

.first-view__image {
    width: 100%;
    max-width: 1080px;
    height: auto;
    display: block
}

@media (max-width: 767.98px) {
    .first-view__bg {
        background-size: 100% auto
    }
    .first-view__inner {
        min-height: 40vh;
        padding: 8px 8px
    }
    .first-view__image {
        max-width: none;
        width: 100%
    }
}


/* Typography */

h1 {
    font-size: clamp(20px, 4vw, 28px);
    margin: 0;
    font-weight: 700
}

h2 {
    font-size: clamp(18px, 3vw, 22px);
    margin: 0 0 8px;
    font-weight: 700
}

p {
    margin: 0;
    font-weight: 400
}


/* General text elements */

li,
dd,
dt,
span,
small,
time,
address {
    font-weight: 400
}


/* Ensure emphasis elements do not accidentally override base weights */

b,
strong {
    font-weight: 700
}


/* Utility */

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px
}


/* Section */

.section {
    padding: 25px 0
}

.section-title {
    font-size: clamp(20px, 3.5vw, 28px);
    line-height: 1.3;
}

.section-title--green {
    color: #00895d
}

@media (max-width: 767.98px) {
    .section {
        padding: 15px 0
    }
}


/* Program section green variant */

.section--green {
    background: #00895d;
    color: #fff;
    text-align: center
}

.section--green .section-title--green {
    color: #fff
}

.section--green .section-title {
    font-size: clamp(24px, 4.2vw, 36px)
}


/* Anchor offset for sticky header */

#program-title-box {
    scroll-margin-top: 80px
}

#entry {
    scroll-margin-top: 80px
}

#access {
    scroll-margin-top: 80px
}

#contact {
    scroll-margin-top: 80px
}


/* Safetynet anchor offset */

#safetynet {
    scroll-margin-top: 80px
}


/* Entry CTA */

#entry-cta,
#safetynet-cta {
    background-image: url("../images/background.png");
    background-repeat: repeat;
    padding: 100px 0px;
}

.entry-cta__inner,
.safetynet-cta__inner {
    display: grid;
    place-items: center;
    gap: 20px
}

.btn {
    display: inline-block;
    font-weight: 800;
    text-align: center
}

.btn--orange {
    background: #f59f00;
    color: #000;
    padding: 14px 60px 20px 60px;
    border-radius: 999px;
    font-size: clamp(22px, 5.5vw, 40px);
    font-weight: 900
}


/* Safetynet button: slightly smaller font size */

.btn--orange-safetynet {
    background: #f59f00;
    color: #000;
    padding: 12px 48px 16px 48px;
    border-radius: 999px;
    font-size: clamp(18px, 4.5vw, 32px);
    font-weight: 900
}

@media (max-width: 767.98px) {
    .btn--orange {
        padding: 14px 24px;
    }
    #entry-cta,
    #safetynet-cta {
        padding: 40px 0px;
    }
    .btn--orange-safetynet {
        padding: 12px 28px;
        font-size: clamp(16px, 4.5vw, 22px)
    }
}


/* Safetynet text: narrower width on desktop */

.safetynet-text {
    max-width: 880px;
    margin: 0 auto;
}

@media (min-width: 1080px) {
    .safetynet-text {
        max-width: 720px
    }
}


/* Deadline bar */

.deadline {
    width: 100%;
    border-top: 6px solid #00895d;
    border-bottom: 6px solid #00895d
}

.deadline__inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0px;
}

.deadline__label {
    background: #00895d;
    color: #fff;
    font-weight: 900;
    padding: 8px 18px;
    border-radius: 100px
}

.deadline__content {
    display: flex;
    align-items: center;
    gap: 10px
}

.deadline__era {
    font-weight: 900;
    font-size: clamp(18px, 3vw, 28px)
}

.deadline__month {
    font-weight: 900;
    font-size: clamp(36px, 8vw, 64px)
}

.deadline__day {
    font-weight: 900;
    font-size: clamp(36px, 8vw, 64px)
}

.deadline__unit {
    font-weight: 900;
    font-size: clamp(18px, 3vw, 28px)
}

.deadline__weekday {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    background: #00895d;
    color: #fff;
    border-radius: 50%;
    font-weight: 900;
}

.deadline__time {
    font-weight: 900;
    font-size: clamp(24px, 5vw, 40px)
}

@media (max-width: 767.98px) {
    .deadline {
        width: 100%;
        border-top: 3px solid #00895d;
        border-bottom: 3px solid #00895d;
        padding: 10px 0px;
    }
    .deadline__label {
        padding: 6px 14px;
        font-size: 0.7em;
    }
    .deadline__content {
        gap: 6px
    }
    .deadline__era {
        font-size: 14px
    }
    .deadline__month,
    .deadline__day {
        font-size: 26px
    }
    .deadline__unit {
        font-size: 14px
    }
    .deadline__weekday {
        width: 32px;
        height: 32px;
        font-size: 14px
    }
    .deadline__time {
        font-size: 20px
    }
}


/* Program contents */

#program-contents {
    background-image: url("../images/background.png");
    background-repeat: repeat
}

.program-contents__inner {
    padding: 24px 16px
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px
}


/* .program-col reserved for future column-specific styles */

.program-heading {
    font-size: clamp(18px, 3.4vw, 24px);
    background: #00895d;
    color: #fff;
    margin: 0 0 12px;
    font-weight: 700;
    display: inline-block;
    padding: 6px 24px;
    border-radius: 8px
}

.program-lead {
    font-weight: 700;
    margin: 0 0 8px
}

.program-list {
    margin: 0;
    padding-left: 1em
}

.program-bottom {
    margin-top: 32px
}


/* Program items (image-based spec) */

.program-stage {
    margin: 24px 0
}

.stage-bar {
    display: flex;
    align-items: center;
    gap: 16px
}

.stage-pill {
    background: #00895d;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    padding: 6px 30px;
    display: inline-block
}

.stage-text {
    font-weight: 700
}

.program-item {
    background: #fff8e6;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06)
}

.program-label {
    display: inline-block;
    background: #f59f00;
    color: #000;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    margin: 0 0 10px
}

.program-title {
    font-weight: 900;
    margin: 0 0 8px;
    color: #00895d;
}

.program-speaker {
    font-weight: 900;
    margin: 0 0 4px
}

.program-affiliation {
    margin: 0
}

.program-note {
    margin: 16px 0 0;
    font-size: 18px
}


/* Profiles */

.profiles {
    margin: 32px 0
}

.profile-badge {
    margin-bottom: 12px
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px
}

.profile-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    background: #fff8e6;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
    padding: 16px
}

.profile-photo {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px
}

.profile-name {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800
}

.profile-meta {
    margin: 0 0 8px;
    font-weight: 700
}

.profile-text {
    margin: 0
}

@media (min-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr
    }
}


/* Access */

#access-contents {
    background-image: url("../images/background.png");
    background-repeat: repeat
}

.access__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px
}

.access__venue {
    margin: 0 0 10px;
    font-size: clamp(22px, 3.6vw, 36px);
    color: #00895d;
    font-weight: 900
}

.access__addr {
    margin: 0 0 14px;
    font-weight: 700
}

.access__list {
    margin: 0;
    padding-left: 1em
}

.access__map .gmap {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08)
}

@media (min-width: 900px) {
    .access__inner {
        grid-template-columns: 1fr 1fr;
        align-items: start
    }
}


/* Contact */

.section#contact {
    background: #00895d;
    color: #fff
}

.section#contact .section-title {
    color: #fff
}

.contact__body {
    margin-top: 8px
}

.contact__lead {
    margin: 0 0 12px;
    font-weight: 700
}

.contact__list {
    margin: 0;
    padding: 0
}

.contact__row {
    display: grid;
    gap: 12px;
    padding: 8px 0;
}

.contact__row:first-child {
    border-top: 0
}

.contact__row dt {
    font-weight: 800
}

.contact__row dd {
    margin: 0
}

@media (min-width: 768px) {
    .program-grid {
        grid-template-columns: 1fr 1fr
    }
}


/* Program cards */

.program-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    padding: 16px 20px
}

.program-grid--full .program-card {
    display: flex;
    align-items: center;
    justify-content: space-between
}


/* Unify font sizes in deadline bar */

.deadline__content .deadline__era,
.deadline__content .deadline__month,
.deadline__content .deadline__day,
.deadline__content .deadline__unit,
.deadline__content .deadline__weekday,
.deadline__content .deadline__time {
    font-size: clamp(20px, 3.5vw, 28px)
}