/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: Child theme for basepoint.space
Author: JIJI Studio
Version: 1.5.0
*/

/* ===================================================
   basepoint.space カスタムデザイン
   =================================================== */

html {
  scroll-behavior: smooth;
}

body {
  background-color: #fcfbf9;
  color: #334155;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* ===================================================
   透過ヘッダー（トップページ専用：夜空の上にオーバーレイ）
   =================================================== */
.home #site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  z-index: 999;
  padding: 22px 0 !important;
}

/* ロゴ文字を白文字にし、夜空に美しく浮かび上がらせる */
.home #site-header .site-header-logo a {
  color: #ffffff !important;
  text-decoration: none !important;
  letter-spacing: 2.5px;
  font-weight: 700;
  font-size: 1.45rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ロゴの前に小さなシンボル（羅針盤）を配置 */
.home #site-header .site-header-logo a::before {
  content: "🧭";
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* ヘッダー全体を左右均等に配置 */
.home #site-header-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* 右側に静かな基地のワンポイント刻印（右側の空白を解消） */
.home #site-header-container::after {
  content: "✦ A Quiet Web Base";
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ログイン時のWordPress管理バーによるズレ防止 */
.admin-bar.home #site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar.home #site-header {
    top: 46px;
  }
}


.bp-front-page-wrapper {
  width: 100%;
  padding-bottom: 70px;
}

/* カバーブロックの角丸と影 */
.wp-block-cover {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

/* ヒーローセクション（グループブロック版：安定・ノーコード編集対応） */
.bp-hero-section {
  position: relative;
  background-image: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.75)), url('https://basepoint.space/wp-content/uploads/2026/09/basepoint_eyecatch.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
}

.bp-hero-section h1 {
  color: #ffffff !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  border: none !important;
}

.bp-hero-section p {
  color: #e2e8f0 !important;
}

.bp-hero-section .wp-block-button__link {
  transition: all 0.25s ease;
}

/* ヒーロー白カード（Vektor公式パターン装飾） */
.bp-hero-card {
  border-radius: 18px !important;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.1) !important;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}




.bp-badge {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(194, 155, 98, 0.3);
  color: #f3d7ab;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
  font-weight: 600;
}

/* セクション見出し */
.bp-section-header {
  text-align: center;
  margin-bottom: 35px;
}

.bp-section-header .bp-sub {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #c29b62;
  display: block;
  margin-bottom: 6px;
}

.bp-section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  border: none !important;
  margin: 0;
}

/* プロダクトグリッド */
.bp-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 70px;
}

/* プロダクトカード */
.bp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.bp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
}

.bp-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bp-card-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
  line-height: 1;
}

.bp-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  border: none !important;
}

.bp-card-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: #c29b62;
  margin: 0 0 18px 0;
}

.bp-card-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #64748b;
  margin: 0 0 24px 0;
}

.bp-card-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 32px 0 !important;
  font-size: 0.88rem;
  color: #475569;
}

.bp-card-features li {
  padding: 8px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.bp-btn-wrapper {
  margin-top: auto;
}

.bp-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.bp-btn-primary {
  background-color: #1e293b;
  color: #ffffff !important;
}

.bp-btn-primary:hover {
  background-color: #c29b62;
  color: #ffffff !important;
}

/* ===================================================
   最新の投稿ブロック（4列グリッド最適化）
   =================================================== */
.bp-news-section {
  max-width: 1120px;
  margin: 0 auto 70px auto;
  padding: 0 20px;
}

/* 4列表示（PC） */
ul.wp-block-latest-posts.is-grid.columns-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  padding: 0 !important;
  list-style: none !important;
}

/* 3列表示（設定時） */
ul.wp-block-latest-posts.is-grid.columns-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  padding: 0 !important;
  list-style: none !important;
}

/* 投稿カード */
ul.wp-block-latest-posts.is-grid li {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 0 16px 0 !important;
  width: 100% !important;
}

ul.wp-block-latest-posts.is-grid li:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 20px -6px rgba(0, 0, 0, 0.09) !important;
}

/* アイキャッチ画像 */
.wp-block-latest-posts__featured-image {
  width: 100% !important;
  margin: 0 0 12px 0 !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: #1e293b !important;
}

