@charset "utf-8";

html {
  scroll-behavior: smooth; /* スムーズスクロールを有効化 */
}

/* 背景 */
.background {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at bottom right, #ffe6ef, #ffd6e8 70%);
  z-index: -3;
}

.wave-svg {
    min-width: 800px;
}
@media screen and (max-width: 475px) {
   .wave-svg {
     min-width: 700px;
    }
}


/* ヘッダー */
.header {
  position: relative;
  height: 70px;
  background-color: #f899d6;
  padding-bottom: 150px;
  overflow: hidden;
}

.header-img {
  position: absolute;
  display: flex;
  height: 0%;
  align-items: center;
  gap: 10px;
  top: 19%;
}

.header-img img {
  width: 150px;
}

.header_time {
  margin-top: 5px;
}

.header_logo img {
  padding: 0px;
}

.list_nav_header {
  position: absolute;
  top: 15px;
  right: 70px; /* ←固定pxではなく右寄せ推奨 */
  display: flex;
  gap: 20px;
  list-style-type: none;
  font-size: 12px;
}

.list_nav_header a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  padding-bottom: 2px; /* テキストと下線の間隔 */
  background-image: linear-gradient(#ffffff, #ffffff);
  background-repeat: no-repeat;
  background-position: bottom right; /* 下線の初期位置 */
  background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
  transition: background-size 0.5s;
}

.list_nav_header li {
  position: relative;
  white-space: nowrap;
}

.list_nav_header a:hover {
  background-position: bottom left; /* 下線のホバー時位置 */
  background-size: 100% 1px; /* 下線の横幅を100%にする */
}

/* ハンバーガーメニュー */
.burger {
  width: 40px;
  height: 40px;
  background-color: #d9304f;
  background-image: url(images/header_firstview/burger.png);
  background-size: 21x;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  cursor: pointer;
  position: fixed;
  top: 14px;
  right: 10px;
  display: block;
  z-index: 10;
}

.burger:hover {
  background-color: rgb(234, 182, 199);
}

.menu {
  position: absolute;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: start;
  width: 20%;
  height: 50%;
  background-color: rgb(159, 20, 171);
  position: fixed;
  top: 0;
  right: 0;
  z-index: 5;
  display: none;
  opacity: 0.7;
  border-radius: 6px;
}

.menu_list_nav_header li {
  list-style-type: none;
  line-height: 40px;
}

