
:root {
    --main-color: rgba(255,124,153,1);
    --main-color-opacity: 255,124,153;
    --accent-color: rgba(252,179,89,1);
    --accent-color-opacity: 252,179,89;
    --text-color: rgba(61,61,61,1);
    --text-color-opacity: 61,61,61;
    --clear-color: rgba(255,255,255,1);
    --clear-color-opacity: 255,255,255;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body{
    font-size: 16px;
}
body{
    font-family: sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}
ul,ol,li{
    list-style-type: none;
}
img{
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}
a{
    text-decoration: none;
    display: block;
}


header{
    margin: 0 auto;
    max-width: 780px;
}

main{
    max-width: 780px;
    margin: 0 auto;

    figure{
        padding: .5rem 0 2rem;
    }
}
article{
    width: 90%;
    margin: 0 auto;
}

p.index a{
    background: var(--main-color);
    color: var(--clear-color);
    text-align: center;
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 1.5rem;
}



input {
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
    width: calc(100% - 22px);
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    background: var(--main-color);
    color: var(--clear-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


.custom-alert {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.custom-alert-content {
    background-color: white;
    padding: 5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.custom-alert-content button {
    padding: 10px 20px;
    font-size: 16px;
    background: var(--accent-color);
    color: var(--clear-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}
#alert-message{
    font-size: 2rem;
    color: var(--accent-color);
}


footer{
    width: 90%;
    max-width: 780px;
    margin: 1.5rem auto 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--text-color);
}
footer p{
    text-align: center;
    font-size: .9rem;
}