/*
Theme Name: do-nissui
Theme URI: Theme URI
Version: 1.2
Text Domain: Text Domain
*/


/* 追加CSSここから: 健康経営情報 */
#contents main .commonBlock.health {
  --navy: #0b308e;
  --pale-blue: #edf2ff;
  --font-sans: 'Noto Sans JP', sans-serif;
  width: calc(100% - 40px);
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 0 100px;
  color: #000;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
}
#contents main .commonBlock.health :where(div, p, ul, dl, ol, h2, h3, h4, figure) {
  margin: 0;
}
#contents main .commonBlock.health p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}
#contents main .commonBlock.health img {
  display: block;
  max-width: 100%;
  height: auto;
}
#contents main .commonBlock.health h1 {
  margin: 0 0 60px;
  line-height: 1.6;
}
#contents main .commonBlock.health .health-introduction {
  margin-bottom: 60px;
}
#contents main .commonBlock.health .health-message {
  color: var(--navy);
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 35px;
}
#contents main .commonBlock.health .health-signature {
  font-weight: 700;
  text-align: right;
  margin-top: 24px;
}
.health .pc {
  display: block;
}
.health .sp {
  display: none;
}

/* 追加CSSここまで: 健康経営情報 */
@media screen and (max-width: 769px) {
  /* 追加CSSここから: 健康経営情報 769px以下 */
  #contents main .commonBlock.health {
    width: calc(100% - 30px);
    padding: 32px 0 90px;
  }
  #contents main .commonBlock.health h1 {
    font-size: 22px;
    line-height: 1.181818;
    margin-bottom: 40px;
  }
  #contents main .commonBlock.health h1::after {
    width: 120px;
    margin: 10px auto 0;
  }
  #contents main .commonBlock.health section h2:not(.health-band) {
    font-size: 18px;
  }
  #contents main .commonBlock.health p {
    font-size: 14px;
  }
  #contents main .commonBlock.health .health-introduction {
    margin-bottom: 40px;
  }
  #contents main .commonBlock.health .health-message {
    font-size: 18px;
    margin-bottom: 16px;
  }
  #contents main .commonBlock.health .health-signature {
    font-size: 13px;
    line-height: 1.230769;
    margin-top: 16px;
  }
  .health .pc {
    display: none;
  }
  .health .sp {
    display: block;
  }
  /* 追加CSSここまで: 健康経営情報 769px以下 */
}

/* 追加CSSここから: 健康経営推進体制 */
#contents main .commonBlock.health > section + section {
  margin-top: 80px;
}
#contents main .commonBlock.health .health-introduction + section {
  margin-top: 0;
}
#contents main .commonBlock.health section h2 {
  line-height: 1.6;
  margin: 0 0 20px;
}
#contents main .commonBlock.health .health-organization-chart {
  width: 100%;
  max-width: 600px;
  margin: 30px auto 0;
}
#contents main .commonBlock.health .health-organization-chart img {
  width: 100%;
}
/* 追加CSSここまで: 健康経営推進体制 */
@media screen and (max-width: 769px) {
  /* 追加CSSここから: 健康経営推進体制 769px以下 */
  #contents main .commonBlock.health > section + section {
    margin-top: 40px;
  }
  #contents main .commonBlock.health .health-introduction + section {
    margin-top: 0;
  }
  #contents main .commonBlock.health section h2 {
    font-size: 18px;
    line-height: 1.222222;
    padding-bottom: 8px;
    margin-bottom: 24px;
  }
  #contents main .commonBlock.health section h2::after {
    width: 60px;
  }
  #contents main .commonBlock.health .health-organization-chart {
    max-width: none;
    margin-top: 16px;
  }
  /* 追加CSSここまで: 健康経営推進体制 769px以下 */
}

