@charset "utf-8";

.lineTrigger {
  position: relative;
  opacity: 0;
}
.lineTrigger.lineanime {
  animation-name: lineAnimeBase;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}
@keyframes lineAnimeBase {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lineTrigger::before,
.lineTrigger::after {
  position: absolute;
  content: "";
  width: 0;
  height: 1px;
  background: #333;
}
.line2::before,
.line2::after {
  position: absolute;
  content: "";
  width: 1px;
  height: 0;
  background: #333;
}
.lineTrigger::before {
  top: 0;
  left: 0;
}
.lineTrigger.lineanime::before {
  animation: lineAnime 0.5s linear 0s forwards;
}
.line2::before {
  top: 0;
  right: 0;
}
.lineTrigger.lineanime .line2::before {
  animation: lineAnime2 0.5s linear 0.5s forwards;
}
.lineTrigger::after {
  bottom: 0;
  right: 0;
}
.lineTrigger.lineanime::after {
  animation: lineAnime 0.5s linear 1s forwards;
}
.line2::after {
  bottom: 0;
  left: 0;
}
.lineTrigger.lineanime .line2::after {
  animation: lineAnime2 0.5s linear 1.5s forwards;
}
@keyframes lineAnime {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
@keyframes lineAnime2 {
  0% {
    height: 0%;
  }
  100% {
    height: 100%;
  }
}
.lineTrigger.lineanime .lineinappear {
  animation: lineInnerAnime 0.5s linear 1.5s forwards;
  opacity: 0;
}
@keyframes lineInnerAnime {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

body#about {
  background: url(../images/hero-about.webp) no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
}
body#kiyomasa {
  background: url(../images/hero-kiyomasa.webp) no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
}
body#visit {
  background: url(../images/hero-visit.webp) no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
}
body#amulet {
  background: url(../images/hero-amulet.webp) no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
}
body#prayer {
  background: url(../images/hero-prayer.webp) no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
}
body#delivery {
  background: url(../images/hero-delivery.webp) no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
}
body#shinto {
  background: url(../images/hero-shinto.webp) no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
}
body#faq {
  background: url(../images/hero-faq.webp) no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
}
body#group {
  background: url(../images/hero-group.webp) no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
}
body#common {
  background: url(../images/hero-common.webp) no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
}

#heroHead {
  position: relative;
  padding-bottom: 34.4827%;
  height: 0;
}
#heroHead h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
  writing-mode: vertical-rl;
  display: inline-block;
  white-space: nowrap;
  font-weight: bold;
}

#wrap {
  background: #eeebdd;
}
body#shinto #wrap {
  background: #707070;
}

#main section h2 img {
  display: block;
  inline-size: 30%;
  max-inline-size: 80px;
  margin-inline: auto;
  padding-bottom: 20px;
}

#main #gosaishin h2 img {
  inline-size: 50%;
  max-inline-size: 120px;
  padding-bottom: 10px;
}
#gosaishin article {
  margin-bottom: 30px;
}
#gosaishin article > div:nth-child(2) {
  box-sizing: border-box;
}
#gosaishin article > div h3,
#gosaishin article > div h3 {
  display: flex;
}
#gosaishin article > div h3 span,
#gosaishin article > div h4 span {
  display: table;
  font-size: 0.8em;
}
.history__head {
  position: relative;
  text-align: center;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #873d24;
  margin-bottom: 40px;
}
.history__head h3 {
  color: #fff;
  writing-mode: vertical-rl;
  display: inline-block;
}
#history h4 {
  font-weight: bold;
  font-size: 1.4em;
  padding-bottom: 30px;
}
#history p {
  font-size: 1.1em;
  padding-bottom: 40px;
}
#history p strong {
  color: red;
}
#history .f4f1ed h4 {
  padding: 20px 0 0 clamp(10px, 5vw, 40px);
}
#history dl dd,
#architecture dd {
  border-bottom: 1px solid #ddd;
}
#history dl dd:last-child,
#cal dd:last-child,
.girei dd:last-child,
.ritual dd:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

#aboutKiyomasa p {
  max-width: 800px;
  margin-inline: auto;
  font-size: 1.2em;
}

#precinct ul li:last-child,
#child p:last-child {
  padding-bottom: 0;
}
#precinct ul li p span {
  display: block;
  font-weight: bold;
  font-size: 1.1em;
}

#item1 > img,
#item2 > img,
#reception2 img,
.shinto > img {
  display: block;
  inline-size: 20%;
  max-inline-size: 80px;
  margin-inline: auto;
}
#item1 ul li p span {
  display: block;
  padding-bottom: 16px;
  font-size: 1.2em;
}
#main section#item2 h2 img {
  transform: translateX(-18%);
}
#item2 ul {
  display: flex;
  flex-wrap: wrap;
}

