  /* static/css/lp.css */

  html,body {
    margin: 0;
    padding: 0;
    padding-top: 2rem;
    width: 100%;
    height: 100%;
    font-family: 'M PLUS 1p', sans-serif;
  }

  html {
    scroll-behavior: smooth;
}
  .container {
    font-size: 1.2rem;
    max-width: 70%;
    margin: auto;
    background-color: #ffffff;
    border-radius: 8px;
    position: relative; /* positionをrelativeに設定します */
    text-align: center; /* 子要素のインライン要素を中央に揃える */
    padding-bottom: 3.5rem;
    /* containerの高さは必要に応じて調整してくださ */
    
  }

.h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.1rem;
}

p {
    text-align: left;
}

.tight-p {
  margin: 0.3em 0;
  line-height: 1.3;  /* デフォルトの1.6より狭い */
  font-size: 1rem;  /* 必要に応じて微調整 */
}

.subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-top: -2rem;  /* タイトルとの距離調整（任意） */
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 300; /* ちょっと軽めの書体にすると上品 */
  }
  
  .highlight-marker {
    display: inline-block;
    font-size: 1.2rem;
    color: #0175d8; /* 青文字 */
    background: linear-gradient(to bottom, transparent 50%, yellow 50%);
    line-height: 1.5;
    font-weight: bold;
  }

.highlight-block {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.highlight-block + .tight-p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}


  .heading-wrapper {
    text-align: left;
  }

.body-copy {
    margin-bottom: 3rem;  /* 下に32pxのスペース（お好みで調整） */
}

table {
  width: 100%;
  margin-left: auto;  /* 左のマージンを自動に */
  margin-right: auto; /* 右のマージンを自動に */
  border-collapse: collapse; /* 隣接する罫線を1本にする */
  font-size: 0.95rem; /* 全体のフォントサイズをremで統一 */
}

th, td {
  border: 1px solid black; /* 罫線のスタイル */
  padding: 0.5rem; /* remに変更 */
  font-size: 0.95rem; /* remに変更 */
}

th {
  background-color: #f2f2f2; /* 見出しの背景色 */
}

.plan-table {
  width: 100%;
  table-layout: fixed;
  word-wrap: break-word;
  font-size: 0.9rem; /* remで少し小さく */
}

/* 列ごとに背景色を設定 */
.plan-table td:nth-child(2),
.plan-table th:nth-child(2) {
  background-color: #e6ffe6;  /* ライトグリーン */
}

.plan-table td:nth-child(3),
.plan-table th:nth-child(3) {
  background-color: #e6f7ff;  /* ライトブルー */
}

.plan-table td:nth-child(4),
.plan-table th:nth-child(4) {
  background-color: #fffbe6;  /* 薄いイエロー */
}

.plan-table td:nth-child(5),
.plan-table th:nth-child(5) {
  background-color: #fce4ec;  /* 薄いピンク */
}

legend.legend-red {
  display: inline-block; /* 背景マーカーを有効にするため */
  color: #d62828;        /* 濃い赤の文字色 */
  background: linear-gradient(
    to bottom,
    transparent 50%,
    #ffd6d6 50% );
  font-weight: bold;
  line-height: 1.5;
}


fieldset {
    background-color: #f5f5f5; /* 明るいグレー背景 */
    border: 0.3rem solid #ccc;   /* 枠線もグレー系 */
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 1rem;
}

.fieldset-nayami {
    background-color: #fff5f5;  /* 明るい赤系の背景 */
    border: 0.3rem solid #ff6b6b;  /* やや鮮やかな赤い枠線 */
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 1rem;
}


.fieldset-cta {
    background-color: #fff5f5;  /* 明るい赤系の背景 */
    border: 0.3rem solid #ff6b6b;  /* やや鮮やかな赤い枠線 */
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 1rem;
}

/* PCでは2列、スマホでは1列*/
.schedule-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
  }

    .schedule-card {
    background-color: #f9f9ff;
    border: 0.1rem solid #ddd;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 0; /* ← ここ修正 */
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.05);
    text-align: left;
    flex: 1 1 calc(50% - 1rem);
    box-sizing: border-box;
    }
 
  .schedule-card h3 {
    margin-top: 0;
    color: #013a84;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .schedule-card p {
    margin: 0.2rem 0;
    font-size: 1rem;
  }
  
  .schedule-card .arrow {
    font-size: 1.5rem;
    text-align: left;
    margin: -0.3rem 0;
    color: #888;
  }
  
  .schedule-card .result {
    font-weight: bold;
    color: #0175d8;
    font-size: 1.2rem;
  }
  
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

.card-grid .schedule-card {
  flex: 1 1 calc(25% - 1rem);  /* PCで4列 */
  box-sizing: border-box;
  min-width: 0;
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
  border-radius: 0.5rem;
}


.cta-button {
    display: inline-block;
    background-color: #ff6b6b;
    color: #fff;
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.privacy-button {
    display: inline-block;
    background-color: #a2a2a2;
    color: #fff;
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.schedule-text-image-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  align-items: flex-end;
}

.schedule-text {
  flex: 1;
}

.schedule-image img {
  max-width: 8rem;
  height: auto;
}

.schedule-intro {
  text-align: left;
  margin-bottom: 1rem;
}

.schedule-content-two-column {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.schedule-result-text {
  flex: 1;
}

.anchor-offset {
    position: relative;
    top: -3rem;       /* ← ナビの高さに応じて調整（例：100px） */
    height: 0;
}

.cta-button:hover {
    background-color: #ff4d4f;
}

  .main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.main-image {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.scroll-row {
    height: 3rem;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.scroll-row {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    height: 3rem;
    background-color: #fff;
    position: relative;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.scroll-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-sync 15s linear infinite;
    animation-delay: 0s;
}

.scroll-track.reverse {
    animation-name: scroll-sync-reverse;
    animation-delay: 0s;
}

.info-list {
  text-align: left;
}

.info-list p {
  margin: 0.3rem 0;
}


  .wrap-url {
    word-break: break-all;
  }

@keyframes scroll-sync {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes scroll-sync-reverse {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  .container {
    max-width: 90%;
  }

  .schedule-card {
    flex: 1 1 100%;
  }

  .schedule-content-two-column {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-image img {
    max-width: 6rem;
    height: auto;
  }
  .card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2カラム固定 */
    gap: 1rem;
  }

  .card-grid .schedule-card {
    width: 100%;        /* gridに合わせる */
    min-width: auto;    /* 不要な制限を解除 */
  }
  .plan-table th,
  .plan-table td {
    font-size: 0.9rem;
    word-break: break-word;
  }
}

.phone-icon {
    display: inline-block;
    width: 2rem;
    height: 3rem;
    margin: 0 0.5rem;
}