/*
Theme Name: Gutenbiz Child - Orge
Template: gutenbiz
Version: 3.0.0
Description: スタイリッシュリニューアル用子テーマ
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

/* =============================================
   DESIGN TOKENS
============================================= */
:root {
  --orange:    #FF6B1A;
  --orange-dim:#CC4D00;
  --black:     #080808;
  --surface:   #111111;
  --border:    rgba(255,255,255,0.08);
  --text:      #F0F0F0;
  --muted:     rgba(240,240,240,0.55);
  --font-en:   'Inter', sans-serif;
  --font-jp:   'Noto Sans JP', sans-serif;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================
   BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--black) !important;
  color: var(--text) !important;
  font-family: var(--font-jp) !important;
  -webkit-font-smoothing: antialiased;
  margin: 0; padding: 0;
}

h1, h2, h3, h4, h5, h6 { color: var(--text) !important; }

p, li {
  color: var(--muted) !important;
  font-size: 16px !important;
  line-height: 2 !important;
}

a { color: var(--orange) !important; }
a:hover { color: var(--orange-dim) !important; }

/* =============================================
   DARK BACKGROUND — 全コンテナ強制適用
============================================= */
body #page,
body #content,
body #primary,
body #main,
body .site-main,
body .site-content,
body main,
body article,
body .hentry,
body .entry-content,
body .page-content,
body .wp-block-group,
body .wp-block-group__inner-container,
body td, body th,
body .wp-block-table,
body .wp-block-table table,
body .wp-block-table tr,
body .wp-block-table td,
body .wp-block-table th {
  background: var(--black) !important;
  background-color: var(--black) !important;
}

/* テーブル文字色 */
body .wp-block-table td,
body .wp-block-table th {
  color: var(--text) !important;
  border-color: var(--border) !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
}

/* =============================================
   HEADER
============================================= */
body #masthead,
body .site-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  height: 64px !important;
  min-height: 64px !important;
  z-index: 9000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 48px !important;
  background: rgba(8,8,8,0.9) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
}

.site-description { display: none !important; }

.site-branding {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important; padding: 0 !important;
}

.site-title {
  font-size: 18px !important;
  margin: 0 !important; line-height: 1 !important;
  white-space: nowrap !important;
}

.site-title a {
  font-family: var(--font-en) !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  letter-spacing: 0.08em !important;
  color: var(--text) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.main-navigation ul {
  display: flex; gap: 40px;
  list-style: none; margin: 0; padding: 0;
}

.main-navigation ul li a {
  font-family: var(--font-jp);
  font-size: 13px; font-weight: 500;
  color: var(--muted) !important;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.main-navigation ul li a:hover { color: var(--text) !important; }

.main-navigation ul li:last-child a {
  background: var(--orange) !important;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600 !important;
}
.main-navigation ul li:last-child a:hover { background: var(--orange-dim) !important; }

/* =============================================
   ホームページ — 上部の余分なスペースを除去
============================================= */
/* テーマが出力するヘッダー・バナー等を完全除去 */
.home .entry-header,
.home .page-header,
.home .page-banner,
.home .inner-banner,
.home .gb-page-header,
.home .rise-page-header,
.home .hero-section:not(.orge-hero),
.home .site-content > .entry-title,
.home h1.entry-title {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* article 内で entry-content より前にある要素をすべて潰す */
.home .hentry > *:not(.entry-content) {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* コンテンツエリアのpadding完全リセット */
.home body,
.home #page,
.home #content,
.home #primary,
.home .site-main,
.home .site-content,
.home .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* wp:html ブロックラッパーの余白リセット */
.home .wp-block-html,
.home .entry-content > * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =============================================
   orge-page / hero — 左配置の調整
============================================= */
.orge-page {
  width: 100% !important;
  max-width: 100% !important;
}

.orge-hero {
  justify-content: flex-start !important;
  padding-top: 96px !important;
  padding-left: 7% !important;
  padding-right: 7% !important;
}

/* =============================================
   FORMS
============================================= */
body input[type="text"],
body input[type="email"],
body input[type="tel"],
body input[type="url"],
body input[type="number"],
body input[type="search"],
body select,
body textarea {
  background: #131313 !important;
  background-color: #131313 !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  padding: 14px 18px !important;
  font-size: 15px !important;
  font-family: var(--font-jp) !important;
  outline: none !important;
}

body input:focus, body textarea:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(255,107,26,0.15) !important;
}

body input[type="submit"],
body button[type="submit"],
body .wpcf7-submit,
body .wpforms-submit {
  background: var(--orange) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 16px 32px !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

body input[type="submit"]:hover,
body .wpcf7-submit:hover {
  background: var(--orange-dim) !important;
}

body label,
body .wpforms-field-label,
body .wpcf7 label {
  color: rgba(240,240,240,0.5) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

/* =============================================
   FOOTER
============================================= */
body #colophon,
body .site-footer {
  background: var(--black) !important;
  border-top: 1px solid var(--border) !important;
  padding: 40px 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

body .site-footer *,
body #colophon * {
  color: rgba(240,240,240,0.35) !important;
  font-size: 12px !important;
  background: transparent !important;
}

body .site-footer a:hover,
body #colophon a:hover { color: var(--text) !important; }

/* =============================================
   SVG 波形デバイダー除去
============================================= */
.home svg:not([class*="orge"]) {
  display: none !important;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 860px) {
  body #masthead,
  body .site-header { padding: 0 20px !important; }

  .main-navigation { display: none !important; }

  .orge-hero {
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-top: 88px !important;
  }

  body #colophon,
  body .site-footer {
    flex-direction: column !important;
    text-align: center !important;
    padding: 32px 24px !important;
  }
}
/* 古いカバーブロック（GALLERIA画像）を非表示 */
.home .wp-block-cover,
.home .wp-block-cover-image {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
/* =============================================
   PRODUCT PAGE — ギャラリー画像均一化
============================================= */
.page-template-default .wp-block-gallery,
body:not(.home) .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}
.page-template-default .wp-block-gallery .wp-block-image,
body:not(.home) .wp-block-gallery .wp-block-image {
  margin: 0 !important;
  width: 100% !important;
}
.page-template-default .wp-block-gallery .wp-block-image figure,
body:not(.home) .wp-block-gallery .wp-block-image figure {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background: #111 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  margin: 0 !important;
}
.page-template-default .wp-block-gallery .wp-block-image img,
body:not(.home) .wp-block-gallery .wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}		
}