#time2,
#firstfruits article,
#construction article {
  position: relative;
  z-index: 3;
  width: 96%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}
#time2 h3 span {
  display: block;
  font-weight: normal;
  font-size: 0.7em;
}
#time2 ul {
  display: flex;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}
#time2 ul li {
  width: 48%;
}
#time2 ul li {
  margin-right: 4%;
}
#time2 ul li:last-child {
  margin-right: 0;
}
#time2 ul li a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
#parking p span {
  display: block;
  padding-top: 10px;
  color: red;
}

#sub li {
  background: #00243b;
  color: #fff;
}
#sub li:has(img),
#sub li img {
  position: relative;
}
#sub li h4 {
  position: absolute;
  z-index: 2;
  padding: 8px 20px;
  background: #873d24;
}

#item1 ul,
#item2 ul {
  max-width: 800px;
  margin: 0 auto;
}
#stamp p {
  display: table;
  margin: 0 auto;
}

#girei table,
.panel-area dl {
  width: 100%;
}
#girei th,
#girei td {
  text-align: center;
  border: 1px solid #ddd;
  background: #fff;
}
#girei .woman td {
  background: #f3e2ec;
}
#girei .man td {
  background: #e2e7f3;
}
#girei td[rowspan="2"] {
  background: #fff;
}
.girei dt,
.ritual dt {
  border-bottom: 1px solid #00243b;
}
.girei img,
.ritual img {
  padding-top: 20px;
}
.girei a {
  text-decoration: underline;
  display: block;
  margin-top: 10px;
}

.tabcontent {
  display: none;
}
.tabcontent.active {
  display: block;
}
.tab-area,
#reception2 article {
  border: 1px solid #00243b;
}
.tab-area {
  display: flex;
  cursor: pointer;
  list-style-type: none;
  padding-left: 0;
}
.tab-area li {
  text-align: center;
  border-left: 1px solid #00243b;
  color: #00243b;
  display: grid;
  place-items: center;
  transition: 0.6s;
}
.tab-area li.activeTab {
  background: #00243b;
  color: #fff;
}
.panel {
  display: none;
  text-align: center;
}
.panel.active {
  display: block;
}

#reception h2,
#child h2 {
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}
#reception2 article ul li dt {
  border-bottom: 1px solid #00243b;
}
.reception2__tel {
  font-size: 1.2em;
}
.reception2__tel span {
  display: block;
  font-size: 1.2em;
}
#firstfruits h4 span {
  color: #fff;
}
#firstfruits > img {
  display: block;
  margin-inline: auto;
  inline-size: 20%;
  max-inline-size: 80px;
}

#architecture h2 span {
  color: #fff;
  background: #d6b05d;
  margin-left: auto;
}
#architecture .lineTrigger {
  width: 96%;
  max-width: 800px;
  margin: 0 auto 30px;
  box-sizing: border-box;
}
#architecture article ul,
#sukeikai .lineinappear ul li ul {
  list-style-type: circle;
  padding-left: 20px;
}
#architecture dt img {
  width: 40px;
  vertical-align: middle;
  padding-right: 10px;
}
#architecture dl dd:last-child {
  margin-bottom: 0;
}

#child > img {
  padding-bottom: clamp(20px, 1.8vw, 30px);
}

.shinto .lineTrigger {
  background: #f4f1ed;
}
#architecture.shinto .lineTrigger {
  margin-bottom: 20px;
}
#architecture.shinto .lineTrigger ~ p {
  color: #fff;
}

#anniversary h4 {
  display: table;
  margin-inline: auto;
  font-weight: bold;
  padding-bottom: clamp(20px, 2vw, 40px);
  font-size: 1.4em;
}
#anniversary p {
  max-width: 800px;
  margin-inline: auto;
  padding-bottom: 10px;
  font-size: 1.1em;
}
#anniversary p:last-child,
#construction p:last-child {
  padding-bottom: 0;
}
#construction ul {
  list-style-type: square;
  margin-left: 20px;
  padding-bottom: clamp(30px, 2.5vw, 50px);
}
#construction ul li {
  font-size: 1.2em;
}
#construction p {
  padding-bottom: 10px;
  font-size: 1.1em;
}
#construction p span {
  display: block;
  text-align: right;
  font-size: 0.9em;
  padding-bottom: 20px;
}
#construction a {
  margin-bottom: 10px;
}

#daizouei__h1 {
  inline-size: 30%;
  max-inline-size: 180px;
  margin-inline: auto;
}

