@charset "UTF-8";

/* =========================================================
   施設環境改善 詳細（#environment_single）
   3層: .env_detail > .detail_contents > .content > .box
   （ページのサイド＋メイン用 .inner > .contents とは別）
   ========================================================= */

#environment_single {
  --detail-blue: #8094DD;
  --detail-blue: var(--medix-blue-deep, #8094DD);
  --detail-title: #3453C3;
  --detail-title: var(--medix-title-en, #3453C3);
  --detail-pink: #e86162;
  --detail-pink: var(--medix-footer-accent, #e86162);
  --detail-line: #9eb8de;
  --detail-line-soft: #d5dde8;
  padding-bottom: 4em;
}

/* ---- レイアウト（サイド＋メイン） ---- */
#environment_single>.inner>.contents {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  gap: 2.5em;
}

#environment_single .main {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}

/* ---- タイトル ---- */
#environment_single .env_detail>.title {
  margin: 0 0 1.75em;
}

#environment_single .env_detail>.title .meta {
  margin: 0 0 0.75em;
  font-size: 0.9em;
  color: #666;
}

#environment_single .env_detail>.title .cat {
  color: var(--detail-blue);
  font-weight: 700;
}

#environment_single .env_detail>.title .sep {
  margin: 0 0.35em;
}

#environment_single .env_detail>.title h1 {
  margin: 0 0 0.85em;
  font-size: 1.65em;
  line-height: 1.4;
  color: var(--detail-title);
}

#environment_single .env_detail>.title .lead {
  position: relative;
  margin: 1.15em 0 0;
  padding: 1.15em 1.35em 1.2em 1.4em;
  border-left: 4px solid var(--detail-blue);
  background: #f4f7fb;
  background: linear-gradient(90deg, #eef3fa 0%, #f7f9fc 55%, #f7f9fc 100%);
  font-size: clamp(1.02em, 1.5vw, 1.12em);
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: #2a3340;
}

/* ---- サムネ ---- */
#environment_single .env_detail>.thumbnail,
#environment_single .env_detail>.detail_contents>.thumbnail {
  margin: 0 0 1.5em;
  background: #f4f7fb;
}

#environment_single .env_detail>.thumbnail img,
#environment_single .env_detail>.detail_contents>.thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28em;
  object-fit: contain;
  margin: 0 auto;
}

#environment_single .env_detail>.thumbnail .description,
#environment_single .env_detail>.detail_contents>.thumbnail .description {
  margin: 0.75em 0 0;
  padding: 0 0.25em;
  line-height: 1.8;
  color: #444;
}

/* サムネ直後はセクション間隔（6em）を使わない */

/* ---- 本文ラッパー（3層の外枠: detail_contents） ---- */
#environment_single .env_detail>.detail_contents {
  margin: 0 0 2.5em;
  line-height: 1.9;
  color: #333;
}

#environment_single .detail_contents strong,
#environment_single .detail_contents b {
  font-weight: 700;
  color: var(--detail-pink);
}

#environment_single .box>p.lead {
  font-size: 1.28em;
  line-height: 1.75;
  text-align: center;
  margin: 1.25em 0 1.45em;
}

#environment_single .env_detail>.detail_contents>.content:not(:last-child),
#environment_single .env_detail>.detail_contents>.step_flow:not(:last-child),
#environment_single .env_detail>.detail_contents>.color_box:not(:last-child) {
  margin-bottom: 6em;
}

/* ---- content（セクション）内の大ブロック余白 ---- */
/* h2 配下に複数 h3+.box を同居させるため、content 間(6em)より狭い */
#environment_single .content>.box:not(:last-child),
#environment_single .content>.table_box:not(:last-child),
#environment_single .content>.env_table_block:not(:last-child),
#environment_single .content>.color_box:not(:last-child),
#environment_single .content>.step_flow:not(:last-child),
#environment_single .content>.env_bg_band:not(:last-child) {
  margin-bottom: 2.5em;
}

/* ---- STEP 流れ・背景付きセクション（薄い青帯＋白カード） ---- */
#environment_single .step_flow,
#environment_single .content.section_bg,
#environment_single .env_bg_band {
  padding: 1.75em 1.5em 1.85em;
  background: #e8eef6;
  background: -webkit-linear-gradient(top, #e8eef6, #eef3fa);
  background: linear-gradient(180deg, #e8eef6 0%, #eef3fa 100%);
}

#environment_single .content.section_bg.bg_gray,
#environment_single .env_bg_band.bg_gray {
  background: #f4f6f8;
}

