@charset "UTF-8";

:root {
  --omiyori-red: #94191f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #94191f;
  background: #f7f7f7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
}


/* =========================
   ヘッダー
========================= */

.header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 50px;
  padding: 0 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: transparent;
  color: var(--omiyori-red);

  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 1000;
}
.logo {
  font-size: 15px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--omiyori-red);
}

/* ハンバーガーボタン */
.hamburger {
  display: block;
  position: relative;

  width: 30px;
  height: 24px;
  padding: 0;

  background: none;
  border: none;
  cursor: pointer;

  z-index: 1200;
}

.hamburger span {
  display: block;
  position: absolute;
  left: 0;

  width: 100%;
  height: 2px;

  background-color: var(--omiyori-red);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 11px;
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* 開いた時の× */
.hamburger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* スマホ時のナビ */
.nav {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100vh;

  background-color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;

  z-index: 1100;
}

.nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav a {
  color: var(--omiyori-red);
  font-size: 20px;
  letter-spacing: 0.08em;
}

/* 言語切り替えボタン */
.lang-switch {
  width: 75px;
  height: 24px;
  padding: 3px;

  border-radius: 999px;
  background: #9b1c23;

  display: flex;
  align-items: center;

  cursor: pointer;
  color: #fff;
  position: relative;
}

.switch-circle {
  width: 18px;
  height: 18px;

  background: #fff;
  border-radius: 50%;

  position: absolute;
  left: 3px;
  top: 3px;

  transition: transform 0.3s ease;
  z-index: 2;
}

#langLabel {
  width: 100%;
  margin: 0;
  padding-right: 10px;

  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: right;

  transition: all 0.3s ease;
  z-index: 1;
}

.lang-switch.active .switch-circle {
  transform: translateX(51px);
}

.lang-switch.active #langLabel {
  text-align: left;
  padding-right: 0;
  padding-left: 10px;
}

/* PC版 */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav {
    position: static;

    width: auto;
    height: auto;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;

    background: transparent;

    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav a {
    font-size: 15px;
  }
}

/* スマホ版 */
@media (max-width: 767px) {
  .header {
    padding: 0 20px;
  }
}


/* =========================
   メインビジュアル
========================= */

.main-visual {
  position: relative;
  height: 780px;
  overflow: hidden;
}

.main-visual .main_img,
.main_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 25, 0.55);
  z-index: 1;
}

.main-title-wrap {
  position: absolute;
  left: 7%;
  top: 38%;
  transform: translateY(-50%);
  z-index: 2;
}

.main-title {
  font-size: clamp(80px, 13vw, 190px);
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.copy {
  position: absolute;
  left: 7%;
  bottom: 145px;
  color: #fff;
  z-index: 2;
}

.copy p {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 14px;
}

.main-subtitle {
  margin-left: 0;
  font-size: clamp(18px, 2vw, 32px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.08em;
  display: block;
  white-space: normal;
  line-height: 1.4;
}

.main-subtitle br {
  display: block;
}

.search-btn {
  display: inline-block;
  min-width: 130px;
  padding: 8px 18px;
  text-align: center;
  border: 1px solid #fff;
  color: #fff;
  font-size: 15px;
  transition: 0.3s;
}

.search-btn:hover {
  background: #fff;
  color: #94191f;
}


/* =========================
   神社とは
========================= */

.about-shrine {
  padding: 92px 56px 42px;
  background: #f7f7f7;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #d7d7d7;
}

/* タイトル部分 */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
  color: #94191f;
}

.section-title span {
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.section-title strong {
  font-size: clamp(58px, 7vw, 92px);
  line-height: 1;
  font-weight: 900;
}


/* スクロール部分 */

.scroll.area {
  width: 94%;
  height: 590px;
  margin: 0 auto;
  overflow-y: scroll;
  overflow-x: hidden;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll.area::-webkit-scrollbar {
  display: none;
}

.scroll.area .image-box {
  position: sticky;
  top: 0;
  width: 100%;
  height: 590px;
  margin: 0;
  overflow: hidden;
}

/* 重なり順 */
.scroll.area .image-box:nth-child(1) {
  z-index: 1;
}

.scroll.area .image-box:nth-child(2) {
  z-index: 2;
}

.scroll.area .image-box:nth-child(3) {
  z-index: 3;
}


/* 画像 */

.image-box {
  position: relative;
  width: 100%;
  height: 590px;
  margin: 0;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%);
}

.image-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(35, 30, 45, 0.46);
  z-index: 1;
}

.Explanation.area {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);

  width: 280px;
  min-height: 110px;
  padding: 22px 18px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  background: rgba(235, 235, 235, 0.65);
  color: #94191f;
  z-index: 2;
}

.Explanation.area p {
  width: 100%;
  margin-bottom: 14px;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  text-align: center;
  font-size: 16px;
  line-height: 1.45;
}

.small-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 150px;
  height: 32px;
  border: 1px solid #94191f;
  color: #94191f;
  font-size: 14px;
}