#newslist h1 {
  border-bottom: 1px solid #00243b;
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 5.5vw;
}
#newslist ul {
  padding-bottom: 20px;
  li {
    padding-bottom: 30px;
    a {
      font-size: 3.5vw;
      display: flex;
      align-items: center;
      background: #fff;
      img {
        inline-size: 35%;
        object-fit: cover;
        object-position: center;
        block-size: 30vh;
        box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
        transition: 0.6s;
      }
      div {
        inline-size: 65%;
        box-sizing: border-box;
        padding-block: 10px;
      }
      time {
        font-size: 0.8em;
        line-height: 1em;
      }
      p {
        line-height: 180%;
      }
    }
    a:hover {
      img {
        box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
      }
    }
  }
}

.pager {
  margin: 60px 0;
}

.pager ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pager__item a,
.pager__item--current span,
.pager__prev a,
.pager__next a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ccc;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}

.pager__item a:hover,
.pager__prev a:hover,
.pager__next a:hover {
  background: #8b0000;
  color: #fff;
  border-color: #8b0000;
}

.pager__item--current span {
  background: #8b0000;
  color: #fff;
  border-color: #8b0000;
}

.pager__prev a,
.pager__next a {
  width: auto;
  padding: 0 16px;
  gap: 4px;
}

#entry {
  h1 {
    font-weight: bold;
    font-size: 4.5vw;
    padding-bottom: 20px;
  }
  time {
    display: block;
    text-align: right;
    font-size: 3.8vw;
    padding-bottom: 40px;
  }
  p {
    padding-bottom: 20px;
    font-size: 3.8vw;
  }
}

