* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: #ffffff;
  color: #1a2a40;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 固定ヘッダー(72px)の下にコンテンツが隠れないよう確保 + 余白30px */
main {
  padding-top: 102px;
}

/* パンくずリスト */
.breadcrumb-container {
  padding: 0 25px 25px;
}

.breadcrumbs {
  list-style: none;
  display: flex;
  align-items: center;  
  padding: 0;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.05em;
  overflow-x: auto;
  white-space: nowrap;
}

ul.breadcrumbs li {
  line-height: 1.5;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: #ccc;
}

.breadcrumbs a {
  text-decoration: none;
  color: #2d2d2d;
  opacity: 0.5;
}

.breadcrumbs li:last-child {
  color: #2d2d2d;
  opacity: 0.5;
}

.page-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 25px;
}

p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.lead-text {
  text-align: left;
  font-weight: 500;
  padding: 0 20px;
  color: #2d2d2d;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-in 0.9s ease forwards;
  animation-delay: 1.1s;
}

/* 目次 */
.toc {
  margin: 30px 0 0;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  border-bottom: 1px dashed #3e8c4e;
}

.toc li:last-child {
  border-bottom: none;
}

.toc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-weight: 700;
  color: #3e8c4e;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.6;
}

.toc-sub-text {
  font-size: 13px;
  font-weight: 500;
}

.toc-link-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toc-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #3e8c4e;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.toc a::after {
  content: '›';
  font-size: 24px;
  font-weight: 700;
  color: #3e8c4e;
  margin-left: 12px;
  line-height: 1;
}

/* アンカー先が固定ヘッダーに隠れないよう調整 */
[id] {
  scroll-margin-top: 102px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 20px;
}

/* ページ上部の見出し画像・スマホ用画像：画面幅いっぱいに表示 */
h1 {
  margin: 0;
}

.hero-heading,
.hero-sub {
  display: block;
  height: auto;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-in 0.9s ease forwards;
}

.hero-heading {
  width: 73.5%;
  animation-delay: 0.1s;
}

.hero-sub {
  width: 80.8704%;
  margin-top: 40px;
  animation-delay: 0.6s;
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 便利ポイント */
.point-block {
  padding: 28px 0;
  border-bottom: 1px dashed #3e8c4e;
}

.point-block:last-of-type {
  border-bottom: none;
}

.point-block-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
}

.point-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #3e8c4e;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin: 0;
}

.point-heading {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0;
  color: #2d2d2d;
}

.point-body {
  font-size: 15px;
  color: #666666;
  margin: 0;
}

.toc-back-link {
  text-align: right;
  font-size: 13px;
  margin: 0 0 20px;
}

.toc-back-link a {
  color: #3e8c4e;
  text-decoration: underline;
}

.point-note {
  font-size: 13px;
  color: #888888;
  line-height: 1.7;
  margin: 20px 0 0;
  background-color: #eaf3ec;
  padding: 12px 16px;
  border-radius: 8px;
}

.benefit-heading-image {
  display: block;
  width: 350px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 2px;
}

.section-divider-container {
  padding-top: 0;
  padding-bottom: 0;
}

.section-divider {
  width: 100%;
  margin: 40px 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* 原寸(1280x238)の50%からさらに15%縮小 */
.add-and-link-heading-image {
  display: block;
  width: 544px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 40px;
}

/* 原寸(1321x224)の50%からさらに15%縮小 */
.link-only-heading-image {
  display: block;
  width: 562px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 40px;
}

/* STEPボックス（ダミー） */
.step-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-box {
  width: 100%;
  background-color: #f2f2f2;
  border: 1px solid #3e8c4e;
  border-radius: 8px;
  padding: 20px;
}

.step-label {
  display: table;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #ffffff;
  background-color: #3e8c4e;
  text-align: center;
  padding: 7px 22px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(62, 140, 78, 0.35);
  margin: 0 auto 16px;
}

.step-image-placeholder {
  width: 100%;
  background-color: #ffffff;
  border: 1px dashed #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  font-size: 12px;
  margin: 0 0 14px;
  padding: 20px 0;
}

.step-image {
  display: block;
  width: 40%;
  height: auto;
}

/* STEP4の画像はアスペクト比が異なるため、他画像と縦の高さが揃うよう横幅を調整 */
.step-image-wide {
  width: 62%;
}

/* ID連携のやり方（すでに友だち追加済み）セクションの画像を30%拡大 */
.step-list-navy .step-image {
  width: 52%;
}

.step-desc-placeholder {
  font-size: 17px;
  font-weight: 500;
  color: #2d2d2d;
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

.alt-procedure {
  margin: 16px 0 0;
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 10px;
}

.alt-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
}

.alt-note-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #5b7fa6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-style: normal;
}

.alt-note p {
  font-size: 13px;
  color: #3d4f5e;
  line-height: 1.8;
  margin: 0;
}

.alt-procedure-title {
  font-size: 15px;
  font-weight: 700;
  color: #496585;
  text-align: center;
  padding: 10px 0;
  border-top: 1px dashed #cccccc;
  border-bottom: 1px dashed #cccccc;
  margin: 0 0 20px;
}

.alt-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.alt-steps li {
  display: flex;
  gap: 12px;
}

.alt-step-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #5b7fa6;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.alt-step-content {
  flex: 1;
  min-width: 0;
}

.alt-step-text {
  font-size: 15px;
  font-weight: 700;
  color: #2d2d2d;
  line-height: 1.5;
  margin: 0;
  padding-top: 4px;
}

.step-anchor-link {
  color: #1a2a40;
  text-decoration: underline;
}

.step-anchor-link-blue {
  color: #5b7fa6;
  text-decoration: underline;
}

.alt-friend-methods {
  margin-top: 14px;
  padding: 14px;
  background-color: #f6f7f8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.alt-friend-method:not(:last-child) {
  padding-bottom: 14px;
  border-bottom: 1px dashed #dcdcdc;
}

.alt-friend-method-label {
  font-size: 13px;
  font-weight: 700;
  color: #496585;
  margin: 0 0 4px;
}

.alt-friend-method-desc {
  font-size: 13px;
  color: #666666;
  margin: 0;
}

.qr-image {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
  margin: 10px auto 0;
}

.step-arrow {
  font-size: 22px;
  font-weight: 700;
  color: #3e8c4e;
  text-align: center;
  margin: 14px 0;
  line-height: 1;
}

/* STEP配色バリエーション（ネイビー） */
.step-list-navy .step-box {
  background-color: #f4f6f8;
  border-color: #1a2a40;
}

.step-list-navy .step-label {
  color: #ffffff;
  background-color: #1a2a40;
  box-shadow: 0 2px 6px rgba(26, 42, 64, 0.35);
}

.step-list-navy .step-arrow {
  color: #1a2a40;
}

.closing-notes {
  margin: 36px 0 0;
}

.closing-notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.closing-notes li {
  font-size: 13px;
  color: #666666;
  line-height: 1.8;
  padding-left: 1.1em;
  text-indent: -1.1em;
  margin: 0 0 10px;
}

.closing-notes li:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .breadcrumb-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px 16px;
  }
  .breadcrumbs {
    font-size: 12px;
  }
  /* 画像は%指定のままだと画面幅に比例して際限なく大きくなるため、上限を設定 */
  .hero-heading {
    max-width: 380px;
  }
  .hero-sub {
    max-width: 260px;
    margin-top: 20px;
  }
  .page-container {
    max-width: 800px;
    padding: 40px 40px;
  }
  .toc {
    margin-top: 20px;
  }
  p { font-size: 17px; }
}
