/* メインビジュアルセクション */
.top_mainvisual_section {
  position: relative; /* テキストを重ねるために必要 */
  width: 100%;
  height: 700px;
  overflow: hidden;
}

.top_mainvisual_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top_mainvisual_text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  font-size: 3.4rem;
  line-height: 1.6;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 1.6);

  /* 👇 幅調整 */
  max-width: 980px;
  width: 90%;
  padding: 0 20px;
  box-sizing: border-box;
}

.top_mainvisual_text strong {
  font-size: 4.8rem;
  display: inline-block;
  margin-top: 1rem;
}

/* 新着情報セクション */
.top_info_section {
  background-color: #f9f9f9;
  padding: 40px 20px;
}

.top_info_container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center; /* ← これを追加！ */
}

.top_info_title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #46aa36;
  display: inline-block;
  padding-bottom: 5px;
}

.top_info_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top_info_item {
  display: flex;
  align-items: center;
  border-bottom: 1px dotted #ccc;
  padding: 10px 0;
  font-size: 1.2rem;
}

.top_info_date {
  width: 160px;
  color: #555;
  flex-shrink: 0;
}

.top_info_link {
  color: #333;
  text-decoration: none;
  position: relative;
}

.top_info_link:hover {
  text-decoration: underline;
}

.top_info_badge {
  background-color: #ff5e5e;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  margin-left: 10px;
  border-radius: 3px;
  vertical-align: middle;
}

.top_info_new .top_info_link {
  font-weight: bold;
}

.top_info_section {
  position: relative;
}

/* お知らせ一覧ボタン */
.top_info_button_wrapper {
  text-align: right;
  margin-top: 10px;
}

.top_info_button {
  display: inline-block;
  background-color: #ffffff; 
  color: #333;
  padding: 6px 16px;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid #d1d0d08e; 
  border-radius: 4px;
  transition: background-color 0.3s, border-color 0.3s;
}

.top_info_button:hover {
  background-color: #f2fcf4;
  border-color: #d6d6d6; /* ホバー時の濃いグリーン強調 */
}



/* お問合せくださいセクション */
.top_contact_section {
  text-align: center;  
  padding: 40px 20px;
  background-color: #eaf1ee;
  background-image: repeating-linear-gradient(
    45deg,         /* ストライプの角度：45度の斜め */
    #eaf1ee,       /* ベース色 */
    #eaf1ee 10px,  /* 10pxごとに切り替え開始 */
    #dce8e3 10px,  /* ストライプ色 */
    #dce8e3 20px   /* 20pxごとにループ */
  );
}


.top_contact_container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
}

.top_contact_image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
}

.top_contact_text {
  flex: 1;
  font-size: 26px;
  line-height: 1.8;
  font-weight: bold;
}

.top_contact_note--red {
  color: red;
}

/* リンクボタンセクション */
.top_link_section {
  margin: 60px auto;
  padding: 0 20px;
  max-width: 1200px;
  text-align: center; /* タイトル中央寄せに必要 */
  margin-bottom: 140px; /* 下側のスペース。必要に応じて調整可能 */
}

.top_link_buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.top_link_button {
  display: inline-block;
  text-align: center;
  background-color: #4CAF50; /* グリーン系 */
  color: white;
  text-decoration: none;
  padding: 20px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 180px;
}

.top_link_button:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

/* -------------------- メインビジュアル：スマホ調整（〜767px） -------------------- */
@media (max-width: 767px) {
  .top_mainvisual_section {
    height: 300px; /* ✅ スマホ時に高さを2/3に縮小 */
  }

  .top_mainvisual_text {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 10px;
  }

  .top_mainvisual_text strong {
    font-size: 1.4rem;
  }
}

/* -------------------- スマホ用：お知らせリスト縦並び調整 -------------------- */
@media (max-width: 767px) {
  .top_info_item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 15px 0;
  }

  .top_info_date {
    width: auto;
    font-size: 0.9rem;
    color: #777;
  }

  .top_info_link {
    font-size: 1.1rem;
  }

  .top_info_badge {
    font-size: 0.7rem;
    margin-left: 6px;
  }
}

/* -------------------- スマホ用：お問い合わせテキスト調整 -------------------- */
@media (max-width: 767px) {
  .top_contact_text {
    font-size: 16px; /* 元が22px → 16px に控えめに調整 */
    line-height: 1.7;
  }

  .top_contact_note--red {
    font-size: 15px; /* 補足文もやや控えめに */
  }
}
