/*
Theme Name:  散布の窓口東海
Theme URI:   https://example.com
Author:      株式会社HIKONIRA
Author URI:  https://example.com
Description: ドローン農薬散布窓口サイト専用カスタムWordPressテーマ（シンプル・ミニマル）
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: sanpu-madoguchi
Tags:        custom-menu, featured-images, responsive-layout
*/

/* ===========================
   リセット & ベース
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: #222222;
  background: #ffffff;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===========================
   CSS カスタムプロパティ
=========================== */
:root {
  --green:      #2d7a4f;
  --green-dark: #1e5c39;
  --gold:       #e8a020;
  --gold-dark:  #c88a10;
  --bg:         #f8f6f1;
  --text:       #222222;
  --text-mid:   #555555;
  --border:     #e0e0e0;
  --white:      #ffffff;
  --max-w:      1200px;
  --radius:     8px;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
}

/* ===========================
   共通レイアウト
=========================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--bg { background: var(--bg); }

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}
.section__desc {
  color: var(--text-mid);
  font-size: 1rem;
  max-width: 600px;
}
.section__head { margin-bottom: 56px; }

/* ===========================
   ボタン
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn--primary  { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn--primary:hover  { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--outline  { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover  { background: var(--white); color: var(--green); }
.btn--green    { background: var(--green); color: var(--white); border-color: var(--green); }
.btn--green:hover    { background: var(--green-dark); border-color: var(--green-dark); }

/* ===========================
   ヘッダー
=========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header__logo-icon {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.site-header__logo-name { font-size: 1rem; font-weight: 700; color: var(--green); }
.site-header__logo-sub  { font-size: 0.7rem; color: var(--text-mid); }

/* WP ナビゲーション */
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--green); }
.header-nav .header-cta a {
  background: var(--gold);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s;
}
.header-nav .header-cta a:hover { background: var(--gold-dark); color: white; }

/* ハンバーガー（SP用）*/
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ===========================
   フッター
=========================== */
.site-footer {
  background: #111111;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.site-footer__brand-name { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.site-footer__brand-corp { font-size: 0.8rem; opacity: 0.5; margin-bottom: 16px; }
.site-footer__brand-desc { font-size: 0.85rem; line-height: 1.8; }
.site-footer__col-title { color: white; font-size: 0.875rem; font-weight: 700; margin-bottom: 16px; }
.site-footer__col a { display: block; font-size: 0.85rem; padding: 4px 0; transition: color 0.2s; }
.site-footer__col a:hover { color: white; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ===========================
   ヒーロー
=========================== */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(30,92,57,0.85) 0%, rgba(45,122,79,0.75) 100%),
    var(--hero-bg, #1e5c39) center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: 68px;
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: white;
  line-height: 1.25;
  margin-bottom: 24px;
  max-width: 700px;
}
.hero__title em { font-style: normal; color: var(--gold); display: block; }
.hero__sub { color: rgba(255,255,255,0.88); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 560px; margin-bottom: 40px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 64px; flex-wrap: wrap; }
.hero__stat-num { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--gold); }
.hero__stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ===========================
   強みカード
=========================== */
.strengths__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.strength-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.strength-card:hover {
  box-shadow: 0 8px 32px rgba(45,122,79,0.12);
  transform: translateY(-4px);
}
.strength-card__num { font-size: 2rem; font-weight: 700; color: var(--green); opacity: 0.25; line-height: 1; margin-bottom: 12px; }
.strength-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.strength-card__desc { font-size: 0.875rem; color: var(--text-mid); line-height: 1.7; }
.strength-card__tag {
  display: inline-block; margin-top: 12px; padding: 2px 10px;
  background: rgba(45,122,79,0.08); color: var(--green);
  font-size: 0.75rem; border-radius: 999px;
}

