/* static/css/lp.css */

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

html {
  scroll-behavior: smooth;
}

p {
  text-align: left;
}

/* =========================
   Layout
========================= */
.container {
  font-size: 1.2rem;
  max-width: 70%;
  margin: auto;
  background-color: #ffffff;
  border-radius: 8px;
  position: relative;
  text-align: center;
  padding-bottom: 3.5rem;
}

.body-copy {
  margin-bottom: 3rem;
}

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

.anchor-offset {
  position: relative;
  top: -3rem;
  height: 0;
}

/* =========================
   Typography / Helpers
========================= */
.h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.1rem;
}

.tight-p {
  margin: 0.3em 0;
  line-height: 1.3;
  font-size: 1rem;
}

.subtitle {
  font-size: 1.5rem;
  color: #666;
  margin-top: -2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 300;
}

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

/* 注釈（必要ならHTML側で class="note" を使う想定）
.note {
  font-size: 0.85em;
  color: #666;
  margin-top: 0.3em;
}
*/

/* =========================
   Highlight
========================= */
.highlight-marker {
  display: inline-block;
  font-size: 1.2rem;
  color: #0175d8;
  background: linear-gradient(to bottom, transparent 65%, yellow 50%);
  line-height: 1.5;
  font-weight: bold;
}

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

.highlight-block + p {
  margin-top: 0.3em;
}

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

/* =========================
   Fieldset / Legend
========================= */
fieldset {
  background-color: #f5f5f5;
  border: 0.3rem solid #ccc;
  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;
}

/* 悩み提案セクションの説明文だけ行間を広げる */
.fieldset-cta .heading-wrapper > p {
  line-height: 1.7;
}

.fieldset-nayami {
  background-color: #fff5f5;
  border: 0.3rem solid #ff6b6b;
  padding: 1rem;
  margin-top: 1.5rem;
  border-radius: 1rem;
}

legend.legend-red {
  display: inline-block;
  color: #d62828;
  background: linear-gradient(to bottom, transparent 50%, #ffd6d6 50%);
  font-weight: bold;
  line-height: 1.5;
}

/* =========================
   Table
========================= */
table {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid black;
  padding: 0.5rem;
  font-size: 0.95rem;
}

th {
  background-color: #f2f2f2;
}

.plan-table {
  width: 100%;
  table-layout: fixed;
  word-wrap: break-word;
  font-size: 0.9rem;
}

/* 列ごとに背景色を設定 */
.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;
}

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

.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);
  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 / Buttons
========================= */
.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;
}

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

.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)
========================= */
.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;
}

/* =========================
   Main image
========================= */
.main-image {
  margin: 0;
  padding: 0;
  line-height: 0;
}

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

/* =========================
   Scrolling icons
========================= */
.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;
}

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

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

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

/* =========================
   Info list
========================= */
.info-list {
  text-align: left;
}

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

/* =========================
   Title SVG text (PC / SP)
   ※機能そのまま：PC=2.5rem, <=768=3.5rem, <=480=3.8rem
========================= */
h1.service-title svg .service-title-text {
  font-size: 2.5rem;
}

/* =========================
   Responsive
========================= */
@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);
    gap: 1rem;
  }

  .card-grid .schedule-card {
    width: 100%;
    min-width: auto;
  }

  .plan-table th,
  .plan-table td {
    font-size: 0.9rem;
    word-break: break-word;
  }

  /* タイトル（スマホ寄り） */
  h1.service-title svg .service-title-text {
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  h1.service-title svg .service-title-text {
    font-size: 3.8rem;
  }
}