.menu_list_nav_header a {
  text-decoration: none;
  color: #ffffff;
  padding-bottom: 2px; /* テキストと下線の間隔 */
  background-image: linear-gradient(#ffffff, #ffffff);
  background-repeat: no-repeat;
  background-position: bottom right; /* 下線の初期位置 */
  background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
  transition: background-size 0.5s;
}
.menu_list_nav_header a:hover {
  background-position: bottom left; /* 下線のホバー時位置 */
  background-size: 100% 1px; /* 下線の横幅を100%にする */
}

.menu.is-active {
  position: relative;
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
}

.burger.is-active {
  background-image: url(images/header_firstview/close.png);
  position: fixed;
  top: 14;
  right: 10;
}

.rogo-top-home {
  cursor: pointer;
}

.rogo-top-home:hover {
  cursor: pointer;
  opacity: 3;
}

/* Header レスポンシブ */
@media screen and (max-width: 940px) {
  .header {
    position: relative;
    height: 120px;
    background-color: #f899d6;
    padding-bottom: 150px;
    overflow: hidden;
  }
  .header-img {
    position: absolute;
    display: flex;
    height: 0%;
    align-items: center;
    gap: 10px;
    top: 15%;
  }
}
@media screen and (max-width: 915px) {
  .list_nav_header {
    display: none;
  }
}
@media screen and (max-width: 900px) {
  .header {
    position: relative;
    height: 130px;
    background-color: #f899d6;
    padding-bottom: 100px;
    overflow: hidden;
  }
  .header-img {
    position: absolute;
    display: flex;
    height: 0%;
    align-items: center;
    gap: 10px;
    top: 15%;
  }
}
@media screen and (max-width: 733px) {
  .header {
    position: relative;
    height: 100px;
    background-color: #f899d6;
    padding-bottom: 150px;
    overflow: hidden;
  }
  .header-img {
    position: absolute;
    display: flex;
    height: 0%;
    align-items: center;
    gap: 10px;
    top: 15%;
  }
}
@media screen and (max-width: 700px) {
  .menu {
    width: 30%;
    height: 50%;
    font-size: 12px;
  }
  .menu_list_nav_header li {
    list-style-type: none;
    line-height: 40px;
  }

  .menu_list_nav_header a {
    text-decoration: none;
    color: #ffffff;
    padding-bottom: 2px; /* テキストと下線の間隔 */
    background-image: linear-gradient(#ffffff, #ffffff);
    background-repeat: no-repeat;
    background-position: bottom right; /* 下線の初期位置 */
    background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
    transition: background-size 0.5s;
  }
}
@media screen and (max-width: 620px) {
  .header-img img {
    width: 130px;
  }
  .burger {
    position: fixed;
    top: 10px;
    right: 10px;
  }
  .menu {
    width: 30%;
    height: 50%;
    font-size: 12px;
  }

  .menu_list_nav_header li {
    list-style-type: none;
    line-height: 40px;
  }

  .menu_list_nav_header a {
    text-decoration: none;
    color: #ffffff;
    padding-bottom: 2px; /* テキストと下線の間隔 */
    background-image: linear-gradient(#ffffff, #ffffff);
    background-repeat: no-repeat;
    background-position: bottom right; /* 下線の初期位置 */
    background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
    transition: background-size 0.5s;
  }
}
@media screen and (max-width: 545px) {
  .header-img img {
    width: 130px;
  }
  .burger {
    position: fixed;
    top: 10px;
    right: 10px;
  }
}
@media screen and (max-width: 500px) {
  .header-img img {
    width: 130px;
  }
  .burger {
    position: fixed;
    top: 10px;
    right: 10px;
  }
}
@media screen and (max-width: 487px) {
 .header {
    position: relative;
    height: 100px;
    background-color: #f899d6;
    padding-bottom: 100px;
    overflow: hidden;
  }
  .header-img {
    position: absolute;
    display: flex;
    height: 0%;
    align-items: center;
    gap: 10px;
    top: 15%;
  }
}
@media screen and (max-width: 475px) {
  .header-img {
    gap: 10px;
  }
  .header-img img {
    width: 130px;
  }
  .burger {
    position: fixed;
    top: 10px;
    right: 10px;
  }
}
@media screen and (max-width: 465px) {
  .header-img {
    gap: 10px;
  }
  .header-img img {
    width: 110px;
  }
  .burger {
    position: fixed;
    top: 10px;
    right: 10px;
  }
}
@media screen and (max-width: 470px) {
  .header-img {
    gap: 8px;
  }
}
@media screen and (max-width: 407px) {
  .header-img img {
    width: 98px;
  }
}
@media screen and (max-width: 360px) {
  .header-img img {
    width: 90px;
  }
  .burger {
    position: fixed;
    top: 10px;
    right: 10px;
  }
}
@media screen and (max-width: 338px) {
  .header-img img {
    width: 87px;
  }
}

#top {
  top: 0;
}

.Top-button:hover {
  cursor: pointer;
  opacity: 1;
}

.Top-button {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 4%;
  z-index: 4;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

@media screen and (max-width: 768px) {
  .Top-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 10%;
    z-index: 4;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 7;
  }
}

@media screen and (max-width: 440px) {
  .Top-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 10%;
    z-index: 4;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 7;
  }
}


/* Heroセクション */
.hero {
  background-color: #f899d6;
  margin-top: -6%;
  padding-bottom: 0%;
}

.hero-img {
  position: relative;
  display: block;
  margin: auto;
  top: -65px;
  width: 70%;
  z-index: 1;
}

img.hero-dot-img {
  margin-bottom: 0 0 0px 0;
}

.hero-dot-img {
  display: flex;
  margin-top: -50%;
  width: 100%;
  z-index: 0;
}

.hero-title-img {
  margin-top: 0px;
  width: 95%;
  z-index: 3;
}

.Top-text3 {
  width: 80%;
  display: block;
  margin: auto;
  position: relative;   /* ← 位置指定を有効にする */
  top: -180px;/* ← 上に30px移動（数値はお好みで調整） */
}


.Top-text4 {
  position: relative;
  display: block;
  margin: auto;
  width: 60%;
  z-index: 1;
  top: -110px;
}

.Top-text5 {
  position: absolute;
  width: 25%;
  left: 10px;
  top: 280px;
  z-index: 1;
}

.Top-text6 {
  display: none;
}


/* ▼ 下からスライド（テキスト用） */
@keyframes slideUpIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ▼ 左からスライド（画像用） */
@keyframes slideLeftIn {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-left {
  opacity: 0;
  animation: slideLeftIn 3s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.slide-left2 {
  opacity: 0;
  animation: slideLeftIn 5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.slide-up {
  opacity: 0;
  animation: slideUpIn 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}


/* 遅延で順番に登場 */
.delay1 {
  animation-delay: 0.4s;
}
.delay2 {
  animation-delay: 0.6s;
}
.delay3 {
  animation-delay: 1.5s;
}
.delay4 {
  animation-delay: 10s;
}

/* Hero レスポンシブ */
@media screen and (max-width: 1200px) {
  .hero-title-img {
    margin-top: 0px;
    width: 95%;
  }
  .Top-text3 {
    top: -150px;/* ← 上に30px移動（数値はお好みで調整） */
  }
  .Top-text5 {
    top: 280px;
  }
}@media screen and (max-width: 1100px) {
  .hero-title-img {
    margin-top: -20px;
    width: 95%;
  }
  .hero-img {
    position: relative;
    display: block;
    margin: auto;
    top: -50px;
  }
  .Top-text3 {
    top: -150px;/* ← 上に30px移動（数値はお好みで調整） */
  }
  .Top-text5 {
    top: 280px;
  }
}
@media screen and (max-width: 1000px) {
  .hero-title-img {
    margin-top: -20px;
    width: 95%;
  }
  .hero-img {
    top: -50px;
    width: 70%;
    z-index: 1;
  }
  .Top-text3 {
    top: -120px;/* ← 上に30px移動（数値はお好みで調整） */
  }
  .Top-text5 {
    top: 280px;
  }
}
@media screen and (max-width: 940px) {
  .hero-title-img {
    position: absolute;
    margin-top: -100px;
    width: 95%;
  }
  .Top-text5 {
    top: 22 0px;
  }
}
@media screen and (max-width: 900px) {
  .hero-title-img {
    position: absolute;
    margin-top: -40px;
    width: 95%;
  }
  .Top-text5 {
    top: 280px;
  }
  .hero-img {
    position: relative;
    display: block;
    margin: auto;
    top: 30px;
    width: 70%;
    z-index: 1;
  }
  .Top-text3 {
    width: 80%;
    display: block;
    margin: auto;
    position: relative;   /* ← 位置指定を有効にする */
    top: -130px;/* ← 上に30px移動（数値はお好みで調整） */
  }
  .Top-text4 {
    position: relative;
    display: block;
    margin: auto;
    width: 60%;
    z-index: 1;
    top: -90px;
  }
  .Top-text5 {
    position: absolute;
    width: 25%;
    left: 10px;
    top: 250px;
    z-index: 1;
  }
  .hero-dot-img {
    display: flex;
    margin-top: -40%;
    width: 100%;
    z-index: 0;
  }
}
@media screen and (max-width: 880px) {
  .hero-title-img {
    position: absolute;
    margin-top: -40px;
    width: 95%;
  }
  .Top-text5 {
    top: 22 0px;
  }
}
@media screen and (max-width: 820px) {
  .hero-title-img {
    position: absolute;
    margin-top: -40px;
    width: 95%;
  }
  .Top-text5 {
    top: 20 0px;
  }
}

@media screen and (max-width: 733px) {
  .hero-title-img {
    position: absolute;
    margin-top: -90px;
    width: 95%;
  }
  .Top-text5 {
    top: 200px;
  }
  .hero-img {
    top: -30px;
    width: 75%;
  }
   .Top-text3 {
    margin-top: 39px;/* ← 上に30px移動（数値はお好みで調整） */
  }
  .Top-text4 {
    position: relative;
    display: block;
    margin: auto;
    width: 60%;
    margin-top: 0%;
    z-index: 1;
  }
  .hero-dot-img {
    display: flex;
    margin-top: -50%;
    width: 100%;
    z-index: 0;
    padding-top: 0%;
  }
}
@media screen and (max-width: 708px) {
 .hero-title-img {
    position: absolute;
    margin-top: -100px;
    width: 95%;
  }
  .Top-text5 {
    top: 200px;
  }
  .hero-img {
    top: -39px;
    width: 75%;
  }
   .Top-text3 {
    width: 90%;
    margin-top: 30px;/* ← 上に30px移動（数値はお好みで調整） */
  }
  .Top-text4 {
    position: relative;
    display: block;
    margin: auto;
    width: 60%;
    margin-top: 0%;
    z-index: 1;
  }
  .hero-dot-img {
    display: flex;
    margin-top: -50%;
    width: 100%;
    z-index: 0;
    padding-top: 0%;
  }
}
@media screen and (max-width: 667px) {
 .hero-title-img {
    position: absolute;
    margin-top: -100px;
    width: 95%;
  }
  .Top-text4 {
    width: 80%;
    margin-top: 0%;
  }
  .Top-text5 {
    top: 200px;
  }
  .hero-img {
    top: -50px;
    width: 75%;
  }
}
@media screen and (max-width: 560px) {  
  .hero-title-img {
    position: absolute;
    margin-top: -100px;
    width: 95%;
  }
  .Top-text3 {
    width: 90%;
    display: block;
    margin: auto;
    position: relative;   /* ← 位置指定を有効にする */
    margin-top: 20px;/* ← 上に30px移動（数値はお好みで調整） */
  }
  .Top-text5 {
    top: 200px;
  }
  .hero-img {
    top: -70px;
    width: 75%;
  }
}
@media screen and (max-width: 487px) {
  .hero-title-img {
    position: absolute;
    margin-top: -65px;
    width: 95%;
  }
  .Top-text5 {
    top: 180px;
  }
   .hero-img {
      top: -20px;
      width: 85%;
    }
   .Top-text3 {
      margin-top: 75px;/* ← 上に30px移動（数値はお好みで調整） */
    }
}
@media screen and (max-width: 475px) {
   .hero-title-img {
    width: 95%;
  }
  .Top-text3 {
    margin-top: 80px;/* ← 上に30px移動（数値はお好みで調整） */
  }
}
@media screen and (max-width: 375px) {
  .hero-title-img {
    width: 95%;
  }
  .Top-text3 {
    margin-top: 90px;/* ← 上に30px移動（数値はお好みで調整） */
  }
}


/* 保険シミュレーター */
/* --- 完全修正版：レスポンシブでも崩れない保険シミュレーターCSS --- */

:root {
  --pink:#cf3f5c;
  --pink-dark:#ffffff;
  --bg:#8e901d;
  --radius:11px;
  --shadow:0 10px 30px rgba(0,0,0,0.08);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
}

/* =============================== */
/*  全体の中央固定コンテナ       */
/* =============================== */
.simulator-wrapper {
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* =============================== */
/*        タイトル位置調整        */
/* =============================== */
.merter-title {
  position: relative;
  width: 80%;
  text-align: center;
  margin: 0px auto 0 auto;
  padding-left: 0;
  z-index: 3;
}

#merter {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
  z-index: 4;
  padding-bottom: 20%;
}


/* =============================== */
/*           トップカード          */
/* =============================== */
.top-card {
  position: absolute;
  text-align: center;
  background: #ffe4ec;
  color: #000;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  padding: 3% 8%;
  margin-top: 0%;
  width: 70%;
  max-width: 640px;
  transition: 0.3s ease;  
}
.meter-text p {
  font-size: 80%;
  color: #ca082c;
}
.grid p {
  font-size: 80%;
  color: #ca082c;
}

.small {
  font-size: 80%;
  color: #000000;
}
/* 誤記抑止 */
div.top-card { margin: 0 auto; }

.birthdate_text h4 {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  font-weight: 400;
  color: #ca082c;
  font-size: 80%;
  margin-bottom: 0%;
}

.hokenmoney {
  padding-top: 10%;
  font-size: 90%;
}

.hokenmoney h3 {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  font-weight: 400;
}

.hokenmoney h4 {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  font-weight: 400;
  color: #ca082c;
  font-size: 80%;
  margin-bottom: 0%;
}

.paymentFreq_text h4 {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  font-weight: 400;
  color: #ca082c;
  font-size: 80%;
  margin-bottom: 0%;
}

@media (max-width: 509px) {
  .hokenmoney h4 {
    font-size: 70%;
    margin-bottom: 0%;
  }
  
}

/* =============================== */
/*    グリッド（縦崩れ防止）      */
/* =============================== */
.grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1rem;
  width: 100%;
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 3fr 1.2fr; /* ← 左広・右細のまま */
  }
}

/* =============================== */
/*        入力欄統一デザイン       */
/* =============================== */
select, input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e0cfe6;
  font-size: 1rem;
  box-sizing: border-box;
}

/* 生年月日だけ幅を狭く */
input[type="date"] {
  max-width: 400px;
  width: 100%;
}

/* =============================== */
/*     ボタン（小さめに調整）      */
/* =============================== */
.btn {
  background-color: #e50909;
  color: #fff;
  border-radius: 0.6em;
  padding: 40px 20px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin: 0 20px;
  margin-top: 25px;
  white-space: nowrap
}

.btn:hover { filter: brightness(1.05); }

/* =============================== */
/*         結果表示エリア          */
/* =============================== */
.result {
  background: #fce2f8;
  border: 2px dashed var(--pink-dark);
  padding: 1rem;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 1rem;
}

/* =============================== */
/*     スマホ用レスポンシブ修正     */
/* =============================== */
@media (max-width: 1360px) {
  #merter {
    padding-bottom: 20%;
  }
}