#environment_single .content.section_bg.bg_pink,
#environment_single .env_bg_band.bg_pink {
  background: #fff4f7;
}

#environment_single .content.section_bg.bg_white,
#environment_single .env_bg_band.bg_white {
  background: #fff;
}

#environment_single .content.section_bg.bg_custom,
#environment_single .env_bg_band.bg_custom {
  background: #e8eef6;
}

#environment_single .step_flow>.content {
  margin-bottom: 0;
}

#environment_single .step_flow .box,
#environment_single .content.section_bg>.box,
#environment_single .env_bg_band>.box {
  background: #fff;
  padding: 1.75em 1.85em 2em;
  -webkit-box-shadow: 0 4px 18px rgba(0, 45, 100, 0.08);
  box-shadow: 0 4px 18px rgba(0, 45, 100, 0.08);
}

#environment_single .step_flow>.content:not(:last-child)::after,
#environment_single .step_flow>.box:not(:last-child)::after,
#environment_single .step_flow .content>.box:has(.env_step):not(:last-child)::after,
#environment_single .content.section_bg>.box:has(.env_step):not(:last-child)::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 1.75em auto 1.75em;
  border-left: 1.25em solid transparent;
  border-right: 1.25em solid transparent;
  border-top: 1.7em solid var(--detail-pink, #e85a8c);
}

#environment_single .step_flow>.box:not(:last-child),
#environment_single .step_flow .content>.box:has(.env_step):not(:last-child),
#environment_single .content.section_bg>.box:has(.env_step):not(:last-child) {
  margin-bottom: 0;
}

/* ---- 要素タイプ「矢印」（STEP と同じ下向き三角形） ---- */
#environment_single .env_arrow {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin: 1.25em 0;
}

#environment_single .env_arrow.pos_left {
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
}

#environment_single .env_arrow.pos_center {
  -webkit-justify-content: center;
  justify-content: center;
}

#environment_single .env_arrow.pos_right {
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
}

#environment_single .env_arrow .arrow_mark {
  display: block;
  width: 0;
  height: 0;
  border-left: 1.25em solid transparent;
  border-right: 1.25em solid transparent;
  border-top: 1.7em solid var(--detail-pink, #e85a8c);
}

#environment_single .env_arrow.size_s .arrow_mark {
  border-left-width: 0.85em;
  border-right-width: 0.85em;
  border-top-width: 1.15em;
}

#environment_single .env_arrow.size_l .arrow_mark {
  border-left-width: 1.75em;
  border-right-width: 1.75em;
  border-top-width: 2.4em;
}

#environment_single .env_arrow.color_blue .arrow_mark {
  border-top-color: var(--detail-blue, #8094DD);
}

#environment_single .env_arrow.color_black .arrow_mark {
  border-top-color: #222;
}

#environment_single .env_arrow.is_image img {
  display: block;
  width: 2.8em;
  height: auto;
}

#environment_single .env_arrow.size_s.is_image img {
  width: 2em;
}

#environment_single .env_arrow.size_l.is_image img {
  width: 4.2em;
}

#environment_single .step_flow>.content:has(.env_arrow)::after,
#environment_single .step_flow>.content:has(+ .env_arrow)::after,
#environment_single .step_flow>.box:has(+ .env_arrow)::after,
#environment_single .step_flow .content>.box:has(+ .env_arrow)::after,
#environment_single .content.section_bg>.box:has(+ .env_arrow)::after {
  content: none;
  display: none;
  margin: 0;
  border: 0;
}

/* h2：ピンク円装飾＋青文字 */
#environment_single .content>h2,
#environment_single .env_sec_title_lg {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.35em;
  margin: 0 0 1em;
  margin-bottom: 1em;
  padding: 0;
  border: 0;
  font-size: clamp(1.25em, 2.4vw, 1.55em);
  font-weight: 700;
  line-height: 1.4;
  color: var(--detail-blue);
}

