/* =============================================================
   六本松皮ふ科 ニキビLP スタイル（WP組み込み前提・プロトタイプ）
   - 全クラスに `acne-` プレフィックスを付与し、既存テーマと衝突を回避
   - HTML/CSS/JS のみで完結
   ============================================================= */

:root {
  --acne-gold-deep:   #8B6F30;
  --acne-gold:        #B89049;
  --acne-gold-soft:   #D9B874;
  --acne-brown-dark:  #3A2C1A;
  --acne-brown:       #5B4A2C;
  --acne-cream:       #F7F1E3;
  --acne-cream-bg:    #FBF6EB;
  --acne-white:       #FFFFFF;
  --acne-line:        #E3D9C1;
  --acne-text:        #2D2721;
  --acne-text-muted:  #6B6254;

  --acne-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --acne-sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --acne-latin: "Cormorant Garamond", "Times New Roman", serif;

  --acne-max-width: 1100px;
}

/* Reset (scoped as much as possible) --------------------------- */
.acne-lp, .acne-lp * {
  box-sizing: border-box;
}
.acne-lp {
  margin: 0;
  padding: 0;
  color: var(--acne-text);
  font-family: var(--acne-sans);
  font-size: 16px;
  line-height: 1.9;
  background: var(--acne-white);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
.acne-lp img {
  max-width: 100%;
  height: auto;
  display: block;
}
.acne-lp p { margin: 0 0 1.2em; }
.acne-lp p:last-child { margin-bottom: 0; }
.acne-lp a { color: inherit; text-decoration: none; }
.acne-lp ul { list-style: none; margin: 0; padding: 0; }
.acne-lp h1, .acne-lp h2, .acne-lp h3 {
  font-family: var(--acne-serif);
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* =============================================================
   HERO
   ============================================================= */
.acne-hero {
  position: relative;
  padding: clamp(72px, 14vw, 160px) 24px clamp(56px, 10vw, 120px);
  overflow: hidden;
  color: var(--acne-white);
  isolation: isolate;
  text-align: center;
}
.acne-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(37,27,14,0.58) 0%, rgba(37,27,14,0.78) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(184,144,73,0.35), transparent 60%),
    linear-gradient(135deg, #3A2C1A 0%, #5B4A2C 60%, #8B6F30 100%);
}
.acne-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  mix-blend-mode: soft-light;
}
.acne-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.acne-hero__eyebrow {
  font-family: var(--acne-latin);
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.42em;
  color: var(--acne-gold-soft);
  margin: 0 0 24px;
  text-transform: uppercase;
}
.acne-hero__title {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.55;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 28px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
.acne-hero__title span { display: block; }
.acne-hero__lead {
  font-family: var(--acne-serif);
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: 0.08em;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.9);
}
.acne-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.acne-hero__note {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  margin: 0;
}

/* =============================================================
   BUTTON
   ============================================================= */
.acne-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 40px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--acne-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-width: 320px;
}
.acne-btn--primary {
  background: var(--acne-gold);
  color: var(--acne-white);
  border-color: var(--acne-gold-deep);
  box-shadow: 0 2px 0 var(--acne-gold-deep);
}
.acne-btn--primary:hover {
  background: var(--acne-gold-deep);
  transform: translateY(1px);
  box-shadow: 0 0 0 var(--acne-gold-deep);
}
.acne-btn__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
}
.acne-btn__icon svg {
  width: 100%;
  height: 100%;
}
.acne-btn__body {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.acne-btn__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.92;
  margin-bottom: 3px;
  font-weight: 500;
}
.acne-btn__tel {
  font-family: var(--acne-sans);
  font-size: 24px;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-feature-settings: "tnum";
}
.acne-btn--wide { min-width: 360px; }
.acne-btn--xl {
  padding: 22px 56px;
  gap: 18px;
}
.acne-btn--xl .acne-btn__icon { width: 26px; height: 26px; }
.acne-btn--xl .acne-btn__label { font-size: 13px; }
.acne-btn--xl .acne-btn__tel { font-size: 32px; }

/* =============================================================
   SECTION 共通
   ============================================================= */
.acne-section {
  padding: clamp(72px, 10vw, 120px) 24px;
  background: var(--acne-white);
}
.acne-section--alt {
  background: var(--acne-cream-bg);
}
.acne-section__inner {
  max-width: var(--acne-max-width);
  margin: 0 auto;
}
.acne-section__header {
  text-align: left;
  margin-bottom: 48px;
}
.acne-section__header--center {
  text-align: center;
}
.acne-section__title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--acne-brown-dark);
  font-weight: 600;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 18px;
  display: inline-block;
}
.acne-section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: var(--acne-gold);
}
.acne-section__header--center .acne-section__title::after {
  left: 50%;
  transform: translateX(-50%);
}
.acne-section__subtitle {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--acne-text-muted);
  font-size: 15px;
  line-height: 2;
}
.acne-section__body--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.acne-section__body--reverse .acne-section__figure {
  order: -1;
}
.acne-section__figure img {
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(58,44,26,0.15);
}
.acne-section__text p {
  font-size: 15px;
  line-height: 2.05;
  color: var(--acne-text);
}
.acne-section__text--center {
  max-width: 780px;
  margin: 40px auto 0;
  text-align: left;
}

