/* リセット */
html, body, h1, h2, h3, p, ul, li, button {
  margin: 0; padding: 0;
  /*font-family: "Yu Gothic", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;*/
	font-family: 'M PLUS Rounded 1c', sans-serif;
	font-size: inherit; font-weight: inherit
}
*, *::before, *::after {
  box-sizing: border-box;
}
ul {
  list-style: none;
}
ul li {
  margin-bottom: 0.6em;
}

/* 見出し */
h1 {padding: 5px;}
h2 {
  color: #4FACCF;
  text-align: center;
  margin: 3rem 0 1rem;
  font-size: 1.8rem;
	font-weight: bold;
}
h2 .small-text {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.3em;
}
h3 {
	font-weight: bold;
font-size: 1.3rem;}

/*強調*/
.red {
  position: relative;
  display: inline-block;
  color: red;
  font-weight: 700;
  z-index: 0;
}

.red::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.05em;      /* ← マーカー位置（下寄せ） */
  width: 100%;
  height: 0.7em;
  background: #fff3a0;
  z-index: -1;

  transform: scaleX(0);        /* ← 初期は引かれてない */
  transform-origin: left;
}

/* スクロールで付与されるクラス */
.red.is-active::after {
  animation: markerDraw 0.7s ease-out forwards;
}

@keyframes markerDraw {
  to { transform: scaleX(1); }
}



/* ファーストビュー画像：画面幅いっぱい */
.fv img,
.fv-img {
  width: 100%;
  height: auto;
  display: block;
}


/* メインコンテンツの内側ラッパー */
.inner-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1em;
}

/* ページ全体のレイアウトラッパー */
.wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

/* 左サイドバー固定 */
.sidebar-left {
  position: fixed;
  top: 80px; /* ヘッダー分の余白を調整 */
  left: 1em;
  width: 250px;
  background: #d7ebfe;
  padding: 1em;
  height: calc(100vh - 100px);
  overflow-y: auto;
  font-size: 0.9rem;
  color: #333;
  z-index: 100;
}

/* 右サイドバー固定 */
.sidebar-right {
  position: fixed;
  top: 80px;
  right: 1em;
  width: 250px;
  padding: 1em;
  height: calc(100vh - 100px);
  overflow-y: auto;
  font-size: 0.9rem;
  color: #333;
  z-index: 100;
}

/* メインコンテンツ */
.content {
  margin: 0 220px; /* 左右サイドバー(200px) + 余白(20px) */
  border-radius: 6px;
  box-sizing: border-box;
  min-width: 0;
}

/* コンテンツ内画像はレスポンシブ */
.content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1em;
}

/* 共感パート例 */
.sympathy .check-list {
  margin: 1em 0 2em;
  color: #333;
}
.sympathy .check-list li {
  position: relative;
  padding-left: 1.8em;
  font-size: 1rem;
}
.sympathy .check-list li::before {
  content: "☑";
  position: absolute;
  left: 0;
  color: #4FACCF;
  font-weight: bold;
}
.sympathy .sympathy-text {
  flex: 1 1 300px;
  font-size: 1rem;
  line-height: 1.5;
  background: #fff9e8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5em;
  font-family: 'Yu Mincho', serif;
  box-shadow: inset 0 0 8px #ffe;
  position: relative;
}
.sympathy .sympathy-text::before {
  content: "";
  position: absolute;
  top: 15px; left: 15px;
  width: 30px; height: 30px;
  background: url('pencil-icon.svg') no-repeat center/contain;
}

/* ポピーなら... */
.popy-nara {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  text-align: center;
  margin: 1rem 0 0.5rem;
}
.popy-nara .popy-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: #4FACCF;
}
.popy-nara .popy-icon {
  width: 50px;
  height: auto;
}

/* ノート風 */
.note {
  line-height: 2;
  background-image: linear-gradient(to bottom, transparent 95%, #ddd 95%, #ddd 100%);
  background-size: 100% 2em;
  background-repeat: repeat-y;
}
.note p {
  margin-bottom: 2em;
}

/* キャンペーン特典背景 */
.gift-area {
  background-color: #FEFE69;
  max-width: 720px;
  margin: 3em auto 1rem;
  padding: 1.5em 1em;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}
.gift-area small {
  display: block;
  margin-top: 0.8em;
  font-weight: normal;
  font-size: 0.85rem;
}

/* キャンペーン詳細 */
.campaign-details {
  margin-bottom: 3rem;
}
.campaign-details h2 {
  margin-bottom: 1em;
}
.campaign-details h3 {
  margin: 1.5em 0 0.5em;
  color: #4FACCF;
}

/* 口コミ（吹き出し） */
.fukidashi {
  width: 100%;
  margin: 1.5em 0;
  overflow: hidden;
}
.fukidashi .faceicon {
  float: left;
  margin-right: -90px;
  width: 80px;
}
.fukidashi .faceicon img {
  width: 100%;
  height: auto;
  border: 3px solid #d7ebfe;
  border-radius: 50%;
}
.fukidashi .chatting {
  width: 100%;
}
.says {
  display: inline-block;
  position: relative;
  margin: 5px 0 0 105px;
  padding: 17px 13px;
  border-radius: 12px;
  background: #d7ebfe;
  font-size: 90%;
}
.says:after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 18px;
  left: -24px;
  border: 12px solid transparent;
  border-right: 12px solid #d7ebfe;
}
.says p {
  margin: 0;
  padding: 0;
}
.says .toukou {
  font-size: 90%;
  text-align: right;
  margin-top: 5px;
}