#environment_single .content>h2 .pink_deco,
#environment_single .env_sec_title_lg .pink_deco {
  display: block;
  width: 1.55em;
  height: 1.55em;
  margin-right: -0.35em;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  line-height: 0;
  pointer-events: none;
  position: relative;
  z-index: 0;
}

#environment_single .content>h2 .pink_deco svg,
#environment_single .env_sec_title_lg .pink_deco svg {
  display: block;
  width: 100%;
  height: 100%;
}

#environment_single .content>h2 .pink_deco svg path,
#environment_single .env_sec_title_lg .pink_deco svg path {
  stroke: var(--detail-pink);
  stroke-width: 28px;
}

#environment_single .content>h2 .section_label,
#environment_single .env_sec_title_lg .section_label {
  position: relative;
  z-index: 1;
  min-width: 0;
  color: var(--detail-blue);
}

/* ---- box（h3＋本文＋注記） ---- */
#environment_single .box {
  margin: 0;
}

#environment_single .box:not(:last-child) {
  margin-bottom: 2em;
}

#environment_single .box>h3:not(.env_step):not(.env_circle_heading),
#environment_single .content>h3.env_sec_title,
#environment_single .env_sec_title:not(.env_sec_title_lg):not(.env_sec_title_sm) {
  position: relative;
  margin: 0 0 1em;
  padding: 0.15em 0 0.55em 0.85em;
  border-left: 4px solid var(--detail-blue);
  border-bottom: 1px solid var(--detail-line);
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.45;
  color: var(--detail-title);
}

/* ---- STEP 見出し ---- */
#environment_single .env_step {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.85em;
  margin: 0 0 1em;
  padding: 0;
  border: 0;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.35;
  color: var(--detail-title);
}

#environment_single .env_step .step_badge {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  min-width: 3.5em;
  padding: 0.32em 0.5em 0.38em;
  border-radius: 0.45em;
  background: #8094dd;
  background: var(--detail-blue);
  color: #fff;
  line-height: 1.05;
  text-align: center;
}

#environment_single .env_step .step_word {
  display: block;
  font-family: var(--font-futura-pt);
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.95;
}

#environment_single .env_step .step_num {
  display: block;
  font-family: var(--font-futura-pt);
  font-size: 1.28em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

#environment_single .env_step .step_title {
  display: block;
  min-width: 0;
  padding: 0.08em 0.1em 0.18em 0;
  border-bottom: 4px solid var(--detail-pink);
  color: var(--detail-title);
  font-family: var(--font-heading);
  font-size: 1.28em;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

/* ---- QA（よくある質問） ---- */
#environment_single .qa_list {
  margin: 0;
  padding: 1.4em 1.5em 0.35em;
  background: #f4f6f8;
}

#environment_single .qa_item {
  margin: 0 0 1.85em;
}

#environment_single .qa_item:last-child {
  margin-bottom: 1.15em;
}

#environment_single .qa_q {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin: 0;
  padding: 0.3em 0 0.55em 0.9em;
  border-left: 4px solid #8094dd;
  border-left-color: var(--detail-blue, #8094dd);
  border-bottom: 1px solid #d5dde8;
  font-size: 1.06em;
  font-weight: 700;
  line-height: 1.55;
  color: #3453C3;
  color: var(--detail-title, #3453C3);
}

#environment_single .qa_q::before {
  content: "Q.";
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-right: 0.45em;
  font-family: var(--font-futura-pt);
  font-size: 1.08em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: #8094dd;
  color: var(--detail-blue, #8094dd);
}

#environment_single .qa_a {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin: 0.9em 0 0;
  padding: 0 0 0 0.9em;
  color: #4a5560;
  font-weight: 400;
  line-height: 1.95;
}

#environment_single .qa_a::before {
  content: "A.";
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-right: 0.45em;
  font-family: var(--font-futura-pt);
  font-size: 1.08em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: #e86162;
  color: var(--detail-pink, #e86162);
}

/* ---- 円数字見出し ---- */
#environment_single .env_circle_heading {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 1em;
  padding: 0;
  border: 0;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.4;
  color: #e86162;
  color: var(--detail-pink);
}

#environment_single .env_circle_heading .circle_badge {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 1.85em;
  height: 1.85em;
  border-radius: 50%;
  background: var(--detail-pink);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1;
}

