/* ============================================
   明日のために for-tomorrow — 共通スタイル
   カラーテーマ: 落ち着いたブルー系
   ============================================ */

:root {
  --blue-dark:    #1E3A5F;
  --blue-mid:     #2E6DA4;
  --blue-light:   #5B9BD5;
  --blue-pale:    #EAF2FB;
  --blue-border:  #B5D4F4;

  --text-primary:   #1a2e3f;
  --text-secondary: #4a6078;
  --text-muted:     #7a95aa;

  --bg-page:    #f5f8fc;
  --bg-white:   #ffffff;
  --bg-surface: #f0f6fc;

  --accent:     #2E6DA4;
  --accent-hover: #1E3A5F;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 4px rgba(30,58,95,.08);
  --shadow-md: 0 4px 16px rgba(30,58,95,.12);

  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-heading: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;

  --max-width: 860px;
  --content-width: 680px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ---- Header ---- */
.site-header {
  background: var(--blue-dark);
  color: #fff;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: .03em;
}
.site-logo span {
  font-size: .75rem;
  font-weight: 400;
  opacity: .75;
  display: block;
  letter-spacing: .05em;
}
.site-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .875rem;
  margin-left: 24px;
  transition: color .2s;
}
.site-nav a:hover { color: #fff; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1rem;
  opacity: .85;
  max-width: 540px;
  margin: 0 auto 28px;
}
.hero-home {
  padding: 72px 24px 64px;
}
.hero-kicker {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: .85;
  margin-bottom: 14px;
}
.hero-site-title {
  display: block;
  font-size: 3.4rem;
  line-height: 1.1;
  letter-spacing: .04em;
}
.hero-site-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 1.15rem;
  letter-spacing: .18em;
  margin-top: 10px;
  opacity: .9;
}
.hero-lead {
  font-size: 1.08rem;
  line-height: 1.9;
}
.btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}


/* ---- Home signboard hero ---- */
.hero-signboard {
  position: relative;
  min-height: 560px;
  padding: 88px 24px 78px;
  background-image: url("/money/img/hero/home-signboard-final-desktop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #173352;
}
.hero-signboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  pointer-events: none;
}
.hero-signboard-copy {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  margin: 0 auto;
  text-align: center;
}
.hero-signboard .hero-kicker {
  color: #24425f;
  opacity: .92;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.hero-signboard .hero-site-title {
  color: #102f50;
  font-size: 4.4rem;
  line-height: 1.08;
  text-shadow: 0 2px 0 rgba(255,255,255,.9), 0 8px 22px rgba(30,58,95,.14);
}
.hero-signboard .hero-site-sub {
  color: #264762;
  font-size: 1.1rem;
  opacity: .95;
}
.hero-signboard .hero-lead {
  color: #263d54;
  opacity: .95;
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
}
.hero-signboard .btn-primary {
  box-shadow: 0 8px 22px rgba(30,58,95,.18);
}

.hero-signboard .hero-kicker,
.hero-signboard h1,
.hero-signboard .hero-lead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-signboard-copy {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  pointer-events: none;
}
.hero-signboard .btn-primary {
  position: absolute;
  left: 50%;
  top: 430px;
  transform: translateX(-50%);
  pointer-events: auto;
}
.hero-signboard .btn-primary:hover {
  transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 1100px) {
  .hero-signboard .btn-primary {
    top: 410px;
  }
}

@media (max-width: 900px) {
  .hero-signboard .btn-primary {
    top: 390px;
  }
}
/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 56px 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--blue-dark);
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--blue-mid);
  display: inline-block;
}
.section-lead {
  font-size: .9rem;
  color: var(--text-secondary);
  margin: 8px 0 32px;
}

/* ---- Card ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow .2s, transform .2s;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.card p {
  font-size: .83rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Affiliate disclosure ---- */
.affiliate-note {
  background: var(--bg-surface);
  border-left: 3px solid var(--blue-light);
  padding: 10px 16px;
  font-size: .78rem;
  color: var(--text-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

/* ---- Article layout ---- */
.article-wrap {
  max-width: var(--content-width);
  margin: 48px auto;
  padding: 0 24px;
}
.article-header { margin-bottom: 32px; }
.article-header .tag { /* same as card-tag */ }
.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.45;
  color: var(--blue-dark);
  margin: 12px 0;
}
.article-meta {
  font-size: .78rem;
  color: var(--text-muted);
}
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--blue-dark);
  margin: 40px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--blue-mid);
}
.article-body h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 28px 0 8px;
}
.article-body p { margin-bottom: 1.2em; }
.article-body ul, .article-body ol {
  margin: 12px 0 20px 24px;
}
.article-body li { margin-bottom: 6px; }

/* ---- Product box (アフィリエイト商品) ---- */
.product-box {
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-white);
  margin: 24px 0;
}
.product-box img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.product-box .product-info h4 { font-size: .95rem; margin-bottom: 6px; }
.product-box .product-info p { font-size: .82rem; color: var(--text-secondary); margin-bottom: 10px; }
.btn-shop {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  margin-right: 8px;
  transition: opacity .15s;
}
.btn-shop:hover { opacity: .85; }
.btn-amazon { background: #FF9900; color: #111; }
.btn-rakuten { background: #BF0000; color: #fff; }

/* ---- Footer ---- */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.7);
  padding: 40px 24px;
  margin-top: 80px;
  font-size: .82rem;
  text-align: center;
}
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { margin-bottom: 12px; }
.footer-links a { margin: 0 12px; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }


