/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: mofutech.jp カスタム子テーマ
Author: mofutech
Tags: 
Version: 1.0.0
*/

/* ===== カラー変数 ===== */
:root {
  --color-main: #4a7c59;
  --color-main-dark: #3a6147;
  --color-main-light: #6a9c79;
  --color-bg: #f9f6f0;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0dbd0;
}

/* ===== 基本スタイル ===== */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'YuMincho', Georgia, serif;
}

a { color: var(--color-main); }
a:hover { color: var(--color-main-dark); }

.btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  background-color: var(--color-main) !important;
  border-color: var(--color-main) !important;
  color: var(--color-white) !important;
}
.btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: var(--color-main-dark) !important;
  border-color: var(--color-main-dark) !important;
}

/* ===== ヘッダー ===== */
#site-header, .site-header {
  background-color: var(--color-white);
  border-bottom: 3px solid var(--color-main);
}

/* ===== ナビゲーション ===== */
#global-nav a, .global-nav a { color: var(--color-text); }
#global-nav a:hover,
.global-nav a:hover,
#global-nav .current-menu-item > a,
.global-nav .current-menu-item > a { color: var(--color-main); }

/* ===== フッター ===== */
#site-footer, .site-footer {
  background-color: var(--color-main);
  color: var(--color-white);
}
#site-footer a, .site-footer a { color: var(--color-white); }

/* ===== ヒーローエリア ===== */
.hero-section {
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-dark) 100%);
  color: var(--color-white);
  padding: 120px 20px;
  text-align: center;
}
.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-white);
  line-height: 1.4;
}
.hero-section .hero-lead {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
  font-family: 'Noto Sans JP', sans-serif;
}
.hero-section .hero-btn {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-main) !important;
  padding: 16px 48px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--color-white);
}
.hero-section .hero-btn:hover {
  background: transparent;
  color: var(--color-white) !important;
}

/* ===== セクション共通 ===== */
.home-section { padding: 80px 20px; }
.home-section.bg-white { background-color: var(--color-white); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--color-main);
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 50px;
  font-family: sans-serif;
}

/* ===== プロフィールセクション ===== */
.profile-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.profile-avatar {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--color-border);
  border: 5px solid var(--color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.profile-text h2 {
  font-size: 1.8rem;
  color: var(--color-main);
  margin-bottom: 6px;
}
.profile-name-en {
  font-size: 0.85rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-family: sans-serif;
}
.profile-text p {
  line-height: 2;
  color: var(--color-text);
  font-family: 'Noto Sans JP', sans-serif;
}

/* ===== サービスセクション ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--color-main);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}
.service-card .service-icon { font-size: 3rem; margin-bottom: 20px; }
.service-card h3 {
  font-size: 1.2rem;
  color: var(--color-main);
  margin-bottom: 14px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.9;
  font-family: sans-serif;
}

/* ===== CTAバナー ===== */
.cta-section {
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 80px 20px;
}
.cta-section h2 { font-size: 2rem; color: var(--color-white); margin-bottom: 14px; }
.cta-section p { font-size: 1.05rem; opacity: 0.95; margin-bottom: 40px; font-family: sans-serif; }
.cta-btn {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-main) !important;
  padding: 16px 56px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--color-white);
}
.cta-btn:hover {
  background: transparent;
  color: var(--color-white) !important;
}

/* ===== お問い合わせページ ===== */
.contact-layout {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}
.contact-main { flex: 1; min-width: 0; }
.contact-sidebar-wrap { width: 300px; flex-shrink: 0; }

.contact-form-box {
  background: var(--color-white);
  border-radius: 12px;
  padding: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.contact-form-box h2 {
  font-size: 1.5rem;
  color: var(--color-main);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-border);
}
.contact-form-box table { width: 100%; border-collapse: collapse; }
.contact-form-box th,
.contact-form-box td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  font-family: sans-serif;
}
.contact-form-box th {
  width: 35%;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  background: transparent;
  white-space: nowrap;
}
.required-badge {
  display: inline-block;
  background: var(--color-main);
  color: white;
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
  font-weight: normal;
}
.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-select,
.wpcf7-textarea {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 6px !important;
  font-size: 0.95rem !important;
  background: var(--color-bg) !important;
  font-family: sans-serif !important;
  box-sizing: border-box;
  transition: border-color 0.3s;
}
.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus,
.wpcf7-select:focus,
.wpcf7-textarea:focus {
  outline: none !important;
  border-color: var(--color-main) !important;
  background: #fff !important;
}
.wpcf7-textarea { min-height: 140px; resize: vertical; }
.wpcf7-submit {
  background: var(--color-main) !important;
  color: var(--color-white) !important;
  border: none !important;
  padding: 14px 56px !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.3s;
  display: block;
  margin: 30px auto 0;
}
.wpcf7-submit:hover { background: var(--color-main-dark) !important; }

/* サイドバー */
.contact-sidebar-box {
  background: var(--color-white);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-top: 4px solid var(--color-main);
}
.contact-sidebar-box h3 {
  font-size: 1rem;
  color: var(--color-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.contact-sidebar-box dl { font-family: sans-serif; }
.contact-sidebar-box dt {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 12px;
}
.contact-sidebar-box dd {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-left: 0;
}
.contact-sidebar-box p {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.8;
  font-family: sans-serif;
}

/* ===== パンくず ===== */
.breadcrumb-wrap {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}
.breadcrumb-wrap .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 0.82rem;
  color: var(--color-text-light);
  font-family: sans-serif;
}
.breadcrumb-wrap a { color: var(--color-main); text-decoration: none; }
.breadcrumb-wrap a:hover { text-decoration: underline; }
.breadcrumb-wrap span { margin: 0 6px; }

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .contact-layout { flex-direction: column; }
  .contact-sidebar-wrap { width: 100%; }
}

@media (max-width: 768px) {
  .hero-section { padding: 80px 20px; }
  .hero-section h1 { font-size: 1.9rem; }
  .home-section { padding: 60px 20px; }
  .section-title { font-size: 1.5rem; }
  .profile-inner { flex-direction: column; text-align: center; gap: 30px; }
  .profile-avatar { width: 180px; height: 180px; font-size: 4rem; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta-section { padding: 60px 20px; }
  .contact-form-box { padding: 30px 20px; }
  .contact-form-box th,
  .contact-form-box td { display: block; width: 100%; padding: 8px 0; }
  .contact-form-box th { border-bottom: none; }
}

@media (max-width: 480px) {
  .hero-section h1 { font-size: 1.5rem; }
  .hero-btn, .cta-btn { padding: 14px 32px; font-size: 0.95rem; }
  .cta-section h2 { font-size: 1.5rem; }
}
