@charset "utf-8";
.hero {
  position: relative;
  height: 240px;
  background: url("assets/spouse/spouse.png") center 30% / cover no-repeat;
}
.page-main {
	  position: relative;
  padding: 2px 27px 6px 32px
}

.section-heading {
  border-left: 6px solid var(--pink);
  background: linear-gradient(90deg, white 35%, #ffebf3);
  color:var(--pink);
}
.green .section-heading {
  color: #009538;
  border-left: 6px solid var(--green);
  background: linear-gradient(90deg, white 35%, #e6f5e9);
}


.segment-heading {
  display: flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 0 0 0 12px;
  border-left: 6px solid #ee2f81;
  background: linear-gradient(90deg, #fff, #ffebf3);
  color: #ed2170;
}
.resident-section .segment-heading {
  border-color: #079447;
  background: linear-gradient(90deg, #fff, #e6f5e9);
  color: #058038
}
.spouse-section {
  width: 705px;
/*  height: 324px*/
	margin-bottom: 20px;
}
.spouse-section .segment-body {
  display: flex;
  gap: 14px;
/*  height: 287px;*/
  padding-top: 12px;
	  margin-bottom: 15px;
}
.segment-photo {
  flex: 0 0 auto;
  width: 200px;
  height: 240px;
  object-fit: cover;
  border-radius: 4px
}
.segment-details {
  min-width: 0;
  flex: 1
}
.pink h3 {
  margin: 1px 0 5px;
  color:var(--pink);
  font: 800 18px
}
.green h3 {
  margin: 1px 0 5px;
  color:var(--green);
  font: 800 18px
}
.segment-details p {
  margin: 0 0 5px;
/*  color: #0039b6;
  font-size: 10px;
  line-height: 1.43;*/
  font-weight: 600
}
.spouse-section h4 {
  margin: 3px 0 0;
  padding:3px 0 3px 8px;
  background: linear-gradient(90deg, #ffeaf1, #fff);
  color: #ef2674;
  font: 800 15px
}
.target-grid {
  display: grid;
  gap: 3px
}
.target-grid.three {
  grid-template-columns: repeat(3, 1fr)
}
.target-grid article {
  min-width: 0;
  height: 96px;
  padding: 3px;
  border: 1px solid #fbd4e4;
  border-radius: 3px;
  text-align: center
}
.target-grid b {
  display: block;
  color: var(--pink);
  font-size: 29px;
  line-height: 1
}
.target-grid strong {
  display: block;
  color: var(--pink);
  font: 800 14px/1.3 "Yu Mincho", serif
}
.target-grid small {
  display: block;
  margin-top: 3px;
  /*color: #003bb6;*/
  font-size: 12px;
}
.conditions {
/*	width: 705px;*/
  display: grid;
grid-template-columns: 6fr 4fr;
  gap: 6px;
  margin: 5px 0 20px;

}
.conditions > div:first-child {
  flex: 1;
  min-width: 0;
  border: 1px solid #fbd4e4;
  border-radius: 4px
}
/*.conditions h4 {
  margin: 0;
  height: 20px
}*/
.conditions ul {
/*  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 5px;*/
  margin: 0;
  padding: 8px 8px 5px 10px;
  list-style: none
}
.conditions li {
/* color: #003bbb;
  font-size: 9px;
  line-height: 1.5;*/
  font-weight: 600;
/*  background-image: url(assets/images/checkbox2.png);
    background-repeat: no-repeat;
    background-position: left 3px;*/
    padding: 0px 0 4px 28px;
	  position: relative;
  min-height: 29px;
	
}
.conditions li:before {
  content: "✓";
  position: absolute;
  left: 3px;
  top: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 4px;
  background: linear-gradient(#ee2f81, #ee2fa0);
  color: #fff;
  font: 800 13px/1 sans-serif;  display: inline-grid;
}
.green li:before {
  background: linear-gradient(#009538, #009547);
}

.period {
/*  width: 128px;*/
  border: 1px solid #fbd4e4;
  border-radius: 4px;
  text-align: center;
}
.pink .period strong {
  display: block;
  margin: 9px 0 3px;
  color: var(--pink);
  font: 800 18px "Yu Mincho", serif;
}
.green .period strong {
  display: block;
  margin: 9px 0 3px;
  color: var(--green);
  font: 800 18px "Yu Mincho", serif;
}
.period small {
  display: block;
  font-size: 14px
}
.support {
  margin: 0 0 20px
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 5px;
}
.pink .support-grid article {
  position: relative;
/*  height: 85px;*/
  padding: 8px 5px 4px 10px;
  border: 1px solid var(--pink);
  border-radius: 5px;
}
.support-grid-top{
	  display: flex;
  align-items: center;
  height: 44px;	
}

.green .support-grid article {
  position: relative;
/*  height: 85px;*/
  padding: 8px 5px 4px 10px;
  border: 1px solid var(--green);
  border-radius: 5px;
}
.pink .support-grid b {
  position: absolute;
  top: 7px;
  left: 6px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  font-size: 22px
}
.pink .support-grid h3 {
  margin: 0 0 5px 41px;
  color: var(--pink);
  font: 800 15px/1.3
}
.green .support-grid b {
  position: absolute;
  top: 7px;
  left: 6px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #009538;
  color: white;
  font-size: 22px
}
.green .support-grid h3 {
  margin: 0 0 5px 41px;
  color: #009538;
  font: 800 15px/1.3
}
.support-grid p {
  margin: 0;
/*  color: #003bb6;
  font-size: 9px;
  line-height: 1.35;*/
  font-weight: 600
}
.support.pink {
/*  height: 124px*/
	margin-bottom: 20px;
}
/*申請の流れ*/
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none
}
.flow-grid li {
  position: relative;
  padding: 3px 6px;
  border: 1px solid #fbd4e4;
  border-radius: 5px;
}
.green .flow-grid li {
  border: 1px solid #cdeed5;
}
.pink .flow-grid li:not(:last-child):after {
  content: "";
  position: absolute;
  right: -17px;
  top: 50px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 10px solid var(--pink);
}
.green .flow-grid li:not(:last-child):after {
  content: "";
  position: absolute;
  right: -17px;
  top: 50px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 10px solid var(--green);
}
.pink .flow-grid span {
  position: absolute;
  left: 5px;
  top: 2px;
  display: grid;
  place-items: center;
  align-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  font: 10px Arial;
}
.green .flow-grid span {
  position: absolute;
  left: 5px;
  top: 2px;
  display: grid;
  place-items: center;
  align-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font: 10px Arial;
}

.pink .flow-grid h3 {
  margin: 2px 0;
  color: var(--pink);
  font: 800 16px
}
.green .flow-grid h3 {
  margin: 2px 0;
  color: var(--green);
  font: 800 16px
}


.resident-section .segment-heading {
  height: 36px
}
.resident-section .segment-body {
  display: flex;
  gap: 14px;
/*  height: 239px;*/
  padding-top: 12px;
  margin-bottom: 10px;
}
.resident-section .segment-photo {
	  flex: 0 0 auto;
  width: 260px;
  height: 240px;
  object-fit: cover;
  border-radius: 4px
}
.resident-section h4 {
  margin: 3px 0 0;
  padding:3px 0 3px 8px;
  background: linear-gradient(90deg, #e7f5ea, #fff);
  font: 800 15px
  color: #07863d;
}
.resident-section .target-grid.five {
  grid-template-columns: repeat(5, 1fr)
}
.resident-section .target-grid article {
/*  height: 69px;*/
  border-color: #cdeed5;
	padding:10px 4px 2px;
}
.resident-section .target-grid b {
color: #009538;
}
.resident-section .target-grid strong {
/*  font-size: 9px*/
	color: #009538;
}
.resident-section .conditions > div, .resident-section .period {
  border-color: #cdeed5
}
.resident-section .conditions ul {
/*  grid-template-columns: 1fr 1fr*/
}
.resident-section .conditions li {
/*	color: #009538;
  font-size: 9px;
  line-height: 1.2;*/
  font-weight: 600
}

.flow.green .flow-grid li {
/*  height: 74px;
  font-size: 9px;
  line-height: 1.2;*/
  font-weight: 600
}

.flow.green .flow-grid span {
  background: #009538;
}
.flow.green .flow-grid h3 {
  color: #009538;
}

@media(max-width:1024px) {
.hero h1 {
  font-size: 46px!important;
}	
.spouse-section {
  width: 100%;
	margin-bottom: 20px;
	}

  .spouse-section, .resident-section, .support.pink, .flow.pink, .support.green, .flow.green {
    width: 100%;
    height: auto
  }
  .contact-panel {
    position: static;
    width: 100%;
    margin: 10px 0
  }
  .spouse-section .segment-body, .resident-section .segment-body {
    height: auto
  }
  .segment-photo, .resident-section .segment-photo {
    width: 32%;
    height: auto;
    object-fit: cover;
  }

}
@media(max-width:644px) {
  .spouse-section .segment-body, .resident-section .segment-body {
    display: block;
  }
  .segment-photo, .resident-section .segment-photo {
    width: 100%;
    height: 170px;
  }
  .target-grid.three, .resident-section .target-grid.five {
    grid-template-columns: repeat(2, 1fr);
  }
  .support-grid, .flow-grid {
    grid-template-columns: 1fr;
  }
  .conditions {
    display: block;
  }
  .period {
    width: 100%;
  }

  .flow-grid li:after {
    display: none;
  }

  .support, .flow {
    margin: 15px 0;
  }
  .segment-heading small, .section-heading small {
    display: none;
  }	
}