:root {
  --ink: #513631;
  --wine: #9b3f5c;
  --wine2: #b55b75;
  --soft: #fbf7f4;
  --line: #eadfd8;
  --muted: #7f6a62;
  --shadow: 0 14px 38px rgba(91, 62, 51, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  background: #fff;
  font-size: 14px;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(96%, 1000px);
  margin-inline: auto;
}


/* Hero */
.page-hero:not(.discover-hero) {
  padding: 62px 0 50px;
  background: linear-gradient(120deg, #fff 0%, #fff 62%, #fbf5f2 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--wine);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.page-hero:not(.discover-hero) h1 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.lead {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

/* Layout */
.form-section {
  padding: 55px 0 90px;
}

.form-layout {
  width: min(92%, 760px);
  margin-inline: auto;
}

.post-form {
  display: grid;
  gap: 22px;
}

.form-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(91, 62, 51, 0.045);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading .step {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--wine);
  border-radius: 50%;
}

.section-heading h2 {
  margin: -3px 0 3px;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 500;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Photo */
.photo-drop {
  position: relative;
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  overflow: hidden;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(155, 63, 92, 0.04), transparent 60%),
    var(--soft);
  border: 1px dashed #cda8b2;
  border-radius: 16px;
  cursor: pointer;
}

.photo-drop:hover {
  border-color: var(--wine);
}

.photo-drop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 9px;
  place-items: center;
  color: #fff;
  font-size: 28px;
  background: var(--wine);
  border-radius: 50%;
}

.photo-drop strong {
  font-size: 18px;
}

.photo-drop small {
  margin-top: 2px;
  font-size: 12px;
}

/* Fields */
.field-grid {
  display: grid;
  gap: 16px;
}

.field-grid + .field-grid {
  margin-top: 16px;
}

.field-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  font-size: 15px;
  font-weight: 600;
}

.field em {
  margin-left: 5px;
  color: var(--wine);
  font-size: 12px;
  font-style: normal;
}

.field small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input,
.field select {
  height: 48px;
}

.field textarea {
  min-height: 140px;
  padding-top: 13px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #bd8293;
  box-shadow: 0 0 0 3px rgba(155, 63, 92, 0.07);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b4a39d;
}

.suffix-input {
  position: relative;
}

.suffix-input input {
  padding-right: 42px;
}

.suffix-input span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.counter {
  justify-self: end;
  margin-top: -2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 3px;
  color: var(--muted);
  font-size: 15px;
}

.consent input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--wine);
}

.submit-button {
  display: grid;
  width: 100%;
  padding: 15px 20px;
  color: #fff;
  background: linear-gradient(90deg, #8f3654, #b25872);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(155, 63, 92, 0.20);
}

.submit-button span {
  font-size: 18px;
  font-weight: 700;
}

.submit-button small {
  margin-top: 1px;
  font-size: 12px;
  opacity: 0.8;
}

/* Preview */
.preview-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.preview-image {
  display: grid;
  min-height: 280px;
  place-items: center;
  overflow: hidden;
  color: #9f8b84;
  text-align: center;
  background: linear-gradient(135deg, #f8f0ed, #fff);
}

.preview-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.preview-body {
  padding: 18px;
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.preview-meta span {
  color: var(--wine);
  font-weight: 600;
}

.preview-store {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 12px 0 0;
}

.preview-tags span {
  padding: 2px 8px;
  color: #785f57;
  font-size: 9px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.preview-comment {
  margin: 13px 0 14px;
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  line-height: 1.8;
}

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.preview-footer strong {
  color: var(--wine);
  font-size: 17px;
}

.preview-footer span {
  color: var(--muted);
  font-size: 12px;
}

/* Dialog */
.confirm-dialog {
  width: min(92%, 560px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(81, 54, 49, 0.22);
}
.confirm-preview {
  margin-top: 24px;
  text-align: left;
}

.confirm-preview .preview-image {
  min-height: 240px;
  max-height: 320px;
}

.confirm-preview .preview-image img {
  min-height: 240px;
  max-height: 320px;
}

.dialog-lead {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.dialog-actions {
  margin-top: 22px;
}

.confirm-dialog::backdrop {
  background: rgba(55, 37, 32, 0.35);
  backdrop-filter: blur(3px);
}

.dialog-inner {
  position: relative;
  padding: 34px;
  text-align: center;
}

.dialog-inner h2 {
  margin: 0 0 10px;
  font-family: "Noto Serif JP", serif;
  font-size: 27px;
  font-weight: 500;
}

.dialog-inner > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 16px;
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px;
}

.button-secondary,
.button-primary {
  height: 46px;
  border-radius: 999px;
}

.button-secondary {
  background: #fff;
  border: 1px solid var(--line);
}

.button-primary {
  color: #fff;
  background: var(--wine);
  border: 1px solid var(--wine);
}

@media (max-width: 980px) {
  .page-hero__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-layout {
    grid-template-columns: 1fr;
    width: min(92%, 720px);
  }
}

@media (max-width: 600px) {
  .confirm-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .dialog-inner {
    padding: 24px 16px 18px;
  }

  .confirm-preview .preview-image,
  .confirm-preview .preview-image img {
    min-height: 200px;
    max-height: 260px;
  }

  .wrap {
    width: calc(100% - 28px);
  }

  .page-hero:not(.discover-hero) {
    padding: 42px 0 38px;
  }

  .page-hero:not(.discover-hero) h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 13px;
  }

  .form-section {
    padding: 35px 0 65px;
  }

  .form-layout {
    width: calc(100% - 28px);
    gap: 28px;
  }

  .form-card {
    padding: 20px;
    border-radius: 16px;
  }

  .field-grid--2 {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .photo-drop {
    min-height: 235px;
  }

  .dialog-actions {
    grid-template-columns:  1fr 1fr;
  }

}
