@charset "UTF-8";

/* =========================================================
   PWA Guide Common
   ガイド画面共通CSS
========================================================= */

/* ===== ガイド（メイン） ===== */

.guide-main{
  display: flex;
  flex-direction: column;
  gap: 12px;

  /* pwa_layout側の余白を上書き */
  padding-top: 12px !important;
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: calc(var(--footer-h) + 24px);

  font-size: 15px;
  line-height: 1.95;
  letter-spacing: .01em;
}

/* ===== タイトル ===== */

.guide-title{
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  margin: 0 0 4px;
  letter-spacing: .02em;

  /* 現在の赤タイトルを維持 */
  color: red !important;
}

.guide-lead{
  margin: 0 0 8px;
  text-align: center;
  opacity: .75;
  font-size: 13px;
  line-height: 1.6;
}

/* ===== カード ===== */

.guide-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);

  font-weight: 400 !important;
}

.guide-card p,
.guide-card li{
  font-weight: 400 !important;
}

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

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

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

.guide-card strong{
  font-weight: 900;
}

/* ===== h2見出し ===== */

.guide-h2{
  position: relative;
  padding-left: 12px;
  margin: 10px 0 10px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.guide-h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.15em;
  bottom:.15em;
  width: 4px;
  border-radius: 999px;
  background: rgba(106, 44, 255, .85);
}

/* ===== バッジ ===== */

.guide-badges{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.guide-badge{
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
}

/* =========================================================
   画像付きガイドカード
   画像は右側に回り込み表示
========================================================= */

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

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

/* 右側画像：列を占領せず本文を回り込ませる */
.guide-card__image{
  float: right;
  clear: right;

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

  display: block;
  text-align: right;
}

.guide-card__image img{
  width: 104px;
  max-width: 100%;
  height: auto;
  opacity: .9;
  border-radius: 14px;
}

/* float解除 */
.guide-card--with-image::after{
  content: "";
  display: block;
  clear: both;
}

/* ===== 本体へ進むリンク ===== */

.guide-action-row{
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: -2px 0 8px;
  clear: both;
}

.guide-start-link{
  position: static !important;
  float: none !important;

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

  width: fit-content;
  max-width: 100%;

  margin: 0 0 8px auto;
  padding: 4px 2px;

  font-weight: 900;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  color: rgba(106, 44, 255, .95);
  white-space: nowrap;
}

.guide-action-row .guide-start-link{
  margin: 0;
}

.guide-start-link:active{
  opacity: .7;
}

.guide-card--with-image .guide-h2{
  clear: none;
  margin-top: 0;
}

/* =========================================================
   右下ボタン「もっと詳しく」
========================================================= */

.pwa-fab{
  position: fixed;
  right: 14px;
  bottom: calc(var(--footer-h) + 14px);
  z-index: 10001;

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

  padding: 12px 14px;
  border-radius: 999px;
  border: 0;

  background: rgba(106, 44, 255, .88);
  color: rgba(255,255,255,.96);

  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.pwa-fab:active{
  transform: translateY(1px);
}

/* =========================================================
   オーバーレイ＋下から出るシート
========================================================= */

.pwa-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 10010;
}

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

  transform: translateY(100%);
  transition: transform .22s ease;
  z-index: 10011;

  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -18px 40px rgba(0,0,0,.20);

  max-height: 72vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

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

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

.pwa-sheet__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);

  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.pwa-sheet__title{
  font-weight: 900;
  font-size: 15px;
}

.pwa-sheet__close{
  border: 0;
  background: rgba(0,0,0,.06);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

.pwa-sheet__body{
  padding: 14px;
  font-weight: 400 !important;
}

.pwa-sheet__body p,
.pwa-sheet__body li{
  font-weight: 400 !important;
}

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

.pwa-sheet__body ul{
  padding-left: 20px;
  list-style: disc;
}

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

.pwa-sheet__body li::marker{
  color: rgba(0,0,0,.75);
}

.pwa-sheet__body strong{
  font-weight: 900;
}

/* ===== シート内 h3 ===== */

.pwa-sheet__body h3{
  position: relative;
  margin: 16px 0 8px;
  padding-left: 12px;

  font-size: 16px;
  font-weight: 900;
  color: rgba(106, 44, 255, .95);
}

.pwa-sheet__body h3::before{
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  bottom: .2em;
  width: 4px;
  border-radius: 999px;
  background: rgba(106, 44, 255, .85);
}

/* =========================================================
   ガイド専用：ヘッダー補正
========================================================= */

.pwa-header{
  position: sticky;
  top: 0;
  z-index: 2000;
}

.pwa-header__title{
  text-align: center;
}

/* =========================================================
   小さめ端末
========================================================= */

@media (max-width: 420px){

  .guide-main{
    padding-top: 10px !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  .guide-title{
    font-size: 20px;
    margin-top: 0;
  }

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

  .guide-card{
    padding: 14px;
  }

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

  width: 96px;
  margin: 2px 0 8px 12px;
  text-align: right;
}

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

.guide-action-row{
  margin: -2px 0 8px;
}

.guide-start-link{
  font-size: 14px;
  margin-left: auto;
}

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