@charset "utf-8";

.shinwa-page {
  --shinwa-content-width: 63rem;
  --shinwa-text-width: 50rem;
}

.shinwa-overview {
  position: relative;
  display: grid;
  place-items: center;
  width: min(var(--shinwa-content-width), calc(100% - 3rem));
  height: 7rem;
  margin: -3rem auto 0;
  color: var(--color-primary);
}

.shinwa-content,
.shinwa-history {
  width: min(var(--shinwa-content-width), calc(100% - 3rem));
  margin-inline: auto;
}

.shinwa-content {
  display: flex;
  flex-direction: column;
  gap: 5.5rem;
  min-height: 125.875rem;
  padding: 6.5rem 0 2.75rem;
}

.shinwa-spirit {
  min-height: 27rem;
}

.shinwa-spirit > p {
  width: var(--shinwa-text-width);
  margin: 2.5rem auto 0;
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1.75;
}

.shinwa-spirit > p + p {
  margin-top: 0;
}

.shinwa-policy {
  position: relative;
  min-height: 54.25rem;
}

.shinwa-policy__grid {
  position: relative;
  width: var(--shinwa-text-width);
  min-height: 19.25rem;
  margin: 2.5rem auto 0;
}

.shinwa-policy__grid > div {
  position: relative;
  z-index: 1;
  width: 30rem;
}

.shinwa-policy h3,
.shinwa-prayer h3,
.shinwa-songs h3 {
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5rem;
}

/*
.shinwa-policy__grid h3,
.shinwa-prayer h3,
.shinwa-songs h3 {
  padding: 1.5rem 0 0.5rem;
}
*/

.shinwa-policy__grid p {
  margin-top: 1.5rem;
  color: var(--color-text);
  font-size: 1.125rem;
  line-height: 2;
}

.shinwa-policy__grid img {
  position: absolute;
  top: -6.5rem;
  left: 37rem;
  width: 50rem;
  max-width: none;
  height: 25.5rem;
  object-fit: cover;
}

.shinwa-prayer {
  width: var(--shinwa-text-width);
  min-height: 26rem;
  margin: 2.5rem auto 0;
}

.shinwa-prayer__grid {
  display: grid;
  grid-template-columns: 25rem 21rem;
  align-items: start;
  gap: 4rem;
  margin-top: 1.5rem;
}

.shinwa-prayer__grid img {
  width: 25rem;
  height: 16rem;
  object-fit: cover;
}

.shinwa-prayer__grid p {
  color: var(--color-text);
  font-size: 1.125rem;
  line-height: 2;
}

.shinwa-motto {
  min-height: 24.375rem;
}

.shinwa-motto__grid {
  display: grid;
  grid-template-columns: 22.25rem 26.25rem;
  align-items: start;
  gap: 1.5rem;
  width: var(--shinwa-text-width);
  margin: 2.5rem auto 0;
}

.shinwa-motto__grid_inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.shinwa-motto__grid dl {
  display: flex;
  gap: 1.5rem;
}

.shinwa-motto__grid dl > div {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  gap: 1.5rem;
  height: 2.5rem;
}

.shinwa-motto__grid dt {
  color: #404040;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 2.5rem;
}

.shinwa-motto__grid dd {
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1.75;
  white-space: nowrap;
}

.shinwa-motto__grid img {
  width: 26.25rem;
  height: 10.3125rem;
  object-fit: cover;
}

.shinwa-motto > p {
  width: var(--shinwa-text-width);
  margin: 1.5rem auto 0;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.shinwa-songs {
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: 73.25rem;
  margin-top: 1.125rem;
  margin-left: -50vw;
  overflow: hidden;
  color: var(--color-text);
  background: #fff;
}

.shinwa-songs__photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% + 25.25rem);
  width: 35rem;
  background:url("../images/sub/about/shinwa/img-syuka-kouka.jpg") left center / cover no-repeat;
}

.shinwa-songs__inner {
  position: relative;
  width: min(var(--shinwa-content-width), calc(100% - 3rem));
  min-height: 73.25rem;
  margin-inline: auto;
}

