@charset "utf-8";

:root {
  --bg-main: #f5f8fb;
  --border-light: #e7e7e7;
  --color-radio: #f7f9fa;
  --color-rank-a: #00b472;
  --color-rank-b: #0b89d9;
  --color-rank-c: #efba00;
  --color-rank-d: #fb9400;
  --color-rank-e: #dd2a00;
  --color-risk: #514175;
  --color-eco: #12681e;
  --track: #e9e9ee;
  --fill: #000;
}

/* =====================================
   Reset CSS
   ===================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
@media screen and (max-width: 767px) {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 57px;
  }
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  line-height: 1.5;
  text-size-adjust: 100%;
}

body {
  color: #000;
  background-color: #fff;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: normal;
}

input,
textarea,
select,
button {
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  border: none;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

.pc {
  display: block;
}

.sp {
  display: none;
}

@media screen and (width <= 767px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }
}

/* =====================================
   共通テンプレート用 CSS
   ===================================== */
.page-header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 7px 14px;
  gap: 20px;
  background-color: #fff;
  border-top: 2px solid #e0481d;
  align-items: center;
  z-index: 1;
}
@media screen and (max-width: 767px) {
  .page-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
  }
}
.page-header__logo {
  max-width: 400px;
  line-height: 1;
}
.page-header__pc {
  width: 100%;
  margin: 0;
}

.page-header__pc img {
  width: 100px;
}

.page-header__sp {
  display: none;
  width: 100%;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  padding: 13px 40px;
  border-top: 2px solid #e0481d;
}

.page-footer__nav ul {
  display: flex;
}

.page-footer__nav ul li {
  position: relative;
  padding: 0 17px;
}

.page-footer__nav ul li:not(:last-child)::after {
  position: absolute;
  top: 55%;
  right: 0;
  height: 20px;
  border-left: 1px solid #333;
  content: "";
  transform: translateY(-50%);
}

.page-footer__nav ul li a {
  font-size: 16px;
  text-decoration: underline;
}

.link-icon--out {
  display: inline-block;
  margin-left: 6px;
  margin-right: 4px;
}

.link-icon--out svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-footer__copyright {
  font-size: 14px;
}

@media screen and (width >= 767px) {
  .page-header__smrj a:hover,
  .page-header__smrj a:focus-visible {
    outline: none;
  }

  .page-header__smrj a:hover::after,
  .page-header__smrj a:focus-visible::after {
    border-color: #757575;
  }

  .page-header__smrj span {
    display: none;
  }

  .page-footer__nav ul li a:hover,
  .page-footer__nav ul li a:focus-visible {
    text-decoration: none;
  }

  .link-icon--out {
    width: 15px;
    height: 15px;
    margin-bottom: -2px;
  }

  .page-footer__logo {
    display: none;
  }

  .header.inside {
    display: none;
  }
}

@media screen and (width <= 767px) {
  .page-header__pc {
    display: none;
  }

  .page-header__sp {
    display: block;
    margin: 5px 0;
    font-size: 12px;
    line-height: 1.3;
  }

  .page-footer {
    display: block;
    padding: 20px 25px;
  }

  .page-footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .page-footer__logo {
    display: flex;
    justify-content: center;
  }

  .page-footer__logo img {
    width: 108px;
    height: auto;
    margin-top: 20px;
  }

  .page-footer__copyright {
    display: block;
    letter-spacing: 1px;
    margin-top: 10px;
    text-align: center;
    font-size: 10px;
  }

  .page-footer__nav ul li a {
    font-size: 14px;
  }

  .link-icon--out {
    width: 12px;
    height: 12px;
    margin-bottom: -1px;
  }
}

@media screen and (width <= 480px) {
  .page-footer__nav ul {
    justify-content: flex-start;
  }

  .page-footer__nav ul li {
    padding: 0 7px;
  }
}

/* =====================================
   コンテンツ用 CSS
   ===================================== */
.inner {
  width: calc(100% - 10vw);
  margin: auto;
  padding: 130px 0 100px;
  max-width: 1200px;
}

@media screen and (width <= 767px) {
  .inner {
    padding: 70px 0 50px;
  }
}

.page-main {
  background: var(--bg-main);
}

/* 進捗バー ------------------------------- */
.page-progress {
  margin-bottom: 50px;
}

@media screen and (width <= 767px) {
  .page-progress {
    margin-bottom: 30px;
  }
}

.page-progress__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  line-height: 1;
}

.page-progress__label,
.page-progress__percent {
  font-size: 12px;
}

