/* sanitize */
@import url(sanitize.css);

html {
  font-size: 20px;
  line-height: 1.5;
}

/* body */
body {
  font-family: 'Noto Sans JP', sans-serif;
}

h2 {
  font-size: 1.1rem;
  text-align: center;
  margin: 0;
  position: relative;
  margin: 30px 0;
}

h2::after { /* 下線 */
  position: absolute; /*positionをabsoluteに指定*/
  content: "";
  background-color: #EBE98D; /*下線の色*/
  width: 100px; /*線の幅*/
  height: 10px; /*線の太さ*/
  bottom: -15px; /*線のタテ位置*/
  left: 50%;  /*線のヨコ位置*/
  transform: translateX(-50%); /*線のヨコ位置*/
}

p {
  font-size: 0.7rem;
  margin: 0;
  padding: 0;
}

/* header */
header {
  text-align: center;
  background-color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
}

header h1 {
  margin-top: 0;
}

header img {
  display: block;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
  height: auto;
}

/* main */
main {
  margin: auto;
  padding: 0 15px;
  max-width: 650px; /* パソコン用・スマホはメディアクエリ */
}

/* campaign */
.campaign {
  background-color: #EBE98D;
  margin: 10px auto;
  padding: 10px;
  border-radius: 30px;
  text-align: center;
  max-width: 70vw;
}

.campaign span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000000;
}

.campaign p {
  margin: 5px 0 0 0;
}

/* problem */
.comment {
  background-color: #E8FFDF;
  margin: 10px auto;
  padding: 10px;
  border-radius: 40px;
  text-align: center;
  max-width: 90%;
}

.comment p {
  font-size: 0.7rem;
}

/* solution */

/* two-column */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  padding-bottom: 20px;
}

/* activity */
.activity figure {
  margin: 0;
  padding: 0;
}
.activity figcaption{
  font-size: 0.7rem;
  margin: 5px 0 10px 0;
  padding: 0;
}

/* flow */
.flow-step {
  padding: 0 10px;
}
.flow-title {
  background-color: #E8FFDF;
  color: #000;
  text-align: center;
  position: relative;
  margin-right: 28px;
  font-size: 1.0rem;
  padding: 5px 0;
}
.flow-title::after{
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  border-width: 20px 15px 20px 26px;
  border-color: transparent transparent transparent #E8FFDF ;
  border-style: solid;
}
.flow-list {
  list-style: none;
  font-size: 0.7rem;
  padding: 0;
  margin: 0;
  text-align: left;
}
.flow-list li {
  margin-bottom: 5px;
}

/* price */
.price {
  text-align: center;
}
.price span {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: #000000;
  padding-bottom: 15px;
}

/* plan */
.profile {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: 1fr;
  gap: 10px;
  place-items: center;
}

#plan table {
  width: 100%;
  border-collapse: separate;
  margin: 20px 0;
  border-spacing: 10px;
  font-size: 0.8rem;
}

#plan table th {
  background-color: #EBE98D;
  padding: 3px;
  width: 80px;
  text-align: center;
}

/* organization */
.organization {
  text-align: center;
}
.organization span {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 15px;

}

.organization a {
  color: #000;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.3s ease;
}

.organization a:hover {
  text-decoration-color: currentColor;
}

.org-detail p {
  text-align: left;
  padding: 0 10px;
}
.org-detail h3 {
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 10px;
  padding: 0 10px;
}

/* Footer */
.float-button {
    position: fixed;
    z-index: 1;
    bottom: 0px;
    background-color: #EBE98D;
    width: 100%;
    height: 70px;
    text-align: center;
    place-items: center;
    display: grid;
}

.float-button a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 70px;
    font-size: 1.2rem;
    color: #000;
    text-decoration: none
}

footer {
  margin-bottom: 80px; /* フロートボタンの高さ分だけ余白を作る */
  text-align: center;
}

footer a {
  color: #000;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.3s ease;
}

footer a:hover {
  text-decoration-color: currentColor;
}

/*スマホ用*/
@media screen and (max-width: 620px) {
  html {
    font-size: 18px;
  }

  header img {
    width: 100vw;
  }

  main {
    width: 100%;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .two-column img {
    width: 80%;
    height: auto;
  }
}