[hidden] {
	display: none !important;
}

body {
	background-color: #f0f8f4;
	margin: 3px;
	padding: 5px;
}


/* schedule-img: 画像の配置 */
.overlay {
	position: absolute;
	z-index: 1000;
	touch-action: none;
}


/*=====================================
 * 注釈 (bys.html)
 *=====================================*/
.article-note-ref {
  font-size: 0.7em;
  vertical-align: super; /* 上付き */
  color: #666;
  margin-left: -2px;
  margin-right: 2px;
}

.article-notes {
  margin-top: 1.5em;
  padding-top: 0.5em;
  border-top: 1px solid #ccc;
  font-size: 0.9em;
  color: #444;
}

.article-note-item {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.article-note-number {
  min-width: 3em;
  color: #666;
}

.article-note-text {
  flex: 1;
}

.img-box {
  display: inline-block;
  background: #f7fcf9;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.img-box img {
  display: block;
  border: 1px solid #dceee3;
  border-radius: 6px;
}

.img-box figcaption {
  font-size: 0.8em;
  color: #555;
  margin-top: 4px;
  text-align: center;
}


/*******************************************************************
 * ナビゲーションメニュー
 *******************************************************************/

/* --- タブナビ（上部，ユーザーランク） --- */
.tab-nav {
  display: flex;
  flex-wrap: nowrap;             /* 折り返しなし */
  overflow-x: auto;              /* 横スクロール可能 */
  gap: 5px;                      /* タブ間の隙間 */
  padding: 1px 0;
  margin-bottom: 0px;
  list-style: none;
  scrollbar-width: none;         /* Firefox用：スクロールバー非表示 */
  -webkit-overflow-scrolling: touch; /* iOSスムーズスクロール */
  scroll-behavior: smooth;
  position: relative;
  font-size: 0.875em;
}

.tab-nav::-webkit-scrollbar {
  display: none;                 /* Chrome, Safari：スクロールバー非表示 */
}

.tab-nav li {
  flex: 0 0 auto;                /* 幅を自動調整、折り返さない */
  padding: 1px 7px;             /* タップしやすい余白 */
  background: #c3e6cb;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  min-width: 34px;
  border-radius: 5px;
}

.tab-nav li.D,
.tab-nav li.B,
.tab-nav li.S {
  font-weight: bold;
}

.tab-nav li.C,
.tab-nav li.A {
/*
  border-top: 2px dotted #5a8f7b;
 background-color: #cdeedc;
 */
}

.tab-nav li.active {
  /* background-color: #e6fff0; /* ミント */
  background-color: #52b788;
  border-bottom: 5px solid #2f855a;
  font-weight: bold;
}

.tab-nav a {
  text-decoration: none;
  /* color: #2d6a4f; */
  color: #14532d;	/* 濃い緑 */
  display: block;
}

.tab-nav li.active a {
  color: #ffffff;
}


.tab-nav-wrapper {
  position: relative;
  overflow: hidden;
}

.scroll-hint {
  position: absolute;
  bottom: 40%;
  transform: translateY(-35%);
  font-size: 18px;
  color: rgba(0,0,0,0.4);
  pointer-events: none;
  transition: opacity 0.3s;
}

.scroll-hint.left {
  left: 5px;
}

.scroll-hint.right {
  right: 5px;
}

.scroll-hint.hidden {
  opacity: 0;
}

/* --- タブナビ（下部，機能） --- */
.sub-tab-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 5px;
  padding: 1px 0;
  margin-bottom: 7px;
  list-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
  font-size: 0.85em;
}

.sub-tab-nav li {
  padding: 1px 7px;
  background: #e0f7e9;
  white-space: nowrap;
  border-radius: 4px;
  box-shadow: 0 3px 5px rgba(0,0,0,0.13); /* ← 全タブにごく控えめな影 */
  transition: box-shadow 0.2s, transform 0.15s;
}

.sub-tab-nav li:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.15); /* ← hoverでちょっと強く */
  transform: translateY(-1px);            /* ← 軽く浮かせる */
}

.sub-tab-nav li.active {
  background-color: #388e3c;
  color: #ffffff;
  font-weight: 700;
  border-bottom: 5px solid #27632a;
  box-shadow: 0 3px 6px rgba(56,142,60,0.35); /* ← アクティブは影を濃くして存在感 */
}

.sub-tab-nav a {
  text-decoration: none;
  /* color: #2d6a4f */
  color: #14532d;  /* 濃い緑 */
}

.sub-tab-nav li.active a {
  color: #ffffff;
  font-weight: 700;
}


/* シェアボタン専用タブの見た目を既存タブと揃える */
.sub-tab-nav li.share-btn {
  background: #e0f7e9;
  padding: 3px 8px;
}
.sub-tab-nav li.share-btn a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #14532d;  /* 濃い緑 */
  text-decoration: none;
  font-size: 14px;
}
.sub-tab-nav li.share-btn a:hover {
  opacity: 0.8;
}

.tab-content {
  display: none;
  padding: 10px;
  border: 1px solid #ccc;
}

.tab-content.active {
  display: block;
}


/* 一番上のツールタイトル */
.tool-title {
  background-color: #e6f4ea;       /* やや淡い緑の背景 */
  color: #2f6b2f;                  /* 濃いめの緑で文字色 */
  padding: 0.4rem 2rem;
  font-size: clamp(16px, 5vw, 30px);
  font-weight: bold;
  border-bottom: 3px solid #a2d5a2; /* 下線（装飾） */
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.5rem;
  border-radius: 0 0 10px 10px;    /* 下側だけ角丸で優しい印象 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* 軽い影で浮き感 */

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* 収まりきらないと ... にする */
}


/* サブタイトル： 使い方・注意事項等 */
.sub-title {
  display: block;               /* 単独行にする */
  font-size: 1.1em;             /* h4相当 */
  font-weight: 600;
  padding: 0.2em 0.6em;
  margin: 1.0em 0 0.5em 0;
  background-color: rgba(0, 100, 0, 0.1); /* 落ち着いた薄緑背景 */
  color: #1a4d1a;               /* 深い緑 */
  border-left: 4px solid #1a4d1a;
  border-radius: 4px;
}

/* サブサブタイトル：補足的な小見出し */
.sub-sub-title {
  display: block;
  font-size: 1em;                /* h5 相当 */
  font-weight: 500;
  margin: 0.8em 0 0.4em 0;
  padding: 0.15em 0.5em;
  background-color: rgba(0, 100, 0, 0.05); /* さらに淡い薄緑 */
  color: #2d6a4f;                /* やや柔らかい緑 */
  border-left: 3px solid #52b788; /* 緑系で軽めのアクセント */
  border-radius: 3px;
}



