h6 {
    font-size: 16px;
    padding: 0.5rem 0.6rem;
    border-left: 4px solid #0000aa;
    margin: 20px 0;
}

/*ページ内リンク関係*/
.link-contents{
  display: flex;
  flex-direction: row;
  margin-top: 20px;
}
.page-link-button{
  font-size: 18px;
  color: #fff !important;
  border: solid #fff 1px;
  border-radius: 10px;
  padding: 10px 20px;
  text-align: center;
  margin: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.page-link-button:hover{
  transform: translateY(-2px);
  opacity: 0.8;
}

.t-nagare{
    background-color: #eef6ff;
    padding: 15px;
    border-radius: 8px;
    margin: 1% 0;
}

.t-nagare li{
  margin: 8px 0;
}
.t-form {
    display: inline-block;
    background-color: #0078d7;
    color: #fff !important;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.t-form:hover{
  background-color: #3a96e0;
  transform: translateY(-2px);
}

.uke-nagare{
  margin-top: 2em;
}

.uke-nagare img{
  width: 100%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.uke-nagare img:hover{
  opacity:0.8;
} 

input[type="text"] {
  padding: 8px;
  width: clamp(30%, 60%, 60%);
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 8px 8px;
  font-size: clamp(12px, 1.3vw, 16px);
  margin-left: 8px;
  width: clamp(56px, 13%, 13%);
  cursor: pointer;
  border: none;
  background: #3b82f6;
  color: white;
  border-radius: 4px;
  transition: background 0.3s;
}

button:hover {
  background: #2563eb;
}

.print-link-area {
  margin-top:12px;
  margin-bottom:35px;
}
.print-link {
  padding: 8px 8px;
  font-size: clamp(12px, 1.3vw, 16px);
  width: clamp(56px, 13%, 13%);
  cursor: pointer;
  border: none;
  background: #ec2e2e;
  color: white !important;
  border-radius: 4px;
  transition: background 0.3s;
}
.print-link:hover {
  background: #c22626;
}

/*divのテーブルコンテナ。スクロール機能等*/
   .table-container{
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100%;
    max-height: 380px;
    border:1px solid #c5c5c5
   }

#result-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-size:14px
}

#result-table th,
#result-table td {
  padding: 12px;
}

#result-table th {
  background-color: #F4FFDF;
}

.hidden-table {
  max-height: 0;
  opacity: 0;
  transform: translateY(-20px);
  transition: max-height 0.6s ease, opacity 0.5s ease, transform 0.4s ease;
  overflow: hidden;
}

.visible-table {
  max-height: 380px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.6s ease, opacity 0.4s ease;
}

/* スピナー */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 0.8s linear infinite;
  margin: 10px auto;
}

.hidden {
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#message-area {
  transition: opacity 0.4s ease;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}

#result-count {
  font-weight: bold;
  font-size: 16px;
  color: #1e3a8a; /* 深めの青 */
  margin: 0px;
  margin-top: 10px;

}

/*テーブル関係のスタイル*/
.table-container td{
  vertical-align: top;
}

.table-container th{
  vertical-align: middle;
}

