@charset "UTF-8";

/*---------------共通---------------*/
.content1 h1 {
  text-align: center;
}
.content1 p {
  text-align: left;
}
/* .content2 {
  background-color: #5bb9cd; }*/

/*---------------PC---------------*/

@media only screen and (min-width: 900px) {
  /*----------------KeyV---------------*/
  .bxslider li img {
    display: block;
    margin: 0 auto;
    /* padding-top: 60px; */
  }

  /*----------------コンテンツ---------------*/
  .content1,
  .content2 ul,
  .content3 {
    width: 900px;
    margin: 0 auto;
  }
  .content1 {
    margin-bottom: 100px;
  }
  .content1 h1 {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .content1 p {
    width: 90%;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.9em;
  }

  /*----------------メインメニュー---------------*/
  .content2 ul {
    padding: 30px 0;
  }
  .content2 ul li:first-child {
    float: left;
  }

  .main-menu1 a img {
    margin: 0 40px 20px 20px;
  }
  .main-menu1-1 {
    margin-bottom: 20px;
  }
  .main-menu2 a img {
    margin-right: 15px;
    float: left;
  }
  .main-menu4 {
    margin: 10px;
  }

  /*----------------新着情報---------------*/
  .content3 {
    margin-top: 25px;
    background-image: url(../img/news_back.png);
    background-position: center top;
    background-repeat: no-repeat;
    height: 500px;
  }
  .content3_wrapper ul {
    padding-top: 170px;
    padding-bottom: 5px;
    margin-left: 50px;
    width: 520px;
    height: 20px;
    border-bottom: 2px solid #fff;
    opacity: 0.9;
  }
  .content3_wrapper ul li,
  .content3_wrapper ul li a {
    float: left;
    color: #ffffff;
    margin-right: 40px;
    font-weight: bold;
    font-size: 12px;
  }
  .content3_wrapper ul li:first-child {
    font-size: 20px;
    margin-left: 10px;
  }
  .content3_wrapper ul li a {
    margin: 0;
    padding-left: 100px;
  }
  .content3_wrapper ul li + li {
    margin-top: 7px;
  }
  .post_text {
    margin-top: 15px;
    margin-left: 60px;
    color: #ffffff;
  }
  .post-title a {
    color: #ffffff;
    margin-left: 20px;
    font-size: 16px;
    border-bottom: 1px solid #ffffff;
  }

  /*----------------バナー---------------*/
  .bnr {
    display: block;
    width: 900px;
    margin: 0 auto;
  }
  .bnr ul {
    margin: 40px 0;
  }
  .bnr ul li:first-child img {
    float: left;
    margin-left: 20%;
  }
  .bnr ul li + li img {
    margin-left: 50px;
  }
}
/*---------------タブレット---------------*/

@media only screen and (min-width: 600px) and (max-width: 899px) {
  /*----------------コンテンツ---------------*/
  .content1,
  .content2 ul {
    width: 580px;
    margin: 0 auto;
  }
  .content1 {
    margin-bottom: 50px;
  }
  .content1 h1 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .content1 p {
    width: 90%;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8em;
  }
  /*----------------メインメニュー---------------*/
  #content2_wrapper {
    width: 100%;
    padding: 20px;
  }
  .main-menu1 a img {
    width: 43%;
    float: left;
    margin: 0 10px 10px 10px;
  }
  .main-menu1-1 a img {
    width: 45%;
    margin-bottom: 10px;
  }
  .main-menu2 a img {
    width: 22%;
    margin-right: 5px;
    float: left;
  }
  .main-menu3 a img {
    width: 22%;
    float: left;
  }
  .main-menu4 a img {
    width: 45%;
    margin-top: 10px;
  }
  /*----------------新着情報---------------*/
  .content3 {
    margin-top: 25px;
    background-image: url(../img/news_back.png);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    height: 300px;
  }
  .content3_wrapper {
    width: 100%;
  }
  .content3_wrapper ul {
    padding-top: 100px;
    padding-bottom: 5px;
    height: 20px;
    border-bottom: 1px solid #fff;
    opacity: 0.9;
  }
  .content3_wrapper ul li,
  .content3_wrapper ul li a {
    float: left;
    color: #ffffff;
    margin-right: 40px;
    font-weight: bold;
    font-size: 12px;
  }
  .content3_wrapper ul li:first-child {
    font-size: 20px;
    margin-left: 30px;
  }
  .content3_wrapper ul li a {
    margin: 0;
    padding-left: 70px;
  }
  .content3_wrapper ul li + li {
    margin-top: 7px;
  }
  .post_text {
    margin-top: 10px;
    margin-left: 50px;
    color: #ffffff;
  }
  .post-title a {
    color: #ffffff;
    margin-left: 20px;
    font-size: 16px;
    border-bottom: 1px solid #ffffff;
  }

  /*----------------バナー---------------*/
  .bnr {
    width: 599px;
    margin: 0 auto;
    padding: 30px 0;
  }
  .bnr ul {
    width: 100%;
    margin: 20px 0;
  }
  .bnr ul li:first-child img {
    float: left;
  }
  .bnr ul li + li img {
    margin-left: 20px;
  }
}