/* 各ページ冒頭の１行説明文 */
.intro {
  margin-bottom: 1.2rem;
  margin-top: 1.5rem;
}

/** <pre> inline **/
.inline-code {
  font-family: monospace;
  background-color: #f6f8fa;
  color: #24292e;
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 90%;
  border-radius: 6px;
  white-space: nowrap;
}


.adv-container {
  margin: 10px 0;
}

/*******************************************************************
 * スマホ用 table
 *******************************************************************/

div.flex-container {
	display: flex;
	gap: 50px;
	flex-wrap: wrap;
}

/* 外側：影・L字・撮影ガイド */
.phone-frame-wrap {
	position: relative;
	width: 360px;
	aspect-ratio: 9 / 16;     /* ← 縦横比固定 */
	overflow: visible;         /* はみ出し防止 */
}


/* L字は外側に */
.phone-frame-wrap::before,
.phone-frame-wrap::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid #4aa3df;
  pointer-events: none;
  z-index: 10;
}

/* 左上 */
.phone-frame-wrap::before {
  top: -6px;
  left: -6px;
  border-right: none;
  border-bottom: none;
}

/* 右下 */
.phone-frame-wrap::after {
  bottom: -6px;
  right: -32px;
  border-left: none;
  border-top: none;
}


.phone-frame {
  /* width: 360px; */             /* スマホ幅っぽい */
  position: static;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  overflow: hidden;         /* はみ出し防止 */
  /*
  display: flex;
  justify-content: center;
  align-items: center;
  */
}


.phone-frame.with-title {
  flex-direction: column;
}

