/*
 * VOICE article components v1.2.0
 * Parent class: .ae-article--voice
 */

.ae-article--voice {
  --ae-accent: #f4d7cf;
  --ae-soft: #fbf6f3;
}

.ae-article--voice .ae-quote {
  position: relative;
  margin-block: 36px;
  padding: 30px 22px 24px;
  border: 0;
  border-radius: 0 26px 26px 26px;
  background: var(--ae-soft);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
}

.ae-article--voice .ae-quote::before {
  position: absolute;
  top: -22px;
  left: 16px;
  color: var(--ae-accent);
  content: "“";
  font-family: Georgia, serif;
  font-size: 70px;
  line-height: 1;
}

.ae-article--voice .ae-quote__source {
  display: block;
  margin-top: 14px;
  color: var(--ae-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  text-align: right;
}

.ae-article--voice .ae-profile {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-block: 30px;
  padding: 18px;
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius);
}

/*
 * CUSTOMER PROFILE（画像なしの詳細プロフィール）
 * 通常の「丸画像＋本文」プロフィールと明確に分離する。
 */
.ae-article--voice .ae-profile--details {
  display: block;
  margin-block: 30px;
  padding: clamp(24px, 4vw, 38px);
}

.ae-article--voice .ae-profile--details .ae-profile__header {
  margin-bottom: 24px;
}

.ae-article--voice .ae-profile--details .ae-profile__title {
  margin: 8px 0 0;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.5;
}

.ae-article--voice .ae-profile--details .ae-profile__list {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--ae-line);
}

.ae-article--voice .ae-profile--details :is(dt, dd) {
  margin: 0;
  padding: 16px 14px;
  border-bottom: 1px solid var(--ae-line);
  font-size: 14px;
  line-height: 1.8;
}

.ae-article--voice .ae-profile--details dt {
  color: var(--ae-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ae-article--voice .ae-profile__image {
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 50%;
}

.ae-article--voice .ae-profile__image img {
  height: 100%;
  object-fit: cover;
}

.ae-article--voice .ae-profile__name {
  margin: 0 0 5px;
  font-size: 17px;
}

.ae-article--voice .ae-profile__meta {
  margin: 0;
  color: var(--ae-muted);
  font-size: 12px;
}

.ae-article--voice .ae-timeline {
  margin-block: 32px;
  padding: 0;
  list-style: none;
}

.ae-article--voice .ae-timeline__item {
  position: relative;
  padding: 0 0 28px 34px;
}

.ae-article--voice .ae-timeline__item::before {
  position: absolute;
  top: 7px;
  left: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ae-accent);
  content: "";
}

.ae-article--voice .ae-timeline__item::after {
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 10px;
  width: 1px;
  background: var(--ae-line);
  content: "";
}

.ae-article--voice .ae-timeline__item:last-child::after {
  display: none;
}

.ae-article--voice .ae-timeline__time {
  display: block;
  margin-bottom: 4px;
  color: var(--ae-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ae-article--voice .ae-timeline__title {
  margin: 0 0 7px;
  font-size: 18px;
}

.ae-article--voice .ae-timeline__item > :last-child {
  margin-bottom: 0;
}

/*
 * Before直後のAfterギャラリーを2列×2段に固定する。
 * 隣接セレクタで対象を限定し、テーマ／共通CSSの列指定より優先する。
 */
.ae-article--voice .ae-comparison + .ae-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  column-gap: 24px !important;
  row-gap: 48px !important;
  margin-top: 76px !important;
  margin-bottom: 40px !important;
}

.ae-article--voice .ae-comparison + .ae-gallery::before {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: #9b8f89;
  content: "AFTER";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
}

.ae-article--voice .ae-comparison + .ae-gallery > .ae-gallery__item {
  grid-column: auto !important;
  width: auto !important;
  margin: 0 !important;
  border-radius: 4px;
}

.ae-article--voice .ae-comparison + .ae-gallery > .ae-gallery__item:nth-of-type(even) {
  transform: translateY(24px);
}

.ae-article--voice .ae-comparison + .ae-gallery .ae-caption {
  display: none;
}

@media (max-width: 767px) {
  .ae-article--voice .ae-comparison + .ae-gallery {
    column-gap: 12px !important;
    row-gap: 30px !important;
    margin-bottom: 26px !important;
  }

  .ae-article--voice .ae-comparison + .ae-gallery > .ae-gallery__item:nth-of-type(even) {
    transform: translateY(12px);
  }
}

/* VOICE｜日本語の長い企画タイトルを、読みやすい2〜3行に収める */
@media (min-width: 900px) {
  .ae-article--voice .ae-hero__title {
    max-width: 100%;
    font-size: clamp(32px, 3.25vw, 40px);
    line-height: 1.4;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
    word-break: auto-phrase;
  }

  .ae-article--voice .ae-hero__text {
    margin-top: 26px;
    font-size: 14px;
    line-height: 1.9;
  }
}

/* VOICE｜予約CTA内の複数ボタンを同じ幅・間隔で整える */
.ae-article--voice .ae-cta__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.ae-article--voice .ae-cta__buttons :is(.ae-button, .ae-btn) {
  box-sizing: border-box;
  width: min(100%, 360px);
  margin: 0 !important;
}

.ae-article--voice .ae-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.ae-article--voice .ae-cta__actions .ae-button {
  box-sizing: border-box;
  width: min(100%, 420px);
  margin: 0 !important;
}

.ae-article--voice .ae-button--outline {
  background: transparent;
  color: var(--ae-ink);
}

/* ボタン用ラッパーがないHTMLでも、隣り合うボタンの間隔を揃える */
.ae-article--voice .ae-cta .ae-button + .ae-button {
  margin-top: 12px;
}

/*
 * VOICE｜STYLING HIGHLIGHTS
 * 各スタイルの見出し・画像・説明の間に呼吸を作る。
 */
.ae-article--voice .ae-styling-highlight + .ae-styling-highlight {
  margin-top: 72px;
}

.ae-article--voice .ae-styling-highlight__title {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ae-line);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.6;
}

.ae-article--voice .ae-styling-highlight__media {
  margin: 0 0 24px;
}

.ae-article--voice .ae-styling-highlight {
  margin-top: 52px;
}

.ae-article--voice .ae-styling-highlight:first-of-type {
  margin-top: 38px;
}

.ae-article--voice .ae-styling-highlight__text {
  margin: 0;
  font-size: 15px;
  line-height: 2;
}

@media (max-width: 767px) {
  .ae-article--voice .ae-hero__title {
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.42;
    overflow-wrap: anywhere;
    word-break: auto-phrase;
  }

  .ae-article--voice .ae-styling-highlight + .ae-styling-highlight {
    margin-top: 52px;
  }

  .ae-article--voice .ae-profile--details {
    padding: 24px 18px;
  }

  .ae-article--voice .ae-profile--details .ae-profile__list {
    grid-template-columns: 1fr;
  }

  .ae-article--voice .ae-profile--details dt {
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .ae-article--voice .ae-profile--details dd {
    padding-top: 0;
  }
}