.page-progress__bar {
  position: relative;
  height: 8px;
  background: #e3e3e3;
  border-radius: 9999px;
  overflow: hidden;
}

.page-progress__fill {
  width: var(--value, 0%);
  height: 100%;
  background: #000;
  border-radius: inherit;
}

.form__progress {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

.form__progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e5e5e5;
  border-radius: 3px;
  overflow: hidden;
}

.form__progress-bar--fill {
  height: 100%;
  background-color: #000;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.form__percent {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
  text-align: right;
}

/* カード------------------------------- */
.form__card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 5px rgb(0 0 0 / 5%);
}

.form__title {
  padding: 10px 30px;
  margin-bottom: 8px;
}

@media screen and (width <= 767px) {
  .form__title {
    padding: 10px 15px;
  }
}

.form__tag {
  width: fit-content;
  padding: 3px 10px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  margin-left: auto;
}

@media screen and (width <= 767px) {
  .form__tag {
    margin-top: 0;
  }
}

.form__questionBox {
  text-align: center;
}

@media screen and (width <= 767px) {
  .form__questionBox {
    text-align: left;
  }
}

.form__question {
  font-size: 24px;
  color: #333;
  font-weight: bold;
  margin-bottom: 6px;
}

@media screen and (width <= 767px) {
  .form__question {
    font-size: 16px;
  }
}

.form__description {
  margin: 0;
  font-size: 14px;
  color: #777;
}

.form__contents {
  padding: 30px;
}
.form__contents--interest {
  background: url(../images/bg_form_interest.webp) no-repeat bottom center;
  background-size: min(40vw, 450px);
}
.form__contents--risk {
  background: url(../images/bg_form_risk.webp) no-repeat bottom center;
  background-size: min(40vw, 450px);
}
.form__contents--progress {
  background: url(../images/bg_form_progress.webp) no-repeat bottom center;
  background-size: min(40vw, 450px);
}
.form__contents--assumption {
  background: url(../images/bg_form_assumption.webp) no-repeat bottom center;
  background-size: min(40vw, 450px);
}
.form__contents--disaster {
  background: url(../images/bg_form_disaster.webp) no-repeat bottom center;
  background-size: min(40vw, 450px);
}
@media screen and (width <= 767px) {
  .form__contents {
    padding: 0 15px 15px;
  }
  .form__contents--interest,
  .form__contents--risk,
  .form__contents--progress,
  .form__contents--assumption,
  .form__contents--disaster {
    background-size: 90vw;
    background-position: center bottom 70px;
  }
}

.form__options {
  display: flex;
  flex-direction: column;
  margin: auto;
  gap: 15px;
  max-width: 800px;
}

@media screen and (width <= 767px) {
  .form__options {
    gap: 8px;
  }
}

/* ラジオボタン------------------------------- */
.radio:hover {
  background-color: #fff;
  border-color: #000;
}

