/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/
/* サイト全体上下の余白を無くす */
html, body {
margin: 0 !important;
padding: 0 !important;
}

html {
margin-top: 0 !important;
}

.site-body{
margin: 0 !important;
padding: 0 !important;
}

/* コピーライト非表示 */
.site-footer .site-footer-copyright p:nth-of-type(2) {
display: none !important;
}

/* フェードイン + スライド */	
.fade-in {
opacity: 0;
transform: translateY(25px);
transition: all 0.8s ease;
}

.fade-in.show {
opacity: 1;
transform: translateY(0);
}

@keyframes fadeSlideIn {	
0% {	
opacity: 0;	
transform: translateY(-60px);	
}	
100% {	
opacity: 1;	
transform: translateY(0);	
}	
}	

/* MP4動画埋め込み */
.hero-video-wrap {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: #fff;
  text-align: center;
	  /* コンテンツ幅制限を突破して全幅化 */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw; /* ビューポート横幅いっぱい */
  height: auto;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: fill; /* 必要に応じて調整 */
  z-index: 1;
}

/* フォールバック画像 */
.bg-fallback {
  background-image: url('/images/fallback.jpg');
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* デフォルトはPC動画表示、スマホ動画非表示 */
.bg-video-mobile {
  display: none;
}

/* スマホ用切り替え */
@media (max-width: 768px) {
  .bg-video-pc {
    display: none;
  }
  .bg-video-mobile {
   display: block;
	position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  }
}

/* テキストアニメーション */
.hero-content {
  position: relative;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: #fff;
}

.hero-content h1,
.hero-content p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}

.hero-content h1 { animation-delay: 0.3s; }
.hero-content p { animation-delay: 0.8s; }

.hero-btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 1.2s;
  background: #e63946;
  color: #fff;
  padding: 10px 20px;
  display: inline-block;
  border-radius: 5px;
  text-decoration: none;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 「品川をアップデート」アニメーション */
.hero-content p {
	font-size:1.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ff4d4d, #ffd700, #4dff88, #4d94ff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 5s ease infinite;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards, gradientMove 8s ease infinite;
  animation-delay: 0.8s;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* お知らせフィルターボタン */
.news-filter {
    margin-bottom: 20px;
    text-align: center;
}
.news-filter button {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    margin: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}
.news-filter button:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
.news-filter button.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ニュース一覧（カード型） */
.news-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.news-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.news-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}
.news-title {
    font-size: 16px;
    margin: 0;
}
.news-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}
.news-title a:hover {
    color: #0073aa;
}
.news-more-link {
    grid-column: 1/-1;
    text-align: center;
    margin-top: 10px;
}
.news-more-link a {
    display: inline-block;
    padding: 8px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: background 0.3s ease;
}
.news-more-link a:hover {
    background: #005b87;
}

/* カスタム投稿タイプ「お知らせ」の一覧ページでアイキャッチ画像を非表示にする */
.post-type-news .vk_post_imgOuter {
    display: none;
}

/* 議員紹介 */
.member-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.member-item {
  width: calc(25% - 20px);
  text-align: center;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.member-item img {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.5s ease;
  transform-origin: center center;
}
.member-item img:hover {
  transform: scale(1.08) translateY(-5px);
  opacity: 0.90;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}


@media (max-width: 768px) {
  .member-item {
    width: calc(50% - 20px);
  }
}

.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  overflow-y: auto;
}
.modal-content {
  background: #fff;
  max-width: 700px;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  animation: fadeInUp 0.3s ease;
}
.close-modal {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* YouTubeサムネイル */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9比率 */
  margin-bottom: 20px;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
.video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}
.video-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.play-button {
  position: absolute;
  width: 68px;
  height: 48px;
  background: rgba(0,0,0,0.6);
  border-radius: 10px;
}
.play-button::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-40%, -50%);
  width: 0; height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* 全体フォームレイアウト */
.wpcf7 form {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  color: #333;
}

/* 各フィールドの余白 */
.form-group {
  margin-bottom: 1.5rem;
}

/* ラベル */
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* 必須マーク */
.required-note {
  color: #d9534f;
  font-size: 0.9em;
  margin-left: 0.5em;
}

/* テキスト・メール・電話・テキストエリア共通 */
input.form-control,
textarea.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s;
}

input.form-control:focus,
textarea.form-control:focus {
  border-color: #007bff;
  outline: none;
}

