body {
    text-align: center;
    font-family: "Noto Sans JP", "Playfair Display", Arial, sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)), url("../img/tile1.png");
    background-repeat: repeat;
    background-size: 100px 100px;
    background-color: #f4f4f4;
    color: #422;
}

header {
    text-align: center;
    padding: 20px;
    color: #422;
}

h1 {
    margin: 0;
    font-size: 2.0em;
    font-family: "Playfair Display", serif;
    font-weight: 600;
}

header .frame {
    display: inline-block;
    padding: 8px;
    border-radius: 18px;
    background: rgba(240, 240, 245, 0.75);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    width: min(50vw, 520px);
    max-width: 50vw;
}

header .frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
}

.bt_prof {
    display: inline-flex;
    justify-content: center; 
    width: min(50vw, 520px);
    max-width: 50vw;
    margin-top:15px;
    padding: 10px 18px;
    background-color: #a060a5;
    border-radius: 6px;
    color:#ffffff;
}
.bt_prof:hover {
    background-color: #7a36a4;
    cursor: pointer;
}
.proflink {
    transition: background-color 0.2s;
    text-decoration: none;
    font-size: 18px;

}

.map-box{
    width: 80vw;
    max-width: 960px;
    margin: 0px auto;
    margin-top: 20px;
    margin-bottom: 50px;
    padding: 10px;
    background-color: rgba(250, 240, 250, 0.55);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.map-box iframe{
    width: 100%;
    height: 450px;
    border: 0;
}

.sns-icon {
    width: 80px;
    max-height: 80px;
    height: auto;
    vertical-align: middle;
}

.description {
    margin: 20px;
    font-size: 1.2em;
    text-align: center;
}

.scroll-box {
    width: 80vw;
    max-width: 960px;
    margin: 0px auto;
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 12px;
    background-color: rgba(250, 240, 250, 0.55);
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
}

.scroll-box p {
    margin: 0;
    line-height: 1.6;
}

#requirements {
    background-color: black;
    padding-top: 15px;
    position: relative;
    color: white;
}

#requirements::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url("../img/tile2.png");
    background-repeat: repeat;
    background-size: 100px 100px;
    opacity: 0.5;
    z-index: 1;
}

#requirements > * {
    position: relative;
    z-index: 2;
}

#requirements img {
    width: 70%;
    max-width: 600px;
    padding: 20px;
    display: block;
    margin: 0 auto;
    border-radius: 50px;
}

.event-info {
    margin: 20px;
    text-align: center;
}

.map {
    margin: 20px auto;
    max-width: 600px;
}

.apply-button {
    display: inline-block;
    padding: 12px 24px;
    margin-bottom: 50px;
    background-color: #767676;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    transition: background-color 0.2s;
     cursor: default;
     pointer-events: none;
 }
 .apply-button.active {
     background-color: #a060a5;
     cursor: pointer;
     pointer-events: auto;
 }
 .apply-button.active:hover {
     background-color: #7a36a4;
    justify-content: space-between;
    cursor: pointer;
    z-index: 999;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 3px;
    background: #333;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 80vw);
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
    padding: 28px 22px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 998;
    overflow-y: auto;
}

.menu-panel.open {
    transform: translateX(0);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 997;
}

.menu-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.menu-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
}

.menu-panel nav ul {
    list-style: none;
    padding: 0;
    margin: 48px 0 0;
    text-align: left;
}

.menu-panel nav li {
    margin-bottom: 24px;
}

.menu-panel nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-size: 1.05rem;
    font-weight: 600;
}

.menu-sns p {
    margin: 0 0 10px;
    font-weight: 700;
    color: #333;
}

.menu-sns-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.menu-sns-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(160, 96, 165, 0.14);
    border-radius: 12px;
    text-decoration: none;
    color: #333;
}

.menu-sns-links img {
    width: 24px;
    height: auto;
}

.history-hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 18px 6px;
    text-align: center;
}

.history-grid {
    display: grid;
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto 60px;
    padding: 0 12px;
}

.history-item {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.16);
}

.history-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/tile2.png");
    opacity: 0.16;
    pointer-events: none;
}

.history-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    padding: 24px;
}

.history-card img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
}

.history-card .info {
    text-align: left;
}

.history-card h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.history-card p {
    line-height: 1.7;
    color: #3b3b3b;
}

.history-tags {
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.history-tags span {
    display: inline-flex;
    padding: 6px 12px;
    background: rgba(160, 96, 165, 0.12);
    border-radius: 999px;
    font-size: 0.95rem;
}

.history-button {
    margin-top: 18px;
    display: inline-block;
    padding: 12px 22px;
    background: #a060a5;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    border: none;
}
.history-button:hover {
    background-color: #7a36a4;
    cursor: pointer;
}

.history-item .label {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    border-radius: 999px;
    font-size: 0.95rem;
    z-index: 2;
}

.modal-panel {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 999;
}

.modal-panel.open {
    visibility: visible;
    opacity: 1;
}

.modal-content {
     width: min(1100px, 70vw);
     max-width: 70vw;
     max-height: 80vh;
     background: #fff;
     border-radius: 18px;
     overflow: hidden;
     position: relative;
     box-shadow: 0 20px 56px rgba(0, 0, 0, 0.26);
 }
 
 .modal-header {
     position: sticky;
     top: 0;
     z-index: 5;
     display: flex;
     justify-content: flex-end;
     padding: 14px;
     background: transparent;
 }
 
 .modal-close {
     width: 42px;
     height: 42px;
     border: none;
     border-radius: 50%;
     background: rgba(0, 0, 0, 0.65);
     color: #fff;
     font-size: 22px;
     cursor: pointer;
     z-index: 10;
 }
 
 .modal-scroll-body {
     max-height: calc(80vh - 70px);
     overflow-y: auto;
 }


@media (max-width: 860px) {
    .history-card {
        padding: 16px;
    }
    .history-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .menu-toggle {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 36px;
    }
    .menu-panel {
        width: 100vw;
    }
}


/* history用 */

.history-grid {
    display: grid;
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto 60px;
    padding: 0 12px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-items: center;
    justify-content: center;
}

.history-item {
    position: relative; 
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.16);
    width: min(60vw, 520px);
    max-width: 60vw;
}
.history-card .info {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.history-card .info .history-button {
    margin: 0 auto;
}

/* 出店者一覧（モーダル内） */
.shop-list-container.container{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 18px;
}

.prof-box{
    width: 420px;
    margin: 0;
    padding: 12px;
    background-color: rgba(250, 240, 250, 0.95);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
     text-align: center;
 }
.prof-box .name{ font-size: 1.2rem; font-weight:700; }
.prof-box .kana{ font-size: 0.95rem; color:#666; }
.prof-box img.img{ width: 100%; height: auto; object-fit: contain; border-radius:8px; display:block; margin:8px auto; }
.prof-box .type{ font-size: 0.95rem; color:#444; }
.prof-box .message{ font-size: 0.95rem; color:#333; white-space: pre-wrap; text-align: center; }
.sns-area{ display:flex; gap:12px; align-items:center; justify-content:center; }
.sns-icon {
    width: 50px;
    max-height: 50px;
    height: auto;
    vertical-align: middle;
}