@media (max-width: 1100px) {
  .hero-signboard {
    min-height: 548px;
    padding: 72px 20px 64px;
    background-position: center;
  }
  .hero-signboard-copy {
    width: 100%;
  }
  .hero-signboard .hero-site-title {
    font-size: 3.7rem;
  }
  .hero-signboard .hero-lead {
    max-width: 500px;
    font-size: .96rem;
    line-height: 1.8;
  }
}

@media (max-width: 900px) {
  .hero-signboard-copy {
    width: 100%;
  }
  .hero-signboard .hero-site-title {
    font-size: 3.15rem;
  }
  .hero-signboard .hero-kicker {
    font-size: .88rem;
  }
  .hero-signboard .hero-lead {
    max-width: 440px;
    font-size: .9rem;
  }
}
/* ---- Responsive ---- */
@media (max-width: 600px) {
  .site-nav { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .product-box { flex-direction: column; }
  .hero { padding: 40px 16px; }
  .hero-home { padding: 48px 18px 44px; }
  .hero-site-title { font-size: 2.35rem; }
  .hero-site-sub { font-size: .95rem; }
  .hero-lead { font-size: .98rem; }
}

/* ========================================
   サイト共通ヘッダー
   ======================================== */
.global-header{background:#1e3a5f;width:100%;padding:14px 0;position:sticky;top:0;z-index:1000;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.global-header-inner{max-width:1440px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.global-brand{color:#fff !important;text-decoration:none !important;flex:0 0 auto;min-width:184px}
.global-brand-name{display:block;font-weight:700;font-size:1.22rem;letter-spacing:.04em;line-height:1.25;color:#fff;white-space:nowrap}
.global-brand-sub{display:block;font-size:.72rem;letter-spacing:.16em;font-weight:400;opacity:.85;margin-top:3px;color:#fff;white-space:nowrap}
.global-nav{display:flex;gap:16px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.global-nav a{color:#fff !important;text-decoration:none !important;font-size:.88rem;letter-spacing:.03em;transition:opacity .15s;white-space:nowrap}
.global-nav a:hover{opacity:.75}
.menu-toggle{display:none;background:none;border:none;color:#fff;font-size:1.5rem;cursor:pointer;padding:4px 8px}
/* ========================================
   サイト共通フッター
   ======================================== */
.global-footer{background:#1e3a5f;color:#fff;padding:40px 24px 28px;margin-top:60px;width:100%}
.global-footer-inner{max-width:1200px;margin:0 auto;text-align:center}
.global-footer-nav{display:flex;justify-content:center;gap:30px;flex-wrap:wrap;margin-bottom:22px}
.global-footer-nav a{color:#fff !important;text-decoration:none !important;font-size:.88rem;letter-spacing:.05em;transition:opacity .15s}
.global-footer-nav a:hover{opacity:.75;text-decoration:underline !important}
.global-footer-copyright{font-size:.85rem;letter-spacing:.05em;margin-bottom:8px}
.global-footer-note{font-size:.75rem;opacity:.7;line-height:1.7;max-width:600px;margin:0 auto}
@media(max-width:768px){
  .global-header-inner{padding:0 16px}
  .global-brand{min-width:136px}
  .global-brand-name{font-size:1.05rem}
  .menu-toggle{display:block}
  .global-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#1e3a5f;flex-direction:column;align-items:stretch;padding:12px 0;gap:0;box-shadow:0 4px 12px rgba(0,0,0,.15)}
  .global-nav.is-open{display:flex}
  .global-nav a{padding:12px 24px;border-bottom:1px solid rgba(255,255,255,.1);font-size:.95rem}
  .global-nav a:last-child{border-bottom:none}
  .global-footer{padding:32px 20px 24px}
  .global-footer-nav{gap:16px;margin-bottom:18px}
  .global-footer-nav a{font-size:.82rem}
  .global-footer-copyright{font-size:.8rem}
  .global-footer-note{font-size:.72rem}
}




@media (max-width: 600px) {
  .hero-signboard {
    min-height: 760px;
    padding: 86px 18px 40px;
  background-image: url("/money/img/hero/home-signboard-final-mobile.jpg");
    background-position: center top;
    align-items: flex-start;
  }
  .hero-signboard::before {
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  }
  .hero-signboard-copy {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .hero-signboard .hero-site-title {
    font-size: 2.55rem;
  }
  .hero-signboard .hero-site-sub {
    font-size: .86rem;
  }
  .hero-signboard .hero-lead {
    font-size: .92rem;
    line-height: 1.75;
  }
  .hero-signboard .btn-primary {
    top: 512px;
  }

}

/* ---- Home signboard fixed image override ---- */
.hero-signboard {
  height: 640px;
  min-height: 640px;
  padding: 0;
  background-image: url("/money/img/hero/home-signboard-final-desktop.jpg");
  background-size: auto 640px;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #112f53;
}
.hero-signboard::before {
  display: none;
}
.hero-signboard .btn-primary {
  position: absolute;
  left: 50%;
  top: 460px;
  width: 385px;
  height: 68px;
  padding: 0;
  transform: translateX(-50%);
  background: transparent;
  color: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  pointer-events: auto;
}
.hero-signboard .btn-primary:hover {
  transform: translateX(-50%);
  box-shadow: none;
}
.hero-signboard .btn-primary:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .hero-signboard {
    height: 650px;
    min-height: 650px;
    padding: 0;
    background-image: url("/money/img/hero/home-signboard-final-mobile.jpg");
    background-size: 365px auto;
    background-position: center top;
  }
  .hero-signboard .btn-primary {
    top: 397px;
    width: 224px;
    height: 48px;
  }
}

/* Compact, category-first money-site navigation */
.global-nav{gap:clamp(8px,1vw,14px);flex-wrap:nowrap}
.global-nav a{font-size:.82rem;letter-spacing:.01em}
