body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafafa;
  margin: 0;
  padding: 40px;
}

main {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* ===== タブ ===== */
.tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 2px solid #ddd;
}

.tab {
  padding: 10px 16px;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 16px;
  transition: background 200ms ease, transform 200ms ease;
}

.tab.active {
  border-bottom: 3px solid #6f4e37;
  font-weight: bold;
}

.tab:hover {
  background: rgba(111, 78, 55, 0.18);
  transform: translateY(-1px);
}

.tab:focus-visible {
  outline: 2px solid rgba(111, 78, 55, 0.6);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===== フェード切り替え ===== */
.panes {
  display: grid;
}

.panes > section {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0ms linear 220ms;
}

.panes > section.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0ms;
}

/* ===== フォーム ===== */
h1 {
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.3;
  word-break: keep-all;
}

h2 {
  border-left: 4px solid #6f4e37;
  padding-left: 8px;
}

label {
  display: block;
  margin-bottom: 16px;
}

input,
textarea,
select {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  box-sizing: border-box;
}

button {
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
}

.message {
  margin-top: 12px;
}

.results {
  margin-top: 24px;
  border-top: 1px solid #ddd;
  padding-top: 16px;
}

.card {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

.date {
  font-size: 13px;
  color: #666;
}

/* =========================
   レスポンシブ対応（スマホ）
   ========================= */
@media (max-width: 768px) {

  body {
    padding: 16px;
  }

  main {
    padding: 16px;
    border-radius: 6px;
  }

  .tabs {
    margin-bottom: 16px;
  }

  .tab {
    flex: 1;                 /* 横幅を均等に */
    text-align: center;
    padding: 14px 0;         /* 指で押しやすく */
    font-size: 16px;
  }

  label {
    margin-bottom: 20px;
  }

  input,
  textarea,
  select {
    font-size: 16px;  /* iOSの自動ズーム防止にもなる */
  }

  button {
    width: 100%;
    font-size: 16px;
    padding: 14px;
  }

}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  text-decoration: none;
  color: #a52a2a;
  font-size: 0.95rem;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.mina-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
