body {
  font-family: "Segoe UI", sans-serif;
  background: #1e1e1e;
  color: #fff;
  padding: 20px;
}

/* ===== PW ===== */

.box {
  background: #1e293b;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

button-pw {
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #38bdf8;
  color: black;
  cursor: pointer;
}

input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  width: 200px;
  background: #ffffff;
}

button-pw:hover {
  background: #0ea5e9;
}

#msg {
  color: #f87171;
}

/* ===== 上固定ナビバー ===== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;

  background: rgba(30,30,30,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);

  border-bottom: 1px solid #444;

  z-index: 1000;
}

/* ナビリンク */

.navbar a {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.navbar a:hover {
  color: white;
}



/* 上バー分スペース確保 */

body {
  padding-top: 80px;
}

/* タイトル中央 */

.title{
  text-align:center;
  margin-top:80px;
}

/* ボタンエリア */

.year-buttons{
  display:flex;
  flex-direction:column; 

  align-items:center; /* 真ん中寄せ */

  gap:20px;
  margin-top:40px;
}

/* ボタン */

.year-btn{

  width:220px;

  background:#2b2b2b;
  color:white;

  border:none;

  padding:16px;

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

  border-radius:8px;

  cursor:pointer;

  transition:0.2s;
}

/* マウス乗せたとき */

.year-btn:hover{
  background:#3a3a3a;
}

/* ホバー */

.year-btn:hover{
  background:#2e83cc;
}

/* dropdown */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  color: #ddd;
  font-size: 14px;
  cursor: pointer;
}

/* dropdown-menu */
.dropdown-content {
  position: absolute;
  top: 45px;

  min-width: 200px;

  border-radius: 4px;
  overflow: hidden;

  background: #1e1e1e;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);

  border: 1px solid #444;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition: 0.2s;
}

.dropdown-content.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 中のボタン */
.dropdown-content button {
  width: 100%;
  padding: 14px;

  background: none;
  border: none;

  color: white;
  text-align: left;

  border-bottom: 1px solid #444;
  cursor: pointer;
}

.dropdown-content button:last-child {
  border-bottom: none;
}

.dropdown-content button:hover {
  background: rgba(255,255,255,0.1)
}
  
/* ===== カード全体 ===== */

.os-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}


/* ===== カード ===== */

.os-card {
  padding: 20px;

  background: linear-gradient(#2f2f2f, #262626);

  border: 1px solid #444;
  border-radius: 16px;

  text-align: center;

  box-shadow: 0 6px 15px rgba(0,0,0,0.4);

  transition: 0.25s ease;
}

/* ホバー */

.os-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: #333;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}


/* ===== タイトル ===== */

.os-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}


/* ===== 説明 ===== */

.os-desc {
  font-size: 14px;
  color: #aaa;
}

/* OSのicoの配置 */
.os-icon {
  width: 100px !important;
  height: auto !important;
  margin-top: 12px;

  opacity: 0.9;

  transition: 0.2s;
}

.os-card:hover .os-icon {
  transform: translateY(3px) scale(1.05);
}

/* --------------------------------------------------------------------モード-------------------------------------------------------------------- */

@media (prefers-color-scheme:light) {

/* ===== PW ===== */

 body{
    font-family: "Segoe UI", sans-serif;
    background: #ffffff;
    color: #111;
    padding: 20px;
  }

.box {
  background: #f1f5f9;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  width: 200px;
  background: #ffffff;
}

button-pw {
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #38bdf8;
  cursor: pointer;
}

#msg {
  color: #ef4444;
}
  
/* 検索ボックス */
.search-box {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  padding-left: 40px; /* ← アイコンの分 */
  margin-bottom: 16px;
  font-size: 14px;

  background: #f7f7f7 url("index/search-dark.png") no-repeat 12px center;
  background-size: 18px;

  color: #000000;

  border: 1px solid #bdbdbd;
  border-radius: 6px;
  outline: none;

  box-sizing: border-box;
}


/* ===== 上固定ナビバー ===== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;

  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);

  border-bottom: 1px solid #ffffff;

  z-index: 1000;
}

.navbar img {
  filter: invert(1);
}

/* ナビリンク */

.navbar a {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.navbar a:hover {
  color: black;
}



/* 上バー分スペース確保 */

body {
  padding-top: 80px;
}

/* タイトル中央 */

.title{
  text-align:center;
  margin-top:80px;
}

/* ボタンエリア */

.year-buttons{
  display:flex;
  flex-direction:column; 

  align-items:center; /* 真ん中寄せ */

  gap:20px;
  margin-top:40px;
}

/* ボタン */

.year-btn{

  width:220px;

  background:#f5f5f5;
  color:black;

  border:none;

  padding:16px;

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

  border-radius:8px;

  cursor:pointer;

  transition:0.2s;
}

/* マウス乗せたとき */

.year-btn:hover{
  background:#c4c4c4;
}

/* ホバー */

.year-btn:hover{
  background:#0a8dff;
}

/* dropdown */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  color: #000000;
  font-size: 14px;
  cursor: pointer;
}

/* dropdown-menu */
.dropdown-content {
  position: absolute;
  top: 45px;

  min-width: 200px;

  border-radius: 4px;
  overflow: hidden;

  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);

  border: 1px solid #bdbdbd;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition: 0.2s;
}

.dropdown-content.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 中のボタン */
.dropdown-content button {
  width: 100%;
  padding: 14px;

  background: none;
  border: none;

  color: black;
  text-align: left;

  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
}

.dropdown-content button:last-child {
  border-bottom: none;
}

.dropdown-content button:hover {
  background: rgba(210,210,210,0.1)
}

.os-card {
  background: linear-gradient(#ffffff, #f2f2f2);

  border: 1px solid #ccc;

  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.os-card:hover {
  background: #eaeaea;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
 }

.os-title {
  color: #111;
}

 .os-desc {
   color: #555;
 }