@media print, screen and (max-width: 560px) {
  br.nobr {
    display: none;
  }

  body#about,
  body#kiyomasa,
  body#visit,
  body#amulet,
  body#prayer,
  body#faq,
  body#delivery,
  body#common,
  body#group {
    background-position: center top 76px;
  }
  body#about {
    background: url(../images/hero-about.avif) no-repeat;
    background-size: 100% auto;
    background-attachment: fixed;
  }
  body#kiyomasa {
    background: url(../images/hero-kiyomasa.avif) no-repeat;
    background-size: auto 50vw;
    background-attachment: fixed;
  }
  body#visit {
    background: url(../images/hero-visit.avif) no-repeat;
    background-size: auto 50vw;
    background-attachment: fixed;
  }
  body#amulet {
    background: url(../images/hero-amulet.avif) no-repeat;
    background-size: auto 50vw;
    background-attachment: fixed;
  }
  body#prayer {
    background: url(../images/hero-prayer.avif) no-repeat;
    background-size: auto 50vw;
    background-attachment: fixed;
  }
  body#delivery {
    background: url(../images/hero-delivery.avif) no-repeat;
    background-size: auto 50vw;
    background-attachment: fixed;
  }
  body#shinto {
    background: url(../images/hero-shinto.avif) no-repeat #000;
    background-size: auto 50vw;
    background-attachment: fixed;
  }
  body#faq {
    background: url(../images/hero-faq.avif) no-repeat;
    background-size: auto 50vw;
    background-attachment: fixed;
  }
  body#group {
    background: url(../images/hero-group.avif) no-repeat;
    background-size: auto 50vw;
    background-attachment: fixed;
  }
  body#common {
    background: url(../images/hero-common.avif) no-repeat;
    background-size: auto 50vw;
    background-attachment: fixed;
  }

  #heroHead {
    padding-bottom: 48%;
  }
  #heroHead h1 {
    font-size: 5.4vw;
  }
  h2.big span {
    font-size: 5vw;
  }

  #wrap,
  #event,
  #stamp,
  #intro,
  #ritual,
  #ritual2,
  #girei {
    padding-top: 80px;
  }

  #item1 h3,
  #item2 h3,
  #stamp h3,
  #reception h3,
  #reception2 h3,
  #sukeikai h3,
  #child h3 {
    font-size: 4vw;
  }
  #gosaishin article > div:nth-child(1) {
    margin-bottom: 40px;
  }
  #gosaishin article > div h3,
  #gosaishin article > div h4 {
    justify-content: center;
  }
  #gosaishin article > div h3 {
    font-size: 5vw;
    padding-bottom: 12px;
  }
  #gosaishin article > div h4 {
    font-size: 4.5vw;
    padding-bottom: 40px;
  }
  #gosaishin article > div h3 span,
  #gosaishin article > div h4 span {
    padding-right: 20px;
  }

  .history__head {
    inline-size: 30vw;
    block-size: 30vw;
    margin: -15vw 0 20px 2%;
  }
  .history__head h3 {
    font-size: 5vw;
    letter-spacing: 1px;
  }
  #history dl,
  #event article,
  #stamp article,
  #intro article,
  #girei article,
  #ritual article,
  #ritual2 article {
    padding: 5vw;
  }
  #event article h3,
  #intro article h3,
  #firstfruits article ul li h3,
  #girei article h3,
  #ritual article h3,
  #ritual2 article h3,
  #sukeikai .lineinappear h4 {
    font-size: 4.5vw;
  }
  #precinct ul li {
    padding-bottom: 30px;
  }
  #precinct ul li p {
    line-height: 120%;
  }
  #precinct ul li p span {
    padding-bottom: 10px;
    font-size: 4vw;
  }
  .girei dt,
  .ritual dt {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .girei dd,
  .ritual dd {
    padding-bottom: 30px;
  }

  #time2 h3,
  #parking h4 {
    font-size: 4.2vw;
  }
  #parking {
    padding-block: 20px 0;
  }
  #sub h3,
  #reception h3,
  #reception2 h3,
  #stamp h3,
  #child h3 {
    text-align: center;
  }
  #sub ul li h4 {
    font-size: 4.5vw;
  }

  #reception p {
    font-size: 4vw;
  }
  #reception2 article h3 {
    font-size: 5vw;
  }
  #reception2 article ul li h5 {
    font-size: 4.5vw;
  }
  #reception2 article ul li dt {
    font-size: 4vw;
    padding-bottom: 3px;
    margin-bottom: 5px;
  }
  #reception2 article ul li dd {
    padding-bottom: 20px;
  }
  #reception2 article ul li:nth-child(2) {
    font-size: 4.5vw;
    line-height: 180%;
  }
  #firstfruits {
    padding-top: 60px;
  }
  #firstfruits h4 {
    display: table;
    margin-inline: auto;
    padding-bottom: 30px;
  }
  #firstfruits h4 span {
    font-size: 4vw;
    padding: 8px 20px;
  }

  #architecture h2 {
    margin-bottom: 30px;
  }
  #architecture h2 span {
    font-size: 4vw;
    padding: 20px 8px;
  }
  #architecture h2 span br {
    display: none;
  }
  #architecture dl dt {
    font-size: 4.4vw;
  }

  #item2 ul li:last-child {
    padding: 10px 5vw;
  }

  #stamp ul li,
  #stamp ul li img {
    position: relative;
  }
  #stamp ul li h4 {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
  }
  #stamp ul li h4 span {
    display: table;
    font-size: 3.6vw;
    color: #fff;
    font-weight: bold;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  }

  .tab-area {
    flex-wrap: wrap;
  }
  .tab-area li {
    box-sizing: border-box;
    width: 50%;
    padding: 8px 0;
  }
  .tab-area li:nth-child(-n + 2) {
    border-bottom: 1px solid #00243b;
  }
  .panel-area {
    padding: 30px 0 0 0;
  }

  #sukeikai h3 {
    padding-right: 5vw;
    padding-left: 5vw;
  }
  #sukeikai article {
    padding: 60px 0;
  }
  #sukeikai .lineinappear {
    padding: 20px;
  }

  #anniversary h3 {
    text-align: center;
  }
  #anniversary h3 span {
    font-size: 7vw;
  }

  #daizouei__h1 {
    padding-top: 100px;
  }
}

@media print, screen and (min-width: 561px) {
  #wrap,
  #event,
  #stamp,
  #intro,
  #girei,
  #ritual,
  #ritual2 {
    padding-top: 100px;
  }

  #precinct ul li {
    padding-bottom: 40px;
  }
  #precinct ul li p {
    line-height: 150%;
  }

  #parking {
    padding-block: 30px;
  }

  #intro {
    margin-bottom: 100px;
  }

  #girei table {
    margin-bottom: 50px;
  }
  .girei dt,
  .ritual dt {
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  .girei dd,
  .ritual dd {
    padding-bottom: 50px;
  }

  #question {
    padding-top: 50px;
  }
  .tab-area li {
    width: 25%;
    padding: 5px 0;
    font-size: 1.8rem;
  }
  .tab-area li:first-child {
    border-left: none;
  }
  #faq #question dl {
    height: auto;
    overflow-y: auto;
    margin-bottom: 0;
  }

  #firstfruits h4 {
    padding-bottom: 40px;
  }

  #reception2 article ul li dt {
    font-size: 2rem;
    padding-bottom: 5px;
    margin-bottom: 8px;
  }
  #reception2 article ul li dd {
    font-size: 1.8rem;
    padding-bottom: 30px;
  }
  #reception2 article ul li:nth-child(2) {
    font-size: 2rem;
    line-height: 220%;
  }

  #architecture h2 {
    margin-bottom: 40px;
  }
  #architecture dl dt {
    font-size: 2.2rem;
  }

  #architecture.shinto .lineTrigger ~ p {
    font-size: 1.2em;
  }

  #sukeikai article {
    padding: 100px 0;
  }

  #anniversary h4 {
    text-align: center;
  }

  #daizouei__h1 {
    padding-top: 200px;
  }
  #newslist h1 {
    font-size: 2.2rem;
    padding-bottom: 12px;
    margin-bottom: 30px;
  }
  #newslist ul li a {
    font-size: 1.8rem;
    img {
      inline-size: 30%;
      block-size: 200px;
    }
    div {
      inline-size: 70%;
      padding: 0 20px;
    }
  }
  #entry {
    h1 {
      font-size: 2.2rem;
    }
    time,
    p {
      font-size: 1.8rem;
    }
  }
}

