@charset "UTF-8";

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
  position: relative;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #e70012;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e70012;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-instagram-icon {
  color: #333;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.nav-instagram-icon:hover {
  color: #e70012;
  background: rgba(231, 0, 18, 0.1);
  transform: scale(1.1);
}

.nav-instagram-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ヒーローセクション */
.hero {
  margin-top: 70px;
  padding: 20px 0;
  background: #fff;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-family: 'Lora', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 3rem;
  color: #e70012;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #e70012;
}

/* メニューセクション */
.menu-section {
  padding: 50px 0;
  background: #fff;
}

.tab-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.tab-menu {
  list-style: none;
  position: sticky;
  top: 70px;
  z-index: 900;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  flex: 1 1 0;
}

.tab:last-child {
  border-right: none;
}

.tab.active {
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
}

.tab a {
  display: block;
  padding: 20px 15px;
  text-decoration: none;
  color: #666;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.tab.active a {
  color: #e70012;
  font-weight: 600;
}

.tab:hover:not(.active) a {
  color: #333;
  background: rgba(231, 0, 18, 0.05);
}

.tab-panels {
  padding: 40px;
  position: relative;
  overflow: hidden;
  overflow: visible;
}

.panel {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
  scroll-margin-top: 140px; /* 目安: 70px(ヘッダー) + ~50px(タブ) */
}

.panel[hidden] {
  display: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.menu-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  cursor: pointer;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.menu-item-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.menu-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.menu-item:hover .menu-item-img {
  transform: scale(1.05);
}

.menu-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-item:hover .menu-item-overlay {
  opacity: 1;
}

.view-details {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border: 2px solid white;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.menu-item:hover .view-details {
  background: white;
  color: #333;
}

.menu-item-content {
  position: relative;
  text-align: center;
  padding: 10px;
}

.menu-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.menu-item-info {
  font-size: 0.9rem;
  color: #333;
}

.menu-item-price {
  font-size: 1rem;
  font-weight: 600;
  color: #e70012;
  margin-top: 10px;
}

.menu-item-badge {
  position: absolute;
  top: -20px;
  right: 2px;
  background: #e70012;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(231, 0, 18, 0.3);
}

/* メニュー追加情報 */
.menu-additional-info {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #f0f0f0;
}

.coppe-size-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  gap: 40px;
  margin-bottom: 40px;
  padding: 30px 20px;
  text-align: left;
  flex-direction: row-reverse;
}
.coppe-size-info {
  max-width: 400px;
  text-align: left;
}
.coppe-size-info h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}
.coppe-size-info p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}
.coppe-size-img {
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    width: 100%;
    height: auto;
  }
}

.toppings-info {
  background: white;
  padding: 30px;
  border-radius: 15px;
  border: 2px solid #f0f0f0;
}

.toppings-info h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 25px;
  font-weight: 600;
  text-align: center;
}

.toppings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.topping-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #e70012;
}

.topping-name {
  font-weight: 500;
  color: #333;
}

.topping-price {
  font-weight: 600;
  color: #e70012;
}

.topping-item-info {
  font-size: 0.7rem;
  color: #333;
  background: rgba(231, 0, 18, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(231, 0, 18, 0.1);
}

/* モーダルスタイル */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  padding-top: 60px; /* closeボタン分の余白を上部に追加 */
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.close:hover {
  color: #e70012;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.modal-image {
  position: relative;
}

.modal-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e70012;
  margin-bottom: 20px;
}

.modal-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.modal-ingredients h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.modal-ingredients ul {
  list-style: none;
  padding: 0;
}

.modal-ingredients li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #666;
  position: relative;
  padding-left: 20px;
}

.modal-ingredients li:before {
  content: '•';
  color: #e70012;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.modal-ingredients li:last-child {
  border-bottom: none;
}

/* フッター */
.footer {
  background: #e70012;
  padding: 20px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    gap: 20px;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-right {
    gap: 15px;
  }

  .instagram-icon {
    padding: 6px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .tab-menu {
    flex-wrap: wrap;
    overflow-x: auto;
    justify-content: center;
  }

  .tab-menu::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 1 1 auto;
    border-right: 1px solid #e9ecef;
  }

  .tab a {
    padding: 15px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .tab-panels {
    padding: 15px;
  }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .menu-item-image {
    height: 150px;
  }

  .container {
    padding: 0 15px;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .modal-body {
    padding: 20px;
    gap: 20px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-price {
    font-size: 1.2rem;
  }

  .modal-description {
    font-size: 1rem;
  }

  .toppings-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .menu-additional-info {
    margin-top: 30px;
    padding-top: 30px;
  }

  .toppings-info {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .menu-item-name,
  .menu-item-info {
    font-size: 0.8rem;
  }

  .nav-container {
    padding: 0 15px;
  }

  .modal-img {
    height: 200px;
  }

  .modal-body {
    padding: 15px;
    grid-template-columns: 1fr;
  }

  .modal-info {
    gap: 0;
  }

  .nav-right {
    gap: 10px;
  }

  .tab {
    min-width: 70px;
  }

  .tab a {
    padding: 12px 8px;
    font-size: 0.8rem;
  }

  .coppe-size-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }
  .coppe-size-info {
    max-width: 100%;
    text-align: center;
  }
  .coppe-size-img {
    max-width: 280px;
  }
}
