body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #d0e4f2; /* Softer blue background */
    color: #2c3e50; /* Dark grayish blue text */
}

header {
    background-color: #4a90e2; /* Muted blue header */
    color: white;
    text-align: center;
    padding: 1rem;
}

main {
    margin: 2rem;
    text-align: center;
}

.container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    margin: auto;
}

.txtlike {
    border: none;
    outline: none;
    background: transparent;
    font-size: inherit;
    color: inherit;
    cursor: text;
}


/* マウスオーバー時に表示する説明 */
.tooltip {
    position: relative;
    cursor: pointer;
}

/* Tooltip design */
.tooltip::after {
  content: attr(data-tooltip);
  visibility: hidden;
  background-color: #1565c0;
  color: #e3f2fd;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* Show tooltip on tap (focus) or hover */
.tooltip:focus::after,
.tooltip:active::after,
.tooltip:hover::after {
  visibility: visible;
  opacity: 1;
}

/* プレイスホルダーのサンプル文字色 */
::placeholder {
    color: #d3d3d3; /* Light gray color */
}

/* ソートマーク ▲▼ */
.sort-mark {
display: inline-flex;
flex-direction: column;
align-items: center;
font-size: 12px; /* Adjust size as needed */
}

.arrow {
    /* display: block; */
    background-color: transparent; /* Fully transparent background */
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    margin: 2px 0; /* Add spacing between arrows */
}

.arrow.ASC {
    border-bottom: 7px solid #1e90ff;
}
.arrow.DESC {
    border-top: 7px solid #1e90ff;
}

/* マウスオーバーでポインタ表示 */
th.clickable {
cursor: pointer; /* Changes the cursor to a hand (pointer) when hovered */
}
  
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-size: 0.9rem;
}

th, td {
    padding: 0.4rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #2c5b89;
    color: white;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #e8f0fc;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

tr:hover {
    background-color: #c8d9e8;
}

tr.hist {
    background-color: lightgrey; /* 過去リストデータは行色グレー */
}

.sfont {
    padding: 0.1rem;
    font-size: 0.9rem;
}

/* ヘッダ固定 */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 10; /* Adjust z-index to layer it properly */
  background-color: white; /* Optional, to avoid transparency issues */
}

button {
    background-color: #4a7aa8;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2c5b89;
}

button.btnon {
    background-color: #2c5b89;
}

.link1 {
    color: #3b6ea5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link1:hover {
    color: #1f4c7b;
    font-weight: bold;
    text-decoration: underline;
}

.link2 {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.link2:hover {
    color: #000000;
    font-weight: bold;
    text-decoration: underline;
}


/* ここからサイトトップイメージ */
.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;             /* 60% of the viewport height */
    max-height: 380px;
    overflow: hidden;
}

/* Hero Image Styling */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* Ensures image covers the container without distortion */
    display: block;
}

/* Hero Text Overlay Styling */
.hero-text {
    position: absolute;
    top: 60%;
    left: 50%;
    right: -40%;
    transform: translate(-50%, -50%);
    color: #f7f9fc;
    /* font-family: 'Noto Serif', serif; */
    font-family: 'Arial', sans-serif;
    padding: 10px 20px;
    border-radius: 5px;
}

.hero-text h1 {
    font-size: 2.5rem;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 6px rgba(0, 64, 0, 0.8); 
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
    /* white-space: nowrap; */
}

.hero-text p {
    /* font-size: 1.2rem; */
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    margin: 10px 0 20px 0;
    background: rgba(58, 110, 165, 0.7);
    text-shadow: 1px 1px 3px rgba(0, 0, 64, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
}

/* ここまでサイトトップイメージ */


/* フィルターアイコン */
.filter-icon {
    width: 15px;
    height: 15px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

/* Funnel top (wider part) */
.filter-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: #FFFF00; /* Normal Yellow */
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transition: background 0.2s ease-in-out;
}

/* Funnel bottom (narrower part) */
.filter-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 40%;
    width: 20%;
    height: 35%;
    background: #FFFF00; /* Normal Yellow */
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    transition: background 0.2s ease-in-out;
}

/* Hover effect */
.filter-icon:hover {
    transform: scale(1.5); /* Increase size */
    filter: drop-shadow(0px 0px 5px #FFD700); /* Add glow effect */
}

.filter-icon:hover::before,
.filter-icon:hover::after {
    background: #FFD700; /* Strong Yellow */
}


.hidden {
    display: none;
}

/* Resetting margin, padding, and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ここからモバイルデザイン */
@media (max-width: 1080px) {
    body {
        margin: 0;
        padding: 0;
    }
    
    header {
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    main {
        margin: 0;
    }
    
    .container {
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    table {
        width: 100%;
    }
    
    th, td {
        padding: 0.3rem;
        font-size: 0.9rem;
    }
    .hero-section {
        width: 100%;
        height: 60vh;
    }
    .hero-text {
        top: 50%;
        left: 50%;
        right: -50%;
        padding: 0px 0px;
    }
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .tooltip::after {
      text-align: left; /* Aligns text to the left */
      width: auto;
      left: 0;
      transform: none;
    }

}