/* テーブル固定に関して適用するクラス　*/
/* テーブル1列目の固定 */
    .col-1st {
      position: sticky;
      left: -1px; /* 左端から後ろの文字が見えるのを回避 */
      z-index: 3;
      background: white;
      border-left: 2px solid #f3f3f3;
    }

   /* 1列目の枠線 */
   .col-1st::before {
    content: "";
    display: block;
    position: absolute;
    top: -1px;
    left: 0px;
    height: 100%;
    width: 100%;
    border-bottom: 1px solid #c5c5c5;
    z-index: 5;
    }

  /* テーブル2列目の固定 */
    .col-2nd {
      position: sticky;
      left: -1px; /* 左端から後ろの文字が見えるのを回避 */
      z-index: 3;
      background: white;
    }

    /* 2列目の枠線 */
   .col-2nd::before {
    content: "";
    display: block;
    position: absolute;
    top: -1px;
    left: 0px;
    height: 100%;
    width: 100%;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #c5c5c5;
    z-index: 5;
    }

  /* テーブル3列目の固定 */
    .col-3rd {
      position: sticky;
      left: -1px; /* 左端から後ろの文字が見えるのを回避 */
      z-index: 3;
      background: white;
    }

    /* 3列目の枠線 */
   .col-3rd::before {
    content: "";
    display: block;
    position: absolute;
    top: -1px;
    left: 0px;
    height: 100%;
    width: 100%;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #c5c5c5;
    z-index: 5;
    }

    /* テーブル4列目の固定 */
    .col-4th {
      position: sticky;
      left: -1px; /* 左の枠線が太くなるので、1px外側にはみ出させる */
      z-index: 3;
      background: white;
    }

    /* 4列目の枠線 */
   .col-4th::before {
    content: "";
    display: block;
    position: absolute;
    top: -1px;
    left: 0px;
    height: 100%;
    width: 100%;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #c5c5c5;
    z-index: 5;
    }

    /* 右側に仕切り線を入れる */
    .col-4th::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0px;
      height: 100%;
      width: 2px;
      background-color: #ddeebb; 
      z-index: 5;
    }

    /* １行目の固定 */
    .row-1st {
      position: sticky;
      top: 0;
      border-top:none;
      background-color: white;
      text-align: center;
      vertical-align: middle;
      z-index: 4;
    }

    .row-1st::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-bottom: 1px solid  #c5c5c5;
      border-left: 1px solid #eee;
    }

    /* １行１列目のみのスタイル */
    .colrow-1st {
      position: sticky;
      top: 0;
      left:-1px;
      text-align: center;
      background-color: white;
    }

    .colrow-1st::before {
      content: "";
      display:block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-bottom: 1px solid  #c5c5c5;
      z-index:5;
    }

    /* １行目５列目のみのスタイル */
    .row-1st_col-5 {
      position: sticky;
      top: 0;
      left:0px;
      text-align: center;
      background-color: white;
      z-index: 4;
    }

    .row-1st_col-5::before {
      content: "";
      display:block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-bottom: 1px solid  #c5c5c5;
      z-index:5;
    }

    /* 上記以外の一般のセルのスタイル */
    .cell-boder {
      position: sticky;
      z-index: 1;
    }

    .cell-boder::before {
      content: "";
      display: block;
      position: absolute;
      top: -1px;
      left: 1px;
      width: 100%;
      height: 100%;
      border-bottom: 1px solid #c5c5c5;
      border-right: 1px solid #eee;
    }

  /*新着5件の表示スタイル*/
    .recent-proposals-wrapper {
      overflow-x: auto;
      width: 100%;
    }

    .recent-proposals-table {
      width: 100%;
      border-collapse: collapse;
      border: 1px solid #c5c5c5;
      min-width: 400px; /* 横幅足りないときにスクロール */
      margin-top: 1em;
    }

    .recent-proposals-table th,
    .recent-proposals-table td {
      border: 1px solid #c5c5c5;
      padding: 8px;
      font-size: 16px;
    }

    .recent-proposals-table th {
      background-color: #F4FFDF;
      text-align: center;
    }

    .recent-proposals-table td:first-child {
      width: 150px;
    }

    .recent-proposals-note {
      margin-top: 1em;
      font-size: 14px;
    }

    /* ▼ スマホ用に微調整 */
    @media screen and (max-width: 600px) {
      .recent-proposals-table th,
      .recent-proposals-table td {
        padding: 6px;
        font-size: 14px;
      }

      .recent-proposals-note {
        font-size: 13px;
      }
    }

    
.scroll-hint {
  position: absolute;
  top: 120px;
  left: 80px;
  padding: 10px;
  pointer-events: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  transition: opacity 0.5s ease;
  z-index: 10;
}

.scroll-hint img {
  max-width: 150px;
  opacity: 0.8;
}

.t-notes{
  background-color: #e9e9e9;
  padding: 10px 10px 0px;
  border: solid #eaeaea 1px;
  width: 96%;
  margin: auto;
}