.wp-block-latest-posts__featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

ul.wp-block-latest-posts.is-grid li:hover .wp-block-latest-posts__featured-image img {
  transform: scale(1.04) !important;
}

/* 記事タイトルリンク */
a.wp-block-latest-posts__post-title {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  line-height: 1.45 !important;
  padding: 0 14px !important;
  margin-bottom: 6px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: color 0.2s ease !important;
}

a.wp-block-latest-posts__post-title:hover {
  color: #c29b62 !important;
}

/* 投稿日 */
time.wp-block-latest-posts__post-date {
  font-size: 0.72rem !important;
  color: #94a3b8 !important;
  padding: 0 14px !important;
  margin-bottom: 6px !important;
}

/* 抜粋文の調整 */
.wp-block-latest-posts__post-excerpt {
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
  color: #64748b !important;
  padding: 0 14px !important;
  margin-top: 4px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* note バナー枠 */
.bp-note-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  padding: 44px 30px;
  text-align: center;
}

.bp-note-content {
  max-width: 650px;
  margin: 0 auto;
}

.bp-note-badge {
  background-color: #2cb696;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 14px;
}

.bp-note-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
  border: none !important;
}

.bp-note-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #64748b;
  margin: 0 0 26px 0;
}

.bp-btn-note {
  background-color: #2cb696;
  color: #ffffff !important;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(44, 182, 150, 0.25);
}

.bp-btn-note:hover {
  background-color: #23947a;
}

/* ---------------------------------------------------
   個別記事（投稿）ページの1カラム化・ノイズレス化
   --------------------------------------------------- */
.single .site-body-container {
  max-width: 900px !important;
  margin: 0 auto !important;
  display: block !important;
}

.single .main-section {
  width: 100% !important;
  max-width: 900px !important;
  float: none !important;
  margin: 0 auto 50px auto !important;
  background: #ffffff;
  padding: 45px 40px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.single .sub-section,
.single .side-section,
.single aside.sidebar,
.single .sidebar {
  display: none !important;
}

#comments,
.comments-area,
.comment-respond,
.pingback-list {
  display: none !important;
}

.single .entry-header img,
.single .post-thumbnail img {
  border-radius: 12px;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin-bottom: 25px;
}

.single .entry-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 20px;
}

.single .entry-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #334155;
}

.single .entry-body p {
  margin-bottom: 1.6em;
}

/* レスポンシブ対応（お知らせ一覧グリッド & 個別記事） */
/* タブレット（1024px以下）：1行2列表示 */
@media (max-width: 1024px) {
  ul.wp-block-latest-posts.is-grid,
  ul.wp-block-latest-posts.is-grid.columns-3,
  ul.wp-block-latest-posts.is-grid.columns-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

/* 小型タブレット・個別記事調整（768px以下） */
@media (max-width: 768px) {
  .single .main-section {
    padding: 25px 18px;
    border-radius: 10px;
  }
  .single .entry-title {
    font-size: 1.5rem;
  }
}

/* スマートフォン（640px以下）：1行1列表示で読みやすく最適化 */
@media (max-width: 640px) {
  .bp-news-section {
    padding: 0 16px;
    margin-bottom: 50px;
  }
  ul.wp-block-latest-posts.is-grid,
  ul.wp-block-latest-posts.is-grid.columns-3,
  ul.wp-block-latest-posts.is-grid.columns-4 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* スマホでのカード内余白とフォントの視認性向上 */
  a.wp-block-latest-posts__post-title {
    font-size: 1.02rem !important;
    line-height: 1.5 !important;
    -webkit-line-clamp: 3 !important;
    padding: 0 16px !important;
  }
  time.wp-block-latest-posts__post-date {
    font-size: 0.78rem !important;
    padding: 0 16px !important;
  }
  .wp-block-latest-posts__post-excerpt {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    padding: 0 16px !important;
  }
}

/* ---------------------------------------------------
   投稿記事のメタ情報（日付・更新日・投稿者）の非表示
   --------------------------------------------------- */
.single .entry-meta,
.archive .entry-meta {
  display: none !important;
}

.single .vk-post-author,
.single .post-author,
.single .vcard.author-info {
  display: none !important;
}

