@charset "utf-8";

main {
  position: relative;
}

/* パンくず */
.breadcrumbs {
  max-width: 1300px;
  margin: 0 auto 16px;
  font-size: 14px;
  color: #666;
}

.breadcrumbs_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs_item:not(:last-child)::after {
  content: '-';
  margin-left: 8px;
  color: #999;
}

.breadcrumbs_link {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs_link:hover {
  text-decoration: underline;
}

.breadcrumbs_current {
  color: #333;
}

.logo_bg {
  position: absolute;
  bottom: 50px;
  left: -10%;
  width: 110%;
  z-index: -1;
}

.main_visual {
  position: relative;
  overflow: hidden;
}

.main_visual_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main_visual_content {
  width: 100%;
  height: 100%;
}

.main_visual_content h2 {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  font-size: 3.5vw;
  font-style: italic;
  color: #172a88;
  width: max-content;
  line-height: 1.2;
}

.main_visual_content h2 .comma {
  letter-spacing: -0.3em;
}

.main_visual_content h2 .sub_title {
  font-size: 1.25vw;
  font-weight: 400;
  color: #333;
}

.en {
  font-size: 20px;
  color: #036eb8;
  font-weight: bold;
}

/* PLAN セクション */

.plan_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 30px auto 60px;
  max-width: 1400px;
  padding: 0 20px;
}

.plan_item {
  background: #e8f4fa;
  position: relative;
  border-radius: 24px;
  height: 550px;
  overflow: hidden;
  transition: opacity 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
}

.plan_item a {
  text-decoration: none;
  display: block;
  height: 100%;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.plan_item a:hover {
  opacity: 0.5;
}

.plan_item a h3 {
  font-size: 48px;
  color: #333;
  margin-top: 30px;
}

.plan_item_txt {
  padding: 20px;
  position: relative;
  z-index: 1;
}

.plan_item div img {
  width: 100%;
  position: absolute;
  bottom: 0;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.plan_item a:hover div img {
  transform: scale(1.08);
}

.plan_arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
}

/* お知らせ */

.topics_section {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  padding-bottom: 80px;
  position: relative;
}

.topics_section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 300%;
  height: 4px;
  background: #fff;
}

.topics_section_title h3 {
  font-size: 36px;
  color: #333;
  margin-top: 30px;
}

.topics_section_title ul {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  list-style: none;
}

.topics_section_title ul li a {
  color: #333;
  text-decoration: none;
}

.topics_list {
  list-style: none;
  width: 75%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* お知らせの各行を最初は透明・少し左に配置 */
.topics_list li {
  opacity: 0;
  transform: translateX(50px);
}

.topics_list li a {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e8f4fa;
  padding: 20px 30px;
  border-radius: 24px;
  transition: opacity 0.3s ease;
}

.topics_list li a:hover {
  opacity: 0.5;
}

.topics_item_txt {
  display: flex;
}

.topics_list li a p {
  color: #036eb8;
  width: 130px;
}

.topics_list li a img {
  width: 40px;
  height: 40px;
}

.topics_section_bg {
  position: absolute;
  bottom: -50px;
  right: -10%;
  width: 50%;
  z-index: -1;
}

/* CONTRACTOR セクション */

.contractor_section {
  padding: 0 20px;
}

.contractor_section_inner {
  display: flex;
  background-color: #2f88c5;
  max-width: 1300px;
  margin: 80px auto 0;
  border-radius: 24px;
  padding: 30px 30px 0 30px;
  gap: 50px;
  position: relative;
}

.contractor_section_title {
  width: 40%;
  display: flex;
  gap: 30px;
}

.contractor_section_title h3 {
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  color: #fff;
  font-size: 36px;
  margin-top: 10px;
}

.contractor_section_title div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contractor_section_title div p {
  font-size: 48px;
  color: #036eb8;
  font-weight: 900;
  margin: 0;
  line-height: 0.8;
  letter-spacing: 2px;
}

.contractor_section_title div img {
  width: 100%;
}

.contractor_section ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0 auto 30px;
  width: 60%;
}

.contractor_section ul li a {
  background: #036eb8;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-radius: 24px;
  height: 110px;
  font-size: 20px;
  position: relative;
  transition: opacity 0.3s ease;
}

.contractor_section ul li a:hover {
  opacity: 0.5;
}

.contractor_section ul li a img:first-child,
.agency_section ul li a img:first-child {
  width: 40px;
}

.contractor_section ul li a img:last-child,
.agency_section ul li a img:last-child {
  width: 20px;
}

/* 1つ目：ご契約者様 専用マイページを2列分（1行目全体） */
.contractor_section ul li.contractor_item_wide {
  grid-column: 1 / -1;
}

.contractor_section ul li.contractor_item_wide a {
  padding: 10px 30px;
}

