/* ========================================
   Global / Reset
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Navbar (lp14 blue-gray theme)
   ======================================== */
.navbar {
  background: rgba(184, 198, 207, 0.92);
  border-bottom: 1px solid rgba(11, 63, 95, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: 40px;
  width: 40px;
  border-radius: 6px;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0b3f5f;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(16, 42, 53, 0.86);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #0b3f5f;
}

/* ========================================
   Old home styles (kept for compatibility)
   ======================================== */
.hero-header {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 50px 20px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  color: #1565c0;
  margin-bottom: 10px;
  font-weight: 900;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.6;
}

/* ========================================
   CTA section (old layout)
   ======================================== */
.cta-section {
  padding: 40px 20px;
  background: white;
  text-align: center;
}

.search-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-box h2 {
  color: #1565c0;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.search-box p {
  margin-bottom: 20px;
  color: #666;
}

.cta-button-large {
  display: inline-block;
  background: linear-gradient(135deg, #00c300 0%, #008500 100%);
  color: white;
  font-weight: 900;
  padding: 16px 40px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  cursor: pointer;
}

.cta-button-large:hover {
  background: linear-gradient(135deg, #008500 0%, #006500 100%);
  transform: translateY(-2px);
}

.cta-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 15px;
}

/* IMPORTANT: prevent oversized images in old CTA */
.cta-section img,
.search-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Features / Cards / Steps (old layout)
   ======================================== */
.features-section {
  padding: 40px 20px;
  background: white;
}

.section-title {
  color: #1565c0;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 800;
}

.features-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
}

.features-list li {
  background: #f2f8ff;
  padding: 14px 18px;
  margin-bottom: 12px;
  border-left: 5px solid #1e88e5;
  border-radius: 6px;
  color: #333;
}

.cards-section {
  padding: 40px 20px;
  background: #f9f9f9;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.feature-card:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  color: #222;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.steps-section {
  padding: 40px 20px;
  background: white;
}

.steps-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
}

.steps-list li {
  background: white;
  padding: 18px 20px;
  margin-bottom: 15px;
  border-left: 5px solid #1e88e5;
  border-radius: 6px;
  color: #333;
}

/* ========================================
   Target (old layout)
   ======================================== */
.target-section {
  padding: 40px 20px;
  background: #f9f9f9;
}

.target-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
}

.target-list li {
  background: #f2f8ff;
  padding: 14px 18px;
  margin-bottom: 12px;
  border-left: 5px solid #1e88e5;
  border-radius: 6px;
  color: #333;
}

/* ========================================
   Blog section (old layout)
   ======================================== */
.blog-section {
  padding: 40px 20px;
  background: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.blog-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.blog-card:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.blog-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}

.blog-category {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 900;
}

.blog-date {
  font-size: 0.85rem;
  color: #999;
}

.blog-title {
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 10px;
  font-weight: 900;
}

.blog-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-title a:hover {
  color: #1565c0;
}

