/*
Theme Name: Lightning Child
Template: lightning
Description: Lightning の子テーマ
Version: 1.0.0
Author: KIYOMI　OTAKE
*/

/* ==========================================================
// ヘッダーカスタマイズ
// ========================================================== */

/* --- 全体設定 --- */
.site-header {
    background: transparent !important;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

/* ヘッダーの内部にのみ透過背景を適用 */
.pc-header .header-inner,
.sp-header .header-inner {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
}

.site-branding img {
    max-height: 50px !important;
    width: auto !important;
}

/* 可変スペース */
.header-spacer {
    flex-grow: 1;
}

/* ナビゲーションメニュー */
.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 20px;
    white-space: nowrap;
}

.main-navigation li a {
    color: #fff !important;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.main-navigation li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 1px;
    background: #fff;
    transition: transform 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item a::after {
    transform: translateX(-50%) scaleX(1);
}

/* CTAと電話番号のエリア */
.header-right-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: 30px;
}

.header-contact a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #8BC746;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
}

.header-contact .cta-icon {
    font-size: 1.5rem;
}

.header-contact .cta-text {
    font-size: 0.8rem;
}

.header-tel {
    color: #fff;
}

.header-tel a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
}

.header-tel .business-hours {
    color: #fff;
    font-size: 0.8rem;
    margin: 0;
}

/* --- SP/TB版ヘッダー --- */
.sp-header {
    display: none;
}

.sp-menu-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-tel-icon {
    display: block;
    background: #fff;
    color: #8BC746;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.sp-menu-toggle {
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid #8BC746;
}

.sp-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #8BC746;
    margin: 4px 0;
}

.sp-menu-toggle .menu-text {
    font-size: 0.6rem;
    color: #8BC746;
    margin-top: 2px;
}

/* SP/TB版メニューオーバーレイ */
.sp-overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out;
}

.sp-overlay-menu.active {
    transform: translateX(0);
}
/* 開いたら表示にする（今は display:none のままなので見えない） */
.sp-overlay-menu.active { display: block; }

body.menu-open { overflow: hidden; }


.sp-overlay-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.sp-overlay-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.sp-overlay-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.sp-overlay-list li {
    margin: 20px 0;
}

.sp-overlay-list a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
}

/* --- レスポンシブデザイン --- */
@media (max-width: 991px) {
    .pc-header {
        display: none !important;
    }
    .sp-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 40px 0px 0px 0px;
        background: rgba(0, 0, 0, 0.5);
        position: fixed;
        top: 0;
        z-index: 9999;
    }
    .site-header {
        position: static;
    }
    /* SP・TB版の余白を解消 */
    body {
        margin: 0;
        padding-top: 80px;
    }
}

/* 固定ページのタイトルに背景を適用 */
.page-header {
    background-color: #000;
    color: #fff;
    padding: padding: 80px 20px 20px 20px;
}

/* --- SP/TB版の重なりを修正 --- */
@media (max-width: 991px) {
    body {
        padding-top: 50px; /* SP/TB版ヘッダーの高さに合わせて調整 */
    }
}
@media (max-width: 1024px) {
    /* 1024px以下の画面幅で電話番号と営業時間を修正 */
    .header-tel {
        display: block; /* Flexboxを無効化し、要素をブロック化 */
        text-align: center; /* 中央揃えに */
    }

    .header-tel a {
        display: block; /* リンクをブロック要素にして改行しやすく */
    }

    .header-tel .business-hours {
        font-size: 0.7rem; /* 営業時間のフォントサイズを小さく */
        white-space: nowrap; /* 改行を禁止 */
    }

    /* CTAも修正し、ヘッダーの高さを統一 */
    .header-contact {
        display: flex;
        align-items: center;
        flex-direction: column;
    }
}

@media (min-width: 992px) {
    .page-header {
        padding-top: 80px; /* ヘッダーの高さに合わせて調整 */
    }
}

/* Lightningテーマの既存のウィジェットエリアを非表示にする */
.site-body-bottom,
.widget-area,
.widget {
    display: none !important;
}

/* 新しいフッター全体のスタイルを強制的に設定 */
.custom-footer {
    background-color: #000000 !important;
    text-align: center !important;
    padding: 20px !important;
    color: #ffffff !important;
}

