/*
Theme Name: Lightning
Text Domain: lightning
Theme URI: https://lightning.vektor-inc.co.jp/en/
Description: Lightning is a very simple & easy to customize theme which is based on the Bootstrap. It is also very friendly with custom post types and custom taxonomies. When you add a new one, the breadcrumbs will be adjusted and posts will look beautifully without editing or adding a template files.
Author: Vektor,Inc.
Author URI: https://www.vektor-inc.co.jp
Version: 15.30.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Lightning WordPress theme, Copyright (C) 2015-2025 Vektor,Inc.
Lightning WordPress theme is licensed under the GPL.

Lightning WordPress Theme bundles the following third-party resources:

Font Awesome icon font, Copyright 2012 Fonticons, Inc.
its fonts are licensed under the terms of the SIL OFL License 1.1, and its code is licensed under the terms of the MIT license
Source: https://fontawesome.com/

Bootstrap framework, Copyright 2011 Bootstrap Authors and Twitter, Inc.
Bootstrap is licensed under the terms of the MIT license
Source: https://getbootstrap.com/

CSS Simple Tree Shaking
CSS Simple Tree Shaking is licensed under the terms of the GNU General Public License v2 license
Source: https://celtislab.net/
*/

/* 余白調整 */
.entry-content > * + * {
  margin-top: 5em; /* 好きな値に */
}

p {
  margin-top: 1.2em;
  margin-bottom: 1.8em;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 2.5em;
  margin-bottom: 1.2em;
}



/* アイキャッチを正方形に */
.pc-card__thumb { 
  aspect-ratio: 1/1; /* 正方形に固定 */
  overflow: hidden; 
}
.pc-card__thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; /* 中央をトリミング */
  display: block; 
}

/* デフォルトで3枚表示（Swiperのbreakpoints優先ならJS側で調整も可） */
@media (min-width: 960px) {
  .pc-swiper .swiper-slide {
    width: calc((100% - 48px) / 3) !important; /* 3枚分+余白 */
  }
}

/* ナビゲーションボタン白抜き三角共通 */
.pc-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* 初期は非表示 */
  transition: opacity .25s ease;
  cursor: pointer;
}

/* ホバーでボタンを表示 */
.pc-wrap:hover .pc-button {
  opacity: 1;
}

/* 三角マークを白で作る */
.pc-button::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
}

/* 左矢印 */
.pc-button--prev::after {
  border-width: 8px 12px 8px 0;
  border-color: transparent #fff transparent transparent;
}

/* 右矢印 */
.pc-button--next::after {
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #fff;
}

/* ホバー時に少し大きく＆半透明で軽く */
.pc-button:hover::after {
  transform: scale(1.15);
  opacity: 0.9;
}