/* --- Policy section specifics --- */
.acne-section--policy {
  background:
    linear-gradient(180deg, var(--acne-cream-bg) 0%, var(--acne-white) 100%);
  padding: clamp(80px, 10vw, 120px) 24px;
}
.acne-policy__hero {
  max-width: 900px;
  margin: 0 auto 40px;
}
.acne-policy__hero img {
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(58,44,26,0.18);
}

/* =============================================================
   MID CTA
   ============================================================= */
.acne-midcta {
  padding: clamp(44px, 5.5vw, 64px) 24px;
  background: var(--acne-brown-dark);
  color: var(--acne-white);
  text-align: center;
}
.acne-midcta__inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.acne-midcta__lead {
  font-family: var(--acne-serif);
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.1em;
  margin: 0 0 6px;
}
.acne-midcta__note {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* =============================================================
   MENU（自由診療）
   ============================================================= */
.acne-menu {
  padding: clamp(80px, 10vw, 130px) 24px;
  background: var(--acne-cream-bg);
}
.acne-menu__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.acne-menu__item {
  background: var(--acne-white);
  border: 1px solid var(--acne-line);
  border-radius: 10px;
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.acne-menu__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(58,44,26,0.08);
}
.acne-menu__item--featured {
  background: linear-gradient(180deg, #fff 0%, var(--acne-cream) 100%);
  border: 2px solid var(--acne-gold);
  box-shadow: 0 18px 50px rgba(184,144,73,0.22);
  padding-top: 44px;
}
.acne-menu__figure {
  margin: -36px -32px 0;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.acne-menu__figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.acne-menu__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: linear-gradient(180deg, var(--acne-gold) 0%, var(--acne-gold-deep) 100%);
  color: var(--acne-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(184,144,73,0.35);
  white-space: nowrap;
}
.acne-menu__name {
  font-size: 20px;
  color: var(--acne-brown-dark);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--acne-line);
  margin-bottom: 4px;
}
.acne-menu__text p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--acne-text);
}

/* =============================================================
   COUNSELING
   ============================================================= */
.acne-counseling {
  padding: 0 24px clamp(80px, 10vw, 120px);
  background: var(--acne-cream-bg);
}
.acne-counseling__figure {
  max-width: 780px;
  margin: 0 auto 48px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(58,44,26,0.12);
}
.acne-counseling__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

/* =============================================================
   FINAL CTA
   ============================================================= */
.acne-finalcta {
  padding: clamp(80px, 10vw, 130px) 24px clamp(120px, 12vw, 160px);
  background:
    linear-gradient(180deg, var(--acne-brown-dark) 0%, #2A1F12 100%);
  color: var(--acne-white);
  text-align: center;
}
.acne-finalcta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.acne-finalcta__eyebrow {
  font-family: var(--acne-latin);
  font-size: 14px;
  letter-spacing: 0.45em;
  color: var(--acne-gold-soft);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.acne-finalcta__title {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 20px;
  color: var(--acne-white);
  letter-spacing: 0.1em;
}
.acne-finalcta__lead {
  font-family: var(--acne-serif);
  font-size: 15px;
  line-height: 2;
  color: rgba(255,255,255,0.85);
  margin: 0 0 36px;
}
.acne-finalcta__info {
  margin: 48px 0 0;
  padding: 32px 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(217,184,116,0.45);
  border-radius: 10px;
  text-align: left;
  display: grid;
  gap: 20px;
}
.acne-finalcta__info > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
}
.acne-finalcta__info dt {
  font-family: var(--acne-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--acne-gold-soft);
  margin: 0;
  padding-top: 2px;
}
.acne-finalcta__info dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.92);
}
.acne-finalcta__info > div + div {
  padding-top: 20px;
  border-top: 1px solid rgba(217,184,116,0.18);
}

/* =============================================================
   STICKY PHONE CTA（モバイル専用）
   ============================================================= */
.acne-stickycta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(120%);
  display: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: linear-gradient(180deg, var(--acne-gold) 0%, var(--acne-gold-deep) 100%);
  color: var(--acne-white);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(58,44,26,0.35);
  z-index: 50;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  font-family: var(--acne-sans);
}
.acne-stickycta.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.acne-stickycta__icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.acne-stickycta__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.acne-stickycta__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.9;
}
.acne-stickycta__tel {
  font-family: var(--acne-sans);
  font-size: 18px;
  letter-spacing: 0.03em;
  font-weight: 700;
  font-feature-settings: "tnum";
}

