@charset "UTF-8";
/* ==========================================================================
   かしまし豚（山本ファーム）公式サイト スタイルシート (style.css)
   旧CMS (HAIK / QHM haik_seed .haik-palette-red) の配色・タイポグラフィ・
   余白・ボーダー装飾を忠実に再現したレスポンシブCSS設計
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS変数（デザイントークン）とリセット・ベース設定
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #f44336;
  --color-primary-hover: #f77066;
  --color-btn-danger: #fc5f62;
  --color-btn-danger-hover: #fa8e91;
  --color-accent-red: red;
  --color-text: #333333;
  --color-text-nav: #444444;
  --color-text-muted: #9e9e9e;
  --color-link: #337ab7;
  --color-link-hover: #23527c;
  --color-bg: #ffffff;
  --color-bg-subtle: #f9f9f9;
  --color-border: #ededed;
  --color-table-border: #dddddd;
  --color-licence-bg: rgba(244, 67, 54, 0.8);
  --font-base: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", sans-serif;
  --container-max-width: 1045px;
  --nav-container-max-width: 1075px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1.8em;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 767px) {
  html,
  body {
    letter-spacing: 0.05em;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.btn-download:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

p {
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 30px;
}

@media (max-width: 767px) {
  p {
    margin-bottom: 25px;
  }
}

hr.full_hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 20px 0;
}

ins {
  text-decoration: none;
  border-bottom: 1px solid;
  padding-bottom: 2px;
}

/* --------------------------------------------------------------------------
   2. 見出し・タイポグラフィ（旧サイトの階層・装飾を忠実に再現）
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  line-height: 1.7em;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.05em;
  }
}

h1 {
  font-size: 32px;
  margin: 30px 0 25px;
}

h2 {
  font-size: 25px;
  margin: 30px 0 25px;
}

h3 {
  font-size: 21px;
  margin: 20px 0 15px;
}

h4 {
  font-size: 18px;
  margin: 15px 0 10px;
}

@media (max-width: 767px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
}

strong, b {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   3. レイアウトコンテナ・グリッドシステム（1カラム＆2カラム対応）
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: 15px;
}

.haik-nav .container {
  max-width: var(--nav-container-max-width);
}

.container-fluid {
  width: 100%;
  padding-inline: 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -15px;
}

.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-9 {
  width: 100%;
  padding-inline: 15px;
}

@media (min-width: 768px) {
  .col-sm-3 { width: 25%; }
  .col-sm-4 { width: 33.333333%; }
  .col-sm-5 { width: 41.666667%; }
  .col-sm-6 { width: 50%; }
  .col-sm-9 { width: 75%; }
  .col-sm-offset-1 { margin-left: 8.333333%; }

  div[class^="col-sm-"] > h1:first-child,
  div[class^="col-sm-"] > h2:first-child,
  div[class^="col-sm-"] > h3:first-child,
  div[class^="col-sm-"] > h4:first-child,
  div[class^="col-sm-"] > div[class*="align-"]:first-child > h1:first-child,
  div[class^="col-sm-"] > div[class*="align-"]:first-child > h2:first-child,
  div[class^="col-sm-"] > div[class*="align-"]:first-child > h3:first-child,
  div[class^="col-sm-"] > div[class*="align-"]:first-child > h4:first-child {
    margin-top: 0;
  }
}

div[class^="col-sm-"] > p:last-child,
div[class^="col-sm-"] > h1:last-child,
div[class^="col-sm-"] > h2:last-child,
div[class^="col-sm-"] > h3:last-child,
div[class^="col-sm-"] > h4:last-child,
div[class^="col-sm-"] > div[class*="align-"]:last-child > p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   4. ヘッダー・グローバルナビゲーション（ドロップダウン対応）
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--color-bg);
}

.haik-headcopy h1 {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 400;
}

.haik-nav {
  background-color: transparent;
  font-size: 13px;
  color: var(--color-text-nav);
  min-height: 50px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

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

@media (min-width: 768px) {
  .navbar-header {
    width: auto;
  }
}

.navbar-brand {
  display: inline-block;
  padding: 0;
  height: 50px;
  color: var(--color-text-nav);
  font-size: 15px;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  padding: 3px;
}

.navbar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 5px 9px 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }
}

.navbar-collapse {
  display: none;
  width: 100%;
}

.navbar-collapse.is-open {
  display: block;
}

@media (min-width: 768px) {
  .navbar-collapse {
    display: block;
    width: auto;
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .nav-list {
    flex-direction: row;
    align-items: center;
  }
}

.nav-item {
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.nav-item:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .nav-item {
    border-bottom: none;
  }
}

.nav-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px;
  color: var(--color-text-nav);
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-align: left;
}

.nav-trigger:hover,
.nav-trigger:focus {
  color: var(--color-primary);
  text-decoration: none;
}

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-top: 4px dashed;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 5px 0;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  display: none;
}

.nav-item.is-open > .dropdown-menu {
  display: block;
}

@media (min-width: 768px) {
  .nav-item:hover > .dropdown-menu,
  .nav-item:focus-within > .dropdown-menu {
    display: block;
  }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    z-index: 1000;
  }
  .nav-item:last-child .dropdown-menu {
    left: auto;
    right: 0;
  }
}

.dropdown-menu li a {
  display: block;
  padding: 5px 20px;
  color: var(--color-text-nav);
  font-size: 13px;
  white-space: nowrap;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background-color: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. アイキャッチ・バナーセクション（トップページ / テストページ）
   -------------------------------------------------------------------------- */
