/* モバイルファースト（デフォルト：320px以上） */
body {
  background-color: beige;
  position: relative;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* hamburger: 画面に固定する */
.hamburger {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 150;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.hamburger.is-active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(135deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-135deg);
}

.hamburger span {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 4px;
  border-radius: 8px;
  background-color: #ffffff;
  transition: transform .3s;
}

.hamburger.is-active span {
  background-color: #ffffff;
}

.hamburger span:nth-child(1) {
  top: 30%;
}

.hamburger span:nth-child(2) {
  top: 60%;
}

.hamburger span:nth-child(3) {
  top: 90%;
}

body.is-fixed {
  overflow: hidden;
}

/* menu: 画面に固定する */
.menu {
  position: fixed;
  top: 0;
  z-index: 130;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background-color: #ffffe6;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.menu.is-active {
  transform: translateY(0);
}

.menu-header-container {
  position: relative;
  z-index: 1; /* 背景として背面に設定 */
}

.menu-header-image {
  position: absolute;
  width: 100%;
  height: auto;
}

.menu-logo-image {
  position: relative;
  text-align: left;
  margin-top: 15px;
  margin-left: 15px;
  width: 25%;
  height: auto;
  z-index: 3; /* ロゴが手前に来るようにz-indexを追加 */
}

.menu-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  padding-bottom: 100px;
  padding-top: 100px;
  /* 下部に余白を追加 */
}

.menu-item {
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid #672B20;
  text-align: center;
  color: inherit;
  text-decoration: none;
  padding: 30px;
}

.menu-title {
  font-family: "Zen Maru Gothic ", "Kiwi Maru", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #672B20;
  margin-bottom: 20px;
}

.menu-logout {
  color: #dc3545; /* 赤色 */
}

.menu-subtitle {
  font-family: "Zen Maru Gothic", "Kiwi Maru", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #672B20;
}

a {
  text-decoration: none;
}

.page-wave-separator {
  line-height: 0;
  margin-top: 50px;
}

.page-wave-separator svg {
  width: 100%;
  height: auto;
}

main {
  position: relative;
  z-index: 5;
  overflow: hidden; /* 横スクロール防止 */
}

.main-content2 {
  position: relative;
  z-index: 5;
  padding: 0 20px;
  margin-bottom: 150px;
}

.main-container {
  position: relative;
  z-index: 5;
}

