/**
 * ========================================
 * 月次法要 オンラインフィードバック
 * ========================================
 */

/* ========================================
 * PAGE
 * ======================================== */

.monthly-memorial-feedback {
  min-height: 100vh;

  background: #f7f6f3;
  color: #333;
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-memorial-feedback {
    min-height: auto;
  }
}

/* ========================================
 * COMMON
 * ======================================== */

.monthly-memorial-feedback__inner {
  width: min(calc(100% - 40px), 920px);
  margin-inline: auto;
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-memorial-feedback__inner {
    width: min(calc(100% - 30px), 920px);
  }
}

/* ========================================
 * HERO
 * ======================================== */

.monthly-feedback-hero {
  position: relative;
  overflow: hidden;

  padding: 72px 20px 68px;

  border-top: 3px solid #8e6f56;
  border-bottom: 1px solid #e7e1db;

  background: linear-gradient(
    110deg,
    #f8f6f3 0%,
    #f8f6f3 68%,
    #f1ece6 68%,
    #f1ece6 100%
  );
}

/**
 * 右側の淡い装飾
 *
 * 円やぼかしではなく、
 * 面で静かに変化を付ける。
 */
.monthly-feedback-hero::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;

  width: 32%;

  /* border-left: 1px solid rgba(142, 111, 86, 0.08); */

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(142, 111, 86, 0.04)
  );

  pointer-events: none;
}

.monthly-feedback-hero__inner {
  position: relative;
  z-index: 1;

  width: min(calc(100% - 40px), 1120px);

  margin-inline: auto;
}

.monthly-feedback-hero__content {
  max-width: 820px;
}

/* ========================================
 * EYEBROW
 * ======================================== */

.monthly-feedback-hero__eyebrow {
  display: flex;

  align-items: center;
  gap: 12px;

  margin: 0 0 22px;

  color: #8f8378;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;

  letter-spacing: 0.18em;
}

/**
 * 英字見出しの前のアクセントライン
 */
.monthly-feedback-hero__eyebrow::before {
  content: "";

  display: block;

  width: 34px;
  height: 2px;

  flex-shrink: 0;

  background: #8e6f56;
}

/* ========================================
 * HEADING
 * ======================================== */

.monthly-feedback-hero__heading {
  display: grid;

  grid-template-columns:
    5px
    minmax(0, 1fr);

  gap: 22px;

  align-items: stretch;
}

/**
 * タイトル左の縦ライン
 */
