a {
  transition: all 0.3s;
}
a:hover {
  opacity: 0.8;
  color: green;
}

.wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: #444;
  font-size: 18px;
  font-weight: 500;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 24px;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  filter: blur(10);
  background: rgba(255, 255, 255, 0.9);
  z-index: 10;
}
.logo img {
  max-width: 320px;
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu ul {
  display: flex;
  align-items: center;
}
.menu li {
  margin-left: 20px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 1px;
}

.active {
  color: #008000;
}

.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mr-2 {
  margin-right: 30px;
}
.mr-4 {
  margin-right: 40px;
}
.pt-0 {
  padding-top: 0 !important;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.nowrap {
  white-space: nowrap;
}

.link_arrow {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  color: #4ba7da;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  padding-right: 48px; /* 矢印分の余白 */
}

.link_arrow::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #65bfe2;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background-color 0.3s;
}

.link_arrow:hover::after {
  transform: translateY(-50%) translateX(3px);
  background-color: #67caff;
}

.link_btn {
  position: relative;
  background-color: #4db1e6;
  color: #fff;
  padding: 10px 50px 10px 24px;
  border-radius: 40px;
  font-size: 17px;
  font-weight: bold;
}
.link_btn::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #67caff;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background-color 0.3s;
}
.link_btn:hover {
  color: #fff;
}
.link_btn:hover::after {
  transform: translateY(-50%) translateX(3px);
  background-color: #67caff;
}

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

.link_btn_dl {
  padding: 16px 32px;
  background-color: #6cb92a;
  color: #fff;
  font-weight: 600;
  font-size: 24px;
  border-radius: 50px;
}

/*=title=*/
.ttl {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1;
}

/*=front split=*/
.split {
  max-width: 1200px;
  margin: 40px auto 80px auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.split_item {
  flex: 1;
}

.split_reverse {
  flex-direction: row-reverse;
}

.image_radius {
  border-radius: 32px;
}

.image_radius_top-r {
  border-top-right-radius: 10px;
}

/*==Footer==================================*/
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  width: 100%;
  margin-top: auto;
  color: #444;
  /* まずフォールバック（pngなど） */
  background-image: url('../img/bg-footer.png');

  /* その後 image-set を上書き（対応ブラウザのみ使われる） */
  background-image: image-set(
    url('../img/bg-footer.webp') type('image/webp'),
    url('../img/bg-footer.png') type('image/png')
  );

  /* Safari 用プレフィックス（必要なら） */
  background-image: -webkit-image-set(
    url('../img/bg-footer.webp') type('image/webp'),
    url('../img/bg-footer.png') type('image/png')
  );
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100%;
  height: 55vh;
}

.footer_inner {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1024px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  padding: 80px 24px 24px 24px;
}

.copy {
  width: 100%;
  text-align: center;
  padding-bottom: 16px;
  font-size: 14px;
}

@media screen and (max-width: 1200px) {
  .menu li {
    margin-left: 16px;
    font-size: 18px;
  }
}

@media screen and (max-width: 1080px) {
  header {
    padding: 10px 16px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }
  .logo img {
    max-width: 220px;
  }
  .hamburger {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 17px;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* 開いたときにアニメーションさせる */
  .menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
  }

  .menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
  }

  /* メニュー開閉 */
  .menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    padding: 40px 20px;
    z-index: 15;
  }

  .menu-toggle:checked ~ .menu {
    transform: translateX(0);
  }

  .menu ul {
    flex-direction: column;
    margin-top: 60px;
    align-items: flex-start;
    gap: 24px;
  }

  .split {
    flex-direction: column;
    gap: 32px;
    padding: 0 16px;
  }
  .split_item.text {
    order: 2;
  }
  .split_item.image {
    order: 1;
  }

  .link_btn_dl {
    padding: 16px 20px;
    font-size: 18px;
  }

  footer {
    height: 360px;
  }

  .footer_inner {
    padding: 80px 16px 12px 16px;
    gap: 24px;
    font-size: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- 共通（PC用） --- */
.has-submenu {
  position: relative;
}

.has-submenu .submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.has-submenu .submenu li {
  margin-left: 0;
}

.has-submenu:hover .submenu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  min-width: 160px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 8px 16px;
}

.has-submenu .submenu li a {
  display: block;
  padding: 8px 0;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.has-submenu .submenu li a:hover {
  color: #008000;
}

/* --- スマホ・タブレット用（1080px以下） --- */
@media screen and (max-width: 1080px) {
  .has-submenu .submenu {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 1em;
  }

  .has-submenu .submenu li a {
    padding: 8px 0;
  }
  .has-submenu:hover .submenu {
    /* hover時でも何も変化しないように上書き */
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

@media screen and (max-width: 640px) {
  .split {
    padding: 0 0px;
  }
}