.radio {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  background-color: var(--color-radio);
  border-radius: 8px;
  cursor: pointer;
  gap: 10px;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

@media screen and (width <= 767px) {
  .radio {
    padding: 8px 10px;
    font-size: 14px;
  }
}

.radio input {
  position: absolute;
  opacity: 0;
}

.radio__outside {
  position: relative;
  width: 18px;
  height: 18px;
  background: #f3f3f3;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  box-sizing: border-box;
  flex-shrink: 0;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.radio__inside {
  position: absolute;
  top: calc((100% - 10px) / 2);
  left: calc((100% - 10px) / 2);
  width: 10px;
  height: 10px;
  background: #444;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
}

.radio__text {
  font-size: 14px;
  color: #444;
  user-select: none;
}

.radio input:checked + .radio__outside {
  border-color: #000;
}

.radio input:checked + .radio__outside .radio__inside {
  background: #000;
  animation: radio-select 0.3s linear forwards;
}

@keyframes radio-select {
  0% {
    transform: scale(0);
  }

  65% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.radio:has(input:checked) {
  background-color: #fff;
  border-color: #000;
}

.radio:has(input:checked) .radio__text {
  color: #000;
  font-weight: 600;
}

.form__note {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
}

/* ボタン ------------------------------- */
.form__btn {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 10px;
  margin-top: 60px;
}

@media screen and (width <= 767px) {
  .form__btn {
    margin-top: 130px;
  }
}

.c-btn {
  position: relative;
  display: inline-block;
  width: 100%;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  max-width: 160px;
  transition: background-color 0.3s ease;
  margin: 0;
}
.c-btn-l {
  max-width: 300px;
}
@media screen and (width <= 767px) {
  .c-btn {
    max-width: 145px;
  }
}

.c-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

@media screen and (width <= 767px) {
  .c-btn a {
    padding: 10px 14px;
    font-size: 14px;
  }
}

.c-btn--back {
  color: #666;
  border: 1px solid #ccc;
  background: #fff;
}

.c-btn--back a::before {
  border-bottom: 2px solid #666;
  border-left: 2px solid #666;
  margin-right: 10px;
  transform: rotate(45deg);
}

.c-btn--next a::after,
.c-btn--back a::before {
  top: calc((100% - 8px) / 2);
  display: inline-block;
  width: 8px;
  height: 8px;
  content: "";
}

.c-btn--next {
  background-color: #ccc;
}

.c-btn--next.is-active {
  background-color: #000;
}

.c-btn--next a::after {
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  margin-left: 10px;
  transform: rotate(-135deg);
}

.c-btn--next:hover,
.c-btn--next:active {
  background-color: var(--color-rank-a);
}

.c-btn--back:hover,
.c-btn_back:active {
  background-color: #ccc;
}

/* セレクト ------------------------------- */
.form__select {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.form__select select {
  width: 100%;
  padding: 0.6em 2.5em 0.6em 1em;
  font-size: 14px;
  color: #333;
  border: 1px solid #ccc;
  appearance: none;
  background-color: #fff;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.4;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form__select select:hover {
  border-color: #999;
}

.form__select select:focus {
  border-color: #000;
  outline: none;
}

.form__select::after {
  position: absolute;
  top: 50%;
  right: 1em;
  width: 0.6em;
  height: 0.6em;
  background: transparent;
  border-bottom: 2px solid #777;
  border-left: 2px solid #777;
  content: "";
  pointer-events: none;
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.2s ease;
}

/* チェックボックス ------------------------------- */
@keyframes check-pop {
  0% {
    transform: rotate(45deg) scale(0);
  }

  70% {
    transform: rotate(45deg) scale(1.15);
  }

  100% {
    transform: rotate(45deg) scale(1);
  }
}

.checkbox {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  background-color: var(--color-radio);
  border-radius: 8px;
  cursor: pointer;
  gap: 10px;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.checkbox:hover {
  background-color: #fff;
  border-color: #000;
}

.checkbox input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.checkbox__box {
  position: relative;
  width: 18px;
  height: 18px;
  background: #f3f3f3;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  flex-shrink: 0;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.checkbox__mark {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translate(50%, 60%) rotate(-45deg) scale(0);
  transform-origin: center;
}

.checkbox__text {
  font-size: 15px;
  color: #444;
  user-select: none;
}

.checkbox input:checked + .checkbox__box {
  background: #000;
  border-color: #000;
}

.checkbox input:checked + .checkbox__box .checkbox__mark {
  animation: check-pop 0.14s ease-out forwards;
}

.checkbox:has(input:checked) {
  background-color: #fff;
  border-color: #000;
}

.checkbox:has(input:checked) .checkbox__text {
  color: #000;
  font-weight: 600;
}

.checkbox input:disabled + .checkbox__box {
  background: #f5f5f5;
  border-color: #ddd;
}

.checkbox input:disabled ~ .checkbox__text {
  color: #aaa;
  cursor: not-allowed;
}

.checkbox input:disabled ~ * {
  pointer-events: none;
}

/* 診断結果 ------------------------------- */
.summary {
  width: 100%;
  margin: 40px auto;
  padding: 50px;
  background-color: #fff;
  border-radius: 8px;
}
.summary:first-of-type {
  margin-top: 20px;
}

@media screen and (width <= 767px) {
  .summary {
    padding: 30px 15px;
  }

  .summary:last-of-type {
    margin-bottom: 0;
  }
}

.summary__2col {
  display: flex;
  gap: 50px;
}

.summary__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
}

.summary__title2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
}

@media screen and (width <= 767px) {
  .summary__title {
    font-size: 18px;
  }
  .risk .summary__title {
    font-size: 14px;
  }
}

.summary__note {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
  text-align: center;
}

.summary__list {
  display: flex;
  flex-direction: column;
  margin: auto;
  gap: 16px;
}

@media screen and (width <= 767px) {
  .summary__list {
    gap: 8px;
  }

  .summary__item dt {
    border-bottom: 1px dotted #ccc;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
}

.summary__item {
  padding: 12px 16px;
  background-color: var(--color-radio);
  border-radius: 6px;
  margin: 0;
}

.summary__item dt {
  position: relative;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.summary__item dt i {
  color: #4dafdf;
  margin-right: 8px;
}

@media screen and (width <= 767px) {
  .summary__item dt i {
    margin-right: 5px;
  }
}

.summary__item dd {
  margin: 0;
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

.summary__btn {
  width: fit-content;
  margin: 20px auto 0;
}

.summary__btn a {
  max-width: 300px;
  background-color: var(--color-rank-a);
  color: #fff;
  display: block;
  padding: 10px 20px;
  border-radius: 5px;
  transition: filter 0.3s;
}

.summary__btn a i {
  margin-right: 5px;
}

.summary__btn a:hover,
.summary__btn a:active {
  filter: brightness(1.2);
}

.summary__counter {
  margin-top: 80px;
}

.summary__counter .counterplan__item {
  margin: auto;
}

.summary__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  gap: 40px;
}

@media screen and (width <= 767px) {
  .summary__wrapper {
    grid-template-columns: 1fr;
  }
}

.about .summary__evaluation {
  background: #fff;
}
.about.summary__wrapper {
  gap: 20px;
}

@media screen and (width <= 767px) {
  .about.summary__wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .about .summary__evaluation {
    padding: 20px 10px 10px;
  }
  .about .summary__evaluation-title {
    font-size: 14px;
  }
  .about .summary__evaluation-stage {
    padding: 3px 10px;
    font-size: 16px;
    margin-inline: 0;
  }
  .about .summary__evaluation-icon {
    max-width: 50%;
    margin: 10px 0 0 0;
  }
  .about .summary__evaluation-text {
    font-size: 12px;
    text-align: left;
  }
}

.summary__evaluation {
  background: var(--bg-main);
  border-radius: 10px;
  box-shadow: 0 0 5px rgb(0 0 0 / 15%);
  text-align: center;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.summary__evaluation-title {
  font-size: 20px;
}
.summary__evaluation-stage {
  display: block;
  font-weight: 700;
  font-size: 24px;
  background: #fff;
  padding: 3px 20px;
  margin: 5px 10px;
  background: var(--color-rank-d);
  color: #fff;
  border-radius: 5px;
  position: relative;
}
.summary__evaluation-stage::after {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  width: 10px;
  height: 10px;
  aspect-ratio: 1;
  display: inline-block;
  position: absolute;
  background-color: var(--color-rank-d);
  content: "";
  bottom: -9px;
  margin: auto;
  left: 0;
  right: 0;
}
.measure {
  background: var(--color-rank-c);
}
.measure::after {
  background-color: var(--color-rank-c);
}
.reduce {
  background: var(--color-rank-b);
}
.reduce::after {
  background-color: var(--color-rank-b);
}
.prepare {
  background: var(--color-rank-a);
}
.prepare::after {
  background-color: var(--color-rank-a);
}
.scorelist {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 30px;
  list-style: none;
}

.scoreitem {
  padding: 0 0 4px;
}

.scoreitem__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.scoreitem__title {
  font-size: 16px;
  color: #222;
  font-weight: 700;
}

.scoreitem__title span {
  font-size: 14px;
}

@media screen and (width <= 767px) {
  .scoreitem__title {
    font-size: 14px;
  }

  .scoreitem__title span {
    font-size: 12px;
  }
}

.scoreitem__title i {
  margin-right: 8px;
  font-size: 20px;
}
.scoreitem__title .fa-thumbs-up {
  color: var(--color-rank-a);
}
.scoreitem__title .fa-triangle-exclamation {
  color: var(--color-rank-e);
}

@media screen and (width <= 767px) {
  .scoreitem__title i {
    margin-right: 5px;
  }
}
.scoreitem__badge {
  width: fit-content;
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
  background: #000;
  border-radius: 9999px;
  min-width: 56px;
  text-align: center;
}

.scoreitem__badge b {
  font-weight: 400;
}

@media screen and (width <= 767px) {
  .scoreitem__badge {
    font-size: 10px;
    font-weight: normal;
    padding: 4px;
    min-width: 50px;
  }
}

.scoreitem__bar {
  position: relative;
  height: 20px;
  background: var(--track);
  overflow: hidden;
  margin-top: 10px;
}

.scoreitem__barFill {
  position: absolute;
  width: calc((var(--val) / 20) * 100%);
  background: var(--fill);
  border-radius: inherit;
  inset: 0 auto 0 0;
  transition: width 0.35s ease;
}

.scoreitem:hover .scoreitem__barFill {
  filter: saturate(1.05);
}

/* 0〜6点 */
.scoreitem__bar[aria-valuenow="0"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="1"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="2"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="3"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="4"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="5"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="6"] .scoreitem__barFill {
  background: var(--color-rank-e);
}

/* 7〜14点  */
.scoreitem__bar[aria-valuenow="7"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="8"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="9"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="10"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="11"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="12"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="13"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="14"] .scoreitem__barFill {
  background: var(--color-rank-c);
}

/* 15〜20点 */
.scoreitem__bar[aria-valuenow="15"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="16"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="17"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="18"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="19"] .scoreitem__barFill,
.scoreitem__bar[aria-valuenow="20"] .scoreitem__barFill {
  background: var(--color-rank-a);
}

@media (width >= 767px) {
  .scoreitem__title {
    font-size: 17px;
  }
}

.scoreitem__bar::before {
  position: absolute;
  z-index: 1;
  background-image: repeating-linear-gradient(to right, transparent, transparent calc((100% / 20) - 1px), rgb(255 255 255 / 100%) calc((100% / 20) - 1px), rgb(255 255 255 / 100%) calc(100% / 20));
  content: "";
  inset: 0;
  pointer-events: none;
}

.summary__counterplan {
  display: flex;
  gap: 20px;
  container-type: inline-size;
}
@media (max-width: 1000px) {
  .summary__counterplan {
    flex-direction: column;
  }
}
/* おすすめ対策 ------------------------------- */
.counterplan {
  display: flex;
  gap: 10px;
  justify-content: center;
}

@media screen and (width <= 767px) {
  .counterplan {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.counterplan__item {
  position: relative;
  flex: 1;
  padding: 30px 20px;
  border: 2px solid var(--color-rank-a);
  border-radius: 10px;
}

@media screen and (width <= 767px) {
  .counterplan__item {
    padding: 20px;
  }
}

.counterplan__item--chat {
  border: 2px solid var(--color-rank-b);
}

.counterplan__item--risk {
  border: 2px solid var(--color-risk);
}
.counterplan__item--eco {
  border: 2px solid var(--color-eco);
}
.counterplan__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-rank-a);
  font-weight: 600;
  min-height: 3rem;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .counterplan__title {
    min-height: auto;
  }
}

.counterplan__item--chat .counterplan__title {
  color: #005fa3;
}

.counterplan__item--risk .counterplan__title {
  color: var(--color-risk);
}
.counterplan__item--eco .counterplan__title {
  color: var(--color-eco);
}
.counterplan__title span {
  display: block;
  font-size: 12px;
  line-height: 1;
}

.counterplan__text {
  font-size: 16px;
  line-height: 1.8;
}

@media screen and (width <= 767px) {
  .counterplan__text {
    font-size: 12px;
  }
}

.counterplan__btns {
  text-align: center;
}

.counterplan__btn {
  margin: auto;
}

.counterplan__btn a {
  padding: 10px 20px;
  transition: filter 0.3s;
  background-color: var(--color-rank-a);
  border-radius: 5px;
}

.counterplan__item--chat .counterplan__btn a {
  background-color: #005fa3;
}

.counterplan__item--risk .counterplan__btn a {
  background-color: var(--color-risk);
}
.counterplan__item--eco.counterplan__btn a {
  background-color: var(--color-eco);
}

.counterplan__btn a:hover,
.counterplan__btn a:active {
  filter: brightness(1.2);
}

.counterplan__item figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  font-size: 28px;
  color: #00b472;
  border: 2px solid #00b472;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  line-height: 1;
  text-align: center;
}

.counterplan__item--chat figure {
  color: #005fa3;
  border: 2px solid #005fa3;
}

.counterplan__item--risk figure {
  color: var(--color-risk);
  border: 2px solid var(--color-risk);
}

.counterplan__item--eco figure {
  color: var(--color-eco);
  border: 2px solid var(--color-eco);
}
@media screen and (max-width: 767px) {
  .counterplan__item figure {
    margin-bottom: 15px;
  }
}

.counterplan__tag {
  width: fit-content;
  margin: 0 auto 5px;
  font-size: 12px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 5px;
}

/* 優先対応が必要な領域 ------------------------------- */
.priority__title {
  font-size: 18px;
  color: var(--color-rank-e);
  font-weight: 600;
}

.priority__title span {
  font-size: 14px;
}

@media screen and (width <= 767px) {
  .priority__title {
    font-size: 14px;
  }

  .priority__title span {
    font-size: 10px;
  }
}

.summary--priority .summary__item {
  background: rgb(0 180 114 / 5%);
  border: 1px solid var(--color-rank-a);
  margin: 0;
}

.summary--priority .summary__item dt {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary--priority .summary__item i {
  color: var(--color-rank-a);
}

.summary--risk {
  margin-top: 30px;
}

.summary--risk .summary__item {
  background: rgb(221 42 0 / 5%);
}
.risk {
  position: relative;
}

.risk::before {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  width: 40px;
  height: 20px;
  aspect-ratio: 1;
  display: inline-block;
  position: absolute;
  background-color: #000;
  content: "";
  top: -30px;
  left: 0;
  right: 0;
  margin: auto;
}
.risk__title {
  font-size: 16px;
  color: var(--color-rank-a);
  font-weight: 600;
}

.risk__title span {
  font-size: 14px;
}

@media screen and (width <= 767px) {
  .risk__title {
    font-size: 14px;
  }

  .risk__title span {
    font-size: 10px;
  }
}

.summary--risk .summary__item i {
  color: var(--color-rank-e);
}

/* スタートページ ------------------------------- */
.page-head {
  text-align: center;
  margin-bottom: 40px;
}

.page-head__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

@media screen and (max-width: 767px) {
  .page-head__title {
    font-size: 20px;
    margin-top: 30px;
  }
}

.page-head__lead {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
}
.page-head__lead b {
  border-bottom: 1px solid #000;
  padding-bottom: 5px;
  color: #000;
}
.diagnosis-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
  background: #fff;
  padding: 40px;
}

.diagnosis-select__box {
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid #ccc;
}
@media (max-width: 767px) {
  .diagnosis-select {
    grid-template-columns: 1fr;
    padding: 0;
    background: none;
  }

  .diagnosis-select__box {
    padding: 24px;
  }
}
.diagnosis-select__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 8px;
}
.diagnosis-select__title i {
  margin-right: 10px;
  font-size: 24px !important;
}
@media (max-width: 767px) {
  .diagnosis-select__title {
    font-size: 14px;
  }
  .diagnosis-select__title i {
    font-size: 18px !important;
    margin-right: 8px;
  }
}

.diagnosis-select__text {
  font-size: 14px;
  color: #666;
}

.diagnosis-select__list {
  list-style: none;
  padding: 0;
}

.diagnosis-select__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  padding: 8px 0;
}
@media (max-width: 767px) {
  .diagnosis-select__text,
  .diagnosis-select__item {
    font-size: 12px;
  }
}

.diagnosis-select__box--org {
  background: url(../images/img_check.webp) #fff no-repeat right 1vw bottom;
  background-size: min(7vw, 140px);
}

.diagnosis-select__box--org i {
  color: var(--color-rank-b);
  font-size: 18px;
}

.diagnosis-select__box--personal {
  background: url(../images/img_out.webp) #efefef no-repeat right 1vw bottom;
  background-size: min(7vw, 140px);
}

@media screen and (max-width: 767px) {
  .diagnosis-select__box--org,
  .diagnosis-select__box--personal {
    background-size: min(10vw, 140px);
  }
}

.diagnosis-select__box--personal i {
  color: var(--color-rank-e);
  font-size: 18px;
}

.diagnosis-select__box--personal::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.diagnosis-start {
  text-align: center;
}

.diagnosis-start__text {
  margin-bottom: 16px;
  font-size: 16px;
  color: #444;
}

@media screen and (max-width: 767px) {
  .diagnosis-start__text {
    font-size: 12px;
  }
}
.c-btn.c-btn--start {
  max-width: 400px;
  margin-top: 20px;
}

.c-btn.c-btn--start a {
  color: #fff;
  text-decoration: none;
  background: var(--color-rank-a);
  padding: 30px 40px;
  font-size: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid #045a1b;
}
.c-btn.c-btn--start a::after {
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  margin-left: 10px;
  transform: rotate(-135deg);
  top: calc((100% - 8px) / 2);
  display: inline-block;
  width: 8px;
  height: 8px;
  content: "";
}
.c-btn.c-btn--start a:hover,
.c-btn.c-btn--start a:active {
  filter: brightness(1.2);
}
@media screen and (max-width: 767px) {
  .c-btn.c-btn--start a {
    padding: 24px;
  }
}

/* カーボンニュートラル対応のヒント ------------------------------- */
.summary--hint {
  padding: 0;
}

.summary--hint .summary__head {
  background-color: #cbdcea;
  background-image: url(../images/bg_hint_left.webp), url(../images/bg_hint_right.webp);
  background-position:
    left 4vw top 1vw,
    right 4vw top 1vw;
  background-repeat: no-repeat, no-repeat;
  background-size: contain, contain;
  border-radius: 5px 5px 0 0;
  padding: 50px 30px;
}
@media screen and (max-width: 767px) {
  .summary--hint .summary__head {
    background: #cbdcea;
    padding: 30px 10px;
    color: #005fa3;
  }
  .summary--hint .summary__title i {
    display: none;
  }
}

.summary--hint .summary__title i {
  color: #005fa3;
  margin: 0 8px;
}
.summary--hint .summary__note {
  margin: 0;
  color: #333;
}

.hint__wrapper {
  padding: 0 50px 50px;
}

@media screen and (max-width: 767px) {
  .hint__wrapper {
    padding: 0 20px 20px;
  }
}
.hint-head {
  margin-top: 80px;
}
.hint-head__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .hint-head {
    margin-top: 40px;
  }
  .hint-head__title {
    font-size: 16px;
  }
}

.hint-head__title i {
  margin-right: 6px;
}

.hint-head__lead {
  color: #555;
  margin-bottom: 30px;
  font-size: 14px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .hint-head__lead {
    font-size: 12px;
    margin-bottom: 20px;
  }
}

/* カーボンニュートラルの重要性 -------------- */
.hint-benefit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

@media (max-width: 767px) {
  .hint-benefit {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.hint-benefit__box {
  padding: 28px;
  border-radius: 10px;
  background: #fff;
}
@media (max-width: 767px) {
  .hint-benefit__box {
    padding: 15px;
  }
}

.hint-benefit__box--merit {
  background: #eafaf1;
  border: 2px solid var(--color-rank-a);
}

.hint-benefit__box--risk {
  background: #fdecec;
  border: 2px solid var(--color-rank-e);
}

.hint-benefit__box i {
  margin-right: 6px;
}

.hint-benefit__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hint-benefit__title i {
  color: var(--color-rank-a);
}

.hint-benefit__box--risk .hint-benefit__title i {
  color: var(--color-rank-e);
}

.hint-benefit__list li {
  margin-bottom: 6px;
}
@media screen and (max-width: 767px) {
  .hint-benefit__title {
    font-size: 16px;
  }
  .hint-benefit__list li {
    font-size: 13px;
  }
  .hint-benefit__list li i {
    font-size: 10px !important;
    margin-right: 4px;
  }
}

/* 業種別カーボンニュートラル事例 -------------- */
.hint-industry-head__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hint-industry-head__title i {
  color: #3b82f6;
  margin-right: 6px;
}

.hint-industry-head__lead {
  color: #555;
  margin-bottom: 32px;
}

.hint-industry__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 767px) {
  .hint-industry__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.hint-industry__card {
  background: #fff;
  padding: 28px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid #ccc;
  background-repeat: no-repeat;
  background-position: right 16px bottom 16px;
  background-size: clamp(80px, 12vw, 200px);
}
@media screen and (max-width: 767px) {
  .hint-industry__card {
    padding: 15px;
  }
}
.hint-industry__card--manufacturing {
  background-color: #fff;
}

.hint-industry__card--retail {
  background-color: #fff;
}

.hint-industry__card--construction {
  background-color: #fff;
}

.hint-industry__card--service {
  background-color: #fff;
}

.hint-industry__card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hint-industry__card-title i {
  margin-right: 6px;
}

.hint-industry__card-subtitle {
  font-size: 16px;
  color: #024dfb;
  margin-bottom: 12px;
}
.hint-industry__card-subtitle a {
  text-decoration: underline;
  color: #024dfb;
  transition: opacity 0.2s ease;
}
.hint-industry__card-subtitle a:hover {
  opacity: 0.6;
}

@media screen and (max-width: 767px) {
  .hint-industry__card-title {
    font-size: 16px;
  }
  .hint-industry__card-subtitle {
    font-size: 12px;
  }
}

.hint-industry__card-list {
}

.hint-industry__card-list li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 15px;
}

.hint-industry__card-list li::before {
  position: absolute;
  left: 3px;
  top: calc((100% - 3px) / 2);
  width: 3px;
  height: 3px;
  border-radius: 5px;
  background: #000;
  display: block;
  content: "";
}

@media screen and (max-width: 767px) {
  .hint-industry__card-list li {
    font-size: 13px;
  }
}

.hint-industry__btns {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hint-industry__btns p {
  margin: 0;
}

@media screen and (max-width: 767px) {
  .hint-industry__btns {
    margin-top: 20px;
    flex-direction: column;
    gap: 10px;
  }
  .hint-industry__btns p {
    margin: 0 auto;
  }
}

.c-btn--retry a {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #000;
  border-radius: 5px;
  transition:
    background-color 0.3s,
    color 0.3s,
    border 0.3s;
}

.c-btn--counter {
  max-width: 100%;
  width: fit-content;
}

.c-btn--counter a {
  background: var(--color-rank-a);
  transition: filter 0.3s;
  border-radius: 5px;
}
@media screen and (max-width: 767px) {
  .c-btn--retry,
  .c-btn--counter {
    max-width: 200px;
  }
}

.c-btn--retry a:hover,
.c-btn--retry a:active {
  background-color: #000;
  color: #fff;
  border: 1px solid #000;
}

.c-btn--counter a:hover,
.c-btn--counter a:active {
  filter: brightness(1.2);
}

.c-btn.c-btn--top {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 999;
  width: fit-content;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.c-btn.c-btn--top a {
  background-color: #000;
  color: white;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: 0.3s;
}

.c-btn.c-btn--top a::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid white;
  border-right: 2px solid white;
  transform: rotate(-45deg);
}

.c-btn.c-btn--top a:hover {
  transform: translateY(-4px);
  background-color: #333;
}

.c-btn.c-btn--top.is-active {
  opacity: 1;
  visibility: visible;
}

/* トップページ ------------------------------- */
.p-top {
  text-align: center;
  margin: 50px 0;
}
.top {
  background-color: var(--bg-main);
  background-image: url(../images/img_top_left.webp), url(../images/img_top_right.webp), url(../images/bg.webp), url(../images/bg_left.webp), url(../images/bg_right.webp);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size:
    clamp(170px, 25vw, 600px),
    clamp(170px, 27vw, 600px),
    100vw 100px,
    50vw,
    50vw;
  background-position:
    right bottom 60px,
    left bottom 60px,
    bottom center,
    bottom right,
    bottom left;
}

.p-top__logo {
  text-align: center;
  margin-bottom: 30px;
}
.p-top__title {
  font-size: clamp(1rem, 0.682rem + 1.59vw, 1.875rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 32px;
}
.p-top__title__sub {
  font-size: 1.4em;
  color: #1aa256;
}
.p-top__title__sub2 {
  font-size: 1.1em;
  color: #1aa256;
}
.p-top__text {
  max-width: 780px;
  margin: 0 auto 10px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.9;
  color: #444;
}

.steps {
  margin: 40px auto 60px;
}

.steps__list {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 100px 0 0;
}

.steps__item {
  flex: 1;
  position: relative;
}
.steps__item + .steps__item::after {
  clip-path: polygon(100% 50%, 0 0, 0 100%);
  width: 15px;
  height: 30px;
  aspect-ratio: 1;
  display: inline-block;
  position: absolute;
  content: "";
  left: -24px;
  background: var(--color-rank-a);
  top: calc((100% - 30px) / 3);
  z-index: 1;
}

.steps__num {
  font-size: 16px;
  font-weight: 600;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: -20px;
  width: fit-content;
  background: var(--color-rank-a);
  color: #fff;
  padding: 3px 10px;
  border-radius: 30px;
}

.steps__img {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto;
  max-width: 250px;
}

.steps__img img {
  width: 70%;
}

.steps__title {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 10px;
  text-align: center;
}

.steps__text {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .p-top__logo {
    max-width: 200px;
    margin: 20px auto;
  }
  .steps {
    margin-bottom: 30px;
  }
  .steps__list {
    flex-direction: column;
    margin: 50px 0 0;
  }
  .steps__item {
    margin-bottom: 16px;
    background: #fff;
    padding: 20px;
  }
  .steps__text {
    font-size: 14px;
    aspect-ratio: auto !important;
  }

  .steps__item + .steps__item::after {
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    width: 50px;
    height: 15px;
    content: "";
    left: 0;
    right: 0;
    top: -41px;
    margin: auto;
    background: #fff;
  }
  .steps__img {
    aspect-ratio: auto;
    border-radius: 50%;
    margin: 0 auto;
    max-width: 250px;
    padding-top: 15px;
  }
}
/*災害時の備え入口*/
.p-guide {
  text-align: center;
  margin: 50px 0;
}
.guide {
}
.p-guide__image {
  width: 100%;
  margin: 0;
  padding: 0;
}
.p-guide__title {
  font-size: clamp(1rem, 0.682rem + 1.59vw, 1.875rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 30px;
}

/*結果トグル*/
.summary__more-btn {
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  border: 2px solid var(--color-rank-e);
  color: var(--color-rank-e);
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 0;
}
.summary__more-btn::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--color-rank-e);
  border-right: 2px solid var(--color-rank-e);
  transform: rotate(135deg);
  margin: 0 0 3px 10px;
}
.summary__more-body {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
  margin-top: 20px;
}
.summary__more-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 767px) {
  .summary__more-btn {
    padding: 10px 15px;
  }
}