/* 追加CSSここから: 主な取り組み・健康診断と疾病予防 */
#contents main .commonBlock.health h2.health-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  padding: 2.4px 16px;
  border: 0;
  margin: 0 0 40px;
}
#contents main .commonBlock.health h2.health-band::after {
  content: none;
}
#contents main .commonBlock.health .health-initiatives > section + section {
  margin-top: 80px;
}
#contents main .commonBlock.health h3 {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 20px;
}
#contents main .commonBlock.health h3::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 124px;
  border-bottom: 2px solid #e7131d;
}
#contents main .commonBlock.health .health-indicators {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding: 0 35px;
  margin: 20px 0;
}
#contents main .commonBlock.health .health-indicators > div {
  flex: 1;
  max-width: 220px;
}
#contents main .commonBlock.health .health-indicators img {
  width: 100%;
  aspect-ratio: 1;
}
/* 追加CSSここまで: 主な取り組み・健康診断と疾病予防 */
@media screen and (max-width: 769px) {
  /* 追加CSSここから: 主な取り組み・健康診断と疾病予防 769px以下 */
  #contents main .commonBlock.health h2.health-band {
    font-size: 16px;
    line-height: 1.1875;
    padding: 12px 16px;
    margin-bottom: 40px;
  }
  #contents main .commonBlock.health .health-initiatives > section + section {
    margin-top: 40px;
  }
  #contents main .commonBlock.health h3 {
    font-size: 18px;
    line-height: 1.222222;
    padding-bottom: 8px;
    margin-bottom: 24px;
  }
  #contents main .commonBlock.health h3::after {
    width: 60px;
  }
  #contents main .commonBlock.health .health-indicators {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    margin: 16px 0;
  }
  #contents main .commonBlock.health .health-indicators > div {
    flex: none;
    width: 100%;
  }
  /* 追加CSSここまで: 主な取り組み・健康診断と疾病予防 769px以下 */
}

/* 追加CSSここから: ワークライフバランス推進 */
#contents main .commonBlock.health .health-chart-placeholder {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  overflow: hidden;
}
.health-chart-placeholder svg text[fill="#3366cc"] {
    font-weight: bold !important;
    font-size: 16px !important;
    transform: translateY(-8px);
}

/* 追加CSSここまで: ワークライフバランス推進 */

/* 追加CSSここから: 育児・介護との両立支援 */
#contents main .commonBlock.health .health-media-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
#contents main .commonBlock.health .health-media-row > p {
  width: 56.25%;
}
#contents main .commonBlock.health .health-media-image {
  width: 36.25%;
}
#contents main .commonBlock.health .health-media-image img {
  width: 100%;
}
/* 追加CSSここまで: 育児・介護との両立支援 */
@media screen and (max-width: 769px) {
  /* 追加CSSここから: 育児・介護との両立支援 769px以下 */
  #contents main .commonBlock.health .health-media-row {
    flex-direction: column;
    gap: 16px;
  }
  #contents main .commonBlock.health .health-media-row > p,
  #contents main .commonBlock.health .health-media-image {
    width: 100%;
  }
  /* 追加CSSここまで: 育児・介護との両立支援 769px以下 */
}

/* 追加CSSここから: 健康増進活動 */
#contents main .commonBlock.health ul {
  margin: 28px 0;
}
#contents main .commonBlock.health ul li {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
}
#contents main .commonBlock.health .health-gallery {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin: 20px 0;
}
#contents main .commonBlock.health .health-gallery figure {
  width: 45%;
  margin: 0;
}
#contents main .commonBlock.health .health-gallery img {
  width: 100%;
}
#contents main .commonBlock.health .health-gallery figcaption {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  margin-top: 5px;
}
/* 追加CSSここまで: 健康増進活動 */
@media screen and (max-width: 769px) {
  /* 追加CSSここから: 健康増進活動 769px以下 */
  #contents main .commonBlock.health .health-promotion h3 {
    margin-bottom: 28px;
  }
  #contents main .commonBlock.health .health-seminar-title {
    font-size: 15px;
    line-height: 1.2;
    color: var(--navy);
    font-weight: 700;
  }
  #contents main .commonBlock.health .health-gallery {
    flex-direction: column;
    gap: 16px;
  }
  #contents main .commonBlock.health .health-gallery figure {
    width: 100%;
  }
  #contents main .commonBlock.health .health-gallery figcaption {
    font-size: 12px;
    line-height: 1.166667;
    margin-top: 8px;
  }
  #contents main .commonBlock.health ul li {
    font-size: 14px;
  }
  /* 追加CSSここまで: 健康増進活動 769px以下 */
}

