* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  color: #1f1a16;
  background: #f6f1e8;
  font-family: "Noto Serif JP", serif;
  line-height: 1.9;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  padding: 0 5vw;

  display: flex;
  align-items: center;

  color: #fff;
  background: rgba(20, 14, 10, .45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  order: 1;
  margin-right: auto;
  font-size: 22px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

/* PCナビゲーション */
.nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.nav a {
  position: relative;
  transition: opacity .3s;
}

.nav a:hover {
  opacity: .35;
}

/* お問い合わせボタン */
.contact-btn {
  order: 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 42px;
  margin-left: 24px;
  padding: 0 18px;

  color: #fff;
  background: #1F3A2E;
  border: 1px solid rgba(255, 255, 255, .55);

  font-size: 13px;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;

  transition:
    color .3s,
    background-color .3s,
    border-color .3s;
}

.contact-btn:hover {
  color: #8c2633;
  background: #fff;
  border-color: #fff;
}

.contact-icon {
  font-size: 24px;
  line-height: 1;
    margin: -4px 0px 0 8px;   /* 上へ4px移動 */
}
.hamburger {
  order: 4;
  display: none;
}

@media (max-width:900px){

  .contact-btn{
      width: auto;
      height: auto;
      margin: -8px 14px 0 8px;
      padding: 0;

      background: transparent;
      border: none;
      box-shadow: none;
  }

  .contact-text{
      display: none;
  }

  .contact-icon{
      display: block;
      font-size: 50px;   /* アイコンを大きく */
      line-height: 1;
      color: #fff;
  }

  .contact-btn:hover{
      background: transparent;
      color: #fff;
      opacity: .75;
  }

}
/* hero */
.hero {
  min-height: 100vh;
  padding: 160px 8vw 80px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9,7,5,.78), rgba(9,7,5,.38), rgba(9,7,5,.68)),
    url("img/top-2.jpg") center/cover;
}

.hero-inner {
  max-width: 760px;
}

.hero-label {
  margin-bottom: 24px;
  color: #d8b56d;
  letter-spacing: .28em;
  font-size: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: .08em;
}

.hero p {
  margin-top: 28px;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-btn {
  display: inline-block;
  margin-top: 36px;
  padding: 13px 34px;
  border: 1px solid rgba(255,255,255,.75);
  letter-spacing: .16em;
  transition: .3s;
}

.hero-btn:hover {
  background: #fff;
  color: #211811;
}

.scroll-down {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .35em;
  transition: .3s;
}

.scroll-down:hover {
  opacity: .7;
}

.arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: arrowMove 1.8s infinite;
}

@keyframes arrowMove {
  0% {
    transform: rotate(45deg) translate(0,0);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: rotate(45deg) translate(10px,10px);
    opacity: 0;
  }
}

/* common */
.section {
  padding: 110px 8vw;
}

.section-head {
  margin-bottom: 52px;
}

.en {
  color: #9b7841;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.section h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: .08em;
}

.about-grid,
.shichi-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.about-grid .about-img {
  align-self: start;
  margin-top: -5px;
}

.about-img,
.shichi-img {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 28px 28px 0 rgba(120, 82, 38, .16);
}

.lead {
  font-size: 22px;
  line-height: 2;
}

.text {
  color: #5d5147;
}

.dark {
  color: #fff;
 background: #1F3A2E;
}

.dark .text {
  color: #d9d0c2;
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fffaf1;
  border: 1px solid rgba(90, 62, 28, .15);
}

.card img {
  height: 230px;
  width: 100%;
  object-fit: cover;
}

.card-body {
  padding: 28px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.goshuin-box {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
  align-items: center;
  background: #fffaf1;
  padding: 42px;
  border: 1px solid rgba(90, 62, 28, .15);
}

.goshuin-img img {
  height: 450px;
  width: 100%;
  object-fit: cover;
}

.goshuin-text h3 {
  margin: 0 0 16px;
  font-size: 26px;
}

.goshuin-text p {
  margin: 0;
  color: #5d5147;
}

@media (max-width: 900px) {
  .goshuin-box {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .goshuin-img img {
    height: 240px;
  }
}

/* news */
.news {
  max-width: 900px;
  margin: auto;
}

.news-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(80,60,35,.2);
}

.date {
  color: #9b7841;
  letter-spacing: .08em;
}

/* event */
.events {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.event {
  padding: 32px 26px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
}

.month {
  color: #d8b56d;
  font-size: 15px;
}

/* gallery */
.gallery-slider {
  overflow: hidden;
  margin-top: 50px;
}

.gallery-track {
  display: flex;
  width: max-content;
  animation: galleryScroll 35s linear infinite;
}



.gallery-item {
  width: 260px;
  margin-right: 20px;
  flex-shrink: 0;
  overflow: hidden;
  background: #fffaf1;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: .4s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  padding: 12px 14px 14px;
  background: #fffaf1;
}

.gallery-caption h3 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 600;
  color: #2b2118;
}

.gallery-caption p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

@keyframes galleryScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-1400px);
  }
}

/* access */
.access-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  padding: 48px;
  background: #fffaf1;
  border: 1px solid rgba(90, 62, 28, .15);
}

.map {
  min-height: 400px;
  display: grid;
  place-items: center;
  color: #fff;

}

/* footer */
.footer {
  padding: 48px 8vw;
  text-align: center;
  color: #e8decf;
background: #1F3A2E;
}

.footerlogo {
  text-align: center;
  margin-bottom: 20px;
}

.footerlogo img {
  display: inline-block;
  width: 200px;   /* お好みのサイズ */
  height: auto;
}

/* smartphone */
@media (max-width: 900px) {
  .header {
    height: 70px;
    padding: 0 5vw;
  }

  .logo {
    font-size: 19px;
  }

  .hamburger {
    display: flex;
    width: 34px;
    height: 26px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 101;
  }

  .hamburger span {
    display: block;
    height: 2px;
    background: #fff;
    transition: .3s;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 76%;
    height: 100vh;
    padding: 100px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: rgba(16, 11, 8, .96);
    transition: .4s;
    font-size: 16px;
  }

  .menu-toggle:checked ~ .nav {
    right: 0;
  }

  .menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
  }

  .menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
  }

  .hero {
    padding: 140px 6vw 70px;
  }

  .section {
    padding: 80px 6vw;
  }

  .about-grid,
  .shichi-grid,
  .access-box {
    grid-template-columns: 1fr;
  }

  .about-img,
  .shichi-img {
    box-shadow: 16px 16px 0 rgba(120, 82, 38, .16);
  }

  .cards,
  .events {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gallery-item {
    width: 190px;
    margin-right: 14px;
  }

  .gallery-item img {
    height: 130px;
  }

  .gallery-caption {
    padding: 10px;
  }

  .gallery-caption h3 {
    font-size: 15px;
  }

  .gallery-caption p {
    font-size: 12px;
  }
}

/* コンテンツが少ないページでもフッターを画面下へ */
#page {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

.footer,
.site-footer {
  margin-top: auto;
  width: 100%;
}