/* =========================
RESET
========================= */

html, body{
  margin:0;
  padding:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden; /* ←横スクロール完全防止 */
}

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

img{
  max-width:100%;
  height:auto;
  display:block;
}

/* =========================
BASE
========================= */

body{
  background:#f6f7f8;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    sans-serif;
  line-height:1.9;
  color:#333;
}

/* =========================
LAYOUT（最重要）
========================= */

.container{
  max-width:820px;
  margin:0 auto;
  padding:32px 16px 60px;
  background:#fff;
}

section{
  margin-top:40px;
}

/* =========================
TEXT
========================= */

h1{
  font-size:30px;
  margin:0 0 28px;
  font-weight:700;
}

h2{
  font-size:24px;
  margin:48px 0 16px;
  border-bottom:1px solid #e5e5e5;
  padding-bottom:8px;
}

h3{
  font-size:19px;
  margin:28px 0 12px;
  background:#f3f5f7;
  padding:10px 14px;
  border-radius:6px;
}

p{
  font-size:18px;
  line-height:2;
  margin-bottom:24px;
}

ul{
  padding-left:22px;
  margin-bottom:28px;
}

/* =========================
BUTTON
========================= */

.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:18px 24px;
  background:#000;
  color:#fff !important;
  border-radius:10px;
  font-weight:700;
  font-size:18px;
  text-decoration:none;
  margin:20px auto;
  width:100%;
  max-width:420px;
}

.cta{
  text-align:center;
}

/* =========================
HERO
========================= */

.hero{
  position:relative;
  background:url("/img/paco-trailer-hero.png") center/cover no-repeat;
  padding:120px 20px;
  text-align:center;
  color:#fff;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(rgba(0,0,0,.3),rgba(0,0,0,.1));
}

.hero *{
  position:relative;
  z-index:2;
}

.hero-logo{
  width:160px;
  margin-bottom:24px;
}

.hero h1{
  font-size:42px;
  font-weight:800;
  text-shadow:0 4px 16px rgba(0,0,0,.8);
}

/* =========================
TABLE
========================= */

.compare{
  width:100%;
  border-collapse:collapse;
  margin-top:20px;
}

.compare th,
.compare td{
  border:1px solid #ddd;
  padding:12px;
  text-align:center;
}

.compare th{
  background:#f3f3f3;
}

/* =========================
SIMULATOR
========================= */

.simulator input,
.simulator button{
  width:100%;
}

.simulator input{
  padding:14px;
  border:1px solid #ddd;
  border-radius:8px;
}

.simulator button{
  padding:16px;
  background:#000;
  color:#fff;
  border:none;
  border-radius:10px;
  font-weight:700;
}

/* =========================
共通カード（ここが重要）
========================= */

.card{
  background:#fff; /* ←ボックス消え防止 */
  border:1px solid #e5e5e5;
  padding:16px;
  border-radius:12px;
  text-align:center;
  font-weight:600;
}

/* =========================
GRID（安定版）
========================= */

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  max-width:720px;
  margin:0 auto;
}

/* =========================
MODEL
========================= */

.model-box{
  max-width:720px;
  margin:40px auto;
}

.model-highlight{
  background:#000;
  color:#fff;
  text-align:center;
  font-size:22px;
  font-weight:700;
  padding:18px;
  border-radius:12px;
  margin-bottom:10px;
}

.model-sub{
  text-align:center;
  font-size:12px;
  color:#666;
  margin-bottom:10px;
}

/* =========================
LEARN（ブログ）
========================= */

.learn{
  margin-top:60px;
}

.learn-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:20px;
}

.learn-card{
  display:block;
  padding:20px;
  background:#fff;
  border:2px solid #000;
  border-radius:12px;
  text-decoration:none;
  color:#000;
  transition:.2s;
}

.learn-card:hover{
  background:#f7f7f7;
  transform:translateY(-3px);
}

.learn-title{
  font-size:18px;
  font-weight:700;
}

.learn-desc{
  font-size:14px;
  color:#444;
}

/* =========================
FAQ
========================= */

.faq{
  margin-top:50px;
}

/* =========================
MOBILE
========================= */

@media(max-width:768px){

  .container{
    padding:24px 14px;
  }

  .hero{
    padding:90px 16px;
  }

  .hero h1{
    font-size:28px;
  }

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

}
.index-card{
    display:block;
    background:#fff;
    padding:18px;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
    margin-bottom:14px;
}
@media(max-width:768px){

  .container{
    padding:24px 14px;
  }

  .hero{
    padding:90px 16px;
  }

  .hero h1{
    font-size:28px;
  }

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

  /* ★これ追加（最重要） */
  .index-card{
    display:block;
    background:#fff;
    padding:16px;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    margin-bottom:12px;
  }

}
/* =========================
BLOG CARD（神UI）
========================= */

