/* theme_generic.css */

@font-face {
    font-family: 'MaruMonica';
    src: url('../fonts/x12y16pxMaruMonica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'MaruMonica', sans-serif !important;
        cursor: url('../images/cursor.png'), auto !important; /* urlに"../がなかったので追加 Upmarin"*/
    }
    
    a, button {
        cursor: url('../images/cursor_click.png'), pointer !important; /* クリック時のカーソル */ /* urlに"../"がなかったので追加 Upmarin*/
    }
a,
a:hover {
    transition: color 0.2s linear;
    -webkit-transition: color 0.2s linear;
    -moz-transition: color 0.2s linear;
    -o-transition: color 0.2s linear;
}

.posts p:empty,
.posts div:empty,
.posts h2:empty,
body.permalink_page .posts .controls,
.hide_if_last:last-child {
    display: none;
}

h2.has_body {
    margin: 0 0 0.5em 0;
}

h2 { 
    margin: 0;
    font-size: 1.2em;
    line-height: 1.4em;
}

.chat ul, .chat ol {
    padding: 0;
    list-style: none;
}

.content p,
blockquote,
ul,
ol {
    margin: 0 0 0.8em 0;
}

.meta div {
    margin: 0 0 0.4em 0 !important;
}

.meta div a {
	text-decoration: none;
}

.content p:last-child,
.content blockquote:last-child,
.meta div:last-child {
    margin-bottom: 0 !important;
}

blockquote {
    padding-left: 10px;
    border-left: 2px solid #ABABAB;
    border-left: 2px solid rgba(0,0,0,0.33);
}

.content p > img {
    max-width: 100%;
    border-radius: 0;
}

ul, ol {
    padding: 0 0 0 18px;
}

a img {
    border: 0;    
}

.cf:before,.cf:after{
  content:" ";display:table
  }
  
.cf:after{
  clear:both
}

.cf{
  *zoom:1
  }
  .start_menu {
    position: fixed;
    bottom: 28px;
    left: 2px;
    background: white;
    width: 200px;
    height: auto;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    z-index: 5; /* タスクバーの上に表示！ */
}
.start_button {
    display: flex; /* ロゴと文字が横並びになるよにしたYO */
    cursor: pointer; /* クリックできるように */
      pointer-events: auto !important;
}

.tray {
    position: absolute;
    right: 10px;
    bottom: 4px;
    color: black; /* なぜか白表示だったから黒表示に直したっピ */ 
    font-family: "MS Sans Serif", sans-serif;
    font-size: 12px;
}
/* welcome固定 */
.welcome {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1; /* 他の要素より前面に */
    display: block;
    color: white;
}
.container {
    margin-top: 50px; /* 投稿を下にずらす */
}
.navigation {
    margin-top: 20px;
    text-align: center;
    font-size: 1.2em;
}
.middle {
    margin: 0 auto;
    max-width: 800px; /* 適宜調整 */
    text-align: left;
    display: block;
    position: relative; /* 位置を正しくする */
}
.top {
    margin: 0 auto;
    max-width: 800px; /* ここも合わせる */
}
.submit_icon {
    height: 32px;
    width: 32px;
    background-position: -500px -150px; /* 適宜変更 */
    background-image: url('/images/master_sprite.png');
}
.icons {
    position: absolute !important; /* 固定を解除 */
    top: 100px !important; /* ここを調整！（50px とかで様子見） */
}
.main-title {
    font-size: 48px !important;  /* 180px 相当にデカく */
    height: 61.5px !important;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 61.5px !important;
    background-color: transparent !important; /* 背景色の影響を防ぐ */
    width: 100% !important;
    color: #FFFFFF !important; /* 16進数で白にする！ */
    font-weight: b;
}

.icon_label {
    color: #FFFFFF !important; /* 白にする */
    display: block !important; /* 確実に適用 */
}
.title {
    font-size: 16px !important; /* 通常のタイトルは小さくする */
}

.main-title {
    font-size: 48px !important; /* 夢小説サイトだけ大きく！ */
}
.navigation {
    text-align: center; /* そのまま */
    display: flex !important;
    justify-content: space-between !important; /* 左右に配置 */
    flex-direction: row-reverse !important; /* 順番を逆にする */
}

.prev {
    float: left !important;
}

.next {
    float: right !important;
}
.enableMusic, .disableMusic {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}
/* カウンター用のスタイル（例） */
.counter {
    position: fixed;
    bottom: 60px;
    right: 10px; /* または left: 10px; 好みに合わせて */
    z-index: 1; /* ほかの要素より前面に表示 */
    padding: 5px;
    border-radius: 5px;
} 
#secretLink {
    position: relative;
  }
  
  #secretLink .icon_label {
    position: absolute;
    top: 100%; /* アイコンの下に表示 */
    left: 50%;
    transform: translate(-50%, 0);
    white-space: nowrap;
  }
.start_bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 28px;
    background-color: rgb(192,192,192);
    z-index: 5; /* 最前面にする */
    overflow: hidden; /* 埋もれるのを防ぐ */
    white-space: nowrap;
}
#musicPrompt, #overlay {
    display: none !important;
    background-color: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
/* タスクバー内の Start ボタンは幅 54px（margin 2px などを含む）なので、その右側に配置 */
#application_icons {
    position: fixed;
    bottom: 10px;
    left: 70px;
    z-index: 6;
    display: flex;
    align-items: center;
  }
  /* main-title（夢小説サイト）のスタッキング順序を上げる */
  .main-title {
    position: relative;
    z-index: 1 !important;
  }
  
  /* Secret Site 内のラベルをアイコンの下に配置（中央揃え） */
  #secretLink {
    position: relative;
    display: inline-block;
  }
  
  #secretLink .icon_label {
    position: absolute;
    top: 50%;
    left: 100%;  /* アイコンの右側に配置 */
    transform: translate(-50%, -50%);
    white-space: nowrap;
  }
  
  .window .middle {
    position: relative;
    z-index: 1;
  }
  .icon1 {
    height: 32px;
    width: 32px;
    background-image: url('../images/icon1.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;              /* フレックスボックスでレイアウト */
    margin-bottom: 4px; /* アイコンとテキストの間に余白 */
}
.icon2 {
    height: 32px;
    width: 32px;
    background-image: url('../images/icon2.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;              /* フレックスボックスでレイアウト */

    margin-bottom: 4px; /* アイコンとテキストの間に余白 */
}
.icon3 {
    height: 32px;
    width: 32px;
    background-image: url('../images/icon3.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;              /* フレックスボックスでレイアウト */

    margin-bottom: 4px; /* アイコンとテキストの間に余白 */
}
.icon4 {
    height: 32px;
    width: 32px;
    background-image: url('../images/icon4.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;              /* フレックスボックスでレイアウト */

    margin-bottom: 4px; /* アイコンとテキストの間に余白 */
}
.icon5 {
    height: 32px;
    width: 32px;
    background-image: url('../images/icon5.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;              /* フレックスボックスでレイアウト */

    margin-bottom: 4px; /* アイコンとテキストの間に余白 */
}
.icons {
  position: fixed;
  left: 0px;
  top: 29px !important; /* ここを調整（例: 50px, 70px, 100px） */
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom_icons {
  position: fixed;
  left: 100px;  /* こちらを大幅に右へ */
  top: 0px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.custom_icons .icon_container {
    display: flex;
    flex-direction: column;
    align-items: center;  /* 子要素を横中央に配置 */
    justify-content: center;
    text-align: center;   /* テキストも中央揃え */
  }