/* 全体のフォントを明朝体に */
body {
  font-family: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "游明朝", "Yu Mincho", "MS P明朝", "MS PMincho", serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fff;
}

/* ヘッダーのスタイル */
header {
  background-image: url('image/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 800px;
}

.header-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  height: 100px;
}


/* ロゴ */
.logo img {
  width: 80px;
  height: 80px;
}

/* ナビゲーションメニュー */


.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 20px;
  flex-wrap: wrap;
}


.main-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  padding: 0px;
  transition: color 0.3s;
}

@media screen and (max-width: 768px) {
  .main-nav ul {
    display: block;
  }

  .main-nav ul li a {
    font-size: 0.8em;
  }
}

.main-nav ul li a:hover {
  color: #ffd700;
}

/* ベース設定 */
.nav-link {
  display: inline-block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.text-wrap {
  display: inline-block;
  position: relative;
}

.text-wrap .text,
.text-wrap .clone {
  display: block;
  transition: transform 0.4s ease;
}

/* 通常状態（上） */
.text-wrap .text {
  transform: translateY(0%);
}

/* クローンは下にスタンバイ */
.text-wrap .clone {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(105%);
}

/* ホバー時に入れ替える */
.nav-link:hover .text {
  transform: translateY(-105%);
}

.nav-link:hover .clone {
  transform: translateY(0%);
}





section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

/* メニューセクション */
.menu-category {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3; 
  margin: 0 auto;
  background-image: url('image/table.png');
  background-size: 100% auto;   
  overflow: visible;
}



/* 全画像共通設定 */
.menu-category img {
  position: absolute;
  opacity: 0.8;
  object-fit: contain;
  /* 必須 */
  transition: transform 0.3s ease;
    /* ホバー拡大の基準点 */
  transform-origin: center center;

  /*影*/
  filter: drop-shadow(40px 40px 10px rgba(0, 0, 0, 0.4));

  
}

@media screen and (max-width: 768px) {
  .menu-category img {
    /*影*/
    filter: drop-shadow(20px 20px 10px rgba(0, 0, 0, 0.4));    
  }
}


/* ホバー拡大 */
.menu-category img:hover {
  transform: scale(1.1);
  z-index: 100;
}

.menu-category img.selected {
  opacity: 1;
  transform: scale(1.15);
  z-index: 10;

  filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.7));
}

/* 各画像の相対中心位置（％指定） */
.img-tempura {
  top: 10%;
  left: 8%;
  z-index: 1;
  width: 32%;
  height: auto;
}

.img-drink {
  top: 2%;
  left: 45%;
  z-index: 2;
  width: 20%;
  height: auto;
}

.img-nihonshu {
  top: 15%;
  left: 60%;
  z-index: 3;
  width: 15%;
  height: auto;
}

.img-otsukuri {
  top: 38%;
  left: 21%;
  z-index: 4;
  width: 40%;
  height: auto;
}

.img-agemono {
  top: 35%;
  left: 55%;
  z-index: 5;
  width: 40%;
  height: auto;
}

.img-ippin {
  top: 50%;
  left: 5%;
  z-index: 6;
  width: 40%;
  height: auto;
}


.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}

.menu-items>div {
  display: none;
}

.menu-items>div.active {
  display: block;
}

.menu-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.menu-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 250px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
}

@media screen and (max-width: 768px) {
  .menu-card {
    width: 100px;
  }
}

.menu-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
}

.menu-card h4 {
  margin: 10px 0 5px;
  font-size: 1.1em;
  color: #333;
}

.menu-card p {
  font-size: 1em;
  color: #666;
}

.menu-card:hover {
  transform: translateY(-5px);
}


/* ご予約セクション */
#reservation {
  background-color: #fffaf7;
  padding: 40px 20px;
  border-radius: 10px;
  max-width: 600px;
  margin: 60px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  color: #333;
}

#reservation h2 {
  font-size: 1.8em;
  color: #a7656f;
  text-align: center;
  margin-bottom: 10px;
}

#reservation p {
  text-align: center;
  font-size: 1em;
  margin-bottom: 30px;
}

.reservation-form .form-group {
  margin-bottom: 20px;
}

.reservation-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #555;
}

.reservation-form input,
.reservation-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  background-color: #fff;
}

.reservation-form input[readonly] {
  background-color: #f9f9f9;
  cursor: not-allowed;
}

.reservation-form button {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1.1em;
  color: #fff;
  background-color: #a7656f;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.reservation-form button:hover {
  background-color: #944f59;
}






/* 店舗情報セクション */
.shop-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 1em;
}

.shop-info-table th,
.shop-info-table td {
  border: 1px solid #ccc;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.shop-info-table th {
  width: 30%;
  background-color: #f7f7f7;
  color: #444;
  font-weight: bold;
}


/* フッターのスタイル */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

footer .social-media-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

footer .social-icon img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

footer .social-icon:hover img {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* ソーシャルアイコンをクリックしたときにホバーエフェクトを加える */
footer .social-icon:hover {
  cursor: pointer;
}