* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  background-image: url("./images/back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  font-family: "Yu Mincho", serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  font-size: 30px;
}

main {
  padding: 20px 16px 20px;
  width: 100%;
  max-width: 900px;
  text-align: center;
  margin-top: 100px;
  opacity: 0;
  animation: showContent 1s ease forwards;
  animation-delay: 1.5s;
}

@keyframes showContent {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.logo {
  width: 60%;
  max-width: 90%;
  margin-bottom: 30px;
}

p {
  font-size: 24px;
  margin: 6px 0 20px;
}

h3 {
  font-size: 16px;
  margin: 6px 0 20px;
}

h1 {
  font-size: 48px;
  font-weight: normal;
  color: #fff;
  text-align: center;
  font-family: "Yuji Syuku", "Sawarabi Mincho", serif;
  margin-top: 80px;
  margin-bottom: 20px;
  font-size: 30px;
}

h2 {
  font-size: 40px;
  margin: 40px 0 10px;
  border-bottom: 1px solid #555;
  display: inline-block;
  padding-bottom: 4px;
}

ul {
  list-style: none;
  margin-top: 10px;
}

li {
  font-size: 24px;
  margin: 8px 0;
}

/* メニューリストのスタイル */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 80%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #666;
  padding: 6px 0;
}

.menu-price,
.price {
  text-align: right;
  min-width: 100px;
}

/* 写真ギャラリー */
.menu-item {
  text-align: center;
}

.menu-item img {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
  width: 300px; /* default desktop-friendly width, will shrink on small screens */
  max-width: 100%;
  height: auto;
}

.interior-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.interior-item {
  text-align: center;
  flex: 0 0 auto; /* 固定幅で横並びしやすくする */
  margin: 0 8px;
}

.interior-item img {
  width: 220px;
  height: auto;
}

/* 新しく追加したユーティリティクラス */
.menu-items-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.news-section {
  width: 90%;
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
}

.news-title {
  font-size: 24px;
  margin-bottom: 15px;
  font-family: "Yu Mincho", serif;
}

.news-box {
  border: 2px solid #555;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  line-height: 1.6;
}

.news-box p {
  margin: 5px 0;
  color: #ddd;
}

.news-box li {
  margin: 15px 0;
}

/* アクセス・地図 */
.access-section {
  text-align: center;
  padding: 60px 0;
}

.access-section h2 {
  font-family: "Yu Mincho", serif;
  color: white;
  margin-bottom: 20px;
}

.map-embed {
  border: 0;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.map-wrapper {
  display: flex;
  justify-content: center;
}

.address {
  color: #ccc;
  margin-top: 20px;
  font-size: 14px;
}

.social {
  text-align: center;
  margin-top: 30px;
}

.social img {
  vertical-align: middle;
}

/* Fix: remove mobile "blue tap highlight" and stabilize link layout
   - Make social links inline-block so they wrap image tightly
   - Disable the default -webkit-tap-highlight-color (visual artifact on mobile)
   - Keep an accessible visible focus outline (we use a subtle one)
*/
.social a {
  display: inline-block;
  vertical-align: middle;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent; /* iOS/Android tap highlight */
  -webkit-touch-callout: none;
}

.social a img {
  display: block; /* removes small inline gaps and ensures the anchor box matches the image */
}

.social a:focus {
  outline: 3px solid rgba(255, 255, 255, 0.12);
  outline-offset: 2px;
}

.contact-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #b22222;
  color: #f1cc52;
  text-decoration: none;
  border-radius: 25px;
  font-size: 16px;
  margin-left: 15px;
}

/* フッター */
footer {
  font-size: 14px;
  color: #aaa;
  padding: 20px;
  margin-top: 40px;
  padding-bottom: 30px;
}

/* ロゴオーバーレイ */
.logo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeOut 3s ease-in-out forwards;
  animation-delay: 1s;
}

.logo-overlay img {
  width: 40%;
  max-width: 500px;
  height: auto;
  opacity: 1;
  animation: logoFade 3s ease-in-out forwards;
  animation-delay: 1s;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes logoFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* スマホ用の文字サイズ調整 */
@media (max-width: 768px) {
  body {
    font-size: 20px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 16px;
  }

  p {
    font-size: 18px;
  }

  li {
    font-size: 18px;
  }

  .news-title {
    font-size: 24px;
  }

  .menu-list li {
    font-size: 18px;
  }

  .menu-item p {
    font-size: 16px;
  }

  .interior-item p {
    font-size: 16px;
  }

  /* 看板商品の画像を縦並びに */
  .menu-items-container {
    flex-direction: column;
    gap: 20px !important;
  }

  .menu-item {
    width: 100%;
  }

  .menu-item img {
    max-width: 80%;
  }

  /* スマホ専用: 筆文字ロゴを大きく表示 */
  .logo {
    width: 80%;
    max-width: 420px;
    margin-bottom: 20px;
  }
}

/* Larger images on wide screens */
@media (min-width: 1024px) {
  .menu-item img {
    width: 380px;
  }

  .interior-item img {
    width: 260px;
  }
}
