:root {
  --blue: #0B3C5D;       /* メインカラー */
  --accent: #4da3ff;     /* アクセントカラー */
  --black: #111111;
  --gray: #f5f5f5;
  --white: #ffffff;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: var(--black);
  line-height: 1.8;
}

/* 共通レイアウト */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  position: sticky; /* スクロールしても上部に固定 */
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px; /* ヘッダーの高さ */
  padding: 0 20px;
}

.logo {
  height: 50px; /* ロゴのサイズ調整 */
  width: auto;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--blue);
}

/* ヒーローエリア */
.hero {
  height: 60vh;
  min-height: 400px;
  background: url("../img/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
}

.hero-text {
  position: relative;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 30px;
  margin-left: 5%;
  max-width: 450px;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  line-height: 1.4;
}

/* 企業方針（グリッド） */
.policy.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.policy-item {
  background: var(--gray);
  padding: 30px;
  border-left: 5px solid var(--blue);
}

.policy-item h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--blue);
}

/* 牧場紹介セクション */
.section-title {
  font-size: 1.8rem;
  border-left: 6px solid var(--blue);
  padding-left: 15px;
  margin-bottom: 30px;
}

.intro {
  display: flex;
  gap: 40px;
  align-items: center;
  padding-bottom: 80px;
}

.intro-img {
  flex: 1;
  min-width: 300px;
  height: auto;
  border-radius: 4px;
}

.intro p {
  flex: 1;
  min-width: 300px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column; /* ロゴとナビを縦並びに */
    height: auto;
    padding: 15px 0;
  }
  .nav {
    margin-top: 15px;
  }
  .nav a {
    margin: 0 10px;
    font-size: 0.85rem;
  }
  .hero-text {
    margin: 0 20px;
  }
  .intro {
    flex-direction: column; /* 写真と文を縦並びに */
    gap: 20px;
  }
  .intro-img, .intro p {
    min-width: 100%;
  }
}