/* テキストエリア特化 */
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ラジオボタン */
.form-radio {
  display: block;
  margin-top: 0.5rem;
}
.form-radio input {
  margin-right: 0.5em;
}
.form-radio label {
  display: block;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

/* 電話番号欄（プレースホルダ対策） */
input::placeholder,
textarea::placeholder {
  color: #aaa;
}

/* 注意書き文 */
.wpcf7 form > p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

/* 確認チェック */
.form-confirmation {
  margin: 1.5rem 0;
}
.required-confirmation {
  font-weight: normal;
  margin-left: 0.5em;
}

/* 送信ボタン */
.btn-submit {
  background-color: #007bff;
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn-submit:hover {
  background-color: #0056b3;
}

/* LP用固定ページだけ、タイトル・パンくず・ヘッダーを非表示 */
.page-id-216 .page-header,
.page-id-216 .breadcrumb,
.page-id-216 .page-header-title,
.page-id-216 header.site-header,
.page-id-216 .global-nav {
  display: none !important;
}

/* 上下の余白も削除してコンテンツをページ上部に */
.page-id-216 .main-content,
.page-id-216 .site-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* モバイルのハンバーガーメニュー非表示 */
@media (max-width: 991px) {
.page-id-216 #vk-mobile-nav-menu-btn {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
}
}

/* メインビジュアル */
.image-cover {
position: relative;
width: 100vw;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
overflow: hidden;
}

.image-cover__img {
width: 100%;
height: auto;
display: block;
}

.cover-text-group {
position: absolute;
top: 22vh;
left: 10%;
z-index: 10;
max-width: 600px;
line-height: 1.6;
}

.cover-text {
font-size: 2.5vw;
color: #FFF;
margin: 0 0 1em 0;
}

.cover-subtext {
font-size: 1.2vw;
color: #FFF;
margin: 0;
}

.cover-text,
.cover-subtext {
text-shadow:
 -0.5px -0.5px 0 #000,
 0.5px -0.5px 0 #000,
 -0.5px 0.5px 0 #000,
 0.5px 0.5px 0 #000;
}

/* WP-Polls 全体 */
.wp-polls {
  background: #f9fafb; /* 薄いグレー背景 */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  max-width: 500px;
  margin: 20px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* 質問タイトル */
.wp-polls p strong {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 15px;
  color: #111827;
}

/* 選択肢リスト */
.wp-polls-ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.wp-polls-ul li {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-polls-ul input[type="radio"] {
  transform: scale(1.2);
  accent-color: #2563eb; /* ブルー系カラー（Tailwind風） */
}

.wp-polls-ul label {
  cursor: pointer;
  font-size: 1rem;
  color: #374151;
}

/* 投票ボタン */
.wp-polls input.Buttons {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.wp-polls input.Buttons:hover {
  background: #1d4ed8;
}

/* 「結果を見る」リンク */
.wp-polls a {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #2563eb;
  text-decoration: none;
}

.wp-polls a:hover {
  text-decoration: underline;
}

/* ローディング表示 */
.wp-polls-loading {
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* 最新記事リスト全体 */
.wp-block-latest-posts__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

/* 各カード */
.wp-block-latest-posts__list li {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-latest-posts__list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 画像 */
.wp-block-latest-posts__featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 投稿タイトル */
.wp-block-latest-posts__post-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  padding: 0.75rem 1rem 0 1rem;
  line-height: 1.4;
}

.wp-block-latest-posts__post-title:hover {
  color: #0073aa;
}

/* 投稿日時 */
.wp-block-latest-posts__post-date {
  display: block;
  font-size: 0.85rem;
  color: #777;
  padding: 0.25rem 1rem 0.5rem 1rem;
  line-height: 1.2;
}

/* 抜粋 */
.wp-block-latest-posts__post-excerpt {
  padding: 0 1rem 1rem 1rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* 「続きを読む」リンク */
.wp-block-latest-posts__read-more {
  color: #0073aa;
  font-weight: 600;
  text-decoration: none;
}
.wp-block-latest-posts__read-more:hover {
  text-decoration: underline;
}

/* カード全体をクリック可能 */
.wp-block-latest-posts__list li {
  position: relative;
}

.wp-block-latest-posts__list li a.wp-block-latest-posts__post-title::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* スマホ対応 */
@media (max-width: 599px) {
  .wp-block-latest-posts__list {
    grid-template-columns: 1fr;
  }
}

/* 投稿日時をカード下部に配置（見た目上） */
.wp-block-latest-posts__list li {
  display: flex;
  flex-direction: column;
}

/* 投稿日を最下部に移動 */
.wp-block-latest-posts__post-date {
  order: 3; /* 下へ移動 */
  display: block;
  font-size: 0.85rem;
  color: #777;
  padding: 0.75rem 1rem 1rem 1rem;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

/* 抜粋を中段に固定 */
.wp-block-latest-posts__post-excerpt {
  order: 2;
  padding: 0 1rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  flex-grow: 1;
}

/* タイトルを上段に */
.wp-block-latest-posts__post-title {
  order: 1;
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  padding: 0.75rem 1rem 0 1rem;
  line-height: 1.4;
}

.wp-block-latest-posts__post-title:hover {
  color: #0073aa;
}


/* 投稿ページの投稿者を非表示 */
.entry-meta-item-author { display: none; }
/* 投稿ページの更新日を非表示 */
.entry-meta-item-updated { display: none; }

/* ▼ 下層ページのタイトルデザイン：シンプルラインタイプ ▼ */
.page-header {
  background-color: #fff; /* 背景は白で清潔感 */
  border-bottom: 1px solid #eee; /* 薄いラインを下に */
  padding: 20px 0 20px;
  text-align: center;
}

.page-header .page-header-title {
  font-size: 2rem;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

/* 下線アクセント */
.page-header .page-header-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 77px;
  height: 3px;
  background-color: #0078d4; /* コーポレートカラーに変更可 */
  border-radius: 2px;
}


/* 投稿サムネイルに重なって表示されるカテゴリ名ラベルを非表示 */
.vk_post_imgOuter_singleTermLabel {
  display: none !important;
}