#environment_single .env_circle_heading .circle_title {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  color: #e86162;
  color: var(--detail-pink);
  line-height: 1.4;
}

/* h4：色のみ（背景・ボーダーなし） */
#environment_single .box>h4,
#environment_single .env_sec_title_sm {
  margin: 1.35em 0 0.65em;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.02em;
  font-weight: 700;
  line-height: 1.55;
  color: var(--detail-pink);
}

#environment_single .box>h4:first-child,
#environment_single .box>.env_sec_title_sm:first-child {
  margin-top: 0;
}

#environment_single .box>p {
  margin: 0;
  line-height: 1.9;
  color: #333;
}

#environment_single .box>.sub_lead {
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.7;
}

/* ※注記（リストではない） */
#environment_single .box>.note,
#environment_single .note {
  margin: 0;
  padding: 0;
  font-size: 0.88em;
  line-height: 1.7;
  color: #777;
  background: transparent;
}

/* 通常リスト（ピンクドット） */
#environment_single .box>.list,
#environment_single .list {
  margin: 0;
  padding: 1em 1.25em;
  list-style: none;
  background: #fff;
}

#environment_single .list li {
  position: relative;
  padding-left: 1.15em;
  line-height: 1.75;
  color: #333;
}

#environment_single .list li:not(:last-child) {
  margin-bottom: 0.55em;
}

#environment_single .list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--detail-pink);
}

/* 灰色リスト（ドットなし・灰背景） */
#environment_single .box>.attention,
#environment_single .attention {
  margin: 0;
  padding: 1em 1.25em;
  list-style: none;
  background: #e8eaed;
}

#environment_single .attention li {
  padding: 0;
  line-height: 1.75;
  color: #555;
  font-size: 0.95em;
}

#environment_single .attention li:not(:last-child) {
  margin-bottom: 0.55em;
}

#environment_single .attention li::before {
  content: none;
}

#environment_single .attention.no_bg {
  background: transparent;
  padding: 0;
}

/* ---- table_box ---- */
#environment_single .env_table_block {
  margin: 0;
}

#environment_single .env_table_block .table_title {
  margin: 0 0 0.65em;
  padding: 0;
  font-size: 1.08em;
  font-weight: 700;
  line-height: 1.5;
  color: #e86162;
  color: var(--detail-pink);
}

#environment_single .table_box {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#environment_single .table_box table,
#environment_single .detail_contents table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  background: #fff;
}

#environment_single .table_box th,
#environment_single .table_box td,
#environment_single .detail_contents table th,
#environment_single .detail_contents table td {
  border: 1px solid #d5dde8;
  padding: 0.85em 0.75em;
  vertical-align: middle;
  text-align: left;
  line-height: 1.65;
  background: #fff;
  color: #333;
  empty-cells: show;
}

#environment_single .table_box thead th,
#environment_single .detail_contents table thead th {
  font-weight: 700;
  color: var(--detail-title);
  background: #fff;
  text-align: center;
}

#environment_single .table_box th[scope="row"],
#environment_single .table_box thead th:first-child,
#environment_single .detail_contents table th[scope="row"],
#environment_single .detail_contents table thead th:first-child {
  width: 32%;
  min-width: 7em;
  font-weight: 700;
  color: var(--detail-title);
  background: #f0f5fa;
  text-align: left;
}

#environment_single .table_box.is_parallel td,
#environment_single .table_box.is_parallel td[colspan],
#environment_single .detail_contents .table_box.is_parallel td {
  background: #f7f8fa;
  text-align: center;
}

#environment_single .table_box.is_parallel thead th:not(:first-child),
#environment_single .table_box.is_parallel thead th[colspan] {
  text-align: center;
  background: #fff;
}

#environment_single .table_box.is_parallel th[scope="row"] {
  text-align: left;
}

#environment_single .table_box.is_parallel table {
  min-width: 480px;
}

#environment_single .table_box.is_pairs table {
  table-layout: fixed;
  min-width: 520px;
}

#environment_single .table_box.is_pairs th,
#environment_single .table_box.is_pairs td {
  text-align: center;
}

#environment_single .table_box.is_pairs th,
#environment_single .table_box.is_pairs th[scope="row"] {
  width: 18%;
  min-width: 5.5em;
  font-weight: 700;
  color: var(--detail-title);
  background: #f0f5fa;
  text-align: center;
}