@media (max-width: 768px) {
  .simulator-wrapper {
    max-width: 600px;
    padding: 0 16px;
  }
  .top-card {
    position: static !important;
    margin: 20px auto !important;
    width: 90%;
    max-width: 600px;
    padding: 20px;
  }
  #merter {
    display: block;
    text-align: center;
    padding-bottom: 20%;
  }
  .merter-title {
    width: 100%;
    margin: 20px auto 0 auto !important;
    padding-left: 0 !important;
  }
  select, input {
    width: 100%;
    padding: 10px 0px;
    border-radius: 8px;
    border: 1px solid #e0cfe6;
    font-size: 1rem;
    box-sizing: border-box;
  }
  .paymentFreq_text h4 {
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
    font-weight: 400;
    color: #ca082c;
    font-size: 70%;
    margin-bottom: 0%;
  }
  .birthdate_text h4 {
    font-size: 70%;
  }
  .btn {
    padding: 30px 20px;
    font-size: 0.9rem;
    margin-top: 35px;
  }
}
@media (max-width: 481px) {
  .birthdate_text h4 {
    font-size: 69%;
  }
  .btn {
    padding: 30px 20px;
    font-size: 0.9rem;
    margin-top: 50px;
  }
}
@media (max-width: 452px){
  .birthdate_text h4 {
    font-size: 68%;
  }
  select#paymentFreq {
    padding-top: 15px;
    margin-top: 10px;
  }
}
@media (max-width: 436px) {
  .btn {
    padding: 30px 20px;
    font-size: 0.9rem;
    margin-top: 50px;
  }
  select#paymentFreq {
    padding-top: 15px;
    margin-top: 10px;
  }
}
@media (max-width: 410px) {
  .btn {
    background-color: #e50909;
    color: #fff;
    border-radius: 0.6em;
    padding: 23px 7px;
  }
}
@media (max-width: 407px) {
  .btn {
    background-color: #e50909;
    color: #fff;
    border-radius: 0.6em;
    padding: 23px 7px;
    margin-top: 65px;
  }
}
@media (max-width: 377px) {
  .btn {
    background-color: #e50909;
    color: #fff;
    border-radius: 0.6em;
    padding: 22px 7px;
    margin-top: 67px;
  }
  .grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 0.7rem;
    width: 100%;
  }
}
@media (max-width: 370px) {
  .btn {
    background-color: #e50909;
    color: #fff;
    border-radius: 0.6em;
    padding: 22px 7px;
    margin-top: 67px;
  }
  .grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 0.3rem;
    width: 100%;
  }
}
@media (max-width: 365px) {
  .btn {
    background-color: #e50909;
    color: #fff;
    border-radius: 0.6em;
    padding: 22px 7px;
    margin-top: 67px;
  }
  .grid {
    display: grid;
    grid-template-columns: 3fr 0fr;
    gap: 0.1rem;
  }
  select#paymentFreq {
    width: 80%;
  }
  select#gender {
    width: 80%;
  }
}