@media print, screen and (min-width: 561px) and (max-width: 768px) {
  body#about,
  body#kiyomasa,
  body#visit,
  body#amulet,
  body#prayer,
  body#faq,
  body#delivery,
  body#common,
  body#group {
    background-position: center top 78px;
  }

  #heroHead {
    padding-bottom: 34vw;
  }
  h2.big span,
  #heroHead h1 {
    font-size: 2.8rem;
    letter-spacing: 1px;
  }

  #gosaishin article > div h3 {
    font-size: 2.4rem;
    padding-bottom: 8px;
  }
  #gosaishin article > div h4 {
    font-size: 2rem;
    padding-bottom: 30px;
  }
  #gosaishin article > div h3 span,
  #gosaishin article > div h4 span {
    padding-right: 30px;
  }
  .history__head {
    inline-size: 140px;
    block-size: 140px;
    margin: -70px 0 30px 10px;
  }
  .history__head h3 {
    font-size: 2rem;
  }
  #history dl,
  #event article,
  #stamp article,
  #intro article,
  #girei article,
  #ritual article,
  #ritual2 article {
    padding: 20px;
  }
  #event article h3,
  #intro article h3,
  #firstfruits article ul li h3,
  #time2 h3,
  #parking h4,
  #girei article h3,
  #ritual article h3,
  #ritual2 article h3,
  #sukeikai .lineinappear h4 {
    font-size: 2rem;
  }

  #precinct ul li p span {
    padding-bottom: 16px;
    font-size: 2rem;
  }

  #sub ul li h4 {
    font-size: 1.8rem;
  }
  #reception p {
    font-size: 2.2rem;
  }
  #intro article div:first-child p {
    text-align: center;
  }

  #reception2 article ul li h5 {
    font-size: 2rem;
  }
  #reception2 article h3 {
    font-size: 2.4rem;
  }
  #firstfruits h4 span {
    font-size: 2.2rem;
    padding: 4px 10px;
  }

  #item1 h3,
  #item2 h3,
  #stamp h3 {
    font-size: 1.8rem;
  }
  #item1 ul li:nth-child(even),
  #item2 ul li p {
    text-align: center;
  }

  #architecture h2 span {
    font-size: 2.2rem;
    padding: 10px 4px;
  }
}