#environment_single .table_box.is_pairs td {
  width: 32%;
  background: #fff;
  text-align: center;
}

#environment_single .table_box.is_grouped table {
  min-width: 520px;
}

#environment_single .table_box.is_grouped th,
#environment_single .table_box.is_grouped th[scope="row"] {
  width: 18%;
  min-width: 5em;
  font-weight: 700;
  color: var(--detail-title);
  background: #f0f5fa;
  text-align: center;
  vertical-align: middle;
}

#environment_single .table_box.is_grouped th[colspan] {
  width: auto;
}

#environment_single .table_box.is_grouped td {
  background: #fff;
  text-align: left;
}

#environment_single .table_box.is_kv th,
#environment_single .table_box.is_kv th[scope="row"] {
  width: 22%;
  min-width: 6em;
  font-weight: 700;
  color: var(--detail-title);
  background: #f0f5fa;
  text-align: center;
  vertical-align: middle;
}

#environment_single .table_box.is_kv td {
  background: #fff;
  text-align: left;
}

#environment_single .table_box.is_stack th,
#environment_single .table_box.is_stack td,
#environment_single .table_box.is_stack.is_kv th,
#environment_single .table_box.is_stack.is_kv th[scope="row"],
#environment_single .table_box.is_stack.is_kv td {
  width: 100%;
  min-width: 0;
  text-align: left;
}

#environment_single .table_box.is_stack tr.is_head th,
#environment_single .table_box.is_stack.is_kv tr.is_head th {
  color: #222;
  background: #f4f6fa;
  font-weight: 700;
  text-align: left;
}

#environment_single .table_box.is_stack tr.is_body td {
  color: #333;
  background: #fff;
  font-weight: 400;
}

#environment_single .table_box.is_cols th,
#environment_single .table_box.is_cols td,
#environment_single .table_box.is_cols thead th,
#environment_single .table_box.is_cols thead th:first-child,
#environment_single .table_box.is_cols th[scope="row"] {
  width: auto;
  min-width: 0;
  text-align: left;
}

#environment_single .table_box.is_cols thead th,
#environment_single .table_box.is_cols thead th:first-child,
#environment_single .table_box.is_cols tr.is_head th {
  color: #222;
  background: #f4f6fa;
  font-weight: 700;
  text-align: left;
}

#environment_single .table_box.is_cols td,
#environment_single .table_box.is_cols tr.is_body td {
  color: #333;
  background: #fff;
  font-weight: 400;
  text-align: left;
}

#environment_single .env_table_block.is_estimate .table_title {
  margin: 0;
  padding: 0 0 0.45em;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
  border-bottom: 1px solid #333;
}

#environment_single .table_box.is_estimate table {
  min-width: 640px;
  table-layout: fixed;
}

#environment_single .table_box.is_estimate thead th,
#environment_single .table_box.is_estimate.is_parallel thead th:not(:first-child),
#environment_single .table_box.is_estimate.is_parallel thead th[colspan],
#environment_single .table_box.is_estimate thead th:first-child {
  background: #8094DD;
  background: var(--detail-blue);
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-color: #3453C3;
  border-color: var(--detail-title);
}

#environment_single .table_box.is_estimate thead th:first-child {
  text-align: left;
  width: 40%;
}

#environment_single .table_box.is_estimate tbody th[scope="row"] {
  width: 40%;
  font-weight: 400;
  color: #333;
  background: #fff;
  text-align: left;
}

#environment_single .table_box.is_estimate.is_parallel td,
#environment_single .table_box.is_estimate td {
  background: #fff;
  text-align: center;
}

#environment_single .table_box.is_estimate tbody tr:nth-child(even) th,
#environment_single .table_box.is_estimate tbody tr:nth-child(even) td {
  background: #f4f6f8;
}

#environment_single .env_table_block.is_estimate+.note,
#environment_single .content>.env_table_block+.note {
  margin-top: 0.55em;
}

/* ---- 使用目安表（蓄電池など） ---- */
#environment_single .usage_grid {
  margin: 1.5em 0 0;
  padding: 0;
}

#environment_single .box>.usage_grid:first-child {
  margin-top: 0;
}

#environment_single .usage_grid+.usage_grid {
  margin-top: 2em;
}