/* =============================== */
/*       ヘッダー（中央寄せ）       */
/* =============================== */
.header h1 {
  font-family: FOT-筑紫A丸ゴシック Std E;
  font-size: 28px;
  text-align: center;
  margin: 0 auto;
}


/* =============================== */
/*      　 　申込みボタン     　　  */
/* =============================== */
.Application-section {
  position: relative;
  text-align: center;
  width: 100%;
  padding: 70px 0px 0px 0px;
}

.Application {
  margin-top: 35%;
  display: inline-block;
  background-color: #ffffff;
  padding-top: 50px;
  width: auto;
}

.btn-2 {
  display: inline-block;
  background-color: #ffffff;
  padding-bottom: 40px;
  width: auto;
}

.Application img {
  width: 40%;
}

img.moushikomi-btn {
  width: 20%;
}

img.shiryou-btn {
  width: 20%;
}

img.moushikomi-btn:hover {
  transform: translateY(-5px);
 
}
img.shiryou-btn:hover {
  transform: translateY(-5px);
}

@media screen and (max-width: 1360px) {
  .Application-section {
    position: relative;
    text-align: center;
    padding-top: 10%;
  }
}
@media screen and (max-width: 1230px) {
  .Application-section {
    position: relative;
    text-align: center;
    padding-top: 10%;
  }
}
@media screen and (max-width: 1059px) {
  .Application-section {
    position: relative;
    text-align: center;
    padding-top: 50%;
  }
  .Application {
    margin-top: 0%;
    display: inline-block;
  }
  .btn-2 {
    display: inline-block;
  }
}
@media screen and (max-width: 1000px) {
  .Application-section {
    position: relative;
    text-align: center;
    padding-top: 50%;
  }
}
@media screen and (max-width: 829px) {
  .Application-section {
    padding-top: 60%;
  }
  .Application {
    margin-top: 0%;
    display: inline-block;
  }
  .btn-2 {
    display: inline-block;
  }
}
@media screen and (max-width: 860px) {
  .Application-section {
    padding-top: 60%;
  }
}