/* =========================
   検索部分
========================= */

.search {
  width: 100%;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
  background: #fafafa;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.search p {
  margin: 0;
  color: #8f2525;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-align: center;
}

.outline-red-btn {
  width: 130px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;

  border: 1px solid #c48787;
  color: #8f2525;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.03em;
  background: transparent;
}

.outline-red-btn:hover {
  background: #8f2525;
  color: #fff;
}


/* =========================
   授与品カード
========================= */

.keepsakes {
  padding: 58px 28px 155px;
  background: #f7f7f7;
}

.keepsakes .section-title {
  margin-bottom: 50px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.item-card {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 3px;
  background: #ddd;
}

.item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.58) grayscale(5%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.item-card:hover img {
  filter: brightness(1) grayscale(0%);
  transform: scale(1.04);
}

.gray-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ddd;
}

.gray-card h3 {
  font-size: 16px;
  font-weight: 400;
}

.item-label {
  position: absolute;
  top: 24px;
  left: 22px;
  z-index: 2;
  font-size: 11px;
  color: #fff;
}

.item-card[data-modal="goshuin"] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.35);
  transform-origin: center;
}

.item-card[data-modal="goshuin"]:hover img {
  filter: brightness(1) grayscale(0%);
  transform: scale(1.4);
}


/* =========================
   画像拡大ウィンドウ
========================= */

.imgview {
  position: fixed;
  inset: 0;
  z-index: 10000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .2s ease, visibility 0s linear .2s;
}

.imgview.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition: opacity .2s ease;
}

.imgview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
}

.imgview__panel {
  position: relative;
  width: min(1000px, 96vw);
  height: min(90vh, 96vh);
  margin: 5vh auto;

  display: grid;
  place-items: center;
}

#imgviewImg {
  width: auto;
  height: auto;

  max-width: min(96vw, 1100px);
  max-height: 88vh;

  object-fit: contain;
  object-position: center;

  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.imgview__close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 44px;
  height: 44px;

  border-radius: 999px;
  border: none;

  background: rgba(255,255,255,.14);
  color: #fff;

  font-size: 26px;
  cursor: pointer;
  z-index: 2;
}


/* =========================
   授与品説明ウィンドウ
========================= */

.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(30, 0, 0, 0.45);
}

.modal__panel.keepsake-modal {
  position: relative;

  width: min(1480px, 96vw);
  height: min(920px, 94vh);
  margin: 3vh auto;

  background: #94191f;
  color: #fff;

  border-radius: 0;
  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;

  background: transparent;
  color: #fff;

  font-size: 28px;
  cursor: pointer;
  z-index: 20;
}

.modal__close:hover {
  background: rgba(255,255,255,.12);
}

/* 全体の配置 */
.keepsake-modal__body {
  display: grid;
  grid-template-columns: 1.75fr 0.95fr;
  gap: 64px;

  width: 100%;
  height: 100%;

  padding: 82px 42px 42px;
  overflow: hidden;
}

/* 左画像 */
.keepsake-modal__image-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(0,0,0,.15);
}

#modalMainImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 1;
  transform: scale(1);
  transition:
    opacity .35s ease,
    transform .55s ease;
}

#modalMainImage.is-changing {
  opacity: 0;
  transform: scale(1.04);
}

/* 右側の文字エリア */
.keepsake-modal__content {
  height: 100%;
  overflow-y: auto;
  padding: 28px 18px 60px 0;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.keepsake-modal__content::-webkit-scrollbar {
  display: none;
}

/* スクロール対象の文字ブロック */
.modal-text-block {
  min-height: 78vh;

  display: flex;
  flex-direction: column;
  justify-content: center;

  opacity: .28;
  transform: translateY(24px);

  transition:
    opacity .35s ease,
    transform .35s ease;
}

.modal-text-block.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* 一番上のタイトル */
.keepsake-modal__title {
  margin: 0 0 56px;

  font-size: clamp(58px, 6.4vw, 112px);
  line-height: 1.03;
  font-weight: 300;
  letter-spacing: 0.01em;

  color: #fff;
}

.keepsake-modal__title strong {
  font-weight: 800;
}

/* 小見出し */
.keepsake-modal__block {
  margin-bottom: 28px;
}

.keepsake-modal__block h3,
.modal-text-block h3 {
  margin: 0 0 8px;

  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;

  color: #fff;
}

/* 本文 */
.keepsake-modal__block p,
.modal-text-block p {
  margin: 0;

  font-size: 21px;
  line-height: 1.42;
  letter-spacing: .04em;

  color: rgba(255,255,255,.96);
  white-space: pre-line;
}

body.modal-lock {
  overflow: hidden;
}


/* =========================
   フッター
========================= */

.footer {
  min-height: 235px;
  background: #94191f;
  color: #fff;
  position: relative;
  padding: 28px;
}

.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;
}


/* =========================
   一文字ずつ下から出る
========================= */

.js-char-appear {
  overflow: hidden;
}