#environment_single .usage_grid_title {
  margin: 0 0 0.65em;
  padding: 0;
  font-size: 1.08em;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  text-align: left;
}

#environment_single .table_box.is_usage th,
#environment_single .table_box.is_usage td,
#environment_single .table_box.is_usage thead th,
#environment_single .table_box.is_usage thead th:first-child,
#environment_single .table_box.is_usage th[scope="row"] {
  text-align: left;
}

#environment_single .table_box.is_usage thead th,
#environment_single .table_box.is_usage thead th:first-child {
  background: #f0f5fa;
  color: var(--detail-title);
  font-weight: 700;
}

#environment_single .table_box.is_usage tbody th[scope="row"] {
  width: 40%;
  min-width: 8em;
  font-weight: 700;
  color: var(--detail-blue);
  background: #fff;
}

#environment_single .table_box.is_usage tbody td {
  background: #fff;
}

#environment_single .table_box.is_usage .usage_icon {
  display: inline-block;
  width: 1.7em;
  height: 1.7em;
  margin: 0 0.55em 0 0;
  padding: 0;
  vertical-align: middle;
  background: transparent;
  overflow: hidden;
}

#environment_single .table_box.is_usage .usage_icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#environment_single .table_box.is_usage .usage_label {
  display: inline;
  font-weight: 700;
  color: var(--detail-blue);
  vertical-align: middle;
}

#environment_single .table_box.is_usage .usage_power {
  color: #666;
  font-weight: 500;
}

#environment_single .table_box.is_usage .usage_result {
  color: var(--detail-pink);
  font-weight: 700;
}

/* ---- color_box（CTA） ---- */
#environment_single .content.cta {
  margin-top: 0;
}

#environment_single .content.cta .color_box {
  margin: 0;
  padding: 2.15em 1.75em 2em;
  background: #f3f7fc;
  text-align: center;
}

#environment_single .color_box {
  margin: 2.5em 0;
  padding: 2em 1.75em 1.85em;
  background: #f3f7fc;
  text-align: center;
}

#environment_single .color_box:not(:has(p)):not(:has(.color_title)) {
  padding: 1.25em 1.5em;
}

#environment_single .color_box .color_title {
  margin: 0 0 0.9em;
  padding: 0;
  border: 0;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--detail-title);
}

#environment_single .color_box>p {
  margin: 0 auto 0.9em;
  max-width: 42em;
  line-height: 1.9;
  font-size: 1em;
  font-weight: 400;
  color: #333;
}

#environment_single .color_box>p.color_title {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--detail-title);
  max-width: none;
}

#environment_single .color_box .note,
#environment_single .content.cta .color_box .note {
  margin: 0 auto 1em;
  max-width: 42em;
  font-size: 0.88em;
  font-weight: 400;
  color: #777;
}

#environment_single .color_box .btns {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0.75em;
  width: 100%;
  margin: 1.5em 0 0;
}

#environment_single .color_box .btns:first-child {
  margin-top: 0;
}

#environment_single .color_box .btn,
#environment_single .color_box a.btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 3em;
  padding: 0.85em 1.4em;
  border-radius: 4px;
  background: var(--detail-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
}

#environment_single .color_box .btn:hover,
#environment_single .color_box a.btn:hover {
  opacity: 0.92;
  color: #fff;
}

/* ---- PDF付き文章 ---- */
#environment_single .env_pdf_box {
  margin: 1.15em 0;
}

#environment_single .env_pdf_box>p {
  margin: 0 0 0.75em;
}

#environment_single .env_pdf_link {
  margin: 0;
}

#environment_single .env_pdf_btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.4em;
  min-height: 2.6em;
  padding: 0.55em 1.15em;
  border: 1px solid #8094DD;
  border-color: var(--detail-blue);
  border-radius: 4px;
  background: #fff;
  color: #8094DD;
  color: var(--detail-blue);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
}

#environment_single .env_pdf_btn .pdf_mark {
  font-size: 0.85em;
  font-weight: 700;
  color: #e86162;
  color: var(--detail-pink);
}

#environment_single .env_pdf_btn:hover {
  background: #8094DD;
  background: var(--detail-blue);
  color: #fff;
}

