/* General Styles */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: white;
  height: 100svh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

* {
  box-sizing: border-box;
}

.page {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  flex: 1;
}

.hidden {
  display: none;
}

/* Logo Styles */
.logo-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.logo {
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Search Styles */
.search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-grow: 1;
  justify-content: center;
}

.search-form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 16px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  outline: none;
}

.search-input:focus {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-color: rgba(223, 225, 229, 0);
}

.search-button {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-button:hover {
  background-color: #333;
}

.search-button:active {
  transform: scale(0.98);
}

/* Footer Styles */
.footer {
  margin-top: auto;
  padding: 24px 0;
  text-align: center;
  background-color: #000;
  color: white;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  gap: 8px;
}

.footer-title {
  font-size: 18px;
  font-weight: bold;
}

.footer-copyright {
  font-size: 12px;
  line-height: 1.5;
}

/* Profile Page Styles */
.profile-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.profile-title {
  font-family: "Times New Roman", serif;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
}

.profile-box {
  background-color: #eef6fc;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.profile-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
}

.profile-section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.profile-list {
  padding-left: 20px;
  margin: 0;
}

.profile-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Answer Page Styles */
.answer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-grow: 1;
  justify-content: center;
}

.answer-form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.answer-select {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 16px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  outline: none;
  background-color: white;
  cursor: pointer;
}

.answer-select:focus {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-color: rgba(223, 225, 229, 0);
}

.submit-button {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: #333;
}

.submit-button:active {
  transform: scale(0.98);
}

/* Not Found Page Styles */
.not-found-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 24px 16px;
  text-align: center;
}

.not-found-message {
  font-size: 18px;
  margin-bottom: 24px;
}

/* Congratulations Page Styles */
.congratulations-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 24px 16px;
  text-align: center;
}

.congratulations-message {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #000;
}

/* Common Button Styles */
.back-button {
  padding: 12px 16px;
  font-size: 16px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  width: 100%;
  max-width: 500px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #333;
}

.back-button:active {
  transform: scale(0.98);
}

/* Restaurant Page Styles */
.closed-badge {
  display: inline-block;
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
}

.details-box {
  background-color: #e3f2fd;
  border: 1px solid #90caf9;
}

.restaurant-image {
  margin: 16px 0;
  text-align: center;
}

.restaurant-photo {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.instruction-box {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.instruction-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  font-weight: bold;
}

/* 見出しのデフォルト余白をリセット */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

/* 既存クラスのマージンを明示 */
.profile-title {
  font-family: "Times New Roman", serif;
  font-size: 32px;
  font-weight: bold;
  margin: 0 0 16px;         /* ← 上0 / 下16px */
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
}

.profile-name {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 8px;          /* ← 上0 / 下8px */
}

.profile-section-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 8px;          /* ← 上0 / 下8px */
}