body {
    background-color: #d9d9d9;/* 背景色 */
    color: #000000;/* 文字色 */
    font-family: "Noto Sans JP", sans-serif;/* フォント */
    font-weight: 500;
    margin: 0;
    padding: 50;

    max-width: 800px;/* 最大幅を設定 */
    margin: 0 auto;/* 中央揃え */
    margin-top: 50px;
    padding: 0 30px;/* 左右に適度な余白を追加 */

}

h1{
  overflow-wrap: anywhere;
}


nav {
    text-align: center;
    padding: 50px;

}

nav a {
    color: #1c6e70;
    /* color: #416178; */
    padding: 10px;
    text-decoration: none;
    text-decoration: underline;
}

/* リンク */
a {
    color: #1c6e70;
    /* color: #416178; */
    text-decoration: none;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

img {
    max-width: 100%;
    height: auto; 
    display: block; 
    margin: 20px 0; 
    

}




audio {
  width: 100%; 
  margin: 20px 0; 
}

video {
  width: 100%; 
  margin: 20px 0; 
}


.site_title{
  text-align: right;
  font-size: 1.2rem;
}



/* テーブルスタイル */
table, th, td { 
    border:1px solid #333; 
    border-collapse:collapse;
  }
  th, td { 
    padding:4px 8px;
  }
  
  /* コードブロック */
  .codehilite { 
    border:1px solid #333;
    padding:8px;
    margin:8px 0;
    background-color:#e7e7e7;
    overflow-x:auto;
    white-space: pre-wrap;
    word-break: break-word;
  }
  
  /* フッターナビゲーション */
  .footer-nav {
    margin-top: 10px;
    margin-bottom: 50px;
  }
  
  /* ディレクトリリンクボックス */
  .directory-links-box {
    border:1px solid #666;
    padding:10px;
    margin-bottom:20px;
  }
  
  /* グラフコンテナ */
  .graph-container {
    width:100%;
    height:650px;
    margin:0px 0;
  }




  

  
/* チェックボックス（タスクリスト）のスタイル */
ul.task-list, ol.task-list {
    list-style-type: none;
    padding-left: 0.5em;
}

/* ラベル要素に対する調整 */
ul.task-list li.task-list-item label.task-list-control {
    position: relative;
    display: inline-flex;
    align-items: center;  /* これで基本的には垂直中央揃えになるはず */
    cursor: default;
}

/* ネイティブのチェックボックスを隠す */
ul.task-list li.task-list-item label.task-list-control input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    /* ▼▼▼ 調整箇所 (span.task-list-indicator のサイズに合わせる) ▼▼▼ */
    width: 1em;   /* 例: サイズを小さく */
    height: 1em;  /* 例: サイズを小さく */
    margin: 0;
    z-index: 1;
}

/* カスタムチェックボックスの見た目を作る (span.task-list-indicator) */
ul.task-list li.task-list-item label.task-list-control span.task-list-indicator {
    display: inline-block;
    /* ▼▼▼ 調整箇所 (チェックボックスの基本サイズ) ▼▼▼ */
    width: 1em;  /* 例: サイズを小さく (inputのwidth/heightと合わせる) */
    height: 1em; /* 例: サイズを小さく (inputのwidth/heightと合わせる) */
    border: 1px solid #767676;
    background-color: #ffffff;
    margin-right: 0.5em;
    /* vertical-align: middle; */ /* labelのalign-itemsで対応しているため、通常は不要 */
    box-sizing: border-box;
    position: relative;
    /* ▼▼▼ 調整箇所 (もしalign-itemsで中央揃えにならない場合の微調整) ▼▼▼ */
    top: 0.11em;
}

/* チェックされた時のカスタムチェックボックスのスタイル */
ul.task-list li.task-list-item label.task-list-control input[type="checkbox"]:checked + span.task-list-indicator {
    background-color: #1c6e70;
    border-color: #1c6e70;
}

/* チェックマークの表示 (疑似要素 :after を使用) */
ul.task-list li.task-list-item label.task-list-control input[type="checkbox"]:checked + span.task-list-indicator::after {
    content: "";
    position: absolute;
    /* ▼▼▼ 調整箇所 (チェックマークの位置とサイズ、親のサイズ変更に合わせて調整) ▼▼▼ */
    /* 親が1em x 1em の場合の目安 */
    left: 0.28em;  /* 元の0.35emから少し調整 */
    top: 0.05em;   /* 元の0.1emから少し調整 */
    width: 0.25em; /* 元の0.3emから少し調整 */
    height: 0.5em; /* 元の0.6emから少し調整 */
    border: solid white;
    border-width: 0 0.12em 0.12em 0; /* 元の0.15emから少し調整 */
    transform: rotate(45deg);
}

/* --- 以下、style2.cssの末尾に追加してください --- */

/* 区切り線のスタイル */
.section-divider {
    margin: 50px 0;
    border: 0;
    border-top: 1px solid #999;
}

/* 中央揃え用のコンテナ */
.center-box {
    text-align: center;
    margin: 50px 0; /* 基本の上下余白 */
}

/* 巨大なリンク文字（5rem, bold） */
.huge-link {
    font-size: 5rem;
    font-weight: bold;
}

/* おみくじ専用の大きな余白 */
.omikuji-box {
    margin: 300px 0;
}

/* スマホ対応（画面が狭いときは文字サイズを少し小さくする調整） */
@media (max-width: 600px) {
    .huge-link {
        font-size: 3rem; /* スマホでは3remくらいに抑える */
    }
}







/* --- 収録文字判定機のスタイル --- */

.tool-container {
    margin: 60px 0;
    width: 100%;
    box-sizing: border-box;
}

/* ラベル：機械的な雰囲気を出すための小さい文字 */
.tool-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 5px;
    font-family: "Noto Sans JP", sans-serif;
}

/* 入力欄：コードブロック(#e7e7e7)と色を統一 */
.tool-container textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    
    /* コードブロックと同じ背景色 */
    background-color: #e7e7e7; 
    border: 1px solid #333;
    
    color: #000;
    padding: 15px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    border-radius: 0; /* 角丸なし */
    resize: vertical;
    
    /* フォーカス時の挙動 */
    outline: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.tool-container textarea:focus {
    background-color: #fff; /* 入力中は白くして視認性を上げる */
    border-color: #000;
}

/* ボタン：テーマカラー緑、中央配置、独立型 */
.tool-btn {
    display: block;
    /* 中央揃え */
    margin: 20px auto; 
    
    /* 全幅をやめてコンテンツに合わせる（余白で広さを出す） */
    width: auto;
    padding: 10px 40px;
    
    background-color: #1c6e70; /* サイトのテーマカラー */
    color: #fff;
    border: 1px solid #1c6e70;
    
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0; /* 無骨さを維持 */
    transition: all 0.2s;
}

.tool-btn:hover {
    background-color: #144e50; /* 少し暗く */
    border-color: #144e50;
}

/* 結果表示エリア：ログ出力風 */
.tool-result {
    margin-top: 30px; /* ボタンとの距離 */
    padding: 10px 15px;
    min-height: 2em;
    
    border-left: 4px solid #999; /* 左のラインで区分け */
    background-color: transparent;
    
    font-family: monospace; /* 等幅フォント */
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-all;
}

/* 待機中の文字 */
.placeholder-text {
    color: #888;
    font-size: 0.8rem;
}