/* 会費表 */
.fee-table {
  max-width: 720px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
th, td {
  border: 1px solid #ddd;
  padding: 0.8em 0.1em;
  text-align: center;
}
th {
  background-color: #4FACCF;
  color: #fff;
}

/* フッターコピー */
.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  padding: 2em 1em;
}

/* タブレット横(1200px以下)ではサイドバーを細くする */
@media (max-width: 1200px) and (min-width: 1024px) {
  .sidebar-left,
  .sidebar-right {
    width: 180px;
  }

  .content {
    margin: 0 180px; /* 左右サイドバー考慮 */
    max-width: 100%;
    padding: 0 1.2rem;
  }
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem 1.5rem;
}


/* サイドバーは画面幅1023px以下で非表示 */
@media (max-width: 1023px) {
  .sidebar-left {
    display: none;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
  }
  .content {
    margin: 0;
    padding: 0;
    background: none;
	  width: 100%;
  }
}

/* ヘッダー全体 */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1em;
  z-index: 1200;
}

/* ロゴは左寄せ */
.logo {
  font-weight: bold;
  font-size: 1.8rem;
  color: #4FACCF;
}

/* ハンバーガーメニューはデフォルト非表示 */
.menu-toggle {
  display: none;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* スマホサイズでハンバーガーメニュー表示 */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

/* ヘッダー分のスペースをbodyやmainに空ける例 */
body, main.content {
  padding-top: 40px;
}


/* サイドメニュー（右側に隠す） */
#sideMenu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px; /* 必要に応じて調整 */
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  transform: translateX(100%); /* 初期は隠す */
  z-index: 1050; /* オーバーレイより前に表示 */
  padding: 2rem 1rem;
  overflow-y: auto;
}

#sideMenu.open {
  transform: translateX(0);
}

/* ヘッダー分だけ下げる */
@media (max-width: 768px) {
  #sideMenu {
    top: 80px;
    height: calc(100vh - 80px);
  }
}

/* オーバーレイ（背景暗くする） */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1040;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* メニュー内のリストスタイル */
#sideMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#sideMenu li {
  margin-bottom: 1.5rem;
}
#sideMenu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.2rem;
}
h2, h3, section {
  scroll-margin-top: 100px; /* ヘッダーの高さ分 */
}
/* サイドバー左メニュー（矢印・ホバー演出付き） */
.sidebar-left li {
  position: relative;
  padding: 0;
  border-bottom: 1px solid #4FACCF;
  cursor: default;
}

.sidebar-left li a {
  display: block;
  width: 100%;
  padding: 0.5em 1.2em 0.5em 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.sidebar-left li a:hover {
  opacity: 0.8;
}

.sidebar-left li a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid #4FACCF;
  border-right: 2px solid #4FACCF;
  transform: translateY(-50%) rotate(45deg);
  position: absolute;
  right: 4px;
  top: 50%;
}



/* PC ＆ タブレット横での3列レイアウト調整：余白ゼロにする */
@media (min-width: 1024px) {
  .wrapper {
    gap: 0 !important;
    max-width: 1200px;
    margin: 0 auto;
  }

  .content {
    margin-left: 250px !important; /* 左サイドバー幅 */
    margin-right: 250px !important; /* 右サイドバー幅 */
    max-width: 100%;
    width: calc(100% - 500px); /* サイドバー分を引いた幅 */
    box-sizing: border-box;
  }

  .sidebar-left {
    left: 0 !important;
    padding: 1rem !important;
  }

  .sidebar-right {
    right: 0 !important;
    padding: 1rem !important;
  }
}
/*右サイド追従CVボタン*/
/* 追従ボタンの初期状態（非表示） */
.float-btn {
  position: fixed;
  right: 15px;
  bottom: 20px;
  width: 110px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1500;

  /* box-shadow は付けない（矩形になるため） */
}

/* 画像の輪郭に沿った影をつける（超重要） */
.float-btn img {
  width: 100%;
  height: auto;
  display: block;

  /* 影はこちらに変更 ↓ */
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
  border-radius: 12px; /* 必要なら */
}

.float-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-btn:hover {
  opacity: 0.8;
  cursor: pointer;
  transform: translateY(-3px);
}

/* スマホでは少し小さめ */
@media (max-width: 768px) {
  .float-btn {
    width: 80px;
    right: 12px;
    bottom: 18px;
  }

  .float-btn img {
    /* スマホは影弱めバージョン */
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.22));
  }
}