.shinwa-heading--light,
.shinwa-songs h3 {
  color: var(--color-primary);
}

.shinwa-songs__religious,
.shinwa-songs__school {
  width: var(--shinwa-text-width);
  margin-inline: auto;
}

.shinwa-songs__religious {
  display: grid;
  grid-template-columns: 24rem 24rem;
  gap: 1.5rem;
  min-height: 15.5rem;
  margin-top: 2.5rem;
}

.shinwa-songs__religious h3 {
  grid-column: 1 / -1;
}

.shinwa-songs__religious > div {
  margin-top: -0.5rem;
}

.shinwa-songs__religious p {
  font-size: 1.125rem;
  line-height: 2;
}

.shinwa-songs__religious > p {
  font-size: 1rem;
  line-height: 1.75;
}

.shinwa-songs__school {
  position: relative;
  min-height: 39.5rem;
  margin-top: 2.5rem;
}

.shinwa-songs__credits {
  position: absolute;
  top: 5rem;
  left: 25.5rem;
  width: 24rem;
  font-size: 1rem;
  line-height: 1.75;
}

.shinwa-songs__verses {
  display: grid;
  grid-template-columns: 24rem 24rem;
  gap: 3rem 2rem;
  margin-top: 1.5rem;
}

.shinwa-songs__verses > div:first-child {
  grid-column: 1;
  grid-row: 1;
}

.shinwa-songs__verses > div:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.shinwa-songs__verses > div:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.shinwa-songs__name,
.shinwa-songs__verses h4 {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.shinwa-songs__verses p {
  font-size: 1.125rem;
  line-height: 2;
}

.shinwa-history {
  min-height: 123.5625rem;
  padding: 6.5rem 0 2.75rem;
  margin-top: 2.0625rem;
}

.shinwa-history__scroll {
  width: var(--shinwa-text-width);
  margin: 2.5rem auto 0;
}

.shinwa-history table {
  width: 100%;
  border-collapse: collapse;
  border-top: 0.0625rem solid #1a1a1a;
}

.shinwa-history tr {
  height: 3.5rem;
}

.shinwa-history th,
.shinwa-history td {
  padding: 0.75rem 1.5rem;
  border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.2);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: left;
  vertical-align: middle;
}

.shinwa-history th {
  width: 12.5rem;
  background: #f3f3f3;
  font-family: var(--font-serif);
  font-weight: 600;
  white-space: pre;
}

.shinwa-history th .month{
  margin-left: 1em;
}

.shinwa-history td {
  background: #fff;
}

.shinwa-history__updated {
  width: var(--shinwa-text-width);
  margin: 1.5rem auto 0;
  font-size: 0.9rem;
  line-height: 1.5625rem;
  text-align: right;
}

