* {
    margin: 0;
    padding: 0;
}
body {
  overflow-x: hidden;
}
#header { /* メニュー全体のスタイル */
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 4%;
  height: 80px;
  z-index: 1;
  position: relative;
}
#header ul {
  display: flex;
  padding: 10px 10px 10px 10px;
  align-items: center;
}  
#header ul li {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  margin-left: 30px;
  display: inline-block;
}
#header ul li a {
  color: #24292e;
  transition: all 0.3s;
  display: block;
  padding: 30px 10px 0 10px;
  text-align: center;
}
#header ul li a:hover {
  opacity: 0.5;
}

 /* sp */
 @media screen and (max-width: 1218px) {
  /*header*/
  #header {
    flex-direction: column;
    height: auto;
  }
  #header ul li {
    font-size: 15px;
  }
}
.header-item:hover .menu { /* 下層メニューのスタイル（親項目ホバー時） */
  visibility: visible; /* 下層メニューを表示 */
}
.header-list {
  display: flex;
  justify-content: center;
}
.header-item {
  transition: background-color .3s;
}
.header-item:hover {
  color: #31e1f1;
}
.header-item a {
  color: #fff;
  display: block;
  padding: 20px;
}
  .megaMenu {
    background: #fffffff6; /* 背景色 */
    left: 0;
    opacity: 0;
    position: absolute;
    text-align: center;
    transition: opacity .3s, visibility .3s;
    visibility: hidden;
    width: 100%;
    padding: 30px 10px 30px 10px;
    display: flex;
    font-size: 25px;
  }
  .megaMenu-list {
    padding-bottom: 30px;
    padding-top: 50px;
    margin-left: 38%;
  }
  @media screen and (max-width: 1218px) {
    .megaMenu-list {
      margin-left: 28%;
    }
  }
  /* メニューをhoverした時のスタイル */
  .header-item:hover .megaMenu {
    opacity: 1;
    visibility: visible;
  }
  /* レイアウトのためのスタイル */
  a {
    text-decoration: none;
  }

    h1 {
      font-size: 20px;
    color: #4a4a4a;
    font-family: "Noto Serif JP", serif;
    font-weight: bold;
    line-height: 1.47; 好みに応じて調整可能
      }

    h2 {
      margin-top: 60px;
      margin-right: 16px;
      margin-left: 16px;
      color: #073190;
      font-family: "Noto Serif JP", serif;
      font-weight: 600;
      line-height: 1.2;
      letter-spacing: 0.02em;
      text-align: center;
      font-size: 2.3rem;
    }
    .b {
      text-align: center;
      margin-top: 30px;
      margin-bottom: 40px;
      font-family: 'futura-pt', sans-serif;
      color: #6bb6ff;
      font-size: 30px;
    }
    .o {
      text-align: center;
      margin-top: 30px;
      margin-bottom: 40px;
      font-family: 'futura-pt', sans-serif;
      color: #6bb6ff;
      font-size: 30px;
    }

    .column {
      height: 100vh;
      width: 100%;
      position: relative; /* ボタンの中央配置の基準 */
      display: flex;
      flex-direction: column;
      align-items: center;
    }
       
    .cat1 {
      background: url(images/TOKUYAMAKOU.jpg) no-repeat top center;
      background-size: cover;
    }
    .cat1:hover {
      opacity:0.8;
    }
    .cat2 {
      background: url(images/SUMISAKICHYOU.jpg) no-repeat center center;
      background-size: cover;
    }
    .cat2:hover {
       opacity:0.8;
    }
    @media all and (min-width: 854px) {
      .wrapper {
        display: flex;
      }
    }
    
    h3{
      margin-top: 130px;
    margin-right: 16px;
    margin-left: 16px;
    color: #ffffff;
    font-family: "Noto Serif JP", serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    font-size: 2.3rem;
    }   
    
    .p1 {
      cursor: pointer;
      font-size: 200%;
    line-height: 1.25;

    }
    .button {
      color: #fff;
      background-color: #31e1f1;
      border-radius: 100vh;
      height: 70px;
      width: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: "Noto Serif JP", serif;
      font-size: 20px;
      margin-top: 20px;
      position: relative;
      overflow: hidden;
      transition: 0.4s ease;
      box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    
    .button::before {
      content: "";
      position: absolute;
      top: 0;
      left: -75%;
      width: 50%;
      height: 100%;
      background: rgba(255, 255, 255, 0.6);
      transform: skewX(-25deg);
      transition: 0.5s;
    }
    
    .button:hover::before {
      left: 130%;
    }
    
    .button:hover {
      box-shadow: 0 0 15px #31e1f1;
    }
    
    .button-032 {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      width: 250px;
      margin:0 auto;
      padding: .9em 2em;
      overflow: hidden;
      border: 1px solid #298ed6;
      border-radius: 5px;
      background-color: #fff;
      color: #0b4c77;
      font-size: 1em;
      margin-top:60px;
      margin-bottom: 80px;
      font-weight: 500;
      font-family: "游明朝";
  }
  
  .button-032:hover {
      background-color: transparent;
      color: #fff;
  }
  
  .button-032::before {
      position: absolute;
      z-index: -1;
      transform: rotate(-30deg);
      width: 100%;
      height: 0;
      border-radius: 5px;
      background-color: #298ed6;
      content: '';
      transition: height .3s ease;
  }
  
  .button-032:hover::before {
      height: 350%;
  }
  .kaisha {
    width: 100%;
    }
    
    .kaisha th,
    .kaisha td {
    border: 1px solid #ccc;
    padding: 20px;
    }
    
    .kaisha th {
    font-weight: bold;
    background-color: #dedede; 
    }
    
    @media screen and (max-width: 767px) {
    .kaisha,
    .kaisha tr,
    .kaisha td,
    .kaisha th {display:block;}
    .kaisha th {width:auto;}
    }
    /* 018 */


    .button018 a {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 225px;
  padding: 10px 0px 10px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 500;
}

.button018 a:before, .button018 a:after {
content: "";
position: absolute;
display: block;
top: 50%;
}
.button018 a:before {
width: 0.5rem;
height: 0.5rem;
left: 1.1rem;
border-top: solid 2px #fff;
border-right: solid 2px #fff;
z-index: 2;
transform: translateY(-50%) rotate(45deg);
transition: all 0.3s;
}
.button018 a:after {
left: 0;
background: #6bb6ff;
z-index: 1;
width: 3rem;
height: 3rem;
border-radius: 4rem;
transform: translateY(-50%);
transition: all 0.5s;
}
.button018 a span {
position: relative;
transition: all 0.3s;
z-index: 3;
}

.button018 a:hover span {
color: #fff;
}
.button018 a:hover:before {
left: 2rem;
}
.button018 a:hover:after {
right: 0;
width: 100%;
}
.button018 {
  margin-top: 40px;
  margin-bottom: 50px;
}
/* ===== モダンフッター ===== */
.modern-footer {
  background: #524e4e;
  color: #ddd;
  padding: 40px 20px 20px;
  font-family: "Noto Serif JP", serif;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 20px;
  gap: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 240px;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex: 2;
  gap: 40px;
  min-width: 300px;
  justify-content: space-around;
}

.footer-links h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #31e1f1;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 0.75rem;
  color: #888;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }

  .footer-bottom {
    font-size: 0.65rem;
  }
}

  .button {
    color: #fff;
    background-color: #31e1f1;
    border-radius: 100vh;
    height: 70px;
    width: 200px;
    display: flex; /* ← 修正 */
    align-items: center; /* ← 修正 */
    justify-content: center; /* ← 修正 */
    font-family: "Noto Serif JP", serif;
    font-size: 20px;
     /* ↓ 追加 */
    margin-top: 20px; /* ← 適度な余白だけに調整 */
    margin-left: 0; /* ← 左寄せを解除 */
  }
  .button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
