.header {
  position: fixed;
  width: 100%;
  top: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fcfcfc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding-top: 5px;
  padding-bottom: 5px;
  z-index: 999;
  opacity: 0.98 ;
}

#menuToggle {
  display: none;
}

body {
  padding-top: 110px;
  font-family: "Noto Serif JP", serif;
  margin: 0;
}

.name {
  display: flex;
  align-items: center;
  gap: 20px;
}

.name img {
  height: 110px;
  width: auto;
  object-fit: cover;
}

.name-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.name-text p {
  margin: 0;
  line-height: 1.0;
}

.name-text p:first-child {
  font-size: 22px;
}

.name-text p:not(:first-child) {
  position: relative;
  left: 12px;
}

.name-text p:nth-child(2) {
  font-size: 35px;
}

.name-text p:nth-child(3) {
  position: relative;
  left: 60px;
  font-size: 16px;
}

.menu {
  display: flex;
  gap: 15px;
  font-size: 20px;
  font-weight: 400;
  margin-right: 100px;
}

.menu a, #supporter {
  color: rgb(10, 10, 10);
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

.menu a::after, #supporter::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #b4cee6;
  transition: width 0.3s ease;
}

.menu a:hover, #supporter:hover {
  color: #333;
}

.menu a:hover::after, #supporter:hover::after {
  width: 100%;
}

.party-link-logo {
  width: 100px;
}

.line-link-logo {
  width: 40px;
  margin-top: -5px;
}

.main-img {
  margin-top: 1.5%;
  width: 100%;
}

.title-back{
  width: 100%;
  text-align: center;
}

.title {
  position: relative;
  display: inline-block;
  text-align: center;
  font-size: 60px;
  color: #333;
  padding: 10px 0;
  margin: 0 auto;
}

.title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 4px;
  width: 100% ;
  background-color: #0056b3;
  opacity: 0.7;
  transform: translateX(-50%);
  margin-top: -10px;
}

.policy, .voice {
  position: relative;
  background-color: #eff8fe;
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.policy h2, .voice h2 {
  background-color: #0056b3;
  color: rgb(242, 240, 240);
  font-size: 30px;
  padding: 10px 50px 10px 20px;
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0%, 90% 100%, 0% 100%);
  margin: -20px 0 20px -20px;
}

.policy div, .voice div, .profile div, .achievements div {
  padding: 3px;
  font-size: 20px;
}

.profile-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: #f4f4f4;
  padding: 20px;
  margin-top: 20px;
}

.profile-img {
  width: 300px;
}

.profile-text{
  width: 50%;
  padding: 20px;
}

.profile-name{
  font-size: 30px;
  margin-left: -10%;
}

.history{
  margin-left: -100px;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.address {
  margin-left: 3%;
}

.party-logo {
  width: 100px;
  height: auto;
  margin-left:50%;
}

.achievements-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 1%;
  padding: 0 20px;
  justify-content: space-between;
}

.achievements {
  flex: 0 1 calc(50% - 40px);
  box-sizing: border-box;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  text-align: center;
}

.achievements h3 {
  text-align: center;
  font-size: 26px;
  text-decoration: underline;
}

.achievements:nth-child(odd) {
  margin-left: auto;
}

.achievements:nth-child(even) {
  margin-right: auto;
}

.advertisement-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.advertisement-container {
  overflow: hidden;
  width: 80%;
}

.advertisement {
  display: flex;
  transition: transform 0.3s ease;
  width: max-content;
}

.advertisement-thumbnail {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
}

.advertisement-thumbnail img {
  width: 395px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.advertisement-thumbnail img:hover {
  transform: scale(1.05);
}

.hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  white-space: nowrap;
}

.advertisement-thumbnail:hover .hover-text {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.carousel-button {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#prev {
  left: 0;
  margin-left: 5%;
  display: none;
}

#next {
  right: 0;
  margin-right: 5%;
}