.js-char-appear .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(120%);

  font: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.js-char-appear.is-show .char {
  animation: charUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 0.08s);
}

@keyframes charUp {
  from {
    opacity: 0;
    transform: translateY(120%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   タブレット
========================= */

@media (max-width: 1100px) {
  .modal__panel.keepsake-modal {
    width: 96vw;
    height: 94vh;
  }

  .keepsake-modal__body {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 72px 24px 24px;
    overflow: hidden;
  }

  .keepsake-modal__image-wrap {
    height: 38vh;
  }

  .keepsake-modal__content {
    height: calc(56vh - 60px);
    padding-right: 0;
  }

  .modal-text-block {
    min-height: 50vh;
  }

  .keepsake-modal__title {
    font-size: clamp(42px, 9vw, 72px);
    margin-bottom: 32px;
  }
}


/* =========================
   スマホ版レイアウト
========================= */

@media (max-width: 640px) {

  body {
    background: #f7f7f7;
    overflow-x: hidden;
  }


  /* メインビジュアル */

  .main-visual {
    height: 650px;
  }

  .main-title-wrap {
    left: 16px;
    top: 260px;
    transform: none;
  }

  .main-title {
    font-size: 50px;
    line-height: 0.9;
    letter-spacing: -0.08em;
    color: rgba(255, 255, 255, 0.68);
  }

  .copy {
    left: 16px;
    bottom: 245px;
  }

  .main-subtitle {
    font-size: 18px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 48px;
  }

  .search-btn {
    min-width: 92px;
    height: 34px;
    padding: 6px 12px;
    font-size: 18px;
    border: 1px solid #fff;
    color: #fff;
    text-align: center;
  }


  /* セクションタイトル共通 */

  .section-title {
    display: block;
    margin-bottom: 0;
    padding: 0 15px;
  }

  .section-title span {
    display: inline;
    font-size: 39px;
    line-height: 1.05;
    letter-spacing: 0.01em;
  }

  .section-title strong {
    display: inline;
    font-size: 39px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0.01em;
  }


  /* 神社とは */

  .about-shrine {
    padding: 40px 0 18px;
    background: #f7f7f7;
    border-top: none;
  }

  .about-shrine .section-title {
    margin-bottom: -4px;
  }

  .scroll.area {
    width: calc(100% - 30px);
    height: 430px;
    margin: 0 auto;
    overflow-y: auto;
  }

  .scroll.area .image-box,
  .image-box {
    height: 430px;
  }

  .image-box img {
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
  }

  .image-box::after {
    background: rgba(55, 50, 68, 0.45);
  }

.Explanation.area {
  width: 250px;
  min-height: 94px;
  padding: 17px 12px;
  top: 52%;
  background: rgba(235, 225, 225, 0.72);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}

.Explanation.area p {
  width: 100%;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 16px;

  text-align: center;
}

  .small-btn {
    min-width: 170px;
    height: 34px;
    font-size: 16px;
  }


  /* 検索導入 */

  .search {
    min-height: 270px;
    gap: 28px;
    padding: 0 20px;
  }

  .search p {
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.03em;
  }

  .outline-red-btn {
    width: 92px;
    height: 32px;
    font-size: 17px;
  }


  /* 授与品カード */

  .keepsakes {
    padding: 42px 15px 58px;
  }

  .keepsakes .section-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0;
    margin-bottom: 12px;
    white-space: nowrap;
  }

  .keepsakes .section-title span,
  .keepsakes .section-title strong {
    display: inline-block;
    font-size: 39px;
    line-height: 1;
  }

  .keepsakes .section-title strong {
    font-weight: 900;
  }

  .card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .item-card {
    height: 155px;
    border-radius: 0;
  }

  .item-card img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.58) grayscale(5%);
  }

  .gray-card {
    background: #ddd;
  }

  .gray-card h3 {
    display: none;
  }

  .item-label {
    top: 8px;
    left: 8px;
    font-size: 11px;
    color: #fff;
    z-index: 5;
  }


  /* フッター */

  .footer {
    min-height: 185px;
    padding: 24px 15px 18px;
  }

  .footer-logo {
    font-size: 10px;
  }

  .footer-nav {
    gap: 48px;
    margin-top: 48px;
    font-size: 14px;
  }

  .footer small {
    bottom: 14px;
    font-size: 9px;
  }


  /* モーダル スマホ調整 */

  .modal__panel.keepsake-modal {
    width: 100vw;
    height: 100vh;
    margin: 0;
  }

  .keepsake-modal__body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 72px 18px 18px;
  }

  .keepsake-modal__image-wrap {
    height: 34vh;
  }

  .keepsake-modal__content {
    height: calc(66vh - 90px);
    padding-right: 0;
  }

  .keepsake-modal__title {
    font-size: 42px;
    line-height: 1.08;
  }

  .keepsake-modal__block h3,
  .modal-text-block h3 {
    font-size: 18px;
  }

  .keepsake-modal__block p,
  .modal-text-block p {
    font-size: 16px;
    line-height: 1.55;
  }
}


