/* ================================
   お金ラボ — サイト共通スタイル
   Header / Footer / Typography / Info Pages
================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: #1e293b;
  background: #f8fafc;
  font-feature-settings: "palt";
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #1e40af; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ============ SITE HEADER ============ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none !important; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center;
  background: #1e293b; color: #f97316;
  font-weight: 900; font-size: 18px;
}
.brand-name { font-weight: 900; font-size: 16px; color: #1e293b; letter-spacing: 0.02em; }
.header-tag { font-size: 11px; color: #64748b; }
@media (max-width: 480px) { .header-tag { display: none; } }

.pr-bar {
  background: #f1f5f9; border-bottom: 1px solid #e2e8f0;
  font-size: 11px; color: #64748b; text-align: center; padding: 6px 0;
}

/* ============ INFO PAGE ============ */
.info-page { padding: 32px 0 64px; }
.info-page > .wrap {
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
@media (max-width: 480px) {
  .info-page > .wrap { padding: 24px 18px; border-radius: 0; box-shadow: none; }
}

.page-title {
  font-size: 28px; line-height: 1.4; font-weight: 900;
  color: #0f172a; margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.page-sub {
  margin: 0 0 28px; font-size: 13px; color: #64748b;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}
@media (max-width: 480px) { .page-title { font-size: 24px; } }

.info-h2 {
  font-size: 19px; font-weight: 900; line-height: 1.5;
  color: #0f172a;
  padding: 8px 0 8px 14px;
  border-left: 5px solid #f97316;
  margin: 32px 0 14px;
}
.info-h3 {
  font-size: 15px; font-weight: 700;
  color: #0f172a;
  margin: 20px 0 8px;
}
.info-page p { margin: 0 0 14px; font-size: 15px; }
.info-page ul, .info-page ol { padding-left: 22px; margin: 0 0 16px; }
.info-page li { margin-bottom: 6px; font-size: 15px; }
.info-page strong { color: #0f172a; font-weight: 700; }

/* ============ DEFINITION TABLE ============ */
.kv-table {
  width: 100%; border-collapse: collapse;
  margin: 14px 0 24px;
  font-size: 14px;
}
.kv-table th, .kv-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.kv-table th {
  background: #f8fafc;
  font-weight: 700; color: #475569;
  white-space: nowrap; width: 30%;
}
@media (max-width: 520px) {
  .kv-table, .kv-table tbody, .kv-table tr, .kv-table th, .kv-table td {
    display: block; width: 100%;
  }
  .kv-table th { padding: 10px 14px 4px; border-bottom: none; background: transparent; color: #64748b; font-size: 12px; }
  .kv-table td { padding: 0 14px 12px; border-bottom: 1px solid #e2e8f0; }
}

/* ============ NOTE BOX ============ */
.note-box {
  padding: 16px 18px; margin: 18px 0;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; color: #475569;
}
.note-box.warn {
  background: #fef3c7; border-color: #fde68a; color: #78350f;
}

/* ============ CONTACT FORM ============ */
.contact-form { display: flex; flex-direction: column; gap: 18px; margin: 20px 0 12px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 13px; font-weight: 700; color: #334155;
}
.form-row label .req {
  display: inline-block; margin-left: 6px;
  padding: 1px 6px; border-radius: 3px;
  background: #fee2e2; color: #b91c1c;
  font-size: 10px; font-weight: 700;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px;
  border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 15px; font-family: inherit;
  background: #fff; color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: #06C755;
  box-shadow: 0 0 0 3px rgba(6,199,85,0.15);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row .hint { font-size: 12px; color: #64748b; }

.form-submit {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px;
  background: linear-gradient(180deg, #06C755 0%, #05B04B 100%);
  color: #fff;
  border: none; border-radius: 999px;
  font-weight: 900; font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(6,199,85,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  align-self: center; min-width: 200px;
}
.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(6,199,85,0.45);
}

/* ============ LINE CTA ON INFO PAGES ============ */
.line-cta {
  margin: 32px 0 0;
  padding: 24px 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  text-align: center;
}
.line-cta p {
  margin: 0 0 14px; font-size: 14px; font-weight: 700; color: #0f172a;
}
.line-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px 14px 52px;
  background: linear-gradient(180deg, #06C755 0%, #05B04B 100%);
  color: #fff !important; text-decoration: none !important;
  border-radius: 999px;
  font-weight: 900; font-size: 15px;
  box-shadow: 0 6px 16px rgba(6,199,85,0.4);
  position: relative; overflow: hidden;
  animation: line-btn-bounce 2.6s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.line-btn::before {
  content: "";
  position: absolute;
  left: 18px; top: 50%;
  width: 22px; height: 22px;
  transform: translateY(-50%);
  background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3C6.477 3 2 6.693 2 11.25c0 2.932 1.858 5.5 4.682 6.953-.206.798-.748 2.87-.855 3.316-.134.548.2.54.422.393.173-.115 2.764-1.886 3.881-2.649.61.09 1.237.137 1.87.137 5.523 0 10-3.694 10-8.25C22 6.693 17.523 3 12 3z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3C6.477 3 2 6.693 2 11.25c0 2.932 1.858 5.5 4.682 6.953-.206.798-.748 2.87-.855 3.316-.134.548.2.54.422.393.173-.115 2.764-1.886 3.881-2.649.61.09 1.237.137 1.87.137 5.523 0 10-3.694 10-8.25C22 6.693 17.523 3 12 3z' fill='black'/></svg>") center/contain no-repeat;
}
.line-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: line-btn-shine 3.4s ease-in-out infinite;
}
.line-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(6,199,85,0.5);
  animation-play-state: paused;
}
@keyframes line-btn-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  55% { transform: translateY(0); }
  70% { transform: translateY(-2px); }
  85% { transform: translateY(0); }
}
@keyframes line-btn-shine {
  0%   { left: -80%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}
@media (prefers-reduced-motion: reduce) {
  .line-btn { animation: none; }
  .line-btn::after { animation: none; }
  .form-submit { transition: none; }
}

/* ============ SITE FOOTER ============ */
.site-footer {
  background: #0f172a; color: #cbd5e1;
  padding: 32px 0; text-align: center;
}
.footer-brand {
  margin: 0 0 12px; font-weight: 900; color: #fff; font-size: 14px;
}
.footer-nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 18px;
  font-size: 12px; margin-bottom: 16px;
}
.footer-nav a { color: #cbd5e1; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-copy { margin: 0; font-size: 11px; color: #64748b; }