@media print, screen and (max-width: 768px) {
  body#about,
  body#kiyomasa,
  body#visit,
  body#amulet,
  body#prayer,
  body#faq,
  body#delivery,
  body#common,
  body#group,
  body#shinto {
    background-position: center top 80px;
  }

  h2.big,
  #item1 h3,
  #item2 h3,
  #stamp h3,
  #reception h3,
  #reception2 h3,
  #sukeikai h3,
  #child h3 {
    padding-bottom: 40px;
  }
  #gosaishin article > div:nth-child(2) {
    padding: 20px;
  }

  #history dl dt {
    padding-bottom: 8px;
  }
  #history dl dd,
  #architecture dd {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  #event article h3,
  #intro article h3,
  #firstfruits article ul li h3,
  #time2 h3,
  #parking h4,
  #girei article h3,
  #ritual article h3,
  #ritual2 article h3,
  #sukeikai .lineinappear h4 {
    padding-bottom: 20px;
    text-align: center;
  }

  #precinct ul li img {
    padding-bottom: 6px;
  }

  #time2 {
    padding: 20px;
  }

  #construction article {
    margin-top: -40px;
    padding: 20px;
  }

  #sub ul li:nth-child(even),
  #item1 ul li:nth-child(even) {
    box-sizing: border-box;
    padding: 20px;
  }
  #sub ul li:nth-child(2) {
    margin-bottom: 30px;
  }

  #reception .img-head,
  #child .img-head {
    margin-bottom: 30px;
  }
  #reception p {
    line-height: 150%;
  }
  #intro article div:first-child {
    padding-bottom: 50px;
  }
  #firstfruits article {
    padding: 20px;
  }
  #firstfruits ul li,
  #girei article div:nth-child(2) {
    padding-top: 50px;
  }
  #girei article div table {
    margin-bottom: 50px;
  }
  #girei .girei table tfoot td {
    padding: 10px 16px;
    text-align: left;
  }

  #reception2 article {
    padding: 20px;
  }
  #reception2 article h3 {
    padding-bottom: 16px;
  }
  #reception2 article p {
    padding-bottom: 30px;
  }
  #reception2 article ul {
    padding-bottom: 30px;
  }
  #reception2 article ul li:first-child,
  #sukeikai .lineinappear > ul > li:first-child {
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
    margin-bottom: 30px;
  }
  #reception2 article ul li h5 {
    padding-bottom: 16px;
  }

  #architecture .lineTrigger {
    padding: 20px;
  }
  #architecture article p {
    padding-bottom: 20px;
  }
  #architecture dt {
    padding-bottom: 8px;
  }

  #sukeikai .lineinappear > ul {
    padding-bottom: 20px;
  }

  #stamp h3 {
    padding-bottom: 20px;
  }
  #stamp ul {
    padding-bottom: 12px;
  }
}

@media print, screen and (min-width: 769px) {
  h2.big,
  #item1 h3,
  #item2 h3,
  #stamp h3,
  #reception h3,
  #reception2 h3,
  #sukeikai h3,
  #child h3 {
    padding-bottom: 50px;
  }
  #gosaishin article,
  #intro article,
  #girei article {
    display: flex;
  }
  #intro article > div,
  #girei article > div {
    width: 50%;
  }

  #history dl dt {
    padding-bottom: 10px;
  }
  #history dl dd,
  #architecture dd {
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  #precinct,
  #firstfruits article ul li:first-child,
  #girei article > div:first-child {
    box-sizing: border-box;
    border-right: 1px solid #ddd;
    padding-right: 30px;
  }
  #firstfruits article ul li:nth-child(2),
  #girei article > div:nth-child(2) {
    box-sizing: border-box;
    padding-left: 30px;
  }

  #time2 {
    padding: 50px;
  }

  #construction article {
    margin-top: -100px;
    padding: 50px;
  }

  #sub ul {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-wrap: wrap;
    margin-inline: auto;
  }
  #sub ul li {
    width: 50%;
  }
  #sub ul li:nth-child(-n + 2) {
    margin-bottom: 40px;
  }
  #sub ul li:nth-child(even) {
    display: grid;
    place-items: center;
  }
  #sub ul li:nth-child(1) {
    order: 1;
  }
  #sub ul li:nth-child(2) {
    order: 2;
  }
  #sub ul li:nth-child(3) {
    order: 4;
  }
  #sub ul li:nth-child(4) {
    order: 3;
  }

  #precinct ul {
    display: flex;
    flex-wrap: wrap;
  }
  #precinct ul li {
    width: 48%;
    margin-right: 4%;
  }
  #precinct ul li:nth-child(even) {
    margin-right: 0;
  }
  #precinct ul li:nth-last-child(-n + 2) {
    padding-bottom: 0;
  }

  #item1 ul {
    display: flex;
    flex-wrap: wrap;
  }
  #item1 ul li {
    width: 50%;
  }
  #item1 ul li:nth-child(even),
  #item2 ul li:last-child {
    display: grid;
    place-items: center;
  }
  #item1 ul li:nth-child(1) {
    order: 1;
  }
  #item1 ul li:nth-child(2) {
    order: 2;
  }
  #item1 ul li:nth-child(3) {
    order: 4;
  }
  #item1 ul li:nth-child(4) {
    order: 3;
  }

  #stamp h3 {
    padding-bottom: 30px;
  }
  #stamp ul {
    padding-bottom: 20px;
  }
  #stamp ul li h4 span {
    display: block;
  }

  #reception,
  #reception2 {
    padding-top: 50px;
  }
  #reception .img-head,
  #child .img-head {
    margin-bottom: 40px;
  }
  #reception p {
    line-height: 200%;
  }

  #intro article {
    flex-wrap: wrap;
  }
  #intro article > div:first-child {
    box-sizing: border-box;
    border-right: 1px solid #ddd;
    padding-right: 30px;
  }
  #intro article > div:nth-child(2) {
    box-sizing: border-box;
    padding-left: 30px;
  }
  #intro article p {
    width: 100%;
  }
  #intro article div p {
    padding-bottom: 20px;
  }
  #intro article > p {
    padding-top: 20px;
  }

  #firstfruits article {
    padding: 50px;
  }
  #firstfruits article ul {
    display: flex;
    justify-content: space-between;
  }
  #firstfruits article ul li {
    width: 48%;
  }
  #firstfruits article p {
    padding-bottom: 30px;
  }

  #reception2 article {
    padding: 80px;
  }
  #reception2 article h3 {
    font-size: 3rem;
    padding-bottom: 20px;
  }
  #reception2 article p {
    text-align: center;
    padding-bottom: 40px;
  }
  #reception2 article ul {
    display: flex;
    padding-bottom: 40px;
  }
  #reception2 article ul li,
  #sukeikai .lineinappear > ul > li {
    width: 50%;
    box-sizing: border-box;
  }
  #reception2 article ul li:first-child,
  #sukeikai .lineinappear > ul > li:first-child {
    border-right: 1px solid #ddd;
    padding-right: 30px;
  }
  #reception2 article ul li:nth-child(2),
  #sukeikai .lineinappear > ul > li:nth-child(2) {
    padding-left: 30px;
  }
  #reception2 article ul li h5 {
    font-size: 2.4rem;
    padding-bottom: 20px;
  }

  #architecture .lineTrigger {
    padding: 50px;
  }
  #architecture article p {
    padding-bottom: 30px;
  }
  #architecture dt {
    padding-bottom: 10px;
  }

  #sukeikai .lineinappear > ul {
    display: flex;
    padding-bottom: 30px;
  }
  #sukeikai .lineinappear > ul ~ p {
    text-align: center;
  }
  #child p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.8rem;
    padding-bottom: 20px;
  }
  #child > img {
    display: block;
    max-width: 800px;
    margin: 0 auto;
  }

  #newslist h1 {
    font-size: 2.4rem;
  }
  #newslist ul {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 50px;
    li {
      inline-size: 32%;
      margin: 0 2% 40px 0;
      padding-bottom: 0;
      a {
        display: block;
        background: none;
        font-size: 1.6rem;
        div {
          display: contents;
        }
        img {
          inline-size: 100%;
          padding-bottom: 10px;
        }
      }
    }
    li:nth-child(3n) {
      margin-right: 0;
    }
  }
}