table.livescore-border {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.livescore-border th {
  font-size: 7px;
  padding: 3px 8px;
}

.livescore-border td {
  padding: 1px 8px;
}

.livescore-border th,
.livescore-border td {
  border: 1px solid #ccc;
  text-align: right;
}

table.livescore-border tbody tr:nth-child(even) td:not(.sep) {
  background-color: #e4f0dc;
}


.livescore-border .sep {
	width: 5px;
}


.livescore-border td:nth-child(5),
.livescore-border th:nth-child(5) {
  border: none;         /* 完全に空白にする */
  background: transparent;
}


.livescore-border td.increased {
  color: #ff2800;
}
.livescore-border td.decreased {
  color: #1565c0;
}

.livescore-border td.decreased.level-1 {
  color: #90caf9; /* 薄い青 */
}

.livescore-border td.decreased.level-2 {
  color: #42a5f5; /* 中間 */
}

.livescore-border td.decreased.level-3 {
  color: #1565c0; /* 濃い青（今使ってる色） */
}

.livescore-border td.increased.level-1 {
  color: #ef9a9a;
}
.livescore-border td.increased.level-2 {
  color: #ef5350;
}
.livescore-border td.increased.level-3 {
  color: #d32f2f;
}

.livescore-border td.no-change {
  color: #9e9e9e; /* グレー */
}


.livescore-border-note {
  color: #555;
  font-size: 0.7em;
  margin-left: 2em;
}

/*-----------------------------------------------------------------*
 * スマホ用 保証ボーダー比率テーブル
 *
 * 基準日のボーダーと現在のボーダーを比較
 *-----------------------------------------------------------------*/

.gborder-multiplier-title {
  font-size: 14px;
  font-weight: bold;
}
.gborder-multiplier-subtitle {
  font-size: 12px;
  margin-left: 2em;
  color: #666;
}

table.gborder-multiplier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

table.gborder-multiplier-table tr.value td:first-child {
  font-weight: bold;
}

table.gborder-multiplier-table th,
table.gborder-multiplier-table td {
  border-left: none;
  border-right: none;
  text-align: center;
}

table.gborder-multiplier-table .separator-left {
/*
  border-left: 1px solid rgba(143, 191, 143, 0.45);
*/
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}


table.gborder-multiplier-table tr.value:not(.has-multiplier) td,
table.gborder-multiplier-table tr.multiplier td,
table.gborder-multiplier-table tr td.rank-cell {
	border-bottom: 1px solid #e0e0e0;
}

table.gborder-multiplier-table tr.rank-s,
table.gborder-multiplier-table tr.rank-b,
table.gborder-multiplier-table tr.rank-d {
	background-color: #f7fbf7;
}

.gborder-multiplier-table tr.value td {
	padding-top: 4px;
	padding-bottom: 1px;
}

.gborder-multiplier-table tr.value td.target-cell {
	font-weight: bold;
}

.gborder-multiplier-table tr.value td.plan-cell {
    color: #555;
	font-size: 0.9em;
}

.gborder-multiplier-table tr.multiplier td {
	padding-top: 0px;
	padding-bottom: 4px;
	font-size: 0.85em;
	color: #666;
}


/* =========================
   変化率 共通
========================= */
.gborder-multiplier-table tr.multiplier td.rate-increase,
.gborder-multiplier-table tr.multiplier td.rate-decrease {
/*
    font-weight: 600;
    border-radius: 4px;
    padding: 2px 6px;
    letter-spacing: 0.3px;
    background-color: transparent;   /* 列色を生かす
*/
    font-weight: 600;
    padding: 2px 6px;

}

/* =========================
   厳しくなった（increase）
========================= */
table.gborder-multiplier-table tr.multiplier td.rate-increase {
	/* 強めの赤 */
/*
    color: #c62828;
    background-color: rgba(198, 40, 40, 0.10);
    border-bottom: 2px solid #c62828;
*/
    color: #c62828;
}


.gborder-multiplier-table td.rate-increase::before {
    content: "▲ ";
    font-size: 0.8em;
}

/* 弱 */
table.gborder-multiplier-table tr.multiplier td.rate-increase.level-1 { color: #ef9a9a; }

/* 中 */
table.gborder-multiplier-table tr.multiplier td.rate-increase.level-2 { color: #ef5350; }

/* 強 */
table.gborder-multiplier-table tr.multiplier td.rate-increase.level-3 { color: #d32f2f; }


/* =========================
   緩くなった（decrease）
========================= */
table.gborder-multiplier-table tr.multiplier td.rate-decrease {
	/* 視認性高めの青 */
/*
    background-color: rgba(21, 101, 192, 0.10);
    border-bottom: 2px solid #1565c0;
*/
    color: #1565c0;
}

.gborder-multiplier-table td.rate-decrease::before {
    content: "▼ ";
    font-size: 0.8em;
}

/* =========================
   変化なし（必要なら追加）
========================= */
.gborder-multiplier-table td.rate-zero {
    color: #666;
    font-size: 0.8em;
}

/* 列グループ：ランクキープ */
table.gborder-multiplier-table td.keep,
table.gborder-multiplier-table td.point-2,
table.gborder-multiplier-table td.point-6 {
	background-color: rgba(180, 160, 80, 0.05);
}

/* 列グループ：ランクアップ */
table.gborder-multiplier-table td.up,
table.gborder-multiplier-table td.point-4 {
	/* background-color: rgba(100, 180, 120, 0.08); */
}


/*******************************************************************
 * お知らせ
 *******************************************************************/

/* お知らせバナー全体 */
#notice-banner {
  display: none;
  background-color: #e0f7e9; /* 淡い緑でサイトに馴染む */
  color: #2d6a4f;            /* 濃い文字で視認性確保 */
  padding: 8px 12px;
  border-radius: 5px;
  margin: 5px 20px;
  font-size: 14px;

  /* 凹んで見えるように影を内側に */
  box-shadow:
    inset 2px 2px 4px rgba(0,0,0,0.12),
    inset -2px -2px 4px rgba(255,255,255,0.6);
}

/* お知らせリスト */
.notice-list {
  list-style-type: disc;   /* 黒丸 */
  padding-left: 20px;      /* 左揃えインデント */
  margin: 0;
}

/* お知らせリストのアイテム */
.notice-list li {
  margin-bottom: 4px;      /* アイテム間の隙間 */
  line-height: 1.4;        /* スマホでも読みやすい行間 */

}

.notice-list li::marker {
  color: #52b788;      /* 緑系の丸に */
  font-size: 1.2em;    /* 少し大きめ */
}

/* 最後の li の下マージンを消す */
.notice-list li:last-child {
  margin-bottom: 0;
}

/* お知らせリンク */
.notice-list li a {
  color: #1b4332;          /* 濃い緑系 */
  text-decoration: underline;
}

.notice-list li a:hover {
  opacity: 0.8;
}

/* 過去のお知らせへのリンク */
.notice-archive-link {
  display: block;
  text-align: right;
  font-size: 0.8em;
}


/*******************************************************************
 * <pre>
 *******************************************************************/

.code-block {
  background-color: #f6f8fa;
  color: #24292e;
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
  font-size: 85%;
  padding: 1em;
  border-radius: 6px;
  overflow: auto;
  line-height: 1.45;
  border: 1px solid #d0d7de;
  width: 95%;
  margin: 1em auto; /* 中央寄せ */
}

/*******************************************************************
 * フッタ
 *******************************************************************/

.footer-content {
  background-color: #e6f4ea; /* 淡い緑 */
  color: #2f6b2f;            /* 濃い緑 */
  text-align: center;
  padding: 0.6em 1em;
  font-size: 0.9em;
  border-top: 2px solid #a2d5a2;
  margin-top: 3em;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05); /* 上向きの軽い影 */
}
.footer-content a {
  color: #2f6b2f;
  text-decoration: underline;
}
.footer-content a:hover {
  color: #1a4d1a; /* より深い緑に */
}

/***************************************************
 * ボタンとセレクトボックス
 ***************************************************/

select,
button {
  font-size: 14px;         /* 小さめ文字 */
  padding: 2px 4px;        /* コンパクトに */
  height: auto;            /* 高さを標準に */
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: none;
}

button:hover {
  background-color: #ddd;
}

button:active {
  background-color: #bbb;
  transform: translateY(1px);
}


/* 見た目の統一感を持たせる（スマホ用に小さめ） */
input,
select,
button {
  box-sizing: border-box;
}


/***************************************************
 * +2/+4/+6 の保証ボーダーテキストボックスの表示用
 ***************************************************/

.guaranteed-score {
  margin-top: 1rem;
}

.input-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.2rem;
}

.input-row label {
  min-width: 1.5em; /* ラベルの幅 */
  font-weight: bold;
  margin-right: 0.5rem;
  margin-left: 1.0rem;
}

.input-row input {
  flex: 1;
  min-width: 5em;
  padding: 0.2em 0.3em;
  margin-right: 10px;
  font-size: 0.9rem;
}


/***************************************************
 * コピーボタン
 ***************************************************/

.copy-button {
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.copy-output {
  flex-grow: 1;
  resize: none;
  padding: 0.1rem;
  font-size: 0.8rem;
  background-color: #f0f8ff;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #333;
  min-height: 1em;
  width: 97%;
  margin-right: 10px;
}

.guaranteed-score-readonly {
  background-color: #f0f8ff;
}

/***************************************************
 * ヘルプテキスト
 ***************************************************/

/** グレーなヘルプテキスト **/
.help-text {
  font-size: smaller;
  color: #666;
  margin-top: 4px;
  display: block;
}

/** ツールチップ表示 **/
.term {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #555;
  color: #004466;
}

.tooltip-box {
  position: absolute;
  z-index: 100;
  background-color: #ffffff;
  color: #222;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 0.85em;
  max-width: 300px;
  width: 80vw;
  top: 1.5em;
  left: 0;
}

.tooltip-box a {
  color: #007777;
  text-decoration: underline;
}

thead th {
	position: sticky;
	top: 0;
	background-color: #a8d5a2; /* 明るい緑 */
}


/***************************************************
 * 個別: index.html
 ***************************************************/

.meter-field {
	display: flex;
	flex-direction: column;
	gap: 0.30rem;
	margin-bottom: 1rem;
}

.meter-field label {
	font-size: 0.85rem;
	color: #666;
	line-height: 0.9rem;
}

.meter-field input,
.meter-field select {
	margin: 0;
	font-size: 0.9rem;
	height: 2.0rem;
}

.meter-field.score input {
	font-size: 1.3rem;
	padding: 0.8rem;
	height: 2.4rem;
}

.meter-field.score label {
/*
	font-size: 0.75rem;
	color: #888
*/
}


/***************************************************
 * 個別: history.html
 ***************************************************/

table.history {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff; /* 白背景 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
  color: #264d26;
}

table.history th,
table.history td {
  padding: 4px 11px;
  border-bottom: 1px solid #c6e0b4;
  text-align: right;
}

table.history th {
  background-color: #a8d5a2;
  color: #1b3a1b;
  font-weight: 600;
}

table.history tbody tr:nth-child(even) {
  /* background-color: #e4f0dc; */
  background-color: rgba(228, 240, 220, 0.3); /* 薄い緑 */
}

table.history tbody tr:hover {
  background-color: #c8e6a4;
  cursor: default;
}

table.history td.decrease {
  /* background-color: #f6dddd; */
  /* background-color: rgba(246, 221, 221, 0.75); */
  background-color: rgba(173, 216, 230, 0.75); /* 薄い青 */
  color: #000;
  font-weight: bold;
}

table.history td.minimum {
  /* background-color: #e3ecf5; */
  background-color: rgba(227, 236, 245, 0.75);
  color: #1f3b5c;
  font-weight: bold;
}


table.history tr.separator td {
  border-bottom: 1px dashed #ff9800; /* オレンジの線 */
  /* border-bottom: 1px dashed #999; /* 細めの破線 */
  /* background-color: transparent;   /* 背景は変えない */
}

.copyable {
  user-select: none; /* 文字選択が邪魔なら */
  transition: background-color 0.3s ease;
}

.copyable.tapped {
  background-color: #d0ffd0;
}


/***************************************************
 * 個別: about.html
 ***************************************************/

/* 用語集スタイル */
.glossary {
  padding: 0em 1em;
}

.glossary dt {
  font-weight: 600;
  font-size: 1.1em;
  color: #1a4d1a; /* 深緑 */
  margin-top: 1em;
  padding-left: 1em;
  position: relative;
}

.glossary dt a {
  font-weight: 600;
  color: #1a4d1a; /* 深緑 */
  text-decoration: none;
  border-bottom: 1px dotted #555;
}

.glossary dt::before {
  content: "● ";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 1em;
}

.glossary dd {
  margin: 0.4em 0 1em 1.5em;
  color: #333;
  line-height: 1.6;
  border-left: 3px solid #e0f0e0;
  padding-left: 0.8em;
  background-color: #fcfffc;
  border-radius: 3px;
}

.glossary dt.highlighted {
  background-color: #dff0d8; /* 明るい緑背景 */
  border-radius: 4px;
  transition: background-color 1s ease;
}

/** 用語集用画像 **/
.glossary div.img {
  text-align: center;
  margin: 0 auto;
  max-width: 80%;
  height: auto;
  margin: 0.5em 0;
  border: 0px;
}

.glossary div.img img {
  margin-left: auto;
  margin-right: auto;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}


.func {
  margin: 1em 0;
  padding: 0.5em 1em;
  font-size: 1em;
}

.func dt {
  margin: 0.4em 0 0.2em;
  font-weight: normal;
  color: #2f6b2f;
  line-height: 1.4;
}

.func dt a {
  text-decoration: underline;
  color: #2f6b2f;
  font-weight: bold;
  padding-left: 1.2em;
  position: relative;
}

.func dt .self-link {
  text-decoration: none;
  color: #2f6b2f;
  font-weight: bold;
  padding-left: 1.2em;
  position: relative;
  cursor: default;
}

.func dt a::before,
.func dt .self-link::before {
  content: "▶"; /* ▶, › */
  position: absolute;
  left: 0;
  top: 0.2em;
  font-size: 0.8em;
  line-height: 1.4;
}

.func dt a::before {
  content: "▶"; /* ▶, › */
  color: #4caf50;
}

.func dt .self-link::before {
  content: "▷"; /* ▶, › */
  color: #4caf50;
  /* color: #bbb; */
}

.func dd {
  margin: 0 0 0.8em 2.1em;
  color: #444;
  line-height: 1.5;
}

/***************************************************
 * 個別: schedule.html
 ***************************************************/

.scheduler-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scheduler-table {
  display: none;
  overflow-x: auto;
}
.scheduler-table.active {
  display: block;
}

table.scheduler {
  border-collapse: collapse;
}
table.scheduler th, table.scheduler td {
  border: 1px solid #ccc;
  padding: 4px;
  text-align: center;
}

.scheduler th,
.scheduler td {
  white-space: nowrap;
  padding: 0.3em 0.6em;
}

.scheduler tr {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.scheduler th.memo,
.scheduler td.memo {
  width: 100%;
  min-width: 200px; /* 最小幅を設定 */
}

.scheduler td.memo input {
  width: 100%;
  box-sizing: border-box;
}

select {
  width: auto;             /* 幅は自動 */
  max-width: 100%;         /* はみ出さないように */
}

/* ▼アイコンが数字と被るのを防ぐ（Android用） */
.point-select {
  appearance: none;        /* スマホ（特にiOS）で標準の外観を消す */
}


.date, .weekday, .point, .total, .memo, .skipRemain {
  /* class名だけ設置。後で自由に調整してください */
}
table.scheduler tr.today {
  background-color: #fffae6; /* 今日の日付の背景色 */
}
table.scheduler td.reset {    /* デイリーランクポイントの最終日 */
  /* 濃い緑 */
  background-color: #d4edda;
  font-weight: bold;
}
table.scheduler tr.separator {
  border-bottom: 3px double #000;
}

table.scheduler td.invalid {
  background-color: #fdd;
}

table.scheduler tr.event0 {
  /* background-color: #e0f7fa; /* イベント0の背景色 */
}
table.scheduler tr.event1 {
  background-color: #e0f7fa; /* イベント0の背景色 */
}

table.scheduler td.td-event-title {
	position: relative;
	text-align: center;
	width: 1.5em;
}

table.scheduler td.td-event-title .event-selector {
	position: relative;
}


table.scheduler td.td-event-title .event-select {
	top: 0;
	left: 0;

	writing-mode: vertical-rl;
	text-orientation: upright;
	text-align: center;
	width: 100%;
	height: 100%;
	position: absolute;
	opacity: 1;
	max-width: 1.7em;
	padding: 0;
	inset: 0;
	cursor: pointer;
	z-index: 10;
}

table.scheduler td.td-event-title .event-select.selected {
	background-color:#fde7ef; /* ピンク系 */
}

canvas.td-event-title {
	writing-mode: vertical-rl;
	text-orientation: upright;
	text-align: center;
}

table.scheduler td.td-event-title .event-select option {
	text-align: center;
}

.input-group {
  margin-bottom: 1em;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.2em;
}

.input-group input[type="number"],
.input-group select {
  width: 100%;
  padding: 0.4em;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  min-width: 0;
  display: block;
  box-sizing: border-box;
}


.radio-group label {
  display: block;
  margin-bottom: 0.3em;
  cursor: pointer;	/* ラベルをクリックして選択できるように */
  font-weight: normal;
}


.radio-group input[type="radio"] {
  margin-right: 0.5em;
  vertical-align: middle;
  margin-top: -3px;
}

.toggle-wrapper {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

/* チェックボックスは完全非表示 */
.toggle-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #d6f0e0;	/* 薄緑 */
    border-radius: 30px;
    cursor: pointer;
    width: 140px;
    height: 40px;
    font-size: 14px;
    color: #555;	/* unchecked の文字 */
    user-select: none;
    overflow: hidden; /* スライダーはみ出し防止 */
}

.toggle-label {
    flex: 1;
    text-align: center;
    z-index: 2; /* スライダーより上 */
    pointer-events: none;
}

.toggle-slider {
    position: absolute;
    top: 0;         /* 上端にフィット */
    left: 0;        /* 左端にフィット */
    width: 50%;     /* 半分の幅 */
    height: 100%;   /* 高さを全体に */
    background: #4caf50;	/* checked 濃い緑 */
    border-radius: 30px;
    transition: transform 0.3s ease;
    z-index: 1;
}

/* input:checked の場合にスライダーの下にあるラベルを白文字にする */
#schedule-toggle:checked + .toggle .toggle-label.future {
  color: #ffffff; /* 未来がチェックされたとき白文字 */
  font-weight: bold;
}

#schedule-toggle:not(:checked) + .toggle .toggle-label.past {
  color: #ffffff; /* 過去が選択されたとき白文字 */
  font-weight: bold;
}

/* チェック時に右へ移動 */
#schedule-toggle:checked + .toggle .toggle-slider {
    transform: translateX(100%);
}

