.top {
    width: 100%;
    background: linear-gradient(-20deg, rgb(0, 221, 214)0%, rgba(122, 255, 34, 0.634)50%, rgba(255, 255, 0, 0.58)100%);
}

h1 {
    font-size: 40px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    /* 非表示は遅延 */
    z-index: 1000;
}

#overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}


body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: rgba(255, 226, 198, 0.728);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.font1 {
    font-family: 'Noto Sans JP', 'Meiryo', sans-serif;
}

.news {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

article {
    width: 70%;
    flex: 1;
}

aside {
    width: 22%;
}

.widget {
    position: sticky;
    top: 20px;
}

.menutitle {
    font-size: 1.375rem;
    padding: 0 8px 8px;
    border-bottom: 2px rgba(60, 255, 0, 0.58) solid;
    font-weight: normal;
}

.menu {
    margin-bottom: 60px;
    list-style: none;
}

.menu li {
    border-bottom: 1px #ddd solid;
}

.membertitle,
.skilltitle,
.acttitle,
.learntitle {
    background: linear-gradient(-20deg, rgb(0, 221, 214)0%, rgba(122, 255, 34, 0.634)50%, rgba(255, 255, 0, 0.58)100%);
}

h1,
h2,
h3 {
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.6),
        2px 2px 6px rgba(0, 150, 136, 0.4);

}

a {
    color: #009688;
    text-decoration: none;
}

a:hover {
    color: #00695C;
}

.day2web,
.day3web,
.day4web,
.ytext{
    background-color: #ffff0039;
}

.day2-1alexa,
.day2-2img,
.day3-1alexa,
.day4-1alexa,
.ntext{
    background-color: rgba(119, 255, 0, 0.296);
}

.day3-2alexa,
.day4-2alexa,
.atext{
    background-color: rgba(0, 255, 13, 0.296);
}
.membertext {
    display: flex;
    justify-content: space-evenly;
}

.day2,
.day3,
.day4,
.day5,
.memberlearn,
.skilltext
{
    display: flex;
    justify-content: space-evenly;
}


.footer {
    background: linear-gradient(-20deg, rgb(0, 221, 214)0%, rgba(122, 255, 34, 0.634)50%, rgba(255, 255, 0, 0.58)100%);
}

.footer a {
    color: rgb(33, 23, 23);
}

.footer a:hover {
    color: rgb(38, 128, 255);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(60, 255, 0, 0.8);
    border: none;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1006;
    border-radius: 4px;
    padding: 0;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #432;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* 開いたとき（✕ ＋バーが伸びる） */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) scaleX(1.3) translate(5.5px, 5.5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) scaleX(1.3) translate(5.5px, -5.5px);

}

.sidebar-layers {
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.sidebar-layers.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.sidebar-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 80% 0, 100% 100%, 20% 100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateX(-100%);
    /* 初期は非表示（左に隠れる） */
    opacity: 0;
}

.sidebar-layers.open .sidebar-layer {
    transform: translateX(0);
    opacity: 1;
}

.sidebar-layer.layer1 {
    background-color: rgba(219, 227, 0, 0.431);
    transform: translate(6px, 6px);
    z-index: 1;
}

.sidebar-layer.layer2 {
    background-color: rgba(0, 236, 94, 0.447);
    transform: translate(0, 2px);
    z-index: 2;
}



.sidebar {
    position: sticky; /* スクロールについてくる */
    top: 20px;
    width: 16%;
    background-color: rgba(255, 226, 198, 0.728);
    padding: 20px;
    z-index: 1;
}


.accordion-button {
    background-color: #E0F2F1;
    color: #333;
    cursor: pointer;
    padding: 14px 20px;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #ccc;
}

.accordion-button:hover {
    background-color: #B2DFDB;
}

.accordion-content {
    background-color: rgba(255, 255, 255, 0.603);
    display: flex;
    gap: 20px;
    padding: 0 20px 20px;
    display: none;
    border-bottom: 1px solid #ddd;
    animation: fadeIn 0.3s ease;
}

.accordion-button .icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.accordion-button.open .icon {
    transform: rotate(90deg);
    /* ▶ → ▼ に変化 */
}

.side-accordion-btn {
    background: none;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    color: #432;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-accordion-btn:hover {
    color: rgba(31, 236, 0, 0.675);
}

.side-submenu {
    list-style: none;
    padding-left: 15px;
    margin: 0;
    display: none;
    z-index: 1005;
}

.side-submenu li {
    border: none;
}

.side-submenu a {
    display: block;
    padding: 8px;
    color: #432;
}

.side-submenu a:hover {
    color: rgba(31, 236, 0, 0.675);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.responsive-img {
    width: 270px;
    height: 350px;
    object-fit: cover;  /* はみ出し防止：必要なら */
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

.day2{
    display: flex;
}

@media screen and (max-width: 768px) {
    .responsive-img {
        width: 100%;
        height: auto; /* アスペクト比維持 */
    }

    .menu-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
        z-index: 1004;
        padding: 50px 20px;
        clip-path: polygon(0 0, 60% 0, 100% 100%, 30% 100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }
    .news {
        flex-direction: column;
    }

    article,
    aside {
        width: 100%;
    }

    .membertext,
    .day2,
    .day3,
    .day4,
    .day5,
    .memberlearn,
    .skilltext
    {
        flex-direction: column;
        align-items: center;
    }

    .membertext>div,
    .day2>div {
        margin-bottom: 20px;
    }
    .membertext>div,
    .day3>div {
        margin-bottom: 20px;
    }
    .membertext>div,
    .day4>div {
        margin-bottom: 20px;
    }
    .membertext>div,
    .day5>div {
        margin-bottom: 20px;
    }

    .widget {
        position: static;
    }
}