@media screen and (max-width: 768px) {
  .Application-section {
    position: relative;
    text-align: center;
    padding-top: 10%;
  }
  .Application {
    margin-top: 0%;
    display: inline-block;
    width: 100%;
  }
  .btn-2 {
    display: inline-block;
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .Application-section {
    position: relative;
    text-align: center;
    padding-top: 10%;
  }
}
@media screen and (max-width: 445px) {
  .Application-section {
    position: relative;
    text-align: center;
    padding-top: 0%;
  }
}
@media screen and (max-width: 488px) {
  .Application-section {
    position: relative;
    text-align: center;
    padding-top: 0%;
  }
  .Application {
    display: inline-block;
    width: 100%;
  }
  .btn-2 {
    display: inline-block;
    width: 100%;
  }
}
@media screen and (max-width: 430px) {
  .Application-section {
    position: relative;
    text-align: center;
    padding-top: 0%;
  }
  .Application {
    margin-top: 10%;
    display: inline-block;
    width: 100%;
  }
  .Application img {
    display: inline-block;
    width: 300px;
  }
  .btn-2 {
    display: inline-block;
    width: 100%;
  }
  .btn-2 img {
    display: inline-block;
    width: 150px;
  }
}
@media screen and (max-width: 375px) {
  .Application-section {
    position: relative;
    text-align: center;
    margin-top: 0%;
  }
  .Application {
    display: inline-block;
    width: 100%;
  }
  .btn-2 {
    display: inline-block;
    width: 100%;
  }
}




/* トピックス */
body {
  font-family: "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
}

.topics-section {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 30px;
  margin-top: 0%;
}

.topics-header {
  display: flex;
  justify-content: first baseline;
  align-items: center;
  margin-bottom: 30px;
}

div.topics-header {
  margin-bottom: -4%;
}

.topics-header h2 {
  font-size: 70px;
  font-weight: 600;
  color: crimson;
  font-family: A P-OTF A1ゴシック StdN;
}

.topics-header h3 {
  font-size: 23px;
  font-weight: 600;
  color: rgb(236, 17, 97);
  font-family: A P-OTF A1ゴシック StdN;
  margin-left: 1%;
  margin-bottom: 1.5%;
  text-shadow: inset 0 0 10px rgba(43, 41, 41, 0.4),
}

.topics-slider-wrapper {
  position: relative;
}

.topics-slider {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
}

.topics-cards {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.topic-card {
  flex: 0 0 350px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border-right: 1px dotted #dd0909; /* ドット罫線 */
}

.topic-card:last-child {
  border-right: none;
}

.topic-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.topic-card:hover img {
  transform: scale(1.05);
}

.topic-content {
  padding: 15px;
}

.topic-meta {
  font-size: 14px;
  color: #9f08a1;
  margin-bottom: 8px;
}

.topic-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
}
.topic-title a {
  text-decoration: none;
  color: #000000;
}

.topic-title a:hover {
  transform: translateY(-5px);
  color: firebrick;
  cursor: pointer;
}
.topic-title a:hover {
  transform: translateY(-5px);
  color: firebrick;
  cursor: pointer;
}

.topic-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* 矢印デザイン */
.arrow-btn {
  position: absolute;
  top: 54%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #a50606;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.arrow-btn:hover {
  background: #e9e1e1;
}

.arrow-btn.left {
  left: -1px;
  color: #dd0909;
}

.arrow-btn.right {
  right: 3px;
  color: #dd0909;
}

.topics-slider.dragging {
  cursor: grabbing;
  user-select: none;
}


/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .topics-section {
    margin-top: 5%;
  }
  .topic-card {
    flex: 0 0 270px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border-right: 1px dotted #dd0909; /* ドット罫線 */
  }
  .topics-header {
    margin-bottom: 0%;
  }
  .topics-header h2 {
    font-size: 50px;
    font-weight: 600;
    color: crimson;
    font-family: A P-OTF A1ゴシック StdN;
  }
  .topics-header h3 {
    font-size: 12px;
    font-weight: 600;
    color: rgb(102, 109, 107);
    font-family: A P-OTF A1ゴシック StdN;
    margin-left: 1%;
    margin-bottom: 1.5%;
  }
  .topic-card img {
    width: 100%;
    height: 175px;
    object-fit: contain;
    transition: transform 0.4s ease;
  }
}

@media screen and (max-width: 375px) {
  .topics-section {
    margin-top: -10%;
  }
  .topics-header {
    margin-bottom: -5%;
  }
  .topics-header h2 {
    font-size: 50px;
    font-weight: 600;
    color: crimson;
    font-family: A P-OTF A1ゴシック StdN;
  }
  .topics-header h3 {
    font-size: 12px;
    font-weight: 600;
    color: rgb(102, 109, 107);
    font-family: A P-OTF A1ゴシック StdN;
    margin-left: 1%;
    margin-bottom: 1.5%;
  }
  .topics-slider {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(3 * 280px + 20px); /* 3枚分表示 */
  }
  .topics-cards {
    display: block;
  }
  .topic-card {
    width: 100%;
    margin-bottom: 15px;
    border-right: none;
    border-bottom: 1px dotted #dd0909;
  }
  .topic-card:last-child {
    border-bottom: none;
  }
  /* 横矢印は非表示 */
  .arrow-btn.left,
  .arrow-btn.right {
    display: none;
  }
}

/* --- アニメーション部分 --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------
   ★ 背景（固定）
--------------------------------------- */


/* 固定背景（画像が切り替わる部分） */
#bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease; /* フェード効果 */
}

/* ---------------------------------------
   ★ 波形エリア
   → 波形は一番下に吸着
--------------------------------------- */
.wave-footer-top {
  position: relative;
  width: 100%;
  padding-top: 150px;     /* 全体の開始位置調整（自由に調整OK） */
  padding-bottom: 350px;  /* 波形の高さ分。自由に調整OK */
}

.wave-svg-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -1;  /* 背景として扱う */
  transform: scaleY(-1);
}


/* ---------------------------------------
   ★ 動画（波形の上に乗る）
--------------------------------------- */
.video-1 {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 60px; /* money 画像との間隔 */
  z-index: 2;
}

.video-1 video {
  width: 85%;
  height: auto;
  border-radius: 10px;
}


/* ---------------------------------------
   ★ money 画像（動画より前面）
--------------------------------------- */
/* money セクション（横中央揃え） */
.money-section {
  width: 100%;
  display: flex;
  flex-direction: column;   /* スマホでは縦並びの方が崩れにくい */
  justify-content: center;
  align-items: center;       /* ★ これで左右センター確定 */
  padding: 40px 0;
  z-index: 3;
}