.schedule-direction {
  background: #b2dfdb; /* 落ち着いたティール系、背景との差がはっきり */
  color: #004d40;      /* 深めの緑で文字が読みやすい */

  padding: 8px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #ccc;
}

.sch-tab-container {
  max-width: 420px;
  margin: 1em;
  border: 2px solid #4caf50;
  border-radius: 10px;
  background: #f9f9f9;
  overflow: visible;
  padding: 0;
}

.sch-tabs {
  display: flex;
  align-items: flex-end;
  border-bottom: 1.5px solid #4caf50;
  margin: 0;
  padding-left: 0.5em;
}

.tab-radio {
  display: none;
}

.tab-label {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.80rem;
  text-align: center;
  border: 1.5px solid #4caf50;
  border-bottom: none;
  background: #e8f5e9;
  color: #333;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  margin-right: 0.5px;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
  position: relative;
  top: 2px;
  z-index: 1;
}

.tab-radio:checked + .tab-label {
  background: #4caf50;
  color: #fff;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 -2px 4px rgba(76,175,80,0.06);
}

.sch-tab-content {
  display: none;
  padding: 0.9em 1em 1em 1em;
  background: #fff;
  border-radius: 0 0 10px 10px;
}

/* 閉じるボタン例 */
#sch-tab-close.tab-label {
  margin-left: 5px;
  top: 2px;
  box-shadow: none;
}

