/* 全体共通レイアウト */

body {
    font-family: "Hiragino Sans", "Meiryo", sans-serif;
    background-color: #f9fbff;
    color: #333;
    margin: 0;
    padding: 1rem;
    line-height: 1.6;
}

/* コンテナ */
.container {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    /*border: 1px solid #f00;*/
}

img {
  display: block;
}

/* コピーライト */
.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
}

/* ページ下部のお知らせ */
.privacy-note {
  margin-top: 1.6rem;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #666;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.privacy-note strong {
  font-weight: bold;
  color: #4c70c9;
}

/* 動画：使い方ガイド */
.video-container {
	position: relative;
	width: 100%;
	/*max-width: 800px;*/ /* 横幅を最大800pxに制限 */
	aspect-ratio: 16 / 9; /* 16:9の縦横比を強制 */
	margin: 0 auto; /* 中央揃え */
	overflow: hidden;
}
  
.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 12px;
}

/* ボタンのボックス */
.button-grid {
  display: grid;
  gap: 1rem;
}

/* PC：横2つずつ（2列×2行） */
@media screen and (min-width: 768px) {
  .button-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ：縦1列（4行） */
@media screen and (max-width: 767px) {
  .button-grid {
    grid-template-columns: 1fr;
  }
}

/* form */
.top-form {
  width: 100%;
}

/* ボタン */
.top-form button {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  background-color: #5d84d1;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* ボタンのホバー状態 */
.top-form button:hover {
  background-color: #0056b3;
}

/* トースト */
#toast {
    visibility: hidden;
    min-width: 100px;
    background-color: rgba(213, 76, 141, 1); /* 優しい赤系＋透明 */
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 10px 20px 6px 20px;
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    font-size: 16px;
    font-weight: bold;
    /* opacity: 0.1; */
    /*transition: opacity 0.5s, visibility 0.5s;*/
    /*box-shadow: 0 0 10px rgba(255, 100, 100, 0.6);*/ /* ほんのり影もつける */
}

#toast.show {
    visibility: visible;
    opacity: 1;
}

/* テーブルの外枠 */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* テーブル全体 */

table {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0 auto;
}

th {
  padding: 4px;
  border: 1px solid #ccc;
  white-space: nowrap;
  text-align: center;
  font-size: 0.85rem;
  background-color: #ebe7e2;

}