.contractor_section ul li.contractor_item_wide h4 {
  padding: 10px 30px;
  border-right: 1px solid #fff;
}

.contractor_section ul li.contractor_item_wide p {
  font-size: 16px;
}

.contractor_item_txt_wide {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contractor_section ul li:nth-child(4) a h4 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* AGENCY セクション（CONTRACTOR と同様の構成） */
.agency_section {
  padding: 0 20px;
}

.agency_section_inner {
  display: flex;
  background-color: #2db2ad;
  max-width: 1300px;
  margin: 30px auto 0;
  border-radius: 24px;
  padding: 30px 30px 0 30px;
  position: relative;
  gap: 50px;
}

.agency_section_title {
  width: 40%;
  display: flex;
  gap: 30px;
}

.agency_section_title h3 {
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  color: #fff;
  font-size: 36px;
  margin-top: 10px;
}

.agency_section_title div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.agency_section_title div p {
  font-size: 48px;
  color: #00a29a;
  font-weight: 900;
  margin: 0;
  line-height: 0.8;
  letter-spacing: 2px;
}

.agency_section_title div img {
  width: 90%;
}

.agency_section ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0 auto 30px;
  width: 60%;
}

.agency_section ul li a {
  background: #006934;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-radius: 24px;
  height: 110px;
  font-size: 20px;
  position: relative;
  transition: opacity 0.3s ease;
}

.agency_section ul li a:hover {
  opacity: 0.5;
}

.agency_section ul li.agency_item_wide {
  grid-column: 1 / -1;
}

.agency_section ul li.agency_item_wide a {
  padding: 10px 30px;
}

.agency_section ul li.agency_item_wide h4 {
  padding: 10px 30px;
  border-right: 1px solid #fff;
}

.agency_section ul li.agency_item_wide p {
  font-size: 16px;
}

.agency_item_txt_wide {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CONTACT セクション */

.contact_section ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 30px auto;
  width: 100%;
  max-width: 1300px;
  gap: 30px;
}

.contact_item {
  width: 100%;
}

.contact_section ul li.contact_item a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: #e8f4fa;
  padding: 30px;
  border-radius: 24px;
  width: 100%;
  height: 100%;
  color: #333;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact_section ul li.contact_item:last-child a {
  background: rgba(255, 241, 0, 0.8);
}

.contact_section ul li.contact_item a p span {
  font-weight: bold;
  font-size: 20px;
}

.contact_section ul li.contact_item a:hover {
  opacity: 0.6;
}

.contact_section ul li.contact_item a h3 {
  font-size: 28px;
  margin-bottom: 30px;
}

.contact_section ul li.contact_item a div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.contact_section ul li.contact_item a div p {
  font-size: 48px;
  color: #036eb8;
  font-weight: bold;
}

.contact_section ul li.contact_item a img {
  width: 60px;
  margin-top: 8px;
}

/* パートナー大募集 */

.recruitment_section {
  margin: 0 auto;
  padding: 30px 0;
  max-width: 800px;
}

.recruitment_section a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: opacity 0.3s ease;
}

.recruitment_section a:hover {
  opacity: 0.5;
}

.recruitment_txt {
  width: 100%;
}

.recruitment_txt p {
  color: #fff100;
  font-size: 42px;
  font-weight: bold;
  line-height: 0.8;
  letter-spacing: 2px;
  margin-left: 50px;
}

.recruitment_txt h3 {
  background: #fff100;
  color: #172a88;
  display: block;
  font-size: 36px;
  padding: 20px 50px;
  font-weight: 900;
}

.recruitment_txt h4 {
  background: linear-gradient(to right, #036eb8, #0a143a);
  display: block;
  color: #fff100;
  font-size: 36px;
  padding: 20px 50px;
  font-weight: 900;
}

.recruitment_txt h4 img {
  width: 40px;
  height: 40px;
  position: relative;
  top: 5px;
}

.recruitment_img {
  position: absolute;
  bottom: -1px;
  right: -80px;
  height: 105%;
}

/* 緊急事態 */

.emergency_section {
  position: absolute;
  right: 5%;
  bottom: 50px;
}

.emergency_section ul {
  list-style: none;
}

.emergency_section a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: opacity 0.3s ease;
  width: 350px;
  background: #fff100;
  padding: 5px 10px;
  color: #333;
  border-radius: 16px;
}

.emergency_section a h4 {
  font-size: 24px;
}

.emergency_section a:hover {
  opacity: 0.8;
}

.emergency_section a div p {
  text-align: center;
  font-weight: bold;
}

.emergency_section a div p span {
  font-size: 24px;
  font-weight: bold;
}

.emergency_section a div div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emergency_section a div div p {
  font-size: 32px;
  font-weight: bold;
  color: #036eb8;
}

.emergency_section a div img {
  width: 60px;
  margin-top: 2px;
}