html {
  scroll-behavior: smooth;
}

body {
  transition: all 0.5s ease;
  font-size: 18px;
  color: rgb(26, 26, 26);
  font-weight: bold;
}

p {
  line-height: 1.5rem;
}

.zen {
  font-family: "Zen Kurenaido", sans-serif;
  font-style: normal;
  font-weight: normal;
}

main {
  position: relative;
  overflow: hidden;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 83, 149, 0.2);
  clip-path: polygon(0 50%, 0% 50%, 100% 70%, 100% 100%, 0 100%);
  z-index: -1;
  pointer-events: none;
}

section {
  margin-bottom: 150px;
}

:root {
  --stripe-path: polygon(0 0%, 100% 0%, 100% 80%, 0% 100%);
}

.hero-content {
  position: relative;
  width: 100%;
  height: 800px;
  background-color: #fff;
  overflow: hidden;
}

.hero-bg,
.hero_img_container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  background: linear-gradient(135deg, #1e4b8a 0%, #3071c5 100%);
  clip-path: var(--stripe-path);
  z-index: 1;
}

.hero-content .text {
  z-index: 3;
  color: #fff;
  position: absolute;
  top: 33%;
  left: 20%;
}

.hero-content .text p {
  font-size: 2rem;
  line-height: 3rem;
  letter-spacing: 5px;
}

.hero-content .text h1 {
  margin-top: 100px;
  font-size: 3rem;
  line-height: 4.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  letter-spacing: 3px;
}

.hero-content .text h1 span {
  font-size: 4rem;
}

.hero_img_container {
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}

.hero_img_container img {
  height: 95%;
  width: auto;
  object-fit: contain;
  margin-right: 21%;
}

.scrolldown {
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background-color: #095395;
  border-radius: 5px;
  padding: 20px 20px 75px;
}

.scrolldown span {
  writing-mode: vertical-rl;
  font-size: 1rem;
  letter-spacing: 2px;
  position: relative;
  color: #fff;
}

.scrolldown span::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 50%;
  width: 2px;
  height: 50px;
  background: #fff;
  animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.main_container {
  width: 96%;
  max-width: 1000px;
  margin: 150px auto
}

.main1 {
  display: flex;
  gap: 60px;
  margin-bottom: 100px;
}

h2 {
  font-size: 2.5rem;
  color: #095395;
  margin-bottom: 40px;
}

h2 span {
  font-size: 1rem;
  display: block;
  margin-top: 10px;
}

.main1 p {
  margin-bottom: 20px;
}

.main1 img {
  width: 50%;
  object-fit: cover;
  align-self: flex-start;
}

.main1 ul {
  margin-left: 30px;
}

.main1 ul li {
  list-style: disc;
  line-height: 1.5rem;
}

.main2 {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 100px;
}

.main2 h2 {
  font-size: 2rem;
  margin-bottom: 50px;
  line-height: 3rem;
}

.main2 h2 span {
  background: linear-gradient(transparent 0%, #095395 0%);
  padding: 0 15px;
  margin-right: 5px;
  font-size: 2rem;
  color: #fff;
  display: inline-block;
}

.card_container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-top: 50px;
}

.card {
  background: #fff;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 1);
  ;
  overflow: hidden;
  position: relative;
}

.card1 {
  margin-top: 120px;
}

.card2 {
  margin-top: 60px;
}

.card3 {
  margin-top: 0px;
}

.card_img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.card_container .text {
  padding: 30px 20px;
  position: relative;
  z-index: 2;
  text-align: left;
}

.card_container .text h3 {
  color: #095395;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.card_container .text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.bg_number {
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 8rem;
  color: rgba(149, 137, 41, 0.2);
  z-index: 1;
  line-height: 1;
  pointer-events: none;
}

section.news {
  background-color: #eeeeee;
  max-width: 100%;
  padding: 50px 0;
}

section.news h2 {
  text-align: center;
}

.news ul {
  background-color: #fff;
  text-align: left;
  list-style: none;
  max-width: 80%;
  margin: 0 auto;
}

.news li {
  padding: 30px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 30px;
}

.news li:last-child {
  border-bottom: none;
}

.news time {
  color: #095395;
  min-width: 100px;
  width: 30%;
  text-align: right;
}

.news_text {
  color: #333;
}

section.map {
  width: 100%;
  margin: 0;
  background-color: #095395;
  color: #fff;
}

section.map .main1 {
  margin: 0;
  min-height: 450px;
}

section.map .left {
  width: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  min-height: 450px;
}

section.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

section.map h2 {
  color: #fff;
}

section.map .right {
  padding: 50px;
}

section.map ul {
  margin: 0;
}

section.map li {
  list-style: none;
  padding-bottom: 50px;
  font-weight: normal;
}

section.map li span {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;

}

footer {
  background-color: #095395;
  color: #fff;
  font-weight: normal;
  font-size: 1rem;
  text-align: center;
  padding: 20px;
}



/* ハンバーガー */
.hamburger {
  position: fixed;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  cursor: pointer;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hamburger::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #F9E6C2;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  transition: 0.3s;
  z-index: -1;
}

.hamburger .inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 15px;
  margin-right: 15px;
  z-index: 101;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background: #343434;
  transition: 0.3s;
  display: block;
}

.hamburger:hover span {
  background: #F9E6C2;
}

.hamburger:hover::before {
  background: #343434;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 25%;
  height: 100vh;
  background: #343434;
  transition: 0.5s;
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu.active {
  right: 0;
}

.nav-menu ul li {
  margin: 40px 0;
  text-align: left;
}

.nav-menu ul li a {
  color: #fff;
  font-size: 2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
  color: #F9E6C2;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* TOPボタン */
.page-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #343434;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transform: translateY(100px);
  transition: 0.3s;
}

.page-top:hover {
  background-color: #F9E6C2;
  color: #343434;
}

.page-top.is-show {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 1500px) {
  .hero_img_container img {
    margin-right: 2%;
    max-width: 90%;
  }

  .hero-content .text {
    left: 3%;
  }

}

@media screen and (max-width: 1000px) {

  .hero-content .text p,
  .hero-content .text h1 {
    background: linear-gradient(transparent 0%, #1e4b8a 0%);
    display: inline-block;
    padding: 10px;
    margin-top: 50px;
  }
}

.hero-content .text {
  top: 26%;
}

@media screen and (max-width: 800px) {
  .hero-content {
    height: 550px;
  }

  .hero-content .text {
    top: 45%;
  }

  .hero_img_container img {
    margin-right: 2%;
    max-width: 85%;
    height: 93%;
  }

  .hero-content .text p {
    font-size: 1rem;
    line-height: 2rem;
    letter-spacing: 2px;
    display: block;
  }

  .hero-content .text h1 {
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: 3px;
    margin-top: 0;
  }

  .hero-content .text h1 span {
    font-size: 2rem;
  }



  .main1 {
    display: block;
  }

  .main1 img {
    width: 100%;
  }

  .main1 img.left {
    margin-bottom: 40px;
  }

  .card_container {
    display: block;
  }

  .card {
    width: 80%;
    margin: 60px auto 0;
  }

  section.map .left {
    width: 96%;
    margin: auto;
  }

  section.map iframe {
    margin-top: 40px;
  }

  section.map .right {
    width: 93%;
    margin: 30px auto 0;
    padding: 0;
  }

  .scrolldown {
    display: none;
  }

}