@media (max-width: 48rem) {
  .shinwa-page {
    --shinwa-content-width: calc(100% - 6rem);
    --shinwa-text-width: 100%;
  }

  .shinwa-overview {
    width: calc(100% - 2.5rem);
    height: 5rem;
    margin-top: -2.5rem;
  }

  .shinwa-content {
    /*width: calc(100% - 2rem);*/
    width: auto;
    gap: 3rem;
    min-height: 0;
    padding: 0 0 3.25rem;
  }

  /*
  .shinwa-heading {
    height: 2.75rem;
    padding-left: 0;
    font-size: 1.3125rem;
  }

  .shinwa-heading::before {
    left: 0;
    width: 6rem;
  }
  */

  .shinwa-spirit,
  .shinwa-policy,
  .shinwa-motto {
    min-height: 0;
  }

  .shinwa-spirit > p {
    margin-top: 0;
    font-size: var(--font-size-base);
    line-height: 1.75;
  }

  .shinwa-spirit > p + p {
    margin-top: 0;
  }

  .shinwa-policy__grid {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 1.375rem;
  }

  .shinwa-policy__grid > div {
    width: 100%;
  }

  .shinwa-policy h3,
  .shinwa-prayer h3,
  .shinwa-songs h3 {
    font-size: 1.2rem;
  }

  .shinwa-policy__grid p {
    margin-top: 0.75rem;
    font-size: var(--font-size-base);
    line-height: 1.75;
  }

  .shinwa-policy__grid img {
    position: static;
    width: 100vw;
    max-width: none;
    height: auto;
    margin: 2.5rem calc(50% - 50vw) 0;
  }

  .shinwa-prayer {
    min-height: 0;
    margin-top: 2rem;
  }

  .shinwa-prayer__grid {
    grid-template-columns: 1fr;
    gap: 1.125rem;
    margin-top: 1rem;
  }

  .shinwa-prayer__grid img {
    width: 16.25rem;
    height: auto;
    margin-inline: auto;
  }

  .shinwa-prayer__grid p {
    /*padding-inline: 0.75rem;*/
    padding: 0 2rem;
    font-size: var(--font-size-base);
    line-height: 1.75;
  }

  .shinwa-motto {
    display: flex;
    flex-direction: column;
  }

  .shinwa-motto__grid {
    display: contents;
  }

  .shinwa-motto__grid dl {
    order: 2;
    gap: 0.875rem;
    margin-left:2rem;
    margin-right:2rem;
  }

  .shinwa-motto__grid dl > div {
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
    height: auto;
  }

  .shinwa-motto__grid dt {
    font-size: 1.75rem;
  }

  .shinwa-motto__grid dd {
    font-size: var(--font-size-base);
    white-space: normal;
  }

  .shinwa-motto__grid img {
    order: 4;
    width: 13.125rem;
    height: auto;
    margin: 1.375rem auto 0;
  }

  .shinwa-motto > p {
    width: auto;
    order: 3;
    margin-top: 0.875rem;
    margin-left: 2rem;
    margin-right: 2rem;
    font-size: 0.8rem;
  }

  .shinwa-songs {
    min-height: 56.25rem;
    margin-top: 0;
    padding-bottom: 2.75rem;
    color: #fff;
    background: var(--color-primary);
  }

  .shinwa-heading--light,
  .shinwa-songs h3 {
    color: #fff;
  }

  .shinwa-songs__photo {
    right: 0;
    left: auto;
    width: 34%;
    opacity: 0.45;
    background-position: right 80% center;
  }

  .shinwa-songs__inner {
    width: calc(100% - 4rem);
    min-height: 56.25rem;
    padding-top: 2.75rem;
  }

  .shinwa-songs__religious,
  .shinwa-songs__school {
    width: 13.75rem;
    margin-left: 0.75rem;
  }

  .shinwa-songs__religious {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-height: 0;
    margin-top: 1.375rem;
    width: auto;
  }

  .shinwa-songs__religious > p {
    font-size: 0.6875rem;
  }

  .shinwa-songs__religious p,
  .shinwa-songs__verses p {
    font-size: var(--font-size-base);
    line-height: 1.75;
  }

  .shinwa-songs__school {
    min-height: 0;
    margin-top: 2.25rem;
    width: auto;
  }

  .shinwa-songs__credits {
    position: static;
    width: auto;
    margin: 0.75rem 0 1.125rem;
    font-size: 0.8rem;
  }

  .shinwa-songs__verses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.125rem;
  }

  .shinwa-songs__verses > div {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .shinwa-songs__name,
  .shinwa-songs__verses h4 {
    margin-bottom: 0.625rem;
    font-size: 1.375rem;
  }

  .shinwa-songs__name{
    margin-top: 1rem;
  }

  .shinwa-history {
    width: auto;
    min-height: 0;
    padding: 3.25rem 0 3rem;
    margin-top: 0;
  }

  .shinwa-history__scroll {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    margin-top: 1.375rem;
    margin-inline: auto;
  }

  .shinwa-history table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .shinwa-history tr {
    height: auto;
  }

  .shinwa-history th,
  .shinwa-history td {
    padding: 0.4375rem 0.625rem;
    font-size: var(--font-size-base);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .shinwa-history th {
    width: 8rem;
    white-space: normal;
    text-align: center;
    font-size: 0.8rem;
  }

  .shinwa-history th .month{
    margin-left: 0;
    display: block;
  }

  .shinwa-history__updated {
    margin-top: 0.875rem;
    font-size: 0.8rem;
  }

}

