@charset "UTF-8";
* {
    margin: 0; padding: 0; box-sizing: border-box; border-radius: 0;
}
body {
    font-family: sans-serif;
    background: #333;
    color: white;
}
.container {
    position: relative;
    overflow: hidden;
}

/* スクロールバー全体のスタイル */
::-webkit-scrollbar {
    width: 8px; /* 横スクロールバーの幅 */
    height: 8px; /* 縦スクロールバーの高さ */
}

/* スクロールバーのトラック部分（背景） */
::-webkit-scrollbar-track {
    background: #ddd; /* トラックの背景色 */
    border-radius: 10px; /* 丸みを付ける */
}

/* スクロールバーのサム（つまみ部分） */
::-webkit-scrollbar-thumb {
    background: #888; /* サムの背景色 */
    border-radius: 10px; /* 丸みを付ける */
}

/* サム（つまみ部分）がホバーされた時 */
::-webkit-scrollbar-thumb:hover {
    background: #555; /* ホバー時の色 */
}

.title {
    position: fixed;
    text-align: center;
    font-family: serif;
    font-weight: normal;
    font-size: 30px;
    margin-bottom: 128px;
    height: 40px;
    line-height: 40px;
    width: 100%;
    background:linear-gradient(45deg, #4B4B4B 0%, #616161 45%, #8C8C8C 70%, #616161 85%, #4B4B4B 90% 100%);
    z-index: 1;
    transition: .3s;
}

header {
    height: 420px;
    padding-bottom: 160px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    background:
        url("../img/koumori.webp") no-repeat top 64px center / 280px auto, 
        url("../img/bg.png") repeat-x left bottom / 200px auto;
    filter: grayscale(100%);
}
header ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 200px;
    line-height: 2;
    font-size: 20px;
    list-style: none;
}
header a {
    display: inline-block;
    color: white;
    text-decoration: none;
    transform: skewX(-20deg);
}

/* intersectionObserverAPI */
.title.toggle {
    font-size: 16px;
    height: 16px;
    line-height: 16px;
}

main {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 8px 72px 8px;
    background: url(../img/secret.svg) no-repeat bottom -20px center / 200px auto;
}

main h1 {
    padding: 128px 0;
    text-align: center;
    font-weight: normal;
    font-size: 24px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 1);
    background: url(../img/inyou.png) no-repeat center / 260px auto;
}
main section {
    margin-bottom: 80px;
    opacity: 0;
    transition: .7s;
}
main section:nth-of-type(odd) {
    transform: translateX(200px) translateY(50px);
}
main section:nth-of-type(even) {
    transform: translateX(-200px) translateY(50px);
}
main section.appear {
    opacity: 1; transform: translate(0);
}
main h2 {
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 1);
}

main .img_div {
    position: relative;
    width: 98%;
    border-radius: 3px;
    margin: 0 auto 16px;
    padding: 4px;
    background: white;
    text-align: center;
    box-shadow:
        0 0 8px  white,
        0 0 16px white;
}
main .img_div::before {
    position: absolute;
    content: '';
    border-style: solid;
    border-color: white transparent transparent transparent;
    border-width: 10px 10px 0 10px;
    bottom: -10px;
}
main a {
    text-align: none;
    color: white;
    text-decoration: none;
    font-weight: normal;
    font-size: 20px;
    width: 300px;
    display: inline-block;
    width: 100%;
}
main img {
    width: 300px;
    vertical-align: bottom;
    filter: grayscale(100%);
}

.count {
    text-align: center;
}

footer {
    display: flex;
    justify-content: center;
    background: #222;
    padding: 72px 0;
    background:#222 url(../img/eye.png) no-repeat top 160px center / 180px auto;
    transition: .3s;
}
.stars_show {
    background: #222 url(../img/eye.png) no-repeat top 24px center / 180px auto;
}
small {
    font-size: 18px;
}
small a {
    color: white;
    text-decoration: none;
}
.fa-line {
    color: mediumspringgreen;
}

@media (min-width: 600px) {
    main section {
        display: flex;
        gap: 32px;
    }
    /* 偶数だけテレコに */
    main  section:nth-of-type(even) {
        flex-direction: row-reverse;
    }
    .text_div {
        flex: 1;
    }
    .img_div {
        flex: 1;
    }
    main section:nth-of-type(odd) .img_div::after {
        position: absolute;
        content: '';
        border-style: solid;
        border-color: transparent transparent transparent white;
        border-width: 10px 0 10px 10px;
        right: -10px;
    }
    main section:nth-of-type(even) .img_div::after {
        position: absolute;
        content: '';
        border-style: solid;
        border-color: transparent white transparent transparent;
        border-width: 10px 10px 10px 0;
        left: -10px;
    }
    main .img_div::before {
        border: none;
    }
}