/* メイン画像（横画像） */
.money-img {
  width: 60%;                /* PC 基準サイズ */
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 縦画像（必要に応じて表示切り替え） */
.money-img-tate {
  width: 40%;
  max-width: 300px;
  height: auto;
  display: none;             /* デフォルト非表示 */
}


/* =============================== */
/*     スマホ用レスポンシブ修正     */
/* =============================== */
@media (max-width: 1024px) {
  .money-img {
    width: 70%;
  }
}
@media (max-width: 768px) {
  .money-img {
    position: static !important;
    width: 65%;
    margin: 20px auto !important;
    display: block;
  }
  /* スマホでは縦画像を使いたい場合はここで切り替え */
  .money-img {
    width: 85%;
  }
  .money-img-tate {
    display: none;   /* 必要ならここを block にできる */
  }
}
@media (max-width: 567px) {
  .wave-footer-top {
    position: relative;
    width: 100%;
    padding-top: 150px;     /* 全体の開始位置調整（自由に調整OK） */
    padding-bottom: 350px;  /* 波形の高さ分。自由に調整OK */
  }
  .wave-svg-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;  /* 背景として扱う */
    transform: scaleY(-1);
  }
}
@media (max-width: 480px) {
  .money-img {
    width: 95%;
  }
  .wave-footer-top {
    position: relative;
    width: 100%;
    padding-top: 150px;     /* 全体の開始位置調整（自由に調整OK） */
    padding-bottom: 350px;  /* 波形の高さ分。自由に調整OK */
  }
}

