@charset "UTF-8";

/* ==========================================================================
   1. フォント・アニメーション定義
   ========================================================================== */
/* 美咲フォント (C) 2002-2024 門真 なむ */
@font-face {
    font-family: 'MisakiGothic';
    src: url('../misaki_gothic_2nd.ttf') format('truetype');
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes retro-ghost-blink {
    0%, 60% {
        opacity: 1;
        text-shadow: 1px 1px 0px #2b3128;
    }
    61% {
        opacity: 0.7;
        color: #8F9184;
        text-shadow: none;
    }
    75%, 95% {
        opacity: 0;
    }
    96% {
        opacity: 0.7;
        color: #8F9184;
    }
}

/* ==========================================================================
   2. 全体・共通レイアウト設定
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

div {
    display: block;
    position: relative;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    background: radial-gradient(#B8BAAD, #667161);
    /* 共通フォントとおすすめのテキスト影を一括適用 */
    font-family: 'MisakiGothic', 'Font Awesome 7 Free', sans-serif;
    font-style: normal;
    color: #FFF;
    text-shadow:
        1px 1px 0px #2b3128,                     /* 右下のクッキリ影（可読性UP） */
        0px 0px 3px rgba(255, 255, 255, 0.4);    /* 隠し味程度のほんのりにじみ */
}

.row {
    padding: 0;
}

.section {
    min-height: 100vh;
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: center;
}

/* リンクの基本設定*/
a:link {
    color: #58B375;
    text-decoration: underline;
}

a:visited {
    color: #58B375;
}

a:hover {
    color: #39FF14;
    text-decoration: none;
    text-shadow: 0px 0px 6px #39FF14;
}

@keyframes noise-glitch {
    0%, 32%, 66%, 98% { opacity: 1; text-shadow: none; }
    33%, 35% { opacity: 0.2; text-shadow: 2px 0 red; }
    67% { opacity: 0.3; text-shadow: -2px 0 blue; }
    99% { opacity: 0.1; }
}

.noise-effect {
    display: inline-block;
    animation: noise-glitch 6s infinite;
    color: #39FF14;
    font-weight: bold;
}

.force-break {
    display: block;
    width: 100%;
}


/* ==========================================================================
   3. メニュー・ヘッダー（固定ナビゲーション）
   ========================================================================== */
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menu a {
    font-size: clamp(13px, 3vw, 20px);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1em;
    color: #667161;
    padding: 0.5em 1em;
}

area {
    cursor: pointer;
    pointer-events: auto;
}

.menu,
.et-divi-sticky-toggle,
.row {margin:0;
    font-size: 0;
    line-height: 0;
}

.menu img,
.et-divi-sticky-toggle img {
    display: block;
    vertical-align: bottom;
    margin: 0;
    padding: 0;
}

/* 上部折りたたみメニューのトリガーボタン */
.et-divi-sticky-toggle {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 105px;
    width: 336px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(0%) translateY(100%);
    transition: all 400ms;
    opacity: 0;
    visibility: visible;
    margin-top: -5px;
    padding-top: 0;
    z-index: 10;
}

.et-divi-sticky-toggle:hover {
    cursor: pointer;
}

.et-divi-sticky-toggle.et-show-toggle {
    opacity: 1;
    visibility: visible;
}

.et-divi-sticky-toggle .et-pb-icon {
    margin-top: 0px;
    margin-bottom: 0;
    transition: all 400ms;
}

/* 固定ヘッダー本体 */
.et-divi-sticky-header {
    position: fixed;
    z-index: 9999;
    top: 0;
    width: 100%;
    transform: translateY(-100%) !important;
    transition: all 400ms !important;
    margin: 0;
    padding-bottom: 0;
}

.et-divi-sticky-header.et-hide-sticky-header {
    transform: translateX(0%) translateY(0%) !important;
}

/* ==========================================================================
   4. レトロ液晶デバイス（疑似iframe構造）
   ========================================================================== */
/* デバイス全体の固定位置（右下固定に変更したい場合はここを right: 30px; bottom: 20px; に変更） */
.fixed-device-container {
    position: fixed;
    bottom: -20px;
    left: 13px;
    z-index: 9990;
}

.device-wrapper {
    position: relative;
    width: 320px;
    height: 512px;
    transform: rotate(-4deg);
}

.device-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 液晶画面の枠 */
.pseudo-iframe {
    position: absolute;
    top: 31px;
    left: 71px;
    width: 226px;
    height: 260px;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: scroll;
    background:
        linear-gradient(rgba(0, 0, 0, 0.15) 50%, transparent 50%),
        radial-gradient(#8F9184, #3B4238);
    background-size: 100% 4px, 100% 100%;
    direction: rtl;
    unicode-bidi: bidi-override;
}

.pseudo-iframe-content {
    direction: ltr;
    padding: 10px 5px 10px 10px;
}

.pseudo-iframe-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
}

/* 液晶内の見出し */
.pseudo-iframe-content h2 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 12px;
    margin-top: 10px;    /* 上の隙間を小さく */
    margin-bottom: 5px;  /* 下の隙間も小さく詰める */
    line-height: 1.2;    /* 行間も詰めるとよりスッキリします */
}

.pseudo-iframe-content h3 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 16px;
}

/* 点滅エフェクト */
.retro-blink {
    animation: retro-ghost-blink 2s infinite linear;
}