table.mini-char {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

table.mini-char th,
table.mini-char td {
  border: 1px solid #ccc;
  padding: 4px;
}

table.mini-char th {
  vertical-align: center;
}

table.mini-char td {
  vertical-align: top;
}

table.mini-char td {
  width: 40%;
}

.input-group table.mini-char td input[type="number"] {
  width: 100%;
}

table.mini-char th:first-child {
  width: 6em;
  text-align: center;
}

table.opt-table {
  all: revert;
}

table.opt-table th {
  all: revert;
}

table.opt-table td {
  all: revert;
  font-size: 0.9em;
}

table.opt-table td.mini-char-opt-label {
  font-size: 0.7em;
  white-space: nowrap;
}

table.opt-table td.mini-char-opt-unit {
  font-size: 0.7em;
  vertical-align: bottom;
}

table.opt-table td.mini-char-opt-input {
  width: 100%;
}

table.opt-table td.mini-char-opt-input input {
  width: 100%;
}

.sch-tab-container .input-group .upload {
  display: none;
}

.sch-tab-container .input-group .upload label.file input{
  display: none;
}

.sch-tab-container .input-group .upload label.file {
  display: inline;
  color: #06c;
  text-decoration: underline;
  cursor: pointer;
}

.sch-tab-container .input-group .upload .filename {
  margin-left: 5px;
  font-size: 0.7em;
}

label:has(#cal-mini-char-me:checked) ~ .upload,
#sch-tab-option:checked ~ .option-content,
#sch-tab-month:checked ~ .month-content,
#sch-tab-week:checked ~ .week-content,
#sch-tab-month:checked ~ .image-content,
#sch-tab-week:checked ~ .image-content,
#sch-tab-close:checked ~ .close-content {
  display: block;
}

.sch-panel {
  padding: 0.5em;
}

.fancy-btn {
  background: linear-gradient(135deg, #4db6ac, #26a69a); /* 緑〜青緑グラデ */
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  padding: 7px 15px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;

  display: block;
  margin-left: auto; /* 右寄せ */
}

.fancy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* 注意書きボタン */
.note-btn {
  background: none;
  border: none;
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}


/* 注意書きテキストのボックス化 */
.note-text {
  display: none;                /* 初期は非表示 */
  margin-top: 3px;
  padding: 3px 10px;
  background-color: #e0f2f1;    /* 薄い緑系で背景と馴染む */
  border: 1px solid #26a69a;    /* 薄い濃い緑で枠線 */
  border-radius: 8px;           /* 丸みをつける */
  font-size: 13px;
  color: #004d40;               /* 少し濃い文字色 */
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 立体感を少し追加 */
}

.info-text {
  background-color: #f0f8f4;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  margin-top: 5px;
}

.user-mini-char-preview-parent {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 10px;
}

/* プレビュー：利用者の画像配置設定 */
.user-mini-char-preview-container {
  --scale: 0.4; /* 全体の縮小率 */

  border: 2px solid #26a69a;
  overflow: hidden;
  display: inline-block;

  width: calc(360px * var(--scale));
  aspect-ratio: 9 / 16;     /* ← 縦横比固定 */
}

/* 元キャンバス */
.user-mini-char-preview-container .canvas {
  position: relative;
  width: 360px;
  aspect-ratio: 9 / 16;     /* ← 縦横比固定 */
  background: #fafafa;
  border: 1px solid #333;

  transform: scale(var(--scale));
  transform-origin: top left;
}

.user-mini-char-preview-container .character-box {
  position: absolute;
  border: 2px dashed red;
  background: rgba(255,0,0,0.1);
  transform: translate(var(--dx,0), var(--dy,0));
  cursor: grab;
}

table.mini-char th.box.tl,
.user-mini-char-preview-container .character-box.tl {
  color: red;
  background: rgba(255,0,0,0.1);
}

table.mini-char th.box.tr,
.user-mini-char-preview-container .character-box.tr {
  color: blue;
  background: rgba(0,0,255,0.1);
}

.user-mini-char-preview-container .handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: blue;
}

.user-mini-char-preview-container .handle.br {
  right: -6px;
  bottom: -6px;
  cursor: nwse-resize;
}

/* 全体コンテナ */
.preview-container {
  /* display: inline-block; */
  display: none;
  padding: 15px;
  background-color: #f0f8f4; /* 淡い緑 */
  border: 1px solid #26a69a; /* 緑系の枠線 */
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 380px;
  margin: 15px auto;
}

/* 保存ボタン */
.save-btn {
  background: linear-gradient(135deg, #4db6ac, #26a69a);
  color: white;
  font-weight: bold;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* 補足説明 */
.save-note {
  display: block;
  font-size: 12px;
  color: #004d40;
  margin-top: 5px;
  line-height: 1.3;
}
.save-note strong {
  color: #007bff;
}
.save-note em {
  font-style: normal;
  font-weight: bold;
  color: #26a69a;
}

/* プレビュー画像 */
.preview-img {
  margin-top: 12px;
  width: 100%;
  max-width: 360px;
  border-radius: 6px;
  border: 1px solid #ccc;
}


/*==================================================
 * 月間スケジューラ・画像生成
 *=================================================*/

.phone-frame-calendar {
  aspect-ratio: 9 / 16;     /* ← 縦横比固定 */
  min-height: 640px;

  /* ここより↑の項目は, schedule.js で上書きする */

  width: 360px;


  box-sizing: border-box;
  padding: 5px;

  display: none;
  align-items: center;      /* 縦中央 */
  justify-content: center;  /* 横中央 */

  border: 1px solid #ccc;
  background-color: #f0f8f4;
}

.calendar-wrapper {
  width: 100%;
  position: relative;
}

div.div-canvas {
	border-collapse: collapse;
	width: 100%;
	max-width: 360px;
	font-size: 14px;
	table-layout: fixed;
}

div.sch-week-title,
div.sch-month-title {
	position: relative;
	background: #f8f3ed;
	border: 1px solid #c9b49a;

	border-radius: 12px;
	padding: 5px 20px 5px 40px;
	color: #333;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);	/* 立体感 */

	text-align: center;
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 9px;
	white-space: nowrap;
}

div.sch-week-title .date,
div.sch-month-title .date {
	font-size: 19px;
	font-family: monospace;
}


div.sch-month-title .mini-char-title-left,
div.sch-week-title  .mini-char-title-left {
	position: absolute;
	left: 5px;
	bottom: 0%;
	margin-bottom: +0px;

	width: 25px;
	height: auto;
	pointer-events: none;
}


div.sch-month-title .mini-char-title-left.mini-char2,
div.sch-week-title .mini-char-title-left.mini-char2 {
	margin-bottom: -6px;
}

div.sch-month-title .mini-char-title-left.mini-char3,
div.sch-week-title .mini-char-title-left.mini-char3 {
	margin-bottom: -9px;
}

div.sch-month-title .mini-char-title-left.mini-char4,
div.sch-week-title .mini-char-title-left.mini-char4 {
	margin-bottom: 0px;
	margin-left: -7px;
}

div.sch-month-title .mini-char-title-right,
div.sch-week-title  .mini-char-title-right {
	position: absolute;
	right: 10px;
	bottom: 100%;
	margin-bottom: -2px;

	height: 30px;
	width: auto;
	pointer-events: none;
}

.copyright {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  font-size: 11px;
  color: #999;
  margin-top: 8px;

}

.copyright .mini-char {
  position: absolute;
  top: 50%;
  transform: translateY(-30%);
  max-height: 42px;
  max-width: 42px;

  height: auto;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}

.copyright .mini-char.left {
  left: 10px;
}

.copyright .mini-char.right {
  right: 10px;
}


table.scheduler_month {
	border-collapse: collapse;
	width: 100%;
	max-width: 350px;
	font-size: 14px;
	table-layout: fixed;
}

table.scheduler_month th,
table.scheduler_month td {
	width: 50px;
	border-spacing: 0;
}

table.scheduler_month th {
	border-bottom: 1px solid #ccc;
	padding: 0.1px;
	font-weight: bold;
	padding: 6px 0;
	background: none;
	position: static;
}

table.scheduler_month td {
	overflow: hidden;
	padding: 0px;
}

table.scheduler_month td.date {
	font-weight: bold;
	font-size: 14px;
	text-align: center;
	margin-top: 10px;
	color: #222;
}

table.scheduler_month td.date.past {
	opacity: 0.4;
}

.weekday.Sun,
table.scheduler_month th.Sun,
table.scheduler_month td.date.Sun,
.day-row .date.Sun,
.day-row .weekday.Sun {
/*	color: #e57373; /* 赤系 */
	color: #d64a4a;
}

.weekday.Sat,
table.scheduler_month td.date.Sat,
table.scheduler_month th.Sat,
table.scheduler_month td.date.Sat,
.day-row .date.Sat,
.day-row .weekday.Sat {
/*	color: #64b5f6; /* 青系 */
	color:  #2f6fd6;
}


table.scheduler_month td.event,
table.scheduler_month td.rank,
table.scheduler_month td.point {
	height: 10px;
}

table.scheduler_month tr.memo td {
	padding-bottom: 5px;
	padding-right: 4px;
	overflow: hidden;
	color: #444;
}

/** 最後は下パディングなし **/
table.scheduler_month tr.memo:last-child td {
	padding-bottom: 0px;
}


table.scheduler_month td.rank span.rank {
	display: block;
/*
	color: #0b4f63;
	background-color: #9cd6ea; /* 水色系 */

	background-color: #bfe6c8;
	color: #1f5e2a;

	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
	font-weight: 600;
	padding: 0 0;
	/* margin-top: 1px; */
	margin: 0 3px;
	font-size: 12px;
	white-space: nowrap;
	text-overflow: ellipsis;
  	text-align: center;
	overflow: hidden;

	position: relative;
}


table.scheduler_month td.event span.event {
	background-color: #f6a9c3; /* ピンク系 */
	color: #7a1f2b;
}

table.scheduler_month td.event span.event {
	display: block;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);

	padding: 0 0;
	margin: 0 2px;
	/* margin-top: 1px; */
	font-size: 11px;
	white-space: nowrap;
	text-overflow: ellipsis;
  	text-align: center;
	overflow: hidden;

	transform: translateZ(0);
}


table.scheduler_month td.event span.event.start,
table.scheduler_month td.rank span.rank.start {
	border-top-left-radius: 9999px;
	border-bottom-left-radius: 9999px;
}
table.scheduler_month td.event span.event.end,
table.scheduler_month td.rank span.rank.end {
	border-top-right-radius: 9999px;
	border-bottom-right-radius: 9999px;
}

table.scheduler_month td.rank .arrow {
	color: #2e7d32;
	position: absolute;
	right: 1px;
	top: 50%;
	transform: translateY(-50%);
	text-shadow:
		-1px -1px 0 white,
		 1px -1px 0 white,
		-1px  1px 0 white,
		 1px  1px 0 white;
}



table.scheduler_month td.point span.point {
	font-size: 11px;
	display: block;
	width: 90%;
	margin: 0 auto;
	padding: 0 0;
	text-align: center;

	background-color: #ffe08a;
	border-radius: 9999px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

table.scheduler_month td.point span.point.p1 {
	background: none;
}
table.scheduler_month td.point span.point.skip,
.day-row span.point.skip {
	background: #f0f0f0;
    color: #555;
}

table.scheduler_month td.point span.point .total {
	font-size: 9.5px;
	color: #999;
}

.text2 {
  font-size: 7px;
  line-height: 1.2;
  height: calc(1.2em * 2);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow: hidden;
  text-overflow: ellipsis;

  word-break: break-word;
}

/*==================================================
 * 週間スケジューラ・画像生成
 *=================================================*/

.week-day-rows .day-row {
  display: flex;
  box-sizing: border-box;	/* padding 込の height 計算 */
  align-items: center;
  gap: 2px;
  background: white;
  padding: 0px 4px;
  border-radius: 10px;
  margin-bottom: 5px;
  font-size: 14px;
  height: clamp(33px, calc(429px / var(--days)), 55px);
}

.day-row .point {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 18px;
  padding: 3px 4px 6px 4px;

  border: 1px solid #eee;
  border-radius: 4px;

  font-variant-numeric: tabular-nums;
}

/* デイリー（主役） */
.day-row .point .daily {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* 累計（補助） */
.day-row .point .total {
  font-size: 10px;
  line-height: 1;
  margin-top: 3px;
  color: #777;
}

/* がんばる */
.point-select.p2,
.point-select.p4,
.point-select.p6,
.day-row .point.p2,
.day-row .point.p4,
.day-row .point.p6 {
  background: #ffe08a;
}

.day-row .point.p2 .daily { font-weight: 700; }
.day-row .point.p4 .daily { font-weight: 800; }
.day-row .point.p6 .daily { font-weight: 900; }

.point-select.p0 {
  background: #ffd1d1;
}

/* skip */
.point-select.skip {
  background: #ccc;
  color: #000;
}
.day-row .point.skip {
  background: #f0f0f0;
  color: #555;
}


.day-row span.point {
  border: 1px solid #eee;
  min-width: 15px;
  text-align: center;
  padding: 4px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  background-color: #ffe08a;
}

.day-row span.point.p1 {
  background: none;
}


.day-row .date {
  width: 63px;
  font-weight: bold;
  text-align: center;
}

.day-row .weekday {
  font-weight: normal;
  font-size: 10px;
  vertical-align: middle;
}

.day-row .rank {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #eee;
  border-radius: 50%;

  width: 24px;
  height: 24px;
  line-height: 24px;

  font-size: 12px;
  font-weight: bold;

  position: relative;

  background-color: #fff;
  color: #333;

  text-align: center;
}

.day-row .rank.rank-up-after {
  border-color: #4CAF50;
  background-color: #E8F5E9;
  color: #2E7D32;
  border-width: 3px;
}
.day-row .rank.rank-keep-after {
  border-color: #888;
  background-color: #FFF;
  color: #333;
}
.day-row .rank.rank-down-after {
  border-color: #FF9800;        /* オレンジ系 */
  background-color: #FFF3E0;    /* 薄オレンジ背景 */
  color: #E65100;
  border-width: 1px;
}


.day-row .rank .arrow {
  position: absolute;
  right: -3px;
}

.day-row .rank .arrow.rank-down-before {
  bottom: -2px;
}
.day-row .rank .arrow.rank-up-before {
  bottom: +4px;
}
.day-row .rank .arrow.rank-keep-before {
  bottom: +0px;
}


.day-row .memo {
  width: auto;
  flex: 1;
  text-align: left;
  color: #444;
  opacity: 0.85;

  overflow: hidden;
  display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;

  font-size: 11px;
  line-height: 1.2;
}

.day-row .memo.small {
  font-size: 11px;
}
.day-row .memo.medium {
  font-size: 13px;
}
.day-row .memo.large {
  font-size: 16px;
}

/***************************************************
 * 個別: event.html
 ***************************************************/

/* フィルター + トグル横並び */
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  flex-direction: column;
}

.filter-item label {
  font-size: 14px;
  margin-bottom: 3px;
  color: #333;
}

.filter-item select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  min-width: 80px;
}

.filter-item select:focus {
  border-color: #4caf50;
  background-color: #e0f2e9;
  outline: none;
}

/* トグルスイッチ */
.toggle-view {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: #4caf50;
}
.switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* 横スクロールテーブル */
.table-container {
  overflow-x: auto;
  margin-top: 10px;
  -webkit-overflow-scrolling: touch;
}

.event-table, .news-table, .bys-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background:#fff;
}

.news-table th, .news-table td,
.event-table th, .event-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
  white-space: nowrap;
}