/* =============================== */
/*      308px以下（超小型端末）     */
/* =============================== */
@media (max-width: 308px) {

  /* 波形エリアを短くして動画を上に寄せる */
  .wave-footer-top {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .wave-svg-2 {
    width: 100%;
    transform: scaleY(-1);
  }

  /* ▼ 動画位置を安全に上へ（px指定でズレが起きにくい） */
  .video-1 {
    margin-top: -40px;     /* ← -160% は危険なので安全値に変更 */
    margin-bottom: 20px;
  }

  .video-1 video {
    width: 90%;
    border-radius: 10px;
  }

  /* money 画像も小型端末向けに最適化 */
  .money-img {
    width: 85%;
    margin-top: 10px;
  }

  /* 縦画像を使いたい場合はここで切替可 */
  .money-img-tate {
    display: none;
  }
}







/* --- 4つの保障 --------------------------- */
.insurance-section {
  position: relative;
  margin-top: 20%;
  padding-bottom: 3%;
  padding-top: 70px;
  background-image: url(images/header_firstview/背景模様.png);
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: 90% 20%;
  background-color: #ffffff;
}

.service-img {
  position: relative;
  width: 80%;
  margin-left: 5%;
}

.service-img-family {
  width: 35%;
}

.security-main {
  display: flex;
  flex-wrap: nowrap;
}

.four-security-aka {
  max-width: 650px;
  
}
.four-security-ao {
  max-width: 650px;
}

.service_title-1 {
  width: 40%;
  margin-left: 27%;
}
.service_title-2 {
  width: 40%;
  margin-left: 28%;
}

.insurance-card-1 {
  width: 35%;
  padding-top: 5%;
  padding-left: 10%;
}
.insurance-card-2 {
  width: 35%;
  padding-top: 5%;
  padding-left: 5%;
}
.insurance-card-3 {
  width: 35%;
  padding-top: 5%;
  padding-left: 10%;
}
.insurance-card-4 {
  width: 35%;
  padding-top: 5%;
  padding-left: 5%;
}

.insurance-card-1:hover {
  transform: translateY(-5px);
}
.insurance-card-2:hover {
  transform: translateY(-3px);
}
.insurance-card-3:hover {
  transform: translateY(-3px);
}
.insurance-card-4:hover {
  transform: translateY(-3px);
}

@media screen and (max-width: 768px) {
  .security-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .four-security-aka {
    max-width: 900px;
  }
  .four-security-ao {
    max-width: 900px;
  }
}

@media screen and (max-width: 375px) {
  .security-main {
    display: flex;
    align-items: center;
  }
  .four-security-aka {
    max-width: 900px;
  }
  .four-security-ao {
    max-width: 900px;
  }
}



/* 初期状態：下にずらして透明 */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

/* 表示されたときに適用される */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


/*想いセクション */
.Thoughts-img {
  position: relative;
  width: 300%;
  margin-left: -75%;
}

.Thoughts_yajirushi {
  position: relative;
  width: 100%;
  margin-left: 0%;
  margin-top: 0px
}

.overview-section {
  padding-top: 1px;
  padding-bottom: 10px;
  margin-top: 0px;
}

.overview {
  width: 20%;
  margin-left: 20%;
  margin-top: 20%;
  z-index: 3;
}

.Thoughts-img-title {
  position: absolute;
  display: flex;
  justify-content: center;
  width: 150%;
  margin-top: 360%;
}

.main-img-3 {
  position: absolute;
  display: flex;
  margin-left: -50%;
  margin-top: 30%;
  width: 400%;
  z-index: 1;
}

.overview a {
  margin-top: 4%;
  margin-left: -71%;
  padding-bottom: 0%; /* テキストと下線の間隔 */
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: bottom right; /* 下線の初期位置 */
  background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
  transition: background-size 0.7s;
}

.overview a:hover {
  text-decoration: none;
  font-weight: bold;
  color: #676667;
  background-position: bottom left; /* 下線のホバー時位置 */
  background-size: 100% 1px; /* 下線の横幅を100%にする */
}

@media screen and (max-width: 620px) {
  .Thoughts-img-title {
    width: 170%;
    margin-top: 360%;
  }
}
@media screen and (max-width: 460px) {
  .Thoughts-img-title {
    width: 200%;
    margin-top: 360%;
  }
}

/* 代表あいさつ */
.coment {
  position: relative;
  text-align: justify;
  font-size: 100%;
  font-family: A-OTF 秀英丸ゴシック Std;
  margin-top: 420%;
  margin-left: 0%;
  margin-right: -200%;
  line-height: 37px;
  color: #2d1703;
  background-color: #ffffff;
  padding-bottom: 20px;
}

.coment span {
  color: #B3549B;
  font-size: 80%;
}

@media screen and (max-width: 639px) {
  .coment {
    font-size: 95%;
    line-height: 35px;
  }
  .coment span {
    color: #B3549B;
    font-size: 70%;
  }
}
@media screen and (max-width: 637px) {
  .coment {
    font-size: 95%;
    line-height: 35px;
  }
  .coment span {
    color: #B3549B;
    font-size: 70%;
  }
}
@media screen and (max-width: 497px) {
  .coment {
    font-size: 95%;
    line-height: 35px;
  }
  .coment span {
    color: #B3549B;
    font-size: 70%;
  }
}
@media screen and (max-width: 481px) {
  .coment {
    font-size: 90%;
    line-height: 32px;
  }
}
@media screen and (max-width: 456px) {
  .coment {
    font-size: 87%;
    line-height: 30px;
  }
}
@media screen and (max-width: 384px) {
  .coment {
    font-size: 87%;
    line-height: 30px;
  }
}
@media screen and (max-width: 375px) {
  .coment {
    font-size: 80%;
    line-height: 25px;
  }
   .coment span {
    color: #B3549B;
    font-size: 57%;
  }
}
@media screen and (max-width: 354px) {
  .coment {
   font-size: 80%;
    line-height: 25px;
    margin-right: -210%;
  }
  .coment span {
    color: #B3549B;
    font-size: 50%;
  }
}
@media screen and (max-width: 339px) {
  .coment {
    font-size: 80%;
    line-height: 25px;
    margin-right: -225%;
  }
  .coment span {
    color: #B3549B;
    font-size: 50%;
  }
}

.name {
  font-size: 18px;
  font-family: TAあきこ;
  text-align: end;
  margin-top: 20px;
  margin-left: 1160px;
  color: #512542;
}

.name2 {
  font-size: 18px;
  font-family: TAあきこ;
  margin-top: 20px;
  margin-left: 1160px;
  color: #512542;
}

section.background-2 {
  margin-bottom: -10%;
}


/* グループ */
.overview-logo {
  position: relative;
  margin-top: 20%;
}

.group-text {
  position: relative;
  width: 40%;
  display: flex;
  margin: auto;
  margin-top: 10%;
}

.company-logo {
  position: relative;
  width: 20%;
  display: flex;
  margin: auto;
  margin-top: 0%;
  padding-top: 0%;
  animation: zoomIn 1s cubic-bezier(1, 3, 0.7, 2) forwards;
}

/* 初期状態（非表示 & 縮小） */
.bowan {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.bowan-2 {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 表示時の状態 */
.bowan.active {
  opacity: 1;
  transform: scale(1);
}
.bowan-2.active {
  opacity: 1;
  transform: scale(1);
}

@media screen and (max-width: 1150px) {
   .company-logo {
      margin-top: 0%;
      padding-top: 0%;
    }
}
@media screen and (max-width: 980px) {
  .company-logo {
    margin-top: 0%;
  }
}
@media screen and (max-width: 805px) {
  .company-logo {
    margin-top: 0%;
  }
}
@media screen and (max-width: 740px) {
  .company-logo {
    margin-top: 0%;
  }
}
@media screen and (max-width: 650px) {
  .company-logo {
    margin-top: 0%;
    width: 25%;
  }
}
@media screen and (max-width: 575px) {
  .company-logo {
    margin-top: 0%;
    width: 25%;
  }
}
@media screen and (max-width: 497px) {
  .company-logo {
    margin-top: 0%;
    width: 30%;
  }
}
@media screen and (max-width: 447px) {
  .company-logo {
    margin-top: 0%;
    width: 35%;
  }
}
@media screen and (max-width: 378px) {
  .company-logo {
    margin-top: 0%;
    width: 35%;
  }
}


/* --- お客様のお声 --- */
.voice-section {
  position: relative;
  max-width: 1000px;
  display: flex;
  margin: auto;
  padding: 7rem 10px;
  background-image: url(images/Voice/okoe_24843614_m.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 30% 60%;
  font-family:A-OTF 秀英丸ゴシック Std;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.3);
  overflow: hidden;
}

main {
  background-color: #ffffff;
  padding-top: 0px;
  bottom: 30px;
}

.voice-img {
  position: relative;
  display: flex;
  margin-top: 40%;
  margin-left: 5%;
  width: 60%;
  background-color: #fff;
  padding-top: 30px;
}

.Icon-img {
  position: absolute;
  margin-top: -20%;
  right: 7%;
  width: 25%;
}
.Icon-img:hover {
  transform: translateY(-10%);
  cursor: pointer;
}

/* --- コンテナ --- */
.voice-container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 1rem;
  backdrop-filter: blur(4px);
  margin-top: 10%;
  margin-bottom: -5%;
}

/* --- 各アイテム --- */
.voice-item + .voice-item {
  border-top: 1px dotted #f8a3c5;
}

.voice-question {
  width: 100%;
  background-color: #fff;
  color: #e573a0;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 1rem 2.5rem 1rem 1rem;
  position: relative;
  transition: background 0.3s ease, transform 0.2s ease;
  border-radius: 12px;
}

.voice-question:hover {
  background: #ffe9f1;
  transform: scale(1.02);
}

/* --- 矢印アイコン --- */
.voice-question::after {
  content: "＋";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #e573a0;
  transition: transform 0.3s ease;
}

.voice-question.active::after {
  content: "－";
}

/* --- 回答エリア --- */
.voice-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  background: #fffafc;
  border-radius: 12px;
  margin-top: 0.5rem;
}

.voice-answer p {
  padding: 1rem;
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* --- お声　レスポンシブ対応 --- */
@media screen and (max-width: 768px) {
  .voice-img {
    position: relative;
    display: flex;
    margin-top: 50%;
    margin-left: 5%;
    width: 60%;
  }
  .voice-section::before {
    font-size: 4rem;
  }
  .voice-title {
    font-size: 1.6rem;
  }
  .voice-question {
    font-size: 1rem;
  }
}

@media screen and (max-width: 440px) {
  .voice-img {
    position: relative;
    display: flex;
    margin-top: 61%;
    margin-left: 5%;
    width: 60%;
  }
}

@media screen and (max-width: 375px) {
  .voice-img {
    position: relative;
    display: flex;
    margin-top: 50%;
    margin-left: 5%;
    width: 60%;
  }
  .voice-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1rem;
    backdrop-filter: blur(4px);
    margin-top: 20%;
    margin-bottom: 10%;
  }
  .voice-section {
    padding: 2rem 10px;
  }
  .voice-section::before {
    font-size: 3rem;
  }
  .voice-title {
    font-size: 1.4rem;
  }
  .voice-question {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
  .voice-answer p {
    font-size: 0.8rem;
  }
}

/* ニュース・トピックス */
.NEWS-section {
  font-family: sans-serif;
  padding: 100px 70px 100px 70px;
  margin: 0;
  box-sizing: border-box;
  background-color: #ffffff;
}

.news-title {
  color: #d9304f;
  font-size: 40px;
}

.news-title span {
  color: #000000;
  font-size: 60px;
}

/* コンテナ：左タブ＋右コンテンツ */
.container {
  display: flex;
  gap: 20px;
}

/* 左側タブ縦並び */
.tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}

.tab-btn {
  padding: 8px 16px;
  border: 1px solid #ee69ab;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  text-align: left;
}

.tab-btn.active {
  background: #c90606;
  color: #fff;
}

.tab-btn:hover {
  background: #ca082c;
  transition: background 0.7s;
}

/* 右側カテゴリコンテンツ */
.categories {
  flex: 1;
}

.category-block {
  display: none;
  padding: 20px;
  border: 1px solid #ed5dae;
  border-radius: 6px;
}

.category-block.active {
  display: block;
}

.items .item {
  padding: 10px 0;
  border-bottom: 1px dotted #ed5dae;
}

/* ページネーション */
.pagination {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.pagination button {
  padding: 6px 10px;
  border: 1px solid #ed5dae;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.pagination button.active {
  background: #c61010;
  color: white;
}

.pagination button:hover {
  background: #e40606;
  color: white;
}

.arrow {
  font-size: 18px;
  color: #aaa;
  margin-left: 10px;
  transition: transform 0.3s, color 0.3s;
  text-decoration-line: none;
}

.arrow:hover {
  transform: translateX(5px);
  color: #d9304f;
}

.date {
  font-size: 12px;
  color: #c50e17;
}

.tag {
  font-size: 15px;
  color: #791e6a;
}

.news-url {
  font-size: 15px;
  text-decoration: none;
  color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .news-title {
    color: #d9304f;
    font-size: 100%;
    text-align: center;
  }
  .news-title span {
    color: #000000;
    font-size: 60px;
  }
  .container {
    flex-direction: column;
  }
  .tab-btn {
    text-align: center;
    flex: 1;
  }
}


/* 各種リンクロゴ */
.LINKS {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0%;
  padding-bottom: 3%;
  gap: 7%;
  z-index: 4;
  background-color: #ffffff;
}
.kinyu-logo {
  width: 200px;
  margin-bottom: 0%;
}
.shougakutanki-logo { 
  width: 200px;
  margin-top: 11%;
}
.koutekihoken-logo {
  width: 250px;
  margin-top: 12%;
}

@media screen and (max-width: 768px) {
  .LINKS {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0%;
    padding-bottom: 3%;
    gap: 3%;
    z-index: 4;
  }
  .kinyu-logo {
    width: 135px;
    margin-bottom: 0%;
  }
  .shougakutanki-logo { 
    width: 135px;
    margin-top: 11%;
  }
  .koutekihoken-logo {
    width: 135px;
    margin-top: 12%;
  }
}
@media screen and (max-width: 610px) {
  .LINKS {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0%;
    gap: 3%;
  }
}

@media screen and (max-width: 475px) {
  .LINKS {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0%;
    gap: 3%;
  }
}

@media screen and (max-width: 375px) {
  .LINKS {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0%;
    padding-bottom: 10%;
    gap: 3%;
  }
}

/* ====== フッター全体 ====== */
.wave-footer {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-top: 200px;
}

/* ====== フッター内容 ====== */
.footer-content {
  background-color: #4a0e70;
  color: #fff;
  padding: 5rem 1rem 3rem;
  position: relative;
  z-index: 2;
  margin-top: -2%;
}

.footer-content h2 {
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: rgb(255, 255, 255);
}

.footer-content h2 span {
  font-size: 1.2rem;
  vertical-align: middle;
  color: gold;
}

.footer-content hr {
  border: none;
  border-top: 1px dotted #d6c9bc;
  width: 60%;
  margin: 1rem auto 3rem;
}

.wave-svg {
  padding-bottom: 0%;
}

.question_btn {
  width: 250px;
  cursor: pointer;
}

.question_btn:hover {
  opacity: 70%;
}

@media screen and (max-width: 430px) {
  .question_btn {
  width: 200px;
}
}

/* ====== メニュー部分 ====== */
.footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: auto;
  gap: 1rem;
}

ul.lineup {
  padding: 0%;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 240px;
}

.hoken-icon {
  width: 30%;
}

.footer-item .text p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #f5f5f5;
}

.lineup a {
  text-decoration: none;
  color: #ffffff; 
  font-size: 0.8rem;
}

.lineup span {
  font-size: 70%;
}

.lineup li {
  list-style: none;
  color: #ffffff; 
  text-align: left;
}

.lineup a {
  text-decoration: none;
  color: #ffffff;
  padding-bottom: 2px; /* テキストと下線の間隔 */
  background-image: linear-gradient(#ffffff, #ffffff);
  background-repeat: no-repeat;
  background-position: bottom right; /* 下線の初期位置 */
  background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
  transition: background-size 0.5s;
}
.lineup a:hover {
  background-position: bottom left; /* 下線のホバー時位置 */
  background-size: 100% 1px; /* 下線の横幅を100%にする */
}

/* ====== コピーライト ====== */
.copyright {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: #ddd;
}

/* 承認番号 */
.shounin {
  font-size: 0.7rem;
  color: #ddd;
  margin: 5% 0% 0 60%;
}

/* ====== レスポンシブ対応 ====== */
@media screen and (max-width: 768px) {
  .footer-menu {
    flex-direction: column;
    align-items: center;
  }
  .footer-item {
    width: 80%;
  }
  .footer-content h2 {
    font-size: 1.3rem;
  }
}