td {
  padding: 6px;
  border: 1px solid #ccc;
  white-space: nowrap;
  text-align: center;
  font-size: 1rem;
  background-color: #FFFCF6;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* スマホ対応 */

@media screen and (max-width: 768px) {

  table {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    display: block;
  }
}


.btn {
  font-size: 14px;
  padding: 8px 12px;
}

.deficit {
  color: #d54c8d;
  font-weight: bold;
}

.cell_left {
  text-align: left;
}

.cell_right {
  text-align: right;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"] {
  font-size: 2rem;
  padding: 0.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom:1rem;
}

/* iOS対策：dateのみ個別に設定 */
input[type="date"] {
  font-size: 2rem;
  width: 70%;
  max-width: 70%;
  height: 47px;
  max-height: 47px;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  padding: 0.2rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.top-form .submit {
  background-color:#d54c8d;
  margin-bottom:1rem;
}

h1 {
    color: #005bac;
    margin-top: 0;
    margin-bottom:1rem;
    /*border:1px solid #f00;*/
    text-align:center;
    width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

/* 見出し */
h2 {
    color: #005bac;
    margin-top: 0;
    text-align: center;
    width: 100%;
    font-size: 1.1rem;
    font-weight: bold;
}

h3 {
  text-align: center;
  margin-bottom: 1rem;
}

h4 {
   text-align: center;
   font-size: 1.3rem;
   font-weight: bold;
   color: #d54c8d;
}

h5 {
    color: #005bac;
    margin-top: 0;
    margin-bottom:1rem;
    /*border:1px solid #f00;*/
    text-align:center;
    width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

h6 {
    color: #005bac;
    margin-top: 0;
    width: 100%;
    font-size: 1.1rem;
    font-weight: bold;
}

/* テーブル内のフォーム調整（余白を減らす） */
.table_form {
    display: inline-block;
    margin: 0;
}
  
/* 小さめでかわいいボタン */
.small-button {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    background-color: #5d84d1;
    color: white;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
  
.small-button:hover {
    background-color: #0056b3;
}

.header_img {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: block;
}

/* lib_option.php対応
.container ol {
  list-style: decimal;
  margin-left: 2rem;
}

.container ol li {
  margin-bottom: 1rem;

}

.container ol li strong {
  font-size: 1.2rem;
  font-weight: bold;
  color: #005bac;
}

.container ol li .answer {
  border: 1px solid #ccc;
  margin: 1rem 0 0 -2rem;
  border-radius: 12px;
  padding: 1rem;
  background: rgba(7, 16, 33, 0.6);
  font-size: 1.1rem;
  color: #fff;
}
*/

/* lib_option.php対応
.accordion {
  display: none;
  overflow-x: auto;
  margin-top: 1rem;
}

.accordion-button {
  word-break:keep-all;
}

.accordion-button:hover {
  color:#ccc;
}

.accordion-content {
  display: none;
  margin-top: 1.6rem;
  border-radius: 12px;
  max-width: 720px;
}

.accordion-content h2 {
   text-align: center;
   margin-bottom: 0.5rem;
   color:#005bac;
}

.accordion-content p {
   margin: 0 1rem 0 1rem;
}

.accordion-content .table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem 1rem 1rem;
}

.accordion-content table th {
    width: 50%;
}
*/
/* lib_option.php対応
@media screen and (max-width: 768px) {

  .container ol li .answer {
    margin: 1rem 0 0 -2rem;
  }

  .accordion-content .table-container {
    padding: 0 0 1rem 0;
  }
}
*/

.text_center {
  text-align: center;
}

.text-link {
  word-break:keep-all;
  color:#5d84d1;
  text-decoration: underline;
}

.text-link:hover {
  color:#0056b3;
}

.eyecatch {
  float: right;
  margin-left: 10px;
  width: 50%;
  /*margin-bottom: 10px;*/
  border-radius: 8px;
}

/* lib_option.php対応
@media screen and (max-width: 768px) {

  .eyecatch {
    width: 100%;
    margin-bottom: 1rem;
  }
}


.answer::after {
  content: "";
  display: block;
  clear: both;
}


.law {
  display: none;
  overflow-x: auto;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  background: #f9f9f9;
}

.law h2 {
  text-align: left;
}

.law ol {
  margin-left: 0;
}

.law p, .law li, .law table th, .law table td {
  font-size: 0.85rem;
}

.law table th {
  width: 30%;
  font-size: 0.85rem;
}

.law table td {
  width: 70%;
  text-align: left;
  font-size: 0.85rem;
}

.law table td a {
  word-break:keep-all;
  color:#5d84d1;
  text-decoration: none;
}

.law table td a:hover {
  color:#0056b3;
}
*/
/* lib_option.php対応
@media screen and (max-width: 768px) {

  .law table {
    width: 100%;
    overflow-x: auto;
    display: block;
    font-size: 0.85rem !important;
  }

  .law table th {
    width: 30%;
    font-size: 0.85rem !important;
  }

  .law table td {
    width: 70%;
    font-size: 0.85rem !important;
  }
}
*/

.container p a {
  word-break:keep-all;
  color:#5d84d1;
  text-decoration: none;
}

.container p a:hover {
  color:#0056b3;
}

.table-scroll-wrapper {
  max-height: 500px;
  overflow-y: auto;
  border: 0px solid #ccc;
  margin: 0 auto;
  padding: 0;
  scroll-behavior: smooth;

}
/* テーブルのヘッダー固定（上部） */
.table-scroll-wrapper th {
    position: sticky;
    top: 0;
    background-color: #ebe7e2; /* 元の背景色を指定 */
    z-index: 2;
}

.highlight-today {
    background-color: #f7ffe0;
    border-top: 2px solid #66bb6a;
    border-bottom: 2px solid #66bb6a;
}

.tr-checked {
    opacity: 0.5;
    background-color: #e0f7e0 !important;
    text-decoration: line-through;
    color: #888;
}

.tr-checked td {
    background: none;
}

.closest-future-highlight {
    border-top: 2px solid #66bb6a;
}

.negative {
    color: #d54c8d;
    font-weight: bold;
    /*background-color: #fff0f5;*/ /* 例：ピンク背景 */
}

/* ヘッダー繰り返し行：PCでは非表示 */
@media screen and (min-width: 769px) {
  .header-repeat {
    display: none;
  }
}

/* スマホでは表示 */
@media screen and (max-width: 768px) {
  .header-repeat {
    display: table-row;
    background-color: #ebe7e2;
  }
}

.text_list {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 0;
}

.text_list th {
  color: #000;
  width: 50%;
}

.text_list td {
  color: #000;
  width: 50%;
}

/* スマホでは表示 */
@media screen and (max-width: 768px) {
  .text_list {
    overflow-x: visible;
    display: table;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0;
  }

  .text_list th {
    color: #333;
    width: 50%;
  }

  .text_list td {
    color: #333;
    width: 50%;
  }
}

.button_box {
  width: 100%;
  margin-bottom: 1rem;
  text-align: right;
  overflow: hidden;
}

.help_button {
  float: right;
}









