* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}

html {
    height: 100%;
    overflow: auto;
}

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0px;
    width: 100%;
    height: 100%;
}

#damImg {
    width: 64px;
    height: 64px;
    position: absolute;
    top: -100%;
    left: -100%;
    z-index: 20;
}

/*---------------------------------------------
loading
----------------------------------------------*/

.scale-loader {
    width: 200px;
    height: 200px;
    transform: scale(30%);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -100px;
    margin-left: -100px;
    z-index: 1;
    filter: blur(2px);
}

/* 1. 太い支柱と台形の土台（固定部分） */
.scale-pillar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px; /* 画像に合わせた太めの支柱 */
    height: 140px;
    background: #fff; /* ご指定の白色 */
}

/* 台形の土台 */
.scale-pillar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom: 14px solid #fff; /* 土台の高さ */
    border-left: 10px solid transparent; /* 傾斜 */
    border-right: 10px solid transparent; /* 傾斜 */
    width: 100px; /* 土台の底辺の幅 */
}

/* 2. 天秤の可動フレーム（カーブした竿と皿） */
.scale-beam {
    position: absolute;
    top: 45px; /* 支柱の少し下を回転軸にする */
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: top center;
    animation: swingBeam 2s ease-in-out infinite;
}

/* カーブした竿（横棒） */
.beam-bar {
    position: absolute;
    top: 0;
    left: 10px;
    width: 180px;
    height: 50px;
    border: 10px solid #fff;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 50% 50% 0 0; /* 緩やかなカーブを再現 */
}

/* 3. 左右の皿（紐と半円の受け皿） */
.pan {
    position: absolute;
    top: 10px; /* 15px から 10px に変更し、さらに上に移動しました */
    width: 60px;
    height: 90px;
    transform-origin: top center;
    animation: counterSwing 2s ease-in-out infinite;
}

.pan-left {
    left: 15px; /* 竿の左端にジャストフィット */
}

.pan-right {
    right: 15px; /* 竿の右端にジャストフィット */
}

/* 三角形の紐（外枠） */
.pan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-bottom: 46px solid #fff;
}

/* 三角形の内側を背景色でくり抜いて「紐」にする */
.pan::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 36px solid #d6161c; /* 背景色と同じ */
    z-index: 1;
}

/* 紐の中央を貫く太い縦線 */
.pan-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 44px;
    background: #fff;
    z-index: 2;
}

/* 半円の受け皿 */
.pan-basket {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 32px;
    background: #fff;
    border-radius: 0 0 32px 32px; /* 完全な半円 */
    z-index: 3;
}

/* 4. アニメーション設定 */
@keyframes swingBeam {
    0%, 100% { transform: rotate(-6deg); }
    50%      { transform: rotate(6deg); }
}

@keyframes counterSwing {
    0%, 100% { transform: rotate(6deg); }
    50%      { transform: rotate(-6deg); }
}

#loader-bg {
    width: 100%;
    height: 100%;
    background: #d6161c;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 150;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

a:link {
    color: #bf1920;
}

a:visited {
    color: #bf1920;
}

a:active {
    color: #6c0000;
}

a img {
    border: 0;
}

a:hover {
    opacity: 0.6;
}

a:focus {
    outline: none;
}

/*---------------------------------------------
ef
----------------------------------------------*/

.ef-fade {
    opacity: 0;
    transition: .7s linear 0.1s;
}

.ef-fade2 {
    opacity: 0;
    transition: .7s linear 1s;
}

.ef-scale {
    opacity: 0;
    transform: scale(1.3, 1.3);
    transition: .5s cubic-bezier(0, .64, .41, 1) 0.1s;
}

.ef-up {
    opacity: 0;
    transform: translate(0, 30%);
    transition: .5s cubic-bezier(0, .64, .41, 1) 0.1s;
}

.ef-down {
    opacity: 0;
    transform: translate(0, -30%);
    transition: .5s cubic-bezier(0, .64, .41, 1) 0.3s;
}

.ef-up2 {
    opacity: 0;
    transform: translate(0, 30%);
    transition: .5s cubic-bezier(0, .64, .41, 1) 0.5s;
}

.fade {
    opacity: 1.0;
    transform: translate(0, 0);
    transform: scale(1, 1);
}

/*---------------------------------------------
print
----------------------------------------------*/

@media print {
    body {
        display: none !important;
    }
}