.monthly-feedback-hero__accent {
  width: 5px;
  min-height: 118px;

  border-radius: 999px;

  background: linear-gradient(180deg, #8e6f56 0%, #c7ae97 100%);
}

.monthly-feedback-hero__title-group {
  min-width: 0;
}

.monthly-feedback-hero__title {
  margin: 0;

  color: #292929;

  font-size: clamp(42px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.22;

  letter-spacing: 0.02em;

  word-break: keep-all;
}

/* ========================================
 * LEAD
 * ======================================== */

.monthly-feedback-hero__lead {
  max-width: 680px;

  margin: 24px 0 0;

  color: #68615b;

  font-size: 14px;
  line-height: 2;
}

/**
 * 回答時間・名前不要は
 * 下の案内セクションですでに表示しているため、
 * HEROでは重複表示しない。
 */
.monthly-feedback-hero__meta {
  display: none;
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-feedback-hero {
    padding: 48px 0 44px;

    background: #f8f6f3;
  }

  .monthly-feedback-hero::before {
    display: none;
  }

  .monthly-feedback-hero__inner {
    width: min(calc(100% - 30px), 1120px);
  }

  .monthly-feedback-hero__eyebrow {
    gap: 9px;

    margin-bottom: 18px;

    font-size: 9px;
    letter-spacing: 0.13em;
  }

  .monthly-feedback-hero__eyebrow::before {
    width: 24px;
  }

  .monthly-feedback-hero__heading {
    display: block;
  }

  .monthly-feedback-hero__accent {
    width: 52px;
    height: 3px;
    min-height: 0;

    margin-bottom: 18px;
  }

  .monthly-feedback-hero__title {
    font-size: clamp(32px, 9vw, 42px);

    line-height: 1.3;
  }

  .monthly-feedback-hero__lead {
    margin-top: 18px;

    font-size: 14px;
    line-height: 1.9;
  }
}

/* ========================================
 * MAIN SECTION
 * ======================================== */

.monthly-memorial-feedback__section {
  padding: 64px 0 88px;
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-memorial-feedback__section {
    padding: 36px 0 60px;
  }
}

/* ========================================
 * LAYOUT
 * ======================================== */

.monthly-memorial-feedback__layout {
  display: grid;

  grid-template-columns:
    minmax(0, 0.72fr)
    minmax(0, 1.28fr);

  gap: 56px;

  align-items: start;
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-memorial-feedback__layout {
    grid-template-columns: 1fr;

    gap: 34px;
  }
}

/* ========================================
 * INFORMATION
 * 左側：フィードバック案内
 * ======================================== */

.monthly-memorial-feedback__information {
  padding-top: 6px;
}

.monthly-memorial-feedback__information-eyebrow {
  margin: 0 0 10px;

  color: #968e85;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.monthly-memorial-feedback__information h2 {
  margin: 0;

  color: #292929;

  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
}

.monthly-memorial-feedback__information-text {
  margin: 18px 0 0;

  color: #67615b;

  font-size: 14px;
  line-height: 1.9;
}

.monthly-memorial-feedback__information-meta {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 1px;

  margin-top: 28px;

  overflow: hidden;

  border: 1px solid #e5e1dc;
  border-radius: 8px;

  background: #e5e1dc;
}

.monthly-memorial-feedback__information-meta-item {
  display: flex;

  flex-direction: column;
  gap: 4px;

  padding: 13px 14px;

  background: #fff;
}

.monthly-memorial-feedback__information-meta-label {
  color: #918a83;

  font-size: 10px;
  font-weight: 500;
}

.monthly-memorial-feedback__information-meta-item strong {
  color: #393532;

  font-size: 13px;
  font-weight: 700;
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-memorial-feedback__information {
    position: static;

    padding-top: 0;
  }

  .monthly-memorial-feedback__information h2 {
    font-size: 21px;
  }

  .monthly-memorial-feedback__information-text {
    margin-top: 14px;

    font-size: 14px;
    line-height: 1.85;
  }

  .monthly-memorial-feedback__information-meta {
    margin-top: 22px;
  }

  .monthly-memorial-feedback__information-meta-item {
    padding: 12px;
  }
}

/* ========================================
 * CONTENT
 * 右側：選択・入力エリア
 * ======================================== */

.monthly-memorial-feedback__content {
  padding: 36px 38px;

  border: 1px solid #e7e3de;
  border-radius: 12px;

  background: #fff;
}

.monthly-memorial-feedback__content-heading {
  padding-bottom: 26px;

  border-bottom: 1px solid #ece9e5;
}

.monthly-memorial-feedback__content-step {
  margin: 0 0 8px;

  color: #8b8175;

  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.monthly-memorial-feedback__content-heading h2 {
  margin: 0;

  color: #292929;

  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.55;

  word-break: keep-all;
}

.monthly-memorial-feedback__content-heading > p:last-child {
  margin: 12px 0 0;

  color: #79736d;

  font-size: 13px;
  line-height: 1.8;
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-memorial-feedback__content {
    padding: 26px 20px;

    border-radius: 10px;
  }

  .monthly-memorial-feedback__content-heading {
    padding-bottom: 22px;
  }

  .monthly-memorial-feedback__content-step {
    font-size: 10px;
  }

  .monthly-memorial-feedback__content-heading h2 {
    font-size: 21px;
    line-height: 1.55;
  }

  .monthly-memorial-feedback__content-heading > p:last-child {
    margin-top: 10px;

    font-size: 13px;
  }
}

/* ========================================
 * TYPE SELECT
 * 法要選択
 * ======================================== */

.monthly-memorial-feedback__type-select {
  width: 100%;
}

.monthly-memorial-feedback__type-actions {
  display: grid;

  gap: 12px;

  margin-top: 26px;
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-memorial-feedback__type-actions {
    gap: 10px;

    margin-top: 22px;
  }
}

/* ========================================
 * TYPE SELECT BUTTON
 * ======================================== */

.monthly-memorial-feedback__type-button {
  display: flex;

  min-height: 82px;

  align-items: center;
  justify-content: space-between;
  gap: 20px;

  box-sizing: border-box;

  padding: 18px 20px;

  border: 1px solid #ded9d3;
  border-radius: 8px;

  background: #fff;
  color: #333;

  text-align: left;
  text-decoration: none;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.monthly-memorial-feedback__type-button:hover {
  border-color: #a89f96;

  background: #faf9f7;

  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.045);
}

.monthly-memorial-feedback__type-button:focus-visible {
  outline: 3px solid rgba(57, 53, 50, 0.2);
  outline-offset: 3px;
}

.monthly-memorial-feedback__type-button-content {
  display: flex;

  min-width: 0;

  flex-direction: column;
  gap: 4px;
}

.monthly-memorial-feedback__type-button-content strong {
  color: #333;

  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.monthly-memorial-feedback__type-button-content span {
  color: #89827b;

  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.monthly-memorial-feedback__type-button-arrow {
  display: grid;

  width: 32px;
  height: 32px;

  flex-shrink: 0;

  place-items: center;

  border-radius: 50%;

  background: #f3f1ee;
  color: #4f4a45;

  font-size: 16px;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.monthly-memorial-feedback__type-button:hover
  .monthly-memorial-feedback__type-button-arrow {
  background: #ebe8e3;

  transform: translateX(3px);
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-memorial-feedback__type-button {
    min-height: 78px;

    gap: 14px;

    padding: 16px;
  }

  .monthly-memorial-feedback__type-button-content strong {
    font-size: 14px;
  }

  .monthly-memorial-feedback__type-button-content span {
    font-size: 11px;
  }

  .monthly-memorial-feedback__type-button-arrow {
    width: 30px;
    height: 30px;

    font-size: 15px;
  }
}

/* ========================================
 * FORM
 * ======================================== */

.monthly-memorial-feedback__form {
  width: 100%;
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-memorial-feedback__form {
    width: 100%;
  }
}

/* ========================================
 * ERROR
 * ======================================== */

.monthly-memorial-feedback__errors {
  margin-top: 24px;
  padding: 16px 18px;

  border: 1px solid #dca8a8;
  border-radius: 6px;

  background: #fff6f6;
  color: #943b3b;

  font-size: 13px;
  line-height: 1.7;
}

.monthly-memorial-feedback__errors strong {
  display: block;

  margin-bottom: 6px;

  color: #853333;
}

.monthly-memorial-feedback__errors ul {
  margin: 0;
  padding-left: 20px;
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-memorial-feedback__errors {
    margin-top: 20px;
    padding: 14px 15px;
  }
}

/* ========================================
 * FIELD
 * ======================================== */

.monthly-memorial-feedback__field {
  margin-top: 28px;
}

.monthly-memorial-feedback__field label {
  display: flex;

  align-items: center;
  gap: 8px;

  margin-bottom: 10px;

  color: #343434;

  font-size: 14px;
  font-weight: 700;
}

.monthly-memorial-feedback__required {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 2px 7px;

  border-radius: 4px;

  background: #925f5f;
  color: #fff;

  font-size: 10px;
  font-weight: 700;
}

.monthly-memorial-feedback__field textarea {
  display: block;

  width: 100%;
  min-height: 230px;

  box-sizing: border-box;

  padding: 16px 18px;

  border: 1px solid #d7d3ce;
  border-radius: 8px;

  background: #fff;
  color: #333;

  font: inherit;
  font-size: 15px;
  line-height: 1.85;

  resize: vertical;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.monthly-memorial-feedback__field textarea:hover {
  border-color: #aaa49d;
}

.monthly-memorial-feedback__field textarea:focus {
  border-color: #665f58;

  outline: none;

  box-shadow: 0 0 0 3px rgba(102, 95, 88, 0.1);
}

.monthly-memorial-feedback__field textarea[aria-invalid="true"] {
  border-color: #b85e5e;
}

.monthly-memorial-feedback__field textarea::placeholder {
  color: #aaa49d;
}

.monthly-memorial-feedback__field-note {
  margin: 10px 0 0;

  color: #8a847e;

  font-size: 11px;
  line-height: 1.7;
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-memorial-feedback__field {
    margin-top: 24px;
  }

  .monthly-memorial-feedback__field label {
    font-size: 14px;
  }

  .monthly-memorial-feedback__field textarea {
    min-height: 210px;

    padding: 14px 15px;

    /*
         * iPhoneでフォーカス時に
         * 自動ズームしにくくするため16px
         */
    font-size: 16px;
  }

  .monthly-memorial-feedback__field-note {
    font-size: 11px;
  }
}

/* ========================================
 * SUBMIT BUTTON
 * ======================================== */

.monthly-memorial-feedback__submit {
  display: flex;

  width: 100%;
  min-height: 58px;

  align-items: center;
  justify-content: center;
  gap: 12px;

  margin-top: 26px;
  padding: 14px 22px;

  border: 0;
  border-radius: 8px;

  background: #393532;
  color: #fff;

  font: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.monthly-memorial-feedback__submit:hover {
  background: #272421;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.monthly-memorial-feedback__submit:focus-visible {
  outline: 3px solid rgba(57, 53, 50, 0.25);
  outline-offset: 3px;
}

.monthly-memorial-feedback__submit-arrow {
  font-size: 17px;

  transition: transform 0.2s ease;
}

.monthly-memorial-feedback__submit:hover
  .monthly-memorial-feedback__submit-arrow {
  transform: translateX(4px);
}

/* ---------- SP ---------- */

@media (max-width: 767px) {
  .monthly-memorial-feedback__submit {
    min-height: 56px;

    margin-top: 22px;
    padding: 13px 18px;

    font-size: 14px;
  }
}

/* ========================================
 * REDUCED MOTION
 * ======================================== */

@media (prefers-reduced-motion: reduce) {
  .monthly-memorial-feedback__type-button,
  .monthly-memorial-feedback__type-button-arrow,
  .monthly-memorial-feedback__field textarea,
  .monthly-memorial-feedback__submit,
  .monthly-memorial-feedback__submit-arrow {
    transition: none;
  }

  .monthly-memorial-feedback__type-button:hover
    .monthly-memorial-feedback__type-button-arrow,
  .monthly-memorial-feedback__submit:hover
    .monthly-memorial-feedback__submit-arrow {
    transform: none;
  }
}
