@charset "utf-8";
/* CSS Document */ :root {
  --main-color: #008132;
  --border-color: #ddd;
  --bg-light-gray: #f0f0f0;
  --bg-light: #f9f9f9;
}
.flow-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  /*border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);*/
  overflow: hidden;
}
.tab-nav {
  display: flex;
  list-style: none;
  padding: 2em 2em 0 2em;
  margin: 0;
  border-bottom: 5px solid var(--main-color);
}
.tab-nav-item {
  flex: 1;
}
.tab-nav-link {
  /* --- レイアウト --- */
  display: block;
  width: 100%;
  padding: 0.7em 0.5em;
  /* --- スタイル (非アクティブ時) --- */
  color: #333;
  font-weight: 700;
  text-align: center;
  background-color: var(--bg-light-gray);
  /* 境界線（上左右） */
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
  font-size: 1.2rem;
  white-space: nowrap; /* 高さを揃えるため改行を禁止 */
  transition: all 0.2s ease-in-out;
  border-bottom: none;
}
/* 非アクティブなタブ同士の境界線が重ならないように調整 */
.tab-nav-item + .tab-nav-item .tab-nav-link {
  margin-left: -1px;
}
/* 角丸の設定 (上部のみ) */
.tab-nav-item:first-child .tab-nav-link {
  border-top-left-radius: 8px;
}
.tab-nav-item:last-child .tab-nav-link {
  border-top-right-radius: 8px;
}
/* ホバー時（非アクティブなもの） */
.tab-nav-link:not(.active):hover {
  background-color: #e9e9e9;
}
/* アクティブ時のスタイル */
.tab-nav-link.active {
  background-color: var(--main-color);
  color: #fff;
  /* アクティブ時の境界線（上左右） */
  border-top-color: var(--main-color);
  border-left-color: var(--main-color);
  border-right-color: var(--main-color);
  z-index: 2;
  position: relative;
  border-bottom: none;
}
/* --- タブコンテンツパネル --- */
.tab-panel {
  display: none;
  padding: 2em 1em 0;
}
.tab-panel.active {
  display: block;
}
/* --- Swiper (SP/PC共通設定) --- */
.swiper {
  /*width: 100%;*/
  padding-bottom: 40px;
}
.swiper-slide {
  height: auto;
}
/* --- フローの各ステップ (カード) --- */
.flow-step {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.flow-step-header {
  padding: 1em 1.2em;
}
.step-num {
  font-size: clamp(0.9rem, 0.741rem + 0.34vw, 1rem);
  font-weight: 700;
  color: #fff;
  background-color: #007CBF;
  padding: 0.3em 0.8em;
  border-radius: 50px;
  display: inline-block;
}
.tab-panel h3 {
  width: 50%;
  font-size: clamp(1.2rem, 0.883rem + 0.69vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  background-color: #007CBF;
  padding: 0.5em 0.8em; /* 少し厚みを持たせました */
  border-radius: 8px;
  text-align: center;
  margin: 0 auto;
  /* 吹き出しの基準位置 */
  position: relative;
  /* 吹き出しの▼とSwiperの間の余白 */
  margin-bottom: calc(1.5rem + 10px); /* (元の余白 + ▼の高さ) */
}
/* 吹き出しの▼部分 */
.tab-panel h3::after {
  content: '';
  position: absolute;
  /* 下部中央に配置 */
  bottom: -10px; /* 三角形の高さ分(10px)だけ下げる */
  left: 50%;
  transform: translateX(-50%);
  /* 三角形を作成 */
  width: 0;
  height: 0;
  border-style: solid;
  /* 上向きの三角形を作成 (上, 左右, 下) */
  border-width: 10px 10px 0 10px;
  /* 三角形の上辺だけに色を付け、他は透明に */
  border-color: #007CBF transparent transparent transparent;
}
.arrow {
  background: #e30000;
  height: calc(tan(60deg) * 40px / 2);
  width: 60px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  margin: 0 auto 1.5rem;
}
.tab-txt {
  text-align: center;
  font-size: clamp(0.9rem, 0.583rem + 0.69vw, 1.1rem);
  margin-bottom: 1.5rem;
}
.flow-step-body {
  padding: 0 1.2em 1.2em;
  flex-grow: 1;
}
.flow-step-body img {
  width: 94%;
  height: auto;
  margin: 0 3%;
  border-radius: 4px;
  margin-bottom: 1em;
}
.flow-step-body h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5em 0;
  color: #333;
}
.flow-step-body .note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 1em;
  border-top: 1px dashed var(--border-color);
  padding-top: 0.8em;
}
/* Swiperのナビゲーション色 */
.swiper-pagination-bullet-active {
  background-color: var(--main-color);
}
.swiper-scrollbar-drag {
  background-color: var(--main-color);
}
@media (min-width: 737px) {
  .swiper-wrapper {
    justify-content: center;
  }
}
/* レスポンシブ対応 (SP) */
@media (max-width: 736px) {
  .flow-container {
    border-radius: 0;
  }
  /* SP用のタブデザイン調整 */
  .tab-nav {
    padding: 1em 0 0 0; /* SPのタブ余白 */
  }
  .tab-nav-link {
    font-size: 0.9rem; /* SPの文字サイズ */
    padding: 0.8em 0.25em;
  }
  .tab-panel {
    padding: 1.5em 0; /* SPでは左右のpaddingをSwiperに任せる */
  }
  .swiper {
    /*padding-left: 1.5em;*/
    padding-right: 1.5em;
  }
  .flow-step-body img {
    width: 100%;
  }
  .tab-txt {
    text-align: left;
  }
  .arrow {
    background: #e30000;
    height: calc(tan(60deg) * 30px / 2);
    width: 40px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    margin: 1.5rem auto;
  }
}