/*---------------スマホ---------------*/

@media only screen and (max-width: 599px) {
  #contents_wrapper {
    width: 100%;
    margin: 0 auto;
  }
  .content1 h1 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .content1 p {
    width: 90%;
    margin: 0 auto;
  }
  /*----------------メインメニュー---------------*/
  .content1,
  .content2 ul,
  .content3,
  .bnr {
    margin: 0 auto;
  }
  .content1 {
    margin-bottom: 30px;
  }
  .content2 ul {
    text-align: center;
    margin: 10px;
    padding-top: 10px;
  }
  /* .main-menu1 a img {
    width: 100%;
  } */
  .main-menu1-1 a img {
    /* width: 100%; */
    margin: 10px 0;
  }
  .main-menu2 a img {
    width: 45%;
    float: left;
  }
  .main-menu3 a img {
    width: 45%;
    float: right;
  }
  .main-menu4 a img {
    width: 100%;
    margin: 10px 0;
  }

  /* 新着情報・お知らせのデザイン ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/
  .content3 {
    margin-top: 25px;
    height: 300px;
  }
  .content3_wrapper {
    width: 100%;
  }
  .content3_wrapper ul {
    padding-top: 50px;
    padding-bottom: 3px;
    height: 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 3px;
  }
  .content3_wrapper ul li,
  .content3_wrapper ul li a {
    float: left;
    margin-right: 5px;
    font-weight: bold;
    font-size: 12px;
  }
  .content3_wrapper ul li:first-child {
    font-size: 16px;
    margin-left: 10px;
    margin-right: 20px;
  }
  .content3_wrapper ul li:nth-child(3) {
    display: none;
  }
  .content3_wrapper ul li a {
    margin: 0;
    padding-left: 40px;
  }
  .content3_wrapper ul li + li {
    margin-top: 2px;
  }
  .post_text {
    margin-top: 5px;
    margin-left: 20px;
  }
  .post-title a {
    margin-left: 20px;
    color: #0066ff;
    border-bottom: 1px solid #0066ff;
  }

  /*----------------バナー---------------*/
  .bnr ul {
    width: 100%;
    text-align: center;
    margin: 15px 0;
  }
  .bnr ul li img {
    margin: 10px 0;
    overflow: hidden;
    background-color: #000;
  }
}

/* =========================================
   共通の枠組み・リストの初期化
========================================= */
.cs-news-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2em;
}

.cs-news-list {
  list-style: none; /* テーマ標準の黒ポッチを消す */
  padding: 0;
  margin: 0;
  border-top: 1px solid #e2e8f0; /* リスト全体の上枠線 */
}

.cs-news-item {
  border-bottom: 1px solid #e2e8f0; /* 各項目の区切り線 */
}

/* =========================================
   リンク要素（横並びレイアウト）
========================================= */
.cs-news-link {
  display: flex; /* 日付とタイトルを横並びにする */
  align-items: center; /* 縦方向の中央揃え */
  padding: 16px 12px;
  text-decoration: none !important; /* デフォルトの下線を消去 */
  color: #333;
  transition: background-color 0.3s ease; /* ホバー時のふわっとした変化 */
}