.image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 20px;
}
.image-address {
  font-family: 'Yusei Magic', sans-serif;
  font-size: 11px;
  color: #8B4513;
  background: linear-gradient(135deg, #F5DEB3, #DEB887);
  padding: 8px 15px;
  border-radius: 20px;
  text-align: center;
  margin: 10px 0;
  box-shadow: 0 2px 5px rgba(139, 69, 19, 0.2);
  border: 1px solid #CD853F;
  max-width: 280px;
  font-weight: 500;
  z-index: 3;
}

.text {
  text-align: center;
  font-size: 25px;
  font-weight: 400;
  font-style: normal;
  color: #672b20;
  padding-top: 40px;
  padding-bottom: 50px;
}

.texts {
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  color: #672b20;
  padding-top: 40px;
  padding-bottom: 50px;
}

.text-color {
  color: #ffd767;
}

/* 画像と文章のペア */
.image-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.main-image {
  width: 100%;
  max-width: 223px;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  z-index: 2;
  margin-bottom: 15px;
}

.image-description {
  font-family: 'Yusei Magic', sans-serif;
  font-size: 16px;
  color: #666;
  text-align: center;
  max-width: 250px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 15px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.head-top {
  position: relative;
  z-index: 20;
}

.header-container2-1 {
  display: flex;
  justify-content: left;
  align-items: flex-start;
  position: relative;
  width: 100%;
  height: 200px;
}
.header-image {
  position: absolute;
  width: 100%;
  height: auto;
  z-index: 2;
}
.logo-image {
  position: relative;
  text-align: left;
  margin-top: 15px;
  margin-left: 15px;
  width: 25%;
  height: auto;
  z-index: 3;
}

.dig {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; 
}

.dig-dig {
  position: absolute;
  top: 7%;
  right: 0;
  width: 30%;
  height: auto;
}

.dig-dig2 {
  position: absolute;
  top: 23%;
  left: 0;
  width: 40%;
  height: auto;
}

.dig-dig3 {
  position: absolute;
  top: 40%;
  right: 0;
  width: 30%;
  height: auto;
}

.dig-dig4 {
  position: absolute;
  top: 57%;
  left: 0;
  width: 45%;
  height: auto;
}

.dig-dig5 {
  position: absolute;
  top: 72%;
  right: 0;
  width: 35%;
  height: auto;
}

.dig-dig6 {
  position: absolute;
  top: 88%;
  left: 0;
  width: 60%;
  height: auto;
}

.card {
  background: white;
  font-family: 'Yusei Magic', sans-serif;
  border: 2px solid #FF8A65;
  border-radius: 40px;
  padding: 20px 15px;
  max-width: 630px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 10px auto 40px auto;
  position: relative;
  z-index: 5;
}

.card p {
  color: #666;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  margin-bottom: 30px;
  font-size: 17px;
}

.map {
  position: relative;
  font-size: 35px;
  padding-top: 20px;
  color: #672b20;
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  z-index: 2;
}

.map-size {
  position: relative;
  width: 100%;
  padding-top: 75%;
  height: 0;
  z-index: 2;
}

.map-size iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* フッター */
.footer {
  display: flex;
  text-align: center;
  justify-content: left;
  align-items: flex-start;
  position: relative;
  width: 100%;
  height: 100px;
}

.footer-img {
  position: absolute;
  width: 100%;
  height: auto;
}

.footer-copy {
  position: relative;
  text-align: center;
  font-size: 10px;
  color: #ffffff;
}

@media (min-width: 481px) {
  .main-image {
    max-width: 400px;
  }

  .image-description {
    font-size: 16px;
    max-width: 380px;
  }

  .card {
    padding: 30px 20px;
  }

  .card p {
    font-size: 20px;
  }
}

/* デスktop対応（769px以上） */
@media (min-width: 769px) {
  .main-image {
    width: 790px;
    max-width: 790px;
    height: 282px;
  }

  .texts {
    font-size: 50px;
    padding-top: 55px;
    padding-bottom: 90px;
  }

  /* ▼▼▼▼▼ ここからが今回の修正点です ▼▼▼▼▼ */
  .image-address {
    font-size: 20px;
    padding: 12px 25px;
    max-width: 600px;
    margin: 20px 0;
  }
  /* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ */

  .image-description {
    font-size: 30px;
    max-width: 680px;
    padding: 20px 25px;
    margin-top: 40px;
    margin-bottom: 200px;
  }

  .card {
    padding: 40px 30px;
    border-radius: 100px;
  }

  .card p {
    font-size: 28px;
    margin-bottom: 60px;
  }

  .map {
    font-size: 50px;
  }

  .map-size {
    padding-top: 50%;
  }

  .map-size iframe {
    padding: 50px;
  }
}

/* デスクトップ表示用のスタイルをindexと統一 */
@media (min-width: 800px) {
  .hamburger {
    right: 60px;
    width: 60px;
    height: 70px;
  }

  .hamburger span {
    height: 6px;
  }

  .menu {
    height: 100vh;
    visibility: visible; /* デスクトップでは常に表示 */
  }

  .menu.is-active {
    transform: translateY(0);
  }

  .menu-inner {
    height: auto;
    padding-top: 250px; /* 位置調整 */
  }

  .header-container2-1 { 
    height: 300px; 
  }
  .logo-image { 
    width: auto; 
  }

  .footer-copy {
    padding-top: 200px;
  }
}

/* 超小型デバイス対応（320px以下） */
@media (max-width: 320px) {
  .main-content2 {
    padding: 0 10px;
  }
  
  .card {
    padding: 15px 10px;
  }

  .card p {
    font-size: 14px;
  }

  .copyright-text p {
    font-size: 0.7rem;
  }

  .image-description {
    font-size: 12px;
    max-width: 200px;
  }
}