/* ================================================
   国際農業開発株式会社 — メインスタイルシート
   案M カラー / BIOベース1ページ完結レイアウト
   ================================================ */

/* ----------------------------------------
   カスタムプロパティ（案M）
   ---------------------------------------- */
:root {
  --brand-green: #00B37A;
  --brand-green-light: #00D48A;
  --accent-coral: #E8634A;
  --heading: #111111;
  --text: #3D3D3D;
  --bg-white: #FFFFFF;
  --bg-alt: #F0FDF6;
  --border: #E4EBE8;
  --green-gradient: linear-gradient(135deg, #00B37A, #00D48A);
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  --font-serif: 'Noto Serif JP', 'Yu Mincho', serif;
  --container: 1000px;
  --header-h: 60px;
}

/* ----------------------------------------
   リセット・ベース
   ---------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.6s ease;
}

body.scrolled { background-color: var(--bg-alt); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ----------------------------------------
   共通レイアウト
   ---------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; position: relative; }

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--heading);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

.section-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 3rem;
}

/* ----------------------------------------
   ヘッダー・グローバルナビ
   ---------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: background 0.4s, box-shadow 0.4s;
}

.site-header.is-top {
  background: transparent;
  box-shadow: none;
}

.site-header.is-top .header-brand { color: #fff; }
.site-header.is-top .gnav a { color: rgba(255,255,255,0.85); }
.site-header.is-top .gnav a:hover { color: #fff; }
.site-header.is-top .hamburger span { background: #fff; }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header-brand {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.3s;
}

.gnav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.gnav a {
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  white-space: nowrap;
}

.gnav a:hover { color: var(--brand-green); }

.gnav .gnav-cta {
  padding: 0.45rem 1.2rem;
  background: var(--accent-coral);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gnav .gnav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(232,99,74,0.3);
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------
   1. ヒーローセクション
   ---------------------------------------- */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.35));
  z-index: 1;
}

.hero-filmroll {
  position: absolute;
  bottom: 12%;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 2;
}

.filmroll-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: filmroll-scroll 35s linear infinite;
}

.filmroll-img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

@keyframes filmroll-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-100% / 3 - 0.5rem)); }
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 700px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.hero-content p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 2;
  margin-bottom: 2.5rem;
  opacity: 0.92;
}

/* ----------------------------------------
   ボタン共通
   ---------------------------------------- */
.btn-outline-white {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: #fff;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-white {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #fff;
  color: #111;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-coral {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent-coral);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(232,99,74,0.35);
}

.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,99,74,0.5);
}

.btn-green {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--green-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0,179,122,0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,179,122,0.45);
}

/* ----------------------------------------
   2. 理念セクション
   ---------------------------------------- */
.mission {
  text-align: center;
  padding: 7rem 0 6rem;
  background: var(--bg-white);
}

.mission-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 2.2;
}

.mission-text p + p { margin-top: 1.2rem; }

/* ----------------------------------------
   3. 事業紹介セクション
   ---------------------------------------- */
.services {
  background: var(--bg-alt);
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  font-size: 1.15rem;
  color: var(--heading);
  margin-bottom: 0.6rem;
}

.service-card-body p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

.card-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--brand-green);
  font-weight: 600;
}

/* ----------------------------------------
   モーダル（事業詳細）
   ---------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active { display: flex; }

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.modal-close:hover { color: #333; }

.modal h2 {
  font-size: 1.5rem;
  color: var(--heading);
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.modal p { margin-bottom: 1rem; line-height: 2; }

.modal-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* ----------------------------------------
   4. はちみつ販売セクション
   ---------------------------------------- */
.honey {
  background: var(--bg-white);
  padding: 6rem 0;
}

.honey-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.honey-img {
  flex: 0 0 250px;
  height: 250px;
  border-radius: 12px;
  object-fit: cover;
}

.honey-text { flex: 1; }

.honey-text h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--heading);
  margin-bottom: 1rem;
}

.honey-text p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

/* ----------------------------------------
   5. 代表メッセージセクション
   ---------------------------------------- */
.message-section {
  background: var(--bg-white);
  padding: 6rem 0;
}

