.loop-bg {
  width: 100%;
  height: auto;
  background-image: url('../assets/original-0a500885c673de91.jpg');
  background-repeat: repeat-x;
  background-size: 1920px 1080px;
  background-position: 0 0;
  animation: bg-loop 20s linear infinite;
  padding: 140px 0;
}

@keyframes bg-loop {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -1920px 0;
  }
}

/**カード型** 
 * /* =========================================
   1. グリッド設定
========================================= */
.cs-ttl-st4-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  width: 1200px;
  margin-bottom: 2em;
  align-items: center;
  /* カードの高さを揃える */
  margin: 0 auto;
}

/* =========================================
   2. カード本体（立体シャドウ）
========================================= */
.cs-ttl-st4-item {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  /* 多重の影で立体感を演出 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ホバー時に影を深くしてカードが浮き上がる */
.cs-ttl-st4-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 強調プランのスタイル */
.cs-ttl-st4-featured {
  border: 2px solid #2589d0;
  transform: scale(1.05);
  /* 少し大きく表示 */
}

/* =========================================
   3. テキスト・価格 */
========================================= */
.cs-ttl-st4-title {
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 24px;
  font-family: "Zen Kaku Gothic Antique";
}

.cs-ttl-st4-ttl {
  font-size: 34px;
  font-weight: 700;
  color: #1d2088;
  margin-bottom: 24px;
  font-family: "Zen Kaku Gothic Antique";
}

cs-ttl-st4-ttl
.cs-ttl-st4-ttl span {
  font-size: 0.9rem;
  color: #94a3b8;
}

.cs-ttl-st4-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.cs-ttl-st4-list li {
  padding: 8px 0;
  color: #4a5568;
  font-size: 0.9rem;
}

/* =========================================
   4. ボタン */
========================================= */
.cs-ttl-st4-btn {
  display: block;
  padding: 14px;
  border-radius: 8px;
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.3s ease;
}

.cs-ttl-st4-btn:hover {
  background-color: #e2e8f0;
}

.cs-ttl-st4-btn-active {
  background-color: #2589d0;
  color: #ffffff;
}

.cs-ttl-st4-btn-active:hover {
  background-color: #1a6da7;
}

/* =========================================
   5. レスポンシブ */
========================================= */
@media screen and (max-width: 480px) {
  .cs-ttl-st4-featured {
    transform: scale(1);
    /* スマホ時は拡大を解除 */
  }
}

/**ボタン**/
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn-gradient-animated {
  background: linear-gradient(270deg, #1d2088, #3a7bd5, #27ad3a);
  background-size: 200% 200%;
  color: white;
  border: none;
  padding: 14px 36px;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: gradientMove 3s ease infinite;
}

.btn-gradient-animated:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.cs-feat-st2-number {
  position: absolute;
  top: -29px;
  left: 160px;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: #1d2088cc;
  transition: color 0.3s ease;
}

.btn-gradient-animated a {
  color: #fff;
  !important;
}

/* カードホバー時に数字の色を変化させる */
.cs-feat-st2-item:hover .cs-feat-st2-number {
  color: #dbeafe;
}

/*タイムライン*/
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 3px solid #1d2088;
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-date {
  font-weight: bold;
  color: #1d2088;
  margin-bottom: 0.3rem;
  margin-left: 0.8rem;
  font-size: 24px;
}

.timeline-content {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.4rem;
  width: 16px;
  height: 16px;
  background: #1d2088;
  border-radius: 50%;
}

/*ContactForm7カスタマイズ*/
table.CF7_table {
  width: 100%;
  margin: 0 auto;
  border: 1px solid #cbe1eb;
}

table.CF7_table tr {
  border-top: 1px solid #e5e5e5;
}

.single .entry-content table.CF7_table,
.page .entry-content table.CF7_table {
  display: table;
}

/*入力欄*/
.CF7_table input, .CF7_table textarea {
  border: 1px solid #d8d8d8;
}

.CF7_table ::placeholder {
  color: #797979;
}

.selectotoiawase .wpcf7-form-control.wpcf7-select.wpcf7-validates-as-required {
  width: 90%;
}

/*「必須」文字*/
.CF7_req {
  font-size: .9em;
  padding: 5px;
  background: #27ad3a;
  color: #fff;
  border-radius: 3px;
  margin-right: 1em;
}

/*「任意」文字*/
.CF7_unreq {
  font-size: .9em;
  padding: 5px;
  background: #bdbdbd;
  /*グレー*/
  color: #fff;
  border-radius: 3px;
  margin-right: 1em;
}

/* タイトル列 */
@media screen and (min-width: 768px) {
  .CF7_table th {
    width: 30%;
    /*横幅*/
    background-color: #f7f7f7;
    /*グレー*/
  }
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  table.CF7_table {
    width: 95%;
  }
  .CF7_table tr, .CF7_table td, .CF7_table th {
    display: block;
    width: 100%;
    line-height: 2.5em;
  }
  .CF7_table th {
    background-color: #ebedf5;
  }
}

/* 「送信する」ボタン */
.wpcf7 input.wpcf7-submit {
  background-color: #27ad3a;
  border: 0;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  margin: 0 auto;
}

.CF7_btn {
  text-align: center;
  margin-top: 20px;
}

.wpcf7-spinner {
  width: 0;
  margin: 0;
}
