/* 高級感・白ベース・ワインレッドアクセント */
:root {
  --bg-white: #ffffff;
  --card-bg: #f9f9f9;
  --wine-red: #7a0c19;
  --gold: #c8a86d;
  --black: #0b0b0b;
  --gray: #cccccc;
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Serif JP", serif;
}

/* Hero */
.hero {
    position: relative;
    height: 472px;
}
.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-title {
    position: absolute;
    z-index: 10;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
    opacity: 0;
    animation: fadeTitle 1.2s ease-out 0s forwards;
}
@keyframes fadeTitle {
    0% {
        opacity: 0;
        transform: translateY(18px); /* 少し下から浮かび上がる */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 472px;
  background-color: rgba(0,0,0,0.4); /* 半透明黒 */
  opacity: 0;
  animation: fadeIn 0.75s forwards;
  animation-delay: 0.1s; /* 少し遅らせて演出 */
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

body {
  background: var(--bg-white);
  color: var(--black);
  font-family: var(--font-sans);
  margin: 0;
  line-height: 1.8;
}

.page-container {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.contact-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.contact-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--wine-red);
  margin-bottom: 8px;
}

.contact-header .lead {
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 24px;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.contact-form .label {
  font-weight: bold;
  margin-bottom: 6px;
  color: var(--black);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--gray);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--wine-red);
  box-shadow: 0 0 5px rgba(122,12,25,0.3);
}

.actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, box-shadow 0.3s;
}

.btn-primary {
  background: var(--wine-red);
  color: var(--bg-white);
}

.btn-primary:hover {
  background: #5e0a15;
  box-shadow: 0 4px 12px rgba(122,12,25,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--wine-red);
  border: 2px solid var(--wine-red);
}

.btn-ghost:hover {
  background: var(--wine-red);
  color: var(--bg-white);
}

.form-errors {
  background: #ffe6e6;
  color: #900;
  border-left: 4px solid var(--wine-red);
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
}

.confirm-list dt {
  font-weight: bold;
  margin-top: 12px;
}

.confirm-list dd {
  margin-left: 0;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .contact-header h1 {
    font-size: 1.5rem;
  }

  .actions {
    flex-direction: column;
  }
}

/* javascript連携用 */
.contact-card {
    opacity: 0;
    transform: translateY(40px);
}
.fade {
    opacity: 1;
    transform: translateY(0);
    transition: .8s ease;
}