#environment_single .env_pdf_btn:hover .pdf_mark {
  color: #fff;
}

/* ---- 画像・図（.box 内。上下余白は .box>*:not(:last-child) に任せる） ---- */
#environment_single .box>.env_figure,
#environment_single .box figure {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
  text-align: center;
  background: transparent;
}

#environment_single .box>.env_figure.size_m,
#environment_single .box figure.size_m {
  max-width: 640px;
}

#environment_single .box>.env_figure.size_w,
#environment_single .box figure.size_w {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#environment_single .box>.env_figure.size_w img,
#environment_single .box figure.size_w img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  object-position: center;
  background: #eef2f7;
}

#environment_single .box>.env_figure.size_s,
#environment_single .box figure.size_s {
  max-width: 400px;
}

#environment_single .box>.env_figure img,
#environment_single .box figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fff;
}

#environment_single .box>.env_figure .env_caption,
#environment_single .box figure figcaption,
#environment_single .env_caption {
  display: block;
  margin-top: 0.55em;
  padding: 0;
  font-size: 0.88em;
  font-weight: 400;
  color: #666;
  line-height: 1.6;
  text-align: center;
}

/* ---- 複数画像グリッド（2〜4列） ---- */
#environment_single .box .env_image_grid {
  margin: 0 auto;
}

#environment_single .box .env_image_grid .lists {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  gap: 1em;
  margin: 0;
}

#environment_single .box .env_image_grid .env_figure,
#environment_single .box .env_image_grid figure {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  margin: 0;
  width: auto;
  max-width: none;
}

#environment_single .box .env_image_grid.caption_above .env_figure img {
  -webkit-box-ordinal-group: 3;
  -webkit-order: 2;
  order: 2;
}

#environment_single .box .env_image_grid.caption_above .env_figure .env_caption {
  -webkit-box-ordinal-group: 2;
  -webkit-order: 1;
  order: 1;
  margin: 0 0 0.55em;
}

#environment_single .box .env_image_grid.cols_2 .lists .env_figure {
  -webkit-box-flex: 1;
  -webkit-flex: 0 0 calc(50% - 0.5em);
  flex: 0 0 calc(50% - 0.5em);
  max-width: calc(50% - 0.5em);
  min-width: 0;
}

#environment_single .box .env_chart_pair .lists {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  gap: 1.25em;
}

#environment_single .box .env_chart_pair .lists .env_figure,
#environment_single .box .env_chart_pair .lists figure {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
}

#environment_single .box .env_image_grid.cols_3 .lists .env_figure {
  -webkit-box-flex: 1;
  -webkit-flex: 0 0 calc(33.333% - 0.67em);
  flex: 0 0 calc(33.333% - 0.67em);
  max-width: calc(33.333% - 0.67em);
}

#environment_single .box .env_image_grid.cols_4 .lists .env_figure {
  -webkit-box-flex: 1;
  -webkit-flex: 0 0 calc(25% - 0.75em);
  flex: 0 0 calc(25% - 0.75em);
  max-width: calc(25% - 0.75em);
  min-width: 0;
}

#environment_single .box .env_image_grid.cols_4.is_svg .lists .env_figure img {
  width: auto;
  max-height: 7.5em;
  margin: 0 auto;
}

#environment_single .box .env_image_grid.cols_5 .lists .env_figure {
  -webkit-box-flex: 1;
  -webkit-flex: 0 0 calc(20% - 0.8em);
  flex: 0 0 calc(20% - 0.8em);
  max-width: calc(20% - 0.8em);
  min-width: 0;
}

#environment_single .box .env_image_grid.cols_5.is_svg .lists .env_figure img {
  width: auto;
  max-height: 7.5em;
  margin: 0 auto;
}

#environment_single .box .env_image_grid>.env_caption {
  margin-top: 0.55em;
}

/* box 直下の兄弟余白（figure 含む） */
#environment_single .box>*:not(:last-child) {
  margin-bottom: 1em;
}

/* ---- 動画 ---- */
#environment_single .content.videos .video_list {
  --num: 2;
  --gap: 1.5em;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-items: stretch;
  align-items: stretch;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