@media print, screen and (min-width: 561px) and (max-width: 1024px) {
  #item2 ul li:last-child {
    width: 100%;
    padding: 20px 0;
  }

  #stamp ul li {
    display: flex;
    padding-bottom: 10px;
  }
  #stamp ul li img {
    display: block;
    width: 36%;
  }
  #stamp ul li h4 {
    width: 64%;
    box-sizing: border-box;
    padding: 0 20px;
    display: grid;
    place-items: center;
  }

  .panel-area {
    padding: 50px 40px 0 0;
  }

  #sukeikai .lineinappear {
    padding: 40px;
  }
}

@media print, screen and (min-width: 769px) and (max-width: 1024px) {
  body#about,
  body#kiyomasa,
  body#visit,
  body#amulet,
  body#prayer,
  body#faq,
  body#delivery,
  body#common,
  body#group,
  body#shinto {
    background-position: center top 77px;
  }

  h2.big span,
  #heroHead h1 {
    font-size: 2.4rem;
    letter-spacing: 2px;
  }

  #sukeikai h3 span {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }
  #gosaishin article > div:first-child {
    width: 40%;
  }
  #gosaishin article > div:nth-child(2) {
    width: 60%;
    padding: 20px;
  }
  #gosaishin article > div h3 {
    font-size: 2rem;
    padding-bottom: 5px;
  }
  #gosaishin article > div h4 {
    font-size: 1.8rem;
    padding-bottom: 20px;
  }
  #gosaishin article > div h3 span,
  #gosaishin article > div h4 span {
    padding-right: 20px;
  }

  .history__head {
    inline-size: 180px;
    block-size: 180px;
    margin: -90px 0 40px 20px;
  }
  .history__head h3 {
    font-size: 2.4rem;
    letter-spacing: 1px;
  }
  #history dl,
  #event article,
  #stamp article,
  #intro article,
  #girei article,
  #ritual article,
  #ritual2 article {
    padding: 30px;
  }
  #event article h3,
  #intro article h3,
  #firstfruits article ul li h3,
  #time2 h3,
  #parking h4,
  #girei article h3,
  #ritual article h3,
  #ritual2 article h3,
  #sukeikai .lineinappear h4 {
    font-size: 2rem;
    padding-bottom: 20px;
  }
  #precinct ul li img {
    padding-bottom: 10px;
  }
  #precinct ul li p span {
    padding-bottom: 20px;
  }
  #sub ul li h4 {
    font-size: 1.6rem;
  }
  #sub ul li p {
    font-size: 1.4rem;
  }

  #reception p {
    font-size: 2.6rem;
  }
  #firstfruits h4 span {
    font-size: 2.6rem;
    padding: 10px 14px;
  }

  #architecture dt {
    font-size: 1.8rem;
  }

  #item1 h3,
  #item2 h3,
  #stamp h3 {
    font-size: 2rem;
  }
  #item2 ul li:last-child {
    font-size: 1.8rem;
  }

  #architecture h2 span {
    font-size: 2.6rem;
    padding: 14px 10px;
  }
}