/* =============================================================
   FADE-IN on scroll
   ============================================================= */
.acne-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.acne-fade.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   MEDIA QUERIES
   ============================================================= */
@media (max-width: 900px) {
  .acne-section__body--split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .acne-section__body--reverse .acne-section__figure {
    order: 0;
  }
  .acne-menu__list {
    grid-template-columns: 1fr;
  }
  .acne-finalcta__info > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .acne-lp { font-size: 15px; }

  /* Hero */
  .acne-hero {
    padding: 96px 20px 72px;
  }
  .acne-hero__eyebrow { letter-spacing: 0.32em; margin-bottom: 20px; }
  .acne-hero__title { letter-spacing: 0.08em; margin-bottom: 24px; }
  .acne-hero__lead { margin-bottom: 32px; line-height: 2.1; }
  .acne-hero__note {
    font-size: 11px;
    letter-spacing: 0.02em;
    line-height: 1.7;
    padding: 0;
  }

  /* Section */
  .acne-section { padding: 64px 20px; }
  .acne-section__header { margin-bottom: 28px; }
  .acne-section__title { padding-bottom: 14px; }
  .acne-section__title::after { width: 36px; }
  .acne-section__text p { font-size: 14px; line-height: 2; }
  .acne-section__figure img { border-radius: 6px; }

  /* Button */
  .acne-btn {
    min-width: 0;
    width: 100%;
    max-width: 320px;
    padding: 15px 22px;
    gap: 12px;
  }
  .acne-btn__label { font-size: 11px; letter-spacing: 0.14em; }
  .acne-btn__tel { font-size: 20px; letter-spacing: 0.02em; }
  .acne-btn--wide { min-width: 0; width: 100%; max-width: 360px; }
  .acne-btn--xl { padding: 18px 28px; gap: 14px; }
  .acne-btn--xl .acne-btn__icon { width: 22px; height: 22px; }
  .acne-btn--xl .acne-btn__label { font-size: 12px; }
  .acne-btn--xl .acne-btn__tel { font-size: 24px; }

  /* Mid CTA */
  .acne-midcta { padding: 56px 20px; }
  .acne-midcta__inner { gap: 16px; }
  .acne-midcta__note {
    font-size: 11px;
    letter-spacing: 0.02em;
    line-height: 1.7;
    padding: 0;
  }

  /* Menu */
  .acne-menu { padding: 72px 20px; }
  .acne-menu__list { gap: 20px; margin-top: 40px; }
  .acne-menu__item { padding: 26px 22px; gap: 14px; }
  .acne-menu__figure { margin: -26px -22px 0; }
  .acne-menu__figure img { height: 180px; }
  .acne-menu__name { font-size: 18px; padding-bottom: 10px; }
  .acne-menu__text p { font-size: 14px; }

  /* Counseling */
  .acne-counseling { padding: 0 20px 72px; }
  .acne-counseling__figure { margin-bottom: 32px; }

  /* Final CTA */
  .acne-finalcta { padding: 72px 20px 120px; }
  .acne-finalcta__eyebrow { font-size: 12px; letter-spacing: 0.35em; }
  .acne-finalcta__title { letter-spacing: 0.08em; }
  .acne-finalcta__lead {
    font-size: 13px;
    letter-spacing: 0.02em;
    line-height: 1.9;
    margin-bottom: 28px;
  }
  .acne-finalcta__info { padding: 24px 20px; margin-top: 36px; gap: 20px; }
  .acne-finalcta__info dt {
    font-size: 11px;
    letter-spacing: 0.24em;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(217,184,116,0.25);
    margin-bottom: 6px;
  }
  .acne-finalcta__info dd { font-size: 14px; line-height: 1.85; }

  /* Sticky CTA */
  .acne-stickycta {
    display: inline-flex;
    bottom: 12px;
    padding: 10px 18px;
    gap: 10px;
    max-width: calc(100% - 32px);
  }
  .acne-stickycta__icon { width: 30px; height: 30px; }
  .acne-stickycta__text { white-space: nowrap; }
  .acne-stickycta__label { font-size: 10px; letter-spacing: 0.1em; }
  .acne-stickycta__tel { font-size: 16px; letter-spacing: 0.02em; }
}

@media (max-width: 380px) {
  .acne-hero__title { font-size: 24px; }
  .acne-btn__tel { font-size: 18px; }
  .acne-btn--xl .acne-btn__tel { font-size: 22px; }
  .acne-stickycta__tel { font-size: 15px; }
}

/* =============================================================
   WP統合時の余白調整（LPページのみ）
   - 最終CTA直下の Google Map (contentbottom widget) を密着させる
   - common.css の `.under-page .contentbottom { margin-top: 30px }` は
     共通パーツのため触らず、LPページ限定スコープ + !important で確実に上書き
   ============================================================= */
.page-acne .contentbottom {
  margin-top: 0 !important;
}
