@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #94191f;
  background: #f7f7f7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
}

.line {
  border-top: 3px solid #94191f;
  margin-bottom: 0;
}


/*一覧*/
main{
  margin-top: 8rem;
}

.Shrine-list{
  align-items: center;
}

.letters {
  font-size: clamp(32px, 5vw, 64px);
  text-align: center;
  margin: 4rem auto;
  color: #94191f;
}

.grid {
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 3rem; /* 横 */
  row-gap: 5rem;    /* 縦 */
}

.thumb {
  border: 0;
  padding: 18px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  color: #94191f;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid #eee;
  box-shadow: none;
}

.thumb:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,.3);
}

.thumb:hover img {
  transform: none;
  box-shadow: none;
}

.thumb-title {
  display: block;
  margin-top: 18px;
  font-size: 22px;
  letter-spacing: .05em;
  color: #94191f;
}

/*モーダル*/
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .25s ease;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
}

.modal__panel {
  position: relative;
  width: min(620px, 94vw);
  margin: 6vh auto;
  background: #690b10;
  color: #fff;
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0,0,0,.6),
    0 0 30px rgba(0,255,249,.18);
  overflow: hidden;
}

.modal__body {
  max-height: 80vh;
  overflow: auto;
  padding: 30px;
}

.modal__gallery {
  margin: 40px auto;
}
.modal__gallery img{
    border-radius: 20px;
}

.modal__body h2 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: .02em;
}

.modal__body p {
  line-height: 1.9;
  color: rgba(255,255,255,.82);
  font-size: 16px;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  z-index: 2;
}

.modal__close:hover {
  background: rgba(255,255,255,.24);
}

body.modal-lock {
  overflow: hidden;
}

.glitch-btn {
    position: relative;
    display: inline-block;
    margin-top: 18px;
    padding: 10px 22px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: .1em;
  }
  
  .glitch-btn:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.8);
  }



/*フッター*/
.footer {
  min-height: 235px;
  background: #94191f;
  color: #fff;
  position: relative;
  padding: 28px;
  top: 4rem;
}

.footer-logo {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 230px;
  margin-top: 78px;
  font-size: 15px;
}

.footer-nav a {
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 0.6;
}

.footer small {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  opacity: 0.9;
}



@media (max-width: 800px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  html,body{
    width: 100%;
    overflow-x: hidden;
  }


  .nav {
    gap: 16px;
    font-size: 12px;
  }

  .lang-switch {
    width: 62px;
  }

  .grid {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;

    grid-template-columns: 1fr;
    justify-items: center;
  }

  .thumb {
    width: 100%;
    max-width: 320px;
  }

  .modal__body {
    padding: 24px;
  }
}