.blog-excerpt {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.read-time {
  font-size: 0.85rem;
  color: #999;
}

.read-more {
  color: #1565c0;
  text-decoration: none;
  font-weight: 800;
}

.read-more:hover {
  color: #0d47a1;
}

.view-all {
  text-align: center;
}

.view-all-button {
  display: inline-block;
  background: #1565c0;
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  transition: all 0.25s ease;
}

.view-all-button:hover {
  background: #0d47a1;
  transform: translateY(-2px);
}

/* ========================================
   Disclaimer (general)
   ======================================== */
.disclaimer-section {
  padding: 20px;
  background: #f5f7fa;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* ========================================
   Fixed LINE Button
   ======================================== */
.fixed-line-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #00c300 0%, #008500 100%);
  color: white;
  font-weight: 900;
  padding: 14px 26px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.25s ease;
}

.fixed-line-btn:hover {
  background: linear-gradient(135deg, #008500 0%, #006500 100%);
  transform: translateY(-2px);
}

/* ========================================
   Footer (lp14 blue-gray theme)
   ======================================== */
.footer {
  background: #0b3f5f;
  color: rgba(234, 244, 255, 0.82);
  padding: 40px 20px 20px;
  margin-top: 40px;
}

.footer .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h3 {
  color: #eaf4ff;
  font-size: 1rem;
  margin: 0 0 12px 0;
  font-weight: 900;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(234, 244, 255, 0.78);
}

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

.footer-section ul li {
  margin-bottom: 8px;
  list-style: none;
}

.footer-section a {
  color: rgba(234, 244, 255, 0.78);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-block;
}

.footer-section a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(234, 244, 255, 0.18);
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom p {
  margin: 0;
  color: rgba(234, 244, 255, 0.7);
}

.footer-bottom a {
  color: rgba(234, 244, 255, 0.78);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.footer-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .navbar .container {
    flex-direction: column;
    gap: 12px;
  }

  .logo-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .cta-button-large {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 0.8rem;
  }

  .fixed-line-btn {
    bottom: 15px;
    right: 15px;
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .search-box {
    padding: 20px;
  }
}

/* ========================================
   LP14 styles (new landing page layout)
   ======================================== */
.lp14 {
  padding: 22px 16px 12px;
  background: #fff;
}

.lp14__wrap {
  max-width: 720px;
  margin: 0 auto;
}

.lp14__title {
  font-size: 22px;
  font-weight: 1000;
  color: #0b3f5f;
  text-align: center;
  margin: 8px 0 14px;
  letter-spacing: 0.4px;
}

/* Fix oversized hero image (your screenshot issue) */
.lp14__hero {
  max-width: 560px;
  margin: 10px auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

.lp14__heroImg {
  width: 100%;
  height: 320px;      /* adjust: 260~360 */
  object-fit: cover;  /* key: crop image, prevent giant full-height image */
  object-position: center;
  display: block;
}

.lp14__blueCard {
  max-width: 560px;
  margin: 14px auto 0;
  background: rgba(11, 63, 95, 0.08);
  border: 1px solid rgba(11, 63, 95, 0.12);
  border-radius: 14px;
  padding: 14px 14px;
  color: rgba(16, 42, 53, 0.92);
  line-height: 1.75;
}

.lp14__blueCard p {
  margin: 10px 0;
}

.lp14__lineBar {
  max-width: 560px;
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #00c300 0%, #008500 100%);
  color: #fff;
  padding: 14px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.lp14__lineBar:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.lp14__lineIcon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  flex: 0 0 18px;
}

.lp14__lineText {
  font-size: 14px;
  line-height: 1.45;
}

.lp14__note {
  max-width: 560px;
  margin: 12px auto 0;
  color: rgba(16, 42, 53, 0.82);
  font-size: 13px;
  line-height: 1.7;
}

.lp14__stats {
  max-width: 560px;
  margin: 14px auto 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 24, 40, 0.10);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.lp14__statRow {
  margin: 8px 0;
  color: rgba(16, 42, 53, 0.92);
  font-weight: 800;
  font-size: 14px;
}

/* ========================================
   Risk / Disclaimer block (LP page)
   ======================================== */
.risk {
  max-width: 560px;
  margin: 16px auto 6px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 24, 40, 0.10);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.risk__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 1000;
  color: #102a35;
  text-align: center;
}

.risk__list {
  margin: 0;
  padding-left: 18px;
  color: rgba(16, 42, 53, 0.92);
  font-size: 13px;
  line-height: 1.7;
}

.risk__list li {
  margin: 6px 0;
}
/* ========================================
   Site-wide theme tokens (lp14 blue-gray)
   Append at END of file
   ======================================== */
:root{
  --brand-900:#0b3f5f;   /* 深藍灰（主色） */
  --brand-700:#1565c0;   /* 亮藍（輔色） */
  --brand-800:#0e4a74;

  --bg:#ffffff;
  --surface:#ffffff;
  --surface-2:#f6f8fb;

  --text:#102a35;
  --muted:rgba(16,42,53,.72);

  --border:rgba(16,24,40,.12);
  --shadow:0 10px 22px rgba(0,0,0,.10);
  --radius:14px;
}

/* Base text + links */
body{ color: var(--text); }
a{ color: var(--brand-700); }
a:hover{ color: var(--brand-900); }

/* Headings: make all pages feel consistent */
h1, h2, h3{
  color: var(--text);
  letter-spacing: .2px;
}
h1{
  font-weight: 1000;
}
h2{
  font-weight: 900;
}

/* Common section backgrounds (avoid random grays on other pages) */
.about-section,
.category-section,
.tag-section,
.blog-list-section,
.blog-post-section,
.learning-section,
.contact-section,
.privacy-section,
.terms-section,
.sitemap-section{
  background: var(--bg) !important;
}

/* Common "card" look for most pages */
.blog-card,
.feature-card,
article,
.container > div[style*="border-radius"],
.container > section[style*="border-radius"]{
  border-radius: 12px;
}

/* Improve blog cards to match lp14 */
.blog-card{
  border: 1px solid var(--border);
  box-shadow: none;
}
.blog-card:hover{
  box-shadow: var(--shadow);
}

/* Category label: harmonize to brand */
.blog-category{
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
}

/* Pagination buttons (blog_list.html inline styles are gray—override softly) */
.blog-list-section a[href^="/blog?page="]{
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
}
.blog-list-section a[href^="/blog?page="]:hover{
  border-color: rgba(11,63,95,.35) !important;
  color: var(--brand-900) !important;
}

/* Buttons: keep LINE CTA consistent */
.cta-button-large{
  border-radius: 999px;
}

/* Make the default "blue" used in many inline styles closer to theme */
[style*="color: #1565c0"]{
  color: var(--brand-700) !important;
}
[style*="background: #1565c0"]{
  background: var(--brand-700) !important;
}
/* ========================================
   Wall Street watermark (white research report style)
   - Keep navbar/footer as-is
   - Add subtle grid + tape + “market glow” watermark
   Append at END of file
   ======================================== */

:root{
  --ws-ink:#0b3f5f;                 /* deep blue-gray */
  --ws-ink-2:#1565c0;               /* accent blue */
  --ws-grid:rgba(11,63,95,.055);    /* very subtle grid */
  --ws-tape:rgba(21,101,192,.085);  /* subtle tape line */
  --ws-tape2:rgba(11,63,95,.075);   /* second tape */
  --ws-gold:rgba(234,179,8,.10);    /* subtle gold */
  --ws-bg:#ffffff;
  --ws-paper:#ffffff;
}

/* White paper base + very subtle top glow */
body{
  background:
    radial-gradient(900px 420px at 20% -140px, rgba(184,198,207,.55) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(700px 360px at 90% -180px, rgba(21,101,192,.10) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, rgba(246,248,251,1) 0%, rgba(255,255,255,1) 55%, rgba(255,255,255,1) 100%);
}

/* Ensure main stays clean; watermark lives per-section (not behind navbar/footer) */
main{
  background: transparent;
}

/* Apply watermark only on content sections */
.about-section,
.category-section,
.tag-section,
.blog-list-section,
.blog-post-section,
.learning-section,
.contact-section,
.privacy-section,
.terms-section,
.sitemap-section,
.lp14,
.hero-header,
.cta-section,
.features-section,
.cards-section,
.steps-section,
.target-section,
.blog-section{
  position: relative;
  isolation: isolate;
  background: transparent !important;
}

/* Wall Street “watermark”: grid + diagonal market tape + tiny gold accents */
.about-section::before,
.category-section::before,
.tag-section::before,
.blog-list-section::before,
.blog-post-section::before,
.learning-section::before,
.contact-section::before,
.privacy-section::before,
.terms-section::before,
.sitemap-section::before,
.lp14::before,
.hero-header::before,
.cta-section::before,
.features-section::before,
.cards-section::before,
.steps-section::before,
.target-section::before,
.blog-section::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.65;

  background:
    /* 1) grid */
    linear-gradient(var(--ws-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ws-grid) 1px, transparent 1px),

    /* 2) “market tape” diagonal bands (very soft) */
    linear-gradient(115deg,
      rgba(21,101,192,0) 0%,
      var(--ws-tape) 18%,
      rgba(21,101,192,0) 34%,
      var(--ws-tape2) 58%,
      rgba(11,63,95,0) 72%,
      rgba(21,101,192,.07) 88%,
      rgba(21,101,192,0) 100%),

    /* 3) subtle gold highlight (finance feel, not flashy) */
    radial-gradient(260px 180px at 12% 18%, var(--ws-gold) 0%, rgba(234,179,8,0) 70%),
    radial-gradient(240px 160px at 88% 26%, rgba(234,179,8,.07) 0%, rgba(234,179,8,0) 72%);

  background-size:
    56px 56px,
    56px 56px,
    100% 100%,
    100% 100%,
    100% 100%;
  background-position:
    center,
    center,
    center,
    center,
    center;
}

/* Keep content readable: cards are “paper” on top of watermark */
.search-box,
.blog-card,
.feature-card,
.lp14__blueCard,
.lp14__stats,
.risk,
article{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(16,24,40,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  backdrop-filter: blur(2px);
}

/* Optional: unify headings to deep ink for research tone */
.section-title,
.lp14__title,
.hero-title{
  color: var(--ws-ink);
}

/* Optional: make the hero gradient slightly more “research” */
.hero-header{
  background: transparent !important;
}
/* ========================================
   Wall Street watermark - intensity 3 (stronger)
   Append at END of file to override previous settings
   ======================================== */
:root{
  --ws-grid:rgba(11,63,95,.085);    /* was .055 */
  --ws-tape:rgba(21,101,192,.125);  /* was .085 */
  --ws-tape2:rgba(11,63,95,.11);    /* was .075 */
  --ws-gold:rgba(234,179,8,.14);    /* was .10 */
}

.about-section::before,
.category-section::before,
.tag-section::before,
.blog-list-section::before,
.blog-post-section::before,
.learning-section::before,
.contact-section::before,
.privacy-section::before,
.terms-section::before,
.sitemap-section::before,
.lp14::before,
.hero-header::before,
.cta-section::before,
.features-section::before,
.cards-section::before,
.steps-section::before,
.target-section::before,
.blog-section::before{
  opacity:.88; /* was .65 */
}

/* Keep readability: slightly strengthen card edge so text stays crisp */
.search-box,
.blog-card,
.feature-card,
.lp14__blueCard,
.lp14__stats,
.risk,
article{
  border: 1px solid rgba(16,24,40,.12);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}
/* LINE CTA: center text in the bar */
.lp14__lineBar {
  display: flex;
  align-items: center;        /* 垂直置中 */
  justify-content: center;    /* 水平置中（以整條按鈕為基準） */
  gap: 12px;                  /* icon 與文字間距 */
  text-align: center;
  width: 100%;
}

/* 文字本身置中顯示 */
.lp14__lineText {
  display: block;
  text-align: center;
}

/* 如果 icon 用的是背景圖/固定寬度，避免它把文字推歪 */
.lp14__lineIcon {
  flex: 0 0 auto;
}