/* 追加CSSここから: 運動機会の創出 */
#contents main .commonBlock.health .health-event {
  display: grid;
  grid-template-columns: minmax(0, 450fr) minmax(0, 232fr);
  column-gap: 78px;
  grid-template-rows: auto 1fr;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  background: var(--pale-blue);
  margin-top: 20px;
}
#contents main .commonBlock.health .health-event h4 {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy);
}
#contents main .commonBlock.health .health-event img {
  width: 100%;
}
/* 追加CSSここまで: 運動機会の創出 */
@media screen and (max-width: 769px) {
  /* 追加CSSここから: 運動機会の創出 769px以下 */
  #contents main .commonBlock.health .health-exercise h3 {
    margin-bottom: 28px;
  }
  #contents main .commonBlock.health .health-event {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  #contents main .commonBlock.health .health-event > div {
    width: 100%;
  }
  #contents main .commonBlock.health .health-event > div:nth-of-type(1) {
    order: 1;
  }
  #contents main .commonBlock.health .health-event > div:nth-of-type(2) {
    order: 0;
  }
  #contents main .commonBlock.health .health-event h4 {
    align-self: auto;
    font-size: 14px;
    line-height: 1.214286;
    margin: 0;
  }
  #contents main .commonBlock.health .health-event p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
  }
  /* 追加CSSここまで: 運動機会の創出 769px以下 */
}

/* 追加CSSここから: 禁煙への取り組み */
#contents main .commonBlock.health .health-smoking .health-media-image {
  width: 36.875%;
}
.health-smoking-sp {
  display: none;
}
/* 追加CSSここまで: 禁煙への取り組み */
@media screen and (max-width: 769px) {
  /* 追加CSSここから: 禁煙への取り組み 769px以下 */
  #contents main .commonBlock.health .health-smoking .health-media-image {
    width: 100%;
  }
  /* 追加CSSここまで: 禁煙への取り組み 769px以下 */
}

/* 追加CSSここから: 今後の取り組み */
#contents main .commonBlock.health .health-future h2.health-band {
  margin-bottom: 20px;
}
#contents main .commonBlock.health .health-goals {
  display: flex;
  gap: 10px;
  margin: 20px 30px;
  padding: 0;
  list-style: none;
}
#contents main .commonBlock.health .health-goals li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16.8px 0;
  border-radius: 10px;
  background: var(--pale-blue);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-indent: 0;
  text-align: center;
}
#contents main .commonBlock.health .health-goals span {
  color: inherit;
  font: inherit;
}
.health-goals-sp {
	display: none;
}
/* 追加CSSここまで: 今後の取り組み */
@media screen and (max-width: 769px) {
  /* 追加CSSここから: 今後の取り組み 769px以下 */
  #contents main .commonBlock.health .health-goals {
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
  }
  #contents main .commonBlock.health .health-goals li {
    display: block;
    padding: 12px;
    border-radius: 6px;
    background: #f5f8ff;
    font-size: 14px;
    line-height: 1.214286;
    text-align: left;
  }
	.health-goals-pc {
		display: none;
	}

	.health-goals-sp {
		display: inline;
	}
  /* 追加CSSここまで: 今後の取り組み 769px以下 */
}

/* 追加CSSここから: Figma比較による調整 */
#contents main .commonBlock.health .health-nutrition h3 span {
  color: inherit;
  font: inherit;
}
#contents main .commonBlock.health .health-smoking h3 {
  margin-bottom: 18px;
}

/* 追加CSSここまで: Figma比較による調整 */
@media screen and (max-width: 769px) {
  /* 追加CSSここから: Figma比較による調整 769px以下 */
  #contents main .commonBlock.health :is(.health-organization, .health-care, .health-nutrition, .health-smoking) p br {
    display: none;
  }
  #contents main .commonBlock.health .health-nutrition h3 span {
    display: block;
  }
  #contents main .commonBlock.health .health-smoking h3 {
    margin-bottom: 24px;
  }
  #contents main .commonBlock.health .health-smoking .health-media-row > p {
    padding-top: 0;
  }
  /* 追加CSSここまで: Figma比較による調整 769px以下 */
}

