@charset "utf-8";

/* Cascading Style Sheets, css_name: help.css */
/* Copyright (C)  Kazuhide Senda. All Rights Reserved. */

body {
    margin: 0;
    font-family: sans-serif;
    background-color: #778899;
    line-height: 1.6;
    scrollbar-gutter: stable;
}
a,a:hover,a:visited {
    color: inherit;
}
.container {
    max-width: 750px;
    margin: 50px auto;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    border: 4px solid darkorange;
}
h1,h2 {
    color: #1e90ff
}
a.term, .term {
    color: #ff8c00;
    cursor: pointer;
    text-decoration: underline;
}
/* ===== popup ===== */
.term-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 999;
    animation: fadeIn .2s ease;
}
.term-popup {
    background: #d3d3d3;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    margin: 10vh auto;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid deepskyblue;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.term-close {
    float: right;
    font-size: 22px;
    cursor: pointer;
}
/* ===== popclose ===== */
.term-close {
    float: right;
    font-size: 18px;
    cursor: pointer;
    background: #1e90ff;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1;
}
.term-close:hover {
    background: #187bcd;
}
/* ===== page close button (mobile friendly) ===== */
.page-close {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 3000;
    background: rgba(255,77,77,0.25);   /* 通常は薄い */
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 18px;
    border-radius: 50px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 6px 14px rgba(0,0,0,.25);
    text-shadow: 0 1px 3px rgba(0,0,0,.7);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: 
        background .25s ease,
        transform .15s ease,
        box-shadow .25s ease;
}

/* マウスを近づけると濃くなる */
.page-close:hover {
    background: rgba(255,77,77,0.85);
    box-shadow: 0 10px 20px rgba(0,0,0,.35);
    transform: translateY(-2px);
}

/* 押した時 */
.page-close:active {
    transform: scale(0.95);
}

/* PCでは少し小さく */
@media (min-width: 768px) {
    .page-close {
        font-size: 15px; padding: 10px 14px;
        border-radius: 8px;
        bottom: 20px;
        right: 20px;
    }
}
@keyframes fadeIn{
    from{opacity:0}
    to{opacity:1}
}
/* ===============================
   Opening (Ninja)
================================ */
/* 初期状態 */
body.loading .container {
    opacity: 0;
    transform: translateY(20px);
}

/* 開始後 */
body.loaded .container {
    opacity: 1;
    transform: translateY(0);
    transition: all 1.2s ease;
}

/* ninja 初期状態 */
#mainNinja {
    opacity: 0;
    transform: scale(0.4) rotate(-540deg);
}

/* 回転しながら出現 */
#mainNinja.show {
    opacity: 1;
    transform: scale(1.2) rotate(-720deg);
    transition:
        transform 1s cubic-bezier(.2,.8,.2,1),
        opacity 0.6s ease;
    filter: drop-shadow(0 0 18px rgba(255,255,255,0.35));
}
