@charset "UTF-8";
img {
  overflow: visible !important;
  overflow-clip-margin: padding-box !important; /* または 0px */
}

body, html {
    margin: 0;
    padding: 0;
  }
  html {
    scroll-behavior: smooth;
  }
  .header-container{
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: fixed;
    z-index: 1000;
  }
  a{
    text-decoration: none;
    color: #000;
}
header {
    width: 100%;
    padding: 10px 20px;
    top: 0;
    left: 0;
    z-index: 1000;
  }
  .mobile{
    display: none;
}
.ri{
  display: flex;
  justify-content: space-between;
  width: 100%;
  z-index: 1001;
}
.ri p{
      padding-top: 10px;
      padding-bottom: 10%;
      padding-left: 45px;
      text-align: center;
}
.header-menu {
    width: 30%;
    text-align: center;
    padding-top: 25px;
    padding-bottom: 25px;
    color: #000;
    padding-right: 25px;
}

.header-menu ul {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.header-menu li {
    flex: 1; 
    text-align: center; 
}

.header-menu a, .header-menu p {
    display: block;
    text-align: center;
    color: #000;
    text-decoration: none;
}

h2 {
    text-align: center;
    font-size: 36px;
}
h1{
    font-size: 75px;
    text-align: center;
}
h3{
    font-size: 24px;
}
.logo{
  width: 150px;
}
.back {
    position: absolute;
    z-index: 4;
    width: 100%; 
}
.blue{
    background-color: #02badf;
}
.apply {
    position: relative;
    margin-top: 100px;
    margin-bottom: 50px;
}
.apply::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 100%;
    background-image: url(../reimages/top.jpeg);
    background-size: 100% auto;
    background-position: 50% 50%;
    opacity: 0.7; 
    z-index: -1; 
}
.apply h2{
    padding: 100px;
}

  footer {
    margin-top: 0;
    padding-top: 0;
    text-align: right;
    padding-right: 5%;
    background-color: #02badf;
    color: #fff;
    margin-bottom: 0;
    position: relative;
    z-index: 1000;
  }
  
  .blue {
    padding: 20px; 
  }
  
  .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: #333;
    margin-left: 5%;
    margin-right: 5%;
    color: #fff;
  }
  
  .footer-left h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .footer-left p {
    line-height: 1.6;
    margin: 0; 
  }

  .footer-right ul {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0;
  }
  
  .footer-right li {
    cursor: pointer;
    transition: color 0.3s;
  }
  
  .footer-right li:hover {
    color: #007bff;
  }

  footer p {
    margin: 0; 
    padding: 10px 0; 
    text-align: right;
    background-color: #02badf; 
    color: #fff;
  }
  a:link,
a:visited {
  text-decoration: none;
}
  .mobile-footer{
    display: none;
  }
  .btn {
    background-color: white;
    border: 1px solid black;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    margin: 0 auto; 
    margin-top: 25px;
  }
  .btn-wrapper {
    text-align: center;
  }
  .btn:hover {
    background-color: #f0f0f0;    
  }
  
  .center {
    text-align: center;          
    margin: 0;                    
  }
  
  @media screen and (max-width: 765px) {
    html{
      margin: 0;
      padding: 0;
      overflow-x: hidden;
  }
  body{
    overflow-x: hidden;
  }
  .mobile{
      display: block;
  }
  .pc{
      display: none;
  }
  h1{
    font-size: 30px;
  }
  h2 {
    text-align: center;
    font-size: 20px;
  }
  h3{
      font-size: 18px;
  }
  p{
    font-size: 12px;
  }
  header {
    width: 100%;
    padding:0;
    top: 0;
    left: 0;
    z-index: 1000;
  }
  .start{
      position: fixed;
      top: 0;
      padding-top: 20px;
      padding-bottom: 50px;
      height: 80px;
      padding-right: 0;
      width: 100%;
      display: flex;
      justify-content: space-between;
  }
  .logo{
      width: 100px;
      height: auto;

  }
  .ri{
      display: flex;
      justify-content: space-between;
      width: 40%;
  }
  .ri p{
          padding-top: 10px;
          padding-bottom: 10%;
          padding-left: 0;
          text-align: center;
  }
  /* ハンバーガーメニュー */
  .hamburger {
      display: block;
      cursor: pointer;
      position: relative;
      width: 30px;
      height: 25px;
      z-index: 10001;
  }

  .hamburger span,
  .hamburger span::before,
  .hamburger span::after {
      content: '';
      display: block;
      background-color: #000;
      height: 5px;
      width: 100%;
      position: absolute;
      transition: 0.3s;
      right: 50px;
  }

  .hamburger span::before {
      top: -8px;
      right: 0;
  }

  .hamburger span::after {
      bottom: -8px;
      right: 0;
  }

  .menu {
      position: fixed;
      top: 0;
      right: -100%; 
      width: 100%; 
      height: 40%;
      z-index: 1000;
      background-color: #fff;
      transition: right 0.3s ease-in-out;
      padding-top: 60px;
  }

  /* メニュー内のリスト */
  .menu ul {
      list-style: none;
      padding: 0;
      margin: 0;
      text-align: center;
      height: 50px;
  }

  .menu ul li {
      padding: 15px 0;
      height: 5%;
  }

  .menu ul li a {
      text-decoration: none;
  }
  
  .menu p{
      text-align: center;
  }
  /* メニューを開いたとき */
  #menu-toggle:checked ~ .menu {
      left: 0; /* 画面内に表示 */
  }

  /* ハンバーガーメニューのアニメーション */
  #menu-toggle:checked + .hamburger span {
      background-color: transparent;
  }

  #menu-toggle:checked + .hamburger span::before {
      transform: rotate(45deg);
      top: 0;
  }

  #menu-toggle:checked + .hamburger span::after {
      transform: rotate(-45deg);
      bottom: 0;
  }

  /* メニュー開閉用のチェックボックスを隠す */
  #menu-toggle {
      display: none;
  }

  .apply {
    position: relative;
    margin-top: 50px;
    margin-bottom: 50px;
}
.apply::before {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 90%;
    background-image: url(../reimages/top.jpeg);
    background-size: 100% auto;
    background-position: 50% 50%;
    opacity: 0.7; 
    z-index: -1; 
    left: 0;
}
.apply h2{
    padding: 0px;
    padding-top: 100px;
    padding-bottom: 100px;
}


  footer{
    margin: 0;
    padding: 0;
  }
  .footer {
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
    margin: 0;
  }
  .footer-right{
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .footer-right p{
    font-size: 12px;
    line-height: 1;
  }
  .footer-right ul {
    display: flex;
    list-style: none;
    gap: 10px;
    padding: 0;
    margin: 0;
  }
  .footer-left{
    margin-top: 20px;
    margin-bottom: 0;
  }
  footer p{
    text-align: center;
  }
  .blue {
    padding: 0; 
  }
  .mobile-footer{
    display: block;
  }
  }