@media print, screen and (max-width: 1024px) {
  .girei dt,
  .ritual dt {
    font-size: 1.8rem;
  }

  #item2 ul li:nth-child(-n + 7) {
    width: 33.33333%;
  }
  #item2 ul li:nth-child(-n + 4) {
    width: 25%;
  }
}

@media print, screen and (min-width: 1025px) {
  body#about,
  body#kiyomasa,
  body#visit,
  body#amulet,
  body#prayer,
  body#faq,
  body#delivery,
  body#common,
  body#group,
  body#shinto {
    background-position: center top 100px;
  }

  h2.big span,
  #heroHead h1 {
    font-size: 3rem;
    letter-spacing: 4px;
  }

  #sukeikai h3 span {
    font-size: 2rem;
    letter-spacing: 4px;
    line-height: 180%;
  }
  #gosaishin article > div {
    width: 50%;
  }
  #gosaishin article > div:nth-child(2) {
    padding: 60px;
  }
  #gosaishin article > div h3 {
    font-size: 2.2rem;
    padding-bottom: 10px;
  }
  #gosaishin article > div h4 {
    font-size: 2rem;
    padding-bottom: 30px;
  }
  #gosaishin article > div h3 span,
  #gosaishin article > div h4 span {
    padding-right: 30px;
  }

  .history__head {
    inline-size: 240px;
    block-size: 240px;
    margin: -120px 0 60px;
    transform: translateX(60px);
  }
  .history__head h3 {
    font-size: 3rem;
    letter-spacing: 2px;
  }

  #history dl,
  #event article,
  #stamp article,
  #intro article,
  #girei article,
  #ritual article,
  #ritual2 article {
    padding: 40px;
  }
  #event article h3,
  #intro article h3,
  #firstfruits article ul li h3,
  #time2 h3,
  #parking h4,
  #girei article h3,
  #ritual article h3,
  #ritual2 article h3,
  #sukeikai .lineinappear h4 {
    font-size: 2.4rem;
    padding-bottom: 30px;
  }
  #precinct ul li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  #precinct ul li img {
    inline-size: 38%;
  }
  #precinct ul li p {
    inline-size: 58%;
  }
  #precinct ul li p span {
    padding-bottom: 24px;
  }

  #sub ul li h4 {
    font-size: 1.8rem;
  }

  #item1 h3,
  #item2 h3,
  #stamp h3 {
    font-size: 2.2rem;
  }
  #item2 ul li:nth-child(-n + 6) {
    width: 33.33333333%;
  }
  #item2 ul li:nth-last-child(-n + 2) {
    width: 50%;
  }

  #reception p {
    font-size: 3rem;
  }
  #firstfruits h4 {
    padding-bottom: 50px;
  }
  #firstfruits h4 span {
    font-size: 2.8rem;
    letter-spacing: 2px;
    padding: 16px 30px;
  }
  #firstfruits article p,
  #firstfruits article ul li,
  #architecture dd,
  #architecture li {
    font-size: 1.8rem;
  }

  #architecture h2 span {
    font-size: 2.8rem;
    letter-spacing: 2px;
    padding: 30px 16px;
  }
  #architecture dt {
    font-size: 2rem;
  }

  #stamp ul {
    display: flex;
  }
  #stamp ul li {
    width: 33.33333%;
  }
  #stamp ul li h4 {
    padding-block: 10px 0;
  }

  .girei dt,
  .ritual dt {
    font-size: 2rem;
  }
  #girei th,
  #girei td {
    padding: 10px;
  }

  #sukeikai .lineinappear {
    padding: 80px;
  }

  .panel-area {
    padding: 80px 80px 0 80px;
  }
}