#environment_single .content.videos .video_item {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 calc((100% - var(--gap) * (var(--num) - 1)) / var(--num));
  flex: 0 0 calc((100% - var(--gap) * (var(--num) - 1)) / var(--num));
  width: calc((100% - var(--gap) * (var(--num) - 1)) / var(--num));
  max-width: calc((100% - var(--gap) * (var(--num) - 1)) / var(--num));
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

#environment_single .content.videos .video_title {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin: 0 0 0.5em;
  min-height: 2.8em;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#environment_single .content.videos .video_wrap,
#environment_single .env_video_wrap {
  position: relative;
  width: 100%;
  margin-top: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

#environment_single .content.videos video,
#environment_single .env_video_wrap video {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #000;
}

#environment_single .env_inline_video {
  margin: 0 0 1.5em;
}

#environment_single .env_inline_video_title,
#environment_single .env_embed_caption {
  margin: 0 0 0.55em;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--detail-title);
}

#environment_single .env_embed_video {
  margin: 0 0 1.5em;
}

#environment_single .env_embed_frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
}

#environment_single .env_embed_frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- 戻る ---- */
#environment_single .env_detail>.back {
  margin: 2.5em 0 0;
  text-align: center;
}

/* ---- 互換（旧クラスが残った場合） ---- */
#environment_single .env_highlight,
#environment_single .env_emphasis {
  margin: 0.75em 0;
  padding: 0.85em 1em;
  background: #f3f7fc;
  border-left: 4px solid #C7D6F0;
  border-left-color: var(--medix-blue-light, #C7D6F0);
  font-weight: 700;
  color: var(--detail-blue);
}

#environment_single .env_warn {
  position: relative;
  margin: 1.5em 0;
  padding: 1.2em 1.4em 1.25em 4.15em;
  background: #fdecec;
  border: 2px solid #c62828;
  border-left-width: 8px;
}

#environment_single .env_warn::before {
  content: "!";
  position: absolute;
  left: 1.15em;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 1.85em;
  height: 1.85em;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  font-family: "futura-pt", var(--font-heading, sans-serif);
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1;
}

#environment_single .env_warn_label {
  margin: 0 0 0.3em;
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: #c62828;
}

#environment_single .env_warn_text {
  margin: 0;
  font-weight: 700;
  line-height: 1.75;
  color: #5a1515;
}

#environment_single .env_save {
  vertical-align: middle;
  text-align: center;
  font-weight: 700;
  color: var(--detail-pink);
  background: #fff6f8;
}

@media screen and (max-width: 768px) {
  #environment_single>.inner>.contents {
    display: block;
  }

  #environment_single .env_detail>.title h1 {
    font-size: 1.35em;
  }

  #environment_single .step_flow,
  #environment_single .content.section_bg {
    padding: 1.15em 0.85em 1.25em;
  }

  #environment_single .step_flow .box,
  #environment_single .content.section_bg>.box {
    padding: 1.25em 1.15em 1.4em;
  }

  #environment_single .step_flow>.content:not(:last-child)::after,
  #environment_single .step_flow>.box:not(:last-child)::after,
  #environment_single .step_flow .content>.box:has(.env_step):not(:last-child)::after,
  #environment_single .content.section_bg>.box:has(.env_step):not(:last-child)::after {
    margin: 1.4em auto 1.4em;
    border-left-width: 1.05em;
    border-right-width: 1.05em;
    border-top-width: 1.45em;
  }

  #environment_single .table_box th[scope="row"] {
    width: auto;
  }

  #environment_single .content.videos .video_list {
    --num: 2;
    --gap: 1em;
  }

  #environment_single .box .env_image_grid.cols_3 .lists .env_figure,
  #environment_single .box .env_image_grid.cols_4 .lists .env_figure,
  #environment_single .box .env_image_grid.cols_5 .lists .env_figure {
    -webkit-flex: 0 0 calc(50% - 0.5em);
    flex: 0 0 calc(50% - 0.5em);
    max-width: calc(50% - 0.5em);
  }
}

@media screen and (max-width: 480px) {
  #environment_single .content.videos .video_list {
    --num: 1;
  }

  #environment_single .box .env_image_grid .lists .env_figure {
    -webkit-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  #environment_single .box .env_chart_pair .lists {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  #environment_single .box .env_chart_pair .lists .env_figure,
  #environment_single .box .env_chart_pair .lists figure {
    -webkit-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}
