
/* ============================================================
   index.html ページ独自CSS
   ============================================================ */

/* --- ヒーローセクション --- */
.hero {
  background: linear-gradient(135deg, #0C447C 0%, #185FA5 55%, #378ADD 100%);
  padding: 36px 20px 32px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/fiib/images/building_hero.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(180, 80, 10, 0.82) 0%,
    rgba(210, 110, 20, 0.72) 40%,
    rgba(235, 150, 60, 0.50) 70%,
    rgba(220, 120, 30, 0.30) 100%
  );
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 32px 20px 28px;
  max-width: 600px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 3px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.hero h2 {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 12px;
  letter-spacing: .02em;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.hero p {
  font-size: 13px;
  color: rgba(255,255,255,.92);
  line-height: 1.85;
  max-width: 520px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-stat {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 8px 16px;
  text-align: center;
  backdrop-filter: blur(2px);
}
.hero-stat .num {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero-stat .num span { font-size: 13px; font-weight: 700; }
.hero-stat .lbl {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.82);
  margin-top: 3px;
}
 
/* --- お知らせ --- */
.news-section { margin-bottom: 28px; }
.news-box {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
}
.news-box-header {
  background: var(--or-d);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
/* 4行ぶんの高さで固定、5件目以降はスクロール */
.news-list {
  list-style: none;
  padding: 0;
  max-height: 215px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--or-tint) transparent;
}
.news-list::-webkit-scrollbar { width: 6px; }
.news-list::-webkit-scrollbar-track { background: transparent; }
.news-list::-webkit-scrollbar-thumb { background: var(--or-tint); border-radius: 3px; }
.news-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background .15s;
}
.news-list li:last-child { border-bottom: none; }
.news-list li:hover { background: var(--or-pale); }
/* スクロールを促すグラデーション */
.news-scroll-hint {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 5px 16px;
  background: linear-gradient(to bottom, var(--or-pale), var(--white));
  border-top: 1px solid var(--border);
}
.news-date { color: var(--muted); font-size: 12px; white-space: nowrap; flex-shrink: 0; min-width: 78px; }
.news-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
  white-space: nowrap; flex-shrink: 0;
}
.tag-imp { background: #fff0e0; color: #b94040; border: 1px solid #f5b8b8; }
.tag-cap { background: #fff0e6; color: #c96a24; border: 1px solid #f5c9a0; }
.tag-inf { background: #f0f5ff; color: #3054b4; border: 1px solid #b3c8f0; }
.tag-res { background: #eaf5ea; color: #2a7a2a; border: 1px solid #b3e0b3; }
.news-body { color: var(--text); line-height: 1.6; flex: 1; }
.news-body a { color: var(--or); }
 
/* --- クイックアクセス --- */
.quick-access {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.qa-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  text-align: center;
  transition: all .18s;
  color: var(--text);
  text-decoration: none;
}
.qa-card:hover {
  border-color: var(--or);
  background: var(--or-pale);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
  text-decoration: none;
  color: var(--or-d);
}
.qa-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--or-tint);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .18s;
}
.qa-icon svg { width: 24px; height: 24px; fill: var(--or-d); transition: fill .18s; }
.qa-card:hover .qa-icon { background: var(--or); }
.qa-card:hover .qa-icon svg { fill: #fff; }
.qa-label { font-size: 12px; font-weight: 700; line-height: 1.4; color: inherit; }
.qa-sub { font-size: 10px; color: var(--muted); line-height: 1.3; }
 
/* --- 特徴カード --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.feature-card .fi {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--or);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-card .fi svg { width: 20px; height: 20px; fill: #fff; }
.feature-card h4 { font-size: 13px; font-weight: 800; color: var(--or-d); margin-bottom: 4px; }
.feature-card p { font-size: 12px; color: var(--muted); line-height: 1.65; }
 
/* --- ピックアップバナー --- */
.pickup-banner {
  background: linear-gradient(135deg, var(--or-d), var(--brown));
  border-radius: var(--r);
  padding: 18px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.pickup-banner .pb-text { flex: 1; min-width: 200px; }
.pickup-banner h3 { font-size: 15px; font-weight: 900; color: #fff; margin-bottom: 6px; line-height: 1.4; }
.pickup-banner p { font-size: 12px; color: rgba(255,255,255,.85); line-height: 1.65; }
.pickup-banner .pb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--or-d);
  font-size: 13px; font-weight: 800;
  padding: 10px 20px; border-radius: 6px;
  transition: all .15s; white-space: nowrap; text-decoration: none; flex-shrink: 0;
}
.pickup-banner .pb-btn:hover { background: var(--or-pale); text-decoration: none; }
 
/* --- お問い合わせ --- */
.contact-box {
  background: linear-gradient(135deg, var(--or-d), var(--brown));
  color: #ffe8d5; border-radius: var(--r);
  padding: 18px 20px; margin-top: 4px; margin-bottom: 10px;
}
.contact-box h2 {
  font-size: 14px; font-weight: 800; color: #fff;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.contact-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.contact-table th { width: 80px; text-align: left; color: #ffd5b0; font-weight: 700; padding: 4px 0; vertical-align: top; }
.contact-table td { padding: 4px 0; line-height: 1.7; }
.contact-table a { color: #ffd5b0; }
.contact-table a:hover { color: #fff; }
 
#pagetop { text-align: right; margin-top: 14px; }
#pagetop a {
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--border); padding: 5px 14px; border-radius: 20px; transition: all .2s;
}
#pagetop a:hover { color: var(--or); border-color: var(--or); text-decoration: none; }
 
@media (max-width: 720px) {
  .hero { min-height: 220px; }
  .hero h2 { font-size: 16px; }
  .quick-access { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .qa-icon { width: 36px; height: 36px; }
  .qa-icon svg { width: 20px; height: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pickup-banner { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .quick-access { grid-template-columns: repeat(2, 1fr); }
}