/*
Theme Name: FNJ Corporate Theme
Theme URI: https://fnj.co.jp
Description: 株式会社FNJ専用ワンページテーマ - 運送・リフォーム・産業廃棄物運搬事業
Author: FNJ
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: fnj-theme
*/

/* ========================================
   リセット & ベーススタイル
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: #2C5F8D;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* ========================================
   共通コンポーネント
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #2C5F8D;
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #666;
  margin-bottom: 60px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: #FF6B35;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: #e55a28;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
  background-color: rgba(44, 95, 141, 0.95);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  color: #fff;
  font-weight: 500;
  padding: 10px 0;
}

.main-nav a:hover {
  color: #FF6B35;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero-section {
  background: linear-gradient(135deg, #2C5F8D 0%, #1a3a52 100%);
  color: #fff;
  text-align: center;
  padding: 180px 20px 120px;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.8;
}

/* ========================================
   会社紹介セクション
======================================== */
.about-section {
  background-color: #fff;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 40px;
  color: #555;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-item {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  font-weight: 600;
  color: #2C5F8D;
}

.feature-item::before {
  content: '✓';
  display: inline-block;
  margin-right: 8px;
  color: #FF6B35;
  font-size: 1.2rem;
}

/* ========================================
   事業内容セクション
======================================== */
.services-section {
  background-color: #f8f9fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.service-card {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C5F8D;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  margin-bottom: 20px;
  text-align: left;
}

.service-list li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #555;
}

.service-list li::before {
  content: '•';
  position: absolute;
  left: 10px;
  color: #FF6B35;
  font-weight: bold;
}

.service-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

/* ========================================
   お問い合わせセクション
======================================== */
.contact-section {
  background-color: #fff;
}

.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: #f8f9fa;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.contact-form-wrapper .required {
  color: #e74c3c;
  margin-left: 4px;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  background-color: #fff;
  transition: border-color 0.3s;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  outline: none;
  border-color: #2C5F8D;
  box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

.contact-form-wrapper textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form-wrapper .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-form-wrapper .wpcf7-list-item {
  margin: 0;
}

.contact-form-wrapper .wpcf7-list-item-label {
  padding: 8px 15px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form-wrapper input[type="radio"]:checked + .wpcf7-list-item-label {
  background-color: #2C5F8D;
  color: #fff;
  border-color: #2C5F8D;
}

.contact-form-wrapper .privacy-agreement {
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.contact-form-wrapper .privacy-agreement a {
  color: #2C5F8D;
  text-decoration: underline;
}

.contact-form-wrapper .wpcf7-submit {
  width: 100%;
  padding: 15px;
  background-color: #FF6B35;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form-wrapper .wpcf7-submit:hover {
  background-color: #e55a28;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 5px;
}

.wpcf7-response-output {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
}

.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* ========================================
   フッター
======================================== */
.site-footer {
  background-color: #1a3a52;
  color: #fff;
  padding: 40px 0 20px;
  text-align: center;
}

.footer-nav {
  margin-bottom: 20px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #fff;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #FF6B35;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   固定ページ（プライバシーポリシー等）
======================================== */
.page-template {
  padding-top: 120px;
  min-height: calc(100vh - 200px);
}

.page-header {
  background-color: #f8f9fa;
  padding: 60px 0;
  margin-bottom: 60px;
}

.page-title {
  font-size: 2.5rem;
  color: #2C5F8D;
  text-align: center;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.page-content h2 {
  font-size: 1.8rem;
  color: #2C5F8D;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FF6B35;
}

.page-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-content ul {
  margin: 20px 0;
  padding-left: 30px;
}

.page-content li {
  margin-bottom: 10px;
  line-height: 1.8;
}

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-section {
    padding: 120px 20px 80px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }

  .contact-form-wrapper .wpcf7-radio {
    flex-direction: column;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .page-template {
    padding-top: 100px;
  }

  .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* ========================================
   アクセシビリティ
======================================== */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

:focus {
  outline: 2px solid #FF6B35;
  outline-offset: 2px;
}
