/* --- 基本設定 --- */
:root {
    --main-bg: #ffffff;
    --text-color: #000000;
    --bg-left: #9FCFD9;
    --bg-right: #FDF3A6;
    --accent-magenta: #E7007D;
    --border-color: #000000;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--main-bg);
}

a:hover {
    opacity: 0.7;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-color);
    border-bottom: 4px solid var(--accent-magenta);
    display: inline-block;
    margin-bottom: 40px;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-magenta);
}

/* --- Header --- */
header {
    display: flex;
    min-height: 100vh;
    color: var(--text-color);
    position: relative;
    background-color: #9FCFD9;
}

.header-left {
    flex: 1;
    background-color: var(--bg-left);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin-left: 2.5%;
}

.header-right {
    flex: 1;
    background-color: var(--bg-right);
    background-image: url('image/PuzzleDeviceShowcase2_picture.png');
    background-size: cover;
    background-position: center center;
    min-height: 400px;
}

.main-title-area {
    position: relative;
    margin-bottom: 30px;
    z-index: 2;
    width: 100%;
}

.main-title-image {
    display: block;
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
}

.event-info-block {
    z-index: 2;
    background: rgba(255,255,255,0.9);
    padding: 25px;
    border: 3px solid var(--border-color);
    box-shadow: 5px 5px 0 var(--border-color);
    display: inline-block;
    margin-top: 20px;    
}

.header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
}

.header-event-info {
    margin-top: 30px;
    position: relative;
    padding-left: 20px;
    /* 左側にアクセントの太線を入れることで、箱に入れなくても情報がまとまって見えます */
    border-left: 8px solid var(--accent-magenta);
}

header .event-date {
    font-size: 3.5rem; /* 少し大きくしてインパクトを出す */
    font-family: sans-serif;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

header .location-info {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 15px;
}

header .organizer {
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.8; /* 主催は少しだけ控えめに */
}

/* --- 概要 --- */
.about-lead {
    margin-bottom: 40px;
    font-weight: 500;
}

.about-lead strong {
    color: var(--accent-magenta);
    background: linear-gradient(transparent 70%, #FDF3A6 70%);
}

.about-content {
    margin-bottom: 40px;
}

.about-section-item {
    margin-bottom: 40px;
}

.about-section-item p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
}

.regist{
    text-align: center;
}

.highlight-text {
    color: var(--accent-magenta);
    display: inline-block;
    margin-top: 10px;
}

/* --- Timetable --- */
.timetable {
    background: white;
    border-collapse: collapse;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: 3px solid var(--border-color);
}

.timetable td {
    padding: 15px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
}

.timetable tr:last-child td {
    border-bottom: none;
}

.timetable .time {
    width: 150px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--accent-magenta);
    font-size: 1.1rem;
}

.registration-btn {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    background: var(--accent-magenta);
    color: white;
    padding: 15px 40px;
    font-weight: 900;
    font-size: 1.1rem;
    border: 3px solid var(--border-color);
    box-shadow: 5px 5px 0 var(--border-color);
    border-radius: 0;
    transition: 0.2s;
}

.registration-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--border-color);
    background: var(--bg-right);
    color: var(--text-color);
}

/* --- Projects --- */
#projects {
    background: var(--bg-left);
    padding-bottom: 100px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border: 3px solid var(--border-color);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.15);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid var(--border-color);
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: var(--accent-magenta);
}

.project-author {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* --- Location --- */
.event-details-indent {
    padding-left: 60px;
    margin-bottom: 40px;
}
hr{
    border: none;
    height: 1px;
    background-color: black;
    margin-top: 30px;
}

.event-text-line {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-color);
}

.event-text-line .label {
    min-width: 5em;
}

.event-sub-info {
    margin-top: 15px;
    margin-left: 40px;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    border-left: 3px solid var(--bg-left);
    padding-left: 15px;
}

.event-sub-info .highlight {
    color: var(--accent-magenta);
    font-weight: 700;
}

.map-inline-link {
    font-size: 0.85rem;
    font-weight: 900; /* 太さを統一 */
    text-decoration: none;
    color: white; /* 文字色を白に */
    padding: 8px 16px; /* 少しサイズを調整 */
    border: 3px solid var(--border-color); /* 枠線を3pxに */
    background-color: var(--accent-magenta); /* 背景色をマゼンタに */
    display: inline-block;
}

.map-inline-link:hover {
    background-color: var(--bg-right); /* ホバー時は黄色に */
    color: var(--text-color); /* 文字を黒に */
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #ddd;
    margin-top: 100px;
    border: 3px solid var(--border-color);
}

#access .event-sub-info p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.map-inline-link {
    font-size: 0.85rem;
    font-weight: 900;
    text-decoration: none;
    color: white;
    padding: 8px 20px;
    border: 3px solid var(--border-color);
    background-color: var(--accent-magenta);
    box-shadow: 4px 4px 0 var(--border-color);
    transition: 0.2s;
    display: inline-block;
    margin-top: 15px;
}

.map-inline-link:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--border-color);
    background-color: var(--bg-right);
    color: var(--text-color);
    opacity: 1;
}

/* マップの外枠調整 */
.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: #eee;
    margin-top: 40px;
    border: 3px solid var(--border-color);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.05);
}

/* --- Contact & Past Events --- */
.contact-section {
    text-align: center;
    background: var(--bg-left);
    color: var(--text-color);
    border-top: 3px solid var(--border-color);
}

.contact-section a {
     color: var(--text-color);
     text-decoration: underline;
     font-weight: 700;
}

.twitter-btn {
    background: var(--text-color) !important;
    color: var(--bg-right) !important;
    padding: 10px 25px !important;
    display: inline-block;
    text-decoration: none !important;
    font-weight: 900;
    border: 2px solid var(--border-color);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    border-radius: 0 !important;
}

.twitter-btn:hover {
    background: var(--accent-magenta) !important;
    color: #fff !important;
    transform: translate(2px, 2px);
}

.past-events-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.past-events-list li a {
    display: block;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.2s;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.past-events-list li a:hover {
    background: var(--accent-magenta);
    color: white;
    transform: translate(2px, 2px);
}

footer {
    background: var(--text-color);
    color: var(--bg-left);
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 1000px) {
    header {
        flex-direction: column;
        min-height: auto;
    }
    .header-right {
        display: none;
    }
    .header-left {
        padding: 40px 20px;
    }
    header .event-date {
        font-size: 2.5rem;
    }
    .header-event-info {
        padding-left: 15px;
        border-left-width: 5px;
    }
    section { padding: 50px 0; }
    .about-grid {
        flex-direction: column;
        gap: 20px;
    }
    .about-lead {
        font-size: 1rem;
    }

    .event-details-indent {
        padding-left: 10px;
    }
    .event-text-line .label {
        width: 100%;
        margin-bottom: 5px;
    }
}