/* 新しいコピーライトのスタイルを強制的に設定 */
.custom-copyright {
    font-size: 0.8em !important;
    letter-spacing: 0.05em !important;
    font-weight: normal !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* グリッド（お好みで） */
.wp-block-columns { gap: 24px; }

/* カード本体（カラム1枚分） */
.p-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* 中の余白を整える（画像以外） */
.p-card > *:not(.wp-block-image){ margin-left:16px; margin-right:16px; }
.p-card h3{ margin:12px 16px 8px; font-size:1.1rem; line-height:1.4; }
.p-card p{ margin:0 16px 16px; color:#444; }

/* 画像をカード幅にフィット */
.p-card .wp-block-image img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3/2;    /* 画像比率を揃えてレイアウト安定 */
  object-fit:cover;
}

/* CTA（ボタン等）を下に揃える */
.p-card .wp-block-buttons{ 
  margin: auto 16px 16px; 
}

/* ボタン体裁（任意で調整） */
.p-card .wp-block-button__link{
  background:#8BC746; color:#fff; border-radius:9999px;
  padding:.75em 1.25em; font-weight:600; text-decoration:none;
}

/* ホバーで少し持ち上がる演出 */
.p-card{ transition: transform .2s ease, box-shadow .2s ease; }
.p-card:hover{ 
  transform: translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}
.js-yt {
  position: relative;
  display: inline-block;
}
.js-yt::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  color: white;
  text-shadow: 0 0 8px rgba(0,0,0,.7);
  pointer-events: none;
}
/* Lightningの既存見出し装飾をリセット */
.p-card h3 {
  all: unset;              /* 一旦すべてリセット */
  display: block;          /* all: unset でブロック要素が解除されるので再指定 */
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  margin: 12px 16px 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;  /* 薄いグレーの下線のみ */
  letter-spacing: 0.03em;
}

/* ホバー時に下線色を変える */
.p-card:hover h3 {
  border-bottom-color: #8BC746; /* 緑に変化 */
  transition: border-color 0.3s ease;
}


.c-btn:hover {
  background: #000 !important;
  color: #fff !important;
  transition: background 0.3s ease, color 0.3s ease;
}

}
/* Gutenberg 見出しブロックの擬似要素の青い線を消す */
.wp-block-heading::after {
  content: none !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}
.header-tel a {
  display: flex;
  align-items: center; /* アイコンと番号の縦位置を揃える */
  gap: 6px; /* アイコンと番号の間に余白 */
  text-decoration: none; /* 下線を消す（必要なら） */
}
.header-tel i {
  font-size: 1.2em; /* アイコンサイズ調整 */
}
/* 商品紹介カラム全体を中央寄せ */
.wp-block-columns {
  justify-content: center; /* カラムを中央寄せ */
  gap: 40px; /* カラム間の余白を調整 */
}

/* 各商品カードの最大幅を指定（見やすさ向上） */
.wp-block-column.p-card {
  max-width: 500px; /* 必要に応じて変更 */
}
/* ヘッダー内すべてを游ゴシックに */
.site-header {
  font-family: "游ゴシック体", "Yu Gothic", "YuGothic", 
               "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", 
               "メイリオ", Meiryo, sans-serif;
}
/* h1 見出しを游明朝に */
h1 {
  font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN",
               "MS PMincho", "MS 明朝", serif;
}
/* H2以下と本文を游ゴシックに */
h2, h3, h4, h5, h6,
p, li, span {
  font-family: "游ゴシック体", "Yu Gothic", "YuGothic",
               "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN",
               "メイリオ", Meiryo, sans-serif;
}
/* 閉じるボタン（×） */
.sp-overlay-close{
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 9999px;
  cursor: pointer;

  /* ナビより前面に固定（オーバーレイ内で最優先） */
  z-index: 10001;

  /* 端末のダブルタップ拡大防止（iOS等） */
  -webkit-tap-highlight-color: transparent;
}
.sp-overlay-close:hover{ background: rgba(255,255,255,.18); }
.sp-overlay-close:focus-visible{
  outline: 2px solid #8BC746;
  outline-offset: 2px;
}
