/* ========== リセット & 変数 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-bg: #f9f6f0;
  --text-color: #3f3a36;
  --accent: #c49b6c;
  --hover: #6b4c3b;
}

/* ========== 基本スタイル ========== */
body {
  background-color: var(--main-bg);
  color: var(--text-color);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
  padding: 20px;
}

/* ========== ヘッダー ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid #ddd;
}

.header-container {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  height: 80px;
  width: auto;
}

.header-nav {
  font-size: 14px;
  margin-left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-nav a,
.header-nav span {
  margin: 0 4px;
  text-decoration: none;
  color: #333;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ========== セクション ========== */
section {
  margin-bottom: 40px;
}

.about-container,
.menu-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2rem;
  margin-top: 2rem;
}

.about-photo,
.menu-photo {
  flex: 1;
  min-width: 280px;
  display: flex;
  height: 100%;
}

.about-photo img,
.menu-photo img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-text,
.menu-text {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.8;
}

.about-text::after {
  content: "";
  display: block;
  height: 2rem;
}

/* ========== モーダル ========== */
.modal {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

/* ========== フッター ========== */
.footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--main-bg);
  text-align: center;
  padding: 1rem;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.footer-main {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 14px;
  color: #777;
  background-color: #f9f6f0;
  line-height: 1.6;
}

/* ========== カレンダー UI ========== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding: 10px;
}

.calendar-btn,
.time-btn {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.calendar-btn:hover,
.time-btn:hover {
  background-color: #000;
  color: #fff;
}

.selected-date,
.selected-time {
  background-color: #333;
  color: #fff;
}

.legend {
  font-size: 14px;
  color: #555;
  margin-bottom: 1rem;
}

#time-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 0.5rem;
}

#user-info input,
#user-info select {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #000;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
}

#user-info button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

#loading {
  font-size: 16px;
  text-align: center;
  padding: 1em;
  color: #333;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(240, 240, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  text-align: center;
  color: #333;
  font-size: 1.2rem;
  font-family: sans-serif;
}

.spinner {
  margin: 0 auto 10px;
  width: 30px;
  height: 30px;
  border: 3px solid #bbb;
  border-top: 3px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========== スマホ用メディアクエリ ========== */
@media screen and (max-width: 768px) {
  .logo {
    height: 40px;
  }

  .about-container {
    flex-direction: column;
  }

 .menu-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1100;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
  }

  .header-container {
    position: relative; /* ← これ忘れると absolute が効かないよ！ */
  }
  .header-nav {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 60px;
    right: 10px;
    z-index: 1000;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .header-nav.active {
    display: flex;
  }

  .header-nav span {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 80vh;
    padding: 20px;
    font-size: 14px;
  }

  #user-info input,
  #user-info select,
  #user-info button {
    font-size: 14px;
    padding: 10px;
  }

  .calendar-btn,
  .time-btn {
    font-size: 13px;
    padding: 10px;
  }
}