/* ===========================
   サービスカード
=========================== */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card {
  display: flex; gap: 20px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; align-items: flex-start;
}
.service-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: rgba(45,122,79,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.service-card__num { font-size: 0.75rem; font-weight: 700; color: var(--green); margin-bottom: 4px; letter-spacing: 0.1em; }
.service-card__title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.service-card__desc { font-size: 0.875rem; color: var(--text-mid); line-height: 1.7; }

/* ===========================
   価格セクション
=========================== */
.price-section { text-align: center; }
.price-box {
  display: inline-flex; align-items: baseline; gap: 4px;
  background: var(--green); color: white;
  padding: 32px 56px; border-radius: 12px; margin-bottom: 24px;
}
.price-box__from { font-size: 1rem; font-weight: 500; }
.price-box__num  { font-size: 4rem; font-weight: 700; line-height: 1; }
.price-box__unit { font-size: 1.2rem; font-weight: 700; }
.price-box__note { font-size: 0.85rem; opacity: 0.75; margin-left: 12px; }
.price-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.price-tag  { background: rgba(45,122,79,0.1); color: var(--green); padding: 6px 16px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; }
.area-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.area-badge  { background: var(--white); border: 2px solid var(--green); color: var(--green); padding: 8px 20px; border-radius: 999px; font-size: 0.9rem; font-weight: 700; }

/* ===========================
   フロー
=========================== */
.flow__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow__step { text-align: center; padding: 32px 16px; position: relative; }
.flow__step:not(:last-child)::after {
  content: '→'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; color: var(--green); opacity: 0.4;
}
.flow__step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: white;
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.flow__step-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.flow__step-desc  { font-size: 0.8rem; color: var(--text-mid); }

/* ===========================
   LINE CTA
=========================== */
.line-cta {
  background: linear-gradient(135deg, #1e5c39 0%, #2d7a4f 100%);
  padding: 80px 24px; text-align: center;
}
.line-cta__title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: white; margin-bottom: 16px; }
.line-cta__desc  { color: rgba(255,255,255,0.8); margin-bottom: 36px; }
.line-cta__btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #06C755; color: white;
  padding: 18px 40px; border-radius: 4px;
  font-size: 1.1rem; font-weight: 700; transition: opacity 0.2s;
}
.line-cta__btn:hover { opacity: 0.88; }
.line-cta__sub { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-top: 16px; }

/* ===========================
   お問い合わせ・フォーム
=========================== */
.contact__inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.contact__info-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.contact__info-desc  { color: var(--text-mid); margin-bottom: 32px; }
.contact__tel        { font-size: 1.8rem; font-weight: 700; color: var(--green); }
.contact__tel-note   { font-size: 0.8rem; color: var(--text-mid); margin-top: 4px; }
.contact__address-box { margin-top: 24px; padding: 20px; background: white; border-radius: var(--radius); border: 1px solid var(--border); }
.contact__address-box-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.contact__address-box-text  { font-size: 0.875rem; color: var(--text-mid); }

/* CF7 フォームスタイル */
.wpcf7-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wpcf7-form .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.wpcf7-form label { font-size: 0.875rem; font-weight: 700; }
.wpcf7-form .required-mark { color: #e05050; font-size: 0.75rem; margin-left: 4px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: white;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { outline: none; border-color: var(--green); }
.wpcf7-form textarea { min-height: 120px; resize: vertical; }
.wpcf7-form input[type="submit"] {
  width: 100%;
  background: var(--green); color: white;
  border: none; padding: 16px;
  border-radius: 4px; font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.wpcf7-form input[type="submit"]:hover { background: var(--green-dark); }

/* ===========================
   会社概要ページ
=========================== */
.about-hero {
  background: linear-gradient(135deg, rgba(30,92,57,0.9) 0%, rgba(45,122,79,0.85) 100%),
    center/cover no-repeat;
  padding: 140px 24px 80px;
  text-align: center;
  color: white;
}
.about-hero__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 16px; }
.about-hero__desc  { font-size: 1.1rem; opacity: 0.85; }

.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.95rem; }
.company-table th { width: 200px; color: var(--text-mid); font-weight: 500; background: var(--bg); }
.company-table td { color: var(--text); }

.map-wrapper { width: 100%; height: 400px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-wrapper iframe { width: 100%; height: 100%; border: none; }

/* ===========================
   投稿・アーカイブ
=========================== */
.post-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px; }
.post-card__date { font-size: 0.8rem; color: var(--text-mid); margin-bottom: 8px; }
.post-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.post-card__excerpt { font-size: 0.875rem; color: var(--text-mid); }

/* ===========================
   単体投稿
=========================== */
.post-content { max-width: 800px; margin: 0 auto; }
.post-content h2 { font-size: 1.6rem; font-weight: 700; margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--green); }
.post-content h3 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px; }
.post-content p  { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content img { border-radius: var(--radius); }

/* ===========================
   ページネーション
=========================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  width: 40px; height: 40px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700;
  border: 1px solid var(--border); color: var(--text);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current { background: var(--green); color: white; border-color: var(--green); }

/* ===========================
   404ページ
=========================== */
.error-404 { text-align: center; padding: 140px 24px; }
.error-404__code  { font-size: 8rem; font-weight: 700; color: var(--green); opacity: 0.2; line-height: 1; }
.error-404__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.error-404__desc  { color: var(--text-mid); margin-bottom: 32px; }

/* ===========================
   レスポンシブ
=========================== */
@media (max-width: 1024px) {
  .flow__steps { grid-template-columns: repeat(3, 1fr); }
  .flow__step:nth-child(3)::after { display: none; }
}

@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .hero__stats { gap: 24px; }
  .flow__steps { grid-template-columns: 1fr; }
  .flow__step::after { display: none !important; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .wpcf7-form .form-row { grid-template-columns: 1fr; }
  .price-box { padding: 24px 32px; }
  .price-box__num { font-size: 3rem; }
  .company-table th { width: auto; display: block; }
  .company-table td { display: block; }
  .company-table tr { display: block; margin-bottom: 8px; }
}
