/* ===== 共通設定 ===== */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", sans-serif;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ===== レイアウトエリア共通幅 ===== */
section, header, footer {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 16px;
}

/* ===== ヘッダー ===== */
header {
  background: #002f6c;
  color: white;
  text-align: center;
  padding: 10px 10px; 
}
header h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 5px 0;  /* 下の余白を5pxに縮める */
}
header p {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}
header .highlight {
  color: #ffd700;
  font-weight: bold;
  font-size: 20px;
}

/* ===== 折り返し防止クラス ===== */
.nowrap-text {
  white-space: nowrap;
  font-size: 18px;
  line-height: 1.4;
}

/* ===== CTA（コール・トゥ・アクション） ===== */
.cta {
  background: #4caf50;
  color: white;
  text-align: center;
  padding: 10px 16px 20px; /* 上:10px 左右:16px 下:20px */
  width: 100%;
}
.cta a {
  display: block;
  margin: 10px auto;
  padding: 15px;
  background: white;
  color: #4caf50;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  width: 90%;
  max-width: 400px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

@media screen and (max-width: 600px) {
.cta {
    padding: 4px 12px 16px; /* 上:4px 左右:12px 下:16px */
  }
}
.cta a {
    width: 90%;
    max-width: 400px;
  }
}
/* ===== セクション背景色 ===== */
.white { background: #ffffff; }
.lightgray { background: #f9f9f9; }
.gray { background: #f1f1f1; }

/* ===== タイトル・リスト・テキスト ===== */
h2 {
  color: #002f6c;
  font-size: 22px;
}
ul, ol {
  padding-left: 20px;
}
p, li {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== フッター ===== */
.footer {
  background: #002f6c;
  color: white;
  text-align: center;
  padding: 40px 20px;
  width: 100%;
}

/* ===== メモ用紙風チェックリスト（PC向け） ===== */
.note {
  position: relative;
  background: repeating-linear-gradient(
    white,
    white 28px,
    #d3d3d3 29px,
    white 30px
  );
padding: 40px 30px 20px 30px; /* 下だけ減らす */
  margin: 40px auto 40px auto;  /* 下だけ減らす */
  box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
  border-radius: 4px;
  width: 90%;
  max-width: 600px;
}
.note::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100%;
  height: 100%;
  background: white;
  z-index: -1;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
  border-radius: 4px;
}
.note p {
  margin: 0 0 18px;
  font-size: 18px; !important;  /* ← 必ず上書きさせるために !important を追加 */
  line-height: 1.8;
  padding-left: 30px;
  position: relative;
}
.note p::before {
  content: "✔";
  color: orange;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 24px;
  line-height: 1.4;
}

/* ===== スマホ対応（600px以下） ===== */
@media screen and (max-width: 600px) {
  header {
    padding: 4px 8px !important; /* 上下左右の余白を最小に */
  }

  header h1 {
    font-size: 28px;
	margin: 0 0 4px 0; /* 下の余白も詰める */
    line-height: 1.3;
  }

  header .highlight {
    font-size: 18px;
    margin: 4px 0;
  }
  header p {
    font-size: 14px;
    margin: 0; /* 上下の余白を完全に削除 */
    line-height: 1.4;
  }
}
  .container {
    padding: 30px 12px;
  }

  .nowrap-text {
    font-size: 16px;
  }

  .cta a {
    width: 100%;
    max-width: 100%;
  }

  /* ===== note スマホ対応 ===== */
  .note {
 padding: 24px 16px 16px 16px; /* 下だけ減らす */
    margin: 30px auto 30px auto;  /* 下だけ減らす */
    background: repeating-linear-gradient(
      white,
      white 24px,
      #d3d3d3 25px,
      white 26px
    );
    box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
  }

  .note::before {
    top: 6px;
    left: 6px;
    transform: rotate(-1.5deg);
    box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
  }

  .note p {
    font-size: 14px;
    line-height: 1.7;
    padding-left: 26px;
	margin-bottom: 12px; /* ← 追加または修正 */
  }

.note p::before {
  content: "";
  background-image: url('https://kaiketsu-navi.com/wp/wp-content/uploads/2025/07/check-orange.svg');
  background-size: contain;
  background-repeat: no-repeat;
  width: 1.2em;
  height: 1.2em;
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
}

/* ===== パソコン向けフォント調整（601px以上） ===== */
@media screen and (min-width: 601px) {
  p, li {
    font-size: 18px;
    line-height: 1.8;
  }

  header {
    padding: 40px 16px;
  }
}

/* スマホで折り返さずに表示するための調整 */
.highlight.shrink-on-mobile {
  white-space: nowrap;
  display: inline-block;
  font-size: 18px;
}

/* スマホでのみフォントサイズを小さくして1行に収める */
@media screen and (max-width: 600px) {
  .highlight.shrink-on-mobile {
    font-size: 13px;
  }
}
@media screen and (min-width: 601px) {
  .note p {
    font-size: 16px !important;  /* ← ここをお好みで22pxなどに */
    line-height: 1.6;
  }
}
