@charset "UTF-8";

/* =========================================
   App Store版 Guide Common
   ========================================= */

.guide-main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 20px 16px calc(96px + env(safe-area-inset-bottom));

  color: #2d2118;
  font-size: 15px;
  line-height: 1.9;
}

/* Title */

.guide-title {
  margin: 20px 4px 8px;

  color: #2d2118;
  font-size: clamp(30px, 7.4vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.guide-lead {
  margin: 0 4px 16px;

  color: #70645a;
  font-size: 14px;
  line-height: 1.75;
}

/* Cards */

.guide-card {
  margin: 14px 0;
  padding: 18px;

  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(90, 60, 30, 0.13);
  box-shadow: 0 14px 32px rgba(58, 36, 16, 0.12);
}

.guide-card--with-image {
  position: relative;
  display: block;
  overflow: hidden;

  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 232, 0.96));
}

.guide-card__content {
  display: block;
  min-width: 0;
}

.guide-card p,
.guide-card li {
  color: #3a2d22;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 500;
}

.guide-card p {
  margin: 10px 0;
}

.guide-card p:first-child {
  margin-top: 0;
}

.guide-card p:last-child {
  margin-bottom: 0;
}

.guide-card ul {
  margin: 10px 0;
  padding-left: 1.25em;
  list-style: disc;
}

.guide-card li {
  margin: 6px 0;
}

.guide-card strong {
  color: #5b3518;
  font-weight: 900;
}

/* Heading */

.guide-h2 {
  position: relative;

  margin: 0 0 12px;
  padding-left: 13px;

  color: #2d2118;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.38;
}

.guide-h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;

  width: 5px;
  border-radius: 999px;
  background: #8a5a2b;
}

.guide-h2::after {
  content: "";
  display: block;

  width: 76px;
  height: 3px;
  margin-top: 8px;

  border-radius: 999px;
  background: linear-gradient(to right, #8a5a2b, rgba(210, 164, 81, 0.38));
}

/* Image */

.guide-card__image {
  float: right;
  clear: right;

  width: 108px;
  margin: 2px 0 10px 14px;

  text-align: right;
}

.guide-card__image img {
  width: 104px;
  max-width: 100%;
  height: auto;

  border-radius: 18px;
  border: 1px solid rgba(90, 60, 30, 0.12);
  box-shadow: 0 8px 18px rgba(58, 36, 16, 0.10);
}

.guide-card--with-image::after {
  content: "";
  display: block;
  clear: both;
}

/* Badges */

.guide-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;

  margin-top: 12px;
}

.guide-badge {
  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(210, 164, 81, 0.16);
  border: 1px solid rgba(80, 55, 30, 0.10);

  color: #6b4a22;
  font-size: 12px;
  font-weight: 900;
}

/* =========================================
   ガイド画面：占い本体へ進むリンク
   タイトル上・右端に統一
   ========================================= */

.guide-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  width: 100%;
  margin: 0 0 10px;
  clear: both;
}

.guide-start-link,
.guide-start-link:link,
.guide-start-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  max-width: 100%;
  min-height: 42px;

  margin: 0 0 0 auto;
  padding: 0 15px;

  border-radius: 999px;
  background: #2d2118;
  color: #ffffff !important;

  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 10px 20px rgba(45, 33, 24, 0.16);
}

.guide-start-link:active {
  transform: scale(0.985);
}

/* Floating guide button */

.pwa-fab {
  position: fixed;
  right: 14px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 10001;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 10px 15px;

  border: none;
  border-radius: 999px;
  background: #2d2118;
  color: #ffffff;

  font-size: 13px;
  font-weight: 900;

  box-shadow: 0 12px 24px rgba(45, 33, 24, 0.20);
}

.pwa-fab:active {
  transform: scale(0.985);
}

/* Overlay + sheet */

.pwa-overlay {
  position: fixed;
  inset: 0;
  z-index: 10010;

  background: rgba(20, 28, 40, 0.42);
  backdrop-filter: blur(5px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.pwa-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10011;

  max-height: 74vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  transform: translateY(100%);
  transition: transform 0.22s ease;

  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(90, 60, 30, 0.13);
  box-shadow: 0 -18px 44px rgba(45, 33, 24, 0.22);
}

body.pwa-sheet-open .pwa-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.pwa-sheet-open .pwa-sheet {
  transform: translateY(0);
}

.pwa-sheet__head {
  position: sticky;
  top: 0;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 13px 15px;
  background: rgba(255, 250, 242, 0.98);
  border-bottom: 1px solid rgba(90, 60, 30, 0.12);
}

.pwa-sheet__title {
  color: #2d2118;
  font-size: 15px;
  font-weight: 900;
}

.pwa-sheet__close {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;

  background: rgba(45, 33, 24, 0.08);
  color: #2d2118;

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

.pwa-sheet__body {
  padding: 16px;
}

.pwa-sheet__body p,
.pwa-sheet__body li {
  color: #3a2d22;
  font-size: 14px;
  line-height: 1.85;
}

.pwa-sheet__body p,
.pwa-sheet__body ul {
  margin: 10px 0;
}

.pwa-sheet__body ul {
  padding-left: 1.25em;
  list-style: disc;
}

.pwa-sheet__body li {
  margin: 6px 0;
}

.pwa-sheet__body strong {
  color: #5b3518;
  font-weight: 900;
}

.pwa-sheet__body h3 {
  position: relative;

  margin: 18px 0 9px;
  padding-left: 12px;

  color: #2d2118;
  font-size: 16px;
  font-weight: 900;
}

.pwa-sheet__body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;

  width: 4px;
  border-radius: 999px;
  background: #8a5a2b;
}

/* Small screen */

@media (max-width: 430px) {
  .guide-main {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .guide-title {
    font-size: 28px;
  }

  .guide-lead {
    font-size: 13px;
  }

  .guide-card {
    padding: 16px;
    border-radius: 22px;
  }

  .guide-h2 {
    font-size: 18px;
  }

  .guide-card p,
  .guide-card li {
    font-size: 14px;
    line-height: 1.85;
  }

  .guide-card__image {
    width: 96px;
    margin: 2px 0 8px 12px;
  }

  .guide-card__image img {
    width: 92px;
  }

  .guide-start-link,
  .guide-start-link:link,
  .guide-start-link:visited {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }

  .pwa-sheet {
    max-height: 78vh;
  }
}