/* ===== 全体レイアウト ===== */
body {
  font-family: 'Sawarabi Mincho', 'Noto Serif JP', serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #272520, #79775d, #150d00 ); /* 背景色: ここを変える */
  background-attachment: fixed;
  color: #f2d58a;               /* 文字色: ここを変える */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; /* ★ 全体の文字を中央寄せにする */

}

.container {
  display: flex;
  min-height: 100vh;        /* 画面いっぱいに */
}


/* ===== ヘッダー ===== */
header {
  background: rgba(49, 29, 6, 0.85); /* 半透明 */
  backdrop-filter: blur(4px);
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ナビ内リンク。ホバーで光る */
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: 0.2s;
  font-weight: 600;
  background: rgba(255,255,255,0.02);
}

nav a:hover {
  background: var(--accent);
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
}

/* ===== 見出し ===== */

h1 {
  font-family: "Yu Mincho", serif;
  font-size: 2.5rem;
  text-align: center;
  margin: 30px 0 10px 0;
  color: #f2d58a; /* 色 */
  text-shadow: 0 0 6px rgba(255,140,0,0.6);
}

h2 {
  font-family: "Yu Mincho", serif;
  font-size: 1.8rem;
  margin-top: 25px;
  color: #e7d9bb; /* 和風赤 */
}

/* ===== セクションボックス ===== */
section {
  background-color: #241b02; /* 背景色 */
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 0 12px rgba(255,165,0,0.3);
  backdrop-filter: blur(4px);
}

/* ===== 定義(用語？)リスト ===== */

dl {
  margin-left: 1em;
}
dt {
  font-weight: bold;
  color: #dad9ba;
  margin-top: 0.8em;
}
dd {
  margin-left: 1em;
}

footer {
  text-align: center;
  padding: 15px 0;
  margin-top: 30px;
  font-size: 0.9rem;
}

/* スマホ向け（幅600px以下） */
@media screen and (max-width: 600px) {
  body {
    font-size: 14px; /* 文字を少し小さく */
  }
  .container {
    flex-direction: column; /* 横並びを縦並びに変更 */
    gap: 10px;
  }
}

/* タブレット向け（幅900px以下） */
@media screen and (max-width: 900px) {
  .menu {
    font-size: 16px;
  }
}

/* ===== キャラクター選択リスト ===== */
.ideology-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  list-style: none;
  max-width: 100%;
  margin: 0 auto;
}
.ideology-list li {
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid #e7d9bb;
  border-radius: 4px;
  color: #e7d9bb;
  font-size: 14px;
  transition: all 0.2s;
  background: rgba(255,255,255,0.02);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ideology-list li:hover {
  background: rgba(231,217,187,0.1);
}

/* ===== ウィンドウ ===== */
.win {
  position: fixed;
  display: none;
  background: rgba(36,27,2,0.9);
  border: 2px solid #e7d9bb;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(231,217,187,0.4), 0 0 30px rgba(231,217,187,0.2) inset;
  color: #f2d58a;
  font-family: 'Sawarabi Mincho', 'Noto Serif JP', serif;
  padding: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  z-index: 1000;
}

/* タイトルバー */
.win .title-bar {
  font-weight: 600;
  font-size: 16px;
  color: #e7d9bb;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(231,217,187,0.4);
  padding-bottom: 4px;
}

/* 内容 */
.win .content {
  font-size: 15px;
  line-height: 1.4;
  color: #f2d58a;
}

/* ネオン点滅 */
@keyframes historicalGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(231,217,187,0.4), 0 0 30px rgba(231,217,187,0.2) inset; }
  50% { box-shadow: 0 0 16px rgba(231,217,187,0.5), 0 0 40px rgba(231,217,187,0.3) inset; }
}
.win {
  animation: historicalGlow 1.8s infinite alternate;
}

/* プロフィール（履歴書）用スタイル */
.win[data-pos="center"] .content.resume {
  background: transparent;
  color: inherit;
  padding: 10px 6px;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

/* 上段：写真と基本情報 */
.win[data-pos="center"] .content.resume .resume-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.win[data-pos="center"] .content.resume .photo {
  flex: 0 0 140px;
  display: flex;
  align-items: flex-start;
}
.win[data-pos="center"] .content.resume .photo img {
  width: 140px;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(231,217,187,0.1);
  display: block;
}

/* 写真の横に表示する基本情報 */
.win[data-pos="center"] .content.resume .top-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.win[data-pos="center"] .content.resume .name {
  font-size: 22px;
  font-weight: 800;
  color: #f2d58a;
}

.win[data-pos="center"] .content.resume .top-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.win[data-pos="center"] .content.resume .top-table th {
  text-align: left;
  vertical-align: top;
  padding: 4px 8px 4px 0;
  width: 80px;
  color: inherit;
  font-weight: 700;
}
.win[data-pos="center"] .content.resume .top-table td {
  padding: 4px 0;
  color: rgba(242,213,138,0.9);
}

/* 下段：職業・経歴 */
.win[data-pos="center"] .content.resume .resume-bottom {
  border-top: 1px solid rgba(231,217,187,0.2);
  padding-top: 8px;
}

.win[data-pos="center"] .content.resume .bottom-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.win[data-pos="center"] .content.resume .bottom-table th {
  text-align: left;
  vertical-align: top;
  padding: 4px 8px 4px 0;
  width: 80px;
  color: inherit;
  font-weight: 700;
}
.win[data-pos="center"] .content.resume .bottom-table td {
  padding: 4px 0;
  color: rgba(242,213,138,0.9);
}