/* 物理スクロールボタン（つまみダイヤル用） */
.dial-btn {
    position: absolute;
    left: 5px;
    z-index: 3;
    display: block;
    width: 50px;
    height: 53px;
    cursor: pointer;
}
.dial-up { top: 55px; }
.dial-down { top: 109px; }

/* 液晶専用スクロールバー（スマート半透明仕様） */
.pseudo-iframe::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.pseudo-iframe::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.pseudo-iframe::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

.pseudo-iframe::-webkit-scrollbar-button {
    display: none;
}

/* 共通の境界線スタイル */
.border-divider {
    border-bottom: 1px dashed #39FF14; /* 点線。必要に応じて実線 solid に変更可能 */
    margin: 20px 0;                    /* 上下の余白 */
    width: 100%;                       /* 画面幅いっぱい */
}

/* ==========================================================================
   5. コンテンツ用：開閉メニュー（details）＆アイコン
   ========================================================================== */
   ========================================================================== */
   details {
       width: 100%;
       padding: 0;
       margin-bottom: 10px;
   }

   details > p {
       background-color: rgba(0, 0, 0, 0.3);
       border-radius: 0 5px 5px 0;
       padding: 8px 10px;
       margin: 5px 0 5px 0;
       box-shadow: 2px 2px 3px black;
       font-size: 0.85em;
       border-left: 3px solid #58B375;
   }

details > summary {
    position: relative;
    padding: 10px;
    border: none;
    cursor: pointer;
    list-style-type: none;
}

summary {
    cursor: pointer;
    list-style: none;
    padding: 5px 0;
    font-weight: bold;
}

audio {
    width: 100% ;
    height: 30px ;
    min-height: 30px ;
    margin: 5px 0 ;
    background: #4a504a;
    border-radius: 4px;
}

.pseudo-iframe-content audio {
    display: block;
    box-sizing: border-box;
}

/* 作業中のスタイル（普通） */
.inprogress {
    color: #FFF; /* 普通の白文字 */
}

/* 完成しているもののスタイル（発光・ノイズ） */
.completed {
    color: #39FF14;
}

/* 未完成・制限のスタイル（灰色） */
.ban {
    color: #8F9184; /* 灰色 */
}

.alert-text-block {
    text-align: left;
    display: inline-block;
    line-height: 1.6;
    margin: 10px auto;
}

.alert-line {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 6px;
}

.alert-line::before {
    content: "！";
    position: absolute;
    left: 0;
    top: 0;
    color: #FF4D4D;
    animation: blink 0.8s infinite linear;
}

.alert-line.no-mark {
    padding-left: 1.2em;
}
.alert-line.no-mark::before {
    content: "";
    animation: none;
}

.heading-text-block {
    text-align: left;
    display: inline-block;
    line-height: 1.6;
    margin: 10px auto;
}

.heading-line {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 6px;
}

.heading-line::before {
    content: "◎";
    position: absolute;
    left: 0;
    top: 0;
    color: #DAA520;
}

.heading-line.no-mark {
    padding-left: 1.2em;
}
.heading-line.no-mark::before {
    content: "";
    animation: none;
}

h2 + .heading-text-block {
    margin-top: 0 !important;
}

.level-year {
    font-weight: bold;
}

.month-row {
    display: flex;
    padding-left: 1.5em;
    margin-bottom: 5px;
}

.level-month {
    font-weight: bold;
    margin-right: 5px;
    min-width: 2.5em;
}

.level-content {
    color: #ffffff;
}


/* ==========================================================================
   6. タイトル用
   ========================================================================== */

   .noise-text {
       display: inline-block;
       animation: noise-blink 6s infinite;
       font-weight: bold;
       color: #39FF14;


       font-size: 1.5em;
       line-height: 1.2;
       text-shadow: 0px 0px 10px rgba(57, 255, 20, 0.5);
   }

   @media screen and (max-width: 600px) {
       .noise-text {
           font-size: 2em;
       }
   }

@keyframes noise-blink {
    0%, 32% { content: "Q厩舎"; opacity: 1; }
    33%, 35% { opacity: 0.2; text-shadow: 2px 0 red; }

    36%, 65% { content: "stambulance"; opacity: 1; }
    66%, 68% { opacity: 0.3; text-shadow: -2px 0 blue; }

    69%, 98% { content: "きゅうきゅうしゃ"; opacity: 1; }
    99%, 100% { opacity: 0.1; }
}

.noise-text::after {
    content: "Q厩舎";
    animation: text-change 6s infinite;
}

@keyframes text-change {
    0% { content: "Q厩舎"; }
    33% { content: "stambulance"; }
    66% { content: "きゅうきゅうしゃ"; }
}

/* ==========================================================================
   7. メイン用
   ========================================================================== */

   .pseudo-iframe-content {
       padding-left: 2;
       padding-right: 2;
   }

   .pseudo-iframe-content h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

   .work-card {
       margin-left: 2;
       margin-right: 2;
       padding-left: 2;
       padding-right: 2;
       width: 100%;
   }

   .work-card img {
       width: 100%;
       max-width: 100%;
       height: auto;
       display: block;
   }

   /* 進捗エリアの親要素 */
   .status-row {
       display: flex;
       flex-direction: column;
       gap: 5px;
       margin-top: 10px;
   }

   /* 各項目のスタイル */
   .status-item {
       display: flex;
       font-size: 0.9em;
       color: #cccccc;
   }

   /* 最終更新 */
.update-date {
    color: #FFD700;
}

   /* ラベルの幅を固定 */
   .label {
       min-width: 80px;
       color: #39FF14;
   }