.bys-table th, .bys-table td {
  padding: 2px;
  border: 1px solid #ddd;
  text-align: center;
  white-space: nowrap;
}

.news-table th:nth-child(3),
.news-table td:nth-child(3) {
  text-align: left;
}

.event-table th:nth-child(5),
.event-table td:nth-child(5),
.event-table th:nth-child(6),
.event-table td:nth-child(6),
.event-table th:nth-child(7),
.event-table td:nth-child(7),
.event-table th:nth-child(8),
.event-table td:nth-child(8),
.event-table th:nth-child(9),
.event-table td:nth-child(9) {
  text-align: right;
}

.event-table th:nth-child(10),
.event-table td:nth-child(10) {
  text-align: left;
}

.bys-table thead th,
.news-table thead th,
.event-table thead th {
  background:#4caf50;
  color:white;
  position: sticky;
  top: 0;
}

.bys-table tbody tr:nth-child(even),
.news-table tbody tr:nth-child(even),
.event-table tbody tr:nth-child(even) {
  background:#f9f9f9;
}

.bys-table tbody tr:hover,
.news-table tbody tr:hover,
.event-table tbody tr:hover {
  background:#e0f2e9;
}

/* カード型 */
.event-card {
  display: flex;
  flex-direction: row; /* 左右並び */

  border:1px solid #ddd;
  border-radius:10px;
  padding:10px;
  margin-bottom:12px;
  background-color: #f9f9f9;
  box-shadow:0 2px 4px rgba(0,0,0,0.1);
}