/* マウスを乗せた時の背景色 */
.cs-news-link:hover {
  background-color: #f8fafc;
}

/* =========================================
   日付とタイトル
========================================= */
.cs-news-date {
  font-size: 0.9rem;
  color: #64748b;
  margin-right: 24px; /* タイトルとの隙間 */
  white-space: nowrap; /* 画面が狭くなっても日付を改行させない */
}

.cs-news-title {
  font-size: 1rem;
  font-weight: 700;
  /* color: #1e293b; */

  /* ▼ はみ出たテキストを「...」で省略する ▼ */
  white-space: nowrap; /* 改行を禁止 */
  overflow: hidden; /* はみ出た部分を隠す */
  text-overflow: ellipsis; /* 「...」を表示 */
}

/* =========================================
   レスポンシブ対応（スマホ表示時は縦並びに）
========================================= */
@media screen and (max-width: 640px) {
  .cs-news-link {
    flex-direction: column; /* 横並びから縦並びに変更 */
    align-items: flex-start; /* 左揃えにする */
    padding: 16px;
  }
  .cs-news-date {
    margin-bottom: 6px; /* 縦並びになった時の日付とタイトルの隙間 */
  }
  .cs-news-title {
    width: 100%; /* 省略（...）を正しく機能させるための必須指定 */
  }
}

/* 新着情報・お知らせのデザイン ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーここまでーーーーー*/

/* 約束のデザイン ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/
.section-container {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

.header-box {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 2.5px solid #83868b;
  border-radius: 50px;
  padding: 8px 24px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #333;
  box-shadow: 3px 3px 0px #83868b;
  margin-bottom: 16px;
  /* transform: rotate(-1deg); */
}

.sub-badge i {
  color: #10b981;
  font-size: 1.1rem;
}

.main-title {
  /* font-family: "M PLUS Rounded 1c", sans-serif; */
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.45;
  color: #333;
  letter-spacing: -0.5px;
}

