/*
 Theme Name:   Lightning Child
 Template:     lightning
 Description:  子テーマ（Lightning用）
*/

/*--------------------------------------
■ ページ ID 283 / 587 / 801 / 870 限定の背景・余白設定
--------------------------------------*/
.page-id-283,
.page-id-587,
.page-id-501,
.page-id-870 {
  background-color: #f9f9f9;
  padding-top: 70px;
}

body.page-id-283,
body.page-id-587,
body.page-id-801,
body.page-id-870 {
  background-image: url('https://heartive.co.jp/wp-content/uploads/2025/03/Flexio_logo-back.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
}

@media screen and (max-width: 768px) {
  body.page-id-283,
  body.page-id-587,
  body.page-id-801,
  body.page-id-870 {
    background-attachment: scroll;
  }
}

/*--------------------------------------
■ 固定ヘッダー共通
--------------------------------------*/
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fixed-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  max-width: 1000px;
  width: 100%;
}

.fixed-header .logo {
  margin-right: auto;
}

.fixed-header .logo img {
  height: 42px;
}

.header-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.header-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/*--------------------------------------
■ 固定ヘッダー内ナビゲーションの文字サイズ調整
--------------------------------------*/
.header-links a {
  font-size: 0.8em; /* ← 通常より少し小さめにして1段に収める */
  line-height: 1.1; /* ← 行間も少し詰めてバランス調整（任意） */
	white-space: nowrap; /* ← 改行禁止 */
}

/*--------------------------------------
■ モバイルメニュー
--------------------------------------*/
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 60px;
  right: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  z-index: 99999;
  border: 1px solid #ddd;
}

.mobile-menu a {
  padding: 10px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu.active {
  display: flex;
}

@media screen and (max-width: 768px) {
  .header-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/*--------------------------------------
■ アンカー位置調整
--------------------------------------*/
.anchor-offset {
  position: relative;
  top: -80px;
  padding-top: 80px;
}

#pricing,
#access,
#contact {
  scroll-margin-top: 50px;
}

/*--------------------------------------
■ 共通ユーティリティ
--------------------------------------*/
.flex-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.button-center {
  text-align: center;
  margin-top: 1.5em;
}

.modern-btn {
  display: inline-block;
  padding: 1em 2em;
  font-weight: bold;
  font-size: 1.1em;
  color: #fff;
  background: #000;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.modern-btn:hover {
  color: #FFD700;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* ギャラリートグル専用ボタン */
.gallery-btn {
  display: inline-block;
  padding: 0.6em 1.5em;
  font-size: 1em;
  font-weight: 500;
  color: #fff;
  background-color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.gallery-btn:hover {
  background-color: #666;
  color: #fff;
}

/*--------------------------------------
■ ボタンを下揃えにするためのカラム揃え設定
--------------------------------------*/
.equal-height-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.equal-height-columns .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.equal-height-columns .button-center {
  margin-top: auto;
  text-align: center;
  padding-top: 1em;
}

/*--------------------------------------
■ 共通ページ用：固定ヘッダー分の余白を確保
--------------------------------------*/
body:not(.page-id-283):not(.page-id-587):not(.page-id-801):not(.page-id-870) {
  padding-top: 70px; /* .fixed-header の高さと合わせる */
}

/* Lightning親テーマのヘッダーを非表示 */
.header-site,
.gHeader,
.l-header,
.site-header {
  display: none !important;
}