.event-card h3 {
  margin:0 0 8px;
  color:#4caf50;
  font-size:18px;
}

.event-card p {
  margin:4px 0;
  font-size:14px;
}

.event-card ol {
  margin:6px 0;
  padding-left:20px;
}

.event-card-left {
  flex: 1; /* 左側はテキストで幅いっぱい */
  padding-right: 10px;
}

.event-card-right {
  flex: 0 0 120px; /* 右側は固定幅 */
}

.event-card-right img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.help dt {
	font-weight: bold;
}


.event-ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.event-ranking-table th,
.event-ranking-table td {
  padding: 2px 6px;
}

.event-ranking-table th {
  text-align: left;
  border-bottom: 1px solid #ccc;
}

.event-ranking-table td:nth-child(1),
.event-ranking-table th:nth-child(1),
.event-ranking-table th:nth-child(2),
.event-ranking-table td:nth-child(2) {
  text-align: right;
  flex-wrap: nowrap;             /* 折り返しなし */
  white-space: nowrap;
}

/*-----------------------------------------------------
 * ページネーション
 ---------------------------------------------------*/
.pagination {
  display: flex;
  justify-content: center;      /* 中央揃え */
  flex-wrap: wrap;              /* 横幅が狭い場合は折り返す */
  gap: 4px;                     /* ボタン間の隙間 */
  margin: 12px 0;
}

