/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ========================================================
   2025/12 デザイン一新 プラグイン：GeneratePress用
   ======================================================== */
/* ヘッダー */
.site-header{
	position: relative;
    z-index: 1;
}
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(150deg, #a6d900, #ff4454, #00ffff, #ffcc00, #ff00ff);
    background-size: 200% 100%;
    animation: gradientMove 10s linear infinite;
}
/* ヘッダーに布のテクスチャを重ねる */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
		linear-gradient(rgba(20,20,20,0.45), rgba(20,20,20,0.45)),
		url('http://9milten.com/wp-content/uploads/2025/12/fabric-texture2.png');
    background-repeat: repeat;
    background-size: 500px;
	pointer-events: none;
    z-index: 1;
}

.site-branding {
	text-align: left;
	position: relative;
	z-index: 2;
}

.site-branding .main-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.05; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
    display: inline-block;
}

/* タイトルの最初の文字にスタイル適用 */
.site-branding .main-title a {
    display: inline-block;
}
.site-branding .main-title a::first-letter {
    font-size: 2.8rem;
    line-height: 0.8;
    color: #eb6100;
}
/* キャッチコピー */
.site-branding .site-description {
	display: block;
    position: relative;
    color: #dddddd;
    font-style: italic;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5); 
	padding-top: 0.3rem;
    padding-bottom: 0.3rem;
	padding-left: 0.5rem;

}
.site-description,
.nav-menu {
}

/* ヘッダーメニュー */
header.site-header .main-nav {
	font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* メインメニューリンク */
header.site-header .main-nav  li > a {
    position: relative;
    display: inline-block;
    padding: 0.6rem 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

/* 下線擬似要素（メインメニュー専用） */
header.site-header .main-nav  li > a::after {
    content: '';
    position: absolute;
	left: 10%;
    right: 10%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #eb6100;
    transition: width 0.3s ease;
}

/* ホバー・現在のタブ */
header.site-header .main-nav  li > a:hover::after,
header.site-header .main-nav  li > a.current-menu-item::after,
header.site-header .main-nav  li.current-menu-item > a::after{
   width: 80%;
}

/* サブメニューリンク */
header.site-header .main-nav ul.sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s, color 0.3s;
}

/* サブメニューホバー */
header.site-header .main-nav ul.sub-menu a:hover {
    background-color: #ffa85d;
}
/* 擬似要素はサブメニューに影響しない */
header.site-header .main-nav ul.sub-menu a::after {
    content: none;
}
/* 自動で上部に入るアイキャッチ画像を非表示に */
.page-header-image{
	display: none;
}
/* フッター */
.site-footer{
	position: relative;
    z-index: 1;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
		linear-gradient(rgba(20,20,20,0.45), rgba(20,20,20,0.45)),
		url('http://9milten.com/wp-content/uploads/2025/12/fabric-texture2.png');
    background-repeat: repeat;
    background-size: 500px;
	pointer-events: none;
    z-index: 1;
}
.inside-site-info{
	position: relative;
	z-index: 2;
}

/* 背景白ペンキ固定、paint-bgの要素追加はfunctions.phpで管理 */
.paint-bg {
    width: 100vw;
    max-width: 1200px;
    aspect-ratio: 1;
    background-image: url('http://9milten.com/wp-content/uploads/2025/12/dust-white-scaled-1.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

h2.wp-block-heading {
    position: relative;
    padding-left: 18px;
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #d1bfa2;
    letter-spacing: 0.5px;
}

h2.wp-block-heading::before {
    content: "";
    position: absolute;
    left: 0;
    width: 6px;
    height: 1.4em;
    background: #5a5d54;
    border-radius: 2px;
}

/* WP Carousel のスライド画像サムネイル枠を固定サイズ */
.gallery-slider .wpcp-carousel-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0;
}

.gallery-slider .swiper-slide .wpcp-single-item img {
  width: 100% !important;
  height: 150px !important;
  object-fit: cover !important;
}
.gallery-slider .swiper-slide .wpcp-single-item:nth-of-type(2) img {
  height: 100px !important;
}
.gallery-slider .swiper-slide .wpcp-single-item {
  overflow: hidden;
}

/* *********** イベント一覧ページ（カードリスト） *********** */
.event-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	margin: 0 auto;
}
.event-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	flex: 1 1 250px;
	max-width: 300px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.event-card a {
	color: inherit;
	text-decoration: none;
	display: block;
	padding: 10px;
}
.event-card img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	display: block;
}
.event-card h3 {
	font-size: 1.1rem;
	margin: 10px 0 5px;
	padding: 6px 0;
    font-weight: bold;
	border-bottom: 2px solid #f39c12;
}
.event-card a:hover h3 {
	color: #f39c12;
	transform: scale(1.02);
}

/* 抜粋 */
.event-card p {
	font-size: 0.95rem;
	color: #666;
	line-height: 1.5;
	margin: 0 0 10px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
/* イベント一覧 ページネーション */
.event-pagination {
  text-align: center;
  margin: 30px 0;
}
.event-pagination a,
.event-pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  border-radius: 5px;
  background: #eee;
  color: #333;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.event-pagination a:hover {
  background: #e76c02;
  color: #fff;
}
.event-pagination .current {
  background: #e76c02;
  color: #fff;
  font-weight: bold;
}

/* *********** 記事ページ *********** */
/* 投稿日時を非表示、投稿者はfunctions.phpで削除 */
.entry-meta .posted-on{
	display: none;
}

/* *********** SNSシェアボタン *********** */
.share-buttons {
    display: flex;
	justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.share-btn {
	display: inline-block;
	min-width: 120px;
	text-align: center;
	padding: 9px 15px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-decoration: none;
	background: transparent;
	border: 2px solid;
	transition: all 0.25s ease;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}
.share-btn.x {
	color: #000;
	border-color: #000;
}
.share-btn.x:hover {
	background: #000;
	color: #fff;
}
.share-btn.line {
	color: #06c755;
	border-color: #06c755;
}
.share-btn.line:hover {
	background: #06c755;
	color: #fff;
}
.share-btn.fb {
	color: #1877F2;
	border-color: #1877F2;
}
.share-btn.fb:hover {
	background: #1877F2;
	color: #fff;
}

.share-btn.copy {
	color: #e76c02;
	border-color: #e76c02;
	cursor: pointer;
}
.share-btn.copy:hover {
	background-color: #e76c02;
	color: #fff;
}

/* *************** コピーライトのプラグイン名を非表示 *************** */
.copyright-bar a[href*="generatepress.com"] {
    display: none !important;
}
.copyright-bar {
    font-size: 0;
}
.copyright-bar .copyright {
    font-size: initial;
}

/* アニメーション用 */
@keyframes gradientMove {
	0% { background-position: 0% 0%; }
	50% { background-position: 100% 0%; }
	100% { background-position: 0% 0%; }
}

/* **************** 以下レスポンシブ用 **************** */
/* タブレット */
@media (max-width: 1024px) {
	.inside-header {
		padding: 20px;
    }
    .site-branding .main-title {
        font-size: 2.0rem;
    }
    .site-branding .site-description {
        font-size: 0.8rem;
    }
	.grid-container{
		margin: auto 10px;
	}
}

/* スマホ */
@media (max-width: 768px) {
	.inside-header {
		padding: 20px;
    }
    .site-branding .main-title {
        font-size: 1.8rem;
    }
    .site-branding .site-description {
        font-size: 0.8rem;
    }
	.wp-block-group__inner-container.is-layout-constrained.wp-block-group-is-layout-constrained{
		padding: 10px;		
	}
	.grid-container{
		margin: auto 10px;
	}
}
