body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ヘッダー */
.site-header {
  background: linear-gradient(-45deg, #004098, #2b6fc4, #004098, #2b6fc4);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
}
.site-header a {
  text-decoration: none;
  color: inherit;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  height: 60px;
}

.logo-area {
  display: flex;
  align-items: center;
}

.party-logo {
  height: 50px;
  margin-right: 0.8rem;
}

.site-title {
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  font-weight: bold;
  color: white;
  margin-left: 0.5rem;
}

@media (max-width: 1000px) {
  .site-title {
    display: none;
  }
}

/* ナビゲーション */
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* ハンバーガー */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

#hamburger span {
  background: white;
  height: 3px;
  border-radius: 2px;
  transition: 0.4s;
}

#hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#hamburger.active span:nth-child(2) {
  opacity: 0;
}
#hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* モバイル対応 */
@media (max-width: 768px) {
  #hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #004098;
    width: 200px;
    flex-direction: column;
    padding: 1rem;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .party-logo {
    height: 45px;
  }

  .site-title {
    font-size: 1rem;
  }
}

/* メインコンテンツ */
.policy-page {
  padding: 80px 1rem 2rem; /* ヘッダー分の余白を追加 */
  max-width: 1200px;
  margin: auto;
}

.center-text {
  text-align: center;
}

.tiles-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.tile {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
}

.tile h2 {
  font-size: 1.4rem;
  color: #003366;
  margin: 0.5rem 0;
}

.tile p {
  font-size: 1rem;
  line-height: 1.6;
}

.tile a {
  display: inline-block;
  margin-top: 1rem;
  background-color: #004089;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.policylogo {
  width: 80%;
  max-width: 250px;
  margin: 1rem auto;
  display: block;
}

.highlighted-policies h2,
.policy-pdf h2 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 1rem;
  text-align: center;
}

/* PDF */
.pdf-container {
  margin-top: 2rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ========== Footer ========== */
.site-footer {
  background: #004098;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

.footer-links {
  margin-bottom: 1rem;
}
.site-footer a {
  color: white;
  text-decoration: none;
}
.footer-links a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
}

/* モーダルスタイル */
/* モーダル本体 */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  position: relative;
  box-sizing: border-box;
}

/* 閉じるボタン */
.modal-close {
  color: #aaa;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover {
  color: #000;
}

/* タイトルなど */
.modal h2 {
  font-size: 1.4rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.modal h3 {
  font-size: 1.2rem;
  color: #004089;
  margin-bottom: 0.5rem;
}

.modal p {
  font-size: 1rem;
  line-height: 1.6;
}

/* 画像 */
.modal-image {
  max-width: 50%;
  height: auto;
  display: block;
  margin: auto;
  margin-top: 1rem;
  border-radius: 8px;
}

/* スマホ画面対応 */
@media (max-width: 480px) {
  .modal-content {
    padding: 1.2rem;
    margin: 10% auto;
    width: 95%;
  }

  .modal h2 {
    font-size: 1.2rem;
  }

  .modal h3 {
    font-size: 1rem;
  }

  .modal p {
    font-size: 0.95rem;
  }
  .highlighted-policies h2 {
    font-size:large;
    color: #000; 
  }
  .policy-pdf h2{
    font-size: large;
  }
  .site-footer a,
  .site-footer p {
    color: white;
    text-decoration: none;
    font-size: small;
  }

  .policy-page p {
    color: black;
  
  }   
}