.message-inner {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.message-photo {
  flex: 0 0 200px;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
}
.message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-body { flex: 1; }

.message-body .message-lead {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--heading);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.message-body p {
  margin-bottom: 1rem;
  line-height: 2;
  font-size: 0.95rem;
}

.message-name {
  margin-top: 2rem;
  text-align: right;
}

.message-name .title {
  font-size: 0.8rem;
  color: #888;
  display: block;
  margin-bottom: 0.3rem;
}

.message-name .name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--heading);
  letter-spacing: 0.1em;
}

/* ----------------------------------------
   6. 会社概要セクション
   ---------------------------------------- */
.company {
  background: var(--bg-alt);
  padding: 6rem 0;
}

.company-table {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 1.2rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.company-table th {
  width: 30%;
  color: var(--heading);
  font-weight: 600;
  white-space: nowrap;
}

/* ----------------------------------------
   7. CTA セクション
   ---------------------------------------- */
.cta {
  background: var(--green-gradient);
  padding: 5rem 0;
  text-align: center;
}

.cta h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

.cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.btn-coral-on-green {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--accent-coral);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-coral-on-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

/* ----------------------------------------
   8. フッター
   ---------------------------------------- */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.footer-brand-en {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
}

.footer-message {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.6);
}

.footer-links { margin-bottom: 2rem; }

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  margin: 0 1rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

/* ----------------------------------------
   スクロールフェードインアニメーション
   ---------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   プレースホルダー画像
   ---------------------------------------- */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd;
  color: #999;
  font-size: 0.8rem;
  text-align: center;
}

/* ----------------------------------------
   contact.php — 小型ヒーロー
   ---------------------------------------- */
.hero-small {
  position: relative;
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--green-gradient);
}

.hero-small h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #fff;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 2;
}

/* ----------------------------------------
   contact.php — フォーム
   ---------------------------------------- */
.contact-section {
  padding: 4rem 0;
  background: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.required { color: var(--accent-coral); }

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(0,179,122,0.12);
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233D3D3D' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
}

.form-note {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.form-actions { text-align: center; }

.form-submit-btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  width: 100%;
  max-width: 300px;
}

.has-error .form-input {
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 3px rgba(232,99,74,0.1);
}

.error-message {
  font-size: 0.8rem;
  color: var(--accent-coral);
  margin-top: 0.4rem;
}

.alert {
  padding: 1.5rem 2rem;
  border-radius: 8px;
  line-height: 1.8;
}

.alert p + p { margin-top: 0.3rem; }

.alert-success {
  background: #f0fdf6;
  border: 1px solid rgba(0,179,122,0.3);
  color: var(--text);
}

.alert-error {
  background: #fef2f2;
  border: 1px solid rgba(232,99,74,0.3);
  color: var(--accent-coral);
}

.info-card {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-card h3 {
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 1rem;
  font-weight: 600;
}

.info-list { margin: 0; }

.info-list dt {
  font-size: 0.8rem;
  color: var(--brand-green);
  font-weight: 600;
  margin-top: 0.8rem;
}

.info-list dt:first-child { margin-top: 0; }

.info-list dd {
  font-size: 0.9rem;
  margin: 0.2rem 0 0 0;
  line-height: 1.7;
}

/* ----------------------------------------
   レスポンシブ
   ---------------------------------------- */
@media (max-width: 768px) {
  section { padding: 4rem 0; }

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

  .hero { min-height: 500px; }
  .hero-content h1 { font-size: 1.8rem; }
  .filmroll-img { width: 140px; height: 140px; }

  /* ハンバーガー表示 */
  .hamburger { display: flex; }

  .gnav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 55;
  }

  .gnav.is-open { display: flex; }

  .gnav a {
    font-size: 1.1rem;
    color: var(--heading);
  }

  .site-header.is-top .hamburger.is-active span { background: var(--heading); }

  /* はちみつ */
  .honey-inner {
    flex-direction: column;
    text-align: center;
  }
  .honey-img { flex: none; width: 200px; height: 200px; }

  /* 代表メッセージ */
  .message-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .message-photo { flex: none; width: 160px; height: 210px; }
  .message-name { text-align: center; }

  /* 会社概要 */
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
  }
  .company-table th {
    border-bottom: none;
    padding-bottom: 0.2rem;
    color: var(--brand-green);
    font-size: 0.8rem;
  }

  /* モーダル */
  .modal { padding: 2rem 1.5rem; }

  /* フォーム */
  .contact-grid { grid-template-columns: 1fr; }

  /* フッター */
  .footer-links a {
    display: block;
    margin: 0.5rem 0;
  }
}