.page-btn {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.page-btn:hover {
  background-color: #f0f0f0;
}

.page-btn.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

/*----------------------------------------------------
 * モーダルウィンドウ
 * 画像拡大表示用
 ---------------------------------------------------*/
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;

}

body.modal-open {
  overflow: hidden; /* 背景スクロール防止 */
  position: fixed;
  width: 100%;
}

.modal img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.modal #modal-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  z-index: 1002;
}


/***************************************************
 * 個別: livescore.html
 ***************************************************/

.figure-row {
  display: grid;
  grid-auto-flow: column;          /* 列方向に詰める */
  grid-auto-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;   /* 1行目=画像, 2行目=キャプション */
  gap: 8px 8px;                   /* 行間 / 列間 */
  align-items: start;
}

.figure-row .img-container {
  display: contents;               /* 子(img と figcaption)を親グリッドに直接参加させる */
  margin: 0;                       /* figureの余白は消えるので gap で調整 */
}

.figure-row a {
  grid-row: 1;                     /* 画像は1行目に */
  justify-self: center;
}

.figure-row img {
  grid-row: 1;                     /* 画像は1行目に */
  justify-self: center;
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;             /* 必要なら */
}

.figure-row img.img-large {
  max-width: 400px;
}


.figure-row figcaption {
  font-size: 0.9em;   /* 少し小さめの文字 */
  color: #555;        /* 薄い色で本文との差別化 */
  grid-row: 2;                     /* キャプションは2行目に（全列で同じ行に並ぶ） */
  text-align: center;
  line-height: 1.4;                /* 各キャプションで同じ line-height に */
}


.notice-old {
  display: block;
  background-color: #fff3cd;       /* 明るい黄色：注意を促す色 */
  color: #664d03;                  /* 濃いめの茶色で読みやすく */
  border: 1px solid #ffeeba;       /* やわらかい黄色の枠線 */
  border-left: 6px solid #ffcc00;  /* 黄色の帯で視線を誘導 */
  border-radius: 6px;
  padding: 0.8em 1em;
  margin: 1.2em 0;
  font-size: 0.95em;
  line-height: 1.6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.notice-old::before {
  content: "⚠️  注意";
  font-weight: bold;
  margin-right: 0.4em;
}



/*----------------------------------------------------
 * ヘルプの説明用 <ol> with 画像
 ---------------------------------------------------*/

 .help-container {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

/* 📱 スマホ標準設定 */
.help-image-area {
  flex: 0 0 min(25%, 100px);
}

.help-image-area img {
  width: 100%;
  height: auto;
  display: block;
}

.help {
  flex: 1;
}

/* 丸付き数字 */
.help ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0 0 0 1em; /* リスト全体の左余白 */
}

.help ol li {
  counter-increment: step;
  margin-bottom: 0.5em;
  position: relative;
  padding-left: 1.2em; /* ← ★ ここを 2em → 1.5em にして狭くした */
}

.help ol li::before {
  content: "①";
  color: red;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* ②③④⑤… */
.help ol li:nth-child(2)::before { content: "②"; }
.help ol li:nth-child(3)::before { content: "③"; }
.help ol li:nth-child(4)::before { content: "④"; }
.help ol li:nth-child(5)::before { content: "⑤"; }
.help ol li:nth-child(6)::before { content: "⑥"; }
.help ol li:nth-child(7)::before { content: "⑦"; }
.help ol li:nth-child(8)::before { content: "⑧"; }
.help ol li:nth-child(9)::before { content: "⑨"; }
.help ol li:nth-child(10)::before { content: "⑩"; }

/* 💻 PCでは画像を小さめに */
@media (min-width: 769px) {
  .help-image-area {
    flex: 0 0 min(15%, 120px);
  }
}

/* 📱 スマホで縦並び（任意） */
@media (max-width: 480px) {
  .help-container {
    flex-direction: column;
    align-items: center;
  }
  .help-image-area {
    flex: 0 0 auto;
    width: 60%;
    max-width: 150px;
  }
}

/***************************************************
 * 個別: livescore2.html
 ***************************************************/

/* 散布図テーブル全体 */
.scatter-table {
    border-collapse: collapse;
    width: 100%;
    background-color: #ffffff;
    margin-top: 10px;
    border: 1px solid #ccc;
}

/* 見出しセル（左の N=1 など、上段の列名） */
.scatter-header {
    background-color: #a8d5a2;
    font-weight: bold;
    text-align: center;
    border: 1px solid #c8d8d4;
    padding: 2px;
    white-space: nowrap;
}

/* 画像セル */
.scatter-cell {
    border: 1px solid #c8d8d4;
    padding: 2px;
    text-align: center;
    vertical-align: middle;
}

/* セル内の画像 */
.scatter-img {
    max-width: 200px;   /* 必要に応じて調整 */
    height: auto;
    display: block;
    margin: 0 auto;
}

table.scatter-table tr.coin10 {
  background-color: #e4f0dc;
}
table.scatter-table tr.coin100 {
  background-color: #f0f8f4;
}
table.scatter-table tr.coin1000 {
  background-color: #f6f9e6;
}



