/* ======================================
   MuseGirls.club / FANZA Guide 共通CSS
   対象：/guide/, /guide/account/, /guide/safety/
   ====================================== */

/* ===== Layout ===== */
.l-container {
  max-width: 1000px;
  margin: 48px auto;
  padding: 0 15px;
}
.l-wide {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.l-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .l-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 992px) {
  .l-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Utility ===== */
.u-muted {
  color: #666;
}
.u-small {
  font-size: 0.9rem;
}
.u-center {
  text-align: center;
}
.u-gap {
  margin-top: 28px;
}
.u-gap-lg {
  margin-top: 40px;
}
.u-list {
  padding-left: 1.3em;
}
.u-list li {
  margin: 0.4em 0;
  line-height: 1.6;
  list-style-type: disclosure-closed;
}

.u-note {
  font-size: 0.9rem;
  color: #555;
  background: #f7f7f9;
  padding: 8px 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  line-height: 1.5;
}

/* インラインコード・キーボード表記 */
.u-inline-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: #f2f4f8;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.u-kbd {
  background: #f2f4f8;
  border: 1px solid #e5e7eb;
  border-bottom-width: 2px;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

/* ===== Buttons ===== */
.u-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: #cc0000;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  font-size: 15px;
}
.u-btn--ghost {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
}
.u-center .u-btn + .u-gap {
  margin-top: 6px;
}

/* ===== Headings ===== */
.c-h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid #f66;
  font-weight: 800;
  border-left: 6px solid #f66;
  padding-left: 10px;
}
.c-h3 {
  font-size: 1.05rem;
  margin: 18px 0 6px;
  font-weight: 700;
  line-height: 1.4;
}

/* ===== Card ===== */
.c-card {
  border: 1px solid chocolate ;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  position: relative;
}

/* （必要ならトップの紹介カードに padding大きめを足したいときだけ使う） */
.c-card--lg {
  padding: 32px 16px;
}

/* カテゴリバッジ（右上の「安全性」「登録方法」など） */
.c-card__cat {
  min-width: 70px;
  text-align: center;
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f2f4f8;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 6px;
}

/* カード内タイトル・本文 */
.c-card__title {
  font-weight: 700;
  font-size: 1rem;
  margin: 20px 0 6px;
  color: #111;
  line-height: 1.4;
}
.c-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* CTA ボタンリンク領域 */
.c-card__link {
  display: flex;
  justify-content: center;
}
.c-card__link a {
  min-width: 180px;
  text-align: center;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background: #ef4444;
  color: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  line-height: 1.2;
}

/* ===== Feature card (トップ下部の「メールが届かない」など) ===== */
.c-feature {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.c-feature__head {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}
.c-feature__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
}

/* ===== Callout / 注意喚起ボックス ===== */
.c-callout {
  border: 1px solid #e7f0ff;
  background: #f7fbff;
  color: #17498b;
  border-radius: 12px;
  padding: 14px 16px;
  line-height: 1.5;
}
.c-callout--warn {
  border-color: #fde2e2;
  background: #fff5f5;
  color: #771d1d;
}
.c-callout__title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ===== Steps ===== */
.c-steps {
  display: grid;
  gap: 14px;
  padding: 0;
}
.c-step {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  list-style: none;
}
.c-step__head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.c-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.c-step__title {
  font-weight: 700;
}

/* ===== Placeholder / Image frame ===== */
.u-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #bbb;
  background: repeating-linear-gradient(
    45deg,
    #fafafa,
    #fafafa 10px,
    #f2f2f4 10px,
    #f2f2f4 20px
  );
  color: #999;
  border-radius: 12px;
  padding: 8px;
  box-sizing: border-box;
}
.u-ph--hero {
  min-height: 160px;
}
.u-ph--img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 8px;
}
.u-ph--img img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}
.u-ph--thumb {
  height: 120px;
}

/* 以前の guide-shot（スクショラッパ） */
.guide-shot {
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.guide-shot img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ===== FAQ ===== */
.c-faq {
  border-top: 1px solid #eee;
}
.c-faq__item {
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.c-faq__q {
  font-weight: 700;
  color: chocolate;
}
.c-faq__a {
  margin-top: 6px;
  color: #333;
}

/* ===== breadcrumb / Hero ===== */
.breadcrumb {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: #bbb;
}
.breadcrumb a {
  text-decoration: none;
  color: #333;
}

/* ===== Hero Section ===== */
.c-hero {
  border-bottom: 1px solid #eee;
  padding: 28px 0;
  background: #fff;
}
.c-hero__title {
  font-size: clamp(20px, 4.2vw, 26px);
  margin: 40px 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f2b46;
  line-height: 1.4;
}
.c-hero__lead {
  font-size: clamp(14px, 2.4vw, 16px);
  color: #444;
  margin-bottom: 14px;
  line-height: 1.6;
}
.c-hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ===== Inline Hero (FANZA帯) ===== */
.mg-hero-inline {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  border: 1px dotted chocolate;
  padding: clamp(10px, 2.2vw, 22px);
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 28px);
  overflow: hidden;
  margin-top: 30px;
}
.mg-hero-inline__brand {
  flex: 0 0 auto;
  font-weight: 900;
  color: #ef4444;
  line-height: 1;
  letter-spacing: 0.04em;
  font-size: clamp(28px, 9vw, 96px);
}
.mg-hero-inline__texts {
  min-width: 0;
  display: grid;
  gap: clamp(6px, 1.2vw, 18px);
}
.mg-hero-inline__title {
  margin: 0;
  color: #0f2b46;
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(16px, 3.3vw, 30px);
  word-break: keep-all;
}
.mg-hero-inline__lead {
  margin: 0;
  color: #334155;
  font-size: clamp(12px, 2.1vw, 18px);
  line-height: 1.5;
}
/* 高さが低い端末で「このリードだけ消したい」とき用で
   safetyページなどで使える補助クラス */
.mg-hero-inline__lead--compact-hide {
  /* デフォでは何もしない。メディアクエリで非表示にする */
}

.mg-hero-inline__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1.2vw, 10px);
  padding: 0;
  margin: 0;
}
.mg-hero-inline__chips li {
  width: 100px;
  height: 24px;
  background: #ff6161;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: clamp(11px, 1.8vw, 14px);
  line-height: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* ===== Responsive tweaks ===== */
@media (max-width: 601px) {
  .mg-hero-inline {
    flex-direction: column;
  }
  .mg-hero-inline__chips li {
    width: 90px;
  }
  .c-hero__cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .c-hero__cta .u-btn {
    padding: 12px 0;
    font-size: 15px;
  }
  .u-btn--ghost {
    text-align: center;
  }
}

@media (max-width: 540px) {
  .mg-hero-inline {
    gap: clamp(8px, 2vw, 16px);
  }
  /* accountページなどで .nowrap をスマホでは折り返したい場合 */
  .mg-hero-inline .nowrap {
    white-space: normal;
  }
}

@media (max-width: 400px) {
  .c-hero__cta {
    gap: 4px;
  }
}

/* 画面が極端に横長・高さが低いとき:
   .mg-hero-inline__lead--compact-hide を消す */
@media (max-height: 180px) {
  .mg-hero-inline__lead--compact-hide {
    display: none;
  }
}