.index-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:20px;
}

.index-card{
  display:block;
  background:#fff;
  padding:20px;
  border-radius:14px;
  text-decoration:none !important;
  color:#000 !important;
  border:1px solid #eee;
  transition:all .25s ease;
  position:relative;
}

/* ホバー */
.index-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 28px rgba(0,0,0,0.08);
  border-color:#ddd;
}

/* タイトル */
.index-card-title{
  font-size:17px;
  font-weight:700;
  line-height:1.6;
  margin-bottom:12px;
}

/* 日付 */
.index-card-date{
  font-size:13px;
  color:#888;
}

/* 矢印（地味に効く） */
.index-card::after{
  content:"→";
  position:absolute;
  right:16px;
  bottom:16px;
  font-size:14px;
  color:#bbb;
  transition:.2s;
}

.index-card:hover::after{
  right:12px;
  color:#000;
}

/* =========================
MOBILE
========================= */

@media(max-width:768px){

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

}
/* =========================
BACK / PORTAL NAV（完成版）
========================= */

.category-back{
  margin:50px 0 30px;
  padding:20px;
  background:#fafafa;
  border:1px solid #eee;
  border-radius:14px;

  display:flex;
  flex-direction:column;
  gap:16px;
}

/* 上：戻るボタン */
.category-back p{
  margin:0;
}

.category-back p a{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:12px 16px;
  background:#fff;
  border:1px solid #ddd;
  border-radius:10px;

  font-size:14px;
  font-weight:600;
  color:#000;
  text-decoration:none;

  transition:.2s;
}

/* アイコン */
.category-back p a::before{
  content:"←";
  font-size:14px;
  color:#888;
}

/* hover */
.category-back p a:hover{
  background:#f5f5f5;
  transform:translateX(-3px);
}

/* =========================
PORTAL（メインCTA）
========================= */

.portal{
  text-align:center;
}

.portal a{
  display:inline-block;
  padding:16px 26px;
  background:#000;
  color:#fff !important;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  font-size:16px;

  transition:.25s;
}

/* hover */
.portal a:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 26px rgba(0,0,0,0.18);
}

/* =========================
MOBILE
========================= */

@media(max-width:768px){

  .category-back{
    padding:16px;
    gap:12px;
  }

  .category-back p a{
    width:100%;
    justify-content:center;
  }

  .portal a{
    width:100%;
  }

}
/* =========================
FAQ（高級感ver）
========================= */

.faq{
  margin-top:60px;
}

.faq-item{
  border-bottom:1px solid #eee;
  padding:18px 0;
}

.faq-item h3{
  font-size:17px;
  font-weight:700;
  margin-bottom:8px;
}

.faq-item p{
  font-size:15px;
  color:#555;
  margin:0;
}

/* 少しインタラクション */
.faq-item:hover{
  background:#fafafa;
}
/* =========================
SIMULATOR RESULT 強化
========================= */

#result{
  margin-top:30px;
  padding:24px;
  background:#fff;
  border-radius:14px;
  border:1px solid #eee;
  box-shadow:0 8px 24px rgba(0,0,0,0.05);
}

/* タイトル */
#result h3{
  font-size:20px;
  font-weight:700;
  margin-bottom:18px;
}

/* ラベル */
#result p{
  font-size:14px;
  color:#777;
  margin-bottom:6px;
}

/* 数値（ここが重要） */
.cf{
  font-size:28px;
  font-weight:800;
  margin-bottom:18px;
  letter-spacing:1px;
}

/* 判定ボックス */
.judge{
  display:inline-block;
  padding:10px 16px;
  border-radius:10px;
  font-weight:700;
  font-size:14px;
  margin-bottom:20px;
}

/* 色分け（重要） */

/* おすすめ投資（GOOD） */

.judge.good{
  background:#eaf7ee;        /* 薄い安全グリーン */
  color:#1f7a3a;             /* 濃いグリーン文字 */
  border:2px solid #000;     /* 黒枠で締める */
}

.judge.ok{
  background:#f5f5f5;
  color:#333;
}

.judge.warn{
  background:#fff3cd;
  color:#856404;
}

.judge.bad{
  background:#f8d7da;
  color:#721c24;
}

/* CTA調整 */
#result .cta-btn{
  margin-top:10px;
}
