.main-visual {
    margin-bottom: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    background: #fff;
}

.main-visual img {
    display: inline-block;
    width: 100%;
    height: calc(100vh - 80px);
    object-fit: cover;
    opacity: 0.2;
}

h1.main-text {
    max-width: 100%;
    font-family: "Zen Old Mincho", serif;
    font-size: 4.1rem;
    font-weight: 500;
    letter-spacing: 1.5rem;
    color: #333333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: scale(0.95, 1) translate(-50%, -50%);
    word-break: keep-all;
}

h1.main-text .alphabet {
    font-family: "EB Garamond", serif;
}

h1.main-text .long {
    transform: scale(0.8, 1);
}


.attention {
    text-align: center;
    padding-bottom: 20px;
}

.btn {
    display: flex;
    justify-content: center;
}

.btn a {
    display: inline-block;
    padding: 15px;
    border: solid 1px #333;
}

.btn a:hover {
    opacity: 0.7;
}

.graph-wrapper {
    /*padding: 0 30px;*/
}

#game-system .item {
    width: 47%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.flex-wrapper {
    justify-content: space-between;
}

#point .item {
    width: 33%;
    text-align: center;
}

.flex-wrapper li .item-title {
    margin-bottom: 20px;
}

.flex-wrapper li .img {
    margin-bottom: 20px;
}

.flex-wrapper li img {
    display: inline-block;
    width: 80%;
}

.flex-wrapper li img.icon {
    background: #cccccc;
}

.flex-wrapper li p {
    font-size: 0.9rem;
    text-align: left;
    padding: 0 40px;
}

.sub-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 50px;
}

#events.dl-list dt {
    width: 17%;
}

#events.dl-list dd {
    width: 83%;
}

#events a {
    color: #000;
}

#access .flex-wrapper {
    margin-bottom: 80px;
}


#access .sub-wrapper {
    width: 45%;
}

#access .img {
    width: 50%;
}

#access img {
    border: solid #333 1px;
}

#access .item-map iframe {
    width: 100%;
    height: 400px;
}

#access-info {
    padding-right: 40px;
    margin-bottom: 30px;
}

#access .sub-wrapper p {
    padding-left: 20px;
}

#access-info span {
    margin-left: 10px;
    cursor: pointer;
}

#access-info span:hover {
    background: #f2f4f5;
    border-radius: 50%;
}

#access-info .business-hours-note {
    display: inline-block;
    margin-top: 10px;
    margin-left: 0;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #b3541e;
    background: #fdf2e9;
    border-radius: 4px;
    cursor: default;
}

#access-info .business-hours-note:hover {
    background: #fdf2e9;
    border-radius: 4px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media screen and (max-width: 600px) {
    .flex-wrapper {
        flex-direction: column;
    }

    h1.main-text {
        width: 100%;
        font-size: 1.5rem;
        overflow-wrap: break-word;
    }

    #game-system .item {
        width: 100%;
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .btn {
        margin-bottom: 30px;
    }

    #point .item {
        width: 100%;
        padding-bottom: 30px;
    }

    .dl-list {
        flex-direction: column;
    }

    #events.dl-list dt {
        font-size: 0.75rem;
        width: 100%;
        border-bottom: none;
        padding-bottom: 5px;
    }

    #events.dl-list dd {
        width: 100%;
        border-top: none;
        padding-left: 15px;
        padding-top: 0;
    }

    #events.dl-list dd a {
        font-size: 1.25rem;
        font-weight: bold;
    }

    #access .sub-wrapper {
        width: 100%;
    }

    #access .img {
        width: 100%;
    }

    #access .content-wrapper {
        padding-bottom: 0;
    }

    #access-info {
        padding-right: 0;
    }
}

/* 何切る問題アプリセクション */
#nanigiru-app {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
}

.nanigiru-content {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
    position: relative;
}

/* 装飾用麻雀牌 */
.deco-tile {
    position: absolute;
    width: 50px;
    height: auto;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.deco-tile-1 {
    top: -20px;
    left: 10%;
    transform: rotate(-15deg);
}

.deco-tile-2 {
    top: 40%;
    left: 5%;
    transform: rotate(12deg);
}

.deco-tile-3 {
    bottom: -10px;
    left: 15%;
    transform: rotate(-8deg);
}

.deco-tile-4 {
    top: 10%;
    right: 15%;
    transform: rotate(20deg);
}

.deco-tile-5 {
    bottom: 20%;
    right: 8%;
    transform: rotate(-12deg);
}

.nanigiru-description {
    flex: 1;
    position: relative;
    z-index: 1;
}

.nanigiru-intro {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1c734f;
    margin-bottom: 20px;
    line-height: 1.6;
}

.nanigiru-text {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 0;
}

.nanigiru-action {
    flex: 0 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.nanigiru-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1c734f 0%, #155a3d 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(28, 115, 79, 0.3);
    transition: all 0.3s ease;
}

.nanigiru-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(28, 115, 79, 0.4);
    color: white;
    text-decoration: none;
}

.nanigiru-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    #nanigiru-app {
        padding: 50px 0;
    }

    .nanigiru-content {
        flex-direction: column;
        gap: 30px;
    }

    .nanigiru-intro {
        font-size: 1.1rem;
    }

    .nanigiru-btn {
        width: 100%;
        max-width: 320px;
        padding: 16px 32px;
        font-size: 1rem;
    }

    /* モバイルでは装飾牌を小さく、控えめに */
    .deco-tile {
        width: 35px;
        opacity: 0.1;
    }

    .deco-tile-2,
    .deco-tile-4 {
        display: none;
    }
}
