/*
Theme Name: Lightning Child - Furuhashi Kougyou
Theme URI: https://furuhashi-kougyou.com
Description: 有限会社フルハシ工業のカスタム子テーマ
Author: Furuhashi Kougyou
Author URI: https://furuhashi-kougyou.com
Template: lightning
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lightning-child
*/

/* ========================================
   基本設定
======================================== */
:root {
  --primary-color: #2b7bc4;
  --secondary-color: #333333;
  --accent-color: #f39800;
  --text-color: #333333;
  --bg-color: #ffffff;
  --gray-light: #f5f5f5;
  --gray-medium: #cccccc;
  --blue-light: #e8f4fb;
  --beige: #f9f5e8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: var(--text-color);
  line-height: 1.8;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   トップバー
======================================== */
.top-bar {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 8px 20px;
  font-size: 14px;
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
}

.site-logo a {
  text-decoration: none;
  color: var(--text-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.contact-button {
  background: #fff;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-button:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ========================================
   ナビゲーション
======================================== */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 35px;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  font-size: 15px;
  transition: color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.nav-label {
  font-size: 14px;
  font-weight: 500;
}

.nav-sublabel {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   メインビジュアル
======================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.hero-full-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-full-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   ページヘッダー共通
======================================== */
.page-header {
  background: transparent;
}

.page-header h1 {
  position: relative;
}

/* ========================================
   セクション共通
======================================== */
.section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   3つの強みセクション
======================================== */
.strengths-section {
  background: var(--blue-light);
  padding: 80px 20px;
}

.strengths-title {
  text-align: left;
  font-size: 32px;
  margin-bottom: 60px;
  font-weight: 500;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.strength-item {
  background: #fff;
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
}

.strength-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
}

.strength-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.strength-item h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--accent-color);
  font-weight: 500;
  border-bottom: none !important;
  padding-bottom: 0;
}

.strength-item h3::after {
  display: none !important;
  content: none !important;
}

.strength-item p {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

/* ========================================
   会社概要セクション
======================================== */
.company-info-table {
  background: #fff;
}

.company-info-table tr {
  transition: background 0.2s;
}

.company-info-table tr:hover {
  background: rgba(0,0,0,0.01);
}

.company-info-table th {
  font-size: 15px;
  color: #666;
  font-weight: 400;
}

.company-info-table td {
  font-size: 15px;
  color: #333;
}

@media (max-width: 768px) {
  .company-info-table th,
  .company-info-table td {
    display: block;
    width: 100%;
    padding: 10px 15px !important;
  }
  
  .company-info-table th {
    padding-bottom: 5px !important;
    font-weight: 500;
    color: var(--primary-color);
  }
  
  .company-info-table td {
    padding-top: 5px !important;
    padding-bottom: 20px !important;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.about-item {
  background: var(--gray-light);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.about-item h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* ========================================
   事業内容セクション
======================================== */
.services-section {
  padding: 80px 20px;
  background: #fff;
}

.services-title {
  text-align: left;
  font-size: 32px;
  margin-bottom: 60px;
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  background: var(--blue-light);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
}

.service-item h3 {
  font-size: 18px;
  margin-bottom: 25px;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.6;
  border-bottom: none !important;
  padding-bottom: 0;
}

.service-item h3::after {
  display: none !important;
  content: none !important;
}

.service-image {
  width: 100%;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   施工事例
======================================== */
.works-section {
  padding: 80px 20px;
  background: var(--beige);
}

.works-title {
  text-align: left;
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 500;
}

.works-subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 50px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.work-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  position: relative;
}

.work-item:hover {
  transform: translateY(-5px);
}

.work-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 15px;
  font-size: 12px;
  border-radius: 3px;
  z-index: 2;
}

.work-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.work-content {
  padding: 20px;
}

.work-content h3 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 500;
}

.work-content h3 a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
}

.work-content h3 a:hover {
  color: var(--primary-color);
}

.work-date {
  font-size: 13px;
  color: #999;
}

.more-button {
  text-align: center;
  margin-top: 40px;
}

.more-button a {
  display: inline-block;
  padding: 12px 40px;
  background: #fff;
  border: 1px solid #ddd;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.more-button a:hover {
  background: var(--gray-light);
}

/* ========================================
   新着情報
======================================== */
/* ========================================
   新着情報セクション（リスト表示）
   ======================================== */
.news-section {
  background: #fff;
  padding: 80px 20px;
}

.news-list {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  gap: 30px;
  transition: background-color 0.3s ease;
}

.news-item:hover {
  background-color: #f8f9fa;
}

.news-item:first-child {
  border-top: 1px solid #e0e0e0;
}

.news-date {
  font-weight: 500;
  color: #333;
  min-width: 100px;
  font-size: 14px;
}

.news-category {
  min-width: 100px;
}

.category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--blue-light);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.news-title {
  flex: 1;
  font-size: 16px;
}

.news-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-title a:hover {
  color: var(--primary-color);
}

/* ========================================
   新着情報セクション（カード表示）
   ======================================== */
.news-card-section {
  background: transparent;
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.news-card-item:hover {
  transform: translateY(-5px);
}

.news-card-image {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card-item:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 20px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.news-card-date {
  font-size: 13px;
  color: #999;
  font-weight: 500;
}

.news-card-title {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.5;
  border-bottom: none !important;
  padding-bottom: 0;
}

.news-card-title::after {
  display: none !important;
  content: none !important;
}

.news-card-title a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
}

.news-card-title a:hover {
  color: var(--primary-color);
}

.news-card-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .news-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-section {
    padding: 60px 20px;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 0;
  }

  .news-date {
    min-width: auto;
    font-size: 13px;
  }

  .news-category {
    min-width: auto;
  }

  .news-title {
    font-size: 14px;
  }

  .news-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   採用情報
======================================== */
.recruit-table {
  background: #fff;
}

.recruit-row {
  transition: background 0.2s;
}

.recruit-row:hover {
  background: rgba(43, 123, 196, 0.02);
}

@media (max-width: 768px) {
  .recruit-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  .recruit-row > div:first-child {
    font-weight: 700;
    color: var(--primary-color) !important;
  }
}

/* ========================================
   よくある質問セクション
======================================== */
.faq-section {
  padding: 80px 20px;
  background: #fff;
}

.faq-title {
  text-align: left;
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 500;
}

.faq-subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 50px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 30px;
}

.faq-question {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.faq-q-label {
  background: #fff;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  border-radius: 4px;
}

.faq-q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  padding-top: 8px;
}

.faq-answer {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.faq-a-label {
  background: var(--text-color);
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  border-radius: 4px;
}

.faq-a-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  padding-top: 8px;
}

/* ========================================
   お問い合わせセクション
======================================== */
.contact-section {
  padding: 80px 20px;
  background: var(--primary-color);
  color: #fff;
  text-align: center;
}

.contact-title {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 500;
}

.contact-description {
  font-size: 15px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-button-large {
  display: inline-block;
  background: #fff;
  color: var(--primary-color);
  padding: 18px 60px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s;
}

.contact-button-large:hover {
  background: var(--gray-light);
  transform: translateY(-2px);
}

/* ========================================
   フッター
======================================== */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

.footer-nav {
  margin-bottom: 25px;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 5px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-nav li:not(:last-child)::after {
  content: '|';
  margin-left: 5px;
  color: #666;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.copyright {
  font-size: 13px;
  color: #999;
  margin-top: 20px;
}

.footer-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 999;
}

.footer-icon:hover {
  background: var(--gray-light);
  transform: translateY(-3px);
}

/* ========================================
   Contact Form 7 カスタムスタイル
======================================== */
.wpcf7 .form-row {
  margin-bottom: 25px;
}

.wpcf7 label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.wpcf7 .required {
  color: #e74c3c;
  margin-left: 3px;
}

.wpcf7 .form-control,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
  font-family: inherit;
}

.wpcf7 .form-control:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.wpcf7 textarea.form-control,
.wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7 .submit-btn,
.wpcf7 input[type="submit"] {
  background: var(--primary-color);
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.wpcf7 .submit-btn:hover,
.wpcf7 input[type="submit"]:hover {
  background: #1e5fa3;
}

.wpcf7 .submit-row {
  text-align: center;
  margin-top: 30px;
}

.wpcf7 .wpcf7-response-output {
  margin: 20px 0;
  padding: 15px;
  border-radius: 4px;
  border: none !important;
}

.wpcf7 .wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb !important;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-acceptance-missing {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb !important;
}

.wpcf7 .wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
}

.wpcf7 .wpcf7-spinner {
  margin-left: 10px;
}

.wpcf7 .form-check {
  margin-top: 20px;
}

.wpcf7 .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .wpcf7-list-item-label {
  margin-left: 8px;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 1024px) {
  .strengths-grid,
  .services-grid,
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header .header-container {
    flex-direction: column;
    gap: 20px;
    padding: 15px 20px;
  }
  
  .header-right {
    flex-direction: column;
    width: 100%;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    width: 100%;
  }
  
  .hero-section {
    height: auto;
  }
  
  .strengths-grid,
  .services-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title,
  .strengths-title,
  .services-title,
  .works-title,
  .faq-title,
  .contact-title {
    font-size: 26px;
  }
  
  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-nav li:not(:last-child)::after {
    display: none;
  }
}