.hero-eyecatch {
  background-color: #eeeeee;
  background-image: url("../images/top_back2024.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 500px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 30px 15px;
}

@media (max-width: 767px) {
  .hero-eyecatch {
    min-height: 400px;
    height: auto;
    padding: 15px;
  }
}

.hero-eyecatch .container-fluid {
  max-width: 1000px;
}

.hero-eyecatch p {
  font-size: 16px;
  margin: 0;
}

.farm-banner-section {
  position: relative;
  background-image: url("../images/farm_bg_a2a4591.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 400px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}

.farm-banner-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.farm-banner-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 15px;
}

.heading-hero-sub {
  font-size: 25px;
  color: #ffffff;
}

.text-white {
  color: #ffffff;
}

.text-accent-red {
  color: var(--color-accent-red);
}

/* --------------------------------------------------------------------------
   6. メインコンテンツ領域 (.haik-container) とサイドバー (.haik-menu)
   -------------------------------------------------------------------------- */
.haik-container {
  margin: 30px 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.haik-container h2 {
  color: var(--color-primary);
  border: 1px solid #dddddd;
  border-left: 5px solid var(--color-primary);
  padding: 5px 15px;
}

.haik-container h2 a {
  color: var(--color-primary);
}

.haik-container h2:first-child {
  margin-top: 0;
}

.haik-container h3 {
  color: #333333;
  border-bottom: 2px solid var(--color-border);
}

.haik-container h3 a {
  color: #333333;
}

.haik-container h4 {
  color: var(--color-primary);
}

.haik-container ul.list1,
.haik-container ol.list1 {
  margin-bottom: 30px;
  font-size: 15px;
}

.haik-container ul > li,
.haik-container ol > li {
  padding: 3px 0;
}

/* サイドバー */
.haik-menu {
  margin: 30px 0;
}

@media (max-width: 767px) {
  .haik-menu {
    margin: 50px 0 15px;
  }
}

.haik-menu h2 {
  color: var(--color-text-nav);
  font-size: 16px;
  padding: 7px 15px;
  margin-top: 15px;
  margin-bottom: 0;
  border: none;
  border-bottom: 2px solid var(--color-border);
}

.haik-menu h2 a {
  color: var(--color-text-nav);
  display: block;
}

.haik-menu h3 {
  font-size: 14px;
  color: var(--color-text-nav);
  padding: 5px 15px;
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 767px) {
  .haik-menu h3 {
    padding: 8px 15px;
  }
}

.haik-menu h3 a {
  color: var(--color-text-nav);
  display: block;
}

.haik-menu h3:hover a,
.haik-menu h3.focus a {
  color: var(--color-primary);
  text-decoration: none;
}

.haik-menu p {
  margin: 15px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. コンポーネント（ボタン・テーブル・画像装飾・余白調整）
   -------------------------------------------------------------------------- */
.align-center {
  text-align: center;
}

.align-left {
  text-align: left;
}

.align-right {
  text-align: right;
}

.btn {
  display: inline-block;
  max-width: 100%;
  padding: 10px 35px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 5px;
  letter-spacing: 0.09em;
  text-decoration: none;
}

@media (max-width: 767px) {
  .btn {
    white-space: normal;
    padding: 10px 20px;
  }
}

p .btn {
  margin-top: 10px;
  margin-bottom: 10px;
}

p .btn + br + .btn {
  margin-top: 0;
}

.btn-danger {
  color: #ffffff;
  background-color: var(--color-btn-danger);
  border: 1px solid var(--color-btn-danger);
}

.btn-danger:hover,
.btn-danger:focus {
  color: #ffffff;
  background-color: var(--color-btn-danger-hover);
  border: 1px solid var(--color-btn-danger-hover);
  text-decoration: none;
}

.btn-round {
  border-radius: 4px;
}

.btn-download {
  display: inline-block;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.42857143;
  color: #000000;
  background-color: #efefef;
  border: 1px solid #767676;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}

.btn-download:hover,
.btn-download:focus {
  background-color: #e5e5e5;
  color: #000000;
  text-decoration: none;
}

.img-rounded {
  border-radius: 6px;
}

.img-thumbnail {
  padding: 4px;
  line-height: 1.42857143;
  background-color: #ffffff;
  border: 1px solid var(--color-table-border);
  border-radius: 4px;
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.img-circle {
  border-radius: 50%;
}

/* テーブル */
.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  background-color: transparent;
}

.table th,
.table td,
.style_th,
.style_td {
  border: 1px solid var(--color-table-border);
  padding: 8px;
  line-height: 1.5;
  vertical-align: top;
  background-color: #ffffff;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-striped > tbody > tr:nth-of-type(odd) > th,
.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: var(--color-bg-subtle);
}

/* 旧CMSの余白調整クラス再現 */
.spacer-mt-10 {
  margin-top: 10px;
}

.spacer-mt-50 {
  margin-top: 50px;
}

.spacer-mt-neg20 {
  margin-top: -20px;
}

.spacer-mt-neg30 {
  margin-top: -30px;
}

/* --------------------------------------------------------------------------
   8. フッター・コピーライト（SiteNavigator2 ＆ ライセンス領域）
   -------------------------------------------------------------------------- */
.haik-footer {
  padding: 30px 0;
}

@media (max-width: 767px) {
  .haik-footer {
    padding: 20px 0;
  }
}

.haik-footer-border {
  padding: 20px 15px;
  border-top: 1px solid var(--color-border);
}

.haik-footer h2,
.haik-footer h3,
.haik-footer h4 {
  color: var(--color-primary);
  margin-bottom: 5px;
}

.haik-footer h2 a,
.haik-footer h3 a,
.haik-footer h4 a {
  color: var(--color-primary);
}

.haik-footer p {
  font-size: 14px;
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .haik-footer p {
    font-size: 15px;
  }
}

.haik-footer p a {
  color: var(--color-text-muted);
}

.haik-footer p a.btn-danger {
  color: #ffffff;
}

.haik-licence {
  padding: 15px 0;
  text-align: center;
  background-color: var(--color-licence-bg);
}

.haik-licence p {
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.5em;
  margin-bottom: 0;
}

.haik-licence p a {
  color: #ffffff;
}

.haik-licence .haik-copyright p {
  font-size: 12px;
  color: #ffffff;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.haik-licence .haik-copyright p a {
  color: #ffffff;
}
