/*
 * aimme BEAUTY — AVANT GARDE v1.0.5
 * Parent class: .ae-article.ae-article--beauty
 */
 .ae-article--beauty {
  --beauty-theme: #596d5b;
  --beauty-deep: #172d20;
  --beauty-soft: #dce2d5;
  --beauty-paper: #f7f6f1;
  --beauty-ink: #252823;
  --beauty-display: "ITC Avant Garde Gothic Pro", "Avant Garde", "Century Gothic", "Avenir Next", Arial, sans-serif;
  width: min(100%, 980px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--beauty-paper);
  color: var(--beauty-ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", Meiryo, sans-serif;
}
.ae-article--beauty *, .ae-article--beauty *::before, .ae-article--beauty *::after { box-sizing: border-box; }
.ae-article--beauty img,
.ae-article--beauty img.alignnone,
.ae-article--beauty img.size-full,
.ae-article--beauty img.size-medium {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
.ae-article--beauty figure, .ae-article--beauty h1, .ae-article--beauty h2, .ae-article--beauty h3, .ae-article--beauty p { margin-top: 0; }
.ae-article--beauty [id] { scroll-margin-top: 90px; }

.ae-beauty__cover { position: relative; min-height: 760px; padding: 45px 6.5% 62px; background: var(--beauty-paper); }
.ae-beauty__color { position: absolute; inset: 0 0 auto 36%; height: 88%; background: var(--beauty-theme); }
.ae-beauty__cover-photo { position: absolute; inset: 76px 8% 86px 18%; overflow: hidden; }
.ae-beauty__cover-photo img { object-position: var(--hero-position, center 28%); }
.ae-beauty__cover-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(12 24 15 / 28%)); }
.ae-beauty__brand { position: relative; z-index: 2; margin: 0; font: 600 10px/1.4 var(--beauty-display); letter-spacing: .28em; text-transform: uppercase; }
.ae-beauty__cover-copy {
  position: absolute;
  z-index: 3;
  left: 6.5%;
  bottom: 78px;
  width: min(76%, 720px);
  padding: 0;
  background: transparent;
  color: #fff !important;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 42%));
}
.ae-beauty__cover-copy .ae-beauty__title { margin: 0; color: #fff !important; font: 700 clamp(56px, 9vw, 100px)/.78 var(--beauty-display); letter-spacing: -.065em; }
.ae-beauty__cover-copy .ae-beauty__subtitle { margin: 29px 0 0 5px; color: #fff !important; font: 600 14px/1.4 var(--beauty-display); letter-spacing: .2em; text-transform: uppercase; }
.ae-beauty__subtitle::after { content: ""; display: block; width: 92px; height: 1px; margin-top: 13px; background: #fff; }
.ae-beauty__issue { position: absolute; right: 3%; bottom: 58px; color: #fff !important; font: 600 10px/1.4 var(--beauty-display); letter-spacing: .18em; writing-mode: vertical-rl; }

.ae-beauty__nav { display: flex; justify-content: center; gap: 45px; padding: 26px 20px; overflow-x: auto; border-block: 1px solid #c7c8c1; background: #fff; white-space: nowrap; font: 600 10px/1.4 var(--beauty-display); letter-spacing: .2em; }
.ae-beauty__nav a { color: inherit; text-decoration: none; }

.ae-beauty__intro { padding: 88px 13% 20px; background: #fff; text-align: center; }
.ae-beauty__intro-label { margin-bottom: 16px; color: var(--beauty-theme); font: 600 10px/1.4 var(--beauty-display); letter-spacing: .25em; }
.ae-beauty__intro h2 { margin-bottom: 25px; font: 700 clamp(30px, 4.6vw, 48px)/1.15 var(--beauty-display); letter-spacing: -.04em; }
.ae-beauty__intro p:last-child { max-width: 650px; margin: 0 auto; font-size: 14px; line-height: 2.05; }

.ae-beauty__howto { display: grid; grid-template-columns: 90px 1fr; min-height: 930px; padding: 92px 6% 110px 3%; background: #fff; }
.ae-beauty__vertical { margin: 0; justify-self: center; font: 600 24px/1.1 var(--beauty-display); letter-spacing: .1em; writing-mode: vertical-rl; }
.ae-beauty__collage { position: relative; min-height: 770px; }
.ae-beauty__photo { position: absolute; overflow: hidden; background: var(--beauty-soft); }
.ae-beauty__photo--a { left: 5%; top: 0; width: 51%; height: 500px; }
.ae-beauty__photo--b { right: 0; top: 105px; width: 35%; height: 330px; }
.ae-beauty__photo--c { left: 29%; top: 540px; width: 46%; height: 285px; }
.ae-beauty__photo img { object-position: var(--photo-position, center); }
.ae-beauty__collage-no { position: absolute; left: 7%; top: 520px; color: var(--beauty-theme); font: 500 48px/1 var(--beauty-display); }
.ae-beauty__note { position: absolute; right: 1%; top: 500px; width: 22%; font-size: 11px; line-height: 1.9; letter-spacing: .08em; }
.ae-beauty__note b { display: block; margin-bottom: 9px; font: 600 18px/1.2 var(--beauty-display); }

.ae-beauty__key { position: relative; height: 650px; background: var(--beauty-deep); color: #fff; }
.ae-beauty__key img { opacity: .68; object-position: var(--key-position, center 30%); }
.ae-beauty__key::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 31 20 / 60%), transparent 70%); }
.ae-beauty__key-copy { position: absolute; z-index: 2; left: 7%; bottom: 65px; }
.ae-beauty__key-copy small { font: 600 9px/1.4 var(--beauty-display); letter-spacing: .28em; }
.ae-beauty__key-copy h2 { margin: 14px 0 0; font: 700 clamp(51px, 8.2vw, 84px)/.88 var(--beauty-display); letter-spacing: -.055em; }

.ae-beauty__colors { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 34px; padding: 46px 9%; background: var(--beauty-soft); }
.ae-beauty__section-title { margin: 0; font: 700 48px/.96 var(--beauty-display); letter-spacing: -.05em; }
.ae-beauty__section-title small { display: block; margin-bottom: 12px; font: 600 10px/1.4 var(--beauty-display); letter-spacing: .28em; }
.ae-beauty__swatches { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ae-beauty__swatch { text-align: center; font: 600 9px/1.4 var(--beauty-display); letter-spacing: .12em; }
.ae-beauty__swatch i { display: block; width: 54px; aspect-ratio: 1; margin: 0 auto 7px; border-radius: 50%; box-shadow: 0 0 0 1px rgb(0 0 0 / 6%); }

.ae-beauty__points { padding: 105px 7% 120px; background: #fff; }
.ae-beauty__points-head { text-align: center; }
.ae-beauty__points-head .ae-beauty__section-title { font-size: 58px; }
.ae-beauty__point-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 62px; }
.ae-beauty__point { border-top: 1px solid #30352f; padding-top: 22px; }
.ae-beauty__point-num { color: var(--beauty-theme); font: 500 35px/1 var(--beauty-display); }
.ae-beauty__point h3 { margin: 14px 0 12px; font-size: 13px; letter-spacing: .1em; }
.ae-beauty__point p { margin: 0; color: #555; font-size: 11px; line-height: 2; }

.ae-beauty__credit { display: flex; min-height: 0; align-items: center; justify-content: center; gap: 28px; padding: 70px 8%; background: var(--beauty-deep); color: #fff; text-align: left; }
.ae-beauty__credit-photo { flex: 0 0 84px; width: 84px; height: 84px; overflow: hidden; border-radius: 50%; }
.ae-beauty__credit-photo img { opacity: .9; object-position: var(--staff-position, center 25%); }
.ae-beauty__credit-text { padding: 0; }
.ae-beauty__credit-text h2 { margin: 0 0 30px; font: 700 39px/1 var(--beauty-display); letter-spacing: -.04em; }
.ae-beauty__credit-text p { margin: 5px 0; font-size: 11px; letter-spacing: .12em; }

.ae-beauty__cta { padding: 90px 7%; background: var(--beauty-paper); text-align: center; }
.ae-beauty__cta h2 { margin-bottom: 18px; font: 700 clamp(36px, 6vw, 58px)/1 var(--beauty-display); letter-spacing: -.05em; }
.ae-beauty__cta-lead { margin-bottom: 34px; font-size: 13px; line-height: 1.9; }
.ae-beauty__cta-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 270px)); justify-content: center; gap: 12px; }
.ae-beauty__button { display: flex; min-height: 58px; align-items: center; justify-content: center; padding: 14px 20px; border: 1px solid var(--beauty-deep); background: var(--beauty-deep); color: #fff !important; text-decoration: none !important; font: 600 11px/1.4 var(--beauty-display); letter-spacing: .14em; }
.ae-beauty__button--sub { background: transparent; color: var(--beauty-deep) !important; }
.ae-beauty__shop-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; margin-top: 25px; font-size: 11px; }
.ae-beauty__shop-links a { color: inherit; }

@media (max-width: 700px) {
  /* WordPress側の本文余白に引っ張られず、記事全体を画面中央へ戻す */
  .ae-article--beauty {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .ae-beauty__cover { min-height: 540px; padding: 25px 16px; }
  .ae-beauty__color { inset: 0 0 auto 24%; height: 100%; }
  .ae-beauty__cover-photo { inset: 66px 0 0 12%; }
  .ae-beauty__cover-copy {
    left: 16px;
    right: 34px;
    bottom: 18px;
    width: auto;
    padding: 0;
  }
  .ae-beauty__cover-copy .ae-beauty__title {
    max-width: 100%;
    font-size: clamp(36px, 13vw, 50px);
    line-height: .86;
    letter-spacing: -.045em;
    overflow-wrap: normal;
  }
  .ae-beauty__cover-copy .ae-beauty__subtitle { max-width: 100%; margin-top: 18px; font-size: 10px; letter-spacing: .12em; overflow-wrap: anywhere; }
  .ae-beauty__issue { right: 7px; bottom: 80px; font-size: 8px; }
  .ae-beauty__nav { justify-content: center; gap: 27px; padding-inline: 23px; }
  .ae-beauty__intro { padding: 68px 24px 5px; text-align: left; }
  .ae-beauty__intro p:last-child { font-size: 13px; }
  .ae-beauty__howto { display: block; min-height: auto; padding: 72px 22px 84px; }
  .ae-beauty__vertical { margin: 0 0 35px; font-size: 35px; letter-spacing: .04em; writing-mode: horizontal-tb; }
  .ae-beauty__collage { min-height: 850px; }
  .ae-beauty__photo--a { left: 0; width: 72%; height: 410px; }
  .ae-beauty__photo--b { top: 190px; width: 43%; height: 275px; }
  .ae-beauty__photo--c { left: 16%; top: 500px; width: 62%; height: 330px; }
  .ae-beauty__collage-no { left: 2%; top: 430px; font-size: 42px; }
  .ae-beauty__note { display: none; }
  .ae-beauty__key { height: 490px; }
  .ae-beauty__key-copy { left: 24px; right: 24px; bottom: 35px; max-width: calc(100% - 48px); }
  .ae-beauty__key-copy small { display: block; max-width: 100%; font-size: 8px; line-height: 1.6; letter-spacing: .18em; overflow-wrap: normal; }
  .ae-beauty__key-copy h2 { max-width: 100%; font-size: clamp(34px, 12vw, 52px); line-height: .92; overflow-wrap: normal; word-break: keep-all; }
  /* SPではKEY VISUALとCOLORを重ねず、完全に別ブロックとして積む */
  .ae-beauty__key {
    position: relative;
    z-index: 1;
    height: 490px;
    margin: 0;
    overflow: hidden;
  }
  .ae-beauty__key-copy {
    top: auto;
    transform: none;
  }
  .ae-beauty__colors {
    position: relative !important;
    z-index: 2;
    top: auto !important;
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 32px 18px 34px;
    transform: none !important;
    background: var(--beauty-soft) !important;
    isolation: isolate;
  }
  .ae-beauty__colors .ae-beauty__section-title {
    position: static !important;
    width: 100%;
    margin: 0 0 22px;
    transform: none !important;
    color: var(--beauty-ink);
  }
  .ae-beauty__section-title { font-size: 46px; }
  .ae-beauty__swatches {
    position: static !important;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0;
    transform: none !important;
  }
  .ae-beauty__swatch {
    position: static !important;
    min-width: 0;
    font-size: 7px;
    line-height: 1.35;
    letter-spacing: .06em;
    white-space: normal;
    transform: none !important;
  }
  .ae-beauty__swatch i { width: 44px; margin: 0 auto 7px; }
  .ae-beauty__points { padding: 75px 24px 85px; }
  .ae-beauty__points-head { text-align: left; }
  .ae-beauty__point-grid { grid-template-columns: 1fr; gap: 38px; margin-top: 45px; }
  /* block layout also survives text nodes when WordPress removes paragraph tags */
  .ae-beauty__point,
  .ae-article--beauty .ae-beauty__point { display: block !important; min-width: 0; width: 100%; }
  .ae-beauty__point-num { display: block; margin-bottom: 10px; }
  .ae-beauty__point h3 { display: block; width: 100%; margin: 0 0 10px; overflow-wrap: break-word; }
  .ae-beauty__point p { display: block; width: 100%; min-width: 0; margin: 0; overflow-wrap: break-word; word-break: normal; }
  .ae-beauty__credit { align-items: flex-start; gap: 18px; padding: 52px 24px; }
  .ae-beauty__credit-photo { flex-basis: 58px; width: 58px; height: 58px; }
  .ae-beauty__credit-text { min-width: 0; padding: 0; }
  .ae-beauty__credit-text h2 { margin-bottom: 20px; font-size: 30px; }
  .ae-beauty__cta { padding: 72px 24px; text-align: left; }
  .ae-beauty__cta-buttons { grid-template-columns: 1fr; }
  .ae-beauty__shop-links { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .ae-beauty__cover { min-height: 500px; }
  .ae-beauty__cover-photo { inset: 60px 0 0 8%; }
  .ae-beauty__cover-copy .ae-beauty__title { font-size: clamp(34px, 12.5vw, 46px); }
  .ae-beauty__points-head .ae-beauty__section-title { font-size: 43px; }
  .ae-beauty__point-num { font-size: 29px; }
  .ae-beauty__key-copy { left: 18px; right: 18px; max-width: calc(100% - 36px); }
  .ae-beauty__key-copy h2 { font-size: clamp(30px, 11vw, 44px); letter-spacing: -.045em; }
}