.main-title .highlight-blue {
  color: #0284c7;
  background: linear-gradient(transparent 65%, #e0f2fe 65%);
  padding: 0 6px;
  border-radius: 4px;
}

.main-title .number-three {
  font-family: "Poppins", sans-serif;
  font-style: italic;
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin: 0 4px;
  line-height: 1;
  vertical-align: -6px;
  filter: drop-shadow(3px 3px 0px #333);
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 22px solid #059669;
  margin: 18px auto 0 auto;
  filter: drop-shadow(0px 3px 0px #333);
}

.grid-frame {
  background-color: #ffffff;
  border: 4px solid #83868b;
  border-radius: 24px;
  box-shadow: 8px 12px 0px #83868b;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}

.grid-item {
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  background: #ffffff;
  transition: background-color 0.3s ease;
}

.grid-item:hover {
  background-color: #f7fbf9;
}

.grid-item:not(:last-child) {
  border-right: 3.5px solid #83868b;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.stylish-num-badge {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  position: relative;
  transform: rotate(-6deg);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.grid-item:hover .stylish-num-badge {
  transform: rotate(0deg) scale(1.08);
}

.badge-bg {
  width: 100%;
  height: 100%;
  border: 3.5px solid #333;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 4px 4px 0px #333;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.badge-1 {
  background: linear-gradient(135deg, #caaf54 0%, #f1e6bf 100%);
}
.badge-2 {
  background: linear-gradient(135deg, #0284c7 0%, #4cc7fc7a 100%);
}
.badge-3 {
  background: linear-gradient(135deg, #10b981 0%, #a7f3d0 100%);
}

.num-text {
  font-family: "Poppins", sans-serif;
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow:
    2.5px 2.5px 0px #333,
    -1px -1px 0px #333,
    1px -1px 0px #333,
    -1px 1px 0px #333;
  z-index: 2;
}

.badge-bg::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 10%,
    transparent 20%
  );
  background-size: 8px 8px;
  opacity: 0.6;
  pointer-events: none;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: #333;
  padding-top: 4px;
  padding-left: 6px;
}

.highlight-green {
  color: #b39533;
  background: linear-gradient(transparent 70%, #dddd8485 70%);
}
.highlight-blue {
  color: #0284c7;
  background: linear-gradient(transparent 70%, #e0f2fe 70%);
}
.highlight-teal {
  color: #5eabbd;
  background: linear-gradient(transparent 70%, #ccfbf1 70%);
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.card-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #334155;
  font-weight: 500;
}

.card-image-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: 8px;
}

.icon-badge-box {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid #333;
  background-color: #f8fafc;
  box-shadow: 3px 3px 0px #333;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-badge-box i {
  font-size: 2.5rem;
}

@media (max-width: 900px) {
  .main-title {
    font-size: 1.5rem;
  }
  .main-title .number-three {
    font-size: 3.2rem;
  }

  .grid-frame {
    grid-template-columns: 1fr;
    border-width: 3.5px;
    box-shadow: 6px 8px 0px #83868b;
    margin: 0 10px;
  }

  .grid-item {
    min-height: auto;
    padding: 26px 20px;
  }

  .grid-item:not(:last-child) {
    border-right: none;
    border-bottom: 3.5px solid #83868b;
  }

  .card-body {
    flex-direction: row;
    align-items: flex-end;
  }

  .card-image-wrap {
    margin-top: 0;
    flex-shrink: 0;
  }

  .icon-badge-box {
    width: 68px;
    height: 68px;
  }
  .icon-badge-box i {
    font-size: 2.2rem;
  }
}
/* 約束のデザイン ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーここまでーーーーー*/

/* リンク集 ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/

/* 1. コンテンツ枠全体の親コンテナ */
.banner-section {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* セクションタイトル */
.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #333;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #5bb9cd;
  border-radius: 2px;
}

/* 2. メインの大型バナー (1列ワイド) */
.main-banner-wrapper {
  margin-bottom: 20px;
}

.banner-card {
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 16px;
  padding: 24px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* メインバナーのスタイル（グラデーション背景） */
.banner-card.primary {
  background: linear-gradient(135deg, #5bb9cd 0%, #115e59 100%);
  color: #ffffff;
  border: 3px solid #1a2b27;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}

.banner-card.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.35);
}

.banner-icon {
  font-size: 2.2rem;
  margin-right: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-content {
  flex: 1;
}

.banner-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #facc15;
  color: #1a2b27;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.banner-title {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.3;
}

.banner-desc {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-top: 4px;
}

.banner-arrow {
  font-size: 1.4rem;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.banner-card:hover .banner-arrow {
  transform: translateX(6px);
}

/* 3. 中型バナー (2列グリッド) */
.sub-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

@media (min-width: 640px) {
  .sub-banner-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 中バナーのスタイル（白背景＋太枠） */
.banner-card.secondary {
  background-color: #ffffff;
  color: #333;
  border: 3px solid #83868b;
  box-shadow: 4px 4px 0px #83868b;
  margin: 0 10px;
}

.banner-card.secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #83868b;
  background-color: #f0fdfa;
}

.banner-card.secondary .banner-icon {
  background-color: #e6f4f0;
  color: #5bb9cd;
}

/* 4. スモールリンク集 (3列/2列グリッド) */
.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 10px 20px 10px;
}

@media (min-width: 640px) {
  .link-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  text-decoration: none;
  color: #334155;
  /* font-weight: 700; */
  font-size: 0.95rem;
  transition: all 0.2s ease;
  margin: 0 10px;
}

.link-item:hover {
  border-color: #5bb9cd;
  color: #5bb9cd;
  background-color: #f0fdfa;
  transform: translateY(-2px);
}

.link-item i.left-icon {
  margin-right: 10px;
  color: #5bb9cd;
}

.link-item i.right-arrow {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.link-item:hover i.right-arrow {
  color: #5bb9cd;
  transform: translateX(4px);
}

.link-title {
  font-weight: 900;
  margin-bottom: 0.5rem;
}
/* リンク集 ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーここまでーーー*/

/* フッター ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/
.navbar {
  display: flex;
  justify-content: space-between; /* 両端に配置 */
  align-items: flex-start;
}